Bug Summary

File:OMCompiler/Compiler/boot/build/JSON.c
Warning:line 410, column 5
Value stored to '_nextToken' is never read

Annotated Source Code

[?] Use j/k keys for keyboard navigation

1#ifdef OMC_BASE_FILE
2 #define OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c" OMC_BASE_FILE
3#else
4 #define OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c" "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
5#endif
6#include "omc_simulation_settings.h"
7#include "JSON.h"
8static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT0,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT0
= { (((1) << 10) + (((5) & 255) << 2)),
{&ErrorTypes_MessageType_TRANSLATION__desc,}};
9#define _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT0)((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))
10static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT1,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT1
= { (((1) << 10) + (((4) & 255) << 2)),
{&ErrorTypes_Severity_ERROR__desc,}};
11#define _OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT1)((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3))
12#define _OMC_LIT2_data"%s" "%s"
13static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT2,2,_OMC_LIT2_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT2
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), "%s"
}
;
14#define _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT2)((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3))
15static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT3,2,4)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT3
= { (((2) << 10) + (((4) & 255) << 2)),
{&Gettext_TranslatableContent_notrans__desc,_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3))}};
16#define _OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT3)((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3))
17static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT4,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT4
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(5999))((void*)(((((mmc_uint_t) (5999)) << 1)+0))),_OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)),_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)),_OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3))}};
18#define _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT4)((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3))
19#define _OMC_LIT5_data"JSON expected " "JSON expected "
20static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT5,14,_OMC_LIT5_data)struct { mmc_uint_t header; const char data[(14)+1]; } _OMC_LIT_STRUCT5
= { ((((mmc_uint_t)14)<<(3))+((1<<(3+3))+5)), "JSON expected "
}
;
21#define _OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT5)((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3))
22#define _OMC_LIT6_data", got token " ", got token "
23static 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)), ", got token "
}
;
24#define _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT6)((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3))
25#define _OMC_LIT7_data": " ": "
26static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT7,2,_OMC_LIT7_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT7
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), ": "
}
;
27#define _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT7)((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3))
28#define _OMC_LIT8_data"Expected <EOF>, got more tokens, starting with: " "Expected <EOF>, got more tokens, starting with: "
29static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT8,48,_OMC_LIT8_data)struct { mmc_uint_t header; const char data[(48)+1]; } _OMC_LIT_STRUCT8
= { ((((mmc_uint_t)48)<<(3))+((1<<(3+3))+5)), "Expected <EOF>, got more tokens, starting with: "
}
;
30#define _OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT8)((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3))
31#define _OMC_LIT9_data"Expected a " "Expected a "
32static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT9,11,_OMC_LIT9_data)struct { mmc_uint_t header; const char data[(11)+1]; } _OMC_LIT_STRUCT9
= { ((((mmc_uint_t)11)<<(3))+((1<<(3+3))+5)), "Expected a "
}
;
33#define _OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT9)((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))
34#define _OMC_LIT10_data", got token: " ", got token: "
35static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT10,13,_OMC_LIT10_data)struct { mmc_uint_t header; const char data[(13)+1]; } _OMC_LIT_STRUCT10
= { ((((mmc_uint_t)13)<<(3))+((1<<(3+3))+5)), ", got token: "
}
;
36#define _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT10)((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3))
37#define _OMC_LIT11_data"JSON expected value, got <EOF>..." "JSON expected value, got <EOF>..."
38static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT11,33,_OMC_LIT11_data)struct { mmc_uint_t header; const char data[(33)+1]; } _OMC_LIT_STRUCT11
= { ((((mmc_uint_t)33)<<(3))+((1<<(3+3))+5)), "JSON expected value, got <EOF>..."
}
;
39#define _OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT11)((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3))
40static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT12,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT12
= { (((1) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_MessageType_SYNTAX__desc,}};
41#define _OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT12)((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3))
42#define _OMC_LIT13_data"Additional syntax errors were suppressed." "Additional syntax errors were suppressed."
43static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT13,41,_OMC_LIT13_data)struct { mmc_uint_t header; const char data[(41)+1]; } _OMC_LIT_STRUCT13
= { ((((mmc_uint_t)41)<<(3))+((1<<(3+3))+5)), "Additional syntax errors were suppressed."
}
;
44#define _OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT13)((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3))
45static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT14,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT14
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3))}};
46#define _OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT14)((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3))
47static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT15,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT15
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(287))((void*)(((((mmc_uint_t) (287)) << 1)+0))),_OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)),_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)),_OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3))}};
48#define _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT15)((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3))
49#define _OMC_LIT16_data"Syntax error, unrecognized input: %s." "Syntax error, unrecognized input: %s."
50static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT16,37,_OMC_LIT16_data)struct { mmc_uint_t header; const char data[(37)+1]; } _OMC_LIT_STRUCT16
= { ((((mmc_uint_t)37)<<(3))+((1<<(3+3))+5)), "Syntax error, unrecognized input: %s."
}
;
51#define _OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT16)((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3))
52static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT17,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT17
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3))}};
53#define _OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT17)((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3))
54static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT18,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT18
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(286))((void*)(((((mmc_uint_t) (286)) << 1)+0))),_OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)),_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)),_OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3))}};
55#define _OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT18)((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3))
56static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT19,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT19
= { (((1) << 10) + (((5) & 255) << 2)),
{&JSON_AvlTree_Tree_EMPTY__desc,}};
57#define _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT19)((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3))
58#define _OMC_LIT20_data"a (real) number" "a (real) number"
59static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT20,15,_OMC_LIT20_data)struct { mmc_uint_t header; const char data[(15)+1]; } _OMC_LIT_STRUCT20
= { ((((mmc_uint_t)15)<<(3))+((1<<(3+3))+5)), "a (real) number"
}
;
60#define _OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT20)((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3))
61#define _OMC_LIT21_data"an integer" "an integer"
62static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT21,10,_OMC_LIT21_data)struct { mmc_uint_t header; const char data[(10)+1]; } _OMC_LIT_STRUCT21
= { ((((mmc_uint_t)10)<<(3))+((1<<(3+3))+5)), "an integer"
}
;
63#define _OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT21)((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3))
64#define _OMC_LIT22_data"a String" "a String"
65static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT22,8,_OMC_LIT22_data)struct { mmc_uint_t header; const char data[(8)+1]; } _OMC_LIT_STRUCT22
= { ((((mmc_uint_t)8)<<(3))+((1<<(3+3))+5)), "a String"
}
;
66#define _OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT22)((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3))
67#define _OMC_LIT23_data"" ""
68static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT23,0,_OMC_LIT23_data)struct { mmc_uint_t header; const char data[(0)+1]; } _OMC_LIT_STRUCT23
= { ((((mmc_uint_t)0)<<(3))+((1<<(3+3))+5)), "" }
;
69#define _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT23)((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3))
70static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT24,1,8)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT24
= { (((1) << 10) + (((8) & 255) << 2)),
{&JSON_TRUE__desc,}};
71#define _OMC_LIT24((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT24)((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3))
72static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT25,1,9)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT25
= { (((1) << 10) + (((9) & 255) << 2)),
{&JSON_FALSE__desc,}};
73#define _OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT25)((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3))
74static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT26,1,10)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT26
= { (((1) << 10) + (((10) & 255) << 2)),
{&JSON_NULL__desc,}};
75#define _OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT26)((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3))
76#define _OMC_LIT27_data"a value" "a value"
77static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT27,7,_OMC_LIT27_data)struct { mmc_uint_t header; const char data[(7)+1]; } _OMC_LIT_STRUCT27
= { ((((mmc_uint_t)7)<<(3))+((1<<(3+3))+5)), "a value"
}
;
78#define _OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT27)((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3))
79#define _OMC_LIT28_data"<String>" "<String>"
80static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT28,8,_OMC_LIT28_data)struct { mmc_uint_t header; const char data[(8)+1]; } _OMC_LIT_STRUCT28
= { ((((mmc_uint_t)8)<<(3))+((1<<(3+3))+5)), "<String>"
}
;
81#define _OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT28)((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3))
82#define _OMC_LIT29_data"\"" "\""
83static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT29,1,_OMC_LIT29_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT29
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "\""
}
;
84#define _OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT29)((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3))
85#define _OMC_LIT30_data"true" "true"
86static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT30,4,_OMC_LIT30_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT30
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), "true"
}
;
87#define _OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT30)((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3))
88#define _OMC_LIT31_data"false" "false"
89static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT31,5,_OMC_LIT31_data)struct { mmc_uint_t header; const char data[(5)+1]; } _OMC_LIT_STRUCT31
= { ((((mmc_uint_t)5)<<(3))+((1<<(3+3))+5)), "false"
}
;
90#define _OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT31)((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3))
91#define _OMC_LIT32_data"null" "null"
92static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT32,4,_OMC_LIT32_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT32
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), "null"
}
;
93#define _OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT32)((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3))
94#define _OMC_LIT33_data"[" "["
95static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT33,1,_OMC_LIT33_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT33
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "["
}
;
96#define _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT33)((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3))
97#define _OMC_LIT34_data", " ", "
98static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT34,2,_OMC_LIT34_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT34
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), ", "
}
;
99#define _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT34)((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))
100#define _OMC_LIT35_data"]" "]"
101static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT35,1,_OMC_LIT35_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT35
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "]"
}
;
102#define _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT35)((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3))
103#define _OMC_LIT36_data"{" "{"
104static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT36,1,_OMC_LIT36_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT36
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "{"
}
;
105#define _OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT36)((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3))
106#define _OMC_LIT37_data"\":" "\":"
107static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT37,2,_OMC_LIT37_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT37
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), "\":"
}
;
108#define _OMC_LIT37((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT37)((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3))
109#define _OMC_LIT38_data"}" "}"
110static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT38,1,_OMC_LIT38_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT38
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "}"
}
;
111#define _OMC_LIT38((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT38)((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3))
112#define _OMC_LIT39_data"(" "("
113static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT39,1,_OMC_LIT39_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT39
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "("
}
;
114#define _OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT39)((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3))
115#define _OMC_LIT40_data")" ")"
116static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT40,1,_OMC_LIT40_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT40
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), ")"
}
;
117#define _OMC_LIT40((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT40)((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3))
118#define _OMC_LIT41_data"EMPTY()" "EMPTY()"
119static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT41,7,_OMC_LIT41_data)struct { mmc_uint_t header; const char data[(7)+1]; } _OMC_LIT_STRUCT41
= { ((((mmc_uint_t)7)<<(3))+((1<<(3+3))+5)), "EMPTY()"
}
;
120#define _OMC_LIT41((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT41)((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3))
121#define _OMC_LIT42_data"\n" "\n"
122static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT42,1,_OMC_LIT42_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT42
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "\n"
}
;
123#define _OMC_LIT42((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT42)((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3))
124#define _OMC_LIT43_data" " " "
125static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT43,5,_OMC_LIT43_data)struct { mmc_uint_t header; const char data[(5)+1]; } _OMC_LIT_STRUCT43
= { ((((mmc_uint_t)5)<<(3))+((1<<(3+3))+5)), " "
}
;
126#define _OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT43)((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3))
127#define _OMC_LIT44_data" │ " " │ "
128static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT44,7,_OMC_LIT44_data)struct { mmc_uint_t header; const char data[(7)+1]; } _OMC_LIT_STRUCT44
= { ((((mmc_uint_t)7)<<(3))+((1<<(3+3))+5)), " │ "
}
;
129#define _OMC_LIT44((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT44)((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3))
130#define _OMC_LIT45_data" ┌" " ┌"
131static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT45,4,_OMC_LIT45_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT45
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), " ┌"
}
;
132#define _OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT45)((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3))
133#define _OMC_LIT46_data" └" " └"
134static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT46,4,_OMC_LIT46_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT46
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), " └"
}
;
135#define _OMC_LIT46((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT46)((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3))
136#define _OMC_LIT47_data"────" "────"
137static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT47,12,_OMC_LIT47_data)struct { mmc_uint_t header; const char data[(12)+1]; } _OMC_LIT_STRUCT47
= { ((((mmc_uint_t)12)<<(3))+((1<<(3+3))+5)), "────"
}
;
138#define _OMC_LIT47((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT47)((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3))
139#include "util/modelica.h"
140
141#include "JSON_includes.h"
142
143
144/* default, do not make protected functions static */
145#if !defined(PROTECTED_FUNCTION_STATIC)
146#define PROTECTED_FUNCTION_STATIC
147#endif
148PROTECTED_FUNCTION_STATIC void omc_JSON_errorExpected(threadData_t *threadData, modelica_string _expected, modelica_metatype _tok);
149static const MMC_DEFSTRUCTLIT(boxvar_lit_JSON_errorExpected,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_JSON_errorExpected
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_JSON_errorExpectedomc_JSON_errorExpected,0}};
150#define boxvar_JSON_errorExpected((void*)((char*)(&(boxvar_lit_JSON_errorExpected).header)
+ 3))
MMC_REFSTRUCTLIT(boxvar_lit_JSON_errorExpected)((void*)((char*)(&(boxvar_lit_JSON_errorExpected).header)
+ 3))
151PROTECTED_FUNCTION_STATIC void omc_JSON_check__empty(threadData_t *threadData, modelica_metatype _tokens);
152static const MMC_DEFSTRUCTLIT(boxvar_lit_JSON_check__empty,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_JSON_check__empty
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_JSON_check__emptyomc_JSON_check__empty,0}};
153#define boxvar_JSON_check__empty((void*)((char*)(&(boxvar_lit_JSON_check__empty).header) +
3))
MMC_REFSTRUCTLIT(boxvar_lit_JSON_check__empty)((void*)((char*)(&(boxvar_lit_JSON_check__empty).header) +
3))
154PROTECTED_FUNCTION_STATIC modelica_metatype omc_JSON_parse__expected__token(threadData_t *threadData, modelica_metatype _D_24in_tokens, modelica_integer _expectedToken);
155PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_JSON_parse__expected__token(threadData_t *threadData, modelica_metatype _D_24in_tokens, modelica_metatype _expectedToken);
156static const MMC_DEFSTRUCTLIT(boxvar_lit_JSON_parse__expected__token,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_JSON_parse__expected__token
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_JSON_parse__expected__token,0}};
157#define boxvar_JSON_parse__expected__token((void*)((char*)(&(boxvar_lit_JSON_parse__expected__token
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_JSON_parse__expected__token)((void*)((char*)(&(boxvar_lit_JSON_parse__expected__token
).header) + 3))
158PROTECTED_FUNCTION_STATIC modelica_metatype omc_JSON_eat__if__next__token__matches(threadData_t *threadData, modelica_metatype _D_24in_tokens, modelica_integer _expectedToken, modelica_boolean *out_matched);
159PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_JSON_eat__if__next__token__matches(threadData_t *threadData, modelica_metatype _D_24in_tokens, modelica_metatype _expectedToken, modelica_metatype *out_matched);
160static const MMC_DEFSTRUCTLIT(boxvar_lit_JSON_eat__if__next__token__matches,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_JSON_eat__if__next__token__matches
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_JSON_eat__if__next__token__matches,0}};
161#define boxvar_JSON_eat__if__next__token__matches((void*)((char*)(&(boxvar_lit_JSON_eat__if__next__token__matches
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_JSON_eat__if__next__token__matches)((void*)((char*)(&(boxvar_lit_JSON_eat__if__next__token__matches
).header) + 3))
162PROTECTED_FUNCTION_STATIC modelica_integer omc_JSON_peek__id(threadData_t *threadData, modelica_metatype _tokens);
163PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_JSON_peek__id(threadData_t *threadData, modelica_metatype _tokens);
164static const MMC_DEFSTRUCTLIT(boxvar_lit_JSON_peek__id,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_JSON_peek__id
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_JSON_peek__id,0}};
165#define boxvar_JSON_peek__id((void*)((char*)(&(boxvar_lit_JSON_peek__id).header) + 3)
)
MMC_REFSTRUCTLIT(boxvar_lit_JSON_peek__id)((void*)((char*)(&(boxvar_lit_JSON_peek__id).header) + 3)
)
166PROTECTED_FUNCTION_STATIC modelica_metatype omc_JSON_not__eof(threadData_t *threadData, modelica_metatype _D_24in_tokens);
167static const MMC_DEFSTRUCTLIT(boxvar_lit_JSON_not__eof,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_JSON_not__eof
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_JSON_not__eofomc_JSON_not__eof,0}};
168#define boxvar_JSON_not__eof((void*)((char*)(&(boxvar_lit_JSON_not__eof).header) + 3)
)
MMC_REFSTRUCTLIT(boxvar_lit_JSON_not__eof)((void*)((char*)(&(boxvar_lit_JSON_not__eof).header) + 3)
)
169PROTECTED_FUNCTION_STATIC void omc_JSON_reportErrors(threadData_t *threadData, modelica_metatype _tokens);
170static const MMC_DEFSTRUCTLIT(boxvar_lit_JSON_reportErrors,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_JSON_reportErrors
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_JSON_reportErrorsomc_JSON_reportErrors,0}};
171#define boxvar_JSON_reportErrors((void*)((char*)(&(boxvar_lit_JSON_reportErrors).header) +
3))
MMC_REFSTRUCTLIT(boxvar_lit_JSON_reportErrors)((void*)((char*)(&(boxvar_lit_JSON_reportErrors).header) +
3))
172PROTECTED_FUNCTION_STATIC modelica_metatype omc_JSON_AvlTree_balance(threadData_t *threadData, modelica_metatype _inTree);
173static const MMC_DEFSTRUCTLIT(boxvar_lit_JSON_AvlTree_balance,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_JSON_AvlTree_balance
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_JSON_AvlTree_balanceomc_JSON_AvlTree_balance,0}};
174#define boxvar_JSON_AvlTree_balance((void*)((char*)(&(boxvar_lit_JSON_AvlTree_balance).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_JSON_AvlTree_balance)((void*)((char*)(&(boxvar_lit_JSON_AvlTree_balance).header
) + 3))
175PROTECTED_FUNCTION_STATIC modelica_integer omc_JSON_AvlTree_calculateBalance(threadData_t *threadData, modelica_metatype _inNode);
176PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_JSON_AvlTree_calculateBalance(threadData_t *threadData, modelica_metatype _inNode);
177static const MMC_DEFSTRUCTLIT(boxvar_lit_JSON_AvlTree_calculateBalance,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_JSON_AvlTree_calculateBalance
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_JSON_AvlTree_calculateBalance,0}};
178#define boxvar_JSON_AvlTree_calculateBalance((void*)((char*)(&(boxvar_lit_JSON_AvlTree_calculateBalance
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_JSON_AvlTree_calculateBalance)((void*)((char*)(&(boxvar_lit_JSON_AvlTree_calculateBalance
).header) + 3))
179PROTECTED_FUNCTION_STATIC modelica_integer omc_JSON_AvlTree_height(threadData_t *threadData, modelica_metatype _inNode);
180PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_JSON_AvlTree_height(threadData_t *threadData, modelica_metatype _inNode);
181static const MMC_DEFSTRUCTLIT(boxvar_lit_JSON_AvlTree_height,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_JSON_AvlTree_height
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_JSON_AvlTree_height,0}};
182#define boxvar_JSON_AvlTree_height((void*)((char*)(&(boxvar_lit_JSON_AvlTree_height).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_JSON_AvlTree_height)((void*)((char*)(&(boxvar_lit_JSON_AvlTree_height).header
) + 3))
183PROTECTED_FUNCTION_STATIC modelica_string omc_JSON_AvlTree_printTreeStr2(threadData_t *threadData, modelica_metatype _inTree, modelica_boolean _isLeft, modelica_string _inIndent);
184PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_JSON_AvlTree_printTreeStr2(threadData_t *threadData, modelica_metatype _inTree, modelica_metatype _isLeft, modelica_metatype _inIndent);
185static const MMC_DEFSTRUCTLIT(boxvar_lit_JSON_AvlTree_printTreeStr2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_JSON_AvlTree_printTreeStr2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_JSON_AvlTree_printTreeStr2,0}};
186#define boxvar_JSON_AvlTree_printTreeStr2((void*)((char*)(&(boxvar_lit_JSON_AvlTree_printTreeStr2)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_JSON_AvlTree_printTreeStr2)((void*)((char*)(&(boxvar_lit_JSON_AvlTree_printTreeStr2)
.header) + 3))
187PROTECTED_FUNCTION_STATIC modelica_boolean omc_JSON_AvlTree_referenceEqOrEmpty(threadData_t *threadData, modelica_metatype _t1, modelica_metatype _t2);
188PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_JSON_AvlTree_referenceEqOrEmpty(threadData_t *threadData, modelica_metatype _t1, modelica_metatype _t2);
189static const MMC_DEFSTRUCTLIT(boxvar_lit_JSON_AvlTree_referenceEqOrEmpty,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_JSON_AvlTree_referenceEqOrEmpty
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_JSON_AvlTree_referenceEqOrEmpty,0}};
190#define boxvar_JSON_AvlTree_referenceEqOrEmpty((void*)((char*)(&(boxvar_lit_JSON_AvlTree_referenceEqOrEmpty
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_JSON_AvlTree_referenceEqOrEmpty)((void*)((char*)(&(boxvar_lit_JSON_AvlTree_referenceEqOrEmpty
).header) + 3))
191PROTECTED_FUNCTION_STATIC modelica_metatype omc_JSON_AvlTree_rotateLeft(threadData_t *threadData, modelica_metatype _inNode);
192static const MMC_DEFSTRUCTLIT(boxvar_lit_JSON_AvlTree_rotateLeft,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_JSON_AvlTree_rotateLeft
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_JSON_AvlTree_rotateLeftomc_JSON_AvlTree_rotateLeft,0}};
193#define boxvar_JSON_AvlTree_rotateLeft((void*)((char*)(&(boxvar_lit_JSON_AvlTree_rotateLeft).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_JSON_AvlTree_rotateLeft)((void*)((char*)(&(boxvar_lit_JSON_AvlTree_rotateLeft).header
) + 3))
194PROTECTED_FUNCTION_STATIC modelica_metatype omc_JSON_AvlTree_rotateRight(threadData_t *threadData, modelica_metatype _inNode);
195static const MMC_DEFSTRUCTLIT(boxvar_lit_JSON_AvlTree_rotateRight,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_JSON_AvlTree_rotateRight
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_JSON_AvlTree_rotateRightomc_JSON_AvlTree_rotateRight,0}};
196#define boxvar_JSON_AvlTree_rotateRight((void*)((char*)(&(boxvar_lit_JSON_AvlTree_rotateRight).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_JSON_AvlTree_rotateRight)((void*)((char*)(&(boxvar_lit_JSON_AvlTree_rotateRight).header
) + 3))
197
198PROTECTED_FUNCTION_STATIC void omc_JSON_errorExpected(threadData_t *threadData, modelica_string _expected, modelica_metatype _tok)
199{
200 modelica_string tmp1;
201 const char* tmp2[13] = {"_NO_TOKEN", "ARRAYBEGIN", "ARRAYEND", "COLON", "COMMA", "FALSE", "INTEGER", "NULL", "NUMBER", "OBJECTBEGIN", "OBJECTEND", "STRING", "TRUE"};
202 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
203 MMC_SO()mmc_check_stackoverflow(threadData);
204 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
205#line 356 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
206 tmpMeta[1] = stringAppend(_OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)),_expected);
207#line 356 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
208 tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)));
209#line 356 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
210 tmp1 = enum_to_modelica_string(mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tok), 3))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_tok) - 3))) + (3)))))))) >> 1)
, tmp2, ((modelica_integer) 0), 1);
211#line 356 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
212 tmpMeta[3] = stringAppend(tmpMeta[2],tmp1);
213#line 356 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
214 tmpMeta[4] = stringAppend(tmpMeta[3],_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
215#line 356 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
216 tmpMeta[5] = stringAppend(tmpMeta[4],omc_LexerJSON_tokenContent(threadData, _tok));
217#line 356 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
218 tmpMeta[0] = mmc_mk_cons(tmpMeta[5], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
219#line 356 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
220 omc_Error_addSourceMessage(threadData, _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)), tmpMeta[0], omc_LexerJSON_tokenSourceInfo(threadData, _tok));
221#line 221 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
222
223#line 357 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
224 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
225#line 225 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
226 _return: OMC_LABEL_UNUSED__attribute__((unused))
227 return;
228}
229
230PROTECTED_FUNCTION_STATIC void omc_JSON_check__empty(threadData_t *threadData, modelica_metatype _tokens)
231{
232 modelica_metatype _tok = NULL((void*)0);
233 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
234 MMC_SO()mmc_check_stackoverflow(threadData);
235 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
236 // _tok has no default value.
237#line 344 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
238 if(listEmpty(_tokens)((*(mmc_uint_t*)((void*)((char*)(_tokens) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
)
239#line 344 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
240 {
241#line 345 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
242 goto _return;
243#line 243 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
244 }
245
246#line 347 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
247 _tok = listHead(_tokens)boxptr_listHead(threadData,_tokens);
248#line 248 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
249
250#line 348 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
251 tmpMeta[1] = stringAppend(_OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)),omc_LexerJSON_tokenContent(threadData, _tok));
252#line 348 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
253 tmpMeta[0] = mmc_mk_cons(tmpMeta[1], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
254#line 348 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
255 omc_Error_addSourceMessage(threadData, _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)), tmpMeta[0], omc_LexerJSON_tokenSourceInfo(threadData, _tok));
256#line 256 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
257
258#line 349 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
259 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
260#line 260 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
261 _return: OMC_LABEL_UNUSED__attribute__((unused))
262 return;
263}
264
265PROTECTED_FUNCTION_STATIC modelica_metatype omc_JSON_parse__expected__token(threadData_t *threadData, modelica_metatype _D_24in_tokens, modelica_integer _expectedToken)
266{
267 modelica_metatype _tokens = NULL((void*)0);
268 modelica_metatype _tok = NULL((void*)0);
269 modelica_string tmp1;
270 const char* tmp2[13] = {"_NO_TOKEN", "ARRAYBEGIN", "ARRAYEND", "COLON", "COMMA", "FALSE", "INTEGER", "NULL", "NUMBER", "OBJECTBEGIN", "OBJECTEND", "STRING", "TRUE"};
271 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
272 MMC_SO()mmc_check_stackoverflow(threadData);
273 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
274 _tokens = _D_24in_tokens;
275 // _tok has no default value.
276#line 331 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
277 omc_JSON_not__eof(threadData, _tokens);
278#line 278 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
279
280#line 332 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
281 /* Pattern-matching assignment */
282#line 332 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
283 tmpMeta[0] = _tokens;
284#line 332 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
285 if (listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
286#line 332 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
287 tmpMeta[1] = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
288#line 332 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
289 tmpMeta[2] = MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
290#line 332 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
291 _tok = tmpMeta[1];
292#line 332 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
293 _tokens = tmpMeta[2];
294#line 294 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
295
296#line 333 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
297 if((mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tok), 3))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_tok) - 3))) + (3)))))))) >> 1)
!= (modelica_integer)_expectedToken))
298#line 333 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
299 {
300#line 334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
301 tmp1 = enum_to_modelica_string((modelica_integer)_expectedToken, tmp2, ((modelica_integer) 0), 1);
302#line 334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
303 tmpMeta[1] = stringAppend(_OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3)),tmp1);
304#line 334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
305 tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)));
306#line 334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
307 tmpMeta[3] = stringAppend(tmpMeta[2],omc_LexerJSON_tokenContent(threadData, _tok));
308#line 334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
309 tmpMeta[0] = mmc_mk_cons(tmpMeta[3], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
310#line 334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
311 omc_Error_addSourceMessage(threadData, _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)), tmpMeta[0], omc_LexerJSON_tokenSourceInfo(threadData, _tok));
312#line 312 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
313
314#line 335 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
315 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
316#line 316 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
317 }
318 _return: OMC_LABEL_UNUSED__attribute__((unused))
319 return _tokens;
320}
321PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_JSON_parse__expected__token(threadData_t *threadData, modelica_metatype _D_24in_tokens, modelica_metatype _expectedToken)
322{
323 modelica_integer tmp1;
324 modelica_metatype _tokens = NULL((void*)0);
325 tmp1 = mmc_unbox_integer(_expectedToken)(((mmc_sint_t) (_expectedToken)) >> 1);
326 _tokens = omc_JSON_parse__expected__token(threadData, _D_24in_tokens, tmp1);
327 /* skip box _tokens; list<LexerJSON.Token> */
328 return _tokens;
329}
330
331PROTECTED_FUNCTION_STATIC modelica_metatype omc_JSON_eat__if__next__token__matches(threadData_t *threadData, modelica_metatype _D_24in_tokens, modelica_integer _expectedToken, modelica_boolean *out_matched)
332{
333 modelica_metatype _tokens = NULL((void*)0);
334 modelica_boolean _matched;
335 modelica_metatype _tok = NULL((void*)0);
336 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
337 MMC_SO()mmc_check_stackoverflow(threadData);
338 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
339 _tokens = _D_24in_tokens;
340 _matched = 0;
341 // _tok has no default value.
342#line 314 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
343 if(listEmpty(_tokens)((*(mmc_uint_t*)((void*)((char*)(_tokens) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
)
344#line 314 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
345 {
346#line 315 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
347 goto _return;
348#line 348 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
349 }
350
351#line 317 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
352 _tok = listHead(_tokens)boxptr_listHead(threadData,_tokens);
353#line 353 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
354
355#line 318 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
356 if((mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tok), 3))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_tok) - 3))) + (3)))))))) >> 1)
!= (modelica_integer)_expectedToken))
357#line 318 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
358 {
359#line 319 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
360 goto _return;
361#line 361 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
362 }
363
364#line 321 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
365 _matched = 1;
366#line 366 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
367
368#line 322 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
369 /* Pattern-matching assignment */
370#line 322 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
371 tmpMeta[0] = _tokens;
372#line 322 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
373 if (listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
374#line 322 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
375 tmpMeta[1] = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
376#line 322 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
377 tmpMeta[2] = MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
378#line 322 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
379 _tokens = tmpMeta[2];
380#line 380 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
381 _return: OMC_LABEL_UNUSED__attribute__((unused))
382 if (out_matched) { *out_matched = _matched; }
383 return _tokens;
384}
385PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_JSON_eat__if__next__token__matches(threadData_t *threadData, modelica_metatype _D_24in_tokens, modelica_metatype _expectedToken, modelica_metatype *out_matched)
386{
387 modelica_integer tmp1;
388 modelica_boolean _matched;
389 modelica_metatype _tokens = NULL((void*)0);
390 tmp1 = mmc_unbox_integer(_expectedToken)(((mmc_sint_t) (_expectedToken)) >> 1);
391 _tokens = omc_JSON_eat__if__next__token__matches(threadData, _D_24in_tokens, tmp1, &_matched);
392 /* skip box _tokens; list<LexerJSON.Token> */
393 if (out_matched) { *out_matched = mmc_mk_icon(_matched); }
394 return _tokens;
395}
396
397PROTECTED_FUNCTION_STATIC modelica_integer omc_JSON_peek__id(threadData_t *threadData, modelica_metatype _tokens)
398{
399 modelica_integer _nextToken;
400 modelica_metatype _tok = NULL((void*)0);
401 MMC_SO()mmc_check_stackoverflow(threadData);
402 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
403 // _nextToken has no default value.
404 // _tok has no default value.
405#line 300 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
406 if(listEmpty(_tokens)((*(mmc_uint_t*)((void*)((char*)(_tokens) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
)
407#line 300 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
408 {
409#line 301 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
410 _nextToken = 1;
Value stored to '_nextToken' is never read
411#line 411 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
412 }
413
414#line 303 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
415 _tok = listHead(_tokens)boxptr_listHead(threadData,_tokens);
416#line 416 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
417
418#line 304 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
419 _nextToken = mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tok), 3))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_tok) - 3))) + (3)))))))) >> 1)
;
420#line 420 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
421 _return: OMC_LABEL_UNUSED__attribute__((unused))
422 return _nextToken;
423}
424PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_JSON_peek__id(threadData_t *threadData, modelica_metatype _tokens)
425{
426 modelica_integer _nextToken;
427 modelica_metatype out_nextToken;
428 _nextToken = omc_JSON_peek__id(threadData, _tokens);
429 out_nextToken = mmc_mk_icon(_nextToken);
430 return out_nextToken;
431}
432
433PROTECTED_FUNCTION_STATIC modelica_metatype omc_JSON_not__eof(threadData_t *threadData, modelica_metatype _D_24in_tokens)
434{
435 modelica_metatype _tokens = NULL((void*)0);
436 MMC_SO()mmc_check_stackoverflow(threadData);
437 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
438 _tokens = _D_24in_tokens;
439#line 288 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
440 if(listEmpty(_tokens)((*(mmc_uint_t*)((void*)((char*)(_tokens) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
)
441#line 288 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
442 {
443#line 289 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
444 omc_Error_addCompilerError(threadData, _OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)));
445#line 445 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
446
447#line 290 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
448 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
449#line 449 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
450 }
451 _return: OMC_LABEL_UNUSED__attribute__((unused))
452 return _tokens;
453}
454
455PROTECTED_FUNCTION_STATIC void omc_JSON_reportErrors(threadData_t *threadData, modelica_metatype _tokens)
456{
457 modelica_integer _i;
458 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
459 MMC_SO()mmc_check_stackoverflow(threadData);
460 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
461 _i = ((modelica_integer) 0);
462#line 273 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
463 {
464#line 273 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
465 modelica_metatype _t;
466#line 273 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
467 for (tmpMeta[0] = _tokens; !listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[0]=MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
)
468#line 273 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
469 {
470#line 273 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
471 _t = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
472#line 274 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
473 _i = ((modelica_integer) 1) + _i;
474#line 474 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
475
476#line 275 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
477 if((_i > ((modelica_integer) 10)))
478#line 275 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
479 {
480#line 276 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
481 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
482#line 276 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
483 omc_Error_addMessage(threadData, _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)), tmpMeta[1]);
484#line 484 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
485 }
486
487#line 278 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
488 tmpMeta[1] = mmc_mk_cons(omc_LexerJSON_tokenContent(threadData, _t), MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
489#line 278 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
490 omc_Error_addSourceMessage(threadData, _OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)), tmpMeta[1], omc_LexerJSON_tokenSourceInfo(threadData, _t));
491#line 491 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
492 }
493 }
494
495#line 280 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
496 if((!listEmpty(_tokens)((*(mmc_uint_t*)((void*)((char*)(_tokens) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
))
497#line 280 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
498 {
499#line 281 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
500 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
501#line 501 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
502 }
503 _return: OMC_LABEL_UNUSED__attribute__((unused))
504 return;
505}
506
507DLLExport
508modelica_metatype omc_JSON_parse__object(threadData_t *threadData, modelica_metatype _inTokens, modelica_metatype *out_tokens)
509{
510 modelica_metatype _value = NULL((void*)0);
511 modelica_metatype _tokens = NULL((void*)0);
512 modelica_metatype _tok = NULL((void*)0);
513 modelica_metatype _tree = NULL((void*)0);
514 modelica_metatype _orderedValues = NULL((void*)0);
515 modelica_metatype _orderedKeys = NULL((void*)0);
516 modelica_string _key = NULL((void*)0);
517 modelica_boolean _cont;
518 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
519 MMC_SO()mmc_check_stackoverflow(threadData);
520 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
521 // _value has no default value.
522 _tokens = _inTokens;
523 // _tok has no default value.
524 _tree = _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3));
525 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
526 _orderedValues = tmpMeta[0];
527 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
528 _orderedKeys = tmpMeta[1];
529 // _key has no default value.
530 // _cont has no default value.
531#line 251 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
532 _tokens = omc_JSON_parse__expected__token(threadData, _tokens, 10);
533#line 533 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
534
535#line 252 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
536 _cont = (omc_JSON_peek__id(threadData, _tokens) != 3);
537#line 537 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
538
539#line 253 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
540 while(1)
541#line 253 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
542 {
543#line 253 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
544 if(!_cont) break;
545#line 254 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
546 /* Pattern-matching tuple assignment */
547#line 254 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
548 tmpMeta[3] = omc_JSON_parse__string(threadData, _tokens, &tmpMeta[2]);
549#line 254 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
550 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],2,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((1 +1)
<< 10) + (((2 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
551#line 254 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
552 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (2)))))
;
553#line 254 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
554 _key = tmpMeta[4];
555#line 254 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
556 _tokens = tmpMeta[2];
557#line 557 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
558
559#line 255 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
560 _tokens = omc_JSON_parse__expected__token(threadData, _tokens, 4);
561#line 561 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
562
563#line 256 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
564 _value = omc_JSON_parse__value(threadData, _tokens ,&_tokens);
565#line 565 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
566
567#line 257 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
568 _tree = omc_JSON_AvlTree_add(threadData, _tree, _key, _value, boxvar_JSON_AvlTree_addConflictDefault((void*)((char*)(&(boxvar_lit_JSON_AvlTree_addConflictDefault
).header) + 3))
);
569#line 569 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
570
571#line 258 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
572 tmpMeta[2] = mmc_mk_cons(_key, _orderedKeys);
573#line 258 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
574 _orderedKeys = tmpMeta[2];
575#line 575 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
576
577#line 259 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
578 tmpMeta[2] = mmc_mk_cons(_value, _orderedValues);
579#line 259 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
580 _orderedValues = tmpMeta[2];
581#line 581 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
582
583#line 260 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
584 _tokens = omc_JSON_eat__if__next__token__matches(threadData, _tokens, 5 ,&_cont);
585#line 585 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
586 }
587
588#line 262 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
589 _tokens = omc_JSON_parse__expected__token(threadData, _tokens, 11);
590#line 590 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
591
592#line 263 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
593 tmpMeta[2] = mmc_mk_box4(3, &JSON_OBJECT__desc, listReverseInPlace(_orderedKeys), listReverseInPlace(_orderedValues), _tree);
594#line 263 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
595 _value = tmpMeta[2];
596#line 596 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
597 _return: OMC_LABEL_UNUSED__attribute__((unused))
598 if (out_tokens) { *out_tokens = _tokens; }
599 return _value;
600}
601
602DLLExport
603modelica_metatype omc_JSON_parse__array(threadData_t *threadData, modelica_metatype _inTokens, modelica_metatype *out_tokens)
604{
605 modelica_metatype _value = NULL((void*)0);
606 modelica_metatype _tokens = NULL((void*)0);
607 modelica_metatype _tok = NULL((void*)0);
608 modelica_metatype _values = NULL((void*)0);
609 modelica_boolean _cont;
610 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
611 MMC_SO()mmc_check_stackoverflow(threadData);
612 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
613 // _value has no default value.
614 _tokens = _inTokens;
615 // _tok has no default value.
616 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
617 _values = tmpMeta[0];
618 // _cont has no default value.
619#line 231 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
620 _tokens = omc_JSON_parse__expected__token(threadData, _tokens, 2);
621#line 621 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
622
623#line 232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
624 _cont = (omc_JSON_peek__id(threadData, _tokens) != 3);
625#line 625 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
626
627#line 233 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
628 while(1)
629#line 233 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
630 {
631#line 233 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
632 if(!_cont) break;
633#line 234 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
634 _value = omc_JSON_parse__value(threadData, _tokens ,&_tokens);
635#line 635 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
636
637#line 235 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
638 tmpMeta[1] = mmc_mk_cons(_value, _values);
639#line 235 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
640 _values = tmpMeta[1];
641#line 641 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
642
643#line 236 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
644 _tokens = omc_JSON_eat__if__next__token__matches(threadData, _tokens, 5 ,&_cont);
645#line 645 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
646 }
647
648#line 238 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
649 _tokens = omc_JSON_parse__expected__token(threadData, _tokens, 3);
650#line 650 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
651
652#line 239 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
653 tmpMeta[1] = mmc_mk_box2(4, &JSON_ARRAY__desc, listReverseInPlace(_values));
654#line 239 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
655 _value = tmpMeta[1];
656#line 656 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
657 _return: OMC_LABEL_UNUSED__attribute__((unused))
658 if (out_tokens) { *out_tokens = _tokens; }
659 return _value;
660}
661
662DLLExport
663modelica_metatype omc_JSON_parse__number(threadData_t *threadData, modelica_metatype _inTokens, modelica_metatype *out_tokens)
664{
665 modelica_metatype _value = NULL((void*)0);
666 modelica_metatype _tokens = NULL((void*)0);
667 modelica_metatype _tok = NULL((void*)0);
668 modelica_metatype _values = NULL((void*)0);
669 modelica_boolean _cont;
670 modelica_string _content = NULL((void*)0);
671 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
672 MMC_SO()mmc_check_stackoverflow(threadData);
673 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
674 // _value has no default value.
675 _tokens = _inTokens;
676 // _tok has no default value.
677 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
678 _values = tmpMeta[0];
679 // _cont has no default value.
680 // _content has no default value.
681#line 215 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
682 omc_JSON_not__eof(threadData, _tokens);
683#line 683 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
684
685#line 216 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
686 /* Pattern-matching assignment */
687#line 216 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
688 tmpMeta[1] = _tokens;
689#line 216 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
690 if (listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
691#line 216 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
692 tmpMeta[2] = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
693#line 216 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
694 tmpMeta[3] = MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
695#line 216 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
696 _tok = tmpMeta[2];
697#line 216 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
698 _tokens = tmpMeta[3];
699#line 699 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
700
701#line 217 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
702 if((mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tok), 3))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_tok) - 3))) + (3)))))))) >> 1)
!= 9))
703#line 217 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
704 {
705#line 218 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
706 omc_JSON_errorExpected(threadData, _OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)), _tok);
707#line 707 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
708 }
709
710#line 220 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
711 _content = omc_LexerJSON_tokenContent(threadData, _tok);
712#line 712 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
713
714#line 221 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
715 tmpMeta[1] = mmc_mk_box2(7, &JSON_NUMBER__desc, mmc_mk_realmmc_mk_rcon(stringReal(_content)nobox_stringReal(threadData,_content)));
716#line 221 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
717 _value = tmpMeta[1];
718#line 718 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
719 _return: OMC_LABEL_UNUSED__attribute__((unused))
720 if (out_tokens) { *out_tokens = _tokens; }
721 return _value;
722}
723
724DLLExport
725modelica_metatype omc_JSON_parse__integer(threadData_t *threadData, modelica_metatype _inTokens, modelica_metatype *out_tokens)
726{
727 modelica_metatype _value = NULL((void*)0);
728 modelica_metatype _tokens = NULL((void*)0);
729 modelica_metatype _tok = NULL((void*)0);
730 modelica_metatype _values = NULL((void*)0);
731 modelica_boolean _cont;
732 modelica_string _content = NULL((void*)0);
733 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
734 MMC_SO()mmc_check_stackoverflow(threadData);
735 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
736 // _value has no default value.
737 _tokens = _inTokens;
738 // _tok has no default value.
739 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
740 _values = tmpMeta[0];
741 // _cont has no default value.
742 // _content has no default value.
743#line 199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
744 omc_JSON_not__eof(threadData, _tokens);
745#line 745 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
746
747#line 200 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
748 /* Pattern-matching assignment */
749#line 200 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
750 tmpMeta[1] = _tokens;
751#line 200 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
752 if (listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
753#line 200 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
754 tmpMeta[2] = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
755#line 200 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
756 tmpMeta[3] = MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
757#line 200 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
758 _tok = tmpMeta[2];
759#line 200 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
760 _tokens = tmpMeta[3];
761#line 761 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
762
763#line 201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
764 if((mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tok), 3))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_tok) - 3))) + (3)))))))) >> 1)
!= 7))
765#line 201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
766 {
767#line 202 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
768 omc_JSON_errorExpected(threadData, _OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3)), _tok);
769#line 769 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
770 }
771
772#line 204 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
773 _content = omc_LexerJSON_tokenContent(threadData, _tok);
774#line 774 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
775
776#line 205 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
777 tmpMeta[1] = mmc_mk_box2(6, &JSON_INTEGER__desc, mmc_mk_integermmc_mk_icon(stringInt(_content)nobox_stringInt(threadData,_content)));
778#line 205 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
779 _value = tmpMeta[1];
780#line 780 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
781 _return: OMC_LABEL_UNUSED__attribute__((unused))
782 if (out_tokens) { *out_tokens = _tokens; }
783 return _value;
784}
785
786DLLExport
787modelica_metatype omc_JSON_parse__string(threadData_t *threadData, modelica_metatype _inTokens, modelica_metatype *out_tokens)
788{
789 modelica_metatype _value = NULL((void*)0);
790 modelica_metatype _tokens = NULL((void*)0);
791 modelica_metatype _tok = NULL((void*)0);
792 modelica_metatype _values = NULL((void*)0);
793 modelica_boolean _cont;
794 modelica_string _content = NULL((void*)0);
795 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
796 MMC_SO()mmc_check_stackoverflow(threadData);
797 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
798 // _value has no default value.
799 _tokens = _inTokens;
800 // _tok has no default value.
801 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
802 _values = tmpMeta[0];
803 // _cont has no default value.
804 // _content has no default value.
805#line 178 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
806 omc_JSON_not__eof(threadData, _tokens);
807#line 807 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
808
809#line 179 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
810 /* Pattern-matching assignment */
811#line 179 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
812 tmpMeta[1] = _tokens;
813#line 179 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
814 if (listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
815#line 179 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
816 tmpMeta[2] = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
817#line 179 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
818 tmpMeta[3] = MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
819#line 179 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
820 _tok = tmpMeta[2];
821#line 179 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
822 _tokens = tmpMeta[3];
823#line 823 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
824
825#line 180 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
826 if((mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tok), 3))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_tok) - 3))) + (3)))))))) >> 1)
!= 12))
827#line 180 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
828 {
829#line 181 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
830 omc_JSON_errorExpected(threadData, _OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3)), _tok);
831#line 831 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
832 }
833
834#line 183 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
835 _content = omc_LexerJSON_tokenContent(threadData, _tok);
836#line 836 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
837
838#line 184 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
839 if((stringLength(_content)(((((*(mmc_uint_t*)((void*)((char*)(_content) - 3)))) >>
(3)) - 8))
== ((modelica_integer) 2)))
840#line 184 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
841 {
842#line 185 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
843 _content = _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3));
844#line 844 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
845 }
846 else
847 {
848#line 187 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
849 _content = omc_System_unescapedString(threadData, substring(_content, ((modelica_integer) 2), ((modelica_integer) -1) + stringLength(_content))boxptr_substring(threadData,_content,mmc_mk_icon(((modelica_integer
) 2)),mmc_mk_icon(((modelica_integer) -1) + (((((*(mmc_uint_t
*)((void*)((char*)(_content) - 3)))) >> (3)) - 8))))
);
850#line 850 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
851 }
852
853#line 189 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
854 tmpMeta[1] = mmc_mk_box2(5, &JSON_STRING__desc, _content);
855#line 189 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
856 _value = tmpMeta[1];
857#line 857 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
858 _return: OMC_LABEL_UNUSED__attribute__((unused))
859 if (out_tokens) { *out_tokens = _tokens; }
860 return _value;
861}
862
863DLLExport
864modelica_metatype omc_JSON_parse__value(threadData_t *threadData, modelica_metatype _inTokens, modelica_metatype *out_tokens)
865{
866 modelica_metatype _value = NULL((void*)0);
867 modelica_metatype _tokens = NULL((void*)0);
868 modelica_metatype _tok = NULL((void*)0);
869 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
870 MMC_SO()mmc_check_stackoverflow(threadData);
871 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
872 // _value has no default value.
873 _tokens = _inTokens;
874 // _tok has no default value.
875#line 153 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
876 omc_JSON_not__eof(threadData, _tokens);
877#line 877 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
878
879#line 154 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
880 /* Pattern-matching assignment */
881#line 154 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
882 tmpMeta[0] = _tokens;
883#line 154 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
884 if (listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
885#line 154 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
886 tmpMeta[1] = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
887#line 154 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
888 tmpMeta[2] = MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
889#line 154 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
890 _tok = tmpMeta[1];
891#line 154 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
892 _tokens = tmpMeta[2];
893#line 893 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
894
895#line 155 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
896
897#line 155 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
898
899#line 899 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
900 { /* match expression */
901 modelica_metatype tmp4_1;
902 tmp4_1 = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tok), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_tok) - 3))) + (
3)))))
);
903 {
904 volatile mmc_switch_type tmp4;
905 int tmp5;
906 tmp4 = 0;
907 for (; tmp4 < 9; tmp4++) {
908 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
909 case 0: {
910 modelica_integer tmp6;
911 tmp6 = mmc_unbox_integer(tmp4_1)(((mmc_sint_t) (tmp4_1)) >> 1);
912 if (12 != tmp6) goto tmp3_end;
913 /* Pattern matching succeeded */
914#line 156 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
915 tmpMeta[0+0] = omc_JSON_parse__string(threadData, _inTokens, &tmpMeta[0+1]);
916#line 916 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
917 goto tmp3_done;
918 }
919 case 1: {
920 modelica_integer tmp7;
921 tmp7 = mmc_unbox_integer(tmp4_1)(((mmc_sint_t) (tmp4_1)) >> 1);
922 if (7 != tmp7) goto tmp3_end;
923 /* Pattern matching succeeded */
924#line 157 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
925 tmpMeta[0+0] = omc_JSON_parse__integer(threadData, _inTokens, &tmpMeta[0+1]);
926#line 926 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
927 goto tmp3_done;
928 }
929 case 2: {
930 modelica_integer tmp8;
931 tmp8 = mmc_unbox_integer(tmp4_1)(((mmc_sint_t) (tmp4_1)) >> 1);
932 if (9 != tmp8) goto tmp3_end;
933 /* Pattern matching succeeded */
934#line 158 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
935 tmpMeta[0+0] = omc_JSON_parse__number(threadData, _inTokens, &tmpMeta[0+1]);
936#line 936 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
937 goto tmp3_done;
938 }
939 case 3: {
940 modelica_integer tmp9;
941 tmp9 = mmc_unbox_integer(tmp4_1)(((mmc_sint_t) (tmp4_1)) >> 1);
942 if (10 != tmp9) goto tmp3_end;
943 /* Pattern matching succeeded */
944#line 159 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
945 tmpMeta[0+0] = omc_JSON_parse__object(threadData, _inTokens, &tmpMeta[0+1]);
946#line 946 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
947 goto tmp3_done;
948 }
949 case 4: {
950 modelica_integer tmp10;
951 tmp10 = mmc_unbox_integer(tmp4_1)(((mmc_sint_t) (tmp4_1)) >> 1);
952 if (2 != tmp10) goto tmp3_end;
953 /* Pattern matching succeeded */
954#line 160 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
955 tmpMeta[0+0] = omc_JSON_parse__array(threadData, _inTokens, &tmpMeta[0+1]);
956#line 956 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
957 goto tmp3_done;
958 }
959 case 5: {
960 modelica_integer tmp11;
961 tmp11 = mmc_unbox_integer(tmp4_1)(((mmc_sint_t) (tmp4_1)) >> 1);
962 if (13 != tmp11) goto tmp3_end;
963 /* Pattern matching succeeded */
964#line 161 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
965 tmpMeta[0+0] = _OMC_LIT24((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3));
966#line 161 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
967 tmpMeta[0+1] = _tokens;
968#line 968 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
969 goto tmp3_done;
970 }
971 case 6: {
972 modelica_integer tmp12;
973 tmp12 = mmc_unbox_integer(tmp4_1)(((mmc_sint_t) (tmp4_1)) >> 1);
974 if (6 != tmp12) goto tmp3_end;
975 /* Pattern matching succeeded */
976#line 162 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
977 tmpMeta[0+0] = _OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3));
978#line 162 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
979 tmpMeta[0+1] = _tokens;
980#line 980 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
981 goto tmp3_done;
982 }
983 case 7: {
984 modelica_integer tmp13;
985 tmp13 = mmc_unbox_integer(tmp4_1)(((mmc_sint_t) (tmp4_1)) >> 1);
986 if (8 != tmp13) goto tmp3_end;
987 /* Pattern matching succeeded */
988#line 163 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
989 tmpMeta[0+0] = _OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3));
990#line 163 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
991 tmpMeta[0+1] = _tokens;
992#line 992 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
993 goto tmp3_done;
994 }
995 case 8: {
996
997 /* Pattern matching succeeded */
998#line 166 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
999 omc_JSON_errorExpected(threadData, _OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)), _tok);
1000#line 1000 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1001#line 167 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1002 goto goto_2;
1003#line 1003 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1004 goto tmp3_done;
1005 }
1006 }
1007 goto tmp3_end;
1008 tmp3_end: ;
1009 }
1010 goto goto_2;
1011 goto_2:;
1012 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1013 goto tmp3_done;
1014 tmp3_done:;
1015 }
1016 }
1017 _value = tmpMeta[0+0];
1018 _tokens = tmpMeta[0+1];
1019 _return: OMC_LABEL_UNUSED__attribute__((unused))
1020 if (out_tokens) { *out_tokens = _tokens; }
1021 return _value;
1022}
1023
1024DLLExport
1025modelica_metatype omc_JSON_parse__value__check__empty(threadData_t *threadData, modelica_metatype _inTokens)
1026{
1027 modelica_metatype _value = NULL((void*)0);
1028 modelica_metatype _tokens = NULL((void*)0);
1029 MMC_SO()mmc_check_stackoverflow(threadData);
1030 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1031 // _value has no default value.
1032 // _tokens has no default value.
1033#line 146 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1034 _value = omc_JSON_parse__value(threadData, _inTokens ,&_tokens);
1035#line 1035 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1036
1037#line 147 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1038 omc_JSON_check__empty(threadData, _tokens);
1039#line 1039 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1040 _return: OMC_LABEL_UNUSED__attribute__((unused))
1041 return _value;
1042}
1043
1044DLLExport
1045modelica_metatype omc_JSON_parse(threadData_t *threadData, modelica_string _content, modelica_string _fileName)
1046{
1047 modelica_metatype _value = NULL((void*)0);
1048 modelica_metatype _tokens = NULL((void*)0);
1049 modelica_metatype _errTokens = NULL((void*)0);
1050 MMC_SO()mmc_check_stackoverflow(threadData);
1051 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1052 // _value has no default value.
1053 // _tokens has no default value.
1054 // _errTokens has no default value.
1055#line 135 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1056 _tokens = omc_LexerJSON_scanString(threadData, _content, _fileName ,&_errTokens);
1057#line 1057 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1058
1059#line 136 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1060 omc_JSON_reportErrors(threadData, _errTokens);
1061#line 1061 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1062
1063#line 137 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1064 _value = omc_JSON_parse__value__check__empty(threadData, _tokens);
1065#line 1065 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1066 _return: OMC_LABEL_UNUSED__attribute__((unused))
1067 return _value;
1068}
1069
1070DLLExport
1071modelica_metatype omc_JSON_parseFile(threadData_t *threadData, modelica_string _fileName)
1072{
1073 modelica_metatype _value = NULL((void*)0);
1074 modelica_metatype _tokens = NULL((void*)0);
1075 modelica_metatype _errTokens = NULL((void*)0);
1076 MMC_SO()mmc_check_stackoverflow(threadData);
1077 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1078 // _value has no default value.
1079 // _tokens has no default value.
1080 // _errTokens has no default value.
1081#line 123 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1082 _tokens = omc_LexerJSON_scan(threadData, _fileName ,&_errTokens);
1083#line 1083 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1084
1085#line 124 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1086 omc_JSON_reportErrors(threadData, _errTokens);
1087#line 1087 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1088
1089#line 125 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1090 _value = omc_JSON_parse__value__check__empty(threadData, _tokens);
1091#line 1091 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1092 _return: OMC_LABEL_UNUSED__attribute__((unused))
1093 return _value;
1094}
1095
1096DLLExport
1097modelica_string omc_JSON_toString(threadData_t *threadData, modelica_metatype _value)
1098{
1099 modelica_string _str = NULL((void*)0);
1100 modelica_string tmp1 = 0;
1101 modelica_metatype tmpMeta[7] __attribute__((unused)) = {0};
1102 MMC_SO()mmc_check_stackoverflow(threadData);
1103 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1104 // _str has no default value.
1105#line 1105 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1106 { /* match expression */
1107 modelica_metatype tmp4_1;
1108 tmp4_1 = _value;
1109 {
1110 int tmp4;
1111 {
1112 switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> 2
) & 255))
) {
1113 case 5: {
1114
1115 /* Pattern matching succeeded */
1116#line 97 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1117 tmpMeta[0] = stringAppend(_OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3)),omc_System_escapedString(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_value), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_value) - 3))) +
(2)))))
), 1));
1118#line 97 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1119 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3)));
1120#line 97 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1121 tmp1 = tmpMeta[1];
1122#line 1122 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1123 goto tmp3_done;
1124 }
1125 case 8: {
1126
1127 /* Pattern matching succeeded */
1128#line 98 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1129 tmp1 = _OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3));
1130#line 1130 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1131 goto tmp3_done;
1132 }
1133 case 9: {
1134
1135 /* Pattern matching succeeded */
1136#line 99 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1137 tmp1 = _OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3));
1138#line 1138 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1139 goto tmp3_done;
1140 }
1141 case 10: {
1142
1143 /* Pattern matching succeeded */
1144#line 100 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1145 tmp1 = _OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3));
1146#line 1146 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1147 goto tmp3_done;
1148 }
1149 case 6: {
1150 modelica_string tmp5;
1151
1152 /* Pattern matching succeeded */
1153#line 101 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1154 tmp5 = modelica_integer_to_modelica_string(mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_value), 2))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_value) - 3))) + (2)))))))) >> 1)
, ((modelica_integer) 0), 1);
1155#line 101 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1156 tmp1 = tmp5;
1157#line 1157 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1158 goto tmp3_done;
1159 }
1160 case 7: {
1161 modelica_string tmp6;
1162
1163 /* Pattern matching succeeded */
1164#line 102 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1165 tmp6 = modelica_real_to_modelica_string(mmc_unbox_real((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_value), 2))))mmc_prim_get_real(((*(void**)(((void*)((void**)(((void*)((char
*)(_value) - 3))) + (2)))))))
, ((modelica_integer) 6), ((modelica_integer) 0), 1);
1166#line 102 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1167 tmp1 = tmp6;
1168#line 1168 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1169 goto tmp3_done;
1170 }
1171 case 4: {
1172
1173 /* Pattern matching succeeded */
1174#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1175 {
1176#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1177 modelica_metatype _D_24tmpVar1;
1178#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1179 modelica_metatype* tmp7;
1180#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1181 modelica_string _D_24tmpVar0;
1182#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1183 int tmp8;
1184#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1185 modelica_metatype _v_loopVar = 0;
1186#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1187 modelica_metatype _v;
1188#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1189 _v_loopVar = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_value), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_value) - 3))) +
(2)))))
);
1190#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1191 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1192#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1193 _D_24tmpVar1 = tmpMeta[1]; /* defaultValue */
1194#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1195 tmp7 = &_D_24tmpVar1;
1196#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1197 while(1) {
1198#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1199 tmp8 = 1;
1200#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1201 if (!listEmpty(_v_loopVar)((*(mmc_uint_t*)((void*)((char*)(_v_loopVar) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) {
1202#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1203 _v = MMC_CAR(_v_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_v_loopVar) - 3
))) + (1)))))
;
1204#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1205 _v_loopVar = MMC_CDR(_v_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_v_loopVar) - 3
))) + (2)))))
;
1206#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1207 tmp8--;
1208#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1209 }
1210#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1211 if (tmp8 == 0) {
1212#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1213 _D_24tmpVar0 = omc_JSON_toString(threadData, _v);
1214#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1215 *tmp7 = mmc_mk_cons(_D_24tmpVar0,0);
1216#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1217 tmp7 = &MMC_CDR(*tmp7)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp7) - 3))) +
(2)))))
;
1218#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1219 } else if (tmp8 == 1) {
1220#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1221 break;
1222#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1223 } else {
1224#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1225 goto goto_2;
1226#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1227 }
1228#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1229 }
1230#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1231 *tmp7 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
1232#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1233 tmpMeta[0] = _D_24tmpVar1;
1234#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1235 }
1236#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1237 tmpMeta[2] = stringAppend(_OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)),stringDelimitList(tmpMeta[0], _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))));
1238#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1239 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)));
1240#line 103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1241 tmp1 = tmpMeta[3];
1242#line 1242 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1243 goto tmp3_done;
1244 }
1245 case 3: {
1246
1247 /* Pattern matching succeeded */
1248#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1249 {
1250#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1251 modelica_metatype _D_24tmpVar3;
1252#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1253 modelica_metatype* tmp9;
1254#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1255 modelica_string _D_24tmpVar2;
1256#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1257 int tmp10;
1258#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1259 modelica_metatype _v_loopVar = 0;
1260#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1261 modelica_metatype _v;
1262#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1263 modelica_metatype _k_loopVar = 0;
1264#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1265 modelica_metatype _k;
1266#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1267 _v_loopVar = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_value), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_value) - 3))) +
(3)))))
);
1268#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1269 _k_loopVar = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_value), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_value) - 3))) +
(2)))))
);
1270#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1271 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1272#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1273 _D_24tmpVar3 = tmpMeta[1]; /* defaultValue */
1274#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1275 tmp9 = &_D_24tmpVar3;
1276#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1277 while(1) {
1278#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1279 tmp10 = 2;
1280#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1281 if (!listEmpty(_v_loopVar)((*(mmc_uint_t*)((void*)((char*)(_v_loopVar) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) {
1282#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1283 _v = MMC_CAR(_v_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_v_loopVar) - 3
))) + (1)))))
;
1284#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1285 _v_loopVar = MMC_CDR(_v_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_v_loopVar) - 3
))) + (2)))))
;
1286#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1287 tmp10--;
1288#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1289 }if (!listEmpty(_k_loopVar)((*(mmc_uint_t*)((void*)((char*)(_k_loopVar) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) {
1290#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1291 _k = MMC_CAR(_k_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_k_loopVar) - 3
))) + (1)))))
;
1292#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1293 _k_loopVar = MMC_CDR(_k_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_k_loopVar) - 3
))) + (2)))))
;
1294#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1295 tmp10--;
1296#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1297 }
1298#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1299 if (tmp10 == 0) {
1300#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1301 tmpMeta[2] = stringAppend(_OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3)),omc_System_escapedString(threadData, _k, 1));
1302#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1303 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT37((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3)));
1304#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1305 tmpMeta[4] = stringAppend(tmpMeta[3],omc_JSON_toString(threadData, _v));
1306#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1307 _D_24tmpVar2 = tmpMeta[4];
1308#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1309 *tmp9 = mmc_mk_cons(_D_24tmpVar2,0);
1310#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1311 tmp9 = &MMC_CDR(*tmp9)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp9) - 3))) +
(2)))))
;
1312#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1313 } else if (tmp10 == 2) {
1314#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1315 break;
1316#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1317 } else {
1318#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1319 goto goto_2;
1320#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1321 }
1322#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1323 }
1324#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1325 *tmp9 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
1326#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1327 tmpMeta[0] = _D_24tmpVar3;
1328#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1329 }
1330#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1331 tmpMeta[5] = stringAppend(_OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3)),stringDelimitList(tmpMeta[0], _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))));
1332#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1333 tmpMeta[6] = stringAppend(tmpMeta[5],_OMC_LIT38((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3)));
1334#line 104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1335 tmp1 = tmpMeta[6];
1336#line 1336 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1337 goto tmp3_done;
1338 }
1339 default:
1340 tmp3_default: OMC_LABEL_UNUSED__attribute__((unused)); {
1341
1342 /* Pattern matching succeeded */
1343#line 105 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
1344 tmp1 = mmc_anyString(_value);
1345#line 1345 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1346 goto tmp3_done;
1347 }
1348 }
1349 goto tmp3_end;
1350 tmp3_end: ;
1351 }
1352 goto goto_2;
1353 goto_2:;
1354 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1355 goto tmp3_done;
1356 tmp3_done:;
1357 }
1358 }
1359 _str = tmp1;
1360 _return: OMC_LABEL_UNUSED__attribute__((unused))
1361 return _str;
1362}
1363
1364DLLExport
1365modelica_metatype omc_JSON_AvlTree_add(threadData_t *threadData, modelica_metatype _inTree, modelica_string _inKey, modelica_metatype _inValue, modelica_fnptr _conflictFunc)
1366{
1367 modelica_metatype _tree = NULL((void*)0);
1368 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
1369 MMC_SO()mmc_check_stackoverflow(threadData);
1370 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1371 _tree = _inTree;
1372#line 1372 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1373 { /* match expression */
1374 modelica_metatype tmp3_1;
1375 tmp3_1 = _tree;
1376 {
1377 modelica_string _key = NULL((void*)0);
1378 modelica_metatype _value = NULL((void*)0);
1379 modelica_integer _key_comp;
1380 modelica_metatype _outTree = NULL((void*)0);
1381 int tmp3;
1382 // _key has no default value.
1383 // _value has no default value.
1384 // _key_comp has no default value.
1385 // _outTree has no default value.
1386 {
1387 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
1388 case 5: {
1389
1390 /* Pattern matching succeeded */
1391#line 127 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1392 tmpMeta[1] = mmc_mk_box3(4, &JSON_AvlTree_Tree_LEAF__desc, _inKey, _inValue);
1393#line 127 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1394 tmpMeta[0] = tmpMeta[1];
1395#line 1395 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1396 goto tmp2_done;
1397 }
1398 case 3: {
1399 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
1400 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1401
1402 _key = tmpMeta[1];
1403 /* Pattern matching succeeded */
1404#line 131 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1405 _key_comp = omc_JSON_AvlTree_keyCompare(threadData, _inKey, _key);
1406#line 1406 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1407
1408#line 133 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1409 if((_key_comp == ((modelica_integer) -1)))
1410#line 133 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1411 {
1412#line 135 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1413 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(7))((void*)((char*)(mmc_alloc_words(7)) + 3));
1414#line 135 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1415 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_tree)((void*)((char*)(_tree) - 3)), 7*sizeof(modelica_metatype));
1416#line 135 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1417 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[5] = omc_JSON_AvlTree_add(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(5)))))
), _inKey, _inValue, ((modelica_fnptr) _conflictFunc));
1418#line 135 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1419 _tree = tmpMeta[1];
1420#line 1420 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1421 }
1422 else
1423 {
1424 if((_key_comp == ((modelica_integer) 1)))
1425 {
1426#line 138 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1427 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(7))((void*)((char*)(mmc_alloc_words(7)) + 3));
1428#line 138 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1429 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_tree)((void*)((char*)(_tree) - 3)), 7*sizeof(modelica_metatype));
1430#line 138 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1431 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[6] = omc_JSON_AvlTree_add(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(6)))))
), _inKey, _inValue, ((modelica_fnptr) _conflictFunc));
1432#line 138 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1433 _tree = tmpMeta[1];
1434#line 1434 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1435 }
1436 else
1437 {
1438#line 141 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1439 _value = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conflictFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_conflictFunc) -
3))) + (2)))))
) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype, modelica_string)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conflictFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_conflictFunc) -
3))) + (1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conflictFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_conflictFunc) -
3))) + (2)))))
), _inValue, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(3)))))
), _key) : ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_string)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conflictFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_conflictFunc) -
3))) + (1)))))
)) (threadData, _inValue, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(3)))))
), _key);
1440#line 1440 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1441
1442#line 142 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1443 if((!referenceEq((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 3))), _value)((((*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))
) + (3))))))) == (_value))
))
1444#line 142 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1445 {
1446#line 143 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1447 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(7))((void*)((char*)(mmc_alloc_words(7)) + 3));
1448#line 143 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1449 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_tree)((void*)((char*)(_tree) - 3)), 7*sizeof(modelica_metatype));
1450#line 143 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1451 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[3] = _value;
1452#line 143 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1453 _tree = tmpMeta[1];
1454#line 1454 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1455 }
1456 }
1457 }
1458#line 146 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1459 tmpMeta[0] = ((_key_comp == ((modelica_integer) 0))?_tree:omc_JSON_AvlTree_balance(threadData, _tree));
1460#line 1460 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1461 goto tmp2_done;
1462 }
1463 case 4: {
1464 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
1465 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1466
1467 _key = tmpMeta[1];
1468 /* Pattern matching succeeded */
1469#line 151 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1470 _key_comp = omc_JSON_AvlTree_keyCompare(threadData, _inKey, _key);
1471#line 1471 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1472
1473#line 153 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1474 if((_key_comp == ((modelica_integer) -1)))
1475#line 153 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1476 {
1477#line 155 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1478 tmpMeta[1] = mmc_mk_box3(4, &JSON_AvlTree_Tree_LEAF__desc, _inKey, _inValue);
1479#line 155 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1480 tmpMeta[2] = mmc_mk_box6(3, &JSON_AvlTree_Tree_NODE__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(3)))))
), mmc_mk_integermmc_mk_icon(((modelica_integer) 2)), tmpMeta[1], _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)));
1481#line 155 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1482 _outTree = tmpMeta[2];
1483#line 1483 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1484 }
1485 else
1486 {
1487 if((_key_comp == ((modelica_integer) 1)))
1488 {
1489#line 158 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1490 tmpMeta[1] = mmc_mk_box3(4, &JSON_AvlTree_Tree_LEAF__desc, _inKey, _inValue);
1491#line 158 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1492 tmpMeta[2] = mmc_mk_box6(3, &JSON_AvlTree_Tree_NODE__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(3)))))
), mmc_mk_integermmc_mk_icon(((modelica_integer) 2)), _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)), tmpMeta[1]);
1493#line 158 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1494 _outTree = tmpMeta[2];
1495#line 1495 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1496 }
1497 else
1498 {
1499#line 161 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1500 _value = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conflictFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_conflictFunc) -
3))) + (2)))))
) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype, modelica_string)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conflictFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_conflictFunc) -
3))) + (1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conflictFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_conflictFunc) -
3))) + (2)))))
), _inValue, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(3)))))
), _key) : ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_string)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conflictFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_conflictFunc) -
3))) + (1)))))
)) (threadData, _inValue, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(3)))))
), _key);
1501#line 1501 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1502
1503#line 162 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1504 if((!referenceEq((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 3))), _value)((((*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))
) + (3))))))) == (_value))
))
1505#line 162 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1506 {
1507#line 163 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1508 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(4))((void*)((char*)(mmc_alloc_words(4)) + 3));
1509#line 163 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1510 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_tree)((void*)((char*)(_tree) - 3)), 4*sizeof(modelica_metatype));
1511#line 163 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1512 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[3] = _value;
1513#line 163 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1514 _tree = tmpMeta[1];
1515#line 1515 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1516 }
1517
1518#line 165 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1519 _outTree = _tree;
1520#line 1520 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1521 }
1522 }
1523#line 167 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1524 tmpMeta[0] = ((_key_comp == ((modelica_integer) 0))?_outTree:omc_JSON_AvlTree_balance(threadData, _outTree));
1525#line 1525 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1526 goto tmp2_done;
1527 }
1528 }
1529 goto tmp2_end;
1530 tmp2_end: ;
1531 }
1532 goto goto_1;
1533 goto_1:;
1534 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1535 goto tmp2_done;
1536 tmp2_done:;
1537 }
1538 }
1539 _tree = tmpMeta[0];
1540 _return: OMC_LABEL_UNUSED__attribute__((unused))
1541 return _tree;
1542}
1543
1544DLLExport
1545modelica_metatype omc_JSON_AvlTree_addConflictDefault(threadData_t *threadData, modelica_metatype _newValue, modelica_metatype _oldValue, modelica_string _key)
1546{
1547 modelica_metatype _value = NULL((void*)0);
1548 MMC_SO()mmc_check_stackoverflow(threadData);
1549 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1550 // _value has no default value.
1551#line 91 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1552 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1553#line 1553 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1554 _return: OMC_LABEL_UNUSED__attribute__((unused))
1555 return _value;
1556}
1557
1558DLLExport
1559modelica_metatype omc_JSON_AvlTree_addConflictFail(threadData_t *threadData, modelica_metatype _newValue, modelica_metatype _oldValue, modelica_string _key)
1560{
1561 modelica_metatype _value = NULL((void*)0);
1562 MMC_SO()mmc_check_stackoverflow(threadData);
1563 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1564 // _value has no default value.
1565#line 91 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1566 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1567#line 1567 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1568 _return: OMC_LABEL_UNUSED__attribute__((unused))
1569 return _value;
1570}
1571
1572DLLExport
1573modelica_metatype omc_JSON_AvlTree_addConflictKeep(threadData_t *threadData, modelica_metatype _newValue, modelica_metatype _oldValue, modelica_string _key)
1574{
1575 modelica_metatype _value = NULL((void*)0);
1576 MMC_SO()mmc_check_stackoverflow(threadData);
1577 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1578 _value = _oldValue;
1579 _return: OMC_LABEL_UNUSED__attribute__((unused))
1580 return _value;
1581}
1582
1583DLLExport
1584modelica_metatype omc_JSON_AvlTree_addConflictReplace(threadData_t *threadData, modelica_metatype _newValue, modelica_metatype _oldValue, modelica_string _key)
1585{
1586 modelica_metatype _value = NULL((void*)0);
1587 MMC_SO()mmc_check_stackoverflow(threadData);
1588 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1589 _value = _newValue;
1590 _return: OMC_LABEL_UNUSED__attribute__((unused))
1591 return _value;
1592}
1593
1594DLLExport
1595modelica_metatype omc_JSON_AvlTree_addList(threadData_t *threadData, modelica_metatype _D_24in_tree, modelica_metatype _inValues, modelica_fnptr _conflictFunc)
1596{
1597 modelica_metatype _tree = NULL((void*)0);
1598 modelica_string _key = NULL((void*)0);
1599 modelica_metatype _value = NULL((void*)0);
1600 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
1601 MMC_SO()mmc_check_stackoverflow(threadData);
1602 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1603 _tree = _D_24in_tree;
1604 // _key has no default value.
1605 // _value has no default value.
1606#line 182 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1607 {
1608#line 182 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1609 modelica_metatype _t;
1610#line 182 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1611 for (tmpMeta[0] = _inValues; !listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[0]=MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
)
1612#line 182 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1613 {
1614#line 182 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1615 _t = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
1616#line 183 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1617 /* Pattern-matching assignment */
1618#line 183 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1619 tmpMeta[1] = _t;
1620#line 183 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1621 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
1622#line 183 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1623 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
1624#line 183 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1625 _key = tmpMeta[2];
1626#line 183 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1627 _value = tmpMeta[3];
1628#line 1628 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1629
1630#line 184 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1631 _tree = omc_JSON_AvlTree_add(threadData, _tree, _key, _value, ((modelica_fnptr) _conflictFunc));
1632#line 1632 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1633 }
1634 }
1635 _return: OMC_LABEL_UNUSED__attribute__((unused))
1636 return _tree;
1637}
1638
1639PROTECTED_FUNCTION_STATIC modelica_metatype omc_JSON_AvlTree_balance(threadData_t *threadData, modelica_metatype _inTree)
1640{
1641 modelica_metatype _outTree = NULL((void*)0);
1642 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1643 MMC_SO()mmc_check_stackoverflow(threadData);
1644 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1645 _outTree = _inTree;
1646#line 1646 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1647 { /* match expression */
1648 modelica_metatype tmp3_1;
1649 tmp3_1 = _outTree;
1650 {
1651 modelica_integer _lh;
1652 modelica_integer _rh;
1653 modelica_integer _diff;
1654 modelica_metatype _balanced_tree = NULL((void*)0);
1655 volatile mmc_switch_type tmp3;
1656 int tmp4;
1657 // _lh has no default value.
1658 // _rh has no default value.
1659 // _diff has no default value.
1660 // _balanced_tree has no default value.
1661 tmp3 = 0;
1662 for (; tmp3 < 2; tmp3++) {
1663 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1664 case 0: {
1665 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
1666
1667 /* Pattern matching succeeded */
1668#line 338 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
1669 tmpMeta[0] = _inTree;
1670#line 1670 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1671 goto tmp2_done;
1672 }
1673 case 1: {
1674 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
1675
1676 /* Pattern matching succeeded */
1677#line 342 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
1678 _lh = omc_JSON_AvlTree_height(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_outTree), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_outTree) - 3))
) + (5)))))
));
1679#line 1679 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1680
1681#line 343 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
1682 _rh = omc_JSON_AvlTree_height(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_outTree), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_outTree) - 3))
) + (6)))))
));
1683#line 1683 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1684
1685#line 344 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
1686 _diff = _lh - _rh;
1687#line 1687 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1688
1689#line 346 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
1690 if((_diff < ((modelica_integer) -1)))
1691#line 346 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
1692 {
1693#line 347 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
1694 _balanced_tree = ((omc_JSON_AvlTree_calculateBalance(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_outTree), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_outTree) - 3))
) + (6)))))
)) > ((modelica_integer) 0))?omc_JSON_AvlTree_rotateLeft(threadData, omc_JSON_AvlTree_setTreeLeftRight(threadData, _outTree, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_outTree), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_outTree) - 3))
) + (5)))))
), omc_JSON_AvlTree_rotateRight(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_outTree), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_outTree) - 3))
) + (6)))))
)))):omc_JSON_AvlTree_rotateLeft(threadData, _outTree));
1695#line 1695 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1696 }
1697 else
1698 {
1699 if((_diff > ((modelica_integer) 1)))
1700 {
1701#line 351 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
1702 _balanced_tree = ((omc_JSON_AvlTree_calculateBalance(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_outTree), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_outTree) - 3))
) + (5)))))
)) < ((modelica_integer) 0))?omc_JSON_AvlTree_rotateRight(threadData, omc_JSON_AvlTree_setTreeLeftRight(threadData, _outTree, omc_JSON_AvlTree_rotateLeft(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_outTree), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_outTree) - 3))
) + (5)))))
)), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_outTree), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_outTree) - 3))
) + (6)))))
))):omc_JSON_AvlTree_rotateRight(threadData, _outTree));
1703#line 1703 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1704 }
1705 else
1706 {
1707 if((mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_outTree), 4))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_outTree) - 3))) + (4)))))))) >> 1)
!= ((modelica_integer) 1) + modelica_integer_max((modelica_integer)(_lh),(modelica_integer)(_rh))))
1708 {
1709#line 355 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
1710 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(7))((void*)((char*)(mmc_alloc_words(7)) + 3));
1711#line 355 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
1712 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_outTree)((void*)((char*)(_outTree) - 3)), 7*sizeof(modelica_metatype));
1713#line 355 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
1714 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[4] = mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + modelica_integer_max((modelica_integer)(_lh),(modelica_integer)(_rh)));
1715#line 355 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
1716 _outTree = tmpMeta[1];
1717#line 1717 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1718
1719#line 356 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
1720 _balanced_tree = _outTree;
1721#line 1721 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1722 }
1723 else
1724 {
1725#line 358 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
1726 _balanced_tree = _outTree;
1727#line 1727 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1728 }
1729 }
1730 }
1731#line 360 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
1732 tmpMeta[0] = _balanced_tree;
1733#line 1733 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1734 goto tmp2_done;
1735 }
1736 }
1737 goto tmp2_end;
1738 tmp2_end: ;
1739 }
1740 goto goto_1;
1741 goto_1:;
1742 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1743 goto tmp2_done;
1744 tmp2_done:;
1745 }
1746 }
1747 _outTree = tmpMeta[0];
1748 _return: OMC_LABEL_UNUSED__attribute__((unused))
1749 return _outTree;
1750}
1751
1752PROTECTED_FUNCTION_STATIC modelica_integer omc_JSON_AvlTree_calculateBalance(threadData_t *threadData, modelica_metatype _inNode)
1753{
1754 modelica_integer _outBalance;
1755 modelica_integer tmp1 = 0;
1756 MMC_SO()mmc_check_stackoverflow(threadData);
1757 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1758 // _outBalance has no default value.
1759#line 1759 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1760 { /* match expression */
1761 modelica_metatype tmp4_1;
1762 tmp4_1 = _inNode;
1763 {
1764 int tmp4;
1765 {
1766 switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> 2
) & 255))
) {
1767 case 3: {
1768
1769 /* Pattern matching succeeded */
1770#line 383 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
1771 tmp1 = omc_JSON_AvlTree_height(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inNode), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_inNode) - 3)))
+ (5)))))
)) - omc_JSON_AvlTree_height(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inNode), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_inNode) - 3)))
+ (6)))))
));
1772#line 1772 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1773 goto tmp3_done;
1774 }
1775 case 4: {
1776
1777 /* Pattern matching succeeded */
1778#line 384 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
1779 tmp1 = ((modelica_integer) 0);
1780#line 1780 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1781 goto tmp3_done;
1782 }
1783 default:
1784 tmp3_default: OMC_LABEL_UNUSED__attribute__((unused)); {
1785
1786 /* Pattern matching succeeded */
1787#line 385 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
1788 tmp1 = ((modelica_integer) 0);
1789#line 1789 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1790 goto tmp3_done;
1791 }
1792 }
1793 goto tmp3_end;
1794 tmp3_end: ;
1795 }
1796 goto goto_2;
1797 goto_2:;
1798 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1799 goto tmp3_done;
1800 tmp3_done:;
1801 }
1802 }
1803 _outBalance = tmp1;
1804 _return: OMC_LABEL_UNUSED__attribute__((unused))
1805 return _outBalance;
1806}
1807PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_JSON_AvlTree_calculateBalance(threadData_t *threadData, modelica_metatype _inNode)
1808{
1809 modelica_integer _outBalance;
1810 modelica_metatype out_outBalance;
1811 _outBalance = omc_JSON_AvlTree_calculateBalance(threadData, _inNode);
1812 out_outBalance = mmc_mk_icon(_outBalance);
1813 return out_outBalance;
1814}
1815
1816DLLExport
1817modelica_metatype omc_JSON_AvlTree_fold(threadData_t *threadData, modelica_metatype _inTree, modelica_fnptr _inFunc, modelica_metatype _inStartValue)
1818{
1819 modelica_metatype _outResult = NULL((void*)0);
1820 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
1821 MMC_SO()mmc_check_stackoverflow(threadData);
1822 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1823 _outResult = _inStartValue;
1824#line 1824 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1825 { /* match expression */
1826 modelica_metatype tmp3_1;
1827 tmp3_1 = _inTree;
1828 {
1829 modelica_string _key = NULL((void*)0);
1830 modelica_metatype _value = NULL((void*)0);
1831 int tmp3;
1832 // _key has no default value.
1833 // _value has no default value.
1834 {
1835 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
1836 case 3: {
1837 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
1838 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1839 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
1840
1841 _key = tmpMeta[1];
1842 _value = tmpMeta[2];
1843 /* Pattern matching succeeded */
1844#line 430 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1845 _outResult = omc_JSON_AvlTree_fold(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inTree), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_inTree) - 3)))
+ (5)))))
), ((modelica_fnptr) _inFunc), _outResult);
1846#line 1846 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1847
1848#line 431 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1849 _outResult = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (2)))))
) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_string, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (2)))))
), _key, _value, _outResult) : ((modelica_metatype(*)(threadData_t*, modelica_string, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (1)))))
)) (threadData, _key, _value, _outResult);
1850#line 1850 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1851#line 432 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1852 /* Tail recursive call */
1853#line 432 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1854 _inTree = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inTree), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_inTree) - 3)))
+ (6)))))
);
1855#line 432 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1856 _inStartValue = _outResult;
1857#line 432 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1858 goto _tailrecursive;
1859#line 432 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1860 /* TODO: Make sure any eventual dead code below is never generated */
1861#line 1861 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1862 goto tmp2_done;
1863 }
1864 case 4: {
1865 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
1866 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1867 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
1868 _key = tmpMeta[1];
1869 _value = tmpMeta[2];
1870 /* Pattern matching succeeded */
1871#line 438 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1872 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (2)))))
) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_string, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (2)))))
), _key, _value, _outResult) : ((modelica_metatype(*)(threadData_t*, modelica_string, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (1)))))
)) (threadData, _key, _value, _outResult);
1873#line 1873 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1874 goto tmp2_done;
1875 }
1876 default:
1877 tmp2_default: OMC_LABEL_UNUSED__attribute__((unused)); {
1878
1879 /* Pattern matching succeeded */
1880#line 441 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1881 tmpMeta[0] = _outResult;
1882#line 1882 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1883 goto tmp2_done;
1884 }
1885 }
1886 goto tmp2_end;
1887 tmp2_end: ;
1888 }
1889 goto goto_1;
1890 goto_1:;
1891 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1892 goto tmp2_done;
1893 tmp2_done:;
1894 }
1895 }
1896 _outResult = tmpMeta[0];
1897 _return: OMC_LABEL_UNUSED__attribute__((unused))
1898 return _outResult;
1899}
1900
1901DLLExport
1902modelica_metatype omc_JSON_AvlTree_foldCond(threadData_t *threadData, modelica_metatype _tree, modelica_fnptr _foldFunc, modelica_metatype _D_24in_value)
1903{
1904 modelica_metatype _value = NULL((void*)0);
1905 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
1906 MMC_SO()mmc_check_stackoverflow(threadData);
1907 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1908 _value = _D_24in_value;
1909#line 1909 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1910 { /* match expression */
1911 modelica_metatype tmp3_1;
1912 tmp3_1 = _tree;
1913 {
1914 modelica_boolean _c;
1915 int tmp3;
1916 // _c has no default value.
1917 {
1918 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
1919 case 3: {
1920 modelica_integer tmp4;
1921
1922 /* Pattern matching succeeded */
1923#line 498 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1924 /* Pattern-matching tuple assignment */
1925#line 498 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1926 tmpMeta[2] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_foldFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_foldFunc) - 3)
)) + (2)))))
) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_foldFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_foldFunc) - 3)
)) + (1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_foldFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_foldFunc) - 3)
)) + (2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(3)))))
), _value, &tmpMeta[1]) : ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_foldFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_foldFunc) - 3)
)) + (1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(3)))))
), _value, &tmpMeta[1]);
1927#line 498 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1928 _value = tmpMeta[2];
1929#line 498 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1930 tmp4 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
1931#line 498 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1932 _c = tmp4 /* pattern as ty=Boolean */;
1933#line 1933 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1934
1935#line 500 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1936 if(_c)
1937#line 500 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1938 {
1939#line 501 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1940 _value = omc_JSON_AvlTree_foldCond(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(5)))))
), ((modelica_fnptr) _foldFunc), _value);
1941#line 1941 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1942
1943#line 502 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1944 _value = omc_JSON_AvlTree_foldCond(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(6)))))
), ((modelica_fnptr) _foldFunc), _value);
1945#line 1945 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1946 }
1947#line 504 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1948 tmpMeta[0] = _value;
1949#line 1949 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1950 goto tmp2_done;
1951 }
1952 case 4: {
1953
1954 /* Pattern matching succeeded */
1955#line 509 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1956 /* Pattern-matching tuple assignment */
1957#line 509 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1958 tmpMeta[1] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_foldFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_foldFunc) - 3)
)) + (2)))))
) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_foldFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_foldFunc) - 3)
)) + (1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_foldFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_foldFunc) - 3)
)) + (2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(3)))))
), _value, NULL((void*)0)) : ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_foldFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_foldFunc) - 3)
)) + (1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(3)))))
), _value, NULL((void*)0));
1959#line 509 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1960 _value = tmpMeta[1];
1961#line 1961 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1962#line 510 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1963 tmpMeta[0] = _value;
1964#line 1964 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1965 goto tmp2_done;
1966 }
1967 default:
1968 tmp2_default: OMC_LABEL_UNUSED__attribute__((unused)); {
1969
1970 /* Pattern matching succeeded */
1971#line 513 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
1972 tmpMeta[0] = _value;
1973#line 1973 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
1974 goto tmp2_done;
1975 }
1976 }
1977 goto tmp2_end;
1978 tmp2_end: ;
1979 }
1980 goto goto_1;
1981 goto_1:;
1982 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1983 goto tmp2_done;
1984 tmp2_done:;
1985 }
1986 }
1987 _value = tmpMeta[0];
1988 _return: OMC_LABEL_UNUSED__attribute__((unused))
1989 return _value;
1990}
1991
1992DLLExport
1993modelica_metatype omc_JSON_AvlTree_fold__2(threadData_t *threadData, modelica_metatype _tree, modelica_fnptr _foldFunc, modelica_metatype _D_24in_foldArg1, modelica_metatype _D_24in_foldArg2, modelica_metatype *out_foldArg2)
1994{
1995 modelica_metatype _foldArg1 = NULL((void*)0);
1996 modelica_metatype _foldArg2 = NULL((void*)0);
1997 MMC_SO()mmc_check_stackoverflow(threadData);
1998 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1999 _foldArg1 = _D_24in_foldArg1;
2000 _foldArg2 = _D_24in_foldArg2;
2001#line 2001 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2002 { /* match expression */
2003 modelica_metatype tmp3_1;
2004 tmp3_1 = _tree;
2005 {
2006 int tmp3;
2007 {
2008 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
2009 case 3: {
2010
2011 /* Pattern matching succeeded */
2012#line 462 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2013 _foldArg1 = omc_JSON_AvlTree_fold__2(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(5)))))
), ((modelica_fnptr) _foldFunc), _foldArg1, _foldArg2 ,&_foldArg2);
2014#line 2014 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2015
2016#line 463 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2017 _foldArg1 = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_foldFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_foldFunc) - 3)
)) + (2)))))
) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_foldFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_foldFunc) - 3)
)) + (1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_foldFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_foldFunc) - 3)
)) + (2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(3)))))
), _foldArg1, _foldArg2 ,&_foldArg2) : ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_foldFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_foldFunc) - 3)
)) + (1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(3)))))
), _foldArg1, _foldArg2 ,&_foldArg2);
2018#line 2018 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2019
2020#line 464 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2021 _foldArg1 = omc_JSON_AvlTree_fold__2(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(6)))))
), ((modelica_fnptr) _foldFunc), _foldArg1, _foldArg2 ,&_foldArg2);
2022#line 2022 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2023#line 2023 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2024 goto tmp2_done;
2025 }
2026 case 4: {
2027
2028 /* Pattern matching succeeded */
2029#line 470 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2030 _foldArg1 = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_foldFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_foldFunc) - 3)
)) + (2)))))
) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_foldFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_foldFunc) - 3)
)) + (1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_foldFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_foldFunc) - 3)
)) + (2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(3)))))
), _foldArg1, _foldArg2 ,&_foldArg2) : ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_foldFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_foldFunc) - 3)
)) + (1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(3)))))
), _foldArg1, _foldArg2 ,&_foldArg2);
2031#line 2031 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2032#line 2032 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2033 goto tmp2_done;
2034 }
2035 default:
2036 tmp2_default: OMC_LABEL_UNUSED__attribute__((unused)); {
2037
2038 /* Pattern matching succeeded */
2039#line 2039 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2040 goto tmp2_done;
2041 }
2042 }
2043 goto tmp2_end;
2044 tmp2_end: ;
2045 }
2046 goto goto_1;
2047 goto_1:;
2048 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2049 goto tmp2_done;
2050 tmp2_done:;
2051 }
2052 }
2053 ;
2054 _return: OMC_LABEL_UNUSED__attribute__((unused))
2055 if (out_foldArg2) { *out_foldArg2 = _foldArg2; }
2056 return _foldArg1;
2057}
2058
2059DLLExport
2060void omc_JSON_AvlTree_forEach(threadData_t *threadData, modelica_metatype _tree, modelica_fnptr _func)
2061{
2062 MMC_SO()mmc_check_stackoverflow(threadData);
2063 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2064#line 2064 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2065 { /* match expression */
2066 modelica_metatype tmp3_1;
2067 tmp3_1 = _tree;
2068 {
2069 int tmp3;
2070 {
2071 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
2072 case 3: {
2073
2074 /* Pattern matching succeeded */
2075#line 337 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2076 omc_JSON_AvlTree_forEach(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(5)))))
), ((modelica_fnptr) _func));
2077#line 2077 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2078
2079#line 338 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2080 (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_func), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_func) - 3))) +
(2)))))
) ? ((void(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_func), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_func) - 3))) +
(1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_func), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_func) - 3))) +
(2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(3)))))
)) : ((void(*)(threadData_t*, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_func), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_func) - 3))) +
(1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(3)))))
));
2081#line 2081 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2082
2083#line 339 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2084 /* Tail recursive call */
2085#line 339 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2086 _tree = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(6)))))
);
2087#line 339 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2088 goto _tailrecursive;
2089#line 339 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2090 /* TODO: Make sure any eventual dead code below is never generated */
2091#line 339 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2092 ;
2093#line 2093 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2094#line 2094 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2095 goto tmp2_done;
2096 }
2097 case 4: {
2098
2099 /* Pattern matching succeeded */
2100#line 345 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2101 (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_func), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_func) - 3))) +
(2)))))
) ? ((void(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_func), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_func) - 3))) +
(1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_func), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_func) - 3))) +
(2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(3)))))
)) : ((void(*)(threadData_t*, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_func), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_func) - 3))) +
(1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(3)))))
));
2102#line 2102 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2103#line 2103 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2104 goto tmp2_done;
2105 }
2106 case 5: {
2107
2108 /* Pattern matching succeeded */
2109#line 2109 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2110 goto tmp2_done;
2111 }
2112 }
2113 goto tmp2_end;
2114 tmp2_end: ;
2115 }
2116 goto goto_1;
2117 goto_1:;
2118 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2119 goto tmp2_done;
2120 tmp2_done:;
2121 }
2122 }
2123 ;
2124 _return: OMC_LABEL_UNUSED__attribute__((unused))
2125 return;
2126}
2127
2128DLLExport
2129modelica_metatype omc_JSON_AvlTree_fromList(threadData_t *threadData, modelica_metatype _inValues, modelica_fnptr _conflictFunc)
2130{
2131 modelica_metatype _tree = NULL((void*)0);
2132 modelica_string _key = NULL((void*)0);
2133 modelica_metatype _value = NULL((void*)0);
2134 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
2135 MMC_SO()mmc_check_stackoverflow(threadData);
2136 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2137 _tree = _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3));
2138 // _key has no default value.
2139 // _value has no default value.
2140#line 251 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2141 {
2142#line 251 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2143 modelica_metatype _t;
2144#line 251 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2145 for (tmpMeta[0] = _inValues; !listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[0]=MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
)
2146#line 251 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2147 {
2148#line 251 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2149 _t = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
2150#line 252 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2151 /* Pattern-matching assignment */
2152#line 252 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2153 tmpMeta[1] = _t;
2154#line 252 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2155 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
2156#line 252 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2157 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
2158#line 252 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2159 _key = tmpMeta[2];
2160#line 252 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2161 _value = tmpMeta[3];
2162#line 2162 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2163
2164#line 253 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2165 _tree = omc_JSON_AvlTree_add(threadData, _tree, _key, _value, ((modelica_fnptr) _conflictFunc));
2166#line 2166 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2167 }
2168 }
2169 _return: OMC_LABEL_UNUSED__attribute__((unused))
2170 return _tree;
2171}
2172
2173DLLExport
2174modelica_metatype omc_JSON_AvlTree_get(threadData_t *threadData, modelica_metatype _tree, modelica_string _key)
2175{
2176 modelica_metatype _value = NULL((void*)0);
2177 modelica_string _k = NULL((void*)0);
2178 modelica_string tmp1 = 0;
2179 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2180 MMC_SO()mmc_check_stackoverflow(threadData);
2181 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2182 // _value has no default value.
2183 // _k has no default value.
2184#line 2184 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2185 { /* match expression */
2186 modelica_metatype tmp4_1;
2187 tmp4_1 = _tree;
2188 {
2189 volatile mmc_switch_type tmp4;
2190 int tmp5;
2191 tmp4 = 0;
2192 for (; tmp4 < 2; tmp4++) {
2193 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2194 case 0: {
2195 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2196
2197 /* Pattern matching succeeded */
2198#line 206 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2199 tmp1 = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(2)))))
);
2200#line 2200 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2201 goto tmp3_done;
2202 }
2203 case 1: {
2204 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
2205
2206 /* Pattern matching succeeded */
2207#line 207 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2208 tmp1 = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(2)))))
);
2209#line 2209 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2210 goto tmp3_done;
2211 }
2212 }
2213 goto tmp3_end;
2214 tmp3_end: ;
2215 }
2216 goto goto_2;
2217 goto_2:;
2218 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2219 goto tmp3_done;
2220 tmp3_done:;
2221 }
2222 }
2223 _k = tmp1;
2224
2225#line 2225 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2226 { /* match expression */
2227 modelica_integer tmp8_1;modelica_metatype tmp8_2;
2228 tmp8_1 = omc_JSON_AvlTree_keyCompare(threadData, _key, _k);
2229 tmp8_2 = _tree;
2230 {
2231 volatile mmc_switch_type tmp8;
2232 int tmp9;
2233 tmp8 = 0;
2234 for (; tmp8 < 4; tmp8++) {
2235 switch (MMC_SWITCH_CAST(tmp8)(tmp8)) {
2236 case 0: {
2237 if (0 != tmp8_1) goto tmp7_end;
2238 if (mmc__uniontype__metarecord__typedef__equal(tmp8_2,1,2)((*(mmc_uint_t*)((void*)((char*)(tmp8_2) - 3)))==(((2 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp7_end;
2239
2240 /* Pattern matching succeeded */
2241#line 211 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2242 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(3)))))
);
2243#line 2243 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2244 goto tmp7_done;
2245 }
2246 case 1: {
2247 if (0 != tmp8_1) goto tmp7_end;
2248 if (mmc__uniontype__metarecord__typedef__equal(tmp8_2,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp8_2) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp7_end;
2249
2250 /* Pattern matching succeeded */
2251#line 212 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2252 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(3)))))
);
2253#line 2253 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2254 goto tmp7_done;
2255 }
2256 case 2: {
2257 if (1 != tmp8_1) goto tmp7_end;
2258 if (mmc__uniontype__metarecord__typedef__equal(tmp8_2,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp8_2) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp7_end;
2259
2260 /* Pattern matching succeeded */
2261#line 213 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2262 /* Tail recursive call */
2263#line 213 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2264 _tree = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(6)))))
);
2265#line 213 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2266 goto _tailrecursive;
2267#line 213 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2268 /* TODO: Make sure any eventual dead code below is never generated */
2269#line 2269 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2270 goto tmp7_done;
2271 }
2272 case 3: {
2273 if (-1 != tmp8_1) goto tmp7_end;
2274 if (mmc__uniontype__metarecord__typedef__equal(tmp8_2,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp8_2) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp7_end;
2275
2276 /* Pattern matching succeeded */
2277#line 214 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2278 /* Tail recursive call */
2279#line 214 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2280 _tree = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(5)))))
);
2281#line 214 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2282 goto _tailrecursive;
2283#line 214 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2284 /* TODO: Make sure any eventual dead code below is never generated */
2285#line 2285 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2286 goto tmp7_done;
2287 }
2288 }
2289 goto tmp7_end;
2290 tmp7_end: ;
2291 }
2292 goto goto_6;
2293 goto_6:;
2294 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2295 goto tmp7_done;
2296 tmp7_done:;
2297 }
2298 }
2299 _value = tmpMeta[0];
2300 _return: OMC_LABEL_UNUSED__attribute__((unused))
2301 return _value;
2302}
2303
2304DLLExport
2305modelica_metatype omc_JSON_AvlTree_getOpt(threadData_t *threadData, modelica_metatype _tree, modelica_string _key)
2306{
2307 modelica_metatype _value = NULL((void*)0);
2308 modelica_string _k = NULL((void*)0);
2309 modelica_string tmp1 = 0;
2310 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2311 MMC_SO()mmc_check_stackoverflow(threadData);
2312 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2313 // _value has no default value.
2314 // _k has no default value.
2315#line 2315 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2316 { /* match expression */
2317 modelica_metatype tmp4_1;
2318 tmp4_1 = _tree;
2319 {
2320 int tmp4;
2321 {
2322 switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> 2
) & 255))
) {
2323 case 3: {
2324
2325 /* Pattern matching succeeded */
2326#line 228 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2327 tmp1 = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(2)))))
);
2328#line 2328 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2329 goto tmp3_done;
2330 }
2331 case 4: {
2332
2333 /* Pattern matching succeeded */
2334#line 229 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2335 tmp1 = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(2)))))
);
2336#line 2336 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2337 goto tmp3_done;
2338 }
2339 default:
2340 tmp3_default: OMC_LABEL_UNUSED__attribute__((unused)); {
2341
2342 /* Pattern matching succeeded */
2343#line 230 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2344 tmp1 = _key;
2345#line 2345 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2346 goto tmp3_done;
2347 }
2348 }
2349 goto tmp3_end;
2350 tmp3_end: ;
2351 }
2352 goto goto_2;
2353 goto_2:;
2354 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2355 goto tmp3_done;
2356 tmp3_done:;
2357 }
2358 }
2359 _k = tmp1;
2360
2361#line 2361 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2362 { /* match expression */
2363 modelica_integer tmp7_1;modelica_metatype tmp7_2;
2364 tmp7_1 = omc_JSON_AvlTree_keyCompare(threadData, _key, _k);
2365 tmp7_2 = _tree;
2366 {
2367 volatile mmc_switch_type tmp7;
2368 int tmp8;
2369 tmp7 = 0;
2370 for (; tmp7 < 5; tmp7++) {
2371 switch (MMC_SWITCH_CAST(tmp7)(tmp7)) {
2372 case 0: {
2373 if (0 != tmp7_1) goto tmp6_end;
2374 if (mmc__uniontype__metarecord__typedef__equal(tmp7_2,1,2)((*(mmc_uint_t*)((void*)((char*)(tmp7_2) - 3)))==(((2 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp6_end;
2375
2376 /* Pattern matching succeeded */
2377#line 234 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2378 tmpMeta[0] = mmc_mk_some((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(3)))))
));
2379#line 2379 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2380 goto tmp6_done;
2381 }
2382 case 1: {
2383 if (0 != tmp7_1) goto tmp6_end;
2384 if (mmc__uniontype__metarecord__typedef__equal(tmp7_2,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp7_2) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp6_end;
2385
2386 /* Pattern matching succeeded */
2387#line 235 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2388 tmpMeta[0] = mmc_mk_some((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(3)))))
));
2389#line 2389 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2390 goto tmp6_done;
2391 }
2392 case 2: {
2393 if (1 != tmp7_1) goto tmp6_end;
2394 if (mmc__uniontype__metarecord__typedef__equal(tmp7_2,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp7_2) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp6_end;
2395
2396 /* Pattern matching succeeded */
2397#line 236 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2398 /* Tail recursive call */
2399#line 236 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2400 _tree = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(6)))))
);
2401#line 236 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2402 goto _tailrecursive;
2403#line 236 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2404 /* TODO: Make sure any eventual dead code below is never generated */
2405#line 2405 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2406 goto tmp6_done;
2407 }
2408 case 3: {
2409 if (-1 != tmp7_1) goto tmp6_end;
2410 if (mmc__uniontype__metarecord__typedef__equal(tmp7_2,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp7_2) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp6_end;
2411
2412 /* Pattern matching succeeded */
2413#line 237 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2414 /* Tail recursive call */
2415#line 237 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2416 _tree = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(5)))))
);
2417#line 237 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2418 goto _tailrecursive;
2419#line 237 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2420 /* TODO: Make sure any eventual dead code below is never generated */
2421#line 2421 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2422 goto tmp6_done;
2423 }
2424 case 4: {
2425
2426 /* Pattern matching succeeded */
2427#line 238 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2428 tmpMeta[0] = mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3));
2429#line 2429 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2430 goto tmp6_done;
2431 }
2432 }
2433 goto tmp6_end;
2434 tmp6_end: ;
2435 }
2436 goto goto_5;
2437 goto_5:;
2438 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2439 goto tmp6_done;
2440 tmp6_done:;
2441 }
2442 }
2443 _value = tmpMeta[0];
2444 _return: OMC_LABEL_UNUSED__attribute__((unused))
2445 return _value;
2446}
2447
2448DLLExport
2449modelica_boolean omc_JSON_AvlTree_hasKey(threadData_t *threadData, modelica_metatype _inTree, modelica_string _inKey)
2450{
2451 modelica_boolean _comp;
2452 modelica_string _key = NULL((void*)0);
2453 modelica_integer _key_comp;
2454 modelica_metatype _tree = NULL((void*)0);
2455 modelica_string tmp1 = 0;
2456 modelica_boolean tmp5 = 0;
2457 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2458 MMC_SO()mmc_check_stackoverflow(threadData);
2459 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2460 _comp = 0;
2461 // _key has no default value.
2462 // _key_comp has no default value.
2463 // _tree has no default value.
2464#line 2464 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2465 { /* match expression */
2466 modelica_metatype tmp4_1;
2467 tmp4_1 = _inTree;
2468 {
2469 int tmp4;
2470 {
2471 switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> 2
) & 255))
) {
2472 case 3: {
2473
2474 /* Pattern matching succeeded */
2475#line 154 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2476 tmp1 = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inTree), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inTree) - 3)))
+ (2)))))
);
2477#line 2477 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2478 goto tmp3_done;
2479 }
2480 case 4: {
2481
2482 /* Pattern matching succeeded */
2483#line 155 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2484 tmp1 = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inTree), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inTree) - 3)))
+ (2)))))
);
2485#line 2485 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2486 goto tmp3_done;
2487 }
2488 case 5: {
2489
2490 /* Pattern matching succeeded */
2491#line 156 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2492 goto _return;
2493#line 2493 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2494#line 156 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2495 goto goto_2;
2496#line 2496 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2497 goto tmp3_done;
2498 }
2499 }
2500 goto tmp3_end;
2501 tmp3_end: ;
2502 }
2503 goto goto_2;
2504 goto_2:;
2505 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2506 goto tmp3_done;
2507 tmp3_done:;
2508 }
2509 }
2510 _key = tmp1;
2511
2512#line 158 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2513 _key_comp = omc_JSON_AvlTree_keyCompare(threadData, _inKey, _key);
2514#line 2514 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2515
2516#line 2516 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2517 { /* match expression */
2518 modelica_integer tmp8_1;modelica_metatype tmp8_2;
2519 tmp8_1 = _key_comp;
2520 tmp8_2 = _inTree;
2521 {
2522 volatile mmc_switch_type tmp8;
2523 int tmp9;
2524 tmp8 = 0;
2525 for (; tmp8 < 4; tmp8++) {
2526 switch (MMC_SWITCH_CAST(tmp8)(tmp8)) {
2527 case 0: {
2528 if (0 != tmp8_1) goto tmp7_end;
2529
2530 /* Pattern matching succeeded */
2531#line 161 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2532 tmp5 = 1;
2533#line 2533 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2534 goto tmp7_done;
2535 }
2536 case 1: {
2537 if (1 != tmp8_1) goto tmp7_end;
2538 if (mmc__uniontype__metarecord__typedef__equal(tmp8_2,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp8_2) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp7_end;
2539 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp8_2), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp8_2) - 3))) +
(6)))))
;
2540 _tree = tmpMeta[0];
2541 /* Pattern matching succeeded */
2542#line 162 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2543 /* Tail recursive call */
2544#line 162 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2545 _inTree = _tree;
2546#line 162 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2547 goto _tailrecursive;
2548#line 162 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2549 /* TODO: Make sure any eventual dead code below is never generated */
2550#line 2550 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2551 goto tmp7_done;
2552 }
2553 case 2: {
2554 if (-1 != tmp8_1) goto tmp7_end;
2555 if (mmc__uniontype__metarecord__typedef__equal(tmp8_2,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp8_2) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp7_end;
2556 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp8_2), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp8_2) - 3))) +
(5)))))
;
2557
2558 _tree = tmpMeta[0];
2559 /* Pattern matching succeeded */
2560#line 163 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2561 /* Tail recursive call */
2562#line 163 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2563 _inTree = _tree;
2564#line 163 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2565 goto _tailrecursive;
2566#line 163 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2567 /* TODO: Make sure any eventual dead code below is never generated */
2568#line 2568 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2569 goto tmp7_done;
2570 }
2571 case 3: {
2572
2573 /* Pattern matching succeeded */
2574#line 164 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2575 tmp5 = 0;
2576#line 2576 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2577 goto tmp7_done;
2578 }
2579 }
2580 goto tmp7_end;
2581 tmp7_end: ;
2582 }
2583 goto goto_6;
2584 goto_6:;
2585 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2586 goto tmp7_done;
2587 tmp7_done:;
2588 }
2589 }
2590 _comp = tmp5;
2591 _return: OMC_LABEL_UNUSED__attribute__((unused))
2592 return _comp;
2593}
2594modelica_metatype boxptr_JSON_AvlTree_hasKey(threadData_t *threadData, modelica_metatype _inTree, modelica_metatype _inKey)
2595{
2596 modelica_boolean _comp;
2597 modelica_metatype out_comp;
2598 _comp = omc_JSON_AvlTree_hasKey(threadData, _inTree, _inKey);
2599 out_comp = mmc_mk_icon(_comp);
2600 return out_comp;
2601}
2602
2603PROTECTED_FUNCTION_STATIC modelica_integer omc_JSON_AvlTree_height(threadData_t *threadData, modelica_metatype _inNode)
2604{
2605 modelica_integer _outHeight;
2606 modelica_integer tmp1 = 0;
2607 MMC_SO()mmc_check_stackoverflow(threadData);
2608 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2609 // _outHeight has no default value.
2610#line 2610 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2611 { /* match expression */
2612 modelica_metatype tmp4_1;
2613 tmp4_1 = _inNode;
2614 {
2615 int tmp4;
2616 {
2617 switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> 2
) & 255))
) {
2618 case 3: {
2619
2620 /* Pattern matching succeeded */
2621#line 371 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2622 tmp1 = mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inNode), 4))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_inNode) - 3))) + (4)))))))) >> 1)
;
2623#line 2623 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2624 goto tmp3_done;
2625 }
2626 case 4: {
2627
2628 /* Pattern matching succeeded */
2629#line 372 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2630 tmp1 = ((modelica_integer) 1);
2631#line 2631 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2632 goto tmp3_done;
2633 }
2634 default:
2635 tmp3_default: OMC_LABEL_UNUSED__attribute__((unused)); {
2636
2637 /* Pattern matching succeeded */
2638#line 373 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2639 tmp1 = ((modelica_integer) 0);
2640#line 2640 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2641 goto tmp3_done;
2642 }
2643 }
2644 goto tmp3_end;
2645 tmp3_end: ;
2646 }
2647 goto goto_2;
2648 goto_2:;
2649 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2650 goto tmp3_done;
2651 tmp3_done:;
2652 }
2653 }
2654 _outHeight = tmp1;
2655 _return: OMC_LABEL_UNUSED__attribute__((unused))
2656 return _outHeight;
2657}
2658PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_JSON_AvlTree_height(threadData_t *threadData, modelica_metatype _inNode)
2659{
2660 modelica_integer _outHeight;
2661 modelica_metatype out_outHeight;
2662 _outHeight = omc_JSON_AvlTree_height(threadData, _inNode);
2663 out_outHeight = mmc_mk_icon(_outHeight);
2664 return out_outHeight;
2665}
2666
2667DLLExport
2668void omc_JSON_AvlTree_intersection(threadData_t *threadData)
2669{
2670 MMC_SO()mmc_check_stackoverflow(threadData);
2671 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2672#line 355 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2673 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2674#line 2674 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2675 _return: OMC_LABEL_UNUSED__attribute__((unused))
2676 return;
2677}
2678
2679DLLExport
2680modelica_boolean omc_JSON_AvlTree_isEmpty(threadData_t *threadData, modelica_metatype _tree)
2681{
2682 modelica_boolean _isEmpty;
2683 modelica_boolean tmp1 = 0;
2684 MMC_SO()mmc_check_stackoverflow(threadData);
2685 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2686 // _isEmpty has no default value.
2687#line 2687 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2688 { /* match expression */
2689 modelica_metatype tmp4_1;
2690 tmp4_1 = _tree;
2691 {
2692 volatile mmc_switch_type tmp4;
2693 int tmp5;
2694 tmp4 = 0;
2695 for (; tmp4 < 2; tmp4++) {
2696 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2697 case 0: {
2698 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((0 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
2699 /* Pattern matching succeeded */
2700#line 173 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2701 tmp1 = 1;
2702#line 2702 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2703 goto tmp3_done;
2704 }
2705 case 1: {
2706
2707 /* Pattern matching succeeded */
2708#line 174 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2709 tmp1 = 0;
2710#line 2710 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2711 goto tmp3_done;
2712 }
2713 }
2714 goto tmp3_end;
2715 tmp3_end: ;
2716 }
2717 goto goto_2;
2718 goto_2:;
2719 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2720 goto tmp3_done;
2721 tmp3_done:;
2722 }
2723 }
2724 _isEmpty = tmp1;
2725 _return: OMC_LABEL_UNUSED__attribute__((unused))
2726 return _isEmpty;
2727}
2728modelica_metatype boxptr_JSON_AvlTree_isEmpty(threadData_t *threadData, modelica_metatype _tree)
2729{
2730 modelica_boolean _isEmpty;
2731 modelica_metatype out_isEmpty;
2732 _isEmpty = omc_JSON_AvlTree_isEmpty(threadData, _tree);
2733 out_isEmpty = mmc_mk_icon(_isEmpty);
2734 return out_isEmpty;
2735}
2736
2737DLLExport
2738modelica_metatype omc_JSON_AvlTree_join(threadData_t *threadData, modelica_metatype _D_24in_tree, modelica_metatype _treeToJoin, modelica_fnptr _conflictFunc)
2739{
2740 modelica_metatype _tree = NULL((void*)0);
2741 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2742 MMC_SO()mmc_check_stackoverflow(threadData);
2743 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2744 _tree = _D_24in_tree;
2745#line 2745 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2746 { /* match expression */
2747 modelica_metatype tmp3_1;
2748 tmp3_1 = _treeToJoin;
2749 {
2750 int tmp3;
2751 {
2752 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
2753 case 5: {
2754
2755 /* Pattern matching succeeded */
2756#line 312 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2757 tmpMeta[0] = _tree;
2758#line 2758 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2759 goto tmp2_done;
2760 }
2761 case 3: {
2762
2763 /* Pattern matching succeeded */
2764#line 315 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2765 _tree = omc_JSON_AvlTree_add(threadData, _tree, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_treeToJoin), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_treeToJoin) - 3
))) + (2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_treeToJoin), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_treeToJoin) - 3
))) + (3)))))
), ((modelica_fnptr) _conflictFunc));
2766#line 2766 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2767
2768#line 316 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2769 _tree = omc_JSON_AvlTree_join(threadData, _tree, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_treeToJoin), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_treeToJoin) - 3
))) + (5)))))
), ((modelica_fnptr) _conflictFunc));
2770#line 2770 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2771#line 317 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2772 /* Tail recursive call */
2773#line 317 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2774 _D_24in_tree = _tree;
2775#line 317 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2776 _treeToJoin = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_treeToJoin), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_treeToJoin) - 3
))) + (6)))))
);
2777#line 317 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2778 goto _tailrecursive;
2779#line 317 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2780 /* TODO: Make sure any eventual dead code below is never generated */
2781#line 2781 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2782 goto tmp2_done;
2783 }
2784 case 4: {
2785
2786 /* Pattern matching succeeded */
2787#line 319 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
2788 tmpMeta[0] = omc_JSON_AvlTree_add(threadData, _tree, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_treeToJoin), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_treeToJoin) - 3
))) + (2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_treeToJoin), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_treeToJoin) - 3
))) + (3)))))
), ((modelica_fnptr) _conflictFunc));
2789#line 2789 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2790 goto tmp2_done;
2791 }
2792 }
2793 goto tmp2_end;
2794 tmp2_end: ;
2795 }
2796 goto goto_1;
2797 goto_1:;
2798 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2799 goto tmp2_done;
2800 tmp2_done:;
2801 }
2802 }
2803 _tree = tmpMeta[0];
2804 _return: OMC_LABEL_UNUSED__attribute__((unused))
2805 return _tree;
2806}
2807
2808DLLExport
2809modelica_integer omc_JSON_AvlTree_keyCompare(threadData_t *threadData, modelica_string _inKey1, modelica_string _inKey2)
2810{
2811 modelica_integer _outResult;
2812 MMC_SO()mmc_check_stackoverflow(threadData);
2813 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2814 // _outResult has no default value.
2815#line 61 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
2816 _outResult = stringCompare(_inKey1, _inKey2)mmc_stringCompare(_inKey1,_inKey2);
2817#line 2817 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2818 _return: OMC_LABEL_UNUSED__attribute__((unused))
2819 return _outResult;
2820}
2821modelica_metatype boxptr_JSON_AvlTree_keyCompare(threadData_t *threadData, modelica_metatype _inKey1, modelica_metatype _inKey2)
2822{
2823 modelica_integer _outResult;
2824 modelica_metatype out_outResult;
2825 _outResult = omc_JSON_AvlTree_keyCompare(threadData, _inKey1, _inKey2);
2826 out_outResult = mmc_mk_icon(_outResult);
2827 return out_outResult;
2828}
2829
2830DLLExport
2831modelica_string omc_JSON_AvlTree_keyStr(threadData_t *threadData, modelica_string _inKey)
2832{
2833 modelica_string _outString = NULL((void*)0);
2834 MMC_SO()mmc_check_stackoverflow(threadData);
2835 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2836 // _outString has no default value.
2837#line 53 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
2838 _outString = _inKey;
2839#line 2839 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2840 _return: OMC_LABEL_UNUSED__attribute__((unused))
2841 return _outString;
2842}
2843
2844DLLExport
2845modelica_metatype omc_JSON_AvlTree_listKeys(threadData_t *threadData, modelica_metatype _inTree, modelica_metatype _D_24in_lst)
2846{
2847 modelica_metatype _lst = NULL((void*)0);
2848 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2849 MMC_SO()mmc_check_stackoverflow(threadData);
2850 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2851 _lst = _D_24in_lst;
2852#line 2852 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2853 { /* match expression */
2854 modelica_metatype tmp3_1;
2855 tmp3_1 = _inTree;
2856 {
2857 int tmp3;
2858 {
2859 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
2860 case 4: {
2861
2862 /* Pattern matching succeeded */
2863#line 184 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2864 tmpMeta[1] = mmc_mk_cons((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inTree), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inTree) - 3)))
+ (2)))))
), _lst);
2865#line 184 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2866 tmpMeta[0] = tmpMeta[1];
2867#line 2867 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2868 goto tmp2_done;
2869 }
2870 case 3: {
2871
2872 /* Pattern matching succeeded */
2873#line 187 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2874 _lst = omc_JSON_AvlTree_listKeys(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inTree), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_inTree) - 3)))
+ (6)))))
), _lst);
2875#line 2875 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2876
2877#line 188 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2878 tmpMeta[1] = mmc_mk_cons((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inTree), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inTree) - 3)))
+ (2)))))
), _lst);
2879#line 188 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2880 _lst = tmpMeta[1];
2881#line 2881 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2882#line 189 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2883 /* Tail recursive call */
2884#line 189 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2885 _inTree = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inTree), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_inTree) - 3)))
+ (5)))))
);
2886#line 189 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2887 _D_24in_lst = _lst;
2888#line 189 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2889 goto _tailrecursive;
2890#line 189 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2891 /* TODO: Make sure any eventual dead code below is never generated */
2892#line 2892 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2893 goto tmp2_done;
2894 }
2895 default:
2896 tmp2_default: OMC_LABEL_UNUSED__attribute__((unused)); {
2897
2898 /* Pattern matching succeeded */
2899#line 193 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2900 tmpMeta[0] = _lst;
2901#line 2901 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2902 goto tmp2_done;
2903 }
2904 }
2905 goto tmp2_end;
2906 tmp2_end: ;
2907 }
2908 goto goto_1;
2909 goto_1:;
2910 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2911 goto tmp2_done;
2912 tmp2_done:;
2913 }
2914 }
2915 _lst = tmpMeta[0];
2916 _return: OMC_LABEL_UNUSED__attribute__((unused))
2917 return _lst;
2918}
2919
2920DLLExport
2921modelica_metatype omc_JSON_AvlTree_listKeysReverse(threadData_t *threadData, modelica_metatype _inTree, modelica_metatype _D_24in_lst)
2922{
2923 modelica_metatype _lst = NULL((void*)0);
2924 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2925 MMC_SO()mmc_check_stackoverflow(threadData);
2926 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2927 _lst = _D_24in_lst;
2928#line 2928 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2929 { /* match expression */
2930 modelica_metatype tmp3_1;
2931 tmp3_1 = _inTree;
2932 {
2933 int tmp3;
2934 {
2935 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
2936 case 4: {
2937
2938 /* Pattern matching succeeded */
2939#line 203 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2940 tmpMeta[1] = mmc_mk_cons((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inTree), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inTree) - 3)))
+ (2)))))
), _lst);
2941#line 203 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2942 tmpMeta[0] = tmpMeta[1];
2943#line 2943 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2944 goto tmp2_done;
2945 }
2946 case 3: {
2947
2948 /* Pattern matching succeeded */
2949#line 206 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2950 _lst = omc_JSON_AvlTree_listKeysReverse(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inTree), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_inTree) - 3)))
+ (5)))))
), _lst);
2951#line 2951 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2952
2953#line 207 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2954 tmpMeta[1] = mmc_mk_cons((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inTree), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inTree) - 3)))
+ (2)))))
), _lst);
2955#line 207 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2956 _lst = tmpMeta[1];
2957#line 2957 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2958#line 208 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2959 /* Tail recursive call */
2960#line 208 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2961 _inTree = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inTree), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_inTree) - 3)))
+ (6)))))
);
2962#line 208 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2963 _D_24in_lst = _lst;
2964#line 208 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2965 goto _tailrecursive;
2966#line 208 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2967 /* TODO: Make sure any eventual dead code below is never generated */
2968#line 2968 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2969 goto tmp2_done;
2970 }
2971 default:
2972 tmp2_default: OMC_LABEL_UNUSED__attribute__((unused)); {
2973
2974 /* Pattern matching succeeded */
2975#line 212 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
2976 tmpMeta[0] = _lst;
2977#line 2977 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
2978 goto tmp2_done;
2979 }
2980 }
2981 goto tmp2_end;
2982 tmp2_end: ;
2983 }
2984 goto goto_1;
2985 goto_1:;
2986 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2987 goto tmp2_done;
2988 tmp2_done:;
2989 }
2990 }
2991 _lst = tmpMeta[0];
2992 _return: OMC_LABEL_UNUSED__attribute__((unused))
2993 return _lst;
2994}
2995
2996DLLExport
2997modelica_metatype omc_JSON_AvlTree_listValues(threadData_t *threadData, modelica_metatype _tree, modelica_metatype _D_24in_lst)
2998{
2999 modelica_metatype _lst = NULL((void*)0);
3000 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3001 MMC_SO()mmc_check_stackoverflow(threadData);
3002 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3003 _lst = _D_24in_lst;
3004#line 3004 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3005 { /* match expression */
3006 modelica_metatype tmp3_1;
3007 tmp3_1 = _tree;
3008 {
3009 modelica_metatype _value = NULL((void*)0);
3010 int tmp3;
3011 // _value has no default value.
3012 {
3013 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
3014 case 3: {
3015 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
3016 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
3017
3018 _value = tmpMeta[1];
3019 /* Pattern matching succeeded */
3020#line 293 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3021 _lst = omc_JSON_AvlTree_listValues(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(6)))))
), _lst);
3022#line 3022 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3023
3024#line 294 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3025 tmpMeta[1] = mmc_mk_cons(_value, _lst);
3026#line 294 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3027 _lst = tmpMeta[1];
3028#line 3028 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3029#line 295 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3030 /* Tail recursive call */
3031#line 295 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3032 _tree = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_tree), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_tree) - 3))) +
(5)))))
);
3033#line 295 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3034 _D_24in_lst = _lst;
3035#line 295 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3036 goto _tailrecursive;
3037#line 295 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3038 /* TODO: Make sure any eventual dead code below is never generated */
3039#line 3039 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3040 goto tmp2_done;
3041 }
3042 case 4: {
3043 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
3044 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
3045 _value = tmpMeta[1];
3046 /* Pattern matching succeeded */
3047#line 298 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3048 tmpMeta[1] = mmc_mk_cons(_value, _lst);
3049#line 298 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3050 tmpMeta[0] = tmpMeta[1];
3051#line 3051 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3052 goto tmp2_done;
3053 }
3054 default:
3055 tmp2_default: OMC_LABEL_UNUSED__attribute__((unused)); {
3056
3057 /* Pattern matching succeeded */
3058#line 300 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3059 tmpMeta[0] = _lst;
3060#line 3060 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3061 goto tmp2_done;
3062 }
3063 }
3064 goto tmp2_end;
3065 tmp2_end: ;
3066 }
3067 goto goto_1;
3068 goto_1:;
3069 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3070 goto tmp2_done;
3071 tmp2_done:;
3072 }
3073 }
3074 _lst = tmpMeta[0];
3075 _return: OMC_LABEL_UNUSED__attribute__((unused))
3076 return _lst;
3077}
3078
3079DLLExport
3080modelica_metatype omc_JSON_AvlTree_map(threadData_t *threadData, modelica_metatype _inTree, modelica_fnptr _inFunc)
3081{
3082 modelica_metatype _outTree = NULL((void*)0);
3083 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
3084 MMC_SO()mmc_check_stackoverflow(threadData);
3085 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3086 _outTree = _inTree;
3087#line 3087 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3088 { /* match expression */
3089 modelica_metatype tmp3_1;
3090 tmp3_1 = _outTree;
3091 {
3092 modelica_string _key = NULL((void*)0);
3093 modelica_metatype _value = NULL((void*)0);
3094 modelica_metatype _new_value = NULL((void*)0);
3095 modelica_metatype _new_branch = NULL((void*)0);
3096 int tmp3;
3097 // _key has no default value.
3098 // _value has no default value.
3099 // _new_value has no default value.
3100 // _new_branch has no default value.
3101 {
3102 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
3103 case 3: {
3104 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
3105 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3106 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
3107
3108 _key = tmpMeta[1];
3109 _value = tmpMeta[2];
3110 /* Pattern matching succeeded */
3111#line 379 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3112 _new_branch = omc_JSON_AvlTree_map(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_outTree), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_outTree) - 3))
) + (5)))))
), ((modelica_fnptr) _inFunc));
3113#line 3113 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3114
3115#line 380 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3116 if((!referenceEq(_new_branch, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_outTree), 5))))((_new_branch) == (((*(void**)(((void*)((void**)(((void*)((char
*)(_outTree) - 3))) + (5))))))))
))
3117#line 380 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3118 {
3119#line 381 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3120 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(7))((void*)((char*)(mmc_alloc_words(7)) + 3));
3121#line 381 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3122 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_outTree)((void*)((char*)(_outTree) - 3)), 7*sizeof(modelica_metatype));
3123#line 381 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3124 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[5] = _new_branch;
3125#line 381 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3126 _outTree = tmpMeta[1];
3127#line 3127 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3128 }
3129
3130#line 384 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3131 _new_value = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (2)))))
) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_string, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (2)))))
), _key, _value) : ((modelica_metatype(*)(threadData_t*, modelica_string, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (1)))))
)) (threadData, _key, _value);
3132#line 3132 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3133
3134#line 385 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3135 if((!referenceEq(_value, _new_value)((_value) == (_new_value))))
3136#line 385 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3137 {
3138#line 386 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3139 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(7))((void*)((char*)(mmc_alloc_words(7)) + 3));
3140#line 386 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3141 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_outTree)((void*)((char*)(_outTree) - 3)), 7*sizeof(modelica_metatype));
3142#line 386 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3143 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[3] = _new_value;
3144#line 386 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3145 _outTree = tmpMeta[1];
3146#line 3146 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3147 }
3148
3149#line 389 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3150 _new_branch = omc_JSON_AvlTree_map(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_outTree), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_outTree) - 3))
) + (6)))))
), ((modelica_fnptr) _inFunc));
3151#line 3151 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3152
3153#line 390 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3154 if((!referenceEq(_new_branch, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_outTree), 6))))((_new_branch) == (((*(void**)(((void*)((void**)(((void*)((char
*)(_outTree) - 3))) + (6))))))))
))
3155#line 390 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3156 {
3157#line 391 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3158 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(7))((void*)((char*)(mmc_alloc_words(7)) + 3));
3159#line 391 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3160 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_outTree)((void*)((char*)(_outTree) - 3)), 7*sizeof(modelica_metatype));
3161#line 391 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3162 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[6] = _new_branch;
3163#line 391 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3164 _outTree = tmpMeta[1];
3165#line 3165 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3166 }
3167#line 393 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3168 tmpMeta[0] = _outTree;
3169#line 3169 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3170 goto tmp2_done;
3171 }
3172 case 4: {
3173 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
3174 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3175 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
3176 _key = tmpMeta[1];
3177 _value = tmpMeta[2];
3178 /* Pattern matching succeeded */
3179#line 398 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3180 _new_value = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (2)))))
) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_string, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (2)))))
), _key, _value) : ((modelica_metatype(*)(threadData_t*, modelica_string, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (1)))))
)) (threadData, _key, _value);
3181#line 3181 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3182
3183#line 399 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3184 if((!referenceEq(_value, _new_value)((_value) == (_new_value))))
3185#line 399 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3186 {
3187#line 400 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3188 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(4))((void*)((char*)(mmc_alloc_words(4)) + 3));
3189#line 400 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3190 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_outTree)((void*)((char*)(_outTree) - 3)), 4*sizeof(modelica_metatype));
3191#line 400 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3192 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[3] = _new_value;
3193#line 400 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3194 _outTree = tmpMeta[1];
3195#line 3195 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3196 }
3197#line 402 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3198 tmpMeta[0] = _outTree;
3199#line 3199 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3200 goto tmp2_done;
3201 }
3202 default:
3203 tmp2_default: OMC_LABEL_UNUSED__attribute__((unused)); {
3204
3205 /* Pattern matching succeeded */
3206#line 404 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3207 tmpMeta[0] = _inTree;
3208#line 3208 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3209 goto tmp2_done;
3210 }
3211 }
3212 goto tmp2_end;
3213 tmp2_end: ;
3214 }
3215 goto goto_1;
3216 goto_1:;
3217 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3218 goto tmp2_done;
3219 tmp2_done:;
3220 }
3221 }
3222 _outTree = tmpMeta[0];
3223 _return: OMC_LABEL_UNUSED__attribute__((unused))
3224 return _outTree;
3225}
3226
3227DLLExport
3228modelica_metatype omc_JSON_AvlTree_mapFold(threadData_t *threadData, modelica_metatype _inTree, modelica_fnptr _inFunc, modelica_metatype _inStartValue, modelica_metatype *out_outResult)
3229{
3230 modelica_metatype _outTree = NULL((void*)0);
3231 modelica_metatype _outResult = NULL((void*)0);
3232 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
3233 MMC_SO()mmc_check_stackoverflow(threadData);
3234 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3235 _outTree = _inTree;
3236 _outResult = _inStartValue;
3237#line 3237 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3238 { /* match expression */
3239 modelica_metatype tmp3_1;
3240 tmp3_1 = _outTree;
3241 {
3242 modelica_string _key = NULL((void*)0);
3243 modelica_metatype _value = NULL((void*)0);
3244 modelica_metatype _new_value = NULL((void*)0);
3245 modelica_metatype _new_branch = NULL((void*)0);
3246 int tmp3;
3247 // _key has no default value.
3248 // _value has no default value.
3249 // _new_value has no default value.
3250 // _new_branch has no default value.
3251 {
3252 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
3253 case 3: {
3254 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
3255 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3256 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
3257
3258 _key = tmpMeta[1];
3259 _value = tmpMeta[2];
3260 /* Pattern matching succeeded */
3261#line 543 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3262 _new_branch = omc_JSON_AvlTree_mapFold(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_outTree), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_outTree) - 3))
) + (5)))))
), ((modelica_fnptr) _inFunc), _outResult ,&_outResult);
3263#line 3263 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3264
3265#line 544 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3266 if((!referenceEq(_new_branch, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_outTree), 5))))((_new_branch) == (((*(void**)(((void*)((void**)(((void*)((char
*)(_outTree) - 3))) + (5))))))))
))
3267#line 544 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3268 {
3269#line 545 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3270 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(7))((void*)((char*)(mmc_alloc_words(7)) + 3));
3271#line 545 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3272 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_outTree)((void*)((char*)(_outTree) - 3)), 7*sizeof(modelica_metatype));
3273#line 545 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3274 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[5] = _new_branch;
3275#line 545 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3276 _outTree = tmpMeta[1];
3277#line 3277 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3278 }
3279
3280#line 548 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3281 _new_value = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (2)))))
) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_string, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (2)))))
), _key, _value, _outResult ,&_outResult) : ((modelica_metatype(*)(threadData_t*, modelica_string, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (1)))))
)) (threadData, _key, _value, _outResult ,&_outResult);
3282#line 3282 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3283
3284#line 549 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3285 if((!referenceEq(_value, _new_value)((_value) == (_new_value))))
3286#line 549 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3287 {
3288#line 550 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3289 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(7))((void*)((char*)(mmc_alloc_words(7)) + 3));
3290#line 550 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3291 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_outTree)((void*)((char*)(_outTree) - 3)), 7*sizeof(modelica_metatype));
3292#line 550 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3293 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[3] = _new_value;
3294#line 550 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3295 _outTree = tmpMeta[1];
3296#line 3296 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3297 }
3298
3299#line 553 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3300 _new_branch = omc_JSON_AvlTree_mapFold(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_outTree), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_outTree) - 3))
) + (6)))))
), ((modelica_fnptr) _inFunc), _outResult ,&_outResult);
3301#line 3301 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3302
3303#line 554 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3304 if((!referenceEq(_new_branch, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_outTree), 6))))((_new_branch) == (((*(void**)(((void*)((void**)(((void*)((char
*)(_outTree) - 3))) + (6))))))))
))
3305#line 554 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3306 {
3307#line 555 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3308 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(7))((void*)((char*)(mmc_alloc_words(7)) + 3));
3309#line 555 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3310 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_outTree)((void*)((char*)(_outTree) - 3)), 7*sizeof(modelica_metatype));
3311#line 555 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3312 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[6] = _new_branch;
3313#line 555 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3314 _outTree = tmpMeta[1];
3315#line 3315 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3316 }
3317#line 557 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3318 tmpMeta[0] = _outTree;
3319#line 3319 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3320 goto tmp2_done;
3321 }
3322 case 4: {
3323 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
3324 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3325 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
3326 _key = tmpMeta[1];
3327 _value = tmpMeta[2];
3328 /* Pattern matching succeeded */
3329#line 561 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3330 _new_value = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (2)))))
) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_string, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (2)))))
), _key, _value, _outResult ,&_outResult) : ((modelica_metatype(*)(threadData_t*, modelica_string, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (1)))))
)) (threadData, _key, _value, _outResult ,&_outResult);
3331#line 3331 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3332
3333#line 562 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3334 if((!referenceEq(_value, _new_value)((_value) == (_new_value))))
3335#line 562 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3336 {
3337#line 563 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3338 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(4))((void*)((char*)(mmc_alloc_words(4)) + 3));
3339#line 563 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3340 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_outTree)((void*)((char*)(_outTree) - 3)), 4*sizeof(modelica_metatype));
3341#line 563 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3342 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[3] = _new_value;
3343#line 563 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3344 _outTree = tmpMeta[1];
3345#line 3345 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3346 }
3347#line 565 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3348 tmpMeta[0] = _outTree;
3349#line 3349 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3350 goto tmp2_done;
3351 }
3352 default:
3353 tmp2_default: OMC_LABEL_UNUSED__attribute__((unused)); {
3354
3355 /* Pattern matching succeeded */
3356#line 567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3357 tmpMeta[0] = _inTree;
3358#line 3358 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3359 goto tmp2_done;
3360 }
3361 }
3362 goto tmp2_end;
3363 tmp2_end: ;
3364 }
3365 goto goto_1;
3366 goto_1:;
3367 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3368 goto tmp2_done;
3369 tmp2_done:;
3370 }
3371 }
3372 _outTree = tmpMeta[0];
3373 _return: OMC_LABEL_UNUSED__attribute__((unused))
3374 if (out_outResult) { *out_outResult = _outResult; }
3375 return _outTree;
3376}
3377
3378DLLExport
3379modelica_metatype omc_JSON_AvlTree_new(threadData_t *threadData)
3380{
3381 modelica_metatype _outTree = NULL((void*)0);
3382 MMC_SO()mmc_check_stackoverflow(threadData);
3383 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3384 _outTree = _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3));
3385 _return: OMC_LABEL_UNUSED__attribute__((unused))
3386 return _outTree;
3387}
3388
3389DLLExport
3390modelica_string omc_JSON_AvlTree_printNodeStr(threadData_t *threadData, modelica_metatype _inNode)
3391{
3392 modelica_string _outString = NULL((void*)0);
3393 modelica_string tmp1 = 0;
3394 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
3395 MMC_SO()mmc_check_stackoverflow(threadData);
3396 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3397 // _outString has no default value.
3398#line 3398 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3399 { /* match expression */
3400 modelica_metatype tmp4_1;
3401 tmp4_1 = _inNode;
3402 {
3403 volatile mmc_switch_type tmp4;
3404 int tmp5;
3405 tmp4 = 0;
3406 for (; tmp4 < 2; tmp4++) {
3407 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
3408 case 0: {
3409 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
3410
3411 /* Pattern matching succeeded */
3412#line 69 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3413 tmpMeta[0] = stringAppend(_OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3)),omc_JSON_AvlTree_keyStr(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inNode), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inNode) - 3)))
+ (2)))))
)));
3414#line 69 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3415 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)));
3416#line 69 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3417 tmpMeta[2] = stringAppend(tmpMeta[1],omc_JSON_AvlTree_valueStr(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inNode), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_inNode) - 3)))
+ (3)))))
)));
3418#line 69 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3419 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT40((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3)));
3420#line 69 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3421 tmp1 = tmpMeta[3];
3422#line 3422 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3423 goto tmp3_done;
3424 }
3425 case 1: {
3426 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
3427
3428 /* Pattern matching succeeded */
3429#line 70 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3430 tmpMeta[0] = stringAppend(_OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3)),omc_JSON_AvlTree_keyStr(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inNode), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inNode) - 3)))
+ (2)))))
)));
3431#line 70 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3432 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)));
3433#line 70 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3434 tmpMeta[2] = stringAppend(tmpMeta[1],omc_JSON_AvlTree_valueStr(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inNode), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_inNode) - 3)))
+ (3)))))
)));
3435#line 70 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3436 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT40((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3)));
3437#line 70 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3438 tmp1 = tmpMeta[3];
3439#line 3439 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3440 goto tmp3_done;
3441 }
3442 }
3443 goto tmp3_end;
3444 tmp3_end: ;
3445 }
3446 goto goto_2;
3447 goto_2:;
3448 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3449 goto tmp3_done;
3450 tmp3_done:;
3451 }
3452 }
3453 _outString = tmp1;
3454 _return: OMC_LABEL_UNUSED__attribute__((unused))
3455 return _outString;
3456}
3457
3458DLLExport
3459modelica_string omc_JSON_AvlTree_printTreeStr(threadData_t *threadData, modelica_metatype _inTree)
3460{
3461 modelica_string _outString = NULL((void*)0);
3462 modelica_metatype _left = NULL((void*)0);
3463 modelica_metatype _right = NULL((void*)0);
3464 modelica_string tmp1 = 0;
3465 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
3466 MMC_SO()mmc_check_stackoverflow(threadData);
3467 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3468 // _outString has no default value.
3469 // _left has no default value.
3470 // _right has no default value.
3471#line 3471 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3472 { /* match expression */
3473 modelica_metatype tmp4_1;
3474 tmp4_1 = _inTree;
3475 {
3476 int tmp4;
3477 {
3478 switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> 2
) & 255))
) {
3479 case 5: {
3480
3481 /* Pattern matching succeeded */
3482#line 242 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
3483 tmp1 = _OMC_LIT41((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3));
3484#line 3484 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3485 goto tmp3_done;
3486 }
3487 case 4: {
3488
3489 /* Pattern matching succeeded */
3490#line 243 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
3491 tmp1 = omc_JSON_AvlTree_printNodeStr(threadData, _inTree);
3492#line 3492 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3493 goto tmp3_done;
3494 }
3495 case 3: {
3496 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
3497 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(5)))))
;
3498 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(6)))))
;
3499 _left = tmpMeta[0];
3500 _right = tmpMeta[1];
3501 /* Pattern matching succeeded */
3502#line 244 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
3503 tmpMeta[0] = stringAppend(omc_JSON_AvlTree_printTreeStr2(threadData, _left, 1, _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3))),omc_JSON_AvlTree_printNodeStr(threadData, _inTree));
3504#line 244 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
3505 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT42((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3)));
3506#line 244 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
3507 tmpMeta[2] = stringAppend(tmpMeta[1],omc_JSON_AvlTree_printTreeStr2(threadData, _right, 0, _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3))));
3508#line 244 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
3509 tmp1 = tmpMeta[2];
3510#line 3510 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3511 goto tmp3_done;
3512 }
3513 }
3514 goto tmp3_end;
3515 tmp3_end: ;
3516 }
3517 goto goto_2;
3518 goto_2:;
3519 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3520 goto tmp3_done;
3521 tmp3_done:;
3522 }
3523 }
3524 _outString = tmp1;
3525 _return: OMC_LABEL_UNUSED__attribute__((unused))
3526 return _outString;
3527}
3528
3529PROTECTED_FUNCTION_STATIC modelica_string omc_JSON_AvlTree_printTreeStr2(threadData_t *threadData, modelica_metatype _inTree, modelica_boolean _isLeft, modelica_string _inIndent)
3530{
3531 modelica_string _outString = NULL((void*)0);
3532 modelica_metatype _val_node = NULL((void*)0);
3533 modelica_metatype _left = NULL((void*)0);
3534 modelica_metatype _right = NULL((void*)0);
3535 modelica_string _left_str = NULL((void*)0);
3536 modelica_string _right_str = NULL((void*)0);
3537 modelica_string tmp1 = 0;
3538 modelica_metatype tmpMeta[8] __attribute__((unused)) = {0};
3539 MMC_SO()mmc_check_stackoverflow(threadData);
3540 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3541 // _outString has no default value.
3542 // _val_node has no default value.
3543 // _left has no default value.
3544 // _right has no default value.
3545 // _left_str has no default value.
3546 // _right_str has no default value.
3547#line 3547 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3548 { /* match expression */
3549 modelica_metatype tmp4_1;
3550 tmp4_1 = _inTree;
3551 {
3552 volatile mmc_switch_type tmp4;
3553 int tmp5;
3554 tmp4 = 0;
3555 for (; tmp4 < 2; tmp4++) {
3556 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
3557 case 0: {
3558 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
3559
3560 /* Pattern matching succeeded */
3561#line 448 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
3562 tmpMeta[0] = stringAppend(_inIndent,(_isLeft?_OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3)):_OMC_LIT44((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3))));
3563#line 448 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
3564 tmpMeta[1] = stringAppend(omc_JSON_AvlTree_printTreeStr2(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inTree), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_inTree) - 3)))
+ (5)))))
), 1, tmpMeta[0]),_inIndent);
3565#line 448 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
3566 tmpMeta[2] = stringAppend(tmpMeta[1],(_isLeft?_OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3)):_OMC_LIT46((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3))));
3567#line 448 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
3568 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT47((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3)));
3569#line 448 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
3570 tmpMeta[4] = stringAppend(tmpMeta[3],omc_JSON_AvlTree_printNodeStr(threadData, _inTree));
3571#line 448 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
3572 tmpMeta[5] = stringAppend(tmpMeta[4],_OMC_LIT42((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3)));
3573#line 448 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
3574 tmpMeta[6] = stringAppend(_inIndent,(_isLeft?_OMC_LIT44((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3)):_OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3))));
3575#line 448 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
3576 tmpMeta[7] = stringAppend(tmpMeta[5],omc_JSON_AvlTree_printTreeStr2(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inTree), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_inTree) - 3)))
+ (6)))))
), 0, tmpMeta[6]));
3577#line 448 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
3578 tmp1 = tmpMeta[7];
3579#line 3579 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3580 goto tmp3_done;
3581 }
3582 case 1: {
3583
3584 /* Pattern matching succeeded */
3585#line 453 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
3586 tmp1 = _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3));
3587#line 3587 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3588 goto tmp3_done;
3589 }
3590 }
3591 goto tmp3_end;
3592 tmp3_end: ;
3593 }
3594 goto goto_2;
3595 goto_2:;
3596 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3597 goto tmp3_done;
3598 tmp3_done:;
3599 }
3600 }
3601 _outString = tmp1;
3602 _return: OMC_LABEL_UNUSED__attribute__((unused))
3603 return _outString;
3604}
3605PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_JSON_AvlTree_printTreeStr2(threadData_t *threadData, modelica_metatype _inTree, modelica_metatype _isLeft, modelica_metatype _inIndent)
3606{
3607 modelica_integer tmp1;
3608 modelica_string _outString = NULL((void*)0);
3609 tmp1 = mmc_unbox_integer(_isLeft)(((mmc_sint_t) (_isLeft)) >> 1);
3610 _outString = omc_JSON_AvlTree_printTreeStr2(threadData, _inTree, tmp1, _inIndent);
3611 /* skip box _outString; String */
3612 return _outString;
3613}
3614
3615PROTECTED_FUNCTION_STATIC modelica_boolean omc_JSON_AvlTree_referenceEqOrEmpty(threadData_t *threadData, modelica_metatype _t1, modelica_metatype _t2)
3616{
3617 modelica_boolean _b;
3618 modelica_boolean tmp1 = 0;
3619 MMC_SO()mmc_check_stackoverflow(threadData);
3620 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3621 // _b has no default value.
3622#line 3622 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3623 { /* match expression */
3624 modelica_metatype tmp4_1;modelica_metatype tmp4_2;
3625 tmp4_1 = _t1;
3626 tmp4_2 = _t2;
3627 {
3628 volatile mmc_switch_type tmp4;
3629 int tmp5;
3630 tmp4 = 0;
3631 for (; tmp4 < 2; tmp4++) {
3632 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
3633 case 0: {
3634 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((0 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
3635 if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,2,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))==(((0 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
3636 /* Pattern matching succeeded */
3637#line 323 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
3638 tmp1 = 1;
3639#line 3639 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3640 goto tmp3_done;
3641 }
3642 case 1: {
3643
3644 /* Pattern matching succeeded */
3645#line 324 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
3646 tmp1 = referenceEq(_t1, _t2)((_t1) == (_t2));
3647#line 3647 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3648 goto tmp3_done;
3649 }
3650 }
3651 goto tmp3_end;
3652 tmp3_end: ;
3653 }
3654 goto goto_2;
3655 goto_2:;
3656 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3657 goto tmp3_done;
3658 tmp3_done:;
3659 }
3660 }
3661 _b = tmp1;
3662 _return: OMC_LABEL_UNUSED__attribute__((unused))
3663 return _b;
3664}
3665PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_JSON_AvlTree_referenceEqOrEmpty(threadData_t *threadData, modelica_metatype _t1, modelica_metatype _t2)
3666{
3667 modelica_boolean _b;
3668 modelica_metatype out_b;
3669 _b = omc_JSON_AvlTree_referenceEqOrEmpty(threadData, _t1, _t2);
3670 out_b = mmc_mk_icon(_b);
3671 return out_b;
3672}
3673
3674PROTECTED_FUNCTION_STATIC modelica_metatype omc_JSON_AvlTree_rotateLeft(threadData_t *threadData, modelica_metatype _inNode)
3675{
3676 modelica_metatype _outNode = NULL((void*)0);
3677 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3678 MMC_SO()mmc_check_stackoverflow(threadData);
3679 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3680 _outNode = _inNode;
3681#line 3681 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3682 { /* match expression */
3683 modelica_metatype tmp3_1;
3684 tmp3_1 = _outNode;
3685 {
3686 modelica_metatype _node = NULL((void*)0);
3687 modelica_metatype _child = NULL((void*)0);
3688 volatile mmc_switch_type tmp3;
3689 int tmp4;
3690 // _node has no default value.
3691 // _child has no default value.
3692 tmp3 = 0;
3693 for (; tmp3 < 3; tmp3++) {
3694 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3695 case 0: {
3696 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
3697 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(6)))))
;
3698 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
3699
3700 _child = tmpMeta[1];
3701 /* Pattern matching succeeded */
3702#line 400 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
3703 _node = omc_JSON_AvlTree_setTreeLeftRight(threadData, _outNode, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_outNode), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_outNode) - 3))
) + (5)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_child), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_child) - 3))) +
(5)))))
));
3704#line 3704 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3705#line 401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
3706 tmpMeta[0] = omc_JSON_AvlTree_setTreeLeftRight(threadData, _child, _node, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_child), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_child) - 3))) +
(6)))))
));
3707#line 3707 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3708 goto tmp2_done;
3709 }
3710 case 1: {
3711 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
3712 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(6)))))
;
3713 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],1,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((2 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
3714
3715 _child = tmpMeta[1];
3716 /* Pattern matching succeeded */
3717#line 405 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
3718 _node = omc_JSON_AvlTree_setTreeLeftRight(threadData, _outNode, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_outNode), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_outNode) - 3))
) + (5)))))
), _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)));
3719#line 3719 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3720#line 406 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
3721 tmpMeta[0] = omc_JSON_AvlTree_setTreeLeftRight(threadData, _child, _node, _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)));
3722#line 3722 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3723 goto tmp2_done;
3724 }
3725 case 2: {
3726
3727 /* Pattern matching succeeded */
3728#line 408 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
3729 tmpMeta[0] = _inNode;
3730#line 3730 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3731 goto tmp2_done;
3732 }
3733 }
3734 goto tmp2_end;
3735 tmp2_end: ;
3736 }
3737 goto goto_1;
3738 goto_1:;
3739 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3740 goto tmp2_done;
3741 tmp2_done:;
3742 }
3743 }
3744 _outNode = tmpMeta[0];
3745 _return: OMC_LABEL_UNUSED__attribute__((unused))
3746 return _outNode;
3747}
3748
3749PROTECTED_FUNCTION_STATIC modelica_metatype omc_JSON_AvlTree_rotateRight(threadData_t *threadData, modelica_metatype _inNode)
3750{
3751 modelica_metatype _outNode = NULL((void*)0);
3752 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3753 MMC_SO()mmc_check_stackoverflow(threadData);
3754 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3755 _outNode = _inNode;
3756#line 3756 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3757 { /* match expression */
3758 modelica_metatype tmp3_1;
3759 tmp3_1 = _outNode;
3760 {
3761 modelica_metatype _node = NULL((void*)0);
3762 modelica_metatype _child = NULL((void*)0);
3763 volatile mmc_switch_type tmp3;
3764 int tmp4;
3765 // _node has no default value.
3766 // _child has no default value.
3767 tmp3 = 0;
3768 for (; tmp3 < 3; tmp3++) {
3769 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3770 case 0: {
3771 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
3772 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(5)))))
;
3773 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
3774
3775 _child = tmpMeta[1];
3776 /* Pattern matching succeeded */
3777#line 423 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
3778 _node = omc_JSON_AvlTree_setTreeLeftRight(threadData, _outNode, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_child), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_child) - 3))) +
(6)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_outNode), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_outNode) - 3))
) + (6)))))
));
3779#line 3779 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3780#line 424 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
3781 tmpMeta[0] = omc_JSON_AvlTree_setTreeLeftRight(threadData, _child, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_child), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_child) - 3))) +
(5)))))
), _node);
3782#line 3782 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3783 goto tmp2_done;
3784 }
3785 case 1: {
3786 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
3787 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(5)))))
;
3788 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],1,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((2 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
3789
3790 _child = tmpMeta[1];
3791 /* Pattern matching succeeded */
3792#line 428 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
3793 _node = omc_JSON_AvlTree_setTreeLeftRight(threadData, _outNode, _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_outNode), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_outNode) - 3))
) + (6)))))
));
3794#line 3794 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3795#line 429 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
3796 tmpMeta[0] = omc_JSON_AvlTree_setTreeLeftRight(threadData, _child, _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)), _node);
3797#line 3797 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3798 goto tmp2_done;
3799 }
3800 case 2: {
3801
3802 /* Pattern matching succeeded */
3803#line 431 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlSet.interface.mo"
3804 tmpMeta[0] = _inNode;
3805#line 3805 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3806 goto tmp2_done;
3807 }
3808 }
3809 goto tmp2_end;
3810 tmp2_end: ;
3811 }
3812 goto goto_1;
3813 goto_1:;
3814 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3815 goto tmp2_done;
3816 tmp2_done:;
3817 }
3818 }
3819 _outNode = tmpMeta[0];
3820 _return: OMC_LABEL_UNUSED__attribute__((unused))
3821 return _outNode;
3822}
3823
3824DLLExport
3825modelica_metatype omc_JSON_AvlTree_setTreeLeftRight(threadData_t *threadData, modelica_metatype _orig, modelica_metatype _left, modelica_metatype _right)
3826{
3827 modelica_metatype _res = NULL((void*)0);
3828 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
3829 MMC_SO()mmc_check_stackoverflow(threadData);
3830 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3831 // _res has no default value.
3832#line 3832 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3833 { /* match expression */
3834 modelica_metatype tmp3_1;modelica_metatype tmp3_2;modelica_metatype tmp3_3;
3835 tmp3_1 = _orig;
3836 tmp3_2 = _left;
3837 tmp3_3 = _right;
3838 {
3839 volatile mmc_switch_type tmp3;
3840 int tmp4;
3841 tmp3 = 0;
3842 for (; tmp3 < 4; tmp3++) {
3843 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3844 case 0: {
3845 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
3846 if (mmc__uniontype__metarecord__typedef__equal(tmp3_2,2,0)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))==(((0 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
3847 if (mmc__uniontype__metarecord__typedef__equal(tmp3_3,2,0)((*(mmc_uint_t*)((void*)((char*)(tmp3_3) - 3)))==(((0 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
3848 /* Pattern matching succeeded */
3849#line 576 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3850 tmpMeta[1] = mmc_mk_box3(4, &JSON_AvlTree_Tree_LEAF__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_orig), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_orig) - 3))) +
(2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_orig), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_orig) - 3))) +
(3)))))
));
3851#line 576 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3852 tmpMeta[0] = tmpMeta[1];
3853#line 3853 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3854 goto tmp2_done;
3855 }
3856 case 1: {
3857 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
3858 if (mmc__uniontype__metarecord__typedef__equal(tmp3_2,2,0)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))==(((0 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
3859 if (mmc__uniontype__metarecord__typedef__equal(tmp3_3,2,0)((*(mmc_uint_t*)((void*)((char*)(tmp3_3) - 3)))==(((0 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
3860 /* Pattern matching succeeded */
3861#line 577 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3862 tmpMeta[0] = _orig;
3863#line 3863 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3864 goto tmp2_done;
3865 }
3866 case 2: {
3867 modelica_boolean tmp5;
3868 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
3869
3870 /* Pattern matching succeeded */
3871#line 578 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3872 tmp5 = (modelica_boolean)(omc_JSON_AvlTree_referenceEqOrEmpty(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_orig), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_orig) - 3))) +
(5)))))
), _left) && omc_JSON_AvlTree_referenceEqOrEmpty(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_orig), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_orig) - 3))) +
(6)))))
), _right));
3873#line 578 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3874 if(tmp5)
3875#line 578 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3876 {
3877#line 578 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3878 tmpMeta[2] = _orig;
3879#line 578 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3880 }
3881#line 578 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3882 else
3883#line 578 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3884 {
3885#line 578 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3886 tmpMeta[1] = mmc_mk_box6(3, &JSON_AvlTree_Tree_NODE__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_orig), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_orig) - 3))) +
(2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_orig), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_orig) - 3))) +
(3)))))
), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + modelica_integer_max((modelica_integer)(omc_JSON_AvlTree_height(threadData, _left)),(modelica_integer)(omc_JSON_AvlTree_height(threadData, _right)))), _left, _right);
3887#line 578 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3888 tmpMeta[2] = tmpMeta[1];
3889#line 578 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3890 }
3891#line 578 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3892 tmpMeta[0] = tmpMeta[2];
3893#line 3893 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3894 goto tmp2_done;
3895 }
3896 case 3: {
3897 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
3898
3899 /* Pattern matching succeeded */
3900#line 582 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3901 tmpMeta[1] = mmc_mk_box6(3, &JSON_AvlTree_Tree_NODE__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_orig), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_orig) - 3))) +
(2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_orig), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_orig) - 3))) +
(3)))))
), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + modelica_integer_max((modelica_integer)(omc_JSON_AvlTree_height(threadData, _left)),(modelica_integer)(omc_JSON_AvlTree_height(threadData, _right)))), _left, _right);
3902#line 582 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3903 tmpMeta[0] = tmpMeta[1];
3904#line 3904 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3905 goto tmp2_done;
3906 }
3907 }
3908 goto tmp2_end;
3909 tmp2_end: ;
3910 }
3911 goto goto_1;
3912 goto_1:;
3913 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3914 goto tmp2_done;
3915 tmp2_done:;
3916 }
3917 }
3918 _res = tmpMeta[0];
3919 _return: OMC_LABEL_UNUSED__attribute__((unused))
3920 return _res;
3921}
3922
3923DLLExport
3924modelica_metatype omc_JSON_AvlTree_toList(threadData_t *threadData, modelica_metatype _inTree, modelica_metatype _D_24in_lst)
3925{
3926 modelica_metatype _lst = NULL((void*)0);
3927 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
3928 MMC_SO()mmc_check_stackoverflow(threadData);
3929 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3930 _lst = _D_24in_lst;
3931#line 3931 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3932 { /* match expression */
3933 modelica_metatype tmp3_1;
3934 tmp3_1 = _inTree;
3935 {
3936 modelica_string _key = NULL((void*)0);
3937 modelica_metatype _value = NULL((void*)0);
3938 int tmp3;
3939 // _key has no default value.
3940 // _value has no default value.
3941 {
3942 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
3943 case 3: {
3944 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
3945 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3946 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
3947
3948 _key = tmpMeta[1];
3949 _value = tmpMeta[2];
3950 /* Pattern matching succeeded */
3951#line 269 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3952 _lst = omc_JSON_AvlTree_toList(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inTree), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_inTree) - 3)))
+ (6)))))
), _lst);
3953#line 3953 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3954
3955#line 270 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3956 tmpMeta[2] = mmc_mk_box2(0, _key, _value);
3957#line 270 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3958 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _lst);
3959#line 270 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3960 _lst = tmpMeta[1];
3961#line 3961 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3962#line 271 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3963 /* Tail recursive call */
3964#line 271 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3965 _inTree = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inTree), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_inTree) - 3)))
+ (5)))))
);
3966#line 271 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3967 _D_24in_lst = _lst;
3968#line 271 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3969 goto _tailrecursive;
3970#line 271 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3971 /* TODO: Make sure any eventual dead code below is never generated */
3972#line 3972 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3973 goto tmp2_done;
3974 }
3975 case 4: {
3976 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
3977 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3978 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
3979 _key = tmpMeta[1];
3980 _value = tmpMeta[2];
3981 /* Pattern matching succeeded */
3982#line 275 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3983 tmpMeta[2] = mmc_mk_box2(0, _key, _value);
3984#line 275 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3985 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _lst);
3986#line 275 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3987 tmpMeta[0] = tmpMeta[1];
3988#line 3988 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3989 goto tmp2_done;
3990 }
3991 default:
3992 tmp2_default: OMC_LABEL_UNUSED__attribute__((unused)); {
3993
3994 /* Pattern matching succeeded */
3995#line 277 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/BaseAvlTree.interface.mo"
3996 tmpMeta[0] = _lst;
3997#line 3997 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
3998 goto tmp2_done;
3999 }
4000 }
4001 goto tmp2_end;
4002 tmp2_end: ;
4003 }
4004 goto goto_1;
4005 goto_1:;
4006 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4007 goto tmp2_done;
4008 tmp2_done:;
4009 }
4010 }
4011 _lst = tmpMeta[0];
4012 _return: OMC_LABEL_UNUSED__attribute__((unused))
4013 return _lst;
4014}
4015
4016DLLExport
4017modelica_metatype omc_JSON_AvlTree_update(threadData_t *threadData, modelica_metatype _tree, modelica_string _key, modelica_metatype _value)
4018{
4019 modelica_metatype _outTree = NULL((void*)0);
4020 MMC_SO()mmc_check_stackoverflow(threadData);
4021 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4022 _outTree = omc_JSON_AvlTree_add(threadData, _tree, _key, _value, boxvar_JSON_AvlTree_addConflictReplace((void*)((char*)(&(boxvar_lit_JSON_AvlTree_addConflictReplace
).header) + 3))
);
4023 _return: OMC_LABEL_UNUSED__attribute__((unused))
4024 return _outTree;
4025}
4026
4027DLLExport
4028modelica_string omc_JSON_AvlTree_valueStr(threadData_t *threadData, modelica_metatype _inValue)
4029{
4030 modelica_string _outString = NULL((void*)0);
4031 MMC_SO()mmc_check_stackoverflow(threadData);
4032 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4033 // _outString has no default value.
4034#line 57 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Parsers/JSON.mo"
4035 _outString = omc_JSON_toString(threadData, _inValue);
4036#line 4036 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/JSON.c"
4037 _return: OMC_LABEL_UNUSED__attribute__((unused))
4038 return _outString;
4039}
4040