Bug Summary

File:OMCompiler/Compiler/boot/build/NFScalarize.c
Warning:line 1183, column 3
Value stored to '_alg' 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/NFScalarize.c" OMC_BASE_FILE
3#else
4 #define OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c" "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
5#endif
6#include "omc_simulation_settings.h"
7#include "NFScalarize.h"
8#define _OMC_LIT0_data"NFScalarize.scalarizeEquation could not expand rhs " "NFScalarize.scalarizeEquation could not expand rhs "
9static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT0,51,_OMC_LIT0_data)struct { mmc_uint_t header; const char data[(51)+1]; } _OMC_LIT_STRUCT0
= { ((((mmc_uint_t)51)<<(3))+((1<<(3+3))+5)), "NFScalarize.scalarizeEquation could not expand rhs "
}
;
10#define _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT0)((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))
11static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT1,1,6)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT1
= { (((1) << 10) + (((6) & 255) << 2)),
{&NFExpressionIterator_NONE__ITERATOR__desc,}};
12#define _OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT1)((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3))
13#define _OMC_LIT2_data"NFScalarize.scalarizeVariable failed on " "NFScalarize.scalarizeVariable failed on "
14static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT2,40,_OMC_LIT2_data)struct { mmc_uint_t header; const char data[(40)+1]; } _OMC_LIT_STRUCT2
= { ((((mmc_uint_t)40)<<(3))+((1<<(3+3))+5)), "NFScalarize.scalarizeVariable failed on "
}
;
15#define _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT2)((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3))
16#define _OMC_LIT3_data"" ""
17static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT3,0,_OMC_LIT3_data)struct { mmc_uint_t header; const char data[(0)+1]; } _OMC_LIT_STRUCT3
= { ((((mmc_uint_t)0)<<(3))+((1<<(3+3))+5)), "" }
;
18#define _OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT3)((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3))
19#define _OMC_LIT4_data"NFScalarize.scalarize(" "NFScalarize.scalarize("
20static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT4,22,_OMC_LIT4_data)struct { mmc_uint_t header; const char data[(22)+1]; } _OMC_LIT_STRUCT4
= { ((((mmc_uint_t)22)<<(3))+((1<<(3+3))+5)), "NFScalarize.scalarize("
}
;
21#define _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT4)((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3))
22#define _OMC_LIT5_data")" ")"
23static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT5,1,_OMC_LIT5_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT5
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), ")"
}
;
24#define _OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT5)((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3))
25#include "util/modelica.h"
26
27#include "NFScalarize_includes.h"
28
29
30/* default, do not make protected functions static */
31#if !defined(PROTECTED_FUNCTION_STATIC)
32#define PROTECTED_FUNCTION_STATIC
33#endif
34PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFScalarize_scalarizeWhenStatement(threadData_t *threadData, modelica_metatype _branches, modelica_metatype _source, modelica_metatype _D_24in_statements);
35static const MMC_DEFSTRUCTLIT(boxvar_lit_NFScalarize_scalarizeWhenStatement,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFScalarize_scalarizeWhenStatement
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFScalarize_scalarizeWhenStatementomc_NFScalarize_scalarizeWhenStatement,0}};
36#define boxvar_NFScalarize_scalarizeWhenStatement((void*)((char*)(&(boxvar_lit_NFScalarize_scalarizeWhenStatement
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFScalarize_scalarizeWhenStatement)((void*)((char*)(&(boxvar_lit_NFScalarize_scalarizeWhenStatement
).header) + 3))
37PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFScalarize_scalarizeIfStatement(threadData_t *threadData, modelica_metatype _branches, modelica_metatype _source, modelica_metatype _D_24in_statements);
38static const MMC_DEFSTRUCTLIT(boxvar_lit_NFScalarize_scalarizeIfStatement,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFScalarize_scalarizeIfStatement
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFScalarize_scalarizeIfStatementomc_NFScalarize_scalarizeIfStatement,0}};
39#define boxvar_NFScalarize_scalarizeIfStatement((void*)((char*)(&(boxvar_lit_NFScalarize_scalarizeIfStatement
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFScalarize_scalarizeIfStatement)((void*)((char*)(&(boxvar_lit_NFScalarize_scalarizeIfStatement
).header) + 3))
40PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFScalarize_scalarizeStatement(threadData_t *threadData, modelica_metatype _stmt, modelica_metatype _D_24in_statements);
41static const MMC_DEFSTRUCTLIT(boxvar_lit_NFScalarize_scalarizeStatement,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFScalarize_scalarizeStatement
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFScalarize_scalarizeStatementomc_NFScalarize_scalarizeStatement,0}};
42#define boxvar_NFScalarize_scalarizeStatement((void*)((char*)(&(boxvar_lit_NFScalarize_scalarizeStatement
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFScalarize_scalarizeStatement)((void*)((char*)(&(boxvar_lit_NFScalarize_scalarizeStatement
).header) + 3))
43PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFScalarize_scalarizeStatements(threadData_t *threadData, modelica_metatype _stmts);
44static const MMC_DEFSTRUCTLIT(boxvar_lit_NFScalarize_scalarizeStatements,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFScalarize_scalarizeStatements
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFScalarize_scalarizeStatementsomc_NFScalarize_scalarizeStatements,0}};
45#define boxvar_NFScalarize_scalarizeStatements((void*)((char*)(&(boxvar_lit_NFScalarize_scalarizeStatements
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFScalarize_scalarizeStatements)((void*)((char*)(&(boxvar_lit_NFScalarize_scalarizeStatements
).header) + 3))
46PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFScalarize_scalarizeAlgorithm(threadData_t *threadData, modelica_metatype _D_24in_alg);
47static const MMC_DEFSTRUCTLIT(boxvar_lit_NFScalarize_scalarizeAlgorithm,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFScalarize_scalarizeAlgorithm
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFScalarize_scalarizeAlgorithmomc_NFScalarize_scalarizeAlgorithm,0}};
48#define boxvar_NFScalarize_scalarizeAlgorithm((void*)((char*)(&(boxvar_lit_NFScalarize_scalarizeAlgorithm
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFScalarize_scalarizeAlgorithm)((void*)((char*)(&(boxvar_lit_NFScalarize_scalarizeAlgorithm
).header) + 3))
49PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFScalarize_scalarizeWhenEquation(threadData_t *threadData, modelica_metatype _branches, modelica_metatype _source, modelica_metatype _D_24in_equations);
50static const MMC_DEFSTRUCTLIT(boxvar_lit_NFScalarize_scalarizeWhenEquation,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFScalarize_scalarizeWhenEquation
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFScalarize_scalarizeWhenEquationomc_NFScalarize_scalarizeWhenEquation,0}};
51#define boxvar_NFScalarize_scalarizeWhenEquation((void*)((char*)(&(boxvar_lit_NFScalarize_scalarizeWhenEquation
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFScalarize_scalarizeWhenEquation)((void*)((char*)(&(boxvar_lit_NFScalarize_scalarizeWhenEquation
).header) + 3))
52PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFScalarize_scalarizeIfEquation(threadData_t *threadData, modelica_metatype _branches, modelica_metatype _source, modelica_metatype _D_24in_equations);
53static const MMC_DEFSTRUCTLIT(boxvar_lit_NFScalarize_scalarizeIfEquation,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFScalarize_scalarizeIfEquation
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFScalarize_scalarizeIfEquationomc_NFScalarize_scalarizeIfEquation,0}};
54#define boxvar_NFScalarize_scalarizeIfEquation((void*)((char*)(&(boxvar_lit_NFScalarize_scalarizeIfEquation
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFScalarize_scalarizeIfEquation)((void*)((char*)(&(boxvar_lit_NFScalarize_scalarizeIfEquation
).header) + 3))
55PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFScalarize_scalarizeEquation(threadData_t *threadData, modelica_metatype _eq, modelica_metatype _D_24in_equations);
56static const MMC_DEFSTRUCTLIT(boxvar_lit_NFScalarize_scalarizeEquation,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFScalarize_scalarizeEquation
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFScalarize_scalarizeEquationomc_NFScalarize_scalarizeEquation,0}};
57#define boxvar_NFScalarize_scalarizeEquation((void*)((char*)(&(boxvar_lit_NFScalarize_scalarizeEquation
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFScalarize_scalarizeEquation)((void*)((char*)(&(boxvar_lit_NFScalarize_scalarizeEquation
).header) + 3))
58PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFScalarize_scalarizeEquations(threadData_t *threadData, modelica_metatype _eql);
59static const MMC_DEFSTRUCTLIT(boxvar_lit_NFScalarize_scalarizeEquations,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFScalarize_scalarizeEquations
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFScalarize_scalarizeEquationsomc_NFScalarize_scalarizeEquations,0}};
60#define boxvar_NFScalarize_scalarizeEquations((void*)((char*)(&(boxvar_lit_NFScalarize_scalarizeEquations
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFScalarize_scalarizeEquations)((void*)((char*)(&(boxvar_lit_NFScalarize_scalarizeEquations
).header) + 3))
61PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFScalarize_expandComplexCref__traverser(threadData_t *threadData, modelica_metatype _D_24in_exp);
62static const MMC_DEFSTRUCTLIT(boxvar_lit_NFScalarize_expandComplexCref__traverser,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFScalarize_expandComplexCref__traverser
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFScalarize_expandComplexCref__traverseromc_NFScalarize_expandComplexCref__traverser,0}};
63#define boxvar_NFScalarize_expandComplexCref__traverser((void*)((char*)(&(boxvar_lit_NFScalarize_expandComplexCref__traverser
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFScalarize_expandComplexCref__traverser)((void*)((char*)(&(boxvar_lit_NFScalarize_expandComplexCref__traverser
).header) + 3))
64PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFScalarize_expandComplexCref(threadData_t *threadData, modelica_metatype _D_24in_exp);
65static const MMC_DEFSTRUCTLIT(boxvar_lit_NFScalarize_expandComplexCref,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFScalarize_expandComplexCref
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFScalarize_expandComplexCrefomc_NFScalarize_expandComplexCref,0}};
66#define boxvar_NFScalarize_expandComplexCref((void*)((char*)(&(boxvar_lit_NFScalarize_expandComplexCref
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFScalarize_expandComplexCref)((void*)((char*)(&(boxvar_lit_NFScalarize_expandComplexCref
).header) + 3))
67PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFScalarize_nextTypeAttributes(threadData_t *threadData, modelica_metatype _names, modelica_metatype _iters);
68static const MMC_DEFSTRUCTLIT(boxvar_lit_NFScalarize_nextTypeAttributes,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFScalarize_nextTypeAttributes
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFScalarize_nextTypeAttributesomc_NFScalarize_nextTypeAttributes,0}};
69#define boxvar_NFScalarize_nextTypeAttributes((void*)((char*)(&(boxvar_lit_NFScalarize_nextTypeAttributes
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFScalarize_nextTypeAttributes)((void*)((char*)(&(boxvar_lit_NFScalarize_nextTypeAttributes
).header) + 3))
70PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFScalarize_scalarizeTypeAttributes(threadData_t *threadData, modelica_metatype _attrs, modelica_metatype *out_iters);
71static const MMC_DEFSTRUCTLIT(boxvar_lit_NFScalarize_scalarizeTypeAttributes,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFScalarize_scalarizeTypeAttributes
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFScalarize_scalarizeTypeAttributesomc_NFScalarize_scalarizeTypeAttributes,0}};
72#define boxvar_NFScalarize_scalarizeTypeAttributes((void*)((char*)(&(boxvar_lit_NFScalarize_scalarizeTypeAttributes
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFScalarize_scalarizeTypeAttributes)((void*)((char*)(&(boxvar_lit_NFScalarize_scalarizeTypeAttributes
).header) + 3))
73PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFScalarize_scalarizeVariable(threadData_t *threadData, modelica_metatype _var, modelica_metatype _D_24in_vars);
74static const MMC_DEFSTRUCTLIT(boxvar_lit_NFScalarize_scalarizeVariable,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFScalarize_scalarizeVariable
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFScalarize_scalarizeVariableomc_NFScalarize_scalarizeVariable,0}};
75#define boxvar_NFScalarize_scalarizeVariable((void*)((char*)(&(boxvar_lit_NFScalarize_scalarizeVariable
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFScalarize_scalarizeVariable)((void*)((char*)(&(boxvar_lit_NFScalarize_scalarizeVariable
).header) + 3))
76
77PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFScalarize_scalarizeWhenStatement(threadData_t *threadData, modelica_metatype _branches, modelica_metatype _source, modelica_metatype _D_24in_statements)
78{
79 modelica_metatype _statements = NULL((void*)0);
80 modelica_metatype _bl = NULL((void*)0);
81 modelica_metatype _cond = NULL((void*)0);
82 modelica_metatype _body = NULL((void*)0);
83 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
84 MMC_SO()mmc_check_stackoverflow(threadData);
85 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
86 _statements = _D_24in_statements;
87 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
88 _bl = tmpMeta[0];
89 // _cond has no default value.
90 // _body has no default value.
91#line 392 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
92 {
93#line 392 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
94 modelica_metatype _b;
95#line 392 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
96 for (tmpMeta[1] = _branches; !listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[1]=MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
)
97#line 392 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
98 {
99#line 392 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
100 _b = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
101#line 393 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
102 /* Pattern-matching assignment */
103#line 393 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
104 tmpMeta[2] = _b;
105#line 393 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
106 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
107#line 393 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
108 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
109#line 393 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
110 _cond = tmpMeta[3];
111#line 393 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
112 _body = tmpMeta[4];
113#line 113 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
114
115#line 394 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
116 _body = omc_NFScalarize_scalarizeStatements(threadData, _body);
117#line 117 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
118
119#line 396 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
120 if(omc_NFType_isArray(threadData, omc_NFExpression_typeOf(threadData, _cond)))
121#line 396 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
122 {
123#line 397 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
124 _cond = omc_NFExpandExp_expand(threadData, _cond, NULL((void*)0));
125#line 125 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
126 }
127
128#line 400 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
129 tmpMeta[3] = mmc_mk_box2(0, _cond, _body);
130#line 400 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
131 tmpMeta[2] = mmc_mk_cons(tmpMeta[3], _bl);
132#line 400 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
133 _bl = tmpMeta[2];
134#line 134 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
135 }
136 }
137
138#line 403 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
139 tmpMeta[2] = mmc_mk_box3(7, &NFStatement_WHEN__desc, listReverseInPlace(_bl), _source);
140#line 403 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
141 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _statements);
142#line 403 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
143 _statements = tmpMeta[1];
144#line 144 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
145 _return: OMC_LABEL_UNUSED__attribute__((unused))
146 return _statements;
147}
148
149PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFScalarize_scalarizeIfStatement(threadData_t *threadData, modelica_metatype _branches, modelica_metatype _source, modelica_metatype _D_24in_statements)
150{
151 modelica_metatype _statements = NULL((void*)0);
152 modelica_metatype _bl = NULL((void*)0);
153 modelica_metatype _cond = NULL((void*)0);
154 modelica_metatype _body = NULL((void*)0);
155 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
156 MMC_SO()mmc_check_stackoverflow(threadData);
157 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
158 _statements = _D_24in_statements;
159 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
160 _bl = tmpMeta[0];
161 // _cond has no default value.
162 // _body has no default value.
163#line 366 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
164 {
165#line 366 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
166 modelica_metatype _b;
167#line 366 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
168 for (tmpMeta[1] = _branches; !listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[1]=MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
)
169#line 366 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
170 {
171#line 366 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
172 _b = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
173#line 367 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
174 /* Pattern-matching assignment */
175#line 367 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
176 tmpMeta[2] = _b;
177#line 367 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
178 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
179#line 367 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
180 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
181#line 367 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
182 _cond = tmpMeta[3];
183#line 367 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
184 _body = tmpMeta[4];
185#line 185 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
186
187#line 368 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
188 _body = omc_NFScalarize_scalarizeStatements(threadData, _body);
189#line 189 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
190
191#line 371 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
192 if((!listEmpty(_body)((*(mmc_uint_t*)((void*)((char*)(_body) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
))
193#line 371 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
194 {
195#line 372 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
196 tmpMeta[3] = mmc_mk_box2(0, _cond, _body);
197#line 372 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
198 tmpMeta[2] = mmc_mk_cons(tmpMeta[3], _bl);
199#line 372 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
200 _bl = tmpMeta[2];
201#line 201 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
202 }
203 }
204 }
205
206#line 378 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
207 if((!listEmpty(_bl)((*(mmc_uint_t*)((void*)((char*)(_bl) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
))
208#line 378 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
209 {
210#line 379 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
211 tmpMeta[2] = mmc_mk_box3(6, &NFStatement_IF__desc, listReverseInPlace(_bl), _source);
212#line 379 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
213 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _statements);
214#line 379 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
215 _statements = tmpMeta[1];
216#line 216 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
217 }
218 _return: OMC_LABEL_UNUSED__attribute__((unused))
219 return _statements;
220}
221
222PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFScalarize_scalarizeStatement(threadData_t *threadData, modelica_metatype _stmt, modelica_metatype _D_24in_statements)
223{
224 modelica_metatype _statements = NULL((void*)0);
225 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
226 MMC_SO()mmc_check_stackoverflow(threadData);
227 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
228 _statements = _D_24in_statements;
229#line 229 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
230 { /* match expression */
231 modelica_metatype tmp3_1;
232 tmp3_1 = _stmt;
233 {
234 int tmp3;
235 {
236 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
237 case 5: {
238
239 /* Pattern matching succeeded */
240#line 342 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
241 tmpMeta[2] = mmc_mk_box5(5, &NFStatement_FOR__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_stmt), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_stmt) - 3))) +
(2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_stmt), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_stmt) - 3))) +
(3)))))
), omc_NFScalarize_scalarizeStatements(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_stmt), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_stmt) - 3))) +
(4)))))
)), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_stmt), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_stmt) - 3))) +
(5)))))
));
242#line 342 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
243 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _statements);
244#line 342 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
245 tmpMeta[0] = tmpMeta[1];
246#line 246 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
247 goto tmp2_done;
248 }
249 case 6: {
250
251 /* Pattern matching succeeded */
252#line 345 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
253 tmpMeta[0] = omc_NFScalarize_scalarizeIfStatement(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_stmt), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_stmt) - 3))) +
(2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_stmt), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_stmt) - 3))) +
(3)))))
), _statements);
254#line 254 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
255 goto tmp2_done;
256 }
257 case 7: {
258
259 /* Pattern matching succeeded */
260#line 348 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
261 tmpMeta[0] = omc_NFScalarize_scalarizeWhenStatement(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_stmt), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_stmt) - 3))) +
(2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_stmt), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_stmt) - 3))) +
(3)))))
), _statements);
262#line 262 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
263 goto tmp2_done;
264 }
265 case 11: {
266
267 /* Pattern matching succeeded */
268#line 351 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
269 tmpMeta[2] = mmc_mk_box4(11, &NFStatement_WHILE__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_stmt), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_stmt) - 3))) +
(2)))))
), omc_NFScalarize_scalarizeStatements(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_stmt), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_stmt) - 3))) +
(3)))))
)), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_stmt), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_stmt) - 3))) +
(4)))))
));
270#line 351 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
271 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _statements);
272#line 351 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
273 tmpMeta[0] = tmpMeta[1];
274#line 274 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
275 goto tmp2_done;
276 }
277 default:
278 tmp2_default: OMC_LABEL_UNUSED__attribute__((unused)); {
279
280 /* Pattern matching succeeded */
281#line 353 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
282 tmpMeta[1] = mmc_mk_cons(_stmt, _statements);
283#line 353 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
284 tmpMeta[0] = tmpMeta[1];
285#line 285 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
286 goto tmp2_done;
287 }
288 }
289 goto tmp2_end;
290 tmp2_end: ;
291 }
292 goto goto_1;
293 goto_1:;
294 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
295 goto tmp2_done;
296 tmp2_done:;
297 }
298 }
299 _statements = tmpMeta[0];
300 _return: OMC_LABEL_UNUSED__attribute__((unused))
301 return _statements;
302}
303
304PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFScalarize_scalarizeStatements(threadData_t *threadData, modelica_metatype _stmts)
305{
306 modelica_metatype _statements = NULL((void*)0);
307 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
308 MMC_SO()mmc_check_stackoverflow(threadData);
309 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
310 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
311 _statements = tmpMeta[0];
312#line 329 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
313 {
314#line 329 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
315 modelica_metatype _s;
316#line 329 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
317 for (tmpMeta[1] = _stmts; !listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[1]=MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
)
318#line 329 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
319 {
320#line 329 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
321 _s = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
322#line 330 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
323 _statements = omc_NFScalarize_scalarizeStatement(threadData, _s, _statements);
324#line 324 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
325 }
326 }
327
328#line 333 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
329 _statements = listReverseInPlace(_statements);
330#line 330 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
331 _return: OMC_LABEL_UNUSED__attribute__((unused))
332 return _statements;
333}
334
335PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFScalarize_scalarizeAlgorithm(threadData_t *threadData, modelica_metatype _D_24in_alg)
336{
337 modelica_metatype _alg = NULL((void*)0);
338 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
339 MMC_SO()mmc_check_stackoverflow(threadData);
340 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
341 _alg = _D_24in_alg;
342#line 322 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
343 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(4))((void*)((char*)(mmc_alloc_words(4)) + 3));
344#line 322 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
345 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_alg)((void*)((char*)(_alg) - 3)), 4*sizeof(modelica_metatype));
346#line 322 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
347 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[2] = omc_NFScalarize_scalarizeStatements(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_alg), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_alg) - 3))) + (
2)))))
));
348#line 322 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
349 _alg = tmpMeta[0];
350#line 350 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
351 _return: OMC_LABEL_UNUSED__attribute__((unused))
352 return _alg;
353}
354
355PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFScalarize_scalarizeWhenEquation(threadData_t *threadData, modelica_metatype _branches, modelica_metatype _source, modelica_metatype _D_24in_equations)
356{
357 modelica_metatype _equations = NULL((void*)0);
358 modelica_metatype _bl = NULL((void*)0);
359 modelica_metatype _cond = NULL((void*)0);
360 modelica_metatype _body = NULL((void*)0);
361 modelica_integer _var;
362 modelica_integer tmp1;
363 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
364 MMC_SO()mmc_check_stackoverflow(threadData);
365 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
366 _equations = _D_24in_equations;
367 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
368 _bl = tmpMeta[0];
369 // _cond has no default value.
370 // _body has no default value.
371 // _var has no default value.
372#line 305 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
373 {
374#line 305 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
375 modelica_metatype _b;
376#line 305 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
377 for (tmpMeta[1] = _branches; !listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[1]=MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
)
378#line 305 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
379 {
380#line 305 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
381 _b = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
382#line 306 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
383 /* Pattern-matching assignment */
384#line 306 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
385 tmpMeta[2] = _b;
386#line 306 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
387 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],0,3)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((3 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
388#line 306 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
389 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
390#line 306 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
391 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (3)))))
;
392#line 306 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
393 tmp1 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
394#line 306 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
395 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (4)))))
;
396#line 306 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
397 _cond = tmpMeta[3];
398#line 306 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
399 _var = tmp1 /* pattern as ty=enumeration(CONSTANT, STRUCTURAL_PARAMETER, PARAMETER, NON_STRUCTURAL_PARAMETER, DISCRETE, IMPLICITLY_DISCRETE, CONTINUOUS) */;
400#line 306 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
401 _body = tmpMeta[5];
402#line 402 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
403
404#line 307 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
405 _body = omc_NFScalarize_scalarizeEquations(threadData, _body);
406#line 406 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
407
408#line 309 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
409 if(omc_NFType_isArray(threadData, omc_NFExpression_typeOf(threadData, _cond)))
410#line 309 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
411 {
412#line 310 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
413 _cond = omc_NFExpandExp_expand(threadData, _cond, NULL((void*)0));
414#line 414 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
415 }
416
417#line 313 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
418 tmpMeta[2] = mmc_mk_cons(omc_NFEquation_makeBranch(threadData, _cond, _body, (modelica_integer)_var), _bl);
419#line 313 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
420 _bl = tmpMeta[2];
421#line 421 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
422 }
423 }
424
425#line 316 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
426 tmpMeta[2] = mmc_mk_box3(9, &NFEquation_WHEN__desc, listReverseInPlace(_bl), _source);
427#line 316 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
428 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _equations);
429#line 316 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
430 _equations = tmpMeta[1];
431#line 431 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
432 _return: OMC_LABEL_UNUSED__attribute__((unused))
433 return _equations;
434}
435
436PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFScalarize_scalarizeIfEquation(threadData_t *threadData, modelica_metatype _branches, modelica_metatype _source, modelica_metatype _D_24in_equations)
437{
438 modelica_metatype _equations = NULL((void*)0);
439 modelica_metatype _bl = NULL((void*)0);
440 modelica_metatype _cond = NULL((void*)0);
441 modelica_metatype _body = NULL((void*)0);
442 modelica_integer _var;
443 modelica_integer tmp1;
444 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
445 MMC_SO()mmc_check_stackoverflow(threadData);
446 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
447 _equations = _D_24in_equations;
448 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
449 _bl = tmpMeta[0];
450 // _cond has no default value.
451 // _body has no default value.
452 // _var has no default value.
453#line 278 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
454 {
455#line 278 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
456 modelica_metatype _b;
457#line 278 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
458 for (tmpMeta[1] = _branches; !listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[1]=MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
)
459#line 278 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
460 {
461#line 278 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
462 _b = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
463#line 279 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
464 /* Pattern-matching assignment */
465#line 279 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
466 tmpMeta[2] = _b;
467#line 279 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
468 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],0,3)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((3 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
469#line 279 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
470 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
471#line 279 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
472 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (3)))))
;
473#line 279 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
474 tmp1 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
475#line 279 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
476 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (4)))))
;
477#line 279 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
478 _cond = tmpMeta[3];
479#line 279 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
480 _var = tmp1 /* pattern as ty=enumeration(CONSTANT, STRUCTURAL_PARAMETER, PARAMETER, NON_STRUCTURAL_PARAMETER, DISCRETE, IMPLICITLY_DISCRETE, CONTINUOUS) */;
481#line 279 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
482 _body = tmpMeta[5];
483#line 483 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
484
485#line 280 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
486 _body = omc_NFScalarize_scalarizeEquations(threadData, _body);
487#line 487 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
488
489#line 283 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
490 if((!listEmpty(_body)((*(mmc_uint_t*)((void*)((char*)(_body) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
))
491#line 283 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
492 {
493#line 284 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
494 tmpMeta[2] = mmc_mk_cons(omc_NFEquation_makeBranch(threadData, _cond, _body, (modelica_integer)_var), _bl);
495#line 284 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
496 _bl = tmpMeta[2];
497#line 497 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
498 }
499 }
500 }
501
502#line 290 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
503 if((!listEmpty(_bl)((*(mmc_uint_t*)((void*)((char*)(_bl) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
))
504#line 290 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
505 {
506#line 291 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
507 tmpMeta[2] = mmc_mk_box3(8, &NFEquation_IF__desc, listReverseInPlace(_bl), _source);
508#line 291 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
509 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _equations);
510#line 291 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
511 _equations = tmpMeta[1];
512#line 512 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
513 }
514 _return: OMC_LABEL_UNUSED__attribute__((unused))
515 return _equations;
516}
517
518PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFScalarize_scalarizeEquation(threadData_t *threadData, modelica_metatype _eq, modelica_metatype _D_24in_equations)
519{
520 modelica_metatype _equations = NULL((void*)0);
521 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
522 MMC_SO()mmc_check_stackoverflow(threadData);
523 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
524 _equations = _D_24in_equations;
525#line 525 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
526 { /* match expression */
527 modelica_metatype tmp3_1;
528 tmp3_1 = _eq;
529 {
530 modelica_metatype _lhs_iter = NULL((void*)0);
531 modelica_metatype _rhs_iter = NULL((void*)0);
532 modelica_metatype _lhs = NULL((void*)0);
533 modelica_metatype _rhs = NULL((void*)0);
534 modelica_metatype _ty = NULL((void*)0);
535 modelica_metatype _src = NULL((void*)0);
536 volatile mmc_switch_type tmp3;
537 int tmp4;
538 // _lhs_iter has no default value.
539 // _rhs_iter has no default value.
540 // _lhs has no default value.
541 // _rhs has no default value.
542 // _ty has no default value.
543 // _src has no default value.
544 tmp3 = 0;
545 for (; tmp3 < 6; tmp3++) {
546 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
547 case 0: {
548 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((4 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
549 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
550 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
551 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
552 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(5)))))
;
553 _lhs = tmpMeta[1];
554 _rhs = tmpMeta[2];
555 _ty = tmpMeta[3];
556 _src = tmpMeta[4];
557 /* Pattern matching succeeded */
558 /* Check guard condition after assignments */
559 if (!omc_NFType_isArray(threadData, _ty)) goto tmp2_end;
560#line 232 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
561 if((omc_NFExpression_hasArrayCall(threadData, _lhs) || omc_NFExpression_hasArrayCall(threadData, _rhs)))
562#line 232 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
563 {
564#line 233 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
565 tmpMeta[2] = mmc_mk_box5(5, &NFEquation_ARRAY__EQUALITY__desc, _lhs, _rhs, _ty, _src);
566#line 233 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
567 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _equations);
568#line 233 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
569 _equations = tmpMeta[1];
570#line 570 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
571 }
572 else
573 {
574#line 235 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
575 _lhs_iter = omc_NFExpressionIterator_fromExp(threadData, _lhs);
576#line 576 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
577
578#line 236 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
579 _rhs_iter = omc_NFExpressionIterator_fromExp(threadData, _rhs);
580#line 580 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
581
582#line 237 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
583 _ty = omc_NFType_arrayElementType(threadData, _ty);
584#line 584 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
585
586#line 239 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
587 while(1)
588#line 239 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
589 {
590#line 239 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
591 if(!omc_NFExpressionIterator_hasNext(threadData, _lhs_iter)) break;
592#line 240 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
593 if((!omc_NFExpressionIterator_hasNext(threadData, _rhs_iter)))
594#line 240 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
595 {
596#line 241 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
597 tmpMeta[1] = stringAppend(_OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)),omc_NFExpression_toString(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_eq) - 3))) + (
3)))))
)));
598#line 241 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
599 omc_Error_addInternalError(threadData, tmpMeta[1], omc_ElementSource_getInfo(threadData, _src));
600#line 600 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
601 }
602
603#line 245 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
604 _lhs_iter = omc_NFExpressionIterator_next(threadData, _lhs_iter ,&_lhs);
605#line 605 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
606
607#line 246 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
608 _rhs_iter = omc_NFExpressionIterator_next(threadData, _rhs_iter ,&_rhs);
609#line 609 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
610
611#line 247 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
612 tmpMeta[2] = mmc_mk_box5(3, &NFEquation_EQUALITY__desc, _lhs, _rhs, _ty, _src);
613#line 247 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
614 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _equations);
615#line 247 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
616 _equations = tmpMeta[1];
617#line 617 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
618 }
619 }
620#line 250 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
621 tmpMeta[0] = _equations;
622#line 622 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
623 goto tmp2_done;
624 }
625 case 1: {
626 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((4 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
627
628 /* Pattern matching succeeded */
629#line 254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
630 tmpMeta[2] = mmc_mk_box5(5, &NFEquation_ARRAY__EQUALITY__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_eq) - 3))) + (
2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_eq) - 3))) + (
3)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_eq) - 3))) + (
4)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_eq) - 3))) + (
5)))))
));
631#line 254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
632 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _equations);
633#line 254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
634 tmpMeta[0] = tmpMeta[1];
635#line 635 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
636 goto tmp2_done;
637 }
638 case 2: {
639 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,3,3)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((3 +1) <<
10) + (((3 +3) & 255) << 2)))
== 0) goto tmp2_end;
640
641 /* Pattern matching succeeded */
642#line 256 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
643 tmpMeta[0] = _equations;
644#line 644 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
645 goto tmp2_done;
646 }
647 case 3: {
648 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,5,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((5 +3) & 255) << 2)))
== 0) goto tmp2_end;
649
650 /* Pattern matching succeeded */
651#line 259 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
652 tmpMeta[0] = omc_NFScalarize_scalarizeIfEquation(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_eq) - 3))) + (
2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_eq) - 3))) + (
3)))))
), _equations);
653#line 653 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
654 goto tmp2_done;
655 }
656 case 4: {
657 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,6,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((6 +3) & 255) << 2)))
== 0) goto tmp2_end;
658
659 /* Pattern matching succeeded */
660#line 262 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
661 tmpMeta[0] = omc_NFScalarize_scalarizeWhenEquation(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_eq) - 3))) + (
2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_eq) - 3))) + (
3)))))
), _equations);
662#line 662 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
663 goto tmp2_done;
664 }
665 case 5: {
666
667 /* Pattern matching succeeded */
668#line 264 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
669 tmpMeta[1] = mmc_mk_cons(_eq, _equations);
670#line 264 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
671 tmpMeta[0] = tmpMeta[1];
672#line 672 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
673 goto tmp2_done;
674 }
675 }
676 goto tmp2_end;
677 tmp2_end: ;
678 }
679 goto goto_1;
680 goto_1:;
681 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
682 goto tmp2_done;
683 tmp2_done:;
684 }
685 }
686 _equations = tmpMeta[0];
687 _return: OMC_LABEL_UNUSED__attribute__((unused))
688 return _equations;
689}
690
691PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFScalarize_scalarizeEquations(threadData_t *threadData, modelica_metatype _eql)
692{
693 modelica_metatype _equations = NULL((void*)0);
694 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
695 MMC_SO()mmc_check_stackoverflow(threadData);
696 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
697 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
698 _equations = tmpMeta[0];
699#line 210 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
700 {
701#line 210 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
702 modelica_metatype _eq;
703#line 210 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
704 for (tmpMeta[1] = _eql; !listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[1]=MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
)
705#line 210 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
706 {
707#line 210 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
708 _eq = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
709#line 211 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
710 _equations = omc_NFScalarize_scalarizeEquation(threadData, _eq, _equations);
711#line 711 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
712 }
713 }
714
715#line 214 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
716 _equations = listReverseInPlace(_equations);
717#line 717 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
718 _return: OMC_LABEL_UNUSED__attribute__((unused))
719 return _equations;
720}
721
722PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFScalarize_expandComplexCref__traverser(threadData_t *threadData, modelica_metatype _D_24in_exp)
723{
724 modelica_metatype _exp = NULL((void*)0);
725 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
726 MMC_SO()mmc_check_stackoverflow(threadData);
727 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
728 _exp = _D_24in_exp;
729#line 729 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
730 { /* match expression */
731 modelica_metatype tmp3_1;
732 tmp3_1 = _exp;
733 {
734 volatile mmc_switch_type tmp3;
735 int tmp4;
736 tmp3 = 0;
737 for (; tmp3 < 2; tmp3++) {
738 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
739 case 0: {
740 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,5,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((5 +3) & 255) << 2)))
== 0) goto tmp2_end;
741 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
742 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],7,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((2 +1)
<< 10) + (((7 +3) & 255) << 2)))
== 0) goto tmp2_end;
743
744 /* Pattern matching succeeded */
745#line 196 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
746 if(omc_NFComponentRef_isComplexArray(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_exp), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_exp) - 3))) + (
3)))))
)))
747#line 196 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
748 {
749#line 197 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
750 _exp = omc_NFExpandExp_expand(threadData, _exp, NULL((void*)0));
751#line 751 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
752 }
753#line 753 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
754 goto tmp2_done;
755 }
756 case 1: {
757
758 /* Pattern matching succeeded */
759#line 759 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
760 goto tmp2_done;
761 }
762 }
763 goto tmp2_end;
764 tmp2_end: ;
765 }
766 goto goto_1;
767 goto_1:;
768 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
769 goto tmp2_done;
770 tmp2_done:;
771 }
772 }
773 ;
774 _return: OMC_LABEL_UNUSED__attribute__((unused))
775 return _exp;
776}
777
778PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFScalarize_expandComplexCref(threadData_t *threadData, modelica_metatype _D_24in_exp)
779{
780 modelica_metatype _exp = NULL((void*)0);
781 MMC_SO()mmc_check_stackoverflow(threadData);
782 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
783 _exp = _D_24in_exp;
784#line 183 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
785 _exp = omc_NFExpression_map(threadData, _exp, boxvar_NFScalarize_expandComplexCref__traverser((void*)((char*)(&(boxvar_lit_NFScalarize_expandComplexCref__traverser
).header) + 3))
);
786#line 786 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
787 _return: OMC_LABEL_UNUSED__attribute__((unused))
788 return _exp;
789}
790
791PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFScalarize_nextTypeAttributes(threadData_t *threadData, modelica_metatype _names, modelica_metatype _iters)
792{
793 modelica_metatype _attrs = NULL((void*)0);
794 modelica_integer _i;
795 modelica_metatype _iter = NULL((void*)0);
796 modelica_metatype _exp = NULL((void*)0);
797 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
798 MMC_SO()mmc_check_stackoverflow(threadData);
799 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
800 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
801 _attrs = tmpMeta[0];
802 _i = ((modelica_integer) 1);
803 // _iter has no default value.
804 // _exp has no default value.
805#line 172 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
806 {
807#line 172 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
808 modelica_metatype _name;
809#line 172 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
810 for (tmpMeta[1] = _names; !listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[1]=MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
)
811#line 172 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
812 {
813#line 172 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
814 _name = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
815#line 173 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
816 _iter = omc_NFExpressionIterator_next(threadData, arrayGet(_iters,_i)nobox_arrayGet(threadData,_iters,_i) /* DAE.ASUB */ ,&_exp);
817#line 817 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
818
819#line 174 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
820 arrayUpdate(_iters, _i, _iter)boxptr_arrayUpdate(threadData,_iters,mmc_mk_icon(_i),_iter);
821#line 821 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
822
823#line 175 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
824 _i = ((modelica_integer) 1) + _i;
825#line 825 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
826
827#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
828 tmpMeta[3] = mmc_mk_box3(7, &NFBinding_Binding_FLAT__BINDING__desc, _exp, mmc_mk_integermmc_mk_icon(3));
829#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
830 tmpMeta[4] = mmc_mk_box2(0, _name, tmpMeta[3]);
831#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
832 tmpMeta[2] = mmc_mk_cons(tmpMeta[4], _attrs);
833#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
834 _attrs = tmpMeta[2];
835#line 835 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
836 }
837 }
838 _return: OMC_LABEL_UNUSED__attribute__((unused))
839 return _attrs;
840}
841
842PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFScalarize_scalarizeTypeAttributes(threadData_t *threadData, modelica_metatype _attrs, modelica_metatype *out_iters)
843{
844 modelica_metatype _names = NULL((void*)0);
845 modelica_metatype _iters = NULL((void*)0);
846 modelica_integer _len;
847 modelica_integer _i;
848 modelica_string _name = NULL((void*)0);
849 modelica_metatype _binding = NULL((void*)0);
850 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
851 MMC_SO()mmc_check_stackoverflow(threadData);
852 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
853 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
854 _names = tmpMeta[0];
855 // _iters has no default value.
856 // _len has no default value.
857 // _i has no default value.
858 // _name has no default value.
859 // _binding has no default value.
860#line 151 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
861 _len = listLength(_attrs);
862#line 862 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
863
864#line 152 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
865 _iters = arrayCreateNoInit(_len, _OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)));
866#line 866 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
867
868#line 153 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
869 _i = _len;
870#line 870 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
871
872#line 155 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
873 {
874#line 155 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
875 modelica_metatype _attr;
876#line 155 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
877 for (tmpMeta[1] = _attrs; !listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[1]=MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
)
878#line 155 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
879 {
880#line 155 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
881 _attr = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
882#line 156 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
883 /* Pattern-matching assignment */
884#line 156 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
885 tmpMeta[2] = _attr;
886#line 156 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
887 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
888#line 156 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
889 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
890#line 156 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
891 _name = tmpMeta[3];
892#line 156 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
893 _binding = tmpMeta[4];
894#line 894 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
895
896#line 157 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
897 tmpMeta[2] = mmc_mk_cons(_name, _names);
898#line 157 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
899 _names = tmpMeta[2];
900#line 900 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
901
902#line 158 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
903 arrayUpdate(_iters, _i, omc_NFExpressionIterator_fromBinding(threadData, _binding))boxptr_arrayUpdate(threadData,_iters,mmc_mk_icon(_i),omc_NFExpressionIterator_fromBinding
(threadData, _binding))
;
904#line 904 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
905
906#line 159 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
907 _i = ((modelica_integer) -1) + _i;
908#line 908 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
909 }
910 }
911 _return: OMC_LABEL_UNUSED__attribute__((unused))
912 if (out_iters) { *out_iters = _iters; }
913 return _names;
914}
915
916PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFScalarize_scalarizeVariable(threadData_t *threadData, modelica_metatype _var, modelica_metatype _D_24in_vars)
917{
918 jmp_buf *old_mmc_jumper = threadData->mmc_jumper;
919 modelica_metatype _vars = NULL((void*)0);
920 modelica_metatype _name = NULL((void*)0);
921 modelica_metatype _binding = NULL((void*)0);
922 modelica_metatype _ty = NULL((void*)0);
923 modelica_integer _vis;
924 modelica_metatype _attr = NULL((void*)0);
925 modelica_metatype _ty_attr = NULL((void*)0);
926 modelica_metatype _cmt = NULL((void*)0);
927 modelica_metatype _info = NULL((void*)0);
928 modelica_metatype _binding_iter = NULL((void*)0);
929 modelica_metatype _crefs = NULL((void*)0);
930 modelica_metatype _exp = NULL((void*)0);
931 modelica_metatype _v = NULL((void*)0);
932 modelica_metatype _ty_attr_names = NULL((void*)0);
933 modelica_metatype _ty_attr_iters = NULL((void*)0);
934 modelica_integer _bind_var;
935 modelica_metatype tmpMeta[9] __attribute__((unused)) = {0};
936 MMC_SO()mmc_check_stackoverflow(threadData);
937 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
938 _vars = _D_24in_vars;
939 // _name has no default value.
940 // _binding has no default value.
941 // _ty has no default value.
942 // _vis has no default value.
943 // _attr has no default value.
944 // _ty_attr has no default value.
945 // _cmt has no default value.
946 // _info has no default value.
947 // _binding_iter has no default value.
948 // _crefs has no default value.
949 // _exp has no default value.
950 // _v has no default value.
951 // _ty_attr_names has no default value.
952 // _ty_attr_iters has no default value.
953 // _bind_var has no default value.
954#line 104 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
955 if(omc_NFType_isArray(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_var), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_var) - 3))) + (
3)))))
)))
956#line 104 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
957 {
958#line 958 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
959 { /* matchcontinue expression */
960 {
961 volatile mmc_switch_type tmp3;
962 int tmp4;
963 tmp3 = 0;
964 MMC_TRY_INTERNAL(mmc_jumper){ jmp_buf new_mmc_jumper, *old_jumper __attribute__((unused))
= threadData->mmc_jumper; threadData->mmc_jumper = &
new_mmc_jumper; if (_setjmp (new_mmc_jumper) == 0) {
965 tmp2_top:
966 threadData->mmc_jumper = &new_mmc_jumper;
967 for (; tmp3 < 2; tmp3++) {
968 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
969 case 0: {
970 modelica_integer tmp5;
971 /* Pattern matching succeeded */
972#line 106 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
973 /* Pattern-matching assignment */
974#line 106 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
975 tmpMeta[0] = _var;
976#line 106 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
977 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto goto_1;
978#line 106 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
979 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
980#line 106 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
981 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
982#line 106 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
983 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
984#line 106 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
985 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
986#line 106 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
987 tmp5 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
988#line 106 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
989 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
990#line 106 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
991 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (7)))))
;
992#line 106 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
993 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (8)))))
;
994#line 106 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
995 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 9))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (9)))))
;
996#line 106 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
997 _name = tmpMeta[1];
998#line 106 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
999 _ty = tmpMeta[2];
1000#line 106 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1001 _binding = tmpMeta[3];
1002#line 106 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1003 _vis = tmp5 /* pattern as ty=enumeration(PUBLIC, PROTECTED) */;
1004#line 106 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1005 _attr = tmpMeta[5];
1006#line 106 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1007 _ty_attr = tmpMeta[6];
1008#line 106 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1009 _cmt = tmpMeta[7];
1010#line 106 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1011 _info = tmpMeta[8];
1012#line 1012 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
1013
1014#line 107 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1015 _crefs = omc_NFComponentRef_scalarize(threadData, _name);
1016#line 1016 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
1017
1018#line 109 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1019 if(listEmpty(_crefs)((*(mmc_uint_t*)((void*)((char*)(_crefs) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
)
1020#line 109 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1021 {
1022#line 110 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1023 goto _return;
1024#line 1024 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
1025 }
1026
1027#line 113 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1028 _ty = omc_NFType_arrayElementType(threadData, _ty);
1029#line 1029 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
1030
1031#line 114 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1032 _ty_attr_names = omc_NFScalarize_scalarizeTypeAttributes(threadData, _ty_attr ,&_ty_attr_iters);
1033#line 1033 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
1034
1035#line 116 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1036 if(omc_NFBinding_Binding_isBound(threadData, _binding))
1037#line 116 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1038 {
1039#line 117 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1040 _binding_iter = omc_NFExpressionIterator_fromExp(threadData, omc_NFScalarize_expandComplexCref(threadData, omc_NFBinding_Binding_getTypedExp(threadData, _binding)));
1041#line 1041 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
1042
1043#line 118 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1044 _bind_var = omc_NFBinding_Binding_variability(threadData, _binding);
1045#line 1045 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
1046
1047#line 120 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1048 {
1049#line 120 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1050 modelica_metatype _cr;
1051#line 120 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1052 for (tmpMeta[0] = _crefs; !listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[0]=MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
)
1053#line 120 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1054 {
1055#line 120 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1056 _cr = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
1057#line 121 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1058 _binding_iter = omc_NFExpressionIterator_next(threadData, _binding_iter ,&_exp);
1059#line 1059 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
1060
1061#line 122 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1062 tmpMeta[1] = mmc_mk_box3(7, &NFBinding_Binding_FLAT__BINDING__desc, _exp, mmc_mk_integermmc_mk_icon((modelica_integer)_bind_var));
1063#line 122 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1064 _binding = tmpMeta[1];
1065#line 1065 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
1066
1067#line 123 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1068 _ty_attr = omc_NFScalarize_nextTypeAttributes(threadData, _ty_attr_names, _ty_attr_iters);
1069#line 1069 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
1070
1071#line 124 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1072 tmpMeta[2] = mmc_mk_box9(3, &NFVariable_VARIABLE__desc, _cr, _ty, _binding, mmc_mk_integermmc_mk_icon((modelica_integer)_vis), _attr, _ty_attr, _cmt, _info);
1073#line 124 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1074 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _vars);
1075#line 124 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1076 _vars = tmpMeta[1];
1077#line 1077 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
1078 }
1079 }
1080 }
1081 else
1082 {
1083#line 127 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1084 {
1085#line 127 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1086 modelica_metatype _cr;
1087#line 127 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1088 for (tmpMeta[0] = _crefs; !listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[0]=MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
)
1089#line 127 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1090 {
1091#line 127 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1092 _cr = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
1093#line 128 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1094 _ty_attr = omc_NFScalarize_nextTypeAttributes(threadData, _ty_attr_names, _ty_attr_iters);
1095#line 1095 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
1096
1097#line 129 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1098 tmpMeta[2] = mmc_mk_box9(3, &NFVariable_VARIABLE__desc, _cr, _ty, _binding, mmc_mk_integermmc_mk_icon((modelica_integer)_vis), _attr, _ty_attr, _cmt, _info);
1099#line 129 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1100 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _vars);
1101#line 129 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1102 _vars = tmpMeta[1];
1103#line 1103 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
1104 }
1105 }
1106 }
1107#line 1107 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
1108 goto tmp2_done;
1109 }
1110 case 1: {
1111 /* Pattern matching succeeded */
1112#line 133 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1113 tmpMeta[0] = stringAppend(_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)),omc_NFVariable_toString(threadData, _var, _OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)), 1));
1114#line 133 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1115 omc_Error_assertion(threadData, 0, tmpMeta[0], (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_var), 9))(*(void**)(((void*)((void**)(((void*)((char*)(_var) - 3))) + (
9)))))
));
1116#line 1116 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
1117#line 1117 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
1118 goto tmp2_done;
1119 }
1120 }
1121 goto tmp2_end;
1122 tmp2_end: ;
1123 }
1124 goto goto_1;
1125 tmp2_done:
1126 (void)tmp3;
1127 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1128 goto tmp2_done2;
1129 goto_1:;
1130 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1131 if (++tmp3 < 2) {
1132 goto tmp2_top;
1133 }
1134 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1135 tmp2_done2:;
1136 }
1137 }
1138 ;
1139 }
1140 else
1141 {
1142#line 137 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1143 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
1144#line 137 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1145 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_var)((void*)((char*)(_var) - 3)), 10*sizeof(modelica_metatype));
1146#line 137 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1147 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[4] = omc_NFBinding_Binding_mapExp(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_var), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_var) - 3))) + (
4)))))
), boxvar_NFScalarize_expandComplexCref__traverser((void*)((char*)(&(boxvar_lit_NFScalarize_expandComplexCref__traverser
).header) + 3))
);
1148#line 137 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1149 _var = tmpMeta[0];
1150#line 1150 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
1151
1152#line 138 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1153 tmpMeta[0] = mmc_mk_cons(_var, _vars);
1154#line 138 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1155 _vars = tmpMeta[0];
1156#line 1156 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
1157 }
1158 _return: OMC_LABEL_UNUSED__attribute__((unused))
1159 threadData->mmc_jumper = old_mmc_jumper;
1160 return _vars;
1161}
1162
1163DLLExport
1164modelica_metatype omc_NFScalarize_scalarize(threadData_t *threadData, modelica_metatype _D_24in_flatModel, modelica_string _name)
1165{
1166 modelica_metatype _flatModel = NULL((void*)0);
1167 modelica_metatype _vars = NULL((void*)0);
1168 modelica_metatype _eql = NULL((void*)0);
1169 modelica_metatype _ieql = NULL((void*)0);
1170 modelica_metatype _alg = NULL((void*)0);
1171 modelica_metatype _ialg = NULL((void*)0);
1172 modelica_metatype tmpMeta[8] __attribute__((unused)) = {0};
1173 MMC_SO()mmc_check_stackoverflow(threadData);
1174 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1175 _flatModel = _D_24in_flatModel;
1176 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1177 _vars = tmpMeta[0];
1178 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1179 _eql = tmpMeta[1];
1180 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1181 _ieql = tmpMeta[2];
1182 tmpMeta[3] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1183 _alg = tmpMeta[3];
Value stored to '_alg' is never read
1184 tmpMeta[4] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1185 _ialg = tmpMeta[4];
1186#line 68 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1187 {
1188#line 68 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1189 modelica_metatype _c;
1190#line 68 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1191 for (tmpMeta[5] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_flatModel), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_flatModel) - 3
))) + (3)))))
); !listEmpty(tmpMeta[5])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[5]=MMC_CDR(tmpMeta[5])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (2)))))
)
1192#line 68 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1193 {
1194#line 68 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1195 _c = MMC_CAR(tmpMeta[5])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (1)))))
;
1196#line 69 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1197 _vars = omc_NFScalarize_scalarizeVariable(threadData, _c, _vars);
1198#line 1198 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
1199 }
1200 }
1201
1202#line 72 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1203 tmpMeta[5] = MMC_TAGPTR(mmc_alloc_words(9))((void*)((char*)(mmc_alloc_words(9)) + 3));
1204#line 72 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1205 memcpy(MMC_UNTAGPTR(tmpMeta[5])((void*)((char*)(tmpMeta[5]) - 3)), MMC_UNTAGPTR(_flatModel)((void*)((char*)(_flatModel) - 3)), 9*sizeof(modelica_metatype));
1206#line 72 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1207 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[5])((void*)((char*)(tmpMeta[5]) - 3)))[3] = listReverseInPlace(_vars);
1208#line 72 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1209 _flatModel = tmpMeta[5];
1210#line 1210 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
1211
1212#line 73 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1213 tmpMeta[5] = MMC_TAGPTR(mmc_alloc_words(9))((void*)((char*)(mmc_alloc_words(9)) + 3));
1214#line 73 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1215 memcpy(MMC_UNTAGPTR(tmpMeta[5])((void*)((char*)(tmpMeta[5]) - 3)), MMC_UNTAGPTR(_flatModel)((void*)((char*)(_flatModel) - 3)), 9*sizeof(modelica_metatype));
1216#line 73 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1217 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[5])((void*)((char*)(tmpMeta[5]) - 3)))[4] = omc_NFEquation_mapExpList(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_flatModel), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_flatModel) - 3
))) + (4)))))
), boxvar_NFScalarize_expandComplexCref((void*)((char*)(&(boxvar_lit_NFScalarize_expandComplexCref
).header) + 3))
);
1218#line 73 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1219 _flatModel = tmpMeta[5];
1220#line 1220 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
1221
1222#line 74 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1223 tmpMeta[5] = MMC_TAGPTR(mmc_alloc_words(9))((void*)((char*)(mmc_alloc_words(9)) + 3));
1224#line 74 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1225 memcpy(MMC_UNTAGPTR(tmpMeta[5])((void*)((char*)(tmpMeta[5]) - 3)), MMC_UNTAGPTR(_flatModel)((void*)((char*)(_flatModel) - 3)), 9*sizeof(modelica_metatype));
1226#line 74 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1227 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[5])((void*)((char*)(tmpMeta[5]) - 3)))[4] = omc_NFScalarize_scalarizeEquations(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_flatModel), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_flatModel) - 3
))) + (4)))))
));
1228#line 74 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1229 _flatModel = tmpMeta[5];
1230#line 1230 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
1231
1232#line 75 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1233 tmpMeta[5] = MMC_TAGPTR(mmc_alloc_words(9))((void*)((char*)(mmc_alloc_words(9)) + 3));
1234#line 75 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1235 memcpy(MMC_UNTAGPTR(tmpMeta[5])((void*)((char*)(tmpMeta[5]) - 3)), MMC_UNTAGPTR(_flatModel)((void*)((char*)(_flatModel) - 3)), 9*sizeof(modelica_metatype));
1236#line 75 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1237 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[5])((void*)((char*)(tmpMeta[5]) - 3)))[5] = omc_NFEquation_mapExpList(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_flatModel), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_flatModel) - 3
))) + (5)))))
), boxvar_NFScalarize_expandComplexCref((void*)((char*)(&(boxvar_lit_NFScalarize_expandComplexCref
).header) + 3))
);
1238#line 75 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1239 _flatModel = tmpMeta[5];
1240#line 1240 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
1241
1242#line 76 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1243 tmpMeta[5] = MMC_TAGPTR(mmc_alloc_words(9))((void*)((char*)(mmc_alloc_words(9)) + 3));
1244#line 76 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1245 memcpy(MMC_UNTAGPTR(tmpMeta[5])((void*)((char*)(tmpMeta[5]) - 3)), MMC_UNTAGPTR(_flatModel)((void*)((char*)(_flatModel) - 3)), 9*sizeof(modelica_metatype));
1246#line 76 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1247 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[5])((void*)((char*)(tmpMeta[5]) - 3)))[5] = omc_NFScalarize_scalarizeEquations(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_flatModel), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_flatModel) - 3
))) + (5)))))
));
1248#line 76 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1249 _flatModel = tmpMeta[5];
1250#line 1250 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
1251
1252#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1253 {
1254#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1255 modelica_metatype _D_24tmpVar1;
1256#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1257 modelica_metatype* tmp1;
1258#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1259 modelica_metatype _D_24tmpVar0;
1260#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1261 int tmp2;
1262#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1263 modelica_metatype _a_loopVar = 0;
1264#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1265 modelica_metatype _a;
1266#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1267 _a_loopVar = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_flatModel), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_flatModel) - 3
))) + (6)))))
);
1268#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1269 tmpMeta[7] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1270#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1271 _D_24tmpVar1 = tmpMeta[7]; /* defaultValue */
1272#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1273 tmp1 = &_D_24tmpVar1;
1274#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1275 while(1) {
1276#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1277 tmp2 = 1;
1278#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1279 if (!listEmpty(_a_loopVar)((*(mmc_uint_t*)((void*)((char*)(_a_loopVar) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) {
1280#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1281 _a = MMC_CAR(_a_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_a_loopVar) - 3
))) + (1)))))
;
1282#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1283 _a_loopVar = MMC_CDR(_a_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_a_loopVar) - 3
))) + (2)))))
;
1284#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1285 tmp2--;
1286#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1287 }
1288#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1289 if (tmp2 == 0) {
1290#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1291 _D_24tmpVar0 = omc_NFScalarize_scalarizeAlgorithm(threadData, _a);
1292#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1293 *tmp1 = mmc_mk_cons(_D_24tmpVar0,0);
1294#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1295 tmp1 = &MMC_CDR(*tmp1)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp1) - 3))) +
(2)))))
;
1296#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1297 } else if (tmp2 == 1) {
1298#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1299 break;
1300#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1301 } else {
1302#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1303 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1304#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1305 }
1306#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1307 }
1308#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1309 *tmp1 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
1310#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1311 tmpMeta[6] = _D_24tmpVar1;
1312#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1313 }
1314#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1315 tmpMeta[5] = MMC_TAGPTR(mmc_alloc_words(9))((void*)((char*)(mmc_alloc_words(9)) + 3));
1316#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1317 memcpy(MMC_UNTAGPTR(tmpMeta[5])((void*)((char*)(tmpMeta[5]) - 3)), MMC_UNTAGPTR(_flatModel)((void*)((char*)(_flatModel) - 3)), 9*sizeof(modelica_metatype));
1318#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1319 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[5])((void*)((char*)(tmpMeta[5]) - 3)))[6] = tmpMeta[6];
1320#line 77 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1321 _flatModel = tmpMeta[5];
1322#line 1322 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
1323
1324#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1325 {
1326#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1327 modelica_metatype _D_24tmpVar3;
1328#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1329 modelica_metatype* tmp3;
1330#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1331 modelica_metatype _D_24tmpVar2;
1332#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1333 int tmp4;
1334#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1335 modelica_metatype _a_loopVar = 0;
1336#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1337 modelica_metatype _a;
1338#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1339 _a_loopVar = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_flatModel), 7))(*(void**)(((void*)((void**)(((void*)((char*)(_flatModel) - 3
))) + (7)))))
);
1340#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1341 tmpMeta[7] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1342#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1343 _D_24tmpVar3 = tmpMeta[7]; /* defaultValue */
1344#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1345 tmp3 = &_D_24tmpVar3;
1346#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1347 while(1) {
1348#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1349 tmp4 = 1;
1350#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1351 if (!listEmpty(_a_loopVar)((*(mmc_uint_t*)((void*)((char*)(_a_loopVar) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) {
1352#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1353 _a = MMC_CAR(_a_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_a_loopVar) - 3
))) + (1)))))
;
1354#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1355 _a_loopVar = MMC_CDR(_a_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_a_loopVar) - 3
))) + (2)))))
;
1356#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1357 tmp4--;
1358#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1359 }
1360#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1361 if (tmp4 == 0) {
1362#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1363 _D_24tmpVar2 = omc_NFScalarize_scalarizeAlgorithm(threadData, _a);
1364#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1365 *tmp3 = mmc_mk_cons(_D_24tmpVar2,0);
1366#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1367 tmp3 = &MMC_CDR(*tmp3)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp3) - 3))) +
(2)))))
;
1368#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1369 } else if (tmp4 == 1) {
1370#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1371 break;
1372#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1373 } else {
1374#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1375 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1376#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1377 }
1378#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1379 }
1380#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1381 *tmp3 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
1382#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1383 tmpMeta[6] = _D_24tmpVar3;
1384#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1385 }
1386#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1387 tmpMeta[5] = MMC_TAGPTR(mmc_alloc_words(9))((void*)((char*)(mmc_alloc_words(9)) + 3));
1388#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1389 memcpy(MMC_UNTAGPTR(tmpMeta[5])((void*)((char*)(tmpMeta[5]) - 3)), MMC_UNTAGPTR(_flatModel)((void*)((char*)(_flatModel) - 3)), 9*sizeof(modelica_metatype));
1390#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1391 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[5])((void*)((char*)(tmpMeta[5]) - 3)))[7] = tmpMeta[6];
1392#line 78 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1393 _flatModel = tmpMeta[5];
1394#line 1394 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
1395
1396#line 80 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1397 tmpMeta[5] = stringAppend(_OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)),_name);
1398#line 80 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1399 tmpMeta[6] = stringAppend(tmpMeta[5],_OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)));
1400#line 80 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFScalarize.mo"
1401 omc_ExecStat_execStat(threadData, tmpMeta[6]);
1402#line 1402 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFScalarize.c"
1403 _return: OMC_LABEL_UNUSED__attribute__((unused))
1404 return _flatModel;
1405}
1406