Bug Summary

File:OMCompiler/Compiler/boot/build/LexerJSON.c
Warning:line 312, column 3
Value stored to '_val2' is never read

Annotated Source Code

[?] Use j/k keys for keyboard navigation

1#ifdef OMC_BASE_FILE
2 #define OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c" OMC_BASE_FILE
3#else
4 #define OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c" "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
5#endif
6#include "omc_simulation_settings.h"
7#include "LexerJSON.h"
8#define _OMC_LIT0_data"\n[" "\n["
9static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT0,2,_OMC_LIT0_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT0
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), "\n["
}
;
10#define _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT0)((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))
11#define _OMC_LIT1_data":" ":"
12static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT1,1,_OMC_LIT1_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT1
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), ":"
}
;
13#define _OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT1)((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3))
14#define _OMC_LIT2_data"]: checkArray failed: arrayLength=" "]: checkArray failed: arrayLength="
15static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT2,34,_OMC_LIT2_data)struct { mmc_uint_t header; const char data[(34)+1]; } _OMC_LIT_STRUCT2
= { ((((mmc_uint_t)34)<<(3))+((1<<(3+3))+5)), "]: checkArray failed: arrayLength="
}
;
16#define _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT2)((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3))
17#define _OMC_LIT3_data" index=" " index="
18static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT3,7,_OMC_LIT3_data)struct { mmc_uint_t header; const char data[(7)+1]; } _OMC_LIT_STRUCT3
= { ((((mmc_uint_t)7)<<(3))+((1<<(3+3))+5)), " index="
}
;
19#define _OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT3)((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3))
20#define _OMC_LIT4_data"\n" "\n"
21static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT4,1,_OMC_LIT4_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT4
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "\n"
}
;
22#define _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT4)((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3))
23static _index_t _OMC_LIT5_dims[1] = {51};
24static const modelica_integer _OMC_LIT5_data[] = {0, 0, 81, 82, 78, 25, 82, 22, 82, 82, 82, 63, 53, 55, 82, 82, 74, 27, 82, 50, 65, 26, 39, 53, 52, 37, 82, 0, 37, 45, 43, 27, 27, 24, 0, 47, 19, 82, 82, 0, 27, 23, 82, 0, 82, 56, 59, 61, 63, 65, 67};
25static integer_array const _OMC_LIT5 = {
26 1, _OMC_LIT5_dims, (void*) _OMC_LIT5_data, (modelica_boolean) 0
27};
28static _index_t _OMC_LIT6_dims[1] = {109};
29static const modelica_integer _OMC_LIT6_data[] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 8, 18, 8, 42, 22, 8, 22, 41, 37, 22, 6, 8, 18, 34, 23, 22, 23, 29, 33, 23, 29, 32, 36, 31, 36, 30, 29, 36, 46, 46, 46, 46, 47, 26, 47, 48, 48, 49, 49, 50, 50, 51, 51, 25, 24, 21, 20, 17, 14, 13, 12, 5, 3, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45};
30static integer_array const _OMC_LIT6 = {
31 1, _OMC_LIT6_dims, (void*) _OMC_LIT6_data, (modelica_boolean) 0
32};
33static _index_t _OMC_LIT7_dims[1] = {51};
34static const modelica_integer _OMC_LIT7_data[] = {45, 1, 45, 45, 45, 46, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 45, 47, 45, 45, 45, 45, 45, 45, 45, 48, 45, 45, 45, 45, 45, 45, 49, 45, 45, 45, 45, 50, 45, 45, 45, 51, 0, 45, 45, 45, 45, 45, 45};
35static integer_array const _OMC_LIT7 = {
36 1, _OMC_LIT7_dims, (void*) _OMC_LIT7_data, (modelica_boolean) 0
37};
38static _index_t _OMC_LIT8_dims[1] = {27};
39static const modelica_integer _OMC_LIT8_data[] = {1, 1, 2, 1, 1, 1, 1, 2, 3, 1, 3, 3, 1, 2, 1, 3, 4, 3, 4, 1, 2, 2, 1, 2, 2, 1, 1};
40static integer_array const _OMC_LIT8 = {
41 1, _OMC_LIT8_dims, (void*) _OMC_LIT8_data, (modelica_boolean) 0
42};
43static _index_t _OMC_LIT9_dims[1] = {46};
44static const modelica_integer _OMC_LIT9_data[] = {1, 1, 1, 2, 3, 5, 6, 8, 10, 12, 14, 16, 17, 18, 19, 21, 23, 24, 24, 25, 25, 25, 26, 26, 26, 26, 26, 27, 27, 28, 28, 29, 29, 29, 29, 29, 29, 29, 30, 31, 31, 31, 32, 33, 33, 33};
45static integer_array const _OMC_LIT9 = {
46 1, _OMC_LIT9_dims, (void*) _OMC_LIT9_data, (modelica_boolean) 0
47};
48static _index_t _OMC_LIT10_dims[1] = {32};
49static const modelica_integer _OMC_LIT10_data[] = {17, 16, 15, 16, 16, 13, 16, 5, 16, 14, 16, 11, 16, 12, 16, 16, 16, 16, 9, 16, 10, 16, 15, 1, 5, 2, 3, 4, 8, 6, 3, 7};
50static integer_array const _OMC_LIT10 = {
51 1, _OMC_LIT10_dims, (void*) _OMC_LIT10_data, (modelica_boolean) 0
52};
53static _index_t _OMC_LIT11_dims[1] = {255};
54static const modelica_integer _OMC_LIT11_data[] = {1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 4, 5, 6, 7, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 12, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 13, 14, 15, 1, 1, 1, 16, 17, 11, 11, 18, 19, 1, 1, 1, 1, 1, 20, 1, 21, 1, 1, 1, 22, 23, 24, 25, 1, 1, 1, 1, 1, 26, 1, 27, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
55static integer_array const _OMC_LIT11 = {
56 1, _OMC_LIT11_dims, (void*) _OMC_LIT11_data, (modelica_boolean) 0
57};
58static _index_t _OMC_LIT12_dims[1] = {109};
59static const modelica_integer _OMC_LIT12_data[] = {4, 5, 6, 4, 7, 4, 4, 4, 8, 9, 4, 4, 10, 4, 11, 4, 4, 4, 12, 4, 13, 4, 4, 14, 4, 15, 16, 19, 21, 27, 22, 42, 21, 23, 22, 42, 43, 23, 20, 23, 20, 39, 30, 23, 30, 29, 38, 31, 36, 37, 41, 31, 41, 31, 36, 42, 18, 18, 18, 18, 18, 34, 18, 35, 35, 40, 40, 44, 44, 18, 18, 33, 32, 29, 28, 17, 26, 25, 24, 17, 45, 3, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45};
60static integer_array const _OMC_LIT12 = {
61 1, _OMC_LIT12_dims, (void*) _OMC_LIT12_data, (modelica_boolean) 0
62};
63static const MMC_DEFREALLIT(_OMC_LIT_STRUCT13,0.0)struct mmc_real_lit _OMC_LIT_STRUCT13 = {0,(((8/8) << 10
) + 9),0.0}
;
64#define _OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT13)((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3))
65#define _OMC_LIT14_data"" ""
66static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT14,0,_OMC_LIT14_data)struct { mmc_uint_t header; const char data[(0)+1]; } _OMC_LIT_STRUCT14
= { ((((mmc_uint_t)0)<<(3))+((1<<(3+3))+5)), "" }
;
67#define _OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT14)((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3))
68#define _OMC_LIT15_data"[TOKEN:" "[TOKEN:"
69static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT15,7,_OMC_LIT15_data)struct { mmc_uint_t header; const char data[(7)+1]; } _OMC_LIT_STRUCT15
= { ((((mmc_uint_t)7)<<(3))+((1<<(3+3))+5)), "[TOKEN:"
}
;
70#define _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT15)((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3))
71#define _OMC_LIT16_data" '" " '"
72static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT16,2,_OMC_LIT16_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT16
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), " '"
}
;
73#define _OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT16)((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3))
74#define _OMC_LIT17_data"' (" "' ("
75static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT17,3,_OMC_LIT17_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT17
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "' ("
}
;
76#define _OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT17)((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3))
77#define _OMC_LIT18_data"-" "-"
78static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT18,1,_OMC_LIT18_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT18
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "-"
}
;
79#define _OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT18)((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3))
80#define _OMC_LIT19_data")]" ")]"
81static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT19,2,_OMC_LIT19_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT19
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), ")]"
}
;
82#define _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT19)((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3))
83#define _OMC_LIT20_data"<NoFile>" "<NoFile>"
84static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT20,8,_OMC_LIT20_data)struct { mmc_uint_t header; const char data[(8)+1]; } _OMC_LIT_STRUCT20
= { ((((mmc_uint_t)8)<<(3))+((1<<(3+3))+5)), "<NoFile>"
}
;
85#define _OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT20)((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3))
86static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT21,10,3)struct { mmc_uint_t header; const void *data[10]; } _OMC_LIT_STRUCT21
= { (((10) << 10) + (((3) & 255) << 2)),
{&LexerJSON_Token_TOKEN__desc,_OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),_OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0)))}};
87#define _OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT21)((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3))
88#define _OMC_LIT22_data"\nLexer unknown rule, action=" "\nLexer unknown rule, action="
89static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT22,28,_OMC_LIT22_data)struct { mmc_uint_t header; const char data[(28)+1]; } _OMC_LIT_STRUCT22
= { ((((mmc_uint_t)28)<<(3))+((1<<(3+3))+5)), "\nLexer unknown rule, action="
}
;
90#define _OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT22)((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3))
91#define _OMC_LIT23_data"<StringSource>" "<StringSource>"
92static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT23,14,_OMC_LIT23_data)struct { mmc_uint_t header; const char data[(14)+1]; } _OMC_LIT_STRUCT23
= { ((((mmc_uint_t)14)<<(3))+((1<<(3+3))+5)), "<StringSource>"
}
;
93#define _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT23)((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3))
94#include "util/modelica.h"
95
96#include "LexerJSON_includes.h"
97
98
99/* default, do not make protected functions static */
100#if !defined(PROTECTED_FUNCTION_STATIC)
101#define PROTECTED_FUNCTION_STATIC
102#endif
103PROTECTED_FUNCTION_STATIC void omc_LexerJSON_checkArrayModelica(threadData_t *threadData, integer_array _arr, modelica_integer _index, modelica_metatype _info);
104PROTECTED_FUNCTION_STATIC void boxptr_LexerJSON_checkArrayModelica(threadData_t *threadData, modelica_metatype _arr, modelica_metatype _index, modelica_metatype _info);
105static const MMC_DEFSTRUCTLIT(boxvar_lit_LexerJSON_checkArrayModelica,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_LexerJSON_checkArrayModelica
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_LexerJSON_checkArrayModelica,0}};
106#define boxvar_LexerJSON_checkArrayModelica((void*)((char*)(&(boxvar_lit_LexerJSON_checkArrayModelica
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_LexerJSON_checkArrayModelica)((void*)((char*)(&(boxvar_lit_LexerJSON_checkArrayModelica
).header) + 3))
107PROTECTED_FUNCTION_STATIC void omc_LexerJSON_checkArray(threadData_t *threadData, modelica_metatype _arr, modelica_integer _index, modelica_metatype _info);
108PROTECTED_FUNCTION_STATIC void boxptr_LexerJSON_checkArray(threadData_t *threadData, modelica_metatype _arr, modelica_metatype _index, modelica_metatype _info);
109static const MMC_DEFSTRUCTLIT(boxvar_lit_LexerJSON_checkArray,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_LexerJSON_checkArray
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_LexerJSON_checkArray,0}};
110#define boxvar_LexerJSON_checkArray((void*)((char*)(&(boxvar_lit_LexerJSON_checkArray).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_LexerJSON_checkArray)((void*)((char*)(&(boxvar_lit_LexerJSON_checkArray).header
) + 3))
111PROTECTED_FUNCTION_STATIC modelica_integer omc_LexerJSON_evalState(threadData_t *threadData, modelica_integer _cState, modelica_integer _c, modelica_integer *out_new_c);
112PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_LexerJSON_evalState(threadData_t *threadData, modelica_metatype _cState, modelica_metatype _c, modelica_metatype *out_new_c);
113static const MMC_DEFSTRUCTLIT(boxvar_lit_LexerJSON_evalState,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_LexerJSON_evalState
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_LexerJSON_evalState,0}};
114#define boxvar_LexerJSON_evalState((void*)((char*)(&(boxvar_lit_LexerJSON_evalState).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_LexerJSON_evalState)((void*)((char*)(&(boxvar_lit_LexerJSON_evalState).header
) + 3))
115PROTECTED_FUNCTION_STATIC modelica_integer omc_LexerJSON_findRule(threadData_t *threadData, modelica_string _fileContents, modelica_integer _currSt, modelica_integer _pos, modelica_integer _sPos, modelica_integer _mm_ePos, modelica_integer _linenr, modelica_integer _inBuffer, modelica_integer _inBkBuffer, modelica_metatype _inStates, modelica_integer _inNumStates, modelica_integer *out_mm_currSt, modelica_integer *out_mm_pos, modelica_integer *out_mm_sPos, modelica_integer *out_mm_linenr, modelica_integer *out_buffer, modelica_integer *out_bkBuffer, modelica_metatype *out_states, modelica_integer *out_numStates);
116PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_LexerJSON_findRule(threadData_t *threadData, modelica_metatype _fileContents, modelica_metatype _currSt, modelica_metatype _pos, modelica_metatype _sPos, modelica_metatype _mm_ePos, modelica_metatype _linenr, modelica_metatype _inBuffer, modelica_metatype _inBkBuffer, modelica_metatype _inStates, modelica_metatype _inNumStates, modelica_metatype *out_mm_currSt, modelica_metatype *out_mm_pos, modelica_metatype *out_mm_sPos, modelica_metatype *out_mm_linenr, modelica_metatype *out_buffer, modelica_metatype *out_bkBuffer, modelica_metatype *out_states, modelica_metatype *out_numStates);
117static const MMC_DEFSTRUCTLIT(boxvar_lit_LexerJSON_findRule,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_LexerJSON_findRule
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_LexerJSON_findRule,0}};
118#define boxvar_LexerJSON_findRule((void*)((char*)(&(boxvar_lit_LexerJSON_findRule).header)
+ 3))
MMC_REFSTRUCTLIT(boxvar_lit_LexerJSON_findRule)((void*)((char*)(&(boxvar_lit_LexerJSON_findRule).header)
+ 3))
119PROTECTED_FUNCTION_STATIC modelica_metatype omc_LexerJSON_consume(threadData_t *threadData, modelica_integer _cp, modelica_metatype _tokens, modelica_string _fileContents, modelica_integer _startSt, modelica_integer _currSt, modelica_integer _pos, modelica_integer _sPos, modelica_integer _ePos, modelica_integer _linenr, modelica_integer _inLineNrStart, modelica_integer _inBuffer, modelica_metatype _inStates, modelica_integer _inNumStates, modelica_string _fileName, modelica_metatype _inErrorTokens, modelica_integer *out_bkBuffer, modelica_integer *out_mm_startSt, modelica_integer *out_mm_currSt, modelica_integer *out_mm_pos, modelica_integer *out_mm_sPos, modelica_integer *out_mm_ePos, modelica_integer *out_mm_linenr, modelica_integer *out_lineNrStart, modelica_integer *out_buffer, modelica_metatype *out_states, modelica_integer *out_numStates, modelica_metatype *out_errorTokens);
120PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_LexerJSON_consume(threadData_t *threadData, modelica_metatype _cp, modelica_metatype _tokens, modelica_metatype _fileContents, modelica_metatype _startSt, modelica_metatype _currSt, modelica_metatype _pos, modelica_metatype _sPos, modelica_metatype _ePos, modelica_metatype _linenr, modelica_metatype _inLineNrStart, modelica_metatype _inBuffer, modelica_metatype _inStates, modelica_metatype _inNumStates, modelica_metatype _fileName, modelica_metatype _inErrorTokens, modelica_metatype *out_bkBuffer, modelica_metatype *out_mm_startSt, modelica_metatype *out_mm_currSt, modelica_metatype *out_mm_pos, modelica_metatype *out_mm_sPos, modelica_metatype *out_mm_ePos, modelica_metatype *out_mm_linenr, modelica_metatype *out_lineNrStart, modelica_metatype *out_buffer, modelica_metatype *out_states, modelica_metatype *out_numStates, modelica_metatype *out_errorTokens);
121static const MMC_DEFSTRUCTLIT(boxvar_lit_LexerJSON_consume,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_LexerJSON_consume
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_LexerJSON_consume,0}};
122#define boxvar_LexerJSON_consume((void*)((char*)(&(boxvar_lit_LexerJSON_consume).header) +
3))
MMC_REFSTRUCTLIT(boxvar_lit_LexerJSON_consume)((void*)((char*)(&(boxvar_lit_LexerJSON_consume).header) +
3))
123PROTECTED_FUNCTION_STATIC modelica_metatype omc_LexerJSON_lex(threadData_t *threadData, modelica_string _fileName, modelica_string _contents, modelica_metatype *out_errorTokens);
124static const MMC_DEFSTRUCTLIT(boxvar_lit_LexerJSON_lex,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_LexerJSON_lex
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_LexerJSON_lexomc_LexerJSON_lex,0}};
125#define boxvar_LexerJSON_lex((void*)((char*)(&(boxvar_lit_LexerJSON_lex).header) + 3)
)
MMC_REFSTRUCTLIT(boxvar_lit_LexerJSON_lex)((void*)((char*)(&(boxvar_lit_LexerJSON_lex).header) + 3)
)
126
127PROTECTED_FUNCTION_STATIC void omc_LexerJSON_checkArrayModelica(threadData_t *threadData, integer_array _arr, modelica_integer _index, modelica_metatype _info)
128{
129 modelica_string _filename = NULL((void*)0);
130 modelica_integer _lineStart;
131 modelica_integer tmp1;
132 modelica_integer tmp2;
133 modelica_string tmp3;
134 modelica_string tmp4;
135 modelica_integer tmp5;
136 modelica_string tmp6;
137 modelica_metatype tmpMeta[8] __attribute__((unused)) = {0};
138 MMC_SO()mmc_check_stackoverflow(threadData);
139 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
140 // _filename has no default value.
141 // _lineStart has no default value.
142#line 527 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
143 tmp1 = size_of_dimension_base_array(_arr, ((modelica_integer) 1));
144#line 527 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
145 if(((_index < ((modelica_integer) 1)) || (_index > tmp1)))
146#line 527 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
147 {
148#line 528 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
149 /* Pattern-matching assignment */
150#line 528 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
151 tmpMeta[0] = _info;
152#line 528 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
153 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
154#line 528 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
155 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
156#line 528 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
157 tmp2 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
158#line 528 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
159 _filename = tmpMeta[1];
160#line 528 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
161 _lineStart = tmp2 /* pattern as ty=Integer */;
162#line 162 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
163
164#line 529 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
165 tmpMeta[0] = stringAppend(_OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)),_filename);
166#line 529 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
167 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)));
168#line 529 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
169 tmp3 = modelica_integer_to_modelica_string(_lineStart, ((modelica_integer) 0), 1);
170#line 529 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
171 tmpMeta[2] = stringAppend(tmpMeta[1],tmp3);
172#line 529 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
173 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)));
174#line 529 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
175 tmp5 = size_of_dimension_base_array(_arr, ((modelica_integer) 1));
176#line 529 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
177 tmp4 = modelica_integer_to_modelica_string(tmp5, ((modelica_integer) 0), 1);
178#line 529 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
179 tmpMeta[4] = stringAppend(tmpMeta[3],tmp4);
180#line 529 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
181 tmpMeta[5] = stringAppend(tmpMeta[4],_OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)));
182#line 529 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
183 tmp6 = modelica_integer_to_modelica_string(_index, ((modelica_integer) 0), 1);
184#line 529 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
185 tmpMeta[6] = stringAppend(tmpMeta[5],tmp6);
186#line 529 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
187 tmpMeta[7] = stringAppend(tmpMeta[6],_OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)));
188#line 529 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
189 fputs(MMC_STRINGDATA(tmpMeta[7])(((struct mmc_string*)((void*)((char*)(tmpMeta[7]) - 3)))->
data)
,stdoutstdout);
190#line 190 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
191
192#line 530 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
193 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
194#line 194 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
195 }
196 _return: OMC_LABEL_UNUSED__attribute__((unused))
197 return;
198}
199PROTECTED_FUNCTION_STATIC void boxptr_LexerJSON_checkArrayModelica(threadData_t *threadData, modelica_metatype _arr, modelica_metatype _index, modelica_metatype _info)
200{
201 modelica_integer tmp1;
202 tmp1 = mmc_unbox_integer(_index)(((mmc_sint_t) (_index)) >> 1);
203 omc_LexerJSON_checkArrayModelica(threadData, *((base_array_t*)_arr), tmp1, _info);
204 return;
205}
206
207PROTECTED_FUNCTION_STATIC void omc_LexerJSON_checkArray(threadData_t *threadData, modelica_metatype _arr, modelica_integer _index, modelica_metatype _info)
208{
209 modelica_string _filename = NULL((void*)0);
210 modelica_integer _lineStart;
211 modelica_integer tmp1;
212 modelica_string tmp2;
213 modelica_string tmp3;
214 modelica_string tmp4;
215 modelica_metatype tmpMeta[8] __attribute__((unused)) = {0};
216 MMC_SO()mmc_check_stackoverflow(threadData);
217 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
218 // _filename has no default value.
219 // _lineStart has no default value.
220#line 512 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
221 if(((_index < ((modelica_integer) 1)) || (_index > arrayLength(_arr))))
222#line 512 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
223 {
224#line 513 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
225 /* Pattern-matching assignment */
226#line 513 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
227 tmpMeta[0] = _info;
228#line 513 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
229 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
230#line 513 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
231 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
232#line 513 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
233 tmp1 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
234#line 513 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
235 _filename = tmpMeta[1];
236#line 513 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
237 _lineStart = tmp1 /* pattern as ty=Integer */;
238#line 238 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
239
240#line 514 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
241 tmpMeta[0] = stringAppend(_OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)),_filename);
242#line 514 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
243 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)));
244#line 514 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
245 tmp2 = modelica_integer_to_modelica_string(_lineStart, ((modelica_integer) 0), 1);
246#line 514 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
247 tmpMeta[2] = stringAppend(tmpMeta[1],tmp2);
248#line 514 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
249 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)));
250#line 514 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
251 tmp3 = modelica_integer_to_modelica_string(arrayLength(_arr), ((modelica_integer) 0), 1);
252#line 514 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
253 tmpMeta[4] = stringAppend(tmpMeta[3],tmp3);
254#line 514 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
255 tmpMeta[5] = stringAppend(tmpMeta[4],_OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)));
256#line 514 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
257 tmp4 = modelica_integer_to_modelica_string(_index, ((modelica_integer) 0), 1);
258#line 514 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
259 tmpMeta[6] = stringAppend(tmpMeta[5],tmp4);
260#line 514 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
261 tmpMeta[7] = stringAppend(tmpMeta[6],_OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)));
262#line 514 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
263 fputs(MMC_STRINGDATA(tmpMeta[7])(((struct mmc_string*)((void*)((char*)(tmpMeta[7]) - 3)))->
data)
,stdoutstdout);
264#line 264 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
265
266#line 515 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
267 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
268#line 268 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
269 }
270 _return: OMC_LABEL_UNUSED__attribute__((unused))
271 return;
272}
273PROTECTED_FUNCTION_STATIC void boxptr_LexerJSON_checkArray(threadData_t *threadData, modelica_metatype _arr, modelica_metatype _index, modelica_metatype _info)
274{
275 modelica_integer tmp1;
276 tmp1 = mmc_unbox_integer(_index)(((mmc_sint_t) (_index)) >> 1);
277 omc_LexerJSON_checkArray(threadData, _arr, tmp1, _info);
278 return;
279}
280
281PROTECTED_FUNCTION_STATIC modelica_integer omc_LexerJSON_evalState(threadData_t *threadData, modelica_integer _cState, modelica_integer _c, modelica_integer *out_new_c)
282{
283 modelica_integer _new_state;
284 modelica_integer _new_c;
285 modelica_integer _cState1;
286 modelica_integer _c1;
287 modelica_integer _val;
288 modelica_integer _val2;
289 modelica_integer _chk;
290 MMC_SO()mmc_check_stackoverflow(threadData);
291 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
292 // _new_state has no default value.
293 // _new_c has no default value.
294 _cState1 = _cState;
295 _c1 = _c;
296 // _val has no default value.
297 // _val2 has no default value.
298 // _chk has no default value.
299#line 487 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
300 _chk = integer_get(_OMC_LIT5, (_cState1)-1);
301#line 301 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
302
303#line 488 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
304 _chk = _chk + _c1;
305#line 305 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
306
307#line 489 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
308 _val = integer_get(_OMC_LIT6, (_chk)-1);
309#line 309 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
310
311#line 490 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
312 _val2 = integer_get(_OMC_LIT5, (_cState1)-1) + _c1;
Value stored to '_val2' is never read
313#line 313 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
314
315#line 491 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
316 if((_cState1 != _val))
317#line 491 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
318 {
319#line 492 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
320 _cState1 = integer_get(_OMC_LIT7, (_cState1)-1);
321#line 321 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
322
323#line 493 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
324 if((_cState1 >= ((modelica_integer) 46)))
325#line 493 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
326 {
327#line 494 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
328 _c1 = integer_get(_OMC_LIT8, (_c1)-1);
329#line 329 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
330 }
331
332#line 496 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
333 if((_cState1 > ((modelica_integer) 0)))
334#line 496 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
335 {
336#line 497 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
337 _cState1 = omc_LexerJSON_evalState(threadData, _cState1, _c1 ,&_c1);
338#line 338 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
339 }
340 }
341
342#line 500 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
343 _new_state = _cState1;
344#line 344 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
345
346#line 501 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
347 _new_c = _c1;
348#line 348 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
349 _return: OMC_LABEL_UNUSED__attribute__((unused))
350 if (out_new_c) { *out_new_c = _new_c; }
351 return _new_state;
352}
353PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_LexerJSON_evalState(threadData_t *threadData, modelica_metatype _cState, modelica_metatype _c, modelica_metatype *out_new_c)
354{
355 modelica_integer tmp1;
356 modelica_integer tmp2;
357 modelica_integer _new_c;
358 modelica_integer _new_state;
359 modelica_metatype out_new_state;
360 tmp1 = mmc_unbox_integer(_cState)(((mmc_sint_t) (_cState)) >> 1);
361 tmp2 = mmc_unbox_integer(_c)(((mmc_sint_t) (_c)) >> 1);
362 _new_state = omc_LexerJSON_evalState(threadData, tmp1, tmp2, &_new_c);
363 out_new_state = mmc_mk_icon(_new_state);
364 if (out_new_c) { *out_new_c = mmc_mk_icon(_new_c); }
365 return out_new_state;
366}
367
368PROTECTED_FUNCTION_STATIC modelica_integer omc_LexerJSON_findRule(threadData_t *threadData, modelica_string _fileContents, modelica_integer _currSt, modelica_integer _pos, modelica_integer _sPos, modelica_integer _mm_ePos, modelica_integer _linenr, modelica_integer _inBuffer, modelica_integer _inBkBuffer, modelica_metatype _inStates, modelica_integer _inNumStates, modelica_integer *out_mm_currSt, modelica_integer *out_mm_pos, modelica_integer *out_mm_sPos, modelica_integer *out_mm_linenr, modelica_integer *out_buffer, modelica_integer *out_bkBuffer, modelica_metatype *out_states, modelica_integer *out_numStates)
369{
370 modelica_integer _action;
371 modelica_integer _mm_currSt;
372 modelica_integer _mm_pos;
373 modelica_integer _mm_sPos;
374 modelica_integer _mm_linenr;
375 modelica_integer _buffer;
376 modelica_integer _bkBuffer;
377 modelica_metatype _states = NULL((void*)0);
378 modelica_integer _numStates;
379 modelica_metatype _mm_accept = NULL((void*)0);
380 modelica_metatype _mm_ec = NULL((void*)0);
381 modelica_metatype _mm_meta = NULL((void*)0);
382 modelica_metatype _mm_base = NULL((void*)0);
383 modelica_metatype _mm_def = NULL((void*)0);
384 modelica_metatype _mm_nxt = NULL((void*)0);
385 modelica_metatype _mm_chk = NULL((void*)0);
386 modelica_metatype _mm_acclist = NULL((void*)0);
387 modelica_integer _lp;
388 modelica_integer _lp1;
389 modelica_integer _stCmp;
390 modelica_boolean _st;
391 modelica_integer tmp1_c0 __attribute__((unused)) = 0;
392 modelica_integer tmp1_c1 __attribute__((unused)) = 0;
393 modelica_integer tmp1_c2 __attribute__((unused)) = 0;
394 modelica_integer tmp1_c3 __attribute__((unused)) = 0;
395 modelica_integer tmp1_c4 __attribute__((unused)) = 0;
396 modelica_integer tmp1_c5 __attribute__((unused)) = 0;
397 modelica_integer tmp1_c6 __attribute__((unused)) = 0;
398 modelica_integer tmp1_c8 __attribute__((unused)) = 0;
399 modelica_metatype tmpMeta[9] __attribute__((unused)) = {0};
400 MMC_SO()mmc_check_stackoverflow(threadData);
401 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
402 // _action has no default value.
403 // _mm_currSt has no default value.
404 // _mm_pos has no default value.
405 // _mm_sPos has no default value.
406 // _mm_linenr has no default value.
407 // _buffer has no default value.
408 // _bkBuffer has no default value.
409 // _states has no default value.
410 // _numStates has no default value.
411 // _mm_accept has no default value.
412 // _mm_ec has no default value.
413 // _mm_meta has no default value.
414 // _mm_base has no default value.
415 // _mm_def has no default value.
416 // _mm_nxt has no default value.
417 // _mm_chk has no default value.
418 // _mm_acclist has no default value.
419 // _lp has no default value.
420 // _lp1 has no default value.
421 // _stCmp has no default value.
422 // _st has no default value.
423#line 428 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
424 _mm_currSt = _currSt;
425#line 425 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
426
427#line 429 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
428 _mm_pos = _pos;
429#line 429 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
430
431#line 430 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
432 _mm_sPos = _sPos;
433#line 433 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
434
435#line 431 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
436 _mm_linenr = _linenr;
437#line 437 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
438
439#line 432 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
440 _buffer = _inBuffer;
441#line 441 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
442
443#line 433 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
444 _bkBuffer = _inBkBuffer;
445#line 445 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
446
447#line 434 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
448 _states = _inStates;
449#line 449 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
450
451#line 435 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
452 _numStates = _inNumStates;
453#line 453 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
454
455#line 437 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
456 _stCmp = mmc_unbox_integer(arrayGetNoBoundsChecking(_states, _numStates))(((mmc_sint_t) (((((struct mmc_struct*)((void*)((char*)((_states
)) - 3)))->data)[(_numStates)-1]))) >> 1)
;
457#line 457 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
458
459#line 438 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
460 _lp = integer_get(_OMC_LIT9, (_stCmp)-1);
461#line 461 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
462
463#line 439 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
464 _lp1 = integer_get(_OMC_LIT9, (((modelica_integer) 1) + _stCmp)-1);
465#line 465 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
466
467#line 441 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
468 _st = ((_lp > ((modelica_integer) 0)) && (_lp < _lp1));
469#line 469 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
470
471#line 442 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
472
473#line 442 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
474
475#line 442 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
476
477#line 442 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
478
479#line 442 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
480
481#line 442 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
482
483#line 442 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
484
485#line 442 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
486
487#line 442 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
488
489#line 489 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
490 { /* match expression */
491 modelica_boolean tmp4_1;
492 tmp4_1 = _st;
493 {
494 modelica_integer _act;
495 modelica_integer _cp;
496 volatile mmc_switch_type tmp4;
497 int tmp5;
498 // _act has no default value.
499 // _cp has no default value.
500 tmp4 = 0;
501 for (; tmp4 < 2; tmp4++) {
502 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
503 case 0: {
504 if (1 != tmp4_1) goto tmp3_end;
505 /* Pattern matching succeeded */
506#line 452 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
507 _lp = integer_get(_OMC_LIT9, (_stCmp)-1);
508#line 508 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
509
510#line 453 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
511 _act = integer_get(_OMC_LIT10, (_lp)-1);
512#line 512 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
513#line 454 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
514 tmp1_c0 = _act;
515#line 454 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
516 tmp1_c1 = _mm_currSt;
517#line 454 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
518 tmp1_c2 = _mm_pos;
519#line 454 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
520 tmp1_c3 = _mm_sPos;
521#line 454 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
522 tmp1_c4 = _mm_linenr;
523#line 454 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
524 tmp1_c5 = _buffer;
525#line 454 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
526 tmp1_c6 = _bkBuffer;
527#line 454 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
528 tmpMeta[0+7] = _states;
529#line 454 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
530 tmp1_c8 = _numStates;
531#line 531 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
532 goto tmp3_done;
533 }
534 case 1: {
535 if (0 != tmp4_1) goto tmp3_end;
536 /* Pattern matching succeeded */
537#line 457 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
538 _cp = stringGetNoBoundsChecking(_fileContents, ((modelica_integer) -1) + _mm_pos)((unsigned char*)(((struct mmc_string*)((void*)((char*)((_fileContents
)) - 3)))->data))[(((modelica_integer) -1) + _mm_pos)-1]
;
539#line 539 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
540
541#line 458 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
542 _buffer = ((modelica_integer) -1) + _buffer;
543#line 543 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
544
545#line 459 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
546 _bkBuffer = ((modelica_integer) 1) + _bkBuffer;
547#line 547 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
548
549#line 460 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
550 _mm_pos = ((modelica_integer) -1) + _mm_pos;
551#line 551 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
552
553#line 461 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
554 _mm_sPos = ((modelica_integer) -1) + _mm_sPos;
555#line 555 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
556
557#line 462 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
558 if((_cp == ((modelica_integer) 10)))
559#line 462 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
560 {
561#line 463 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
562 _mm_sPos = _mm_ePos;
563#line 563 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
564
565#line 464 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
566 _mm_linenr = ((modelica_integer) -1) + _mm_linenr;
567#line 567 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
568 }
569
570#line 469 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
571 _mm_currSt = mmc_unbox_integer(arrayGetNoBoundsChecking(_states, _numStates))(((mmc_sint_t) (((((struct mmc_struct*)((void*)((char*)((_states
)) - 3)))->data)[(_numStates)-1]))) >> 1)
;
572#line 572 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
573
574#line 470 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
575 _numStates = ((modelica_integer) -1) + _numStates;
576#line 576 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
577#line 471 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
578 /* Tail recursive call */
579#line 471 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
580 _currSt = _mm_currSt;
581#line 471 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
582 _pos = _mm_pos;
583#line 471 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
584 _sPos = _mm_sPos;
585#line 471 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
586 _linenr = _mm_linenr;
587#line 471 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
588 _inBuffer = _buffer;
589#line 471 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
590 _inBkBuffer = _bkBuffer;
591#line 471 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
592 _inStates = _states;
593#line 471 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
594 _inNumStates = _numStates;
595#line 471 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
596 goto _tailrecursive;
597#line 471 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
598 /* TODO: Make sure any eventual dead code below is never generated */
599#line 599 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
600 goto tmp3_done;
601 }
602 }
603 goto tmp3_end;
604 tmp3_end: ;
605 }
606 goto goto_2;
607 goto_2:;
608 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
609 goto tmp3_done;
610 tmp3_done:;
611 }
612 }
613 _action = tmp1_c0;
614 _mm_currSt = tmp1_c1;
615 _mm_pos = tmp1_c2;
616 _mm_sPos = tmp1_c3;
617 _mm_linenr = tmp1_c4;
618 _buffer = tmp1_c5;
619 _bkBuffer = tmp1_c6;
620 _states = tmpMeta[0+7];
621 _numStates = tmp1_c8;
622 _return: OMC_LABEL_UNUSED__attribute__((unused))
623 if (out_mm_currSt) { *out_mm_currSt = _mm_currSt; }
624 if (out_mm_pos) { *out_mm_pos = _mm_pos; }
625 if (out_mm_sPos) { *out_mm_sPos = _mm_sPos; }
626 if (out_mm_linenr) { *out_mm_linenr = _mm_linenr; }
627 if (out_buffer) { *out_buffer = _buffer; }
628 if (out_bkBuffer) { *out_bkBuffer = _bkBuffer; }
629 if (out_states) { *out_states = _states; }
630 if (out_numStates) { *out_numStates = _numStates; }
631 return _action;
632}
633PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_LexerJSON_findRule(threadData_t *threadData, modelica_metatype _fileContents, modelica_metatype _currSt, modelica_metatype _pos, modelica_metatype _sPos, modelica_metatype _mm_ePos, modelica_metatype _linenr, modelica_metatype _inBuffer, modelica_metatype _inBkBuffer, modelica_metatype _inStates, modelica_metatype _inNumStates, modelica_metatype *out_mm_currSt, modelica_metatype *out_mm_pos, modelica_metatype *out_mm_sPos, modelica_metatype *out_mm_linenr, modelica_metatype *out_buffer, modelica_metatype *out_bkBuffer, modelica_metatype *out_states, modelica_metatype *out_numStates)
634{
635 modelica_integer tmp1;
636 modelica_integer tmp2;
637 modelica_integer tmp3;
638 modelica_integer tmp4;
639 modelica_integer tmp5;
640 modelica_integer tmp6;
641 modelica_integer tmp7;
642 modelica_integer tmp8;
643 modelica_integer _mm_currSt;
644 modelica_integer _mm_pos;
645 modelica_integer _mm_sPos;
646 modelica_integer _mm_linenr;
647 modelica_integer _buffer;
648 modelica_integer _bkBuffer;
649 modelica_integer _numStates;
650 modelica_integer _action;
651 modelica_metatype out_action;
652 tmp1 = mmc_unbox_integer(_currSt)(((mmc_sint_t) (_currSt)) >> 1);
653 tmp2 = mmc_unbox_integer(_pos)(((mmc_sint_t) (_pos)) >> 1);
654 tmp3 = mmc_unbox_integer(_sPos)(((mmc_sint_t) (_sPos)) >> 1);
655 tmp4 = mmc_unbox_integer(_mm_ePos)(((mmc_sint_t) (_mm_ePos)) >> 1);
656 tmp5 = mmc_unbox_integer(_linenr)(((mmc_sint_t) (_linenr)) >> 1);
657 tmp6 = mmc_unbox_integer(_inBuffer)(((mmc_sint_t) (_inBuffer)) >> 1);
658 tmp7 = mmc_unbox_integer(_inBkBuffer)(((mmc_sint_t) (_inBkBuffer)) >> 1);
659 tmp8 = mmc_unbox_integer(_inNumStates)(((mmc_sint_t) (_inNumStates)) >> 1);
660 _action = omc_LexerJSON_findRule(threadData, _fileContents, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7, _inStates, tmp8, &_mm_currSt, &_mm_pos, &_mm_sPos, &_mm_linenr, &_buffer, &_bkBuffer, out_states, &_numStates);
661 out_action = mmc_mk_icon(_action);
662 if (out_mm_currSt) { *out_mm_currSt = mmc_mk_icon(_mm_currSt); }
663 if (out_mm_pos) { *out_mm_pos = mmc_mk_icon(_mm_pos); }
664 if (out_mm_sPos) { *out_mm_sPos = mmc_mk_icon(_mm_sPos); }
665 if (out_mm_linenr) { *out_mm_linenr = mmc_mk_icon(_mm_linenr); }
666 if (out_buffer) { *out_buffer = mmc_mk_icon(_buffer); }
667 if (out_bkBuffer) { *out_bkBuffer = mmc_mk_icon(_bkBuffer); }
668 /* skip box _states; array<#Integer> */
669 if (out_numStates) { *out_numStates = mmc_mk_icon(_numStates); }
670 return out_action;
671}
672
673PROTECTED_FUNCTION_STATIC modelica_metatype omc_LexerJSON_consume(threadData_t *threadData, modelica_integer _cp, modelica_metatype _tokens, modelica_string _fileContents, modelica_integer _startSt, modelica_integer _currSt, modelica_integer _pos, modelica_integer _sPos, modelica_integer _ePos, modelica_integer _linenr, modelica_integer _inLineNrStart, modelica_integer _inBuffer, modelica_metatype _inStates, modelica_integer _inNumStates, modelica_string _fileName, modelica_metatype _inErrorTokens, modelica_integer *out_bkBuffer, modelica_integer *out_mm_startSt, modelica_integer *out_mm_currSt, modelica_integer *out_mm_pos, modelica_integer *out_mm_sPos, modelica_integer *out_mm_ePos, modelica_integer *out_mm_linenr, modelica_integer *out_lineNrStart, modelica_integer *out_buffer, modelica_metatype *out_states, modelica_integer *out_numStates, modelica_metatype *out_errorTokens)
674{
675 modelica_metatype _resToken = NULL((void*)0);
676 modelica_integer _bkBuffer;
677 modelica_integer _mm_startSt;
678 modelica_integer _mm_currSt;
679 modelica_integer _mm_pos;
680 modelica_integer _mm_sPos;
681 modelica_integer _mm_ePos;
682 modelica_integer _mm_linenr;
683 modelica_integer _lineNrStart;
684 modelica_integer _buffer;
685 modelica_metatype _states = NULL((void*)0);
686 modelica_integer _numStates;
687 modelica_metatype _errorTokens = NULL((void*)0);
688 modelica_metatype _tok = NULL((void*)0);
689 modelica_integer _act;
690 modelica_integer _buffer2;
691 modelica_integer _c;
692 modelica_integer _baseCond;
693 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
694 MMC_SO()mmc_check_stackoverflow(threadData);
695 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
696 // _resToken has no default value.
697 _bkBuffer = ((modelica_integer) 0);
698 // _mm_startSt has no default value.
699 // _mm_currSt has no default value.
700 // _mm_pos has no default value.
701 // _mm_sPos has no default value.
702 // _mm_ePos has no default value.
703 // _mm_linenr has no default value.
704 // _lineNrStart has no default value.
705 // _buffer has no default value.
706 // _states has no default value.
707 // _numStates has no default value.
708 _errorTokens = _inErrorTokens;
709 // _tok has no default value.
710 // _act has no default value.
711 // _buffer2 has no default value.
712 // _c has no default value.
713 // _baseCond has no default value.
714#line 307 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
715 _mm_startSt = _startSt;
716#line 716 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
717
718#line 308 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
719 _mm_currSt = _currSt;
720#line 720 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
721
722#line 309 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
723 _mm_pos = _pos;
724#line 724 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
725
726#line 310 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
727 _mm_sPos = _sPos;
728#line 728 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
729
730#line 311 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
731 _mm_ePos = _ePos;
732#line 732 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
733
734#line 312 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
735 _mm_linenr = _linenr;
736#line 736 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
737
738#line 313 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
739 _lineNrStart = _inLineNrStart;
740#line 740 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
741
742#line 314 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
743 _buffer = _inBuffer;
744#line 744 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
745
746#line 315 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
747 _states = _inStates;
748#line 748 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
749
750#line 316 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
751 _numStates = _inNumStates;
752#line 752 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
753
754#line 318 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
755 _baseCond = integer_get(_OMC_LIT5, (_mm_currSt)-1);
756#line 756 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
757
758#line 325 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
759 _buffer = ((modelica_integer) 1) + _buffer;
760#line 760 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
761
762#line 326 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
763 _mm_pos = ((modelica_integer) 1) + _mm_pos;
764#line 764 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
765
766#line 328 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
767 if((_cp == ((modelica_integer) 10)))
768#line 328 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
769 {
770#line 329 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
771 _mm_linenr = ((modelica_integer) 1) + _mm_linenr;
772#line 772 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
773
774#line 330 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
775 _mm_sPos = ((modelica_integer) 0);
776#line 776 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
777 }
778 else
779 {
780#line 332 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
781 _mm_sPos = ((modelica_integer) 1) + _mm_sPos;
782#line 782 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
783 }
784
785#line 337 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
786 _c = integer_get(_OMC_LIT11, (_cp)-1);
787#line 787 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
788
789#line 342 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
790 _mm_currSt = omc_LexerJSON_evalState(threadData, _mm_currSt, _c ,&_c);
791#line 791 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
792
793#line 346 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
794 if((_mm_currSt > ((modelica_integer) 0)))
795#line 346 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
796 {
797#line 347 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
798 _mm_currSt = integer_get(_OMC_LIT5, (_mm_currSt)-1);
799#line 799 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
800
801#line 349 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
802 _mm_currSt = integer_get(_OMC_LIT12, (_mm_currSt + _c)-1);
803#line 803 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
804 }
805 else
806 {
807#line 352 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
808 _mm_currSt = integer_get(_OMC_LIT12, (_c)-1);
809#line 809 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
810 }
811
812#line 354 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
813 _numStates = ((modelica_integer) 1) + _numStates;
814#line 814 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
815
816#line 355 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
817 arrayUpdate(_states, _numStates, mmc_mk_integer(_mm_currSt))boxptr_arrayUpdate(threadData,_states,mmc_mk_icon(_numStates)
,mmc_mk_icon(_mm_currSt))
;
818#line 818 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
819
820#line 357 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
821 _baseCond = integer_get(_OMC_LIT5, (_mm_currSt)-1);
822#line 822 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
823
824#line 358 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
825 if((_baseCond == ((modelica_integer) 82)))
826#line 358 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
827 {
828#line 363 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
829 _act = omc_LexerJSON_findRule(threadData, _fileContents, _mm_currSt, _mm_pos, _mm_sPos, _mm_ePos, _mm_linenr, _buffer, _bkBuffer, _states, _numStates ,&_mm_currSt ,&_mm_pos ,&_mm_sPos ,&_mm_linenr ,&_buffer ,&_bkBuffer ,&_states ,&_numStates);
830#line 830 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
831
832#line 369 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
833 _tok = omc_LexerJSON_action(threadData, _act, _mm_startSt, _mm_currSt, _mm_pos, _mm_sPos, _mm_ePos, _mm_linenr, _lineNrStart, _buffer, 0, _fileName, _fileContents, _errorTokens ,&_mm_startSt ,&_buffer2 ,&_errorTokens);
834#line 834 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
835
836#line 375 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
837 _mm_currSt = _mm_startSt;
838#line 838 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
839
840#line 376 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
841 arrayUpdate(_states, ((modelica_integer) 1), mmc_mk_integer(_mm_startSt))boxptr_arrayUpdate(threadData,_states,mmc_mk_icon(((modelica_integer
) 1)),mmc_mk_icon(_mm_startSt))
;
842#line 842 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
843
844#line 377 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
845 _numStates = ((modelica_integer) 1);
846#line 846 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
847
848#line 380 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
849 if((_buffer != _buffer2))
850#line 380 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
851 {
852#line 381 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
853 _mm_ePos = _mm_sPos;
854#line 854 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
855
856#line 382 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
857 _lineNrStart = _linenr;
858#line 858 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
859 }
860
861#line 384 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
862 _buffer = _buffer2;
863#line 863 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
864
865#line 865 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
866 { /* match expression */
867 modelica_metatype tmp3_1;
868 tmp3_1 = _tok;
869 {
870 volatile mmc_switch_type tmp3;
871 int tmp4;
872 tmp3 = 0;
873 for (; tmp3 < 2; tmp3++) {
874 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
875 case 0: {
876 modelica_integer tmp5;
877 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
878 tmp5 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
879 if (1 != tmp5) goto tmp2_end;
880
881 /* Pattern matching succeeded */
882#line 387 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
883 tmpMeta[0] = _tokens;
884#line 884 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
885 goto tmp2_done;
886 }
887 case 1: {
888
889 /* Pattern matching succeeded */
890#line 388 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
891 tmpMeta[1] = mmc_mk_cons(_tok, _tokens);
892#line 388 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
893 tmpMeta[0] = tmpMeta[1];
894#line 894 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
895 goto tmp2_done;
896 }
897 }
898 goto tmp2_end;
899 tmp2_end: ;
900 }
901 goto goto_1;
902 goto_1:;
903 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
904 goto tmp2_done;
905 tmp2_done:;
906 }
907 }
908 _resToken = tmpMeta[0];
909 }
910 else
911 {
912#line 394 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
913 _bkBuffer = ((modelica_integer) 0);
914#line 914 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
915
916#line 395 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
917 _resToken = _tokens;
918#line 918 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
919 }
920 _return: OMC_LABEL_UNUSED__attribute__((unused))
921 if (out_bkBuffer) { *out_bkBuffer = _bkBuffer; }
922 if (out_mm_startSt) { *out_mm_startSt = _mm_startSt; }
923 if (out_mm_currSt) { *out_mm_currSt = _mm_currSt; }
924 if (out_mm_pos) { *out_mm_pos = _mm_pos; }
925 if (out_mm_sPos) { *out_mm_sPos = _mm_sPos; }
926 if (out_mm_ePos) { *out_mm_ePos = _mm_ePos; }
927 if (out_mm_linenr) { *out_mm_linenr = _mm_linenr; }
928 if (out_lineNrStart) { *out_lineNrStart = _lineNrStart; }
929 if (out_buffer) { *out_buffer = _buffer; }
930 if (out_states) { *out_states = _states; }
931 if (out_numStates) { *out_numStates = _numStates; }
932 if (out_errorTokens) { *out_errorTokens = _errorTokens; }
933 return _resToken;
934}
935PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_LexerJSON_consume(threadData_t *threadData, modelica_metatype _cp, modelica_metatype _tokens, modelica_metatype _fileContents, modelica_metatype _startSt, modelica_metatype _currSt, modelica_metatype _pos, modelica_metatype _sPos, modelica_metatype _ePos, modelica_metatype _linenr, modelica_metatype _inLineNrStart, modelica_metatype _inBuffer, modelica_metatype _inStates, modelica_metatype _inNumStates, modelica_metatype _fileName, modelica_metatype _inErrorTokens, modelica_metatype *out_bkBuffer, modelica_metatype *out_mm_startSt, modelica_metatype *out_mm_currSt, modelica_metatype *out_mm_pos, modelica_metatype *out_mm_sPos, modelica_metatype *out_mm_ePos, modelica_metatype *out_mm_linenr, modelica_metatype *out_lineNrStart, modelica_metatype *out_buffer, modelica_metatype *out_states, modelica_metatype *out_numStates, modelica_metatype *out_errorTokens)
936{
937 modelica_integer tmp1;
938 modelica_integer tmp2;
939 modelica_integer tmp3;
940 modelica_integer tmp4;
941 modelica_integer tmp5;
942 modelica_integer tmp6;
943 modelica_integer tmp7;
944 modelica_integer tmp8;
945 modelica_integer tmp9;
946 modelica_integer tmp10;
947 modelica_integer _bkBuffer;
948 modelica_integer _mm_startSt;
949 modelica_integer _mm_currSt;
950 modelica_integer _mm_pos;
951 modelica_integer _mm_sPos;
952 modelica_integer _mm_ePos;
953 modelica_integer _mm_linenr;
954 modelica_integer _lineNrStart;
955 modelica_integer _buffer;
956 modelica_integer _numStates;
957 modelica_metatype _resToken = NULL((void*)0);
958 tmp1 = mmc_unbox_integer(_cp)(((mmc_sint_t) (_cp)) >> 1);
959 tmp2 = mmc_unbox_integer(_startSt)(((mmc_sint_t) (_startSt)) >> 1);
960 tmp3 = mmc_unbox_integer(_currSt)(((mmc_sint_t) (_currSt)) >> 1);
961 tmp4 = mmc_unbox_integer(_pos)(((mmc_sint_t) (_pos)) >> 1);
962 tmp5 = mmc_unbox_integer(_sPos)(((mmc_sint_t) (_sPos)) >> 1);
963 tmp6 = mmc_unbox_integer(_ePos)(((mmc_sint_t) (_ePos)) >> 1);
964 tmp7 = mmc_unbox_integer(_linenr)(((mmc_sint_t) (_linenr)) >> 1);
965 tmp8 = mmc_unbox_integer(_inLineNrStart)(((mmc_sint_t) (_inLineNrStart)) >> 1);
966 tmp9 = mmc_unbox_integer(_inBuffer)(((mmc_sint_t) (_inBuffer)) >> 1);
967 tmp10 = mmc_unbox_integer(_inNumStates)(((mmc_sint_t) (_inNumStates)) >> 1);
968 _resToken = omc_LexerJSON_consume(threadData, tmp1, _tokens, _fileContents, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7, tmp8, tmp9, _inStates, tmp10, _fileName, _inErrorTokens, &_bkBuffer, &_mm_startSt, &_mm_currSt, &_mm_pos, &_mm_sPos, &_mm_ePos, &_mm_linenr, &_lineNrStart, &_buffer, out_states, &_numStates, out_errorTokens);
969 /* skip box _resToken; list<LexerJSON.Token> */
970 if (out_bkBuffer) { *out_bkBuffer = mmc_mk_icon(_bkBuffer); }
971 if (out_mm_startSt) { *out_mm_startSt = mmc_mk_icon(_mm_startSt); }
972 if (out_mm_currSt) { *out_mm_currSt = mmc_mk_icon(_mm_currSt); }
973 if (out_mm_pos) { *out_mm_pos = mmc_mk_icon(_mm_pos); }
974 if (out_mm_sPos) { *out_mm_sPos = mmc_mk_icon(_mm_sPos); }
975 if (out_mm_ePos) { *out_mm_ePos = mmc_mk_icon(_mm_ePos); }
976 if (out_mm_linenr) { *out_mm_linenr = mmc_mk_icon(_mm_linenr); }
977 if (out_lineNrStart) { *out_lineNrStart = mmc_mk_icon(_lineNrStart); }
978 if (out_buffer) { *out_buffer = mmc_mk_icon(_buffer); }
979 /* skip box _states; array<#Integer> */
980 if (out_numStates) { *out_numStates = mmc_mk_icon(_numStates); }
981 /* skip box _errorTokens; list<LexerJSON.Token> */
982 return _resToken;
983}
984
985PROTECTED_FUNCTION_STATIC modelica_metatype omc_LexerJSON_lex(threadData_t *threadData, modelica_string _fileName, modelica_string _contents, modelica_metatype *out_errorTokens)
986{
987 modelica_metatype _tokens = NULL((void*)0);
988 modelica_metatype _errorTokens = NULL((void*)0);
989 modelica_integer _startSt;
990 modelica_integer _numStates;
991 modelica_integer _i;
992 modelica_integer _r;
993 modelica_integer _cTok;
994 modelica_integer _cTok2;
995 modelica_integer _currSt;
996 modelica_integer _pos;
997 modelica_integer _sPos;
998 modelica_integer _ePos;
999 modelica_integer _linenr;
1000 modelica_integer _contentLen;
1001 modelica_integer _numBacktrack;
1002 modelica_integer _buffer;
1003 modelica_integer _lineNrStart;
1004 modelica_metatype _cProg = NULL((void*)0);
1005 modelica_metatype _cProg2 = NULL((void*)0);
1006 modelica_metatype _chars = NULL((void*)0);
1007 modelica_metatype _states = NULL((void*)0);
1008 modelica_string _s1 = NULL((void*)0);
1009 modelica_string _s2 = NULL((void*)0);
1010 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1011 MMC_SO()mmc_check_stackoverflow(threadData);
1012 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1013 // _tokens has no default value.
1014 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1015 _errorTokens = tmpMeta[0];
1016 // _startSt has no default value.
1017 // _numStates has no default value.
1018 // _i has no default value.
1019 // _r has no default value.
1020 // _cTok has no default value.
1021 // _cTok2 has no default value.
1022 // _currSt has no default value.
1023 // _pos has no default value.
1024 // _sPos has no default value.
1025 // _ePos has no default value.
1026 // _linenr has no default value.
1027 // _contentLen has no default value.
1028 // _numBacktrack has no default value.
1029 // _buffer has no default value.
1030 // _lineNrStart has no default value.
1031 // _cProg has no default value.
1032 // _cProg2 has no default value.
1033 // _chars has no default value.
1034 // _states has no default value.
1035 // _s1 has no default value.
1036 // _s2 has no default value.
1037#line 250 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1038 _startSt = ((modelica_integer) 1);
1039#line 1039 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1040
1041#line 251 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1042 _currSt = ((modelica_integer) 1);
1043#line 1043 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1044
1045#line 252 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1046 _pos = ((modelica_integer) 1);
1047#line 1047 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1048
1049#line 253 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1050 _sPos = ((modelica_integer) 0);
1051#line 1051 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1052
1053#line 254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1054 _ePos = ((modelica_integer) 0);
1055#line 1055 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1056
1057#line 255 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1058 _linenr = ((modelica_integer) 1);
1059#line 1059 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1060
1061#line 256 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1062 _lineNrStart = ((modelica_integer) 1);
1063#line 1063 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1064
1065#line 257 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1066 _buffer = ((modelica_integer) 0);
1067#line 1067 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1068
1069#line 259 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1070 _states = arrayCreate(((modelica_integer) 128), mmc_mk_integermmc_mk_icon(((modelica_integer) 1)));
1071#line 1071 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1072
1073#line 260 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1074 _numStates = ((modelica_integer) 1);
1075#line 1075 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1076
1077#line 267 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1078 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1079#line 267 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1080 _tokens = tmpMeta[1];
1081#line 1081 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1082
1083#line 272 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1084 _contentLen = stringLength(_contents)(((((*(mmc_uint_t*)((void*)((char*)(_contents) - 3)))) >>
(3)) - 8))
;
1085#line 1085 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1086
1087#line 273 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1088 _i = ((modelica_integer) 1);
1089#line 1089 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1090
1091#line 274 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1092 while(1)
1093#line 274 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1094 {
1095#line 274 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1096 if(!(_i <= _contentLen)) break;
1097#line 275 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1098 _cTok = stringGetNoBoundsChecking(_contents, _i)((unsigned char*)(((struct mmc_string*)((void*)((char*)((_contents
)) - 3)))->data))[(_i)-1]
;
1099#line 1099 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1100
1101#line 276 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1102 _tokens = omc_LexerJSON_consume(threadData, _cTok, _tokens, _contents, _startSt, _currSt, _pos, _sPos, _ePos, _linenr, _lineNrStart, _buffer, _states, _numStates, _fileName, _errorTokens ,&_numBacktrack ,&_startSt ,&_currSt ,&_pos ,&_sPos ,&_ePos ,&_linenr ,&_lineNrStart ,&_buffer ,&_states ,&_numStates ,&_errorTokens);
1103#line 1103 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1104
1105#line 277 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1106 _i = ((modelica_integer) 1) + _i - _numBacktrack;
1107#line 1107 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1108 }
1109
1110#line 279 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1111 _tokens = listReverseInPlace(_tokens);
1112#line 1112 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1113
1114#line 280 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1115 _errorTokens = listReverseInPlace(_errorTokens);
1116#line 1116 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1117 _return: OMC_LABEL_UNUSED__attribute__((unused))
1118 if (out_errorTokens) { *out_errorTokens = _errorTokens; }
1119 return _tokens;
1120}
1121
1122DLLExport
1123modelica_metatype omc_LexerJSON_tokenSourceInfo(threadData_t *threadData, modelica_metatype _token)
1124{
1125 modelica_metatype _info = NULL((void*)0);
1126 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1127 MMC_SO()mmc_check_stackoverflow(threadData);
1128 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1129 // _info has no default value.
1130#line 1130 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1131 { /* match expression */
1132 modelica_metatype tmp3_1;modelica_metatype _t;
1133 tmp3_1 = _token;
1134 _t = tmp3_1;
1135 {
1136 volatile mmc_switch_type tmp3;
1137 int tmp4;
1138 tmp3 = 0;
1139 for (; tmp3 < 1; tmp3++) {
1140 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1141 case 0: {
1142
1143 /* Pattern matching succeeded */
1144#line 227 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1145 tmpMeta[1] = mmc_mk_box8(3, &SourceInfo_SOURCEINFO__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_t), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_t) - 3))) + (2
)))))
), mmc_mk_boolean(0)((0) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_t), 7))(*(void**)(((void*)((void**)(((void*)((char*)(_t) - 3))) + (7
)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_t), 8))(*(void**)(((void*)((void**)(((void*)((char*)(_t) - 3))) + (8
)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_t), 9))(*(void**)(((void*)((void**)(((void*)((char*)(_t) - 3))) + (9
)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_t), 10))(*(void**)(((void*)((void**)(((void*)((char*)(_t) - 3))) + (10
)))))
), _OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)));
1146#line 227 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1147 tmpMeta[0] = tmpMeta[1];
1148#line 1148 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1149 goto tmp2_done;
1150 }
1151 }
1152 goto tmp2_end;
1153 tmp2_end: ;
1154 }
1155 goto goto_1;
1156 goto_1:;
1157 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1158 goto tmp2_done;
1159 tmp2_done:;
1160 }
1161 }
1162 _info = tmpMeta[0];
1163 _return: OMC_LABEL_UNUSED__attribute__((unused))
1164 return _info;
1165}
1166
1167DLLExport
1168modelica_boolean omc_LexerJSON_tokenContentEq(threadData_t *threadData, modelica_metatype _token1, modelica_metatype _token2)
1169{
1170 modelica_boolean _b;
1171 modelica_string _contents1 = NULL((void*)0);
1172 modelica_string _contents2 = NULL((void*)0);
1173 modelica_integer _offset1;
1174 modelica_integer _length1;
1175 modelica_integer _offset2;
1176 modelica_integer _length2;
1177 modelica_integer tmp1;
1178 modelica_integer tmp2;
1179 modelica_integer tmp3;
1180 modelica_integer tmp4;
1181 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
1182 MMC_SO()mmc_check_stackoverflow(threadData);
1183 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1184 // _b has no default value.
1185 // _contents1 has no default value.
1186 // _contents2 has no default value.
1187 // _offset1 has no default value.
1188 // _length1 has no default value.
1189 // _offset2 has no default value.
1190 // _length2 has no default value.
1191#line 216 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1192 /* Pattern-matching assignment */
1193#line 216 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1194 tmpMeta[0] = _token1;
1195#line 216 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1196 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
1197#line 216 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1198 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
1199#line 216 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1200 tmp1 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
1201#line 216 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1202 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
1203#line 216 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1204 tmp2 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
1205#line 216 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1206 _contents1 = tmpMeta[1];
1207#line 216 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1208 _offset1 = tmp1 /* pattern as ty=Integer */;
1209#line 216 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1210 _length1 = tmp2 /* pattern as ty=Integer */;
1211#line 1211 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1212
1213#line 217 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1214 /* Pattern-matching assignment */
1215#line 217 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1216 tmpMeta[0] = _token2;
1217#line 217 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1218 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
1219#line 217 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1220 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
1221#line 217 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1222 tmp3 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
1223#line 217 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1224 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
1225#line 217 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1226 tmp4 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
1227#line 217 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1228 _contents2 = tmpMeta[1];
1229#line 217 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1230 _offset2 = tmp3 /* pattern as ty=Integer */;
1231#line 217 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1232 _length2 = tmp4 /* pattern as ty=Integer */;
1233#line 1233 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1234
1235#line 219 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1236 _b = ((_length1 != _length2)?0:(((modelica_integer) 0) == omc_System_strcmp__offset(threadData, _contents1, _offset1, _length1, _contents2, _offset2, _length2)));
1237#line 1237 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1238 _return: OMC_LABEL_UNUSED__attribute__((unused))
1239 return _b;
1240}
1241modelica_metatype boxptr_LexerJSON_tokenContentEq(threadData_t *threadData, modelica_metatype _token1, modelica_metatype _token2)
1242{
1243 modelica_boolean _b;
1244 modelica_metatype out_b;
1245 _b = omc_LexerJSON_tokenContentEq(threadData, _token1, _token2);
1246 out_b = mmc_mk_icon(_b);
1247 return out_b;
1248}
1249
1250DLLExport
1251modelica_string omc_LexerJSON_tokenContent(threadData_t *threadData, modelica_metatype _token)
1252{
1253 modelica_string _contents = NULL((void*)0);
1254 modelica_integer _byteOffset;
1255 modelica_integer _length;
1256 modelica_integer tmp1;
1257 modelica_integer tmp2;
1258 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
1259 MMC_SO()mmc_check_stackoverflow(threadData);
1260 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1261 // _contents has no default value.
1262 // _byteOffset has no default value.
1263 // _length has no default value.
1264#line 205 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1265 /* Pattern-matching assignment */
1266#line 205 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1267 tmpMeta[0] = _token;
1268#line 205 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1269 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
1270#line 205 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1271 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
1272#line 205 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1273 tmp1 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
1274#line 205 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1275 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
1276#line 205 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1277 tmp2 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
1278#line 205 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1279 _contents = tmpMeta[1];
1280#line 205 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1281 _byteOffset = tmp1 /* pattern as ty=Integer */;
1282#line 205 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1283 _length = tmp2 /* pattern as ty=Integer */;
1284#line 1284 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1285
1286#line 206 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1287 _contents = ((_length > ((modelica_integer) 0))?substring(_contents, _byteOffset, ((modelica_integer) -1) + _byteOffset + _length)boxptr_substring(threadData,_contents,mmc_mk_icon(_byteOffset
),mmc_mk_icon(((modelica_integer) -1) + _byteOffset + _length
))
:_OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)));
1288#line 1288 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1289 _return: OMC_LABEL_UNUSED__attribute__((unused))
1290 return _contents;
1291}
1292
1293DLLExport
1294modelica_string omc_LexerJSON_printToken(threadData_t *threadData, modelica_metatype _token)
1295{
1296 modelica_string _strTk = NULL((void*)0);
1297 modelica_integer _id;
1298 modelica_string _contents = NULL((void*)0);
1299 modelica_integer _byteOffset;
1300 modelica_integer _length;
1301 modelica_integer tmp1;
1302 modelica_integer tmp2;
1303 modelica_integer tmp3;
1304 modelica_string tmp4;
1305 const char* tmp5[13] = {"_NO_TOKEN", "ARRAYBEGIN", "ARRAYEND", "COLON", "COMMA", "FALSE", "INTEGER", "NULL", "NUMBER", "OBJECTBEGIN", "OBJECTEND", "STRING", "TRUE"};
1306 modelica_metatype tmpMeta[12] __attribute__((unused)) = {0};
1307 MMC_SO()mmc_check_stackoverflow(threadData);
1308 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1309 // _strTk has no default value.
1310 // _id has no default value.
1311 // _contents has no default value.
1312 // _byteOffset has no default value.
1313 // _length has no default value.
1314#line 194 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1315 /* Pattern-matching assignment */
1316#line 194 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1317 tmpMeta[0] = _token;
1318#line 194 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1319 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
1320#line 194 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1321 tmp1 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
1322#line 194 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1323 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
1324#line 194 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1325 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
1326#line 194 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1327 tmp2 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
1328#line 194 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1329 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
1330#line 194 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1331 tmp3 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
1332#line 194 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1333 _id = tmp1 /* pattern as ty=enumeration(_NO_TOKEN, ARRAYBEGIN, ARRAYEND, COLON, COMMA, FALSE, INTEGER, NULL, NUMBER, OBJECTBEGIN, OBJECTEND, STRING, TRUE) */;
1334#line 194 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1335 _contents = tmpMeta[2];
1336#line 194 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1337 _byteOffset = tmp2 /* pattern as ty=Integer */;
1338#line 194 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1339 _length = tmp3 /* pattern as ty=Integer */;
1340#line 1340 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1341
1342#line 195 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1343 _contents = ((_length > ((modelica_integer) 0))?substring(_contents, _byteOffset, ((modelica_integer) -1) + _byteOffset + _length)boxptr_substring(threadData,_contents,mmc_mk_icon(_byteOffset
),mmc_mk_icon(((modelica_integer) -1) + _byteOffset + _length
))
:_OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)));
1344#line 1344 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1345
1346#line 196 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1347 tmp4 = enum_to_modelica_string((modelica_integer)_id, tmp5, ((modelica_integer) 0), 1);
1348#line 196 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1349 tmpMeta[0] = stringAppend(_OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)),tmp4);
1350#line 196 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1351 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)));
1352#line 196 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1353 tmpMeta[2] = stringAppend(tmpMeta[1],_contents);
1354#line 196 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1355 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3)));
1356#line 196 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1357 tmpMeta[4] = stringAppend(tmpMeta[3],intString(mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_token), 7))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_token) - 3))) + (7)))))))) >> 1)
));
1358#line 196 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1359 tmpMeta[5] = stringAppend(tmpMeta[4],_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)));
1360#line 196 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1361 tmpMeta[6] = stringAppend(tmpMeta[5],intString(mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_token), 8))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_token) - 3))) + (8)))))))) >> 1)
));
1362#line 196 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1363 tmpMeta[7] = stringAppend(tmpMeta[6],_OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)));
1364#line 196 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1365 tmpMeta[8] = stringAppend(tmpMeta[7],intString(mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_token), 9))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_token) - 3))) + (9)))))))) >> 1)
));
1366#line 196 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1367 tmpMeta[9] = stringAppend(tmpMeta[8],_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)));
1368#line 196 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1369 tmpMeta[10] = stringAppend(tmpMeta[9],intString(mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_token), 10))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_token) - 3))) + (10)))))))) >> 1)
));
1370#line 196 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1371 tmpMeta[11] = stringAppend(tmpMeta[10],_OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)));
1372#line 196 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1373 _strTk = tmpMeta[11];
1374#line 1374 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1375 _return: OMC_LABEL_UNUSED__attribute__((unused))
1376 return _strTk;
1377}
1378
1379DLLExport
1380modelica_metatype omc_LexerJSON_action(threadData_t *threadData, modelica_integer _act, modelica_integer _startSt, modelica_integer _mm_currSt, modelica_integer _mm_pos, modelica_integer _mm_sPos, modelica_integer _mm_ePos, modelica_integer _mm_linenr, modelica_integer _lineNrStart, modelica_integer _buffer, modelica_boolean _debug, modelica_string _fileNm, modelica_string _fileContents, modelica_metatype _inErrorTokens, modelica_integer *out_mm_startSt, modelica_integer *out_bufferRet, modelica_metatype *out_errorTokens)
1381{
1382 modelica_metatype _token = NULL((void*)0);
1383 modelica_integer _mm_startSt;
1384 modelica_integer _bufferRet;
1385 modelica_metatype _errorTokens = NULL((void*)0);
1386 modelica_metatype _info = NULL((void*)0);
1387 modelica_string _sToken = NULL((void*)0);
1388 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
1389 MMC_SO()mmc_check_stackoverflow(threadData);
1390 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1391 // _token has no default value.
1392 // _mm_startSt has no default value.
1393 // _bufferRet has no default value.
1394 _errorTokens = _inErrorTokens;
1395 // _info has no default value.
1396 // _sToken has no default value.
1397#line 75 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1398 _mm_startSt = _startSt;
1399#line 1399 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1400
1401#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1402 _bufferRet = ((modelica_integer) 0);
1403#line 1403 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1404
1405#line 1405 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1406 { /* match expression */
1407 modelica_integer tmp3_1;
1408 tmp3_1 = _act;
1409 {
1410 modelica_metatype _tok = NULL((void*)0);
1411 int tmp3;
1412 // _tok has no default value.
1413 {
1414 switch (MMC_SWITCH_CAST(tmp3_1)(tmp3_1)) {
1415 case 1: {
1416 if (1 != tmp3_1) goto tmp2_end;
1417 /* Pattern matching succeeded */
1418#line 83 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1419 tmpMeta[1] = mmc_mk_box10(3, &LexerJSON_Token_TOKEN__desc, _fileNm, mmc_mk_integermmc_mk_icon(12), _fileContents, mmc_mk_integermmc_mk_icon(_mm_pos - _buffer), mmc_mk_integermmc_mk_icon(_buffer), mmc_mk_integermmc_mk_icon(_lineNrStart), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_ePos), mmc_mk_integermmc_mk_icon(_mm_linenr), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_sPos));
1420#line 83 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1421 tmpMeta[0] = tmpMeta[1];
1422#line 1422 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1423 goto tmp2_done;
1424 }
1425 case 2: {
1426 if (2 != tmp3_1) goto tmp2_end;
1427 /* Pattern matching succeeded */
1428#line 87 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1429 tmpMeta[1] = mmc_mk_box10(3, &LexerJSON_Token_TOKEN__desc, _fileNm, mmc_mk_integermmc_mk_icon(12), _fileContents, mmc_mk_integermmc_mk_icon(_mm_pos - _buffer), mmc_mk_integermmc_mk_icon(_buffer), mmc_mk_integermmc_mk_icon(_lineNrStart), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_ePos), mmc_mk_integermmc_mk_icon(_mm_linenr), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_sPos));
1430#line 87 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1431 tmpMeta[0] = tmpMeta[1];
1432#line 1432 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1433 goto tmp2_done;
1434 }
1435 case 3: {
1436 if (3 != tmp3_1) goto tmp2_end;
1437 /* Pattern matching succeeded */
1438#line 91 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1439 tmpMeta[1] = mmc_mk_box10(3, &LexerJSON_Token_TOKEN__desc, _fileNm, mmc_mk_integermmc_mk_icon(9), _fileContents, mmc_mk_integermmc_mk_icon(_mm_pos - _buffer), mmc_mk_integermmc_mk_icon(_buffer), mmc_mk_integermmc_mk_icon(_lineNrStart), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_ePos), mmc_mk_integermmc_mk_icon(_mm_linenr), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_sPos));
1440#line 91 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1441 tmpMeta[0] = tmpMeta[1];
1442#line 1442 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1443 goto tmp2_done;
1444 }
1445 case 4: {
1446 if (4 != tmp3_1) goto tmp2_end;
1447 /* Pattern matching succeeded */
1448#line 95 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1449 tmpMeta[1] = mmc_mk_box10(3, &LexerJSON_Token_TOKEN__desc, _fileNm, mmc_mk_integermmc_mk_icon(9), _fileContents, mmc_mk_integermmc_mk_icon(_mm_pos - _buffer), mmc_mk_integermmc_mk_icon(_buffer), mmc_mk_integermmc_mk_icon(_lineNrStart), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_ePos), mmc_mk_integermmc_mk_icon(_mm_linenr), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_sPos));
1450#line 95 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1451 tmpMeta[0] = tmpMeta[1];
1452#line 1452 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1453 goto tmp2_done;
1454 }
1455 case 5: {
1456 if (5 != tmp3_1) goto tmp2_end;
1457 /* Pattern matching succeeded */
1458#line 99 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1459 tmpMeta[1] = mmc_mk_box10(3, &LexerJSON_Token_TOKEN__desc, _fileNm, mmc_mk_integermmc_mk_icon(7), _fileContents, mmc_mk_integermmc_mk_icon(_mm_pos - _buffer), mmc_mk_integermmc_mk_icon(_buffer), mmc_mk_integermmc_mk_icon(_lineNrStart), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_ePos), mmc_mk_integermmc_mk_icon(_mm_linenr), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_sPos));
1460#line 99 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1461 tmpMeta[0] = tmpMeta[1];
1462#line 1462 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1463 goto tmp2_done;
1464 }
1465 case 6: {
1466 if (6 != tmp3_1) goto tmp2_end;
1467 /* Pattern matching succeeded */
1468#line 103 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1469 tmpMeta[1] = mmc_mk_box10(3, &LexerJSON_Token_TOKEN__desc, _fileNm, mmc_mk_integermmc_mk_icon(13), _fileContents, mmc_mk_integermmc_mk_icon(_mm_pos - _buffer), mmc_mk_integermmc_mk_icon(_buffer), mmc_mk_integermmc_mk_icon(_lineNrStart), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_ePos), mmc_mk_integermmc_mk_icon(_mm_linenr), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_sPos));
1470#line 103 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1471 tmpMeta[0] = tmpMeta[1];
1472#line 1472 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1473 goto tmp2_done;
1474 }
1475 case 7: {
1476 if (7 != tmp3_1) goto tmp2_end;
1477 /* Pattern matching succeeded */
1478#line 107 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1479 tmpMeta[1] = mmc_mk_box10(3, &LexerJSON_Token_TOKEN__desc, _fileNm, mmc_mk_integermmc_mk_icon(6), _fileContents, mmc_mk_integermmc_mk_icon(_mm_pos - _buffer), mmc_mk_integermmc_mk_icon(_buffer), mmc_mk_integermmc_mk_icon(_lineNrStart), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_ePos), mmc_mk_integermmc_mk_icon(_mm_linenr), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_sPos));
1480#line 107 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1481 tmpMeta[0] = tmpMeta[1];
1482#line 1482 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1483 goto tmp2_done;
1484 }
1485 case 8: {
1486 if (8 != tmp3_1) goto tmp2_end;
1487 /* Pattern matching succeeded */
1488#line 111 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1489 tmpMeta[1] = mmc_mk_box10(3, &LexerJSON_Token_TOKEN__desc, _fileNm, mmc_mk_integermmc_mk_icon(8), _fileContents, mmc_mk_integermmc_mk_icon(_mm_pos - _buffer), mmc_mk_integermmc_mk_icon(_buffer), mmc_mk_integermmc_mk_icon(_lineNrStart), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_ePos), mmc_mk_integermmc_mk_icon(_mm_linenr), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_sPos));
1490#line 111 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1491 tmpMeta[0] = tmpMeta[1];
1492#line 1492 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1493 goto tmp2_done;
1494 }
1495 case 9: {
1496 if (9 != tmp3_1) goto tmp2_end;
1497 /* Pattern matching succeeded */
1498#line 115 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1499 tmpMeta[1] = mmc_mk_box10(3, &LexerJSON_Token_TOKEN__desc, _fileNm, mmc_mk_integermmc_mk_icon(10), _fileContents, mmc_mk_integermmc_mk_icon(_mm_pos - _buffer), mmc_mk_integermmc_mk_icon(_buffer), mmc_mk_integermmc_mk_icon(_lineNrStart), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_ePos), mmc_mk_integermmc_mk_icon(_mm_linenr), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_sPos));
1500#line 115 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1501 tmpMeta[0] = tmpMeta[1];
1502#line 1502 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1503 goto tmp2_done;
1504 }
1505 case 10: {
1506 if (10 != tmp3_1) goto tmp2_end;
1507 /* Pattern matching succeeded */
1508#line 119 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1509 tmpMeta[1] = mmc_mk_box10(3, &LexerJSON_Token_TOKEN__desc, _fileNm, mmc_mk_integermmc_mk_icon(11), _fileContents, mmc_mk_integermmc_mk_icon(_mm_pos - _buffer), mmc_mk_integermmc_mk_icon(_buffer), mmc_mk_integermmc_mk_icon(_lineNrStart), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_ePos), mmc_mk_integermmc_mk_icon(_mm_linenr), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_sPos));
1510#line 119 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1511 tmpMeta[0] = tmpMeta[1];
1512#line 1512 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1513 goto tmp2_done;
1514 }
1515 case 11: {
1516 if (11 != tmp3_1) goto tmp2_end;
1517 /* Pattern matching succeeded */
1518#line 123 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1519 tmpMeta[1] = mmc_mk_box10(3, &LexerJSON_Token_TOKEN__desc, _fileNm, mmc_mk_integermmc_mk_icon(2), _fileContents, mmc_mk_integermmc_mk_icon(_mm_pos - _buffer), mmc_mk_integermmc_mk_icon(_buffer), mmc_mk_integermmc_mk_icon(_lineNrStart), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_ePos), mmc_mk_integermmc_mk_icon(_mm_linenr), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_sPos));
1520#line 123 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1521 tmpMeta[0] = tmpMeta[1];
1522#line 1522 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1523 goto tmp2_done;
1524 }
1525 case 12: {
1526 if (12 != tmp3_1) goto tmp2_end;
1527 /* Pattern matching succeeded */
1528#line 127 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1529 tmpMeta[1] = mmc_mk_box10(3, &LexerJSON_Token_TOKEN__desc, _fileNm, mmc_mk_integermmc_mk_icon(3), _fileContents, mmc_mk_integermmc_mk_icon(_mm_pos - _buffer), mmc_mk_integermmc_mk_icon(_buffer), mmc_mk_integermmc_mk_icon(_lineNrStart), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_ePos), mmc_mk_integermmc_mk_icon(_mm_linenr), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_sPos));
1530#line 127 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1531 tmpMeta[0] = tmpMeta[1];
1532#line 1532 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1533 goto tmp2_done;
1534 }
1535 case 13: {
1536 if (13 != tmp3_1) goto tmp2_end;
1537 /* Pattern matching succeeded */
1538#line 131 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1539 tmpMeta[1] = mmc_mk_box10(3, &LexerJSON_Token_TOKEN__desc, _fileNm, mmc_mk_integermmc_mk_icon(5), _fileContents, mmc_mk_integermmc_mk_icon(_mm_pos - _buffer), mmc_mk_integermmc_mk_icon(_buffer), mmc_mk_integermmc_mk_icon(_lineNrStart), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_ePos), mmc_mk_integermmc_mk_icon(_mm_linenr), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_sPos));
1540#line 131 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1541 tmpMeta[0] = tmpMeta[1];
1542#line 1542 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1543 goto tmp2_done;
1544 }
1545 case 14: {
1546 if (14 != tmp3_1) goto tmp2_end;
1547 /* Pattern matching succeeded */
1548#line 135 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1549 tmpMeta[1] = mmc_mk_box10(3, &LexerJSON_Token_TOKEN__desc, _fileNm, mmc_mk_integermmc_mk_icon(4), _fileContents, mmc_mk_integermmc_mk_icon(_mm_pos - _buffer), mmc_mk_integermmc_mk_icon(_buffer), mmc_mk_integermmc_mk_icon(_lineNrStart), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_ePos), mmc_mk_integermmc_mk_icon(_mm_linenr), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_sPos));
1550#line 135 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1551 tmpMeta[0] = tmpMeta[1];
1552#line 1552 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1553 goto tmp2_done;
1554 }
1555 case 15: {
1556 if (15 != tmp3_1) goto tmp2_end;
1557 /* Pattern matching succeeded */
1558#line 139 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1559 tmpMeta[0] = _OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3));
1560#line 1560 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1561 goto tmp2_done;
1562 }
1563 case 16: {
1564 if (16 != tmp3_1) goto tmp2_end;
1565 /* Pattern matching succeeded */
1566#line 142 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1567 tmpMeta[1] = mmc_mk_box10(3, &LexerJSON_Token_TOKEN__desc, _fileNm, mmc_mk_integermmc_mk_icon(1), _fileContents, mmc_mk_integermmc_mk_icon(_mm_pos - _buffer), mmc_mk_integermmc_mk_icon(_buffer), mmc_mk_integermmc_mk_icon(_lineNrStart), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_ePos), mmc_mk_integermmc_mk_icon(_mm_linenr), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_sPos));
1568#line 142 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1569 _tok = tmpMeta[1];
1570#line 1570 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1571
1572#line 143 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1573 tmpMeta[1] = mmc_mk_cons(_tok, _errorTokens);
1574#line 143 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1575 _errorTokens = tmpMeta[1];
1576#line 1576 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1577#line 144 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1578 tmpMeta[0] = _OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3));
1579#line 1579 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1580 goto tmp2_done;
1581 }
1582 default:
1583 tmp2_default: OMC_LABEL_UNUSED__attribute__((unused)); {
1584 modelica_string tmp4;
1585
1586 /* Pattern matching succeeded */
1587#line 148 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1588 tmp4 = modelica_integer_to_modelica_string(_act, ((modelica_integer) 0), 1);
1589#line 148 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1590 tmpMeta[1] = stringAppend(_OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3)),tmp4);
1591#line 148 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1592 tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)));
1593#line 148 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1594 fputs(MMC_STRINGDATA(tmpMeta[2])(((struct mmc_string*)((void*)((char*)(tmpMeta[2]) - 3)))->
data)
,stdoutstdout);
1595#line 1595 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1596
1597#line 149 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1598 tmpMeta[1] = mmc_mk_box10(3, &LexerJSON_Token_TOKEN__desc, _fileNm, mmc_mk_integermmc_mk_icon(1), _fileContents, mmc_mk_integermmc_mk_icon(_mm_pos - _buffer), mmc_mk_integermmc_mk_icon(_buffer), mmc_mk_integermmc_mk_icon(_lineNrStart), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_ePos), mmc_mk_integermmc_mk_icon(_mm_linenr), mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mm_sPos));
1599#line 149 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1600 _tok = tmpMeta[1];
1601#line 1601 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1602
1603#line 150 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1604 fputs(MMC_STRINGDATA(omc_LexerJSON_printToken(threadData, _tok))(((struct mmc_string*)((void*)((char*)(omc_LexerJSON_printToken
(threadData, _tok)) - 3)))->data)
,stdoutstdout);
1605#line 1605 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1606#line 151 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1607 goto goto_1;
1608#line 1608 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1609 goto tmp2_done;
1610 }
1611 }
1612 goto tmp2_end;
1613 tmp2_end: ;
1614 }
1615 goto goto_1;
1616 goto_1:;
1617 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1618 goto tmp2_done;
1619 tmp2_done:;
1620 }
1621 }
1622 _token = tmpMeta[0];
1623 _return: OMC_LABEL_UNUSED__attribute__((unused))
1624 if (out_mm_startSt) { *out_mm_startSt = _mm_startSt; }
1625 if (out_bufferRet) { *out_bufferRet = _bufferRet; }
1626 if (out_errorTokens) { *out_errorTokens = _errorTokens; }
1627 return _token;
1628}
1629modelica_metatype boxptr_LexerJSON_action(threadData_t *threadData, modelica_metatype _act, modelica_metatype _startSt, modelica_metatype _mm_currSt, modelica_metatype _mm_pos, modelica_metatype _mm_sPos, modelica_metatype _mm_ePos, modelica_metatype _mm_linenr, modelica_metatype _lineNrStart, modelica_metatype _buffer, modelica_metatype _debug, modelica_metatype _fileNm, modelica_metatype _fileContents, modelica_metatype _inErrorTokens, modelica_metatype *out_mm_startSt, modelica_metatype *out_bufferRet, modelica_metatype *out_errorTokens)
1630{
1631 modelica_integer tmp1;
1632 modelica_integer tmp2;
1633 modelica_integer tmp3;
1634 modelica_integer tmp4;
1635 modelica_integer tmp5;
1636 modelica_integer tmp6;
1637 modelica_integer tmp7;
1638 modelica_integer tmp8;
1639 modelica_integer tmp9;
1640 modelica_integer tmp10;
1641 modelica_integer _mm_startSt;
1642 modelica_integer _bufferRet;
1643 modelica_metatype _token = NULL((void*)0);
1644 tmp1 = mmc_unbox_integer(_act)(((mmc_sint_t) (_act)) >> 1);
1645 tmp2 = mmc_unbox_integer(_startSt)(((mmc_sint_t) (_startSt)) >> 1);
1646 tmp3 = mmc_unbox_integer(_mm_currSt)(((mmc_sint_t) (_mm_currSt)) >> 1);
1647 tmp4 = mmc_unbox_integer(_mm_pos)(((mmc_sint_t) (_mm_pos)) >> 1);
1648 tmp5 = mmc_unbox_integer(_mm_sPos)(((mmc_sint_t) (_mm_sPos)) >> 1);
1649 tmp6 = mmc_unbox_integer(_mm_ePos)(((mmc_sint_t) (_mm_ePos)) >> 1);
1650 tmp7 = mmc_unbox_integer(_mm_linenr)(((mmc_sint_t) (_mm_linenr)) >> 1);
1651 tmp8 = mmc_unbox_integer(_lineNrStart)(((mmc_sint_t) (_lineNrStart)) >> 1);
1652 tmp9 = mmc_unbox_integer(_buffer)(((mmc_sint_t) (_buffer)) >> 1);
1653 tmp10 = mmc_unbox_integer(_debug)(((mmc_sint_t) (_debug)) >> 1);
1654 _token = omc_LexerJSON_action(threadData, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7, tmp8, tmp9, tmp10, _fileNm, _fileContents, _inErrorTokens, &_mm_startSt, &_bufferRet, out_errorTokens);
1655 /* skip box _token; LexerJSON.Token */
1656 if (out_mm_startSt) { *out_mm_startSt = mmc_mk_icon(_mm_startSt); }
1657 if (out_bufferRet) { *out_bufferRet = mmc_mk_icon(_bufferRet); }
1658 /* skip box _errorTokens; list<LexerJSON.Token> */
1659 return _token;
1660}
1661
1662DLLExport
1663modelica_metatype omc_LexerJSON_scanString(threadData_t *threadData, modelica_string _fileSource, modelica_string _fileName, modelica_metatype *out_errorTokens)
1664{
1665 modelica_metatype _tokens = NULL((void*)0);
1666 modelica_metatype _errorTokens = NULL((void*)0);
1667 MMC_SO()mmc_check_stackoverflow(threadData);
1668 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1669 // _tokens has no default value.
1670 // _errorTokens has no default value.
1671#line 50 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1672 _tokens = omc_LexerJSON_lex(threadData, _fileName, _fileSource ,&_errorTokens);
1673#line 1673 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1674 _return: OMC_LABEL_UNUSED__attribute__((unused))
1675 if (out_errorTokens) { *out_errorTokens = _errorTokens; }
1676 return _tokens;
1677}
1678
1679DLLExport
1680modelica_metatype omc_LexerJSON_scan(threadData_t *threadData, modelica_string _fileName, modelica_metatype *out_errorTokens)
1681{
1682 modelica_metatype _tokens = NULL((void*)0);
1683 modelica_metatype _errorTokens = NULL((void*)0);
1684 modelica_string _contents = NULL((void*)0);
1685 MMC_SO()mmc_check_stackoverflow(threadData);
1686 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1687 // _tokens has no default value.
1688 // _errorTokens has no default value.
1689 // _contents has no default value.
1690#line 40 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1691 _contents = omc_System_readFile(threadData, _fileName);
1692#line 1692 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1693
1694#line 41 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Lexers/LexerJSON.mo"
1695 _tokens = omc_LexerJSON_lex(threadData, _fileName, _contents ,&_errorTokens);
1696#line 1696 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/LexerJSON.c"
1697 _return: OMC_LABEL_UNUSED__attribute__((unused))
1698 if (out_errorTokens) { *out_errorTokens = _errorTokens; }
1699 return _tokens;
1700}
1701