Bug Summary

File:OMCompiler/Compiler/boot/build/StateMachineFlatten.c
Warning:line 4275, column 5
Value stored to '_tArrayInteger' 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/StateMachineFlatten.c" OMC_BASE_FILE
3#else
4 #define OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c" "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
5#endif
6#include "omc_simulation_settings.h"
7#include "StateMachineFlatten.h"
8#define _OMC_LIT0_data"sample" "sample"
9static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT0,6,_OMC_LIT0_data)struct { mmc_uint_t header; const char data[(6)+1]; } _OMC_LIT_STRUCT0
= { ((((mmc_uint_t)6)<<(3))+((1<<(3+3))+5)), "sample"
}
;
10#define _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT0)((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))
11#define _OMC_LIT1_data"pre" "pre"
12static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT1,3,_OMC_LIT1_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT1
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "pre"
}
;
13#define _OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT1)((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3))
14static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT2,2,4)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT2
= { (((2) << 10) + (((4) & 255) << 2)),
{&Absyn_Path_IDENT__desc,_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3))}};
15#define _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT2)((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3))
16#define _OMC_LIT3_data"previous" "previous"
17static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT3,8,_OMC_LIT3_data)struct { mmc_uint_t header; const char data[(8)+1]; } _OMC_LIT_STRUCT3
= { ((((mmc_uint_t)8)<<(3))+((1<<(3+3))+5)), "previous"
}
;
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"smOf" "smOf"
20static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT4,4,_OMC_LIT4_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT4
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), "smOf"
}
;
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"initial" "initial"
23static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT5,7,_OMC_LIT5_data)struct { mmc_uint_t header; const char data[(7)+1]; } _OMC_LIT_STRUCT5
= { ((((mmc_uint_t)7)<<(3))+((1<<(3+3))+5)), "initial"
}
;
24#define _OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT5)((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3))
25static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT6,2,4)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT6
= { (((2) << 10) + (((4) & 255) << 2)),
{&Absyn_Path_IDENT__desc,_OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3))}};
26#define _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT6)((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3))
27static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT7,2,6)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT7
= { (((2) << 10) + (((6) & 255) << 2)),
{&DAE_Type_T__BOOL__desc,MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
28#define _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT7)((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3))
29static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT8,1,7)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT8
= { (((1) << 10) + (((7) & 255) << 2)),
{&DAE_InlineType_NO__INLINE__desc,}};
30#define _OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT8)((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3))
31static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT9,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT9
= { (((1) << 10) + (((3) & 255) << 2)),
{&DAE_TailCall_NO__TAIL__desc,}};
32#define _OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT9)((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))
33static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT10,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT10
= { (((8) << 10) + (((3) & 255) << 2)),
{&DAE_CallAttributes_CALL__ATTR__desc,_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)),_OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))}};
34#define _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT10)((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3))
35static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT11,4,16)struct { mmc_uint_t header; const void *data[4]; } _OMC_LIT_STRUCT11
= { (((4) << 10) + (((16) & 255) << 2)),
{&DAE_Exp_CALL__desc,_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),_OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3))}};
36#define _OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT11)((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3))
37static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT12,2,4)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT12
= { (((2) << 10) + (((4) & 255) << 2)),
{&Absyn_Path_IDENT__desc,_OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))}};
38#define _OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT12)((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3))
39#define _OMC_LIT13_data"defaultClockPeriod" "defaultClockPeriod"
40static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT13,18,_OMC_LIT13_data)struct { mmc_uint_t header; const char data[(18)+1]; } _OMC_LIT_STRUCT13
= { ((((mmc_uint_t)18)<<(3))+((1<<(3+3))+5)), "defaultClockPeriod"
}
;
41#define _OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT13)((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3))
42static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT14,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT14
= { (((1) << 10) + (((3) & 255) << 2)),
{&Flags_FlagVisibility_INTERNAL__desc,}};
43#define _OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT14)((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3))
44static const MMC_DEFREALLIT(_OMC_LIT_STRUCT15,1.0)struct mmc_real_lit _OMC_LIT_STRUCT15 = {0,(((8/8) << 10
) + 9),1.0}
;
45#define _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT15)((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3))
46static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT16,2,7)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT16
= { (((2) << 10) + (((7) & 255) << 2)),
{&Flags_FlagData_REAL__FLAG__desc,_OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3))}};
47#define _OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT16)((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3))
48#define _OMC_LIT17_data"Sets the default clock period (in seconds) for state machines (default: 1.0)." "Sets the default clock period (in seconds) for state machines (default: 1.0)."
49static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT17,77,_OMC_LIT17_data)struct { mmc_uint_t header; const char data[(77)+1]; } _OMC_LIT_STRUCT17
= { ((((mmc_uint_t)77)<<(3))+((1<<(3+3))+5)), "Sets the default clock period (in seconds) for state machines (default: 1.0)."
}
;
50#define _OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT17)((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3))
51static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT18,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT18
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3))}};
52#define _OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT18)((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3))
53static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT19,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT19
= { (((8) << 10) + (((3) & 255) << 2)),
{&Flags_ConfigFlag_CONFIG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(89))((void*)(((((mmc_uint_t) (89)) << 1)+0))),_OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)),MMC_REFSTRUCTLIT(mmc_none)((void*)((char*)(&(mmc_none).header) + 3)),_OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)),_OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)),MMC_REFSTRUCTLIT(mmc_none)((void*)((char*)(&(mmc_none).header) + 3)),_OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3))}};
54#define _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT19)((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3))
55static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT20,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT20
= { (((2) << 10) + (((3) & 255) << 2)),
{&DAE_Dimension_DIM__INTEGER__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(2))((void*)(((((mmc_uint_t) (2)) << 1)+0)))}};
56#define _OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT20)((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3))
57static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT21,2,1)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT21
= { (((2) << 10) + (((1) & 255) << 2)),
{_OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
58#define _OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT21)((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3))
59static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT22,3,9)struct { mmc_uint_t header; const void *data[3]; } _OMC_LIT_STRUCT22
= { (((3) << 10) + (((9) & 255) << 2)),
{&DAE_Type_T__ARRAY__desc,_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)),_OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3))}};
60#define _OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT22)((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3))
61#define _OMC_LIT23_data"cImmediate" "cImmediate"
62static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT23,10,_OMC_LIT23_data)struct { mmc_uint_t header; const char data[(10)+1]; } _OMC_LIT_STRUCT23
= { ((((mmc_uint_t)10)<<(3))+((1<<(3+3))+5)), "cImmediate"
}
;
63#define _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT23)((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3))
64#define _OMC_LIT24_data"ctStateMachines" "ctStateMachines"
65static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT24,15,_OMC_LIT24_data)struct { mmc_uint_t header; const char data[(15)+1]; } _OMC_LIT_STRUCT24
= { ((((mmc_uint_t)15)<<(3))+((1<<(3+3))+5)), "ctStateMachines"
}
;
66#define _OMC_LIT24((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT24)((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3))
67static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT25,2,4)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT25
= { (((2) << 10) + (((4) & 255) << 2)),
{&Flags_FlagData_BOOL__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0)))}};
68#define _OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT25)((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3))
69#define _OMC_LIT26_data"Experimental: Enable continuous-time state machine prototype" "Experimental: Enable continuous-time state machine prototype"
70static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT26,60,_OMC_LIT26_data)struct { mmc_uint_t header; const char data[(60)+1]; } _OMC_LIT_STRUCT26
= { ((((mmc_uint_t)60)<<(3))+((1<<(3+3))+5)), "Experimental: Enable continuous-time state machine prototype"
}
;
71#define _OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT26)((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3))
72static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT27,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT27
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3))}};
73#define _OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT27)((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3))
74static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT28,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT28
= { (((8) << 10) + (((3) & 255) << 2)),
{&Flags_ConfigFlag_CONFIG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(94))((void*)(((((mmc_uint_t) (94)) << 1)+0))),_OMC_LIT24((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3)),MMC_REFSTRUCTLIT(mmc_none)((void*)((char*)(&(mmc_none).header) + 3)),_OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)),_OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3)),MMC_REFSTRUCTLIT(mmc_none)((void*)((char*)(&(mmc_none).header) + 3)),_OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3))}};
75#define _OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT28)((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3))
76#define _OMC_LIT29_data"" ""
77static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT29,0,_OMC_LIT29_data)struct { mmc_uint_t header; const char data[(0)+1]; } _OMC_LIT_STRUCT29
= { ((((mmc_uint_t)0)<<(3))+((1<<(3+3))+5)), "" }
;
78#define _OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT29)((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3))
79static const MMC_DEFREALLIT(_OMC_LIT_STRUCT30,0.0)struct mmc_real_lit _OMC_LIT_STRUCT30 = {0,(((8/8) << 10
) + 9),0.0}
;
80#define _OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT30)((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3))
81static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT31,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT31
= { (((8) << 10) + (((3) & 255) << 2)),
{&SourceInfo_SOURCEINFO__desc,_OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3))}};
82#define _OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT31)((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3))
83static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT32,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT32
= { (((1) << 10) + (((4) & 255) << 2)),
{&DAE_ComponentPrefix_NOCOMPPRE__desc,}};
84#define _OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT32)((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3))
85static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT33,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT33
= { (((8) << 10) + (((3) & 255) << 2)),
{&DAE_ElementSource_SOURCE__desc,_OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),_OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
86#define _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT33)((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3))
87#define _OMC_LIT34_data"TRANSITION(from=" "TRANSITION(from="
88static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT34,16,_OMC_LIT34_data)struct { mmc_uint_t header; const char data[(16)+1]; } _OMC_LIT_STRUCT34
= { ((((mmc_uint_t)16)<<(3))+((1<<(3+3))+5)), "TRANSITION(from="
}
;
89#define _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT34)((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))
90#define _OMC_LIT35_data", to=" ", to="
91static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT35,5,_OMC_LIT35_data)struct { mmc_uint_t header; const char data[(5)+1]; } _OMC_LIT_STRUCT35
= { ((((mmc_uint_t)5)<<(3))+((1<<(3+3))+5)), ", to="
}
;
92#define _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT35)((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3))
93#define _OMC_LIT36_data", condition=" ", condition="
94static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT36,12,_OMC_LIT36_data)struct { mmc_uint_t header; const char data[(12)+1]; } _OMC_LIT_STRUCT36
= { ((((mmc_uint_t)12)<<(3))+((1<<(3+3))+5)), ", condition="
}
;
95#define _OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT36)((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3))
96#define _OMC_LIT37_data", immediate=" ", immediate="
97static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT37,12,_OMC_LIT37_data)struct { mmc_uint_t header; const char data[(12)+1]; } _OMC_LIT_STRUCT37
= { ((((mmc_uint_t)12)<<(3))+((1<<(3+3))+5)), ", immediate="
}
;
98#define _OMC_LIT37((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT37)((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3))
99#define _OMC_LIT38_data"true" "true"
100static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT38,4,_OMC_LIT38_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT38
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), "true"
}
;
101#define _OMC_LIT38((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT38)((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3))
102#define _OMC_LIT39_data"false" "false"
103static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT39,5,_OMC_LIT39_data)struct { mmc_uint_t header; const char data[(5)+1]; } _OMC_LIT_STRUCT39
= { ((((mmc_uint_t)5)<<(3))+((1<<(3+3))+5)), "false"
}
;
104#define _OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT39)((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3))
105#define _OMC_LIT40_data", reset=" ", reset="
106static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT40,8,_OMC_LIT40_data)struct { mmc_uint_t header; const char data[(8)+1]; } _OMC_LIT_STRUCT40
= { ((((mmc_uint_t)8)<<(3))+((1<<(3+3))+5)), ", reset="
}
;
107#define _OMC_LIT40((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT40)((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3))
108#define _OMC_LIT41_data", synchronize=" ", synchronize="
109static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT41,14,_OMC_LIT41_data)struct { mmc_uint_t header; const char data[(14)+1]; } _OMC_LIT_STRUCT41
= { ((((mmc_uint_t)14)<<(3))+((1<<(3+3))+5)), ", synchronize="
}
;
110#define _OMC_LIT41((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT41)((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3))
111#define _OMC_LIT42_data", priority=" ", priority="
112static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT42,11,_OMC_LIT42_data)struct { mmc_uint_t header; const char data[(11)+1]; } _OMC_LIT_STRUCT42
= { ((((mmc_uint_t)11)<<(3))+((1<<(3+3))+5)), ", priority="
}
;
113#define _OMC_LIT42((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT42)((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3))
114#define _OMC_LIT43_data")" ")"
115static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT43,1,_OMC_LIT43_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT43
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), ")"
}
;
116#define _OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT43)((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3))
117#define _OMC_LIT44_data"initialState" "initialState"
118static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT44,12,_OMC_LIT44_data)struct { mmc_uint_t header; const char data[(12)+1]; } _OMC_LIT_STRUCT44
= { ((((mmc_uint_t)12)<<(3))+((1<<(3+3))+5)), "initialState"
}
;
119#define _OMC_LIT44((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT44)((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3))
120#define _OMC_LIT45_data"transition" "transition"
121static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT45,10,_OMC_LIT45_data)struct { mmc_uint_t header; const char data[(10)+1]; } _OMC_LIT_STRUCT45
= { ((((mmc_uint_t)10)<<(3))+((1<<(3+3))+5)), "transition"
}
;
122#define _OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT45)((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3))
123static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT46,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT46
= { (((1) << 10) + (((5) & 255) << 2)),
{&DAE_VarDirection_BIDIR__desc,}};
124#define _OMC_LIT46((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT46)((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3))
125static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT47,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT47
= { (((1) << 10) + (((5) & 255) << 2)),
{&DAE_VarParallelism_NON__PARALLEL__desc,}};
126#define _OMC_LIT47((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT47)((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3))
127static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT48,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT48
= { (((1) << 10) + (((3) & 255) << 2)),
{&DAE_VarVisibility_PUBLIC__desc,}};
128#define _OMC_LIT48((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT48)((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3))
129static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT49,1,6)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT49
= { (((1) << 10) + (((6) & 255) << 2)),
{&DAE_ConnectorType_NON__CONNECTOR__desc,}};
130#define _OMC_LIT49((void*)((char*)(&(_OMC_LIT_STRUCT49).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT49)((void*)((char*)(&(_OMC_LIT_STRUCT49).header) + 3))
131static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT50,1,6)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT50
= { (((1) << 10) + (((6) & 255) << 2)),
{&Absyn_InnerOuter_NOT__INNER__OUTER__desc,}};
132#define _OMC_LIT50((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT50)((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3))
133static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT51,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT51
= { (((1) << 10) + (((4) & 255) << 2)),
{&DAE_VarKind_DISCRETE__desc,}};
134#define _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT51)((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3))
135static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT52,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT52
= { (((2) << 10) + (((3) & 255) << 2)),
{&DAE_Type_T__INTEGER__desc,MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
136#define _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT52)((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3))
137#define _OMC_LIT53_data"nState" "nState"
138static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT53,6,_OMC_LIT53_data)struct { mmc_uint_t header; const char data[(6)+1]; } _OMC_LIT_STRUCT53
= { ((((mmc_uint_t)6)<<(3))+((1<<(3+3))+5)), "nState"
}
;
139#define _OMC_LIT53((void*)((char*)(&(_OMC_LIT_STRUCT53).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT53)((void*)((char*)(&(_OMC_LIT_STRUCT53).header) + 3))
140static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT54,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT54
= { (((1) << 10) + (((5) & 255) << 2)),
{&DAE_VarKind_PARAM__desc,}};
141#define _OMC_LIT54((void*)((char*)(&(_OMC_LIT_STRUCT54).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT54)((void*)((char*)(&(_OMC_LIT_STRUCT54).header) + 3))
142#define _OMC_LIT55_data"tFrom" "tFrom"
143static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT55,5,_OMC_LIT55_data)struct { mmc_uint_t header; const char data[(5)+1]; } _OMC_LIT_STRUCT55
= { ((((mmc_uint_t)5)<<(3))+((1<<(3+3))+5)), "tFrom"
}
;
144#define _OMC_LIT55((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT55)((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3))
145#define _OMC_LIT56_data"tTo" "tTo"
146static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT56,3,_OMC_LIT56_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT56
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "tTo"
}
;
147#define _OMC_LIT56((void*)((char*)(&(_OMC_LIT_STRUCT56).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT56)((void*)((char*)(&(_OMC_LIT_STRUCT56).header) + 3))
148#define _OMC_LIT57_data"tImmediate" "tImmediate"
149static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT57,10,_OMC_LIT57_data)struct { mmc_uint_t header; const char data[(10)+1]; } _OMC_LIT_STRUCT57
= { ((((mmc_uint_t)10)<<(3))+((1<<(3+3))+5)), "tImmediate"
}
;
150#define _OMC_LIT57((void*)((char*)(&(_OMC_LIT_STRUCT57).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT57)((void*)((char*)(&(_OMC_LIT_STRUCT57).header) + 3))
151#define _OMC_LIT58_data"tReset" "tReset"
152static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT58,6,_OMC_LIT58_data)struct { mmc_uint_t header; const char data[(6)+1]; } _OMC_LIT_STRUCT58
= { ((((mmc_uint_t)6)<<(3))+((1<<(3+3))+5)), "tReset"
}
;
153#define _OMC_LIT58((void*)((char*)(&(_OMC_LIT_STRUCT58).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT58)((void*)((char*)(&(_OMC_LIT_STRUCT58).header) + 3))
154#define _OMC_LIT59_data"tSynchronize" "tSynchronize"
155static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT59,12,_OMC_LIT59_data)struct { mmc_uint_t header; const char data[(12)+1]; } _OMC_LIT_STRUCT59
= { ((((mmc_uint_t)12)<<(3))+((1<<(3+3))+5)), "tSynchronize"
}
;
156#define _OMC_LIT59((void*)((char*)(&(_OMC_LIT_STRUCT59).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT59)((void*)((char*)(&(_OMC_LIT_STRUCT59).header) + 3))
157#define _OMC_LIT60_data"tPriority" "tPriority"
158static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT60,9,_OMC_LIT60_data)struct { mmc_uint_t header; const char data[(9)+1]; } _OMC_LIT_STRUCT60
= { ((((mmc_uint_t)9)<<(3))+((1<<(3+3))+5)), "tPriority"
}
;
159#define _OMC_LIT60((void*)((char*)(&(_OMC_LIT_STRUCT60).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT60)((void*)((char*)(&(_OMC_LIT_STRUCT60).header) + 3))
160#define _OMC_LIT61_data"c" "c"
161static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT61,1,_OMC_LIT61_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT61
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "c"
}
;
162#define _OMC_LIT61((void*)((char*)(&(_OMC_LIT_STRUCT61).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT61)((void*)((char*)(&(_OMC_LIT_STRUCT61).header) + 3))
163static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT62,2,6)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT62
= { (((2) << 10) + (((6) & 255) << 2)),
{&DAE_Exp_BCONST__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0)))}};
164#define _OMC_LIT62((void*)((char*)(&(_OMC_LIT_STRUCT62).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT62)((void*)((char*)(&(_OMC_LIT_STRUCT62).header) + 3))
165#define _OMC_LIT63_data"active" "active"
166static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT63,6,_OMC_LIT63_data)struct { mmc_uint_t header; const char data[(6)+1]; } _OMC_LIT_STRUCT63
= { ((((mmc_uint_t)6)<<(3))+((1<<(3+3))+5)), "active"
}
;
167#define _OMC_LIT63((void*)((char*)(&(_OMC_LIT_STRUCT63).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT63)((void*)((char*)(&(_OMC_LIT_STRUCT63).header) + 3))
168#define _OMC_LIT64_data"reset" "reset"
169static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT64,5,_OMC_LIT64_data)struct { mmc_uint_t header; const char data[(5)+1]; } _OMC_LIT_STRUCT64
= { ((((mmc_uint_t)5)<<(3))+((1<<(3+3))+5)), "reset"
}
;
170#define _OMC_LIT64((void*)((char*)(&(_OMC_LIT_STRUCT64).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT64)((void*)((char*)(&(_OMC_LIT_STRUCT64).header) + 3))
171#define _OMC_LIT65_data"selectedState" "selectedState"
172static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT65,13,_OMC_LIT65_data)struct { mmc_uint_t header; const char data[(13)+1]; } _OMC_LIT_STRUCT65
= { ((((mmc_uint_t)13)<<(3))+((1<<(3+3))+5)), "selectedState"
}
;
173#define _OMC_LIT65((void*)((char*)(&(_OMC_LIT_STRUCT65).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT65)((void*)((char*)(&(_OMC_LIT_STRUCT65).header) + 3))
174#define _OMC_LIT66_data"selectedReset" "selectedReset"
175static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT66,13,_OMC_LIT66_data)struct { mmc_uint_t header; const char data[(13)+1]; } _OMC_LIT_STRUCT66
= { ((((mmc_uint_t)13)<<(3))+((1<<(3+3))+5)), "selectedReset"
}
;
176#define _OMC_LIT66((void*)((char*)(&(_OMC_LIT_STRUCT66).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT66)((void*)((char*)(&(_OMC_LIT_STRUCT66).header) + 3))
177#define _OMC_LIT67_data"fired" "fired"
178static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT67,5,_OMC_LIT67_data)struct { mmc_uint_t header; const char data[(5)+1]; } _OMC_LIT_STRUCT67
= { ((((mmc_uint_t)5)<<(3))+((1<<(3+3))+5)), "fired"
}
;
179#define _OMC_LIT67((void*)((char*)(&(_OMC_LIT_STRUCT67).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT67)((void*)((char*)(&(_OMC_LIT_STRUCT67).header) + 3))
180#define _OMC_LIT68_data"activeState" "activeState"
181static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT68,11,_OMC_LIT68_data)struct { mmc_uint_t header; const char data[(11)+1]; } _OMC_LIT_STRUCT68
= { ((((mmc_uint_t)11)<<(3))+((1<<(3+3))+5)), "activeState"
}
;
182#define _OMC_LIT68((void*)((char*)(&(_OMC_LIT_STRUCT68).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT68)((void*)((char*)(&(_OMC_LIT_STRUCT68).header) + 3))
183#define _OMC_LIT69_data"activeReset" "activeReset"
184static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT69,11,_OMC_LIT69_data)struct { mmc_uint_t header; const char data[(11)+1]; } _OMC_LIT_STRUCT69
= { ((((mmc_uint_t)11)<<(3))+((1<<(3+3))+5)), "activeReset"
}
;
185#define _OMC_LIT69((void*)((char*)(&(_OMC_LIT_STRUCT69).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT69)((void*)((char*)(&(_OMC_LIT_STRUCT69).header) + 3))
186#define _OMC_LIT70_data"nextState" "nextState"
187static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT70,9,_OMC_LIT70_data)struct { mmc_uint_t header; const char data[(9)+1]; } _OMC_LIT_STRUCT70
= { ((((mmc_uint_t)9)<<(3))+((1<<(3+3))+5)), "nextState"
}
;
188#define _OMC_LIT70((void*)((char*)(&(_OMC_LIT_STRUCT70).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT70)((void*)((char*)(&(_OMC_LIT_STRUCT70).header) + 3))
189static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT71,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT71
= { (((2) << 10) + (((3) & 255) << 2)),
{&DAE_Exp_ICONST__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0)))}};
190#define _OMC_LIT71((void*)((char*)(&(_OMC_LIT_STRUCT71).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT71)((void*)((char*)(&(_OMC_LIT_STRUCT71).header) + 3))
191#define _OMC_LIT72_data"nextReset" "nextReset"
192static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT72,9,_OMC_LIT72_data)struct { mmc_uint_t header; const char data[(9)+1]; } _OMC_LIT_STRUCT72
= { ((((mmc_uint_t)9)<<(3))+((1<<(3+3))+5)), "nextReset"
}
;
193#define _OMC_LIT72((void*)((char*)(&(_OMC_LIT_STRUCT72).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT72)((void*)((char*)(&(_OMC_LIT_STRUCT72).header) + 3))
194#define _OMC_LIT73_data"activeResetStates" "activeResetStates"
195static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT73,17,_OMC_LIT73_data)struct { mmc_uint_t header; const char data[(17)+1]; } _OMC_LIT_STRUCT73
= { ((((mmc_uint_t)17)<<(3))+((1<<(3+3))+5)), "activeResetStates"
}
;
196#define _OMC_LIT73((void*)((char*)(&(_OMC_LIT_STRUCT73).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT73)((void*)((char*)(&(_OMC_LIT_STRUCT73).header) + 3))
197#define _OMC_LIT74_data"nextResetStates" "nextResetStates"
198static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT74,15,_OMC_LIT74_data)struct { mmc_uint_t header; const char data[(15)+1]; } _OMC_LIT_STRUCT74
= { ((((mmc_uint_t)15)<<(3))+((1<<(3+3))+5)), "nextResetStates"
}
;
199#define _OMC_LIT74((void*)((char*)(&(_OMC_LIT_STRUCT74).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT74)((void*)((char*)(&(_OMC_LIT_STRUCT74).header) + 3))
200#define _OMC_LIT75_data"finalStates" "finalStates"
201static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT75,11,_OMC_LIT75_data)struct { mmc_uint_t header; const char data[(11)+1]; } _OMC_LIT_STRUCT75
= { ((((mmc_uint_t)11)<<(3))+((1<<(3+3))+5)), "finalStates"
}
;
202#define _OMC_LIT75((void*)((char*)(&(_OMC_LIT_STRUCT75).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT75)((void*)((char*)(&(_OMC_LIT_STRUCT75).header) + 3))
203#define _OMC_LIT76_data"stateMachineInFinalState" "stateMachineInFinalState"
204static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT76,24,_OMC_LIT76_data)struct { mmc_uint_t header; const char data[(24)+1]; } _OMC_LIT_STRUCT76
= { ((((mmc_uint_t)24)<<(3))+((1<<(3+3))+5)), "stateMachineInFinalState"
}
;
205#define _OMC_LIT76((void*)((char*)(&(_OMC_LIT_STRUCT76).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT76)((void*)((char*)(&(_OMC_LIT_STRUCT76).header) + 3))
206static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT77,2,6)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT77
= { (((2) << 10) + (((6) & 255) << 2)),
{&DAE_Exp_BCONST__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0)))}};
207#define _OMC_LIT77((void*)((char*)(&(_OMC_LIT_STRUCT77).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT77)((void*)((char*)(&(_OMC_LIT_STRUCT77).header) + 3))
208static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT78,2,4)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT78
= { (((2) << 10) + (((4) & 255) << 2)),
{&Absyn_Path_IDENT__desc,_OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3))}};
209#define _OMC_LIT78((void*)((char*)(&(_OMC_LIT_STRUCT78).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT78)((void*)((char*)(&(_OMC_LIT_STRUCT78).header) + 3))
210static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT79,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT79
= { (((2) << 10) + (((3) & 255) << 2)),
{&DAE_Exp_ICONST__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0)))}};
211#define _OMC_LIT79((void*)((char*)(&(_OMC_LIT_STRUCT79).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT79)((void*)((char*)(&(_OMC_LIT_STRUCT79).header) + 3))
212static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT80,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT80
= { (((8) << 10) + (((3) & 255) << 2)),
{&DAE_CallAttributes_CALL__ATTR__desc,_OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)),_OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))}};
213#define _OMC_LIT80((void*)((char*)(&(_OMC_LIT_STRUCT80).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT80)((void*)((char*)(&(_OMC_LIT_STRUCT80).header) + 3))
214static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT81,2,32)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT81
= { (((2) << 10) + (((32) & 255) << 2)),
{&DAE_Operator_EQUAL__desc,_OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3))}};
215#define _OMC_LIT81((void*)((char*)(&(_OMC_LIT_STRUCT81).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT81)((void*)((char*)(&(_OMC_LIT_STRUCT81).header) + 3))
216#define _OMC_LIT82_data"max" "max"
217static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT82,3,_OMC_LIT82_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT82
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "max"
}
;
218#define _OMC_LIT82((void*)((char*)(&(_OMC_LIT_STRUCT82).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT82)((void*)((char*)(&(_OMC_LIT_STRUCT82).header) + 3))
219static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT83,2,4)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT83
= { (((2) << 10) + (((4) & 255) << 2)),
{&Absyn_Path_IDENT__desc,_OMC_LIT82((void*)((char*)(&(_OMC_LIT_STRUCT82).header) + 3))}};
220#define _OMC_LIT83((void*)((char*)(&(_OMC_LIT_STRUCT83).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT83)((void*)((char*)(&(_OMC_LIT_STRUCT83).header) + 3))
221static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT84,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT84
= { (((8) << 10) + (((3) & 255) << 2)),
{&DAE_CallAttributes_CALL__ATTR__desc,_OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)),_OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))}};
222#define _OMC_LIT84((void*)((char*)(&(_OMC_LIT_STRUCT84).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT84)((void*)((char*)(&(_OMC_LIT_STRUCT84).header) + 3))
223static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT85,2,30)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT85
= { (((2) << 10) + (((30) & 255) << 2)),
{&DAE_Operator_GREATER__desc,_OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3))}};
224#define _OMC_LIT85((void*)((char*)(&(_OMC_LIT_STRUCT85).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT85)((void*)((char*)(&(_OMC_LIT_STRUCT85).header) + 3))
225static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT86,1,1)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT86
= { (((1) << 10) + (((1) & 255) << 2)),
{_OMC_LIT77((void*)((char*)(&(_OMC_LIT_STRUCT77).header) + 3))}};
226#define _OMC_LIT86((void*)((char*)(&(_OMC_LIT_STRUCT86).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT86)((void*)((char*)(&(_OMC_LIT_STRUCT86).header) + 3))
227static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT87,2,25)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT87
= { (((2) << 10) + (((25) & 255) << 2)),
{&DAE_Operator_AND__desc,_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3))}};
228#define _OMC_LIT87((void*)((char*)(&(_OMC_LIT_STRUCT87).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT87)((void*)((char*)(&(_OMC_LIT_STRUCT87).header) + 3))
229#define _OMC_LIT88_data"$ticksInState" "$ticksInState"
230static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT88,13,_OMC_LIT88_data)struct { mmc_uint_t header; const char data[(13)+1]; } _OMC_LIT_STRUCT88
= { ((((mmc_uint_t)13)<<(3))+((1<<(3+3))+5)), "$ticksInState"
}
;
231#define _OMC_LIT88((void*)((char*)(&(_OMC_LIT_STRUCT88).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT88)((void*)((char*)(&(_OMC_LIT_STRUCT88).header) + 3))
232static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT89,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT89
= { (((2) << 10) + (((3) & 255) << 2)),
{&DAE_Operator_ADD__desc,_OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3))}};
233#define _OMC_LIT89((void*)((char*)(&(_OMC_LIT_STRUCT89).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT89)((void*)((char*)(&(_OMC_LIT_STRUCT89).header) + 3))
234#define _OMC_LIT90_data"$timeEnteredState" "$timeEnteredState"
235static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT90,17,_OMC_LIT90_data)struct { mmc_uint_t header; const char data[(17)+1]; } _OMC_LIT_STRUCT90
= { ((((mmc_uint_t)17)<<(3))+((1<<(3+3))+5)), "$timeEnteredState"
}
;
236#define _OMC_LIT90((void*)((char*)(&(_OMC_LIT_STRUCT90).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT90)((void*)((char*)(&(_OMC_LIT_STRUCT90).header) + 3))
237static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT91,2,4)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT91
= { (((2) << 10) + (((4) & 255) << 2)),
{&DAE_Type_T__REAL__desc,MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
238#define _OMC_LIT91((void*)((char*)(&(_OMC_LIT_STRUCT91).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT91)((void*)((char*)(&(_OMC_LIT_STRUCT91).header) + 3))
239static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT92,2,4)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT92
= { (((2) << 10) + (((4) & 255) << 2)),
{&DAE_Exp_RCONST__desc,_OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3))}};
240#define _OMC_LIT92((void*)((char*)(&(_OMC_LIT_STRUCT92).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT92)((void*)((char*)(&(_OMC_LIT_STRUCT92).header) + 3))
241static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT93,2,32)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT93
= { (((2) << 10) + (((32) & 255) << 2)),
{&DAE_Operator_EQUAL__desc,_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3))}};
242#define _OMC_LIT93((void*)((char*)(&(_OMC_LIT_STRUCT93).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT93)((void*)((char*)(&(_OMC_LIT_STRUCT93).header) + 3))
243#define _OMC_LIT94_data"time" "time"
244static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT94,4,_OMC_LIT94_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT94
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), "time"
}
;
245#define _OMC_LIT94((void*)((char*)(&(_OMC_LIT_STRUCT94).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT94)((void*)((char*)(&(_OMC_LIT_STRUCT94).header) + 3))
246static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT95,4,4)struct { mmc_uint_t header; const void *data[4]; } _OMC_LIT_STRUCT95
= { (((4) << 10) + (((4) & 255) << 2)),
{&DAE_ComponentRef_CREF__IDENT__desc,_OMC_LIT94((void*)((char*)(&(_OMC_LIT_STRUCT94).header) + 3)),_OMC_LIT91((void*)((char*)(&(_OMC_LIT_STRUCT91).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
247#define _OMC_LIT95((void*)((char*)(&(_OMC_LIT_STRUCT95).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT95)((void*)((char*)(&(_OMC_LIT_STRUCT95).header) + 3))
248static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT96,3,9)struct { mmc_uint_t header; const void *data[3]; } _OMC_LIT_STRUCT96
= { (((3) << 10) + (((9) & 255) << 2)),
{&DAE_Exp_CREF__desc,_OMC_LIT95((void*)((char*)(&(_OMC_LIT_STRUCT95).header) + 3)),_OMC_LIT91((void*)((char*)(&(_OMC_LIT_STRUCT91).header) + 3))}};
249#define _OMC_LIT96((void*)((char*)(&(_OMC_LIT_STRUCT96).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT96)((void*)((char*)(&(_OMC_LIT_STRUCT96).header) + 3))
250static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT97,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT97
= { (((1) << 10) + (((3) & 255) << 2)),
{&DAE_ClockKind_INFERRED__CLOCK__desc,}};
251#define _OMC_LIT97((void*)((char*)(&(_OMC_LIT_STRUCT97).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT97)((void*)((char*)(&(_OMC_LIT_STRUCT97).header) + 3))
252static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT98,2,7)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT98
= { (((2) << 10) + (((7) & 255) << 2)),
{&DAE_Exp_CLKCONST__desc,_OMC_LIT97((void*)((char*)(&(_OMC_LIT_STRUCT97).header) + 3))}};
253#define _OMC_LIT98((void*)((char*)(&(_OMC_LIT_STRUCT98).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT98)((void*)((char*)(&(_OMC_LIT_STRUCT98).header) + 3))
254static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT99,2,1)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT99
= { (((2) << 10) + (((1) & 255) << 2)),
{_OMC_LIT98((void*)((char*)(&(_OMC_LIT_STRUCT98).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
255#define _OMC_LIT99((void*)((char*)(&(_OMC_LIT_STRUCT99).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT99)((void*)((char*)(&(_OMC_LIT_STRUCT99).header) + 3))
256static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT100,2,1)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT100
= { (((2) << 10) + (((1) & 255) << 2)),
{_OMC_LIT96((void*)((char*)(&(_OMC_LIT_STRUCT96).header) + 3)),_OMC_LIT99((void*)((char*)(&(_OMC_LIT_STRUCT99).header) + 3))}};
257#define _OMC_LIT100((void*)((char*)(&(_OMC_LIT_STRUCT100).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT100)((void*)((char*)(&(_OMC_LIT_STRUCT100).header) + 3))
258static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT101,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT101
= { (((8) << 10) + (((3) & 255) << 2)),
{&DAE_CallAttributes_CALL__ATTR__desc,_OMC_LIT91((void*)((char*)(&(_OMC_LIT_STRUCT91).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)),_OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))}};
259#define _OMC_LIT101((void*)((char*)(&(_OMC_LIT_STRUCT101).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT101)((void*)((char*)(&(_OMC_LIT_STRUCT101).header) + 3))
260static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT102,4,16)struct { mmc_uint_t header; const void *data[4]; } _OMC_LIT_STRUCT102
= { (((4) << 10) + (((16) & 255) << 2)),
{&DAE_Exp_CALL__desc,_OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)),_OMC_LIT100((void*)((char*)(&(_OMC_LIT_STRUCT100).header) + 3)),_OMC_LIT101((void*)((char*)(&(_OMC_LIT_STRUCT101).header) + 3))}};
261#define _OMC_LIT102((void*)((char*)(&(_OMC_LIT_STRUCT102).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT102)((void*)((char*)(&(_OMC_LIT_STRUCT102).header) + 3))
262#define _OMC_LIT103_data"$timeInState" "$timeInState"
263static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT103,12,_OMC_LIT103_data)struct { mmc_uint_t header; const char data[(12)+1]; } _OMC_LIT_STRUCT103
= { ((((mmc_uint_t)12)<<(3))+((1<<(3+3))+5)), "$timeInState"
}
;
264#define _OMC_LIT103((void*)((char*)(&(_OMC_LIT_STRUCT103).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT103)((void*)((char*)(&(_OMC_LIT_STRUCT103).header) + 3))
265static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT104,2,4)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT104
= { (((2) << 10) + (((4) & 255) << 2)),
{&DAE_Operator_SUB__desc,_OMC_LIT91((void*)((char*)(&(_OMC_LIT_STRUCT91).header) + 3))}};
266#define _OMC_LIT104((void*)((char*)(&(_OMC_LIT_STRUCT104).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT104)((void*)((char*)(&(_OMC_LIT_STRUCT104).header) + 3))
267static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT105,2,26)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT105
= { (((2) << 10) + (((26) & 255) << 2)),
{&DAE_Operator_OR__desc,_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3))}};
268#define _OMC_LIT105((void*)((char*)(&(_OMC_LIT_STRUCT105).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT105)((void*)((char*)(&(_OMC_LIT_STRUCT105).header) + 3))
269#define _OMC_LIT106_data"init" "init"
270static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT106,4,_OMC_LIT106_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT106
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), "init"
}
;
271#define _OMC_LIT106((void*)((char*)(&(_OMC_LIT_STRUCT106).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT106)((void*)((char*)(&(_OMC_LIT_STRUCT106).header) + 3))
272#define _OMC_LIT107_data"_previous" "_previous"
273static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT107,9,_OMC_LIT107_data)struct { mmc_uint_t header; const char data[(9)+1]; } _OMC_LIT_STRUCT107
= { ((((mmc_uint_t)9)<<(3))+((1<<(3+3))+5)), "_previous"
}
;
274#define _OMC_LIT107((void*)((char*)(&(_OMC_LIT_STRUCT107).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT107)((void*)((char*)(&(_OMC_LIT_STRUCT107).header) + 3))
275#define _OMC_LIT108_data"StateMachineFlatten.traversingSubsPreviousCref: cr: " "StateMachineFlatten.traversingSubsPreviousCref: cr: "
276static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT108,52,_OMC_LIT108_data)struct { mmc_uint_t header; const char data[(52)+1]; } _OMC_LIT_STRUCT108
= { ((((mmc_uint_t)52)<<(3))+((1<<(3+3))+5)), "StateMachineFlatten.traversingSubsPreviousCref: cr: "
}
;
277#define _OMC_LIT108((void*)((char*)(&(_OMC_LIT_STRUCT108).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT108)((void*)((char*)(&(_OMC_LIT_STRUCT108).header) + 3))
278#define _OMC_LIT109_data", cref: " ", cref: "
279static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT109,8,_OMC_LIT109_data)struct { mmc_uint_t header; const char data[(8)+1]; } _OMC_LIT_STRUCT109
= { ((((mmc_uint_t)8)<<(3))+((1<<(3+3))+5)), ", cref: "
}
;
280#define _OMC_LIT109((void*)((char*)(&(_OMC_LIT_STRUCT109).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT109)((void*)((char*)(&(_OMC_LIT_STRUCT109).header) + 3))
281#define _OMC_LIT110_data"\n" "\n"
282static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT110,1,_OMC_LIT110_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT110
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "\n"
}
;
283#define _OMC_LIT110((void*)((char*)(&(_OMC_LIT_STRUCT110).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT110)((void*)((char*)(&(_OMC_LIT_STRUCT110).header) + 3))
284#define _OMC_LIT111_data"The LHS of equations in state machines needs to be a component reference, e.g., x = .., or its derivative, e.g., der(x) = .." "The LHS of equations in state machines needs to be a component reference, e.g., x = .., or its derivative, e.g., der(x) = .."
285static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT111,124,_OMC_LIT111_data)struct { mmc_uint_t header; const char data[(124)+1]; } _OMC_LIT_STRUCT111
= { ((((mmc_uint_t)124)<<(3))+((1<<(3+3))+5)), "The LHS of equations in state machines needs to be a component reference, e.g., x = .., or its derivative, e.g., der(x) = .."
}
;
286#define _OMC_LIT111((void*)((char*)(&(_OMC_LIT_STRUCT111).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT111)((void*)((char*)(&(_OMC_LIT_STRUCT111).header) + 3))
287#define _OMC_LIT112_data"The LHS of equations in state machines needs to be a component reference" "The LHS of equations in state machines needs to be a component reference"
288static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT112,72,_OMC_LIT112_data)struct { mmc_uint_t header; const char data[(72)+1]; } _OMC_LIT_STRUCT112
= { ((((mmc_uint_t)72)<<(3))+((1<<(3+3))+5)), "The LHS of equations in state machines needs to be a component reference"
}
;
289#define _OMC_LIT112((void*)((char*)(&(_OMC_LIT_STRUCT112).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT112)((void*)((char*)(&(_OMC_LIT_STRUCT112).header) + 3))
290#define _OMC_LIT113_data"Variable " "Variable "
291static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT113,9,_OMC_LIT113_data)struct { mmc_uint_t header; const char data[(9)+1]; } _OMC_LIT_STRUCT113
= { ((((mmc_uint_t)9)<<(3))+((1<<(3+3))+5)), "Variable "
}
;
292#define _OMC_LIT113((void*)((char*)(&(_OMC_LIT_STRUCT113).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT113)((void*)((char*)(&(_OMC_LIT_STRUCT113).header) + 3))
293#define _OMC_LIT114_data" lacks start value. Defaulting to start=0.\n" " lacks start value. Defaulting to start=0.\n"
294static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT114,43,_OMC_LIT114_data)struct { mmc_uint_t header; const char data[(43)+1]; } _OMC_LIT_STRUCT114
= { ((((mmc_uint_t)43)<<(3))+((1<<(3+3))+5)), " lacks start value. Defaulting to start=0.\n"
}
;
295#define _OMC_LIT114((void*)((char*)(&(_OMC_LIT_STRUCT114).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT114)((void*)((char*)(&(_OMC_LIT_STRUCT114).header) + 3))
296#define _OMC_LIT115_data" lacks start value. Defaulting to start=false.\n" " lacks start value. Defaulting to start=false.\n"
297static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT115,47,_OMC_LIT115_data)struct { mmc_uint_t header; const char data[(47)+1]; } _OMC_LIT_STRUCT115
= { ((((mmc_uint_t)47)<<(3))+((1<<(3+3))+5)), " lacks start value. Defaulting to start=false.\n"
}
;
298#define _OMC_LIT115((void*)((char*)(&(_OMC_LIT_STRUCT115).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT115)((void*)((char*)(&(_OMC_LIT_STRUCT115).header) + 3))
299#define _OMC_LIT116_data" lacks start value. Defaulting to start=\"\".\n" " lacks start value. Defaulting to start=\"\".\n"
300static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT116,44,_OMC_LIT116_data)struct { mmc_uint_t header; const char data[(44)+1]; } _OMC_LIT_STRUCT116
= { ((((mmc_uint_t)44)<<(3))+((1<<(3+3))+5)), " lacks start value. Defaulting to start=\"\".\n"
}
;
301#define _OMC_LIT116((void*)((char*)(&(_OMC_LIT_STRUCT116).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT116)((void*)((char*)(&(_OMC_LIT_STRUCT116).header) + 3))
302static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT117,2,5)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT117
= { (((2) << 10) + (((5) & 255) << 2)),
{&DAE_Exp_SCONST__desc,_OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3))}};
303#define _OMC_LIT117((void*)((char*)(&(_OMC_LIT_STRUCT117).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT117)((void*)((char*)(&(_OMC_LIT_STRUCT117).header) + 3))
304#define _OMC_LIT118_data" lacks start value.\n" " lacks start value.\n"
305static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT118,20,_OMC_LIT118_data)struct { mmc_uint_t header; const char data[(20)+1]; } _OMC_LIT_STRUCT118
= { ((((mmc_uint_t)20)<<(3))+((1<<(3+3))+5)), " lacks start value.\n"
}
;
306#define _OMC_LIT118((void*)((char*)(&(_OMC_LIT_STRUCT118).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT118)((void*)((char*)(&(_OMC_LIT_STRUCT118).header) + 3))
307#define _OMC_LIT119_data"Encountered elsewhen part in a when clause of a clocked state machine.\n" "Encountered elsewhen part in a when clause of a clocked state machine.\n"
308static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT119,71,_OMC_LIT119_data)struct { mmc_uint_t header; const char data[(71)+1]; } _OMC_LIT_STRUCT119
= { ((((mmc_uint_t)71)<<(3))+((1<<(3+3))+5)), "Encountered elsewhen part in a when clause of a clocked state machine.\n"
}
;
309#define _OMC_LIT119((void*)((char*)(&(_OMC_LIT_STRUCT119).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT119)((void*)((char*)(&(_OMC_LIT_STRUCT119).header) + 3))
310#define _OMC_LIT120_data"Internal compiler error: StateMachineFlatten.isPreviousAppliedToVar(..) called with unexpected argument.\n" "Internal compiler error: StateMachineFlatten.isPreviousAppliedToVar(..) called with unexpected argument.\n"
311static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT120,105,_OMC_LIT120_data)struct { mmc_uint_t header; const char data[(105)+1]; } _OMC_LIT_STRUCT120
= { ((((mmc_uint_t)105)<<(3))+((1<<(3+3))+5)), "Internal compiler error: StateMachineFlatten.isPreviousAppliedToVar(..) called with unexpected argument.\n"
}
;
312#define _OMC_LIT120((void*)((char*)(&(_OMC_LIT_STRUCT120).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT120)((void*)((char*)(&(_OMC_LIT_STRUCT120).header) + 3))
313#define _OMC_LIT121_data"Internal compiler error: StateMachineFlatten.isVarAtLHS(..) called with unexpected argument.\n" "Internal compiler error: StateMachineFlatten.isVarAtLHS(..) called with unexpected argument.\n"
314static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT121,93,_OMC_LIT121_data)struct { mmc_uint_t header; const char data[(93)+1]; } _OMC_LIT_STRUCT121
= { ((((mmc_uint_t)93)<<(3))+((1<<(3+3))+5)), "Internal compiler error: StateMachineFlatten.isVarAtLHS(..) called with unexpected argument.\n"
}
;
315#define _OMC_LIT121((void*)((char*)(&(_OMC_LIT_STRUCT121).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT121)((void*)((char*)(&(_OMC_LIT_STRUCT121).header) + 3))
316#define _OMC_LIT122_data"Couldn't find variable declaration matching to cref " "Couldn't find variable declaration matching to cref "
317static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT122,52,_OMC_LIT122_data)struct { mmc_uint_t header; const char data[(52)+1]; } _OMC_LIT_STRUCT122
= { ((((mmc_uint_t)52)<<(3))+((1<<(3+3))+5)), "Couldn't find variable declaration matching to cref "
}
;
318#define _OMC_LIT122((void*)((char*)(&(_OMC_LIT_STRUCT122).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT122)((void*)((char*)(&(_OMC_LIT_STRUCT122).header) + 3))
319#define _OMC_LIT123_data"_der$" "_der$"
320static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT123,5,_OMC_LIT123_data)struct { mmc_uint_t header; const char data[(5)+1]; } _OMC_LIT_STRUCT123
= { ((((mmc_uint_t)5)<<(3))+((1<<(3+3))+5)), "_der$"
}
;
321#define _OMC_LIT123((void*)((char*)(&(_OMC_LIT_STRUCT123).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT123)((void*)((char*)(&(_OMC_LIT_STRUCT123).header) + 3))
322static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT124,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT124
= { (((1) << 10) + (((3) & 255) << 2)),
{&DAE_VarKind_VARIABLE__desc,}};
323#define _OMC_LIT124((void*)((char*)(&(_OMC_LIT_STRUCT124).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT124)((void*)((char*)(&(_OMC_LIT_STRUCT124).header) + 3))
324#define _OMC_LIT125_data"Currently, only equations in state machines with a LHS component reference, e.g., x=.., are supported" "Currently, only equations in state machines with a LHS component reference, e.g., x=.., are supported"
325static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT125,101,_OMC_LIT125_data)struct { mmc_uint_t header; const char data[(101)+1]; } _OMC_LIT_STRUCT125
= { ((((mmc_uint_t)101)<<(3))+((1<<(3+3))+5)), "Currently, only equations in state machines with a LHS component reference, e.g., x=.., are supported"
}
;
326#define _OMC_LIT125((void*)((char*)(&(_OMC_LIT_STRUCT125).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT125)((void*)((char*)(&(_OMC_LIT_STRUCT125).header) + 3))
327#define _OMC_LIT126_data"Currently, only equations in state machines with a LHS component reference, e.g., x=.., or its derivative, e.g., der(x)=.., are supported" "Currently, only equations in state machines with a LHS component reference, e.g., x=.., or its derivative, e.g., der(x)=.., are supported"
328static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT126,137,_OMC_LIT126_data)struct { mmc_uint_t header; const char data[(137)+1]; } _OMC_LIT_STRUCT126
= { ((((mmc_uint_t)137)<<(3))+((1<<(3+3))+5)), "Currently, only equations in state machines with a LHS component reference, e.g., x=.., or its derivative, e.g., der(x)=.., are supported"
}
;
329#define _OMC_LIT126((void*)((char*)(&(_OMC_LIT_STRUCT126).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT126)((void*)((char*)(&(_OMC_LIT_STRUCT126).header) + 3))
330static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT127,2,0)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT127
= { (((2) << 10) + (((0) & 255) << 2)),
{MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
331#define _OMC_LIT127((void*)((char*)(&(_OMC_LIT_STRUCT127).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT127)((void*)((char*)(&(_OMC_LIT_STRUCT127).header) + 3))
332#define _OMC_LIT128_data"Internal compiler error: StateMachineFlatten.addStateActivationAndReset(..) called with unexpected argument.\n" "Internal compiler error: StateMachineFlatten.addStateActivationAndReset(..) called with unexpected argument.\n"
333static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT128,109,_OMC_LIT128_data)struct { mmc_uint_t header; const char data[(109)+1]; } _OMC_LIT_STRUCT128
= { ((((mmc_uint_t)109)<<(3))+((1<<(3+3))+5)), "Internal compiler error: StateMachineFlatten.addStateActivationAndReset(..) called with unexpected argument.\n"
}
;
334#define _OMC_LIT128((void*)((char*)(&(_OMC_LIT_STRUCT128).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT128)((void*)((char*)(&(_OMC_LIT_STRUCT128).header) + 3))
335#define _OMC_LIT129_data"ticksInState" "ticksInState"
336static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT129,12,_OMC_LIT129_data)struct { mmc_uint_t header; const char data[(12)+1]; } _OMC_LIT_STRUCT129
= { ((((mmc_uint_t)12)<<(3))+((1<<(3+3))+5)), "ticksInState"
}
;
337#define _OMC_LIT129((void*)((char*)(&(_OMC_LIT_STRUCT129).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT129)((void*)((char*)(&(_OMC_LIT_STRUCT129).header) + 3))
338#define _OMC_LIT130_data"Found 'ticksInState()' within a state of an hierarchical state machine." "Found 'ticksInState()' within a state of an hierarchical state machine."
339static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT130,71,_OMC_LIT130_data)struct { mmc_uint_t header; const char data[(71)+1]; } _OMC_LIT_STRUCT130
= { ((((mmc_uint_t)71)<<(3))+((1<<(3+3))+5)), "Found 'ticksInState()' within a state of an hierarchical state machine."
}
;
340#define _OMC_LIT130((void*)((char*)(&(_OMC_LIT_STRUCT130).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT130)((void*)((char*)(&(_OMC_LIT_STRUCT130).header) + 3))
341#define _OMC_LIT131_data"timeInState" "timeInState"
342static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT131,11,_OMC_LIT131_data)struct { mmc_uint_t header; const char data[(11)+1]; } _OMC_LIT_STRUCT131
= { ((((mmc_uint_t)11)<<(3))+((1<<(3+3))+5)), "timeInState"
}
;
343#define _OMC_LIT131((void*)((char*)(&(_OMC_LIT_STRUCT131).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT131)((void*)((char*)(&(_OMC_LIT_STRUCT131).header) + 3))
344#define _OMC_LIT132_data"Found 'timeInState()' within a state of an hierarchical state machine." "Found 'timeInState()' within a state of an hierarchical state machine."
345static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT132,70,_OMC_LIT132_data)struct { mmc_uint_t header; const char data[(70)+1]; } _OMC_LIT_STRUCT132
= { ((((mmc_uint_t)70)<<(3))+((1<<(3+3))+5)), "Found 'timeInState()' within a state of an hierarchical state machine."
}
;
346#define _OMC_LIT132((void*)((char*)(&(_OMC_LIT_STRUCT132).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT132)((void*)((char*)(&(_OMC_LIT_STRUCT132).header) + 3))
347static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT133,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT133
= { (((1) << 10) + (((5) & 255) << 2)),
{&DAE_AvlTreePathFunction_Tree_EMPTY__desc,}};
348#define _OMC_LIT133((void*)((char*)(&(_OMC_LIT_STRUCT133).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT133)((void*)((char*)(&(_OMC_LIT_STRUCT133).header) + 3))
349#define _OMC_LIT134_data"Internal compiler error. Unexpected elements in flat state machine." "Internal compiler error. Unexpected elements in flat state machine."
350static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT134,67,_OMC_LIT134_data)struct { mmc_uint_t header; const char data[(67)+1]; } _OMC_LIT_STRUCT134
= { ((((mmc_uint_t)67)<<(3))+((1<<(3+3))+5)), "Internal compiler error. Unexpected elements in flat state machine."
}
;
351#define _OMC_LIT134((void*)((char*)(&(_OMC_LIT_STRUCT134).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT134)((void*)((char*)(&(_OMC_LIT_STRUCT134).header) + 3))
352#define _OMC_LIT135_data"Internal compiler error: Handling of elementLst != 1 not supported\n" "Internal compiler error: Handling of elementLst != 1 not supported\n"
353static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT135,67,_OMC_LIT135_data)struct { mmc_uint_t header; const char data[(67)+1]; } _OMC_LIT_STRUCT135
= { ((((mmc_uint_t)67)<<(3))+((1<<(3+3))+5)), "Internal compiler error: Handling of elementLst != 1 not supported\n"
}
;
354#define _OMC_LIT135((void*)((char*)(&(_OMC_LIT_STRUCT135).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT135)((void*)((char*)(&(_OMC_LIT_STRUCT135).header) + 3))
355#include "util/modelica.h"
356
357#include "StateMachineFlatten_includes.h"
358
359
360/* default, do not make protected functions static */
361#if !defined(PROTECTED_FUNCTION_STATIC)
362#define PROTECTED_FUNCTION_STATIC
363#endif
364PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_traversingSubsXForSampleX(threadData_t *threadData, modelica_metatype _inExp, modelica_integer _inHitCount, modelica_integer *out_outHitCount);
365PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_traversingSubsXForSampleX(threadData_t *threadData, modelica_metatype _inExp, modelica_metatype _inHitCount, modelica_metatype *out_outHitCount);
366static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_traversingSubsXForSampleX,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_traversingSubsXForSampleX
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_traversingSubsXForSampleX,0}};
367#define boxvar_StateMachineFlatten_traversingSubsXForSampleX((void*)((char*)(&(boxvar_lit_StateMachineFlatten_traversingSubsXForSampleX
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_traversingSubsXForSampleX)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_traversingSubsXForSampleX
).header) + 3))
368PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_traversingSubsPreForPrevious(threadData_t *threadData, modelica_metatype _inExp, modelica_integer _inHitCount, modelica_integer *out_outHitCount);
369PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_traversingSubsPreForPrevious(threadData_t *threadData, modelica_metatype _inExp, modelica_metatype _inHitCount, modelica_metatype *out_outHitCount);
370static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_traversingSubsPreForPrevious,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_traversingSubsPreForPrevious
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_traversingSubsPreForPrevious,0}};
371#define boxvar_StateMachineFlatten_traversingSubsPreForPrevious((void*)((char*)(&(boxvar_lit_StateMachineFlatten_traversingSubsPreForPrevious
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_traversingSubsPreForPrevious)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_traversingSubsPreForPrevious
).header) + 3))
372PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_extractSmOfExps(threadData_t *threadData, modelica_metatype _inElem, modelica_string _inLastIdent);
373static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_extractSmOfExps,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_extractSmOfExps
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_extractSmOfExpsomc_StateMachineFlatten_extractSmOfExps,0}};
374#define boxvar_StateMachineFlatten_extractSmOfExps((void*)((char*)(&(boxvar_lit_StateMachineFlatten_extractSmOfExps
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_extractSmOfExps)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_extractSmOfExps
).header) + 3))
375PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_wrapHack(threadData_t *threadData, modelica_metatype _cache, modelica_metatype _inElementLst);
376static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_wrapHack,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_wrapHack
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_wrapHackomc_StateMachineFlatten_wrapHack,0}};
377#define boxvar_StateMachineFlatten_wrapHack((void*)((char*)(&(boxvar_lit_StateMachineFlatten_wrapHack
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_wrapHack)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_wrapHack
).header) + 3))
378PROTECTED_FUNCTION_STATIC modelica_boolean omc_StateMachineFlatten_sMCompEqualsRef(threadData_t *threadData, modelica_metatype _inElement, modelica_metatype _inCref);
379PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_sMCompEqualsRef(threadData_t *threadData, modelica_metatype _inElement, modelica_metatype _inCref);
380static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_sMCompEqualsRef,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_sMCompEqualsRef
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_sMCompEqualsRef,0}};
381#define boxvar_StateMachineFlatten_sMCompEqualsRef((void*)((char*)(&(boxvar_lit_StateMachineFlatten_sMCompEqualsRef
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_sMCompEqualsRef)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_sMCompEqualsRef
).header) + 3))
382PROTECTED_FUNCTION_STATIC modelica_boolean omc_StateMachineFlatten_isVar(threadData_t *threadData, modelica_metatype _inElement);
383PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_isVar(threadData_t *threadData, modelica_metatype _inElement);
384static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_isVar,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_isVar
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_isVar,0}};
385#define boxvar_StateMachineFlatten_isVar((void*)((char*)(&(boxvar_lit_StateMachineFlatten_isVar).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_isVar)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_isVar).
header) + 3))
386PROTECTED_FUNCTION_STATIC modelica_boolean omc_StateMachineFlatten_isPreOrPreviousEquation(threadData_t *threadData, modelica_metatype _inElement);
387PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_isPreOrPreviousEquation(threadData_t *threadData, modelica_metatype _inElement);
388static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_isPreOrPreviousEquation,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_isPreOrPreviousEquation
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_isPreOrPreviousEquation,0}};
389#define boxvar_StateMachineFlatten_isPreOrPreviousEquation((void*)((char*)(&(boxvar_lit_StateMachineFlatten_isPreOrPreviousEquation
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_isPreOrPreviousEquation)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_isPreOrPreviousEquation
).header) + 3))
390PROTECTED_FUNCTION_STATIC modelica_boolean omc_StateMachineFlatten_isEquationOrWhenEquation(threadData_t *threadData, modelica_metatype _inElement);
391PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_isEquationOrWhenEquation(threadData_t *threadData, modelica_metatype _inElement);
392static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_isEquationOrWhenEquation,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_isEquationOrWhenEquation
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_isEquationOrWhenEquation,0}};
393#define boxvar_StateMachineFlatten_isEquationOrWhenEquation((void*)((char*)(&(boxvar_lit_StateMachineFlatten_isEquationOrWhenEquation
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_isEquationOrWhenEquation)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_isEquationOrWhenEquation
).header) + 3))
394PROTECTED_FUNCTION_STATIC modelica_boolean omc_StateMachineFlatten_isEquation(threadData_t *threadData, modelica_metatype _inElement);
395PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_isEquation(threadData_t *threadData, modelica_metatype _inElement);
396static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_isEquation,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_isEquation
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_isEquation,0}};
397#define boxvar_StateMachineFlatten_isEquation((void*)((char*)(&(boxvar_lit_StateMachineFlatten_isEquation
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_isEquation)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_isEquation
).header) + 3))
398PROTECTED_FUNCTION_STATIC modelica_boolean omc_StateMachineFlatten_isInitialState(threadData_t *threadData, modelica_metatype _inElement);
399PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_isInitialState(threadData_t *threadData, modelica_metatype _inElement);
400static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_isInitialState,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_isInitialState
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_isInitialState,0}};
401#define boxvar_StateMachineFlatten_isInitialState((void*)((char*)(&(boxvar_lit_StateMachineFlatten_isInitialState
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_isInitialState)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_isInitialState
).header) + 3))
402PROTECTED_FUNCTION_STATIC modelica_boolean omc_StateMachineFlatten_isTransition(threadData_t *threadData, modelica_metatype _inElement);
403PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_isTransition(threadData_t *threadData, modelica_metatype _inElement);
404static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_isTransition,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_isTransition
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_isTransition,0}};
405#define boxvar_StateMachineFlatten_isTransition((void*)((char*)(&(boxvar_lit_StateMachineFlatten_isTransition
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_isTransition)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_isTransition
).header) + 3))
406PROTECTED_FUNCTION_STATIC modelica_boolean omc_StateMachineFlatten_isSMComp(threadData_t *threadData, modelica_metatype _inElement);
407PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_isSMComp(threadData_t *threadData, modelica_metatype _inElement);
408static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_isSMComp,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_isSMComp
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_isSMComp,0}};
409#define boxvar_StateMachineFlatten_isSMComp((void*)((char*)(&(boxvar_lit_StateMachineFlatten_isSMComp
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_isSMComp)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_isSMComp
).header) + 3))
410PROTECTED_FUNCTION_STATIC modelica_boolean omc_StateMachineFlatten_isFlatSm(threadData_t *threadData, modelica_metatype _inElement);
411PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_isFlatSm(threadData_t *threadData, modelica_metatype _inElement);
412static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_isFlatSm,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_isFlatSm
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_isFlatSm,0}};
413#define boxvar_StateMachineFlatten_isFlatSm((void*)((char*)(&(boxvar_lit_StateMachineFlatten_isFlatSm
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_isFlatSm)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_isFlatSm
).header) + 3))
414PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_createTransition(threadData_t *threadData, modelica_metatype _transitionElem, modelica_metatype _states);
415static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_createTransition,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_createTransition
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_createTransitionomc_StateMachineFlatten_createTransition,0}};
416#define boxvar_StateMachineFlatten_createTransition((void*)((char*)(&(boxvar_lit_StateMachineFlatten_createTransition
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_createTransition)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_createTransition
).header) + 3))
417PROTECTED_FUNCTION_STATIC modelica_boolean omc_StateMachineFlatten_priorityLt(threadData_t *threadData, modelica_metatype _inTrans1, modelica_metatype _inTrans2);
418PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_priorityLt(threadData_t *threadData, modelica_metatype _inTrans1, modelica_metatype _inTrans2);
419static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_priorityLt,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_priorityLt
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_priorityLt,0}};
420#define boxvar_StateMachineFlatten_priorityLt((void*)((char*)(&(boxvar_lit_StateMachineFlatten_priorityLt
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_priorityLt)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_priorityLt
).header) + 3))
421PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_extractCondtionFromTransition(threadData_t *threadData, modelica_metatype _trans);
422static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_extractCondtionFromTransition,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_extractCondtionFromTransition
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_extractCondtionFromTransitionomc_StateMachineFlatten_extractCondtionFromTransition,0}};
423#define boxvar_StateMachineFlatten_extractCondtionFromTransition((void*)((char*)(&(boxvar_lit_StateMachineFlatten_extractCondtionFromTransition
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_extractCondtionFromTransition)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_extractCondtionFromTransition
).header) + 3))
424PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_createTandC(threadData_t *threadData, modelica_metatype _inSMComps, modelica_metatype _inTransitions, modelica_metatype *out_c);
425static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_createTandC,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_createTandC
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_createTandComc_StateMachineFlatten_createTandC,0}};
426#define boxvar_StateMachineFlatten_createTandC((void*)((char*)(&(boxvar_lit_StateMachineFlatten_createTandC
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_createTandC)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_createTandC
).header) + 3))
427PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_createVarWithStartValue(threadData_t *threadData, modelica_metatype _componentRef, modelica_metatype _kind, modelica_metatype _ty, modelica_metatype _startExp, modelica_metatype _dims);
428static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_createVarWithStartValue,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_createVarWithStartValue
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_createVarWithStartValueomc_StateMachineFlatten_createVarWithStartValue,0}};
429#define boxvar_StateMachineFlatten_createVarWithStartValue((void*)((char*)(&(boxvar_lit_StateMachineFlatten_createVarWithStartValue
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_createVarWithStartValue)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_createVarWithStartValue
).header) + 3))
430PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_createVarWithDefaults(threadData_t *threadData, modelica_metatype _componentRef, modelica_metatype _kind, modelica_metatype _ty, modelica_metatype _dims);
431static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_createVarWithDefaults,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_createVarWithDefaults
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_createVarWithDefaultsomc_StateMachineFlatten_createVarWithDefaults,0}};
432#define boxvar_StateMachineFlatten_createVarWithDefaults((void*)((char*)(&(boxvar_lit_StateMachineFlatten_createVarWithDefaults
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_createVarWithDefaults)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_createVarWithDefaults
).header) + 3))
433PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_qCref(threadData_t *threadData, modelica_string _ident, modelica_metatype _identType, modelica_metatype _subscriptLst, modelica_metatype _componentRef);
434static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_qCref,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_qCref
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_qCrefomc_StateMachineFlatten_qCref,0}};
435#define boxvar_StateMachineFlatten_qCref((void*)((char*)(&(boxvar_lit_StateMachineFlatten_qCref).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_qCref)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_qCref).
header) + 3))
436PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_basicFlatSmSemantics(threadData_t *threadData, modelica_string _ident, modelica_metatype _q, modelica_metatype _inTransitions);
437static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_basicFlatSmSemantics,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_basicFlatSmSemantics
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_basicFlatSmSemanticsomc_StateMachineFlatten_basicFlatSmSemantics,0}};
438#define boxvar_StateMachineFlatten_basicFlatSmSemantics((void*)((char*)(&(boxvar_lit_StateMachineFlatten_basicFlatSmSemantics
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_basicFlatSmSemantics)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_basicFlatSmSemantics
).header) + 3))
439PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_setVarFixedStartValue(threadData_t *threadData, modelica_metatype _inVar, modelica_metatype _inExp);
440static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_setVarFixedStartValue,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_setVarFixedStartValue
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_setVarFixedStartValueomc_StateMachineFlatten_setVarFixedStartValue,0}};
441#define boxvar_StateMachineFlatten_setVarFixedStartValue((void*)((char*)(&(boxvar_lit_StateMachineFlatten_setVarFixedStartValue
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_setVarFixedStartValue)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_setVarFixedStartValue
).header) + 3))
442PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_createActiveIndicator(threadData_t *threadData, modelica_metatype _stateRef, modelica_metatype _preRef, modelica_integer _i, modelica_metatype *out_eqn);
443PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_createActiveIndicator(threadData_t *threadData, modelica_metatype _stateRef, modelica_metatype _preRef, modelica_metatype _i, modelica_metatype *out_eqn);
444static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_createActiveIndicator,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_createActiveIndicator
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_createActiveIndicator,0}};
445#define boxvar_StateMachineFlatten_createActiveIndicator((void*)((char*)(&(boxvar_lit_StateMachineFlatten_createActiveIndicator
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_createActiveIndicator)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_createActiveIndicator
).header) + 3))
446PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_createTicksInStateIndicator(threadData_t *threadData, modelica_metatype _stateRef, modelica_metatype _stateActiveRef, modelica_metatype *out_ticksInStateEqn);
447static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_createTicksInStateIndicator,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_createTicksInStateIndicator
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_createTicksInStateIndicatoromc_StateMachineFlatten_createTicksInStateIndicator,0}};
448#define boxvar_StateMachineFlatten_createTicksInStateIndicator((void*)((char*)(&(boxvar_lit_StateMachineFlatten_createTicksInStateIndicator
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_createTicksInStateIndicator)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_createTicksInStateIndicator
).header) + 3))
449PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_createTimeEnteredStateIndicator(threadData_t *threadData, modelica_metatype _stateRef, modelica_metatype _stateActiveRef, modelica_metatype *out_timeEnteredStateEqn);
450static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_createTimeEnteredStateIndicator,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_createTimeEnteredStateIndicator
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_createTimeEnteredStateIndicatoromc_StateMachineFlatten_createTimeEnteredStateIndicator,0}};
451#define boxvar_StateMachineFlatten_createTimeEnteredStateIndicator((void*)((char*)(&(boxvar_lit_StateMachineFlatten_createTimeEnteredStateIndicator
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_createTimeEnteredStateIndicator)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_createTimeEnteredStateIndicator
).header) + 3))
452PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_createTimeInStateIndicator(threadData_t *threadData, modelica_metatype _stateRef, modelica_metatype _stateActiveRef, modelica_metatype _timeEnteredStateVar, modelica_metatype *out_timeInStateEqn);
453static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_createTimeInStateIndicator,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_createTimeInStateIndicator
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_createTimeInStateIndicatoromc_StateMachineFlatten_createTimeInStateIndicator,0}};
454#define boxvar_StateMachineFlatten_createTimeInStateIndicator((void*)((char*)(&(boxvar_lit_StateMachineFlatten_createTimeInStateIndicator
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_createTimeInStateIndicator)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_createTimeInStateIndicator
).header) + 3))
455PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_addPropagationEquations(threadData_t *threadData, modelica_metatype _inFlatSmSemantics, modelica_metatype _inEnclosingStateCrefOption, modelica_metatype _inEnclosingFlatSmSemanticsOption);
456static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_addPropagationEquations,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_addPropagationEquations
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_addPropagationEquationsomc_StateMachineFlatten_addPropagationEquations,0}};
457#define boxvar_StateMachineFlatten_addPropagationEquations((void*)((char*)(&(boxvar_lit_StateMachineFlatten_addPropagationEquations
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_addPropagationEquations)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_addPropagationEquations
).header) + 3))
458PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_getStartAttrOption(threadData_t *threadData, modelica_metatype _inVarAttrOpt);
459static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_getStartAttrOption,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_getStartAttrOption
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_getStartAttrOptionomc_StateMachineFlatten_getStartAttrOption,0}};
460#define boxvar_StateMachineFlatten_getStartAttrOption((void*)((char*)(&(boxvar_lit_StateMachineFlatten_getStartAttrOption
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_getStartAttrOption)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_getStartAttrOption
).header) + 3))
461PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_traversingSubsPreviousCrefs(threadData_t *threadData, modelica_metatype _inExp, modelica_metatype _inCrefsHit, modelica_boolean *out_cont, modelica_metatype *out_outCrefsHit);
462PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_traversingSubsPreviousCrefs(threadData_t *threadData, modelica_metatype _inExp, modelica_metatype _inCrefsHit, modelica_metatype *out_cont, modelica_metatype *out_outCrefsHit);
463static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_traversingSubsPreviousCrefs,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_traversingSubsPreviousCrefs
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_traversingSubsPreviousCrefs,0}};
464#define boxvar_StateMachineFlatten_traversingSubsPreviousCrefs((void*)((char*)(&(boxvar_lit_StateMachineFlatten_traversingSubsPreviousCrefs
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_traversingSubsPreviousCrefs)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_traversingSubsPreviousCrefs
).header) + 3))
465PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_traversingSubsPreviousCref(threadData_t *threadData, modelica_metatype _inExp, modelica_metatype _inCrefHit, modelica_boolean *out_cont, modelica_metatype *out_outCrefHit);
466PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_traversingSubsPreviousCref(threadData_t *threadData, modelica_metatype _inExp, modelica_metatype _inCrefHit, modelica_metatype *out_cont, modelica_metatype *out_outCrefHit);
467static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_traversingSubsPreviousCref,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_traversingSubsPreviousCref
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_traversingSubsPreviousCref,0}};
468#define boxvar_StateMachineFlatten_traversingSubsPreviousCref((void*)((char*)(&(boxvar_lit_StateMachineFlatten_traversingSubsPreviousCref
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_traversingSubsPreviousCref)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_traversingSubsPreviousCref
).header) + 3))
469PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_wrapInStateActivationConditionalCT(threadData_t *threadData, modelica_metatype _inEqn, modelica_metatype _inStateCref);
470static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_wrapInStateActivationConditionalCT,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_wrapInStateActivationConditionalCT
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_wrapInStateActivationConditionalCTomc_StateMachineFlatten_wrapInStateActivationConditionalCT,0}};
471#define boxvar_StateMachineFlatten_wrapInStateActivationConditionalCT((void*)((char*)(&(boxvar_lit_StateMachineFlatten_wrapInStateActivationConditionalCT
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_wrapInStateActivationConditionalCT)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_wrapInStateActivationConditionalCT
).header) + 3))
472PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_wrapInStateActivationConditional(threadData_t *threadData, modelica_metatype _inEqn, modelica_metatype _inStateCref, modelica_boolean _isResetEquation);
473PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_wrapInStateActivationConditional(threadData_t *threadData, modelica_metatype _inEqn, modelica_metatype _inStateCref, modelica_metatype _isResetEquation);
474static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_wrapInStateActivationConditional,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_wrapInStateActivationConditional
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_wrapInStateActivationConditional,0}};
475#define boxvar_StateMachineFlatten_wrapInStateActivationConditional((void*)((char*)(&(boxvar_lit_StateMachineFlatten_wrapInStateActivationConditional
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_wrapInStateActivationConditional)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_wrapInStateActivationConditional
).header) + 3))
476PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_createResetEquation(threadData_t *threadData, modelica_metatype _inLHSCref, modelica_metatype _inLHSty, modelica_metatype _inStateCref, modelica_metatype _inEnclosingFlatSmSemantics, modelica_metatype _crToExpOpt);
477static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_createResetEquation,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_createResetEquation
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_createResetEquationomc_StateMachineFlatten_createResetEquation,0}};
478#define boxvar_StateMachineFlatten_createResetEquation((void*)((char*)(&(boxvar_lit_StateMachineFlatten_createResetEquation
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_createResetEquation)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_createResetEquation
).header) + 3))
479PROTECTED_FUNCTION_STATIC modelica_boolean omc_StateMachineFlatten_isCrefInVar(threadData_t *threadData, modelica_metatype _inElement, modelica_metatype _inCref);
480PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_isCrefInVar(threadData_t *threadData, modelica_metatype _inElement, modelica_metatype _inCref);
481static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_isCrefInVar,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_isCrefInVar
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_isCrefInVar,0}};
482#define boxvar_StateMachineFlatten_isCrefInVar((void*)((char*)(&(boxvar_lit_StateMachineFlatten_isCrefInVar
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_isCrefInVar)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_isCrefInVar
).header) + 3))
483PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_createResetEquationCT(threadData_t *threadData, modelica_metatype _inLHSCref, modelica_metatype _inLHSty, modelica_metatype _inStateCref, modelica_metatype _inEnclosingFlatSmSemantics, modelica_metatype _crToExpOpt);
484static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_createResetEquationCT,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_createResetEquationCT
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_createResetEquationCTomc_StateMachineFlatten_createResetEquationCT,0}};
485#define boxvar_StateMachineFlatten_createResetEquationCT((void*)((char*)(&(boxvar_lit_StateMachineFlatten_createResetEquationCT
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_createResetEquationCT)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_createResetEquationCT
).header) + 3))
486PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_traversingFindPreviousCref(threadData_t *threadData, modelica_metatype _inExp, modelica_metatype _inCrefHit, modelica_boolean *out_cont, modelica_metatype *out_outCrefHit);
487PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_traversingFindPreviousCref(threadData_t *threadData, modelica_metatype _inExp, modelica_metatype _inCrefHit, modelica_metatype *out_cont, modelica_metatype *out_outCrefHit);
488static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_traversingFindPreviousCref,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_traversingFindPreviousCref
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_traversingFindPreviousCref,0}};
489#define boxvar_StateMachineFlatten_traversingFindPreviousCref((void*)((char*)(&(boxvar_lit_StateMachineFlatten_traversingFindPreviousCref
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_traversingFindPreviousCref)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_traversingFindPreviousCref
).header) + 3))
490PROTECTED_FUNCTION_STATIC modelica_boolean omc_StateMachineFlatten_isPreviousAppliedToVar(threadData_t *threadData, modelica_metatype _eqn, modelica_metatype _var);
491PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_isPreviousAppliedToVar(threadData_t *threadData, modelica_metatype _eqn, modelica_metatype _var);
492static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_isPreviousAppliedToVar,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_isPreviousAppliedToVar
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_isPreviousAppliedToVar,0}};
493#define boxvar_StateMachineFlatten_isPreviousAppliedToVar((void*)((char*)(&(boxvar_lit_StateMachineFlatten_isPreviousAppliedToVar
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_isPreviousAppliedToVar)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_isPreviousAppliedToVar
).header) + 3))
494PROTECTED_FUNCTION_STATIC modelica_boolean omc_StateMachineFlatten_isVarAtLHS(threadData_t *threadData, modelica_metatype _eqn, modelica_metatype _var);
495PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_isVarAtLHS(threadData_t *threadData, modelica_metatype _eqn, modelica_metatype _var);
496static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_isVarAtLHS,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_isVarAtLHS
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_isVarAtLHS,0}};
497#define boxvar_StateMachineFlatten_isVarAtLHS((void*)((char*)(&(boxvar_lit_StateMachineFlatten_isVarAtLHS
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_isVarAtLHS)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_isVarAtLHS
).header) + 3))
498PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_addStateActivationAndReset1(threadData_t *threadData, modelica_metatype _inEqn, modelica_metatype _inEnclosingSMComp, modelica_metatype _inEnclosingFlatSmSemantics, modelica_metatype _crToExpOpt, modelica_metatype _accEqnsVars);
499static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_addStateActivationAndReset1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_addStateActivationAndReset1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_addStateActivationAndReset1omc_StateMachineFlatten_addStateActivationAndReset1,0}};
500#define boxvar_StateMachineFlatten_addStateActivationAndReset1((void*)((char*)(&(boxvar_lit_StateMachineFlatten_addStateActivationAndReset1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_addStateActivationAndReset1)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_addStateActivationAndReset1
).header) + 3))
501PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_addStateActivationAndReset(threadData_t *threadData, modelica_metatype _inEqn, modelica_metatype _inEnclosingSMComp, modelica_metatype _inEnclosingFlatSmSemantics, modelica_metatype _crToExpOpt, modelica_metatype _accEqnsVars);
502static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_addStateActivationAndReset,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_addStateActivationAndReset
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_addStateActivationAndResetomc_StateMachineFlatten_addStateActivationAndReset,0}};
503#define boxvar_StateMachineFlatten_addStateActivationAndReset((void*)((char*)(&(boxvar_lit_StateMachineFlatten_addStateActivationAndReset
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_addStateActivationAndReset)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_addStateActivationAndReset
).header) + 3))
504PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_smCompToDataFlow(threadData_t *threadData, modelica_metatype _inSMComp, modelica_metatype _inEnclosingFlatSmSemantics, modelica_metatype _accElems);
505static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_smCompToDataFlow,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_smCompToDataFlow
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_smCompToDataFlowomc_StateMachineFlatten_smCompToDataFlow,0}};
506#define boxvar_StateMachineFlatten_smCompToDataFlow((void*)((char*)(&(boxvar_lit_StateMachineFlatten_smCompToDataFlow
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_smCompToDataFlow)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_smCompToDataFlow
).header) + 3))
507PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_traversingSubsXInState(threadData_t *threadData, modelica_metatype _inExp, modelica_metatype _inXSubstHit, modelica_boolean *out_cont, modelica_metatype *out_outXSubstHit);
508PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_traversingSubsXInState(threadData_t *threadData, modelica_metatype _inExp, modelica_metatype _inXSubstHit, modelica_metatype *out_cont, modelica_metatype *out_outXSubstHit);
509static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_traversingSubsXInState,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_traversingSubsXInState
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_traversingSubsXInState,0}};
510#define boxvar_StateMachineFlatten_traversingSubsXInState((void*)((char*)(&(boxvar_lit_StateMachineFlatten_traversingSubsXInState
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_traversingSubsXInState)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_traversingSubsXInState
).header) + 3))
511PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_smeqsSubsXInState(threadData_t *threadData, modelica_metatype _inSmeqs, modelica_metatype _initialStateComp, modelica_integer _i, modelica_integer _nTransitions, modelica_metatype _substExp, modelica_string _xInState);
512PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_smeqsSubsXInState(threadData_t *threadData, modelica_metatype _inSmeqs, modelica_metatype _initialStateComp, modelica_metatype _i, modelica_metatype _nTransitions, modelica_metatype _substExp, modelica_metatype _xInState);
513static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_smeqsSubsXInState,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_smeqsSubsXInState
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_smeqsSubsXInState,0}};
514#define boxvar_StateMachineFlatten_smeqsSubsXInState((void*)((char*)(&(boxvar_lit_StateMachineFlatten_smeqsSubsXInState
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_smeqsSubsXInState)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_smeqsSubsXInState
).header) + 3))
515PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_elabXInStateOps(threadData_t *threadData, modelica_metatype _inFlatSmSemantics, modelica_metatype _inEnclosingStateCrefOption);
516static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_elabXInStateOps,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_elabXInStateOps
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_elabXInStateOpsomc_StateMachineFlatten_elabXInStateOps,0}};
517#define boxvar_StateMachineFlatten_elabXInStateOps((void*)((char*)(&(boxvar_lit_StateMachineFlatten_elabXInStateOps
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_elabXInStateOps)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_elabXInStateOps
).header) + 3))
518PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_traversingSubsTicksInState(threadData_t *threadData, modelica_metatype _inExp, modelica_metatype _inCref_HitCount, modelica_metatype *out_outCref_HitCount);
519static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_traversingSubsTicksInState,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_traversingSubsTicksInState
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_traversingSubsTicksInStateomc_StateMachineFlatten_traversingSubsTicksInState,0}};
520#define boxvar_StateMachineFlatten_traversingSubsTicksInState((void*)((char*)(&(boxvar_lit_StateMachineFlatten_traversingSubsTicksInState
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_traversingSubsTicksInState)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_traversingSubsTicksInState
).header) + 3))
521PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_elabXInStateOps__CT(threadData_t *threadData, modelica_metatype _inSmComp);
522static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_elabXInStateOps__CT,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_elabXInStateOps__CT
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_elabXInStateOps__CTomc_StateMachineFlatten_elabXInStateOps__CT,0}};
523#define boxvar_StateMachineFlatten_elabXInStateOps__CT((void*)((char*)(&(boxvar_lit_StateMachineFlatten_elabXInStateOps__CT
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_elabXInStateOps__CT)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_elabXInStateOps__CT
).header) + 3))
524PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_flatSmToDataFlow(threadData_t *threadData, modelica_metatype _inFlatSm, modelica_metatype _inEnclosingStateCrefOption, modelica_metatype _inEnclosingFlatSmSemanticsOption, modelica_metatype _accElems);
525static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_flatSmToDataFlow,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_flatSmToDataFlow
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_flatSmToDataFlowomc_StateMachineFlatten_flatSmToDataFlow,0}};
526#define boxvar_StateMachineFlatten_flatSmToDataFlow((void*)((char*)(&(boxvar_lit_StateMachineFlatten_flatSmToDataFlow
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_flatSmToDataFlow)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_flatSmToDataFlow
).header) + 3))
527PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_traversingSubsActiveState(threadData_t *threadData, modelica_metatype _inExp, modelica_integer _inHitCount, modelica_integer *out_outHitCount);
528PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_traversingSubsActiveState(threadData_t *threadData, modelica_metatype _inExp, modelica_metatype _inHitCount, modelica_metatype *out_outHitCount);
529static const MMC_DEFSTRUCTLIT(boxvar_lit_StateMachineFlatten_traversingSubsActiveState,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_StateMachineFlatten_traversingSubsActiveState
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_StateMachineFlatten_traversingSubsActiveState,0}};
530#define boxvar_StateMachineFlatten_traversingSubsActiveState((void*)((char*)(&(boxvar_lit_StateMachineFlatten_traversingSubsActiveState
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_StateMachineFlatten_traversingSubsActiveState)((void*)((char*)(&(boxvar_lit_StateMachineFlatten_traversingSubsActiveState
).header) + 3))
531
532PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_traversingSubsXForSampleX(threadData_t *threadData, modelica_metatype _inExp, modelica_integer _inHitCount, modelica_integer *out_outHitCount)
533{
534 modelica_metatype _outExp = NULL((void*)0);
535 modelica_integer _outHitCount;
536 modelica_integer tmp1_c1 __attribute__((unused)) = 0;
537 modelica_metatype tmpMeta[10] __attribute__((unused)) = {0};
538 MMC_SO()mmc_check_stackoverflow(threadData);
539 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
540 // _outExp has no default value.
541 // _outHitCount has no default value.
542#line 2075 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
543
544#line 2075 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
545
546#line 546 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
547 { /* match expression */
548 modelica_metatype tmp4_1;
549 tmp4_1 = _inExp;
550 {
551 modelica_metatype _expX = NULL((void*)0);
552 volatile mmc_switch_type tmp4;
553 int tmp5;
554 // _expX has no default value.
555 tmp4 = 0;
556 for (; tmp4 < 2; tmp4++) {
557 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
558 case 0: {
559 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,13,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((13 +3) & 255) << 2)))
== 0) goto tmp3_end;
560 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
561 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
562 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
563 if (6 != MMC_STRLEN(tmpMeta[3])(((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))) >>
(3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT0)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT0).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmpMeta[3])(((struct mmc_string*)((void*)((char*)(tmpMeta[3]) - 3)))->
data)
) != 0) goto tmp3_end;
564 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
565 if (listEmpty(tmpMeta[4])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
566 tmpMeta[5] = MMC_CAR(tmpMeta[4])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (1)))))
;
567 tmpMeta[6] = MMC_CDR(tmpMeta[4])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (2)))))
;
568 if (listEmpty(tmpMeta[6])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[6]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
569 tmpMeta[7] = MMC_CAR(tmpMeta[6])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[6]) - 3
))) + (1)))))
;
570 tmpMeta[8] = MMC_CDR(tmpMeta[6])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[6]) - 3
))) + (2)))))
;
571 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],4,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((1 +1)
<< 10) + (((4 +3) & 255) << 2)))
== 0) goto tmp3_end;
572 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[7]) - 3
))) + (2)))))
;
573 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[9],0,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[9]) - 3)))==(((0 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
574 if (!listEmpty(tmpMeta[8])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[8]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
575
576 _expX = tmpMeta[5];
577 /* Pattern matching succeeded */
578#line 2083 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
579 tmpMeta[0+0] = _expX;
580#line 2083 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
581 tmp1_c1 = ((modelica_integer) 1) + _inHitCount;
582#line 582 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
583 goto tmp3_done;
584 }
585 case 1: {
586
587 /* Pattern matching succeeded */
588#line 2084 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
589 tmpMeta[0+0] = _inExp;
590#line 2084 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
591 tmp1_c1 = _inHitCount;
592#line 592 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
593 goto tmp3_done;
594 }
595 }
596 goto tmp3_end;
597 tmp3_end: ;
598 }
599 goto goto_2;
600 goto_2:;
601 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
602 goto tmp3_done;
603 tmp3_done:;
604 }
605 }
606 _outExp = tmpMeta[0+0];
607 _outHitCount = tmp1_c1;
608 _return: OMC_LABEL_UNUSED__attribute__((unused))
609 if (out_outHitCount) { *out_outHitCount = _outHitCount; }
610 return _outExp;
611}
612PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_traversingSubsXForSampleX(threadData_t *threadData, modelica_metatype _inExp, modelica_metatype _inHitCount, modelica_metatype *out_outHitCount)
613{
614 modelica_integer tmp1;
615 modelica_integer _outHitCount;
616 modelica_metatype _outExp = NULL((void*)0);
617 tmp1 = mmc_unbox_integer(_inHitCount)(((mmc_sint_t) (_inHitCount)) >> 1);
618 _outExp = omc_StateMachineFlatten_traversingSubsXForSampleX(threadData, _inExp, tmp1, &_outHitCount);
619 /* skip box _outExp; DAE.Exp */
620 if (out_outHitCount) { *out_outHitCount = mmc_mk_icon(_outHitCount); }
621 return _outExp;
622}
623
624PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_traversingSubsPreForPrevious(threadData_t *threadData, modelica_metatype _inExp, modelica_integer _inHitCount, modelica_integer *out_outHitCount)
625{
626 modelica_metatype _outExp = NULL((void*)0);
627 modelica_integer _outHitCount;
628 modelica_integer tmp1_c1 __attribute__((unused)) = 0;
629 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
630 MMC_SO()mmc_check_stackoverflow(threadData);
631 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
632 // _outExp has no default value.
633 // _outHitCount has no default value.
634#line 2056 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
635
636#line 2056 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
637
638#line 638 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
639 { /* match expression */
640 modelica_metatype tmp4_1;
641 tmp4_1 = _inExp;
642 {
643 modelica_metatype _expLst = NULL((void*)0);
644 modelica_metatype _attr = NULL((void*)0);
645 volatile mmc_switch_type tmp4;
646 int tmp5;
647 // _expLst has no default value.
648 // _attr has no default value.
649 tmp4 = 0;
650 for (; tmp4 < 2; tmp4++) {
651 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
652 case 0: {
653 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,13,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((13 +3) & 255) << 2)))
== 0) goto tmp3_end;
654 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
655 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
656 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
657 if (8 != MMC_STRLEN(tmpMeta[3])(((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))) >>
(3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT3)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT3).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmpMeta[3])(((struct mmc_string*)((void*)((char*)(tmpMeta[3]) - 3)))->
data)
) != 0) goto tmp3_end;
658 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
659 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
660 _expLst = tmpMeta[4];
661 _attr = tmpMeta[5];
662 /* Pattern matching succeeded */
663#line 2061 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
664 tmpMeta[2] = mmc_mk_box4(16, &DAE_Exp_CALL__desc, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _expLst, _attr);
665#line 2061 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
666 tmpMeta[0+0] = tmpMeta[2];
667#line 2061 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
668 tmp1_c1 = ((modelica_integer) 1) + _inHitCount;
669#line 669 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
670 goto tmp3_done;
671 }
672 case 1: {
673
674 /* Pattern matching succeeded */
675#line 2062 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
676 tmpMeta[0+0] = _inExp;
677#line 2062 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
678 tmp1_c1 = _inHitCount;
679#line 679 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
680 goto tmp3_done;
681 }
682 }
683 goto tmp3_end;
684 tmp3_end: ;
685 }
686 goto goto_2;
687 goto_2:;
688 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
689 goto tmp3_done;
690 tmp3_done:;
691 }
692 }
693 _outExp = tmpMeta[0+0];
694 _outHitCount = tmp1_c1;
695 _return: OMC_LABEL_UNUSED__attribute__((unused))
696 if (out_outHitCount) { *out_outHitCount = _outHitCount; }
697 return _outExp;
698}
699PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_traversingSubsPreForPrevious(threadData_t *threadData, modelica_metatype _inExp, modelica_metatype _inHitCount, modelica_metatype *out_outHitCount)
700{
701 modelica_integer tmp1;
702 modelica_integer _outHitCount;
703 modelica_metatype _outExp = NULL((void*)0);
704 tmp1 = mmc_unbox_integer(_inHitCount)(((mmc_sint_t) (_inHitCount)) >> 1);
705 _outExp = omc_StateMachineFlatten_traversingSubsPreForPrevious(threadData, _inExp, tmp1, &_outHitCount);
706 /* skip box _outExp; DAE.Exp */
707 if (out_outHitCount) { *out_outHitCount = mmc_mk_icon(_outHitCount); }
708 return _outExp;
709}
710
711PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_extractSmOfExps(threadData_t *threadData, modelica_metatype _inElem, modelica_string _inLastIdent)
712{
713 modelica_metatype _outExp = NULL((void*)0);
714 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
715 MMC_SO()mmc_check_stackoverflow(threadData);
716 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
717 // _outExp has no default value.
718#line 718 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
719 { /* match expression */
720 modelica_metatype tmp3_1;
721 tmp3_1 = _inElem;
722 {
723 modelica_metatype _exp = NULL((void*)0);
724 modelica_metatype _cref = NULL((void*)0);
725 modelica_string _firstIdent = NULL((void*)0);
726 modelica_string _lastIdent = NULL((void*)0);
727 volatile mmc_switch_type tmp3;
728 int tmp4;
729 // _exp has no default value.
730 // _cref has no default value.
731 // _firstIdent has no default value.
732 // _lastIdent has no default value.
733 tmp3 = 0;
734 for (; tmp3 < 1; tmp3++) {
735 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
736 case 0: {
737 modelica_boolean tmp5;
738 modelica_boolean tmp6;
739 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;
740 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
741
742 _exp = tmpMeta[1];
743 /* Pattern matching succeeded */
744#line 2037 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
745 /* Pattern-matching assignment */
746#line 2037 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
747 tmpMeta[1] = _exp;
748#line 2037 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
749 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],6,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((2 +1)
<< 10) + (((6 +3) & 255) << 2)))
== 0) goto goto_1;
750#line 2037 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
751 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
752#line 2037 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
753 _cref = tmpMeta[2];
754#line 754 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
755
756#line 2038 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
757 _firstIdent = omc_ComponentReference_crefFirstIdent(threadData, _cref);
758#line 758 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
759
760#line 2039 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
761 /* Pattern-matching assignment */
762#line 2039 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
763 tmp5 = (stringEqual(_firstIdent, _OMC_LIT4)((((((*(mmc_uint_t*)((void*)((char*)(_firstIdent) - 3)))) >>
(3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(((void*)((
char*)(&(_OMC_LIT_STRUCT4).header) + 3))) - 3)))) >>
(3)) - 8)) && !mmc_stringCompare(_firstIdent,((void*
)((char*)(&(_OMC_LIT_STRUCT4).header) + 3))))
);
764#line 2039 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
765 if (1 != tmp5) goto goto_1;
766#line 766 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
767
768#line 2040 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
769 _lastIdent = omc_ComponentReference_crefLastIdent(threadData, _cref);
770#line 770 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
771
772#line 2041 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
773 /* Pattern-matching assignment */
774#line 2041 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
775 tmp6 = (stringEqual(_lastIdent, _inLastIdent)((((((*(mmc_uint_t*)((void*)((char*)(_lastIdent) - 3)))) >>
(3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(_inLastIdent
) - 3)))) >> (3)) - 8)) && !mmc_stringCompare(_lastIdent
,_inLastIdent))
);
776#line 2041 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
777 if (1 != tmp6) goto goto_1;
778#line 778 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
779#line 2042 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
780 tmpMeta[0] = _exp;
781#line 781 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
782 goto tmp2_done;
783 }
784 }
785 goto tmp2_end;
786 tmp2_end: ;
787 }
788 goto goto_1;
789 goto_1:;
790 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
791 goto tmp2_done;
792 tmp2_done:;
793 }
794 }
795 _outExp = tmpMeta[0];
796 _return: OMC_LABEL_UNUSED__attribute__((unused))
797 return _outExp;
798}
799
800PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_wrapHack(threadData_t *threadData, modelica_metatype _cache, modelica_metatype _inElementLst)
801{
802 modelica_metatype _outElementLst = NULL((void*)0);
803 modelica_integer _nOfSubstitutions;
804 modelica_metatype _eqnLst = NULL((void*)0);
805 modelica_metatype _otherLst = NULL((void*)0);
806 modelica_metatype _whenEq = NULL((void*)0);
807 modelica_metatype _cond1 = NULL((void*)0);
808 modelica_metatype _cond2 = NULL((void*)0);
809 modelica_metatype _condition = NULL((void*)0);
810 modelica_metatype _condLst = NULL((void*)0);
811 modelica_metatype _tArrayBool = NULL((void*)0);
812 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
813 MMC_SO()mmc_check_stackoverflow(threadData);
814 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
815 // _outElementLst has no default value.
816 // _nOfSubstitutions has no default value.
817 // _eqnLst has no default value.
818 // _otherLst has no default value.
819 // _whenEq has no default value.
820 // _cond1 has no default value.
821 // _cond2 has no default value.
822 // _condition has no default value.
823 // _condLst has no default value.
824 // _tArrayBool has no default value.
825#line 1997 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
826 _cond1 = _OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3));
827#line 827 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
828
829#line 1999 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
830 tmpMeta[1] = mmc_mk_box2(4, &DAE_Exp_RCONST__desc, mmc_mk_realmmc_mk_rcon(omc_Flags_getConfigReal(threadData, _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)))));
831#line 1999 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
832 tmpMeta[2] = mmc_mk_box2(4, &DAE_Exp_RCONST__desc, mmc_mk_realmmc_mk_rcon(omc_Flags_getConfigReal(threadData, _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)))));
833#line 1999 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
834 tmpMeta[0] = mmc_mk_cons(tmpMeta[1], mmc_mk_cons(tmpMeta[2], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))));
835#line 1999 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
836 tmpMeta[3] = mmc_mk_box4(16, &DAE_Exp_CALL__desc, _OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)), tmpMeta[0], _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)));
837#line 1999 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
838 _cond2 = tmpMeta[3];
839#line 839 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
840
841#line 2002 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
842 _tArrayBool = _OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3));
843#line 843 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
844
845#line 2004 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
846 if(omc_Flags_getConfigBool(threadData, _OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3))))
847#line 2004 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
848 {
849#line 2006 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
850 _condLst = omc_List_filterMap1(threadData, _inElementLst, boxvar_StateMachineFlatten_extractSmOfExps((void*)((char*)(&(boxvar_lit_StateMachineFlatten_extractSmOfExps
).header) + 3))
, _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3)));
851#line 851 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
852
853#line 2007 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
854 _eqnLst = omc_List_extractOnTrue(threadData, _inElementLst, boxvar_StateMachineFlatten_isPreOrPreviousEquation((void*)((char*)(&(boxvar_lit_StateMachineFlatten_isPreOrPreviousEquation
).header) + 3))
,&_otherLst);
855#line 855 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
856
857#line 2008 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
858 tmpMeta[0] = mmc_mk_cons(_cond1, _condLst);
859#line 2008 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
860 tmpMeta[1] = mmc_mk_box4(19, &DAE_Exp_ARRAY__desc, _tArrayBool, mmc_mk_boolean(1)((1) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), tmpMeta[0]);
861#line 2008 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
862 _condition = tmpMeta[1];
863#line 863 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
864 }
865 else
866 {
867#line 2010 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
868 _eqnLst = omc_List_extractOnTrue(threadData, _inElementLst, boxvar_StateMachineFlatten_isEquation((void*)((char*)(&(boxvar_lit_StateMachineFlatten_isEquation
).header) + 3))
,&_otherLst);
869#line 869 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
870
871#line 2011 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
872 tmpMeta[0] = mmc_mk_cons(_cond1, mmc_mk_cons(_cond2, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))));
873#line 2011 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
874 tmpMeta[1] = mmc_mk_box4(19, &DAE_Exp_ARRAY__desc, _tArrayBool, mmc_mk_boolean(1)((1) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), tmpMeta[0]);
875#line 2011 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
876 _condition = tmpMeta[1];
877#line 877 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
878 }
879
880#line 2015 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
881 tmpMeta[0] = mmc_mk_box5(13, &DAE_Element_WHEN__EQUATION__desc, _condition, _eqnLst, mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)), _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)));
882#line 2015 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
883 _whenEq = tmpMeta[0];
884#line 884 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
885
886#line 2018 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
887 tmpMeta[0] = mmc_mk_cons(_whenEq, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
888#line 2018 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
889 _outElementLst = listAppend(_otherLst, tmpMeta[0]);
890#line 890 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
891 _return: OMC_LABEL_UNUSED__attribute__((unused))
892 return _outElementLst;
893}
894
895DLLExport
896modelica_string omc_StateMachineFlatten_dumpTransitionStr(threadData_t *threadData, modelica_metatype _transition)
897{
898 modelica_string _transitionStr = NULL((void*)0);
899 modelica_integer _from;
900 modelica_integer _to;
901 modelica_metatype _condition = NULL((void*)0);
902 modelica_boolean _immediate;
903 modelica_boolean _reset;
904 modelica_boolean _synchronize;
905 modelica_integer _priority;
906 modelica_integer tmp1;
907 modelica_integer tmp2;
908 modelica_integer tmp3;
909 modelica_integer tmp4;
910 modelica_integer tmp5;
911 modelica_integer tmp6;
912 modelica_metatype tmpMeta[14] __attribute__((unused)) = {0};
913 MMC_SO()mmc_check_stackoverflow(threadData);
914 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
915 // _transitionStr has no default value.
916 // _from has no default value.
917 // _to has no default value.
918 // _condition has no default value.
919 // _immediate has no default value.
920 // _reset has no default value.
921 // _synchronize has no default value.
922 // _priority has no default value.
923#line 1974 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
924 /* Pattern-matching assignment */
925#line 1974 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
926 tmpMeta[0] = _transition;
927#line 1974 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
928 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
929#line 1974 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
930 tmp1 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
931#line 1974 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
932 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
933#line 1974 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
934 tmp2 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
935#line 1974 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
936 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
937#line 1974 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
938 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
939#line 1974 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
940 tmp3 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
941#line 1974 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
942 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
943#line 1974 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
944 tmp4 = mmc_unbox_integer(tmpMeta[5])(((mmc_sint_t) (tmpMeta[5])) >> 1);
945#line 1974 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
946 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (7)))))
;
947#line 1974 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
948 tmp5 = mmc_unbox_integer(tmpMeta[6])(((mmc_sint_t) (tmpMeta[6])) >> 1);
949#line 1974 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
950 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (8)))))
;
951#line 1974 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
952 tmp6 = mmc_unbox_integer(tmpMeta[7])(((mmc_sint_t) (tmpMeta[7])) >> 1);
953#line 1974 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
954 _from = tmp1 /* pattern as ty=Integer */;
955#line 1974 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
956 _to = tmp2 /* pattern as ty=Integer */;
957#line 1974 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
958 _condition = tmpMeta[3];
959#line 1974 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
960 _immediate = tmp3 /* pattern as ty=Boolean */;
961#line 1974 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
962 _reset = tmp4 /* pattern as ty=Boolean */;
963#line 1974 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
964 _synchronize = tmp5 /* pattern as ty=Boolean */;
965#line 1974 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
966 _priority = tmp6 /* pattern as ty=Integer */;
967#line 967 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
968
969#line 1975 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
970 tmpMeta[0] = stringAppend(_OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)),intString(_from));
971#line 1975 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
972 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)));
973#line 1975 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
974 tmpMeta[2] = stringAppend(tmpMeta[1],intString(_to));
975#line 1975 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
976 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3)));
977#line 1975 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
978 tmpMeta[4] = stringAppend(tmpMeta[3],omc_ExpressionDump_printExpStr(threadData, _condition));
979#line 1975 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
980 tmpMeta[5] = stringAppend(tmpMeta[4],_OMC_LIT37((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3)));
981#line 1975 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
982 tmpMeta[6] = stringAppend(tmpMeta[5],(_immediate?_OMC_LIT38((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3)):_OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3))));
983#line 1975 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
984 tmpMeta[7] = stringAppend(tmpMeta[6],_OMC_LIT40((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3)));
985#line 1975 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
986 tmpMeta[8] = stringAppend(tmpMeta[7],(_reset?_OMC_LIT38((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3)):_OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3))));
987#line 1975 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
988 tmpMeta[9] = stringAppend(tmpMeta[8],_OMC_LIT41((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3)));
989#line 1975 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
990 tmpMeta[10] = stringAppend(tmpMeta[9],(_synchronize?_OMC_LIT38((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3)):_OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3))));
991#line 1975 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
992 tmpMeta[11] = stringAppend(tmpMeta[10],_OMC_LIT42((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3)));
993#line 1975 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
994 tmpMeta[12] = stringAppend(tmpMeta[11],intString(_priority));
995#line 1975 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
996 tmpMeta[13] = stringAppend(tmpMeta[12],_OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3)));
997#line 1975 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
998 _transitionStr = tmpMeta[13];
999#line 999 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1000 _return: OMC_LABEL_UNUSED__attribute__((unused))
1001 return _transitionStr;
1002}
1003
1004PROTECTED_FUNCTION_STATIC modelica_boolean omc_StateMachineFlatten_sMCompEqualsRef(threadData_t *threadData, modelica_metatype _inElement, modelica_metatype _inCref)
1005{
1006 modelica_boolean _result;
1007 modelica_boolean tmp1 = 0;
1008 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
1009 MMC_SO()mmc_check_stackoverflow(threadData);
1010 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1011 // _result has no default value.
1012#line 1012 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1013 { /* match expression */
1014 modelica_metatype tmp4_1;
1015 tmp4_1 = _inElement;
1016 {
1017 modelica_metatype _cref = NULL((void*)0);
1018 volatile mmc_switch_type tmp4;
1019 int tmp5;
1020 // _cref has no default value.
1021 tmp4 = 0;
1022 for (; tmp4 < 2; tmp4++) {
1023 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1024 case 0: {
1025 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,29,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((29 +3) & 255) << 2)))
== 0) goto tmp3_end;
1026 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
1027
1028 _cref = tmpMeta[0];
1029 /* Pattern matching succeeded */
1030 /* Check guard condition after assignments */
1031 if (!omc_ComponentReference_crefEqual(threadData, _cref, _inCref)) goto tmp3_end;
1032#line 1955 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1033 tmp1 = 1;
1034#line 1034 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1035 goto tmp3_done;
1036 }
1037 case 1: {
1038
1039 /* Pattern matching succeeded */
1040#line 1956 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1041 tmp1 = 0;
1042#line 1042 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1043 goto tmp3_done;
1044 }
1045 }
1046 goto tmp3_end;
1047 tmp3_end: ;
1048 }
1049 goto goto_2;
1050 goto_2:;
1051 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1052 goto tmp3_done;
1053 tmp3_done:;
1054 }
1055 }
1056 _result = tmp1;
1057 _return: OMC_LABEL_UNUSED__attribute__((unused))
1058 return _result;
1059}
1060PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_sMCompEqualsRef(threadData_t *threadData, modelica_metatype _inElement, modelica_metatype _inCref)
1061{
1062 modelica_boolean _result;
1063 modelica_metatype out_result;
1064 _result = omc_StateMachineFlatten_sMCompEqualsRef(threadData, _inElement, _inCref);
1065 out_result = mmc_mk_icon(_result);
1066 return out_result;
1067}
1068
1069PROTECTED_FUNCTION_STATIC modelica_boolean omc_StateMachineFlatten_isVar(threadData_t *threadData, modelica_metatype _inElement)
1070{
1071 modelica_boolean _result;
1072 modelica_boolean tmp1 = 0;
1073 MMC_SO()mmc_check_stackoverflow(threadData);
1074 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1075 // _result has no default value.
1076#line 1076 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1077 { /* match expression */
1078 modelica_metatype tmp4_1;
1079 tmp4_1 = _inElement;
1080 {
1081 volatile mmc_switch_type tmp4;
1082 int tmp5;
1083 tmp4 = 0;
1084 for (; tmp4 < 2; tmp4++) {
1085 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1086 case 0: {
1087 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,13)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((13 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
1088
1089 /* Pattern matching succeeded */
1090#line 1939 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1091 tmp1 = 1;
1092#line 1092 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1093 goto tmp3_done;
1094 }
1095 case 1: {
1096
1097 /* Pattern matching succeeded */
1098#line 1940 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1099 tmp1 = 0;
1100#line 1100 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1101 goto tmp3_done;
1102 }
1103 }
1104 goto tmp3_end;
1105 tmp3_end: ;
1106 }
1107 goto goto_2;
1108 goto_2:;
1109 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1110 goto tmp3_done;
1111 tmp3_done:;
1112 }
1113 }
1114 _result = tmp1;
1115 _return: OMC_LABEL_UNUSED__attribute__((unused))
1116 return _result;
1117}
1118PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_isVar(threadData_t *threadData, modelica_metatype _inElement)
1119{
1120 modelica_boolean _result;
1121 modelica_metatype out_result;
1122 _result = omc_StateMachineFlatten_isVar(threadData, _inElement);
1123 out_result = mmc_mk_icon(_result);
1124 return out_result;
1125}
1126
1127PROTECTED_FUNCTION_STATIC modelica_boolean omc_StateMachineFlatten_isPreOrPreviousEquation(threadData_t *threadData, modelica_metatype _inElement)
1128{
1129 modelica_boolean _result;
1130 modelica_boolean tmp1 = 0;
1131 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1132 MMC_SO()mmc_check_stackoverflow(threadData);
1133 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1134 // _result has no default value.
1135#line 1135 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1136 { /* match expression */
1137 modelica_metatype tmp4_1;
1138 tmp4_1 = _inElement;
1139 {
1140 modelica_metatype _exp = NULL((void*)0);
1141 modelica_metatype _scalar = NULL((void*)0);
1142 volatile mmc_switch_type tmp4;
1143 int tmp5;
1144 // _exp has no default value.
1145 // _scalar has no default value.
1146 tmp4 = 0;
1147 for (; tmp4 < 2; tmp4++) {
1148 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1149 case 0: {
1150 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,3,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((3 +3) & 255) << 2)))
== 0) goto tmp3_end;
1151 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
1152 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
1153
1154 _exp = tmpMeta[0];
1155 _scalar = tmpMeta[1];
1156 /* Pattern matching succeeded */
1157#line 1925 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1158 tmp1 = (((omc_Expression_expHasPre(threadData, _exp) || omc_Expression_expHasPre(threadData, _scalar)) || omc_Expression_expHasPrevious(threadData, _exp)) || omc_Expression_expHasPrevious(threadData, _scalar));
1159#line 1159 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1160 goto tmp3_done;
1161 }
1162 case 1: {
1163
1164 /* Pattern matching succeeded */
1165#line 1928 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1166 tmp1 = 0;
1167#line 1167 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1168 goto tmp3_done;
1169 }
1170 }
1171 goto tmp3_end;
1172 tmp3_end: ;
1173 }
1174 goto goto_2;
1175 goto_2:;
1176 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1177 goto tmp3_done;
1178 tmp3_done:;
1179 }
1180 }
1181 _result = tmp1;
1182 _return: OMC_LABEL_UNUSED__attribute__((unused))
1183 return _result;
1184}
1185PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_isPreOrPreviousEquation(threadData_t *threadData, modelica_metatype _inElement)
1186{
1187 modelica_boolean _result;
1188 modelica_metatype out_result;
1189 _result = omc_StateMachineFlatten_isPreOrPreviousEquation(threadData, _inElement);
1190 out_result = mmc_mk_icon(_result);
1191 return out_result;
1192}
1193
1194PROTECTED_FUNCTION_STATIC modelica_boolean omc_StateMachineFlatten_isEquationOrWhenEquation(threadData_t *threadData, modelica_metatype _inElement)
1195{
1196 modelica_boolean _result;
1197 modelica_boolean tmp1 = 0;
1198 MMC_SO()mmc_check_stackoverflow(threadData);
1199 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1200 // _result has no default value.
1201#line 1201 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1202 { /* match expression */
1203 modelica_metatype tmp4_1;
1204 tmp4_1 = _inElement;
1205 {
1206 int tmp4;
1207 {
1208 switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> 2
) & 255))
) {
1209 case 6: {
1210
1211 /* Pattern matching succeeded */
1212#line 1909 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1213 tmp1 = 1;
1214#line 1214 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1215 goto tmp3_done;
1216 }
1217 case 13: {
1218
1219 /* Pattern matching succeeded */
1220#line 1910 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1221 tmp1 = 1;
1222#line 1222 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1223 goto tmp3_done;
1224 }
1225 default:
1226 tmp3_default: OMC_LABEL_UNUSED__attribute__((unused)); {
1227
1228 /* Pattern matching succeeded */
1229#line 1911 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1230 tmp1 = 0;
1231#line 1231 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1232 goto tmp3_done;
1233 }
1234 }
1235 goto tmp3_end;
1236 tmp3_end: ;
1237 }
1238 goto goto_2;
1239 goto_2:;
1240 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1241 goto tmp3_done;
1242 tmp3_done:;
1243 }
1244 }
1245 _result = tmp1;
1246 _return: OMC_LABEL_UNUSED__attribute__((unused))
1247 return _result;
1248}
1249PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_isEquationOrWhenEquation(threadData_t *threadData, modelica_metatype _inElement)
1250{
1251 modelica_boolean _result;
1252 modelica_metatype out_result;
1253 _result = omc_StateMachineFlatten_isEquationOrWhenEquation(threadData, _inElement);
1254 out_result = mmc_mk_icon(_result);
1255 return out_result;
1256}
1257
1258PROTECTED_FUNCTION_STATIC modelica_boolean omc_StateMachineFlatten_isEquation(threadData_t *threadData, modelica_metatype _inElement)
1259{
1260 modelica_boolean _result;
1261 modelica_boolean tmp1 = 0;
1262 MMC_SO()mmc_check_stackoverflow(threadData);
1263 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1264 // _result has no default value.
1265#line 1265 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1266 { /* match expression */
1267 modelica_metatype tmp4_1;
1268 tmp4_1 = _inElement;
1269 {
1270 volatile mmc_switch_type tmp4;
1271 int tmp5;
1272 tmp4 = 0;
1273 for (; tmp4 < 2; tmp4++) {
1274 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1275 case 0: {
1276 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,3,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((3 +3) & 255) << 2)))
== 0) goto tmp3_end;
1277
1278 /* Pattern matching succeeded */
1279#line 1897 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1280 tmp1 = 1;
1281#line 1281 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1282 goto tmp3_done;
1283 }
1284 case 1: {
1285
1286 /* Pattern matching succeeded */
1287#line 1898 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1288 tmp1 = 0;
1289#line 1289 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1290 goto tmp3_done;
1291 }
1292 }
1293 goto tmp3_end;
1294 tmp3_end: ;
1295 }
1296 goto goto_2;
1297 goto_2:;
1298 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1299 goto tmp3_done;
1300 tmp3_done:;
1301 }
1302 }
1303 _result = tmp1;
1304 _return: OMC_LABEL_UNUSED__attribute__((unused))
1305 return _result;
1306}
1307PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_isEquation(threadData_t *threadData, modelica_metatype _inElement)
1308{
1309 modelica_boolean _result;
1310 modelica_metatype out_result;
1311 _result = omc_StateMachineFlatten_isEquation(threadData, _inElement);
1312 out_result = mmc_mk_icon(_result);
1313 return out_result;
1314}
1315
1316PROTECTED_FUNCTION_STATIC modelica_boolean omc_StateMachineFlatten_isInitialState(threadData_t *threadData, modelica_metatype _inElement)
1317{
1318 modelica_boolean _result;
1319 modelica_boolean tmp1 = 0;
1320 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
1321 MMC_SO()mmc_check_stackoverflow(threadData);
1322 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1323 // _result has no default value.
1324#line 1324 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1325 { /* match expression */
1326 modelica_metatype tmp4_1;
1327 tmp4_1 = _inElement;
1328 {
1329 volatile mmc_switch_type tmp4;
1330 int tmp5;
1331 tmp4 = 0;
1332 for (; tmp4 < 2; tmp4++) {
1333 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1334 case 0: {
1335 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,24,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((24 +3) & 255) << 2)))
== 0) goto tmp3_end;
1336 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
1337 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],13,3)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((3 +1)
<< 10) + (((13 +3) & 255) << 2)))
== 0) goto tmp3_end;
1338 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1339 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
1340 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
1341 if (12 != MMC_STRLEN(tmpMeta[2])(((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))) >>
(3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT44)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT44).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmpMeta[2])(((struct mmc_string*)((void*)((char*)(tmpMeta[2]) - 3)))->
data)
) != 0) goto tmp3_end;
1342
1343 /* Pattern matching succeeded */
1344#line 1885 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1345 tmp1 = 1;
1346#line 1346 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1347 goto tmp3_done;
1348 }
1349 case 1: {
1350
1351 /* Pattern matching succeeded */
1352#line 1886 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1353 tmp1 = 0;
1354#line 1354 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1355 goto tmp3_done;
1356 }
1357 }
1358 goto tmp3_end;
1359 tmp3_end: ;
1360 }
1361 goto goto_2;
1362 goto_2:;
1363 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1364 goto tmp3_done;
1365 tmp3_done:;
1366 }
1367 }
1368 _result = tmp1;
1369 _return: OMC_LABEL_UNUSED__attribute__((unused))
1370 return _result;
1371}
1372PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_isInitialState(threadData_t *threadData, modelica_metatype _inElement)
1373{
1374 modelica_boolean _result;
1375 modelica_metatype out_result;
1376 _result = omc_StateMachineFlatten_isInitialState(threadData, _inElement);
1377 out_result = mmc_mk_icon(_result);
1378 return out_result;
1379}
1380
1381PROTECTED_FUNCTION_STATIC modelica_boolean omc_StateMachineFlatten_isTransition(threadData_t *threadData, modelica_metatype _inElement)
1382{
1383 modelica_boolean _result;
1384 modelica_boolean tmp1 = 0;
1385 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
1386 MMC_SO()mmc_check_stackoverflow(threadData);
1387 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1388 // _result has no default value.
1389#line 1389 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1390 { /* match expression */
1391 modelica_metatype tmp4_1;
1392 tmp4_1 = _inElement;
1393 {
1394 volatile mmc_switch_type tmp4;
1395 int tmp5;
1396 tmp4 = 0;
1397 for (; tmp4 < 2; tmp4++) {
1398 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1399 case 0: {
1400 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,24,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((24 +3) & 255) << 2)))
== 0) goto tmp3_end;
1401 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
1402 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],13,3)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((3 +1)
<< 10) + (((13 +3) & 255) << 2)))
== 0) goto tmp3_end;
1403 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1404 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
1405 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
1406 if (10 != MMC_STRLEN(tmpMeta[2])(((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))) >>
(3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT45)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT45).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmpMeta[2])(((struct mmc_string*)((void*)((char*)(tmpMeta[2]) - 3)))->
data)
) != 0) goto tmp3_end;
1407
1408 /* Pattern matching succeeded */
1409#line 1873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1410 tmp1 = 1;
1411#line 1411 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1412 goto tmp3_done;
1413 }
1414 case 1: {
1415
1416 /* Pattern matching succeeded */
1417#line 1874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1418 tmp1 = 0;
1419#line 1419 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1420 goto tmp3_done;
1421 }
1422 }
1423 goto tmp3_end;
1424 tmp3_end: ;
1425 }
1426 goto goto_2;
1427 goto_2:;
1428 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1429 goto tmp3_done;
1430 tmp3_done:;
1431 }
1432 }
1433 _result = tmp1;
1434 _return: OMC_LABEL_UNUSED__attribute__((unused))
1435 return _result;
1436}
1437PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_isTransition(threadData_t *threadData, modelica_metatype _inElement)
1438{
1439 modelica_boolean _result;
1440 modelica_metatype out_result;
1441 _result = omc_StateMachineFlatten_isTransition(threadData, _inElement);
1442 out_result = mmc_mk_icon(_result);
1443 return out_result;
1444}
1445
1446PROTECTED_FUNCTION_STATIC modelica_boolean omc_StateMachineFlatten_isSMComp(threadData_t *threadData, modelica_metatype _inElement)
1447{
1448 modelica_boolean _outResult;
1449 modelica_boolean tmp1 = 0;
1450 MMC_SO()mmc_check_stackoverflow(threadData);
1451 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1452 // _outResult has no default value.
1453#line 1453 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1454 { /* match expression */
1455 modelica_metatype tmp4_1;
1456 tmp4_1 = _inElement;
1457 {
1458 volatile mmc_switch_type tmp4;
1459 int tmp5;
1460 tmp4 = 0;
1461 for (; tmp4 < 2; tmp4++) {
1462 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1463 case 0: {
1464 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,29,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((29 +3) & 255) << 2)))
== 0) goto tmp3_end;
1465
1466 /* Pattern matching succeeded */
1467#line 1860 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1468 tmp1 = 1;
1469#line 1469 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1470 goto tmp3_done;
1471 }
1472 case 1: {
1473
1474 /* Pattern matching succeeded */
1475#line 1861 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1476 tmp1 = 0;
1477#line 1477 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1478 goto tmp3_done;
1479 }
1480 }
1481 goto tmp3_end;
1482 tmp3_end: ;
1483 }
1484 goto goto_2;
1485 goto_2:;
1486 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1487 goto tmp3_done;
1488 tmp3_done:;
1489 }
1490 }
1491 _outResult = tmp1;
1492 _return: OMC_LABEL_UNUSED__attribute__((unused))
1493 return _outResult;
1494}
1495PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_isSMComp(threadData_t *threadData, modelica_metatype _inElement)
1496{
1497 modelica_boolean _outResult;
1498 modelica_metatype out_outResult;
1499 _outResult = omc_StateMachineFlatten_isSMComp(threadData, _inElement);
1500 out_outResult = mmc_mk_icon(_outResult);
1501 return out_outResult;
1502}
1503
1504PROTECTED_FUNCTION_STATIC modelica_boolean omc_StateMachineFlatten_isFlatSm(threadData_t *threadData, modelica_metatype _inElement)
1505{
1506 modelica_boolean _outResult;
1507 modelica_boolean tmp1 = 0;
1508 MMC_SO()mmc_check_stackoverflow(threadData);
1509 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1510 // _outResult has no default value.
1511#line 1511 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1512 { /* match expression */
1513 modelica_metatype tmp4_1;
1514 tmp4_1 = _inElement;
1515 {
1516 volatile mmc_switch_type tmp4;
1517 int tmp5;
1518 tmp4 = 0;
1519 for (; tmp4 < 2; tmp4++) {
1520 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1521 case 0: {
1522 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,28,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((28 +3) & 255) << 2)))
== 0) goto tmp3_end;
1523
1524 /* Pattern matching succeeded */
1525#line 1847 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1526 tmp1 = 1;
1527#line 1527 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1528 goto tmp3_done;
1529 }
1530 case 1: {
1531
1532 /* Pattern matching succeeded */
1533#line 1848 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1534 tmp1 = 0;
1535#line 1535 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1536 goto tmp3_done;
1537 }
1538 }
1539 goto tmp3_end;
1540 tmp3_end: ;
1541 }
1542 goto goto_2;
1543 goto_2:;
1544 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1545 goto tmp3_done;
1546 tmp3_done:;
1547 }
1548 }
1549 _outResult = tmp1;
1550 _return: OMC_LABEL_UNUSED__attribute__((unused))
1551 return _outResult;
1552}
1553PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_isFlatSm(threadData_t *threadData, modelica_metatype _inElement)
1554{
1555 modelica_boolean _outResult;
1556 modelica_metatype out_outResult;
1557 _outResult = omc_StateMachineFlatten_isFlatSm(threadData, _inElement);
1558 out_outResult = mmc_mk_icon(_outResult);
1559 return out_outResult;
1560}
1561
1562PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_createTransition(threadData_t *threadData, modelica_metatype _transitionElem, modelica_metatype _states)
1563{
1564 modelica_metatype _trans = NULL((void*)0);
1565 modelica_metatype _crefFrom = NULL((void*)0);
1566 modelica_metatype _crefTo = NULL((void*)0);
1567 modelica_integer _from;
1568 modelica_integer _to;
1569 modelica_metatype _condition = NULL((void*)0);
1570 modelica_boolean _immediate;
1571 modelica_boolean _reset;
1572 modelica_boolean _synchronize;
1573 modelica_integer _priority;
1574 modelica_integer tmp1;
1575 modelica_integer tmp2;
1576 modelica_integer tmp3;
1577 modelica_integer tmp4;
1578 modelica_metatype tmpMeta[25] __attribute__((unused)) = {0};
1579 MMC_SO()mmc_check_stackoverflow(threadData);
1580 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1581 // _trans has no default value.
1582 // _crefFrom has no default value.
1583 // _crefTo has no default value.
1584 // _from has no default value.
1585 // _to has no default value.
1586 // _condition has no default value.
1587 _immediate = 1;
1588 _reset = 1;
1589 _synchronize = 0;
1590 _priority = ((modelica_integer) 1);
1591#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1592 /* Pattern-matching assignment */
1593#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1594 tmpMeta[0] = _transitionElem;
1595#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1596 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],24,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((2 +1)
<< 10) + (((24 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1597#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1598 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1599#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1600 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],13,3)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((3 +1)
<< 10) + (((13 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1601#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1602 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
1603#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1604 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1605#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1606 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
1607#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1608 if (10 != MMC_STRLEN(tmpMeta[3])(((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))) >>
(3)) - 8))
|| strcmp("transition", MMC_STRINGDATA(tmpMeta[3])(((struct mmc_string*)((void*)((char*)(tmpMeta[3]) - 3)))->
data)
) != 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1609#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1610 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
1611#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1612 if (listEmpty(tmpMeta[4])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1613#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1614 tmpMeta[5] = MMC_CAR(tmpMeta[4])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (1)))))
;
1615#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1616 tmpMeta[6] = MMC_CDR(tmpMeta[4])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (2)))))
;
1617#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1618 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[5],6,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5]) - 3)))==(((2 +1)
<< 10) + (((6 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1619#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1620 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (2)))))
;
1621#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1622 if (listEmpty(tmpMeta[6])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[6]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1623#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1624 tmpMeta[8] = MMC_CAR(tmpMeta[6])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[6]) - 3
))) + (1)))))
;
1625#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1626 tmpMeta[9] = MMC_CDR(tmpMeta[6])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[6]) - 3
))) + (2)))))
;
1627#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1628 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[8],6,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[8]) - 3)))==(((2 +1)
<< 10) + (((6 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1629#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1630 tmpMeta[10] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[8]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[8]) - 3
))) + (2)))))
;
1631#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1632 if (listEmpty(tmpMeta[9])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[9]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1633#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1634 tmpMeta[11] = MMC_CAR(tmpMeta[9])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[9]) - 3
))) + (1)))))
;
1635#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1636 tmpMeta[12] = MMC_CDR(tmpMeta[9])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[9]) - 3
))) + (2)))))
;
1637#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1638 if (listEmpty(tmpMeta[12])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[12]) - 3))) == (((0)
<< 10) + (((0) & 255) << 2)))
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1639#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1640 tmpMeta[13] = MMC_CAR(tmpMeta[12])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[12]) - 3
))) + (1)))))
;
1641#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1642 tmpMeta[14] = MMC_CDR(tmpMeta[12])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[12]) - 3
))) + (2)))))
;
1643#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1644 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[13],3,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[13]) - 3)))==(((1 +1
) << 10) + (((3 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1645#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1646 tmpMeta[15] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[13]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[13]) - 3
))) + (2)))))
;
1647#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1648 tmp1 = mmc_unbox_integer(tmpMeta[15])(((mmc_sint_t) (tmpMeta[15])) >> 1);
1649#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1650 if (listEmpty(tmpMeta[14])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[14]) - 3))) == (((0)
<< 10) + (((0) & 255) << 2)))
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1651#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1652 tmpMeta[16] = MMC_CAR(tmpMeta[14])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[14]) - 3
))) + (1)))))
;
1653#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1654 tmpMeta[17] = MMC_CDR(tmpMeta[14])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[14]) - 3
))) + (2)))))
;
1655#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1656 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[16],3,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[16]) - 3)))==(((1 +1
) << 10) + (((3 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1657#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1658 tmpMeta[18] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[16]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[16]) - 3
))) + (2)))))
;
1659#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1660 tmp2 = mmc_unbox_integer(tmpMeta[18])(((mmc_sint_t) (tmpMeta[18])) >> 1);
1661#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1662 if (listEmpty(tmpMeta[17])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[17]) - 3))) == (((0)
<< 10) + (((0) & 255) << 2)))
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1663#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1664 tmpMeta[19] = MMC_CAR(tmpMeta[17])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[17]) - 3
))) + (1)))))
;
1665#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1666 tmpMeta[20] = MMC_CDR(tmpMeta[17])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[17]) - 3
))) + (2)))))
;
1667#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1668 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[19],3,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[19]) - 3)))==(((1 +1
) << 10) + (((3 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1669#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1670 tmpMeta[21] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[19]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[19]) - 3
))) + (2)))))
;
1671#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1672 tmp3 = mmc_unbox_integer(tmpMeta[21])(((mmc_sint_t) (tmpMeta[21])) >> 1);
1673#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1674 if (listEmpty(tmpMeta[20])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[20]) - 3))) == (((0)
<< 10) + (((0) & 255) << 2)))
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1675#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1676 tmpMeta[22] = MMC_CAR(tmpMeta[20])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[20]) - 3
))) + (1)))))
;
1677#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1678 tmpMeta[23] = MMC_CDR(tmpMeta[20])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[20]) - 3
))) + (2)))))
;
1679#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1680 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[22],0,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[22]) - 3)))==(((1 +1
) << 10) + (((0 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1681#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1682 tmpMeta[24] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[22]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[22]) - 3
))) + (2)))))
;
1683#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1684 tmp4 = mmc_unbox_integer(tmpMeta[24])(((mmc_sint_t) (tmpMeta[24])) >> 1);
1685#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1686 if (!listEmpty(tmpMeta[23])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[23]) - 3))) == (((0)
<< 10) + (((0) & 255) << 2)))
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1687#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1688 _crefFrom = tmpMeta[7];
1689#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1690 _crefTo = tmpMeta[10];
1691#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1692 _condition = tmpMeta[11];
1693#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1694 _immediate = tmp1 /* pattern as ty=Boolean */;
1695#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1696 _reset = tmp2 /* pattern as ty=Boolean */;
1697#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1698 _synchronize = tmp3 /* pattern as ty=Boolean */;
1699#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1700 _priority = tmp4 /* pattern as ty=Integer */;
1701#line 1701 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1702
1703#line 1833 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1704 _from = omc_List_position1OnTrue(threadData, _states, boxvar_StateMachineFlatten_sMCompEqualsRef((void*)((char*)(&(boxvar_lit_StateMachineFlatten_sMCompEqualsRef
).header) + 3))
, _crefFrom);
1705#line 1705 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1706
1707#line 1834 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1708 _to = omc_List_position1OnTrue(threadData, _states, boxvar_StateMachineFlatten_sMCompEqualsRef((void*)((char*)(&(boxvar_lit_StateMachineFlatten_sMCompEqualsRef
).header) + 3))
, _crefTo);
1709#line 1709 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1710
1711#line 1836 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1712 tmpMeta[0] = mmc_mk_box8(3, &StateMachineFlatten_Transition_TRANSITION__desc, mmc_mk_integermmc_mk_icon(_from), mmc_mk_integermmc_mk_icon(_to), _condition, mmc_mk_boolean(_immediate)((_immediate) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), mmc_mk_boolean(_reset)((_reset) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), mmc_mk_boolean(_synchronize)((_synchronize) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), mmc_mk_integermmc_mk_icon(_priority));
1713#line 1836 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1714 _trans = tmpMeta[0];
1715#line 1715 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1716 _return: OMC_LABEL_UNUSED__attribute__((unused))
1717 return _trans;
1718}
1719
1720PROTECTED_FUNCTION_STATIC modelica_boolean omc_StateMachineFlatten_priorityLt(threadData_t *threadData, modelica_metatype _inTrans1, modelica_metatype _inTrans2)
1721{
1722 modelica_boolean _res;
1723 modelica_integer _priority1;
1724 modelica_integer _priority2;
1725 modelica_integer tmp1;
1726 modelica_integer tmp2;
1727 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1728 MMC_SO()mmc_check_stackoverflow(threadData);
1729 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1730 // _res has no default value.
1731 // _priority1 has no default value.
1732 // _priority2 has no default value.
1733#line 1804 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1734 /* Pattern-matching assignment */
1735#line 1804 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1736 tmpMeta[0] = _inTrans1;
1737#line 1804 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1738 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (8)))))
;
1739#line 1804 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1740 tmp1 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
1741#line 1804 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1742 _priority1 = tmp1 /* pattern as ty=Integer */;
1743#line 1743 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1744
1745#line 1805 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1746 /* Pattern-matching assignment */
1747#line 1805 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1748 tmpMeta[0] = _inTrans2;
1749#line 1805 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1750 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (8)))))
;
1751#line 1805 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1752 tmp2 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
1753#line 1805 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1754 _priority2 = tmp2 /* pattern as ty=Integer */;
1755#line 1755 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1756
1757#line 1806 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1758 _res = (_priority1 < _priority2);
1759#line 1759 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1760 _return: OMC_LABEL_UNUSED__attribute__((unused))
1761 return _res;
1762}
1763PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_priorityLt(threadData_t *threadData, modelica_metatype _inTrans1, modelica_metatype _inTrans2)
1764{
1765 modelica_boolean _res;
1766 modelica_metatype out_res;
1767 _res = omc_StateMachineFlatten_priorityLt(threadData, _inTrans1, _inTrans2);
1768 out_res = mmc_mk_icon(_res);
1769 return out_res;
1770}
1771
1772PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_extractCondtionFromTransition(threadData_t *threadData, modelica_metatype _trans)
1773{
1774 modelica_metatype _condition = NULL((void*)0);
1775 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1776 MMC_SO()mmc_check_stackoverflow(threadData);
1777 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1778 // _condition has no default value.
1779#line 1792 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1780 /* Pattern-matching assignment */
1781#line 1792 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1782 tmpMeta[0] = _trans;
1783#line 1792 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1784 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
1785#line 1792 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1786 _condition = tmpMeta[1];
1787#line 1787 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1788 _return: OMC_LABEL_UNUSED__attribute__((unused))
1789 return _condition;
1790}
1791
1792PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_createTandC(threadData_t *threadData, modelica_metatype _inSMComps, modelica_metatype _inTransitions, modelica_metatype *out_c)
1793{
1794 modelica_metatype _t = NULL((void*)0);
1795 modelica_metatype _c = NULL((void*)0);
1796 modelica_metatype _transitions = NULL((void*)0);
1797 MMC_SO()mmc_check_stackoverflow(threadData);
1798 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1799 // _t has no default value.
1800 // _c has no default value.
1801 // _transitions has no default value.
1802#line 1775 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1803 _transitions = omc_List_map1(threadData, _inTransitions, boxvar_StateMachineFlatten_createTransition((void*)((char*)(&(boxvar_lit_StateMachineFlatten_createTransition
).header) + 3))
, _inSMComps);
1804#line 1804 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1805
1806#line 1779 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1807 _t = omc_List_sort(threadData, _transitions, boxvar_StateMachineFlatten_priorityLt((void*)((char*)(&(boxvar_lit_StateMachineFlatten_priorityLt
).header) + 3))
);
1808#line 1808 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1809
1810#line 1785 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1811 _c = omc_List_map(threadData, _t, boxvar_StateMachineFlatten_extractCondtionFromTransition((void*)((char*)(&(boxvar_lit_StateMachineFlatten_extractCondtionFromTransition
).header) + 3))
);
1812#line 1812 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1813 _return: OMC_LABEL_UNUSED__attribute__((unused))
1814 if (out_c) { *out_c = _c; }
1815 return _t;
1816}
1817
1818PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_createVarWithStartValue(threadData_t *threadData, modelica_metatype _componentRef, modelica_metatype _kind, modelica_metatype _ty, modelica_metatype _startExp, modelica_metatype _dims)
1819{
1820 modelica_metatype _outVar = NULL((void*)0);
1821 modelica_metatype _var = NULL((void*)0);
1822 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
1823 MMC_SO()mmc_check_stackoverflow(threadData);
1824 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1825 // _outVar has no default value.
1826 // _var has no default value.
1827#line 1760 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1828 tmpMeta[0] = mmc_mk_box14(3, &DAE_Element_VAR__desc, _componentRef, _kind, _OMC_LIT46((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3)), _OMC_LIT47((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3)), _OMC_LIT48((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3)), _ty, mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)), _dims, _OMC_LIT49((void*)((char*)(&(_OMC_LIT_STRUCT49).header) + 3)), _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)), mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)), mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)), _OMC_LIT50((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3)));
1829#line 1760 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1830 _var = tmpMeta[0];
1831#line 1831 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1832
1833#line 1762 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1834 _outVar = omc_StateMachineFlatten_setVarFixedStartValue(threadData, _var, _startExp);
1835#line 1835 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1836 _return: OMC_LABEL_UNUSED__attribute__((unused))
1837 return _outVar;
1838}
1839
1840PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_createVarWithDefaults(threadData_t *threadData, modelica_metatype _componentRef, modelica_metatype _kind, modelica_metatype _ty, modelica_metatype _dims)
1841{
1842 modelica_metatype _var = NULL((void*)0);
1843 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
1844 MMC_SO()mmc_check_stackoverflow(threadData);
1845 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1846 // _var has no default value.
1847#line 1744 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1848 tmpMeta[0] = mmc_mk_box14(3, &DAE_Element_VAR__desc, _componentRef, _kind, _OMC_LIT46((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3)), _OMC_LIT47((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3)), _OMC_LIT48((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3)), _ty, mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)), _dims, _OMC_LIT49((void*)((char*)(&(_OMC_LIT_STRUCT49).header) + 3)), _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)), mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)), mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)), _OMC_LIT50((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3)));
1849#line 1744 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1850 _var = tmpMeta[0];
1851#line 1851 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1852 _return: OMC_LABEL_UNUSED__attribute__((unused))
1853 return _var;
1854}
1855
1856PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_qCref(threadData_t *threadData, modelica_string _ident, modelica_metatype _identType, modelica_metatype _subscriptLst, modelica_metatype _componentRef)
1857{
1858 modelica_metatype _outQual = NULL((void*)0);
1859 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
1860 MMC_SO()mmc_check_stackoverflow(threadData);
1861 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1862 // _outQual has no default value.
1863#line 1732 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1864 tmpMeta[0] = mmc_mk_box4(4, &DAE_ComponentRef_CREF__IDENT__desc, _ident, _identType, _subscriptLst);
1865#line 1732 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
1866 _outQual = omc_ComponentReference_joinCrefs(threadData, _componentRef, tmpMeta[0]);
1867#line 1867 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
1868 _return: OMC_LABEL_UNUSED__attribute__((unused))
1869 return _outQual;
1870}
1871
1872static modelica_metatype closure0_Expression_expEqual(threadData_t *thData, modelica_metatype closure, modelica_metatype inExp2)
1873{
1874 modelica_metatype inExp1 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),1))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (1)))))
;
1875 return boxptr_Expression_expEqual(thData, inExp1, inExp2);
1876}
1877PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_basicFlatSmSemantics(threadData_t *threadData, modelica_string _ident, modelica_metatype _q, modelica_metatype _inTransitions)
1878{
1879 modelica_metatype _flatSmSemantics = NULL((void*)0);
1880 modelica_metatype _crefInitialState = NULL((void*)0);
1881 modelica_metatype _preRef = NULL((void*)0);
1882 modelica_metatype _defaultIntVar = NULL((void*)0);
1883 modelica_metatype _defaultBoolVar = NULL((void*)0);
1884 modelica_metatype _vars = NULL((void*)0);
1885 modelica_metatype _knowns = NULL((void*)0);
1886 modelica_integer _i;
1887 modelica_metatype _cref = NULL((void*)0);
1888 modelica_metatype _nStatesRef = NULL((void*)0);
1889 modelica_metatype _activeRef = NULL((void*)0);
1890 modelica_metatype _resetRef = NULL((void*)0);
1891 modelica_metatype _selectedStateRef = NULL((void*)0);
1892 modelica_metatype _selectedResetRef = NULL((void*)0);
1893 modelica_metatype _firedRef = NULL((void*)0);
1894 modelica_metatype _activeStateRef = NULL((void*)0);
1895 modelica_metatype _activeResetRef = NULL((void*)0);
1896 modelica_metatype _nextStateRef = NULL((void*)0);
1897 modelica_metatype _nextResetRef = NULL((void*)0);
1898 modelica_metatype _stateMachineInFinalStateRef = NULL((void*)0);
1899 modelica_metatype _var = NULL((void*)0);
1900 modelica_metatype _nStatesVar = NULL((void*)0);
1901 modelica_metatype _activeVar = NULL((void*)0);
1902 modelica_metatype _resetVar = NULL((void*)0);
1903 modelica_metatype _selectedStateVar = NULL((void*)0);
1904 modelica_metatype _selectedResetVar = NULL((void*)0);
1905 modelica_metatype _firedVar = NULL((void*)0);
1906 modelica_metatype _activeStateVar = NULL((void*)0);
1907 modelica_metatype _activeResetVar = NULL((void*)0);
1908 modelica_metatype _nextStateVar = NULL((void*)0);
1909 modelica_metatype _nextResetVar = NULL((void*)0);
1910 modelica_metatype _stateMachineInFinalStateVar = NULL((void*)0);
1911 modelica_integer _nStates;
1912 modelica_metatype _nStatesDims = NULL((void*)0);
1913 modelica_metatype _nStatesArrayBool = NULL((void*)0);
1914 modelica_metatype _activeResetStatesRefs = NULL((void*)0);
1915 modelica_metatype _nextResetStatesRefs = NULL((void*)0);
1916 modelica_metatype _finalStatesRefs = NULL((void*)0);
1917 modelica_metatype _activeResetStatesVars = NULL((void*)0);
1918 modelica_metatype _nextResetStatesVars = NULL((void*)0);
1919 modelica_metatype _finalStatesVars = NULL((void*)0);
1920 modelica_metatype _t = NULL((void*)0);
1921 modelica_integer _nTransitions;
1922 modelica_metatype _tDims = NULL((void*)0);
1923 modelica_metatype _tArrayInteger = NULL((void*)0);
1924 modelica_metatype _tArrayBool = NULL((void*)0);
1925 modelica_metatype _tFromRefs = NULL((void*)0);
1926 modelica_metatype _tToRefs = NULL((void*)0);
1927 modelica_metatype _tImmediateRefs = NULL((void*)0);
1928 modelica_metatype _tResetRefs = NULL((void*)0);
1929 modelica_metatype _tSynchronizeRefs = NULL((void*)0);
1930 modelica_metatype _tPriorityRefs = NULL((void*)0);
1931 modelica_metatype _tFromVars = NULL((void*)0);
1932 modelica_metatype _tToVars = NULL((void*)0);
1933 modelica_metatype _tImmediateVars = NULL((void*)0);
1934 modelica_metatype _tResetVars = NULL((void*)0);
1935 modelica_metatype _tSynchronizeVars = NULL((void*)0);
1936 modelica_metatype _tPriorityVars = NULL((void*)0);
1937 modelica_integer _from;
1938 modelica_integer _to;
1939 modelica_metatype _condition = NULL((void*)0);
1940 modelica_boolean _immediate;
1941 modelica_boolean _reset;
1942 modelica_boolean _synchronize;
1943 modelica_integer _priority;
1944 modelica_metatype _cExps = NULL((void*)0);
1945 modelica_metatype _cRefs = NULL((void*)0);
1946 modelica_metatype _cImmediateRefs = NULL((void*)0);
1947 modelica_metatype _cVars = NULL((void*)0);
1948 modelica_metatype _cImmediateVars = NULL((void*)0);
1949 modelica_metatype _eqs = NULL((void*)0);
1950 modelica_metatype _selectedStateEqn = NULL((void*)0);
1951 modelica_metatype _selectedResetEqn = NULL((void*)0);
1952 modelica_metatype _firedEqn = NULL((void*)0);
1953 modelica_metatype _activeStateEqn = NULL((void*)0);
1954 modelica_metatype _activeResetEqn = NULL((void*)0);
1955 modelica_metatype _nextStateEqn = NULL((void*)0);
1956 modelica_metatype _nextResetEqn = NULL((void*)0);
1957 modelica_metatype _exp = NULL((void*)0);
1958 modelica_metatype _rhs = NULL((void*)0);
1959 modelica_metatype _expCond = NULL((void*)0);
1960 modelica_metatype _expThen = NULL((void*)0);
1961 modelica_metatype _expElse = NULL((void*)0);
1962 modelica_metatype _exp1 = NULL((void*)0);
1963 modelica_metatype _exp2 = NULL((void*)0);
1964 modelica_metatype _expIf = NULL((void*)0);
1965 modelica_metatype _expLst = NULL((void*)0);
1966 modelica_metatype _bindExp = NULL((void*)0);
1967 modelica_integer tmp1;
1968 modelica_integer tmp2;
1969 modelica_integer tmp3;
1970 modelica_integer tmp4;
1971 modelica_integer tmp5;
1972 modelica_integer tmp6;
1973 modelica_integer tmp7;
1974 modelica_integer tmp8;
1975 modelica_integer tmp9;
1976 modelica_integer tmp10;
1977 modelica_integer tmp11;
1978 modelica_integer tmp12;
1979 modelica_integer tmp13;
1980 modelica_integer tmp14;
1981 modelica_integer tmp15;
1982 modelica_boolean tmp16;
1983 modelica_integer tmp17;
1984 modelica_integer tmp18;
1985 modelica_integer tmp19;
1986 modelica_boolean tmp20;
1987 modelica_integer tmp21;
1988 modelica_integer tmp22;
1989 modelica_integer tmp23;
1990 modelica_integer tmp24;
1991 modelica_integer tmp25;
1992 modelica_integer tmp26;
1993 modelica_integer tmp27;
1994 modelica_integer tmp28;
1995 modelica_integer tmp29;
1996 modelica_boolean tmp30;
1997 modelica_integer tmp31;
1998 modelica_integer tmp32;
1999 modelica_integer tmp33;
2000 modelica_metatype tmpMeta[8] __attribute__((unused)) = {0};
2001 MMC_SO()mmc_check_stackoverflow(threadData);
2002 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2003 // _flatSmSemantics has no default value.
2004 // _crefInitialState has no default value.
2005 // _preRef has no default value.
2006 // _defaultIntVar has no default value.
2007 // _defaultBoolVar has no default value.
2008 // _vars has no default value.
2009 // _knowns has no default value.
2010 // _i has no default value.
2011 // _cref has no default value.
2012 // _nStatesRef has no default value.
2013 // _activeRef has no default value.
2014 // _resetRef has no default value.
2015 // _selectedStateRef has no default value.
2016 // _selectedResetRef has no default value.
2017 // _firedRef has no default value.
2018 // _activeStateRef has no default value.
2019 // _activeResetRef has no default value.
2020 // _nextStateRef has no default value.
2021 // _nextResetRef has no default value.
2022 // _stateMachineInFinalStateRef has no default value.
2023 // _var has no default value.
2024 // _nStatesVar has no default value.
2025 // _activeVar has no default value.
2026 // _resetVar has no default value.
2027 // _selectedStateVar has no default value.
2028 // _selectedResetVar has no default value.
2029 // _firedVar has no default value.
2030 // _activeStateVar has no default value.
2031 // _activeResetVar has no default value.
2032 // _nextStateVar has no default value.
2033 // _nextResetVar has no default value.
2034 // _stateMachineInFinalStateVar has no default value.
2035 // _nStates has no default value.
2036 // _nStatesDims has no default value.
2037 // _nStatesArrayBool has no default value.
2038 // _activeResetStatesRefs has no default value.
2039 // _nextResetStatesRefs has no default value.
2040 // _finalStatesRefs has no default value.
2041 // _activeResetStatesVars has no default value.
2042 // _nextResetStatesVars has no default value.
2043 // _finalStatesVars has no default value.
2044 // _t has no default value.
2045 // _nTransitions has no default value.
2046 // _tDims has no default value.
2047 // _tArrayInteger has no default value.
2048 // _tArrayBool has no default value.
2049 // _tFromRefs has no default value.
2050 // _tToRefs has no default value.
2051 // _tImmediateRefs has no default value.
2052 // _tResetRefs has no default value.
2053 // _tSynchronizeRefs has no default value.
2054 // _tPriorityRefs has no default value.
2055 // _tFromVars has no default value.
2056 // _tToVars has no default value.
2057 // _tImmediateVars has no default value.
2058 // _tResetVars has no default value.
2059 // _tSynchronizeVars has no default value.
2060 // _tPriorityVars has no default value.
2061 // _from has no default value.
2062 // _to has no default value.
2063 // _condition has no default value.
2064 // _immediate has no default value.
2065 // _reset has no default value.
2066 // _synchronize has no default value.
2067 // _priority has no default value.
2068 // _cExps has no default value.
2069 // _cRefs has no default value.
2070 // _cImmediateRefs has no default value.
2071 // _cVars has no default value.
2072 // _cImmediateVars has no default value.
2073 // _eqs has no default value.
2074 // _selectedStateEqn has no default value.
2075 // _selectedResetEqn has no default value.
2076 // _firedEqn has no default value.
2077 // _activeStateEqn has no default value.
2078 // _activeResetEqn has no default value.
2079 // _nextStateEqn has no default value.
2080 // _nextResetEqn has no default value.
2081 // _exp has no default value.
2082 // _rhs has no default value.
2083 // _expCond has no default value.
2084 // _expThen has no default value.
2085 // _expElse has no default value.
2086 // _exp1 has no default value.
2087 // _exp2 has no default value.
2088 // _expIf has no default value.
2089 // _expLst has no default value.
2090 // _bindExp has no default value.
2091#line 1388 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2092 /* Pattern-matching assignment */
2093#line 1388 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2094 tmpMeta[0] = listHead(_q)boxptr_listHead(threadData,_q);
2095#line 1388 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2096 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],29,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((2 +1)
<< 10) + (((29 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2097#line 1388 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2098 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
2099#line 1388 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2100 _crefInitialState = tmpMeta[1];
2101#line 2101 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2102
2103#line 1389 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2104 _preRef = omc_ComponentReference_crefPrefixString(threadData, _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)), _crefInitialState);
2105#line 2105 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2106
2107#line 1391 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2108 _t = omc_StateMachineFlatten_createTandC(threadData, _q, _inTransitions ,&_cExps);
2109#line 2109 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2110
2111#line 1395 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2112 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2113#line 1395 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2114 _defaultIntVar = omc_StateMachineFlatten_createVarWithDefaults(threadData, omc_ComponentReference_makeDummyCref(threadData), _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)), _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)), tmpMeta[0]);
2115#line 2115 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2116
2117#line 1396 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2118 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2119#line 1396 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2120 _defaultBoolVar = omc_StateMachineFlatten_createVarWithDefaults(threadData, omc_ComponentReference_makeDummyCref(threadData), _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)), tmpMeta[0]);
2121#line 2121 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2122
2123#line 1397 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2124 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2125#line 1397 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2126 _knowns = tmpMeta[0];
2127#line 2127 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2128
2129#line 1398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2130 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2131#line 1398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2132 _vars = tmpMeta[0];
2133#line 2133 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2134
2135#line 1401 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2136 _nStates = listLength(_q);
2137#line 2137 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2138
2139#line 1402 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2140 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2141#line 1402 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2142 _nStatesRef = omc_StateMachineFlatten_qCref(threadData, _OMC_LIT53((void*)((char*)(&(_OMC_LIT_STRUCT53).header) + 3)), _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)), tmpMeta[0], _preRef);
2143#line 2143 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2144
2145#line 1403 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2146 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2147#line 1403 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2148 _nStatesVar = omc_StateMachineFlatten_createVarWithDefaults(threadData, _nStatesRef, _OMC_LIT54((void*)((char*)(&(_OMC_LIT_STRUCT54).header) + 3)), _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)), tmpMeta[0]);
2149#line 2149 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2150
2151#line 1404 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2152 tmpMeta[0] = mmc_mk_box2(3, &DAE_Exp_ICONST__desc, mmc_mk_integermmc_mk_icon(_nStates));
2153#line 1404 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2154 _nStatesVar = omc_DAEUtil_setElementVarBinding(threadData, _nStatesVar, mmc_mk_some(tmpMeta[0]));
2155#line 2155 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2156
2157#line 1405 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2158 tmpMeta[0] = mmc_mk_cons(_nStatesVar, _knowns);
2159#line 1405 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2160 _knowns = tmpMeta[0];
2161#line 2161 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2162
2163#line 1408 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2164 _nTransitions = listLength(_t);
2165#line 2165 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2166
2167#line 1409 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2168 tmpMeta[1] = mmc_mk_box2(3, &DAE_Dimension_DIM__INTEGER__desc, mmc_mk_integermmc_mk_icon(_nTransitions));
2169#line 1409 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2170 tmpMeta[0] = mmc_mk_cons(tmpMeta[1], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
2171#line 1409 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2172 _tDims = tmpMeta[0];
2173#line 2173 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2174
2175#line 1410 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2176 tmpMeta[0] = mmc_mk_box3(9, &DAE_Type_T__ARRAY__desc, _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)), _tDims);
2177#line 1410 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2178 _tArrayInteger = tmpMeta[0];
2179#line 2179 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2180
2181#line 1411 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2182 tmpMeta[0] = mmc_mk_box3(9, &DAE_Type_T__ARRAY__desc, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)), _tDims);
2183#line 1411 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2184 _tArrayBool = tmpMeta[0];
2185#line 2185 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2186
2187#line 1412 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2188 _tFromRefs = arrayCreate(_nTransitions, omc_ComponentReference_makeDummyCref(threadData));
2189#line 2189 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2190
2191#line 1413 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2192 _tToRefs = arrayCreate(_nTransitions, omc_ComponentReference_makeDummyCref(threadData));
2193#line 2193 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2194
2195#line 1414 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2196 _tImmediateRefs = arrayCreate(_nTransitions, omc_ComponentReference_makeDummyCref(threadData));
2197#line 2197 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2198
2199#line 1415 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2200 _tResetRefs = arrayCreate(_nTransitions, omc_ComponentReference_makeDummyCref(threadData));
2201#line 2201 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2202
2203#line 1416 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2204 _tSynchronizeRefs = arrayCreate(_nTransitions, omc_ComponentReference_makeDummyCref(threadData));
2205#line 2205 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2206
2207#line 1417 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2208 _tPriorityRefs = arrayCreate(_nTransitions, omc_ComponentReference_makeDummyCref(threadData));
2209#line 2209 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2210
2211#line 1418 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2212 _tFromVars = arrayCreate(_nTransitions, _defaultIntVar);
2213#line 2213 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2214
2215#line 1419 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2216 _tToVars = arrayCreate(_nTransitions, _defaultIntVar);
2217#line 2217 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2218
2219#line 1420 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2220 _tImmediateVars = arrayCreate(_nTransitions, _defaultBoolVar);
2221#line 2221 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2222
2223#line 1421 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2224 _tResetVars = arrayCreate(_nTransitions, _defaultBoolVar);
2225#line 2225 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2226
2227#line 1422 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2228 _tSynchronizeVars = arrayCreate(_nTransitions, _defaultBoolVar);
2229#line 2229 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2230
2231#line 1423 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2232 _tPriorityVars = arrayCreate(_nTransitions, _defaultIntVar);
2233#line 2233 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2234
2235#line 1424 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2236 _i = ((modelica_integer) 0);
2237#line 2237 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2238
2239#line 1425 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2240 {
2241#line 1425 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2242 modelica_metatype _t1;
2243#line 1425 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2244 for (tmpMeta[0] = _t; !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)))))
)
2245#line 1425 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2246 {
2247#line 1425 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2248 _t1 = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
2249#line 1426 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2250 _i = ((modelica_integer) 1) + _i;
2251#line 2251 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2252
2253#line 1427 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2254 /* Pattern-matching assignment */
2255#line 1427 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2256 tmpMeta[1] = _t1;
2257#line 1427 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2258 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
2259#line 1427 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2260 tmp1 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
2261#line 1427 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2262 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
2263#line 1427 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2264 tmp2 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
2265#line 1427 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2266 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (5)))))
;
2267#line 1427 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2268 tmp3 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
2269#line 1427 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2270 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (6)))))
;
2271#line 1427 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2272 tmp4 = mmc_unbox_integer(tmpMeta[5])(((mmc_sint_t) (tmpMeta[5])) >> 1);
2273#line 1427 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2274 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (7)))))
;
2275#line 1427 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2276 tmp5 = mmc_unbox_integer(tmpMeta[6])(((mmc_sint_t) (tmpMeta[6])) >> 1);
2277#line 1427 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2278 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (8)))))
;
2279#line 1427 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2280 tmp6 = mmc_unbox_integer(tmpMeta[7])(((mmc_sint_t) (tmpMeta[7])) >> 1);
2281#line 1427 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2282 _from = tmp1 /* pattern as ty=Integer */;
2283#line 1427 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2284 _to = tmp2 /* pattern as ty=Integer */;
2285#line 1427 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2286 _immediate = tmp3 /* pattern as ty=Boolean */;
2287#line 1427 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2288 _reset = tmp4 /* pattern as ty=Boolean */;
2289#line 1427 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2290 _synchronize = tmp5 /* pattern as ty=Boolean */;
2291#line 1427 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2292 _priority = tmp6 /* pattern as ty=Integer */;
2293#line 2293 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2294
2295#line 1428 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2296 tmpMeta[2] = mmc_mk_box2(3, &DAE_Exp_ICONST__desc, mmc_mk_integermmc_mk_icon(_i));
2297#line 1428 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2298 tmpMeta[3] = mmc_mk_box2(5, &DAE_Subscript_INDEX__desc, tmpMeta[2]);
2299#line 1428 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2300 tmpMeta[1] = mmc_mk_cons(tmpMeta[3], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
2301#line 1428 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2302 _tFromRefs = arrayUpdate(_tFromRefs, _i, omc_StateMachineFlatten_qCref(threadData, _OMC_LIT55, _tArrayInteger, tmpMeta[1], _preRef))boxptr_arrayUpdate(threadData,_tFromRefs,mmc_mk_icon(_i),omc_StateMachineFlatten_qCref
(threadData, ((void*)((char*)(&(_OMC_LIT_STRUCT55).header
) + 3)), _tArrayInteger, tmpMeta[1], _preRef))
;
2303#line 2303 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2304
2305#line 1429 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2306 _tFromVars = arrayUpdate(_tFromVars, _i, omc_StateMachineFlatten_createVarWithDefaults(threadData, arrayGet(_tFromRefs, _i), _OMC_LIT54, _OMC_LIT52, _tDims))boxptr_arrayUpdate(threadData,_tFromVars,mmc_mk_icon(_i),omc_StateMachineFlatten_createVarWithDefaults
(threadData, nobox_arrayGet(threadData,_tFromRefs,_i), ((void
*)((char*)(&(_OMC_LIT_STRUCT54).header) + 3)), ((void*)((
char*)(&(_OMC_LIT_STRUCT52).header) + 3)), _tDims))
;
2307#line 2307 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2308
2309#line 1430 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2310 tmpMeta[1] = mmc_mk_box2(3, &DAE_Exp_ICONST__desc, mmc_mk_integermmc_mk_icon(_from));
2311#line 1430 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2312 _tFromVars = arrayUpdate(_tFromVars, _i, omc_DAEUtil_setElementVarBinding(threadData, arrayGet(_tFromVars, _i), mmc_mk_some(tmpMeta[1])))boxptr_arrayUpdate(threadData,_tFromVars,mmc_mk_icon(_i),omc_DAEUtil_setElementVarBinding
(threadData, nobox_arrayGet(threadData,_tFromVars,_i), mmc_mk_some
(tmpMeta[1])))
;
2313#line 2313 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2314
2315#line 1431 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2316 tmpMeta[1] = mmc_mk_cons(arrayGet(_tFromVars, _i)nobox_arrayGet(threadData,_tFromVars,_i), _knowns);
2317#line 1431 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2318 _knowns = tmpMeta[1];
2319#line 2319 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2320
2321#line 1433 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2322 tmpMeta[2] = mmc_mk_box2(3, &DAE_Exp_ICONST__desc, mmc_mk_integermmc_mk_icon(_i));
2323#line 1433 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2324 tmpMeta[3] = mmc_mk_box2(5, &DAE_Subscript_INDEX__desc, tmpMeta[2]);
2325#line 1433 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2326 tmpMeta[1] = mmc_mk_cons(tmpMeta[3], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
2327#line 1433 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2328 _tToRefs = arrayUpdate(_tToRefs, _i, omc_StateMachineFlatten_qCref(threadData, _OMC_LIT56, _tArrayInteger, tmpMeta[1], _preRef))boxptr_arrayUpdate(threadData,_tToRefs,mmc_mk_icon(_i),omc_StateMachineFlatten_qCref
(threadData, ((void*)((char*)(&(_OMC_LIT_STRUCT56).header
) + 3)), _tArrayInteger, tmpMeta[1], _preRef))
;
2329#line 2329 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2330
2331#line 1434 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2332 _tToVars = arrayUpdate(_tToVars, _i, omc_StateMachineFlatten_createVarWithDefaults(threadData, arrayGet(_tToRefs, _i), _OMC_LIT54, _OMC_LIT52, _tDims))boxptr_arrayUpdate(threadData,_tToVars,mmc_mk_icon(_i),omc_StateMachineFlatten_createVarWithDefaults
(threadData, nobox_arrayGet(threadData,_tToRefs,_i), ((void*)
((char*)(&(_OMC_LIT_STRUCT54).header) + 3)), ((void*)((char
*)(&(_OMC_LIT_STRUCT52).header) + 3)), _tDims))
;
2333#line 2333 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2334
2335#line 1435 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2336 tmpMeta[1] = mmc_mk_box2(3, &DAE_Exp_ICONST__desc, mmc_mk_integermmc_mk_icon(_to));
2337#line 1435 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2338 _tToVars = arrayUpdate(_tToVars, _i, omc_DAEUtil_setElementVarBinding(threadData, arrayGet(_tToVars, _i), mmc_mk_some(tmpMeta[1])))boxptr_arrayUpdate(threadData,_tToVars,mmc_mk_icon(_i),omc_DAEUtil_setElementVarBinding
(threadData, nobox_arrayGet(threadData,_tToVars,_i), mmc_mk_some
(tmpMeta[1])))
;
2339#line 2339 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2340
2341#line 1436 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2342 tmpMeta[1] = mmc_mk_cons(arrayGet(_tToVars, _i)nobox_arrayGet(threadData,_tToVars,_i), _knowns);
2343#line 1436 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2344 _knowns = tmpMeta[1];
2345#line 2345 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2346
2347#line 1438 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2348 tmpMeta[2] = mmc_mk_box2(3, &DAE_Exp_ICONST__desc, mmc_mk_integermmc_mk_icon(_i));
2349#line 1438 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2350 tmpMeta[3] = mmc_mk_box2(5, &DAE_Subscript_INDEX__desc, tmpMeta[2]);
2351#line 1438 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2352 tmpMeta[1] = mmc_mk_cons(tmpMeta[3], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
2353#line 1438 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2354 _tImmediateRefs = arrayUpdate(_tImmediateRefs, _i, omc_StateMachineFlatten_qCref(threadData, _OMC_LIT57, _tArrayBool, tmpMeta[1], _preRef))boxptr_arrayUpdate(threadData,_tImmediateRefs,mmc_mk_icon(_i)
,omc_StateMachineFlatten_qCref(threadData, ((void*)((char*)(&
(_OMC_LIT_STRUCT57).header) + 3)), _tArrayBool, tmpMeta[1], _preRef
))
;
2355#line 2355 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2356
2357#line 1439 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2358 _tImmediateVars = arrayUpdate(_tImmediateVars, _i, omc_StateMachineFlatten_createVarWithDefaults(threadData, arrayGet(_tImmediateRefs, _i), _OMC_LIT54, _OMC_LIT7, _tDims))boxptr_arrayUpdate(threadData,_tImmediateVars,mmc_mk_icon(_i)
,omc_StateMachineFlatten_createVarWithDefaults(threadData, nobox_arrayGet
(threadData,_tImmediateRefs,_i), ((void*)((char*)(&(_OMC_LIT_STRUCT54
).header) + 3)), ((void*)((char*)(&(_OMC_LIT_STRUCT7).header
) + 3)), _tDims))
;
2359#line 2359 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2360
2361#line 1440 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2362 tmpMeta[1] = mmc_mk_box2(6, &DAE_Exp_BCONST__desc, mmc_mk_boolean(_immediate)((_immediate) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))));
2363#line 1440 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2364 _tImmediateVars = arrayUpdate(_tImmediateVars, _i, omc_DAEUtil_setElementVarBinding(threadData, arrayGet(_tImmediateVars, _i), mmc_mk_some(tmpMeta[1])))boxptr_arrayUpdate(threadData,_tImmediateVars,mmc_mk_icon(_i)
,omc_DAEUtil_setElementVarBinding(threadData, nobox_arrayGet(
threadData,_tImmediateVars,_i), mmc_mk_some(tmpMeta[1])))
;
2365#line 2365 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2366
2367#line 1441 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2368 tmpMeta[1] = mmc_mk_cons(arrayGet(_tImmediateVars, _i)nobox_arrayGet(threadData,_tImmediateVars,_i), _knowns);
2369#line 1441 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2370 _knowns = tmpMeta[1];
2371#line 2371 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2372
2373#line 1443 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2374 tmpMeta[2] = mmc_mk_box2(3, &DAE_Exp_ICONST__desc, mmc_mk_integermmc_mk_icon(_i));
2375#line 1443 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2376 tmpMeta[3] = mmc_mk_box2(5, &DAE_Subscript_INDEX__desc, tmpMeta[2]);
2377#line 1443 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2378 tmpMeta[1] = mmc_mk_cons(tmpMeta[3], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
2379#line 1443 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2380 _tResetRefs = arrayUpdate(_tResetRefs, _i, omc_StateMachineFlatten_qCref(threadData, _OMC_LIT58, _tArrayBool, tmpMeta[1], _preRef))boxptr_arrayUpdate(threadData,_tResetRefs,mmc_mk_icon(_i),omc_StateMachineFlatten_qCref
(threadData, ((void*)((char*)(&(_OMC_LIT_STRUCT58).header
) + 3)), _tArrayBool, tmpMeta[1], _preRef))
;
2381#line 2381 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2382
2383#line 1444 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2384 _tResetVars = arrayUpdate(_tResetVars, _i, omc_StateMachineFlatten_createVarWithDefaults(threadData, arrayGet(_tResetRefs, _i), _OMC_LIT54, _OMC_LIT7, _tDims))boxptr_arrayUpdate(threadData,_tResetVars,mmc_mk_icon(_i),omc_StateMachineFlatten_createVarWithDefaults
(threadData, nobox_arrayGet(threadData,_tResetRefs,_i), ((void
*)((char*)(&(_OMC_LIT_STRUCT54).header) + 3)), ((void*)((
char*)(&(_OMC_LIT_STRUCT7).header) + 3)), _tDims))
;
2385#line 2385 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2386
2387#line 1445 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2388 tmpMeta[1] = mmc_mk_box2(6, &DAE_Exp_BCONST__desc, mmc_mk_boolean(_reset)((_reset) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))));
2389#line 1445 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2390 _tResetVars = arrayUpdate(_tResetVars, _i, omc_DAEUtil_setElementVarBinding(threadData, arrayGet(_tResetVars, _i), mmc_mk_some(tmpMeta[1])))boxptr_arrayUpdate(threadData,_tResetVars,mmc_mk_icon(_i),omc_DAEUtil_setElementVarBinding
(threadData, nobox_arrayGet(threadData,_tResetVars,_i), mmc_mk_some
(tmpMeta[1])))
;
2391#line 2391 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2392
2393#line 1446 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2394 tmpMeta[1] = mmc_mk_cons(arrayGet(_tResetVars, _i)nobox_arrayGet(threadData,_tResetVars,_i), _knowns);
2395#line 1446 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2396 _knowns = tmpMeta[1];
2397#line 2397 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2398
2399#line 1448 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2400 tmpMeta[2] = mmc_mk_box2(3, &DAE_Exp_ICONST__desc, mmc_mk_integermmc_mk_icon(_i));
2401#line 1448 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2402 tmpMeta[3] = mmc_mk_box2(5, &DAE_Subscript_INDEX__desc, tmpMeta[2]);
2403#line 1448 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2404 tmpMeta[1] = mmc_mk_cons(tmpMeta[3], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
2405#line 1448 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2406 _tSynchronizeRefs = arrayUpdate(_tSynchronizeRefs, _i, omc_StateMachineFlatten_qCref(threadData, _OMC_LIT59, _tArrayBool, tmpMeta[1], _preRef))boxptr_arrayUpdate(threadData,_tSynchronizeRefs,mmc_mk_icon(_i
),omc_StateMachineFlatten_qCref(threadData, ((void*)((char*)(
&(_OMC_LIT_STRUCT59).header) + 3)), _tArrayBool, tmpMeta[
1], _preRef))
;
2407#line 2407 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2408
2409#line 1449 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2410 _tSynchronizeVars = arrayUpdate(_tSynchronizeVars, _i, omc_StateMachineFlatten_createVarWithDefaults(threadData, arrayGet(_tSynchronizeRefs, _i), _OMC_LIT54, _OMC_LIT7, _tDims))boxptr_arrayUpdate(threadData,_tSynchronizeVars,mmc_mk_icon(_i
),omc_StateMachineFlatten_createVarWithDefaults(threadData, nobox_arrayGet
(threadData,_tSynchronizeRefs,_i), ((void*)((char*)(&(_OMC_LIT_STRUCT54
).header) + 3)), ((void*)((char*)(&(_OMC_LIT_STRUCT7).header
) + 3)), _tDims))
;
2411#line 2411 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2412
2413#line 1450 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2414 tmpMeta[1] = mmc_mk_box2(6, &DAE_Exp_BCONST__desc, mmc_mk_boolean(_synchronize)((_synchronize) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))));
2415#line 1450 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2416 _tSynchronizeVars = arrayUpdate(_tSynchronizeVars, _i, omc_DAEUtil_setElementVarBinding(threadData, arrayGet(_tSynchronizeVars, _i), mmc_mk_some(tmpMeta[1])))boxptr_arrayUpdate(threadData,_tSynchronizeVars,mmc_mk_icon(_i
),omc_DAEUtil_setElementVarBinding(threadData, nobox_arrayGet
(threadData,_tSynchronizeVars,_i), mmc_mk_some(tmpMeta[1])))
;
2417#line 2417 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2418
2419#line 1451 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2420 tmpMeta[1] = mmc_mk_cons(arrayGet(_tSynchronizeVars, _i)nobox_arrayGet(threadData,_tSynchronizeVars,_i), _knowns);
2421#line 1451 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2422 _knowns = tmpMeta[1];
2423#line 2423 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2424
2425#line 1453 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2426 tmpMeta[2] = mmc_mk_box2(3, &DAE_Exp_ICONST__desc, mmc_mk_integermmc_mk_icon(_i));
2427#line 1453 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2428 tmpMeta[3] = mmc_mk_box2(5, &DAE_Subscript_INDEX__desc, tmpMeta[2]);
2429#line 1453 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2430 tmpMeta[1] = mmc_mk_cons(tmpMeta[3], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
2431#line 1453 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2432 _tPriorityRefs = arrayUpdate(_tPriorityRefs, _i, omc_StateMachineFlatten_qCref(threadData, _OMC_LIT60, _tArrayInteger, tmpMeta[1], _preRef))boxptr_arrayUpdate(threadData,_tPriorityRefs,mmc_mk_icon(_i),
omc_StateMachineFlatten_qCref(threadData, ((void*)((char*)(&
(_OMC_LIT_STRUCT60).header) + 3)), _tArrayInteger, tmpMeta[1]
, _preRef))
;
2433#line 2433 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2434
2435#line 1454 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2436 _tPriorityVars = arrayUpdate(_tPriorityVars, _i, omc_StateMachineFlatten_createVarWithDefaults(threadData, arrayGet(_tPriorityRefs, _i), _OMC_LIT54, _OMC_LIT52, _tDims))boxptr_arrayUpdate(threadData,_tPriorityVars,mmc_mk_icon(_i),
omc_StateMachineFlatten_createVarWithDefaults(threadData, nobox_arrayGet
(threadData,_tPriorityRefs,_i), ((void*)((char*)(&(_OMC_LIT_STRUCT54
).header) + 3)), ((void*)((char*)(&(_OMC_LIT_STRUCT52).header
) + 3)), _tDims))
;
2437#line 2437 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2438
2439#line 1455 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2440 tmpMeta[1] = mmc_mk_box2(3, &DAE_Exp_ICONST__desc, mmc_mk_integermmc_mk_icon(_priority));
2441#line 1455 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2442 _tPriorityVars = arrayUpdate(_tPriorityVars, _i, omc_DAEUtil_setElementVarBinding(threadData, arrayGet(_tPriorityVars, _i), mmc_mk_some(tmpMeta[1])))boxptr_arrayUpdate(threadData,_tPriorityVars,mmc_mk_icon(_i),
omc_DAEUtil_setElementVarBinding(threadData, nobox_arrayGet(threadData
,_tPriorityVars,_i), mmc_mk_some(tmpMeta[1])))
;
2443#line 2443 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2444
2445#line 1456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2446 tmpMeta[1] = mmc_mk_cons(arrayGet(_tPriorityVars, _i)nobox_arrayGet(threadData,_tPriorityVars,_i), _knowns);
2447#line 1456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2448 _knowns = tmpMeta[1];
2449#line 2449 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2450 }
2451 }
2452
2453#line 1468 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2454 _cRefs = arrayCreate(_nTransitions, omc_ComponentReference_makeDummyCref(threadData));
2455#line 2455 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2456
2457#line 1469 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2458 _cImmediateRefs = arrayCreate(_nTransitions, omc_ComponentReference_makeDummyCref(threadData));
2459#line 2459 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2460
2461#line 1470 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2462 _cVars = arrayCreate(_nTransitions, _defaultBoolVar);
2463#line 2463 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2464
2465#line 1471 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2466 _cImmediateVars = arrayCreate(_nTransitions, _defaultBoolVar);
2467#line 2467 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2468
2469#line 1472 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2470 _i = ((modelica_integer) 0);
2471#line 2471 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2472
2473#line 1473 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2474 {
2475#line 1473 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2476 modelica_metatype _exp;
2477#line 1473 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2478 for (tmpMeta[0] = _cExps; !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)))))
)
2479#line 1473 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2480 {
2481#line 1473 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2482 _exp = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
2483#line 1474 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2484 _i = ((modelica_integer) 1) + _i;
2485#line 2485 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2486
2487#line 1475 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2488 tmpMeta[2] = mmc_mk_box2(3, &DAE_Exp_ICONST__desc, mmc_mk_integermmc_mk_icon(_i));
2489#line 1475 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2490 tmpMeta[3] = mmc_mk_box2(5, &DAE_Subscript_INDEX__desc, tmpMeta[2]);
2491#line 1475 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2492 tmpMeta[1] = mmc_mk_cons(tmpMeta[3], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
2493#line 1475 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2494 _cRefs = arrayUpdate(_cRefs, _i, omc_StateMachineFlatten_qCref(threadData, _OMC_LIT61, _tArrayBool, tmpMeta[1], _preRef))boxptr_arrayUpdate(threadData,_cRefs,mmc_mk_icon(_i),omc_StateMachineFlatten_qCref
(threadData, ((void*)((char*)(&(_OMC_LIT_STRUCT61).header
) + 3)), _tArrayBool, tmpMeta[1], _preRef))
;
2495#line 2495 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2496
2497#line 1476 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2498 tmpMeta[2] = mmc_mk_box2(3, &DAE_Exp_ICONST__desc, mmc_mk_integermmc_mk_icon(_i));
2499#line 1476 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2500 tmpMeta[3] = mmc_mk_box2(5, &DAE_Subscript_INDEX__desc, tmpMeta[2]);
2501#line 1476 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2502 tmpMeta[1] = mmc_mk_cons(tmpMeta[3], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
2503#line 1476 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2504 _cImmediateRefs = arrayUpdate(_cImmediateRefs, _i, omc_StateMachineFlatten_qCref(threadData, _OMC_LIT23, _tArrayBool, tmpMeta[1], _preRef))boxptr_arrayUpdate(threadData,_cImmediateRefs,mmc_mk_icon(_i)
,omc_StateMachineFlatten_qCref(threadData, ((void*)((char*)(&
(_OMC_LIT_STRUCT23).header) + 3)), _tArrayBool, tmpMeta[1], _preRef
))
;
2505#line 2505 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2506
2507#line 1477 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2508 _cVars = arrayUpdate(_cVars, _i, omc_StateMachineFlatten_createVarWithDefaults(threadData, arrayGet(_cRefs, _i), _OMC_LIT51, _OMC_LIT7, _tDims))boxptr_arrayUpdate(threadData,_cVars,mmc_mk_icon(_i),omc_StateMachineFlatten_createVarWithDefaults
(threadData, nobox_arrayGet(threadData,_cRefs,_i), ((void*)((
char*)(&(_OMC_LIT_STRUCT51).header) + 3)), ((void*)((char
*)(&(_OMC_LIT_STRUCT7).header) + 3)), _tDims))
;
2509#line 2509 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2510
2511#line 1478 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2512 _cImmediateVars = arrayUpdate(_cImmediateVars, _i, omc_StateMachineFlatten_createVarWithStartValue(threadData, arrayGet(_cImmediateRefs, _i), _OMC_LIT51, _OMC_LIT7, _OMC_LIT62, _tDims))boxptr_arrayUpdate(threadData,_cImmediateVars,mmc_mk_icon(_i)
,omc_StateMachineFlatten_createVarWithStartValue(threadData, nobox_arrayGet
(threadData,_cImmediateRefs,_i), ((void*)((char*)(&(_OMC_LIT_STRUCT51
).header) + 3)), ((void*)((char*)(&(_OMC_LIT_STRUCT7).header
) + 3)), ((void*)((char*)(&(_OMC_LIT_STRUCT62).header) + 3
)), _tDims))
;
2513#line 2513 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2514
2515#line 1481 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2516 tmpMeta[1] = mmc_mk_cons(arrayGet(_cVars, _i)nobox_arrayGet(threadData,_cVars,_i), _vars);
2517#line 1481 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2518 _vars = tmpMeta[1];
2519#line 2519 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2520
2521#line 1482 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2522 tmpMeta[1] = mmc_mk_cons(arrayGet(_cImmediateVars, _i)nobox_arrayGet(threadData,_cImmediateVars,_i), _vars);
2523#line 1482 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2524 _vars = tmpMeta[1];
2525#line 2525 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2526 }
2527 }
2528
2529#line 1485 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2530 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2531#line 1485 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2532 _activeRef = omc_StateMachineFlatten_qCref(threadData, _OMC_LIT63((void*)((char*)(&(_OMC_LIT_STRUCT63).header) + 3)), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)), tmpMeta[0], _preRef);
2533#line 2533 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2534
2535#line 1486 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2536 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2537#line 1486 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2538 _activeVar = omc_StateMachineFlatten_createVarWithDefaults(threadData, _activeRef, _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)), tmpMeta[0]);
2539#line 2539 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2540
2541#line 1487 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2542 tmpMeta[0] = mmc_mk_cons(_activeVar, _vars);
2543#line 1487 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2544 _vars = tmpMeta[0];
2545#line 2545 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2546
2547#line 1489 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2548 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2549#line 1489 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2550 _resetRef = omc_StateMachineFlatten_qCref(threadData, _OMC_LIT64((void*)((char*)(&(_OMC_LIT_STRUCT64).header) + 3)), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)), tmpMeta[0], _preRef);
2551#line 2551 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2552
2553#line 1490 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2554 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2555#line 1490 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2556 _resetVar = omc_StateMachineFlatten_createVarWithDefaults(threadData, _resetRef, _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)), tmpMeta[0]);
2557#line 2557 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2558
2559#line 1491 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2560 tmpMeta[0] = mmc_mk_cons(_resetVar, _vars);
2561#line 1491 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2562 _vars = tmpMeta[0];
2563#line 2563 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2564
2565#line 1493 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2566 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2567#line 1493 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2568 _selectedStateRef = omc_StateMachineFlatten_qCref(threadData, _OMC_LIT65((void*)((char*)(&(_OMC_LIT_STRUCT65).header) + 3)), _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)), tmpMeta[0], _preRef);
2569#line 2569 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2570
2571#line 1494 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2572 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2573#line 1494 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2574 _selectedStateVar = omc_StateMachineFlatten_createVarWithDefaults(threadData, _selectedStateRef, _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)), _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)), tmpMeta[0]);
2575#line 2575 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2576
2577#line 1495 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2578 tmpMeta[0] = mmc_mk_cons(_selectedStateVar, _vars);
2579#line 1495 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2580 _vars = tmpMeta[0];
2581#line 2581 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2582
2583#line 1497 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2584 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2585#line 1497 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2586 _selectedResetRef = omc_StateMachineFlatten_qCref(threadData, _OMC_LIT66((void*)((char*)(&(_OMC_LIT_STRUCT66).header) + 3)), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)), tmpMeta[0], _preRef);
2587#line 2587 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2588
2589#line 1498 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2590 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2591#line 1498 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2592 _selectedResetVar = omc_StateMachineFlatten_createVarWithDefaults(threadData, _selectedResetRef, _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)), tmpMeta[0]);
2593#line 2593 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2594
2595#line 1499 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2596 tmpMeta[0] = mmc_mk_cons(_selectedResetVar, _vars);
2597#line 1499 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2598 _vars = tmpMeta[0];
2599#line 2599 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2600
2601#line 1501 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2602 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2603#line 1501 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2604 _firedRef = omc_StateMachineFlatten_qCref(threadData, _OMC_LIT67((void*)((char*)(&(_OMC_LIT_STRUCT67).header) + 3)), _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)), tmpMeta[0], _preRef);
2605#line 2605 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2606
2607#line 1502 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2608 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2609#line 1502 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2610 _firedVar = omc_StateMachineFlatten_createVarWithDefaults(threadData, _firedRef, _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)), _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)), tmpMeta[0]);
2611#line 2611 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2612
2613#line 1503 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2614 tmpMeta[0] = mmc_mk_cons(_firedVar, _vars);
2615#line 1503 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2616 _vars = tmpMeta[0];
2617#line 2617 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2618
2619#line 1505 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2620 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2621#line 1505 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2622 _activeStateRef = omc_StateMachineFlatten_qCref(threadData, _OMC_LIT68((void*)((char*)(&(_OMC_LIT_STRUCT68).header) + 3)), _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)), tmpMeta[0], _preRef);
2623#line 2623 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2624
2625#line 1506 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2626 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2627#line 1506 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2628 _activeStateVar = omc_StateMachineFlatten_createVarWithDefaults(threadData, _activeStateRef, _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)), _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)), tmpMeta[0]);
2629#line 2629 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2630
2631#line 1507 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2632 tmpMeta[0] = mmc_mk_cons(_activeStateVar, _vars);
2633#line 1507 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2634 _vars = tmpMeta[0];
2635#line 2635 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2636
2637#line 1509 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2638 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2639#line 1509 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2640 _activeResetRef = omc_StateMachineFlatten_qCref(threadData, _OMC_LIT69((void*)((char*)(&(_OMC_LIT_STRUCT69).header) + 3)), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)), tmpMeta[0], _preRef);
2641#line 2641 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2642
2643#line 1510 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2644 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2645#line 1510 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2646 _activeResetVar = omc_StateMachineFlatten_createVarWithDefaults(threadData, _activeResetRef, _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)), tmpMeta[0]);
2647#line 2647 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2648
2649#line 1511 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2650 tmpMeta[0] = mmc_mk_cons(_activeResetVar, _vars);
2651#line 1511 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2652 _vars = tmpMeta[0];
2653#line 2653 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2654
2655#line 1513 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2656 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2657#line 1513 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2658 _nextStateRef = omc_StateMachineFlatten_qCref(threadData, _OMC_LIT70((void*)((char*)(&(_OMC_LIT_STRUCT70).header) + 3)), _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)), tmpMeta[0], _preRef);
2659#line 2659 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2660
2661#line 1514 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2662 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2663#line 1514 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2664 _nextStateVar = omc_StateMachineFlatten_createVarWithStartValue(threadData, _nextStateRef, _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)), _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)), _OMC_LIT71((void*)((char*)(&(_OMC_LIT_STRUCT71).header) + 3)), tmpMeta[0]);
2665#line 2665 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2666
2667#line 1515 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2668 tmpMeta[0] = mmc_mk_cons(_nextStateVar, _vars);
2669#line 1515 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2670 _vars = tmpMeta[0];
2671#line 2671 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2672
2673#line 1517 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2674 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2675#line 1517 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2676 _nextResetRef = omc_StateMachineFlatten_qCref(threadData, _OMC_LIT72((void*)((char*)(&(_OMC_LIT_STRUCT72).header) + 3)), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)), tmpMeta[0], _preRef);
2677#line 2677 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2678
2679#line 1518 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2680 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2681#line 1518 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2682 _nextResetVar = omc_StateMachineFlatten_createVarWithStartValue(threadData, _nextResetRef, _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)), _OMC_LIT62((void*)((char*)(&(_OMC_LIT_STRUCT62).header) + 3)), tmpMeta[0]);
2683#line 2683 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2684
2685#line 1519 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2686 tmpMeta[0] = mmc_mk_cons(_nextResetVar, _vars);
2687#line 1519 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2688 _vars = tmpMeta[0];
2689#line 2689 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2690
2691#line 1521 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2692 tmpMeta[1] = mmc_mk_box2(3, &DAE_Dimension_DIM__INTEGER__desc, mmc_mk_integermmc_mk_icon(_nStates));
2693#line 1521 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2694 tmpMeta[0] = mmc_mk_cons(tmpMeta[1], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
2695#line 1521 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2696 _nStatesDims = tmpMeta[0];
2697#line 2697 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2698
2699#line 1522 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2700 tmpMeta[0] = mmc_mk_box3(9, &DAE_Type_T__ARRAY__desc, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)), _nStatesDims);
2701#line 1522 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2702 _nStatesArrayBool = tmpMeta[0];
2703#line 2703 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2704
2705#line 1524 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2706 _activeResetStatesRefs = arrayCreate(_nStates, omc_ComponentReference_makeDummyCref(threadData));
2707#line 2707 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2708
2709#line 1525 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2710 _activeResetStatesVars = arrayCreate(_nStates, _defaultBoolVar);
2711#line 2711 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2712
2713#line 1526 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2714 tmp7 = ((modelica_integer) 1); tmp8 = 1; tmp9 = _nStates;
2715#line 1526 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2716 if(!(((tmp8 > 0) && (tmp7 > tmp9)) || ((tmp8 < 0) && (tmp7 < tmp9))))
2717#line 1526 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2718 {
2719#line 1526 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2720 modelica_integer _i;
2721#line 1526 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2722 for(_i = ((modelica_integer) 1); in_range_integer(_i, tmp7, tmp9); _i += tmp8)
2723#line 1526 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2724 {
2725#line 1527 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2726 tmpMeta[1] = mmc_mk_box2(3, &DAE_Exp_ICONST__desc, mmc_mk_integermmc_mk_icon(_i));
2727#line 1527 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2728 tmpMeta[2] = mmc_mk_box2(5, &DAE_Subscript_INDEX__desc, tmpMeta[1]);
2729#line 1527 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2730 tmpMeta[0] = mmc_mk_cons(tmpMeta[2], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
2731#line 1527 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2732 _activeResetStatesRefs = arrayUpdate(_activeResetStatesRefs, _i, omc_StateMachineFlatten_qCref(threadData, _OMC_LIT73, _nStatesArrayBool, tmpMeta[0], _preRef))boxptr_arrayUpdate(threadData,_activeResetStatesRefs,mmc_mk_icon
(_i),omc_StateMachineFlatten_qCref(threadData, ((void*)((char
*)(&(_OMC_LIT_STRUCT73).header) + 3)), _nStatesArrayBool,
tmpMeta[0], _preRef))
;
2733#line 2733 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2734
2735#line 1528 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2736 _activeResetStatesVars = arrayUpdate(_activeResetStatesVars, _i, omc_StateMachineFlatten_createVarWithDefaults(threadData, arrayGet(_activeResetStatesRefs, _i), _OMC_LIT51, _OMC_LIT7, _nStatesDims))boxptr_arrayUpdate(threadData,_activeResetStatesVars,mmc_mk_icon
(_i),omc_StateMachineFlatten_createVarWithDefaults(threadData
, nobox_arrayGet(threadData,_activeResetStatesRefs,_i), ((void
*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)), ((void*)((
char*)(&(_OMC_LIT_STRUCT7).header) + 3)), _nStatesDims))
;
2737#line 2737 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2738
2739#line 1529 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2740 tmpMeta[0] = mmc_mk_cons(arrayGet(_activeResetStatesVars, _i)nobox_arrayGet(threadData,_activeResetStatesVars,_i), _vars);
2741#line 1529 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2742 _vars = tmpMeta[0];
2743#line 2743 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2744 }
2745 }
2746
2747#line 1532 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2748 _nextResetStatesRefs = arrayCreate(_nStates, omc_ComponentReference_makeDummyCref(threadData));
2749#line 2749 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2750
2751#line 1533 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2752 _nextResetStatesVars = arrayCreate(_nStates, _defaultBoolVar);
2753#line 2753 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2754
2755#line 1534 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2756 tmp10 = ((modelica_integer) 1); tmp11 = 1; tmp12 = _nStates;
2757#line 1534 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2758 if(!(((tmp11 > 0) && (tmp10 > tmp12)) || ((tmp11 < 0) && (tmp10 < tmp12))))
2759#line 1534 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2760 {
2761#line 1534 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2762 modelica_integer _i;
2763#line 1534 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2764 for(_i = ((modelica_integer) 1); in_range_integer(_i, tmp10, tmp12); _i += tmp11)
2765#line 1534 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2766 {
2767#line 1535 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2768 tmpMeta[1] = mmc_mk_box2(3, &DAE_Exp_ICONST__desc, mmc_mk_integermmc_mk_icon(_i));
2769#line 1535 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2770 tmpMeta[2] = mmc_mk_box2(5, &DAE_Subscript_INDEX__desc, tmpMeta[1]);
2771#line 1535 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2772 tmpMeta[0] = mmc_mk_cons(tmpMeta[2], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
2773#line 1535 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2774 _nextResetStatesRefs = arrayUpdate(_nextResetStatesRefs, _i, omc_StateMachineFlatten_qCref(threadData, _OMC_LIT74, _nStatesArrayBool, tmpMeta[0], _preRef))boxptr_arrayUpdate(threadData,_nextResetStatesRefs,mmc_mk_icon
(_i),omc_StateMachineFlatten_qCref(threadData, ((void*)((char
*)(&(_OMC_LIT_STRUCT74).header) + 3)), _nStatesArrayBool,
tmpMeta[0], _preRef))
;
2775#line 2775 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2776
2777#line 1536 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2778 _nextResetStatesVars = arrayUpdate(_nextResetStatesVars, _i, omc_StateMachineFlatten_createVarWithStartValue(threadData, arrayGet(_nextResetStatesRefs, _i), _OMC_LIT51, _OMC_LIT7, _OMC_LIT62, _nStatesDims))boxptr_arrayUpdate(threadData,_nextResetStatesVars,mmc_mk_icon
(_i),omc_StateMachineFlatten_createVarWithStartValue(threadData
, nobox_arrayGet(threadData,_nextResetStatesRefs,_i), ((void*
)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)), ((void*)((char
*)(&(_OMC_LIT_STRUCT7).header) + 3)), ((void*)((char*)(&
(_OMC_LIT_STRUCT62).header) + 3)), _nStatesDims))
;
2779#line 2779 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2780
2781#line 1537 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2782 tmpMeta[0] = mmc_mk_cons(arrayGet(_nextResetStatesVars, _i)nobox_arrayGet(threadData,_nextResetStatesVars,_i), _vars);
2783#line 1537 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2784 _vars = tmpMeta[0];
2785#line 2785 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2786 }
2787 }
2788
2789#line 1540 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2790 _finalStatesRefs = arrayCreate(_nStates, omc_ComponentReference_makeDummyCref(threadData));
2791#line 2791 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2792
2793#line 1541 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2794 _finalStatesVars = arrayCreate(_nStates, _defaultBoolVar);
2795#line 2795 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2796
2797#line 1542 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2798 tmp13 = ((modelica_integer) 1); tmp14 = 1; tmp15 = _nStates;
2799#line 1542 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2800 if(!(((tmp14 > 0) && (tmp13 > tmp15)) || ((tmp14 < 0) && (tmp13 < tmp15))))
2801#line 1542 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2802 {
2803#line 1542 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2804 modelica_integer _i;
2805#line 1542 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2806 for(_i = ((modelica_integer) 1); in_range_integer(_i, tmp13, tmp15); _i += tmp14)
2807#line 1542 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2808 {
2809#line 1543 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2810 tmpMeta[1] = mmc_mk_box2(3, &DAE_Exp_ICONST__desc, mmc_mk_integermmc_mk_icon(_i));
2811#line 1543 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2812 tmpMeta[2] = mmc_mk_box2(5, &DAE_Subscript_INDEX__desc, tmpMeta[1]);
2813#line 1543 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2814 tmpMeta[0] = mmc_mk_cons(tmpMeta[2], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
2815#line 1543 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2816 _finalStatesRefs = arrayUpdate(_finalStatesRefs, _i, omc_StateMachineFlatten_qCref(threadData, _OMC_LIT75, _nStatesArrayBool, tmpMeta[0], _preRef))boxptr_arrayUpdate(threadData,_finalStatesRefs,mmc_mk_icon(_i
),omc_StateMachineFlatten_qCref(threadData, ((void*)((char*)(
&(_OMC_LIT_STRUCT75).header) + 3)), _nStatesArrayBool, tmpMeta
[0], _preRef))
;
2817#line 2817 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2818
2819#line 1544 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2820 _finalStatesVars = arrayUpdate(_finalStatesVars, _i, omc_StateMachineFlatten_createVarWithDefaults(threadData, arrayGet(_finalStatesRefs, _i), _OMC_LIT51, _OMC_LIT7, _nStatesDims))boxptr_arrayUpdate(threadData,_finalStatesVars,mmc_mk_icon(_i
),omc_StateMachineFlatten_createVarWithDefaults(threadData, nobox_arrayGet
(threadData,_finalStatesRefs,_i), ((void*)((char*)(&(_OMC_LIT_STRUCT51
).header) + 3)), ((void*)((char*)(&(_OMC_LIT_STRUCT7).header
) + 3)), _nStatesDims))
;
2821#line 2821 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2822
2823#line 1545 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2824 tmpMeta[0] = mmc_mk_cons(arrayGet(_finalStatesVars, _i)nobox_arrayGet(threadData,_finalStatesVars,_i), _vars);
2825#line 1545 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2826 _vars = tmpMeta[0];
2827#line 2827 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2828 }
2829 }
2830
2831#line 1548 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2832 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2833#line 1548 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2834 _stateMachineInFinalStateRef = omc_StateMachineFlatten_qCref(threadData, _OMC_LIT76((void*)((char*)(&(_OMC_LIT_STRUCT76).header) + 3)), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)), tmpMeta[0], _preRef);
2835#line 2835 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2836
2837#line 1549 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2838 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2839#line 1549 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2840 _stateMachineInFinalStateVar = omc_StateMachineFlatten_createVarWithDefaults(threadData, _stateMachineInFinalStateRef, _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)), tmpMeta[0]);
2841#line 2841 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2842
2843#line 1550 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2844 tmpMeta[0] = mmc_mk_cons(_stateMachineInFinalStateVar, _vars);
2845#line 1550 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2846 _vars = tmpMeta[0];
2847#line 2847 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2848
2849#line 1553 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2850 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2851#line 1553 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2852 _eqs = tmpMeta[0];
2853#line 2853 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2854
2855#line 1557 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2856 _i = ((modelica_integer) 0);
2857#line 2857 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2858
2859#line 1558 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2860 {
2861#line 1558 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2862 modelica_metatype _cExp;
2863#line 1558 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2864 for (tmpMeta[0] = _cExps; !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)))))
)
2865#line 1558 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2866 {
2867#line 1558 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2868 _cExp = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
2869#line 1559 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2870 _i = ((modelica_integer) 1) + _i;
2871#line 2871 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2872
2873#line 1560 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2874 tmpMeta[1] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, arrayGet(_cImmediateRefs, _i)nobox_arrayGet(threadData,_cImmediateRefs,_i), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
2875#line 1560 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2876 _exp = tmpMeta[1];
2877#line 2877 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2878
2879#line 1561 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2880 tmpMeta[2] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, _exp, _cExp, _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)));
2881#line 1561 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2882 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _eqs);
2883#line 1561 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2884 _eqs = tmpMeta[1];
2885#line 2885 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2886
2887#line 1562 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2888 tmpMeta[1] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, arrayGet(_cRefs, _i)nobox_arrayGet(threadData,_cRefs,_i), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
2889#line 1562 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2890 _exp1 = tmpMeta[1];
2891#line 2891 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2892
2893#line 1563 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2894 /* Pattern-matching assignment */
2895#line 1563 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2896 tmpMeta[1] = arrayGet(_tImmediateVars, _i)nobox_arrayGet(threadData,_tImmediateVars,_i);
2897#line 1563 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2898 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,13)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((13 +1
) << 10) + (((0 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2899#line 1563 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2900 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (8)))))
;
2901#line 1563 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2902 _bindExp = tmpMeta[2];
2903#line 2903 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2904
2905#line 1565 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2906 tmpMeta[1] = mmc_mk_box1(0, _OMC_LIT77((void*)((char*)(&(_OMC_LIT_STRUCT77).header) + 3)));
2907#line 1565 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2908 tmp16 = (modelica_boolean)mmc_unbox_boolean(omc_Util_applyOptionOrDefault(threadData, _bindExp, (modelica_fnptr) mmc_mk_box2(0,closure0_Expression_expEqual,tmpMeta[1]), mmc_mk_boolean(0)))(((mmc_sint_t) (omc_Util_applyOptionOrDefault(threadData, _bindExp
, (modelica_fnptr) mmc_mk_box2(0,closure0_Expression_expEqual
,tmpMeta[1]), ((0) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))
)))) >> 1)
;
2909#line 1565 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2910 if(tmp16)
2911#line 1565 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2912 {
2913#line 1565 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2914 tmpMeta[4] = _exp;
2915#line 1565 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2916 }
2917#line 1565 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2918 else
2919#line 1565 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2920 {
2921#line 1565 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2922 tmpMeta[2] = mmc_mk_cons(_exp, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
2923#line 1565 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2924 tmpMeta[3] = mmc_mk_box4(16, &DAE_Exp_CALL__desc, _OMC_LIT78((void*)((char*)(&(_OMC_LIT_STRUCT78).header) + 3)), tmpMeta[2], _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)));
2925#line 1565 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2926 tmpMeta[4] = tmpMeta[3];
2927#line 1565 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2928 }
2929#line 1565 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2930 _rhs = tmpMeta[4];
2931#line 2931 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2932
2933#line 1570 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2934 tmpMeta[2] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, _exp1, _rhs, _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)));
2935#line 1570 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2936 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _eqs);
2937#line 1570 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2938 _eqs = tmpMeta[1];
2939#line 2939 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2940 }
2941 }
2942
2943#line 1574 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2944 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _selectedStateRef, _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)));
2945#line 1574 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2946 _exp = tmpMeta[0];
2947#line 2947 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2948
2949#line 1575 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2950 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _resetRef, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
2951#line 1575 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2952 _expCond = tmpMeta[0];
2953#line 2953 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2954
2955#line 1576 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2956 _expThen = _OMC_LIT79((void*)((char*)(&(_OMC_LIT_STRUCT79).header) + 3));
2957#line 2957 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2958
2959#line 1577 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2960 tmpMeta[1] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _nextStateRef, _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)));
2961#line 1577 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2962 tmpMeta[0] = mmc_mk_cons(tmpMeta[1], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
2963#line 1577 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2964 tmpMeta[2] = mmc_mk_box4(16, &DAE_Exp_CALL__desc, _OMC_LIT78((void*)((char*)(&(_OMC_LIT_STRUCT78).header) + 3)), tmpMeta[0], _OMC_LIT80((void*)((char*)(&(_OMC_LIT_STRUCT80).header) + 3)));
2965#line 1577 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2966 _expElse = tmpMeta[2];
2967#line 2967 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2968
2969#line 1578 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2970 tmpMeta[0] = mmc_mk_box4(15, &DAE_Exp_IFEXP__desc, _expCond, _expThen, _expElse);
2971#line 1578 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2972 _rhs = tmpMeta[0];
2973#line 2973 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2974
2975#line 1579 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2976 tmpMeta[0] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, _exp, _rhs, _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)));
2977#line 1579 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2978 _selectedStateEqn = tmpMeta[0];
2979#line 2979 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2980
2981#line 1580 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2982 tmpMeta[0] = mmc_mk_cons(_selectedStateEqn, _eqs);
2983#line 1580 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2984 _eqs = tmpMeta[0];
2985#line 2985 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2986
2987#line 1583 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2988 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _selectedResetRef, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
2989#line 1583 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2990 _exp = tmpMeta[0];
2991#line 2991 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2992
2993#line 1584 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2994 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _resetRef, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
2995#line 1584 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
2996 _expCond = tmpMeta[0];
2997#line 2997 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
2998
2999#line 1585 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3000 _expThen = _OMC_LIT77((void*)((char*)(&(_OMC_LIT_STRUCT77).header) + 3));
3001#line 3001 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3002
3003#line 1586 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3004 tmpMeta[1] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _nextResetRef, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
3005#line 1586 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3006 tmpMeta[0] = mmc_mk_cons(tmpMeta[1], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
3007#line 1586 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3008 tmpMeta[2] = mmc_mk_box4(16, &DAE_Exp_CALL__desc, _OMC_LIT78((void*)((char*)(&(_OMC_LIT_STRUCT78).header) + 3)), tmpMeta[0], _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)));
3009#line 1586 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3010 _expElse = tmpMeta[2];
3011#line 3011 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3012
3013#line 1587 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3014 tmpMeta[0] = mmc_mk_box4(15, &DAE_Exp_IFEXP__desc, _expCond, _expThen, _expElse);
3015#line 1587 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3016 _rhs = tmpMeta[0];
3017#line 3017 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3018
3019#line 1588 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3020 tmpMeta[0] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, _exp, _rhs, _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)));
3021#line 1588 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3022 _selectedResetEqn = tmpMeta[0];
3023#line 3023 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3024
3025#line 1589 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3026 tmpMeta[0] = mmc_mk_cons(_selectedResetEqn, _eqs);
3027#line 1589 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3028 _eqs = tmpMeta[0];
3029#line 3029 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3030
3031#line 1598 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3032 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _firedRef, _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)));
3033#line 1598 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3034 _exp = tmpMeta[0];
3035#line 3035 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3036
3037#line 1599 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3038 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3039#line 1599 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3040 _expLst = tmpMeta[0];
3041#line 3041 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3042
3043#line 1600 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3044 tmp17 = ((modelica_integer) 1); tmp18 = 1; tmp19 = _nTransitions;
3045#line 1600 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3046 if(!(((tmp18 > 0) && (tmp17 > tmp19)) || ((tmp18 < 0) && (tmp17 < tmp19))))
3047#line 1600 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3048 {
3049#line 1600 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3050 modelica_integer _i;
3051#line 1600 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3052 for(_i = ((modelica_integer) 1); in_range_integer(_i, tmp17, tmp19); _i += tmp18)
3053#line 1600 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3054 {
3055#line 1602 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3056 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, arrayGet(_tFromRefs, _i)nobox_arrayGet(threadData,_tFromRefs,_i), _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)));
3057#line 1602 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3058 tmpMeta[1] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _selectedStateRef, _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)));
3059#line 1602 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3060 tmpMeta[2] = mmc_mk_box6(14, &DAE_Exp_RELATION__desc, tmpMeta[0], _OMC_LIT81((void*)((char*)(&(_OMC_LIT_STRUCT81).header) + 3)), tmpMeta[1], mmc_mk_integermmc_mk_icon(((modelica_integer) -1)), mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)));
3061#line 1602 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3062 _expCond = tmpMeta[2];
3063#line 3063 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3064
3065#line 1603 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3066 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, arrayGet(_cRefs, _i)nobox_arrayGet(threadData,_cRefs,_i), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
3067#line 1603 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3068 _expThen = tmpMeta[0];
3069#line 3069 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3070
3071#line 1604 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3072 _expElse = _OMC_LIT62((void*)((char*)(&(_OMC_LIT_STRUCT62).header) + 3));
3073#line 3073 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3074
3075#line 1606 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3076 tmpMeta[0] = mmc_mk_box4(15, &DAE_Exp_IFEXP__desc, _expCond, _expThen, _expElse);
3077#line 1606 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3078 _expIf = tmpMeta[0];
3079#line 3079 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3080
3081#line 1608 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3082 tmpMeta[1] = mmc_mk_box2(3, &DAE_Exp_ICONST__desc, mmc_mk_integermmc_mk_icon(_i));
3083#line 1608 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3084 tmpMeta[2] = mmc_mk_box4(15, &DAE_Exp_IFEXP__desc, _expIf, tmpMeta[1], _OMC_LIT71((void*)((char*)(&(_OMC_LIT_STRUCT71).header) + 3)));
3085#line 1608 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3086 tmpMeta[0] = mmc_mk_cons(tmpMeta[2], _expLst);
3087#line 1608 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3088 _expLst = tmpMeta[0];
3089#line 3089 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3090 }
3091 }
3092
3093#line 1610 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3094 tmp20 = (modelica_boolean)(listLength(_expLst) > ((modelica_integer) 1));
3095#line 1610 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3096 if(tmp20)
3097#line 1610 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3098 {
3099#line 1610 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3100 tmpMeta[0] = mmc_mk_cons(omc_Expression_makeScalarArray(threadData, _expLst, _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3))), MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
3101#line 1610 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3102 tmpMeta[1] = mmc_mk_box4(16, &DAE_Exp_CALL__desc, _OMC_LIT83((void*)((char*)(&(_OMC_LIT_STRUCT83).header) + 3)), tmpMeta[0], _OMC_LIT84((void*)((char*)(&(_OMC_LIT_STRUCT84).header) + 3)));
3103#line 1610 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3104 tmpMeta[2] = tmpMeta[1];
3105#line 1610 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3106 }
3107#line 1610 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3108 else
3109#line 1610 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3110 {
3111#line 1610 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3112 tmpMeta[2] = listHead(_expLst)boxptr_listHead(threadData,_expLst);
3113#line 1610 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3114 }
3115#line 1610 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3116 _rhs = tmpMeta[2];
3117#line 3117 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3118
3119#line 1612 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3120 tmpMeta[0] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, _exp, _rhs, _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)));
3121#line 1612 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3122 _firedEqn = tmpMeta[0];
3123#line 3123 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3124
3125#line 1613 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3126 tmpMeta[0] = mmc_mk_cons(_firedEqn, _eqs);
3127#line 1613 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3128 _eqs = tmpMeta[0];
3129#line 3129 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3130
3131#line 1616 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3132 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _activeStateRef, _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)));
3133#line 1616 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3134 _exp = tmpMeta[0];
3135#line 3135 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3136
3137#line 1617 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3138 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _resetRef, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
3139#line 1617 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3140 _expCond = tmpMeta[0];
3141#line 3141 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3142
3143#line 1618 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3144 _expThen = _OMC_LIT79((void*)((char*)(&(_OMC_LIT_STRUCT79).header) + 3));
3145#line 3145 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3146
3147#line 1620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3148 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _firedRef, _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)));
3149#line 1620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3150 tmpMeta[1] = mmc_mk_box6(14, &DAE_Exp_RELATION__desc, tmpMeta[0], _OMC_LIT85((void*)((char*)(&(_OMC_LIT_STRUCT85).header) + 3)), _OMC_LIT71((void*)((char*)(&(_OMC_LIT_STRUCT71).header) + 3)), mmc_mk_integermmc_mk_icon(((modelica_integer) -1)), mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)));
3151#line 1620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3152 _exp1 = tmpMeta[1];
3153#line 3153 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3154
3155#line 1622 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3156 tmpMeta[1] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _firedRef, _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)));
3157#line 1622 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3158 tmpMeta[2] = mmc_mk_box2(5, &DAE_Subscript_INDEX__desc, tmpMeta[1]);
3159#line 1622 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3160 tmpMeta[0] = mmc_mk_cons(tmpMeta[2], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
3161#line 1622 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3162 tmpMeta[3] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, omc_StateMachineFlatten_qCref(threadData, _OMC_LIT56((void*)((char*)(&(_OMC_LIT_STRUCT56).header) + 3)), _tArrayInteger, tmpMeta[0], _preRef), _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)));
3163#line 1622 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3164 _exp2 = tmpMeta[3];
3165#line 3165 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3166
3167#line 1624 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3168 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _selectedStateRef, _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)));
3169#line 1624 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3170 tmpMeta[1] = mmc_mk_box4(15, &DAE_Exp_IFEXP__desc, _exp1, _exp2, tmpMeta[0]);
3171#line 1624 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3172 _expElse = tmpMeta[1];
3173#line 3173 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3174
3175#line 1625 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3176 tmpMeta[0] = mmc_mk_box4(15, &DAE_Exp_IFEXP__desc, _expCond, _expThen, _expElse);
3177#line 1625 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3178 _rhs = tmpMeta[0];
3179#line 3179 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3180
3181#line 1626 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3182 tmpMeta[0] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, _exp, _rhs, _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)));
3183#line 1626 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3184 _activeStateEqn = tmpMeta[0];
3185#line 3185 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3186
3187#line 1627 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3188 tmpMeta[0] = mmc_mk_cons(_activeStateEqn, _eqs);
3189#line 1627 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3190 _eqs = tmpMeta[0];
3191#line 3191 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3192
3193#line 1630 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3194 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _activeResetRef, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
3195#line 1630 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3196 _exp = tmpMeta[0];
3197#line 3197 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3198
3199#line 1631 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3200 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _resetRef, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
3201#line 1631 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3202 _expCond = tmpMeta[0];
3203#line 3203 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3204
3205#line 1632 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3206 _expThen = _OMC_LIT77((void*)((char*)(&(_OMC_LIT_STRUCT77).header) + 3));
3207#line 3207 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3208
3209#line 1634 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3210 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _firedRef, _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)));
3211#line 1634 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3212 tmpMeta[1] = mmc_mk_box6(14, &DAE_Exp_RELATION__desc, tmpMeta[0], _OMC_LIT85((void*)((char*)(&(_OMC_LIT_STRUCT85).header) + 3)), _OMC_LIT71((void*)((char*)(&(_OMC_LIT_STRUCT71).header) + 3)), mmc_mk_integermmc_mk_icon(((modelica_integer) -1)), mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)));
3213#line 1634 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3214 _exp1 = tmpMeta[1];
3215#line 3215 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3216
3217#line 1636 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3218 tmpMeta[1] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _firedRef, _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)));
3219#line 1636 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3220 tmpMeta[2] = mmc_mk_box2(5, &DAE_Subscript_INDEX__desc, tmpMeta[1]);
3221#line 1636 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3222 tmpMeta[0] = mmc_mk_cons(tmpMeta[2], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
3223#line 1636 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3224 tmpMeta[3] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, omc_StateMachineFlatten_qCref(threadData, _OMC_LIT58((void*)((char*)(&(_OMC_LIT_STRUCT58).header) + 3)), _tArrayBool, tmpMeta[0], _preRef), _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)));
3225#line 1636 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3226 _exp2 = tmpMeta[3];
3227#line 3227 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3228
3229#line 1638 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3230 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _selectedResetRef, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
3231#line 1638 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3232 tmpMeta[1] = mmc_mk_box4(15, &DAE_Exp_IFEXP__desc, _exp1, _exp2, tmpMeta[0]);
3233#line 1638 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3234 _expElse = tmpMeta[1];
3235#line 3235 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3236
3237#line 1639 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3238 tmpMeta[0] = mmc_mk_box4(15, &DAE_Exp_IFEXP__desc, _expCond, _expThen, _expElse);
3239#line 1639 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3240 _rhs = tmpMeta[0];
3241#line 3241 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3242
3243#line 1640 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3244 tmpMeta[0] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, _exp, _rhs, _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)));
3245#line 1640 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3246 _activeResetEqn = tmpMeta[0];
3247#line 3247 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3248
3249#line 1641 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3250 tmpMeta[0] = mmc_mk_cons(_activeResetEqn, _eqs);
3251#line 1641 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3252 _eqs = tmpMeta[0];
3253#line 3253 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3254
3255#line 1644 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3256 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _nextStateRef, _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)));
3257#line 1644 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3258 _exp = tmpMeta[0];
3259#line 3259 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3260
3261#line 1645 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3262 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _activeRef, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
3263#line 1645 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3264 _expCond = tmpMeta[0];
3265#line 3265 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3266
3267#line 1646 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3268 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _activeStateRef, _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)));
3269#line 1646 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3270 _expThen = tmpMeta[0];
3271#line 3271 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3272
3273#line 1647 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3274 tmpMeta[1] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _nextStateRef, _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)));
3275#line 1647 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3276 tmpMeta[0] = mmc_mk_cons(tmpMeta[1], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
3277#line 1647 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3278 tmpMeta[2] = mmc_mk_box4(16, &DAE_Exp_CALL__desc, _OMC_LIT78((void*)((char*)(&(_OMC_LIT_STRUCT78).header) + 3)), tmpMeta[0], _OMC_LIT80((void*)((char*)(&(_OMC_LIT_STRUCT80).header) + 3)));
3279#line 1647 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3280 _expElse = tmpMeta[2];
3281#line 3281 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3282
3283#line 1648 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3284 tmpMeta[0] = mmc_mk_box4(15, &DAE_Exp_IFEXP__desc, _expCond, _expThen, _expElse);
3285#line 1648 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3286 _rhs = tmpMeta[0];
3287#line 3287 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3288
3289#line 1649 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3290 tmpMeta[0] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, _exp, _rhs, _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)));
3291#line 1649 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3292 _nextStateEqn = tmpMeta[0];
3293#line 3293 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3294
3295#line 1650 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3296 tmpMeta[0] = mmc_mk_cons(_nextStateEqn, _eqs);
3297#line 1650 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3298 _eqs = tmpMeta[0];
3299#line 3299 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3300
3301#line 1653 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3302 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _nextResetRef, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
3303#line 1653 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3304 _exp = tmpMeta[0];
3305#line 3305 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3306
3307#line 1654 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3308 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _activeRef, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
3309#line 1654 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3310 _expCond = tmpMeta[0];
3311#line 3311 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3312
3313#line 1655 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3314 _expThen = _OMC_LIT62((void*)((char*)(&(_OMC_LIT_STRUCT62).header) + 3));
3315#line 3315 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3316
3317#line 1656 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3318 tmpMeta[1] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _nextResetRef, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
3319#line 1656 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3320 tmpMeta[0] = mmc_mk_cons(tmpMeta[1], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
3321#line 1656 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3322 tmpMeta[2] = mmc_mk_box4(16, &DAE_Exp_CALL__desc, _OMC_LIT78((void*)((char*)(&(_OMC_LIT_STRUCT78).header) + 3)), tmpMeta[0], _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)));
3323#line 1656 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3324 _expElse = tmpMeta[2];
3325#line 3325 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3326
3327#line 1657 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3328 tmpMeta[0] = mmc_mk_box4(15, &DAE_Exp_IFEXP__desc, _expCond, _expThen, _expElse);
3329#line 1657 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3330 _rhs = tmpMeta[0];
3331#line 3331 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3332
3333#line 1658 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3334 tmpMeta[0] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, _exp, _rhs, _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)));
3335#line 1658 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3336 _nextResetEqn = tmpMeta[0];
3337#line 3337 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3338
3339#line 1659 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3340 tmpMeta[0] = mmc_mk_cons(_nextResetEqn, _eqs);
3341#line 1659 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3342 _eqs = tmpMeta[0];
3343#line 3343 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3344
3345#line 1662 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3346 tmp21 = ((modelica_integer) 1); tmp22 = 1; tmp23 = _nStates;
3347#line 1662 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3348 if(!(((tmp22 > 0) && (tmp21 > tmp23)) || ((tmp22 < 0) && (tmp21 < tmp23))))
3349#line 1662 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3350 {
3351#line 1662 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3352 modelica_integer _i;
3353#line 1662 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3354 for(_i = ((modelica_integer) 1); in_range_integer(_i, tmp21, tmp23); _i += tmp22)
3355#line 1662 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3356 {
3357#line 1663 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3358 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, arrayGet(_activeResetStatesRefs, _i)nobox_arrayGet(threadData,_activeResetStatesRefs,_i), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
3359#line 1663 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3360 _exp = tmpMeta[0];
3361#line 3361 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3362
3363#line 1664 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3364 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _resetRef, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
3365#line 1664 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3366 _expCond = tmpMeta[0];
3367#line 3367 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3368
3369#line 1665 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3370 _expThen = _OMC_LIT77((void*)((char*)(&(_OMC_LIT_STRUCT77).header) + 3));
3371#line 3371 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3372
3373#line 1666 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3374 tmpMeta[1] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, arrayGet(_nextResetStatesRefs, _i)nobox_arrayGet(threadData,_nextResetStatesRefs,_i), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
3375#line 1666 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3376 tmpMeta[0] = mmc_mk_cons(tmpMeta[1], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
3377#line 1666 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3378 tmpMeta[2] = mmc_mk_box4(16, &DAE_Exp_CALL__desc, _OMC_LIT78((void*)((char*)(&(_OMC_LIT_STRUCT78).header) + 3)), tmpMeta[0], _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)));
3379#line 1666 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3380 _expElse = tmpMeta[2];
3381#line 3381 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3382
3383#line 1667 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3384 tmpMeta[0] = mmc_mk_box4(15, &DAE_Exp_IFEXP__desc, _expCond, _expThen, _expElse);
3385#line 1667 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3386 _rhs = tmpMeta[0];
3387#line 3387 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3388
3389#line 1668 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3390 tmpMeta[1] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, _exp, _rhs, _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)));
3391#line 1668 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3392 tmpMeta[0] = mmc_mk_cons(tmpMeta[1], _eqs);
3393#line 1668 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3394 _eqs = tmpMeta[0];
3395#line 3395 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3396 }
3397 }
3398
3399#line 1673 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3400 tmp24 = ((modelica_integer) 1); tmp25 = 1; tmp26 = _nStates;
3401#line 1673 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3402 if(!(((tmp25 > 0) && (tmp24 > tmp26)) || ((tmp25 < 0) && (tmp24 < tmp26))))
3403#line 1673 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3404 {
3405#line 1673 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3406 modelica_integer _i;
3407#line 1673 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3408 for(_i = ((modelica_integer) 1); in_range_integer(_i, tmp24, tmp26); _i += tmp25)
3409#line 1673 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3410 {
3411#line 1674 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3412 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, arrayGet(_nextResetStatesRefs, _i)nobox_arrayGet(threadData,_nextResetStatesRefs,_i), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
3413#line 1674 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3414 _exp = tmpMeta[0];
3415#line 3415 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3416
3417#line 1675 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3418 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _activeRef, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
3419#line 1675 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3420 _expCond = tmpMeta[0];
3421#line 3421 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3422
3423#line 1683 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3424 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _activeStateRef, _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)));
3425#line 1683 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3426 tmpMeta[1] = mmc_mk_box2(3, &DAE_Exp_ICONST__desc, mmc_mk_integermmc_mk_icon(_i));
3427#line 1683 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3428 tmpMeta[2] = mmc_mk_box6(14, &DAE_Exp_RELATION__desc, tmpMeta[0], _OMC_LIT81((void*)((char*)(&(_OMC_LIT_STRUCT81).header) + 3)), tmpMeta[1], mmc_mk_integermmc_mk_icon(((modelica_integer) -1)), mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)));
3429#line 1683 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3430 _exp1 = tmpMeta[2];
3431#line 3431 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3432
3433#line 1685 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3434 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, arrayGet(_activeResetStatesRefs, _i)nobox_arrayGet(threadData,_activeResetStatesRefs,_i), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
3435#line 1685 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3436 tmpMeta[1] = mmc_mk_box4(15, &DAE_Exp_IFEXP__desc, _exp1, _OMC_LIT62((void*)((char*)(&(_OMC_LIT_STRUCT62).header) + 3)), tmpMeta[0]);
3437#line 1685 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3438 _expThen = tmpMeta[1];
3439#line 3439 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3440
3441#line 1688 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3442 tmpMeta[1] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, arrayGet(_nextResetStatesRefs, _i)nobox_arrayGet(threadData,_nextResetStatesRefs,_i), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
3443#line 1688 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3444 tmpMeta[0] = mmc_mk_cons(tmpMeta[1], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
3445#line 1688 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3446 tmpMeta[2] = mmc_mk_box4(16, &DAE_Exp_CALL__desc, _OMC_LIT78((void*)((char*)(&(_OMC_LIT_STRUCT78).header) + 3)), tmpMeta[0], _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)));
3447#line 1688 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3448 _expElse = tmpMeta[2];
3449#line 3449 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3450
3451#line 1690 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3452 tmpMeta[0] = mmc_mk_box4(15, &DAE_Exp_IFEXP__desc, _expCond, _expThen, _expElse);
3453#line 1690 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3454 _rhs = tmpMeta[0];
3455#line 3455 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3456
3457#line 1693 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3458 tmpMeta[1] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, _exp, _rhs, _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)));
3459#line 1693 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3460 tmpMeta[0] = mmc_mk_cons(tmpMeta[1], _eqs);
3461#line 1693 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3462 _eqs = tmpMeta[0];
3463#line 3463 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3464 }
3465 }
3466
3467#line 1697 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3468 tmp31 = ((modelica_integer) 1); tmp32 = 1; tmp33 = _nStates;
3469#line 1697 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3470 if(!(((tmp32 > 0) && (tmp31 > tmp33)) || ((tmp32 < 0) && (tmp31 < tmp33))))
3471#line 1697 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3472 {
3473#line 1697 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3474 modelica_integer _i;
3475#line 1697 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3476 for(_i = ((modelica_integer) 1); in_range_integer(_i, tmp31, tmp33); _i += tmp32)
3477#line 1697 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3478 {
3479#line 1698 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3480 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, arrayGet(_finalStatesRefs, _i)nobox_arrayGet(threadData,_finalStatesRefs,_i), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
3481#line 1698 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3482 _exp = tmpMeta[0];
3483#line 3483 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3484
3485#line 1699 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3486 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3487#line 1699 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3488 _expLst = tmpMeta[0];
3489#line 3489 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3490
3491#line 1700 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3492 tmp27 = ((modelica_integer) 1); tmp28 = 1; tmp29 = _nTransitions;
3493#line 1700 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3494 if(!(((tmp28 > 0) && (tmp27 > tmp29)) || ((tmp28 < 0) && (tmp27 < tmp29))))
3495#line 1700 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3496 {
3497#line 1700 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3498 modelica_integer _j;
3499#line 1700 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3500 for(_j = ((modelica_integer) 1); in_range_integer(_j, tmp27, tmp29); _j += tmp28)
3501#line 1700 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3502 {
3503#line 1702 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3504 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, arrayGet(_tFromRefs, _j)nobox_arrayGet(threadData,_tFromRefs,_j), _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)));
3505#line 1702 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3506 tmpMeta[1] = mmc_mk_box2(3, &DAE_Exp_ICONST__desc, mmc_mk_integermmc_mk_icon(_i));
3507#line 1702 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3508 tmpMeta[2] = mmc_mk_box6(14, &DAE_Exp_RELATION__desc, tmpMeta[0], _OMC_LIT81((void*)((char*)(&(_OMC_LIT_STRUCT81).header) + 3)), tmpMeta[1], mmc_mk_integermmc_mk_icon(((modelica_integer) -1)), mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)));
3509#line 1702 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3510 _expCond = tmpMeta[2];
3511#line 3511 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3512
3513#line 1704 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3514 tmpMeta[1] = mmc_mk_box4(15, &DAE_Exp_IFEXP__desc, _expCond, _OMC_LIT79((void*)((char*)(&(_OMC_LIT_STRUCT79).header) + 3)), _OMC_LIT71((void*)((char*)(&(_OMC_LIT_STRUCT71).header) + 3)));
3515#line 1704 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3516 tmpMeta[0] = mmc_mk_cons(tmpMeta[1], _expLst);
3517#line 1704 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3518 _expLst = tmpMeta[0];
3519#line 3519 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3520 }
3521 }
3522
3523#line 1707 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3524 tmp30 = (modelica_boolean)(listLength(_expLst) > ((modelica_integer) 1));
3525#line 1707 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3526 if(tmp30)
3527#line 1707 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3528 {
3529#line 1707 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3530 tmpMeta[0] = mmc_mk_cons(omc_Expression_makeScalarArray(threadData, _expLst, _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3))), MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
3531#line 1707 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3532 tmpMeta[1] = mmc_mk_box4(16, &DAE_Exp_CALL__desc, _OMC_LIT83((void*)((char*)(&(_OMC_LIT_STRUCT83).header) + 3)), tmpMeta[0], _OMC_LIT84((void*)((char*)(&(_OMC_LIT_STRUCT84).header) + 3)));
3533#line 1707 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3534 tmpMeta[2] = tmpMeta[1];
3535#line 1707 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3536 }
3537#line 1707 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3538 else
3539#line 1707 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3540 {
3541#line 1707 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3542 tmpMeta[2] = listHead(_expLst)boxptr_listHead(threadData,_expLst);
3543#line 1707 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3544 }
3545#line 1707 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3546 _exp1 = tmpMeta[2];
3547#line 3547 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3548
3549#line 1710 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3550 tmpMeta[0] = mmc_mk_box6(14, &DAE_Exp_RELATION__desc, _exp1, _OMC_LIT81((void*)((char*)(&(_OMC_LIT_STRUCT81).header) + 3)), _OMC_LIT71((void*)((char*)(&(_OMC_LIT_STRUCT71).header) + 3)), mmc_mk_integermmc_mk_icon(((modelica_integer) -1)), mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)));
3551#line 1710 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3552 _rhs = tmpMeta[0];
3553#line 3553 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3554
3555#line 1711 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3556 tmpMeta[1] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, _exp, _rhs, _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)));
3557#line 1711 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3558 tmpMeta[0] = mmc_mk_cons(tmpMeta[1], _eqs);
3559#line 1711 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3560 _eqs = tmpMeta[0];
3561#line 3561 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3562 }
3563 }
3564
3565#line 1715 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3566 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _stateMachineInFinalStateRef, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
3567#line 1715 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3568 _exp = tmpMeta[0];
3569#line 3569 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3570
3571#line 1716 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3572 tmpMeta[1] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _activeStateRef, _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)));
3573#line 1716 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3574 tmpMeta[2] = mmc_mk_box2(5, &DAE_Subscript_INDEX__desc, tmpMeta[1]);
3575#line 1716 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3576 tmpMeta[0] = mmc_mk_cons(tmpMeta[2], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
3577#line 1716 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3578 tmpMeta[3] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, omc_StateMachineFlatten_qCref(threadData, _OMC_LIT75((void*)((char*)(&(_OMC_LIT_STRUCT75).header) + 3)), _nStatesArrayBool, tmpMeta[0], _preRef), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
3579#line 1716 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3580 _rhs = tmpMeta[3];
3581#line 3581 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3582
3583#line 1717 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3584 tmpMeta[1] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, _exp, _rhs, _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)));
3585#line 1717 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3586 tmpMeta[0] = mmc_mk_cons(tmpMeta[1], _eqs);
3587#line 1717 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3588 _eqs = tmpMeta[0];
3589#line 3589 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3590
3591#line 1720 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3592 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3593#line 1720 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3594 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3595#line 1720 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3596 tmpMeta[2] = mmc_mk_box11(3, &StateMachineFlatten_FlatSmSemantics_FLAT__SM__SEMANTICS__desc, _ident, listArray(_q), _t, _cExps, _vars, _knowns, _eqs, tmpMeta[0], tmpMeta[1], mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)));
3597#line 1720 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3598 _flatSmSemantics = tmpMeta[2];
3599#line 3599 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3600 _return: OMC_LABEL_UNUSED__attribute__((unused))
3601 return _flatSmSemantics;
3602}
3603
3604PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_setVarFixedStartValue(threadData_t *threadData, modelica_metatype _inVar, modelica_metatype _inExp)
3605{
3606 modelica_metatype _outVar = NULL((void*)0);
3607 modelica_metatype _vao = NULL((void*)0);
3608 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3609 MMC_SO()mmc_check_stackoverflow(threadData);
3610 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3611 // _outVar has no default value.
3612 // _vao has no default value.
3613#line 1324 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3614 /* Pattern-matching assignment */
3615#line 1324 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3616 tmpMeta[0] = _inVar;
3617#line 1324 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3618 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,13)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((13 +1
) << 10) + (((0 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3619#line 1324 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3620 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 12))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (12)))))
;
3621#line 1324 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3622 _vao = tmpMeta[1];
3623#line 3623 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3624
3625#line 1325 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3626 _vao = omc_DAEUtil_setStartAttrOption(threadData, _vao, mmc_mk_some(_inExp));
3627#line 3627 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3628
3629#line 1326 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3630 _vao = omc_DAEUtil_setFixedAttr(threadData, _vao, _OMC_LIT86((void*)((char*)(&(_OMC_LIT_STRUCT86).header) + 3)));
3631#line 3631 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3632
3633#line 1327 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3634 _outVar = omc_DAEUtil_setVariableAttributes(threadData, _inVar, _vao);
3635#line 3635 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3636 _return: OMC_LABEL_UNUSED__attribute__((unused))
3637 return _outVar;
3638}
3639
3640PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_createActiveIndicator(threadData_t *threadData, modelica_metatype _stateRef, modelica_metatype _preRef, modelica_integer _i, modelica_metatype *out_eqn)
3641{
3642 modelica_metatype _activePlotIndicatorVar = NULL((void*)0);
3643 modelica_metatype _eqn = NULL((void*)0);
3644 modelica_metatype _activeRef = NULL((void*)0);
3645 modelica_metatype _activePlotIndicatorRef = NULL((void*)0);
3646 modelica_metatype _activeStateRef = NULL((void*)0);
3647 modelica_metatype _andExp = NULL((void*)0);
3648 modelica_metatype _eqExp = NULL((void*)0);
3649 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
3650 MMC_SO()mmc_check_stackoverflow(threadData);
3651 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3652 // _activePlotIndicatorVar has no default value.
3653 // _eqn has no default value.
3654 // _activeRef has no default value.
3655 // _activePlotIndicatorRef has no default value.
3656 // _activeStateRef has no default value.
3657 // _andExp has no default value.
3658 // _eqExp has no default value.
3659#line 1300 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3660 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3661#line 1300 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3662 _activePlotIndicatorRef = omc_StateMachineFlatten_qCref(threadData, _OMC_LIT63((void*)((char*)(&(_OMC_LIT_STRUCT63).header) + 3)), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)), tmpMeta[0], _stateRef);
3663#line 3663 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3664
3665#line 1301 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3666 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3667#line 1301 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3668 _activePlotIndicatorVar = omc_StateMachineFlatten_createVarWithStartValue(threadData, _activePlotIndicatorRef, _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)), _OMC_LIT62((void*)((char*)(&(_OMC_LIT_STRUCT62).header) + 3)), tmpMeta[0]);
3669#line 3669 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3670
3671#line 1304 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3672 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3673#line 1304 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3674 _activeRef = omc_StateMachineFlatten_qCref(threadData, _OMC_LIT63((void*)((char*)(&(_OMC_LIT_STRUCT63).header) + 3)), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)), tmpMeta[0], _preRef);
3675#line 3675 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3676
3677#line 1305 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3678 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3679#line 1305 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3680 _activeStateRef = omc_StateMachineFlatten_qCref(threadData, _OMC_LIT68((void*)((char*)(&(_OMC_LIT_STRUCT68).header) + 3)), _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)), tmpMeta[0], _preRef);
3681#line 3681 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3682
3683#line 1307 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3684 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _activeStateRef, _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)));
3685#line 1307 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3686 tmpMeta[1] = mmc_mk_box2(3, &DAE_Exp_ICONST__desc, mmc_mk_integermmc_mk_icon(_i));
3687#line 1307 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3688 tmpMeta[2] = mmc_mk_box6(14, &DAE_Exp_RELATION__desc, tmpMeta[0], _OMC_LIT81((void*)((char*)(&(_OMC_LIT_STRUCT81).header) + 3)), tmpMeta[1], mmc_mk_integermmc_mk_icon(((modelica_integer) -1)), mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)));
3689#line 1307 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3690 _eqExp = tmpMeta[2];
3691#line 3691 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3692
3693#line 1309 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3694 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _activeRef, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
3695#line 1309 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3696 tmpMeta[1] = mmc_mk_box4(12, &DAE_Exp_LBINARY__desc, tmpMeta[0], _OMC_LIT87((void*)((char*)(&(_OMC_LIT_STRUCT87).header) + 3)), _eqExp);
3697#line 1309 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3698 _andExp = tmpMeta[1];
3699#line 3699 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3700
3701#line 1310 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3702 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _activePlotIndicatorRef, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
3703#line 1310 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3704 tmpMeta[1] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, tmpMeta[0], _andExp, _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)));
3705#line 1310 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3706 _eqn = tmpMeta[1];
3707#line 3707 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3708 _return: OMC_LABEL_UNUSED__attribute__((unused))
3709 if (out_eqn) { *out_eqn = _eqn; }
3710 return _activePlotIndicatorVar;
3711}
3712PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_createActiveIndicator(threadData_t *threadData, modelica_metatype _stateRef, modelica_metatype _preRef, modelica_metatype _i, modelica_metatype *out_eqn)
3713{
3714 modelica_integer tmp1;
3715 modelica_metatype _activePlotIndicatorVar = NULL((void*)0);
3716 tmp1 = mmc_unbox_integer(_i)(((mmc_sint_t) (_i)) >> 1);
3717 _activePlotIndicatorVar = omc_StateMachineFlatten_createActiveIndicator(threadData, _stateRef, _preRef, tmp1, out_eqn);
3718 /* skip box _activePlotIndicatorVar; DAE.Element */
3719 /* skip box _eqn; DAE.Element */
3720 return _activePlotIndicatorVar;
3721}
3722
3723PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_createTicksInStateIndicator(threadData_t *threadData, modelica_metatype _stateRef, modelica_metatype _stateActiveRef, modelica_metatype *out_ticksInStateEqn)
3724{
3725 modelica_metatype _ticksInStateVar = NULL((void*)0);
3726 modelica_metatype _ticksInStateEqn = NULL((void*)0);
3727 modelica_metatype _ticksInStateRef = NULL((void*)0);
3728 modelica_metatype _ticksInStateExp = NULL((void*)0);
3729 modelica_metatype _expCond = NULL((void*)0);
3730 modelica_metatype _expThen = NULL((void*)0);
3731 modelica_metatype _expElse = NULL((void*)0);
3732 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
3733 MMC_SO()mmc_check_stackoverflow(threadData);
3734 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3735 // _ticksInStateVar has no default value.
3736 // _ticksInStateEqn has no default value.
3737 // _ticksInStateRef has no default value.
3738 // _ticksInStateExp has no default value.
3739 // _expCond has no default value.
3740 // _expThen has no default value.
3741 // _expElse has no default value.
3742#line 1272 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3743 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3744#line 1272 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3745 _ticksInStateRef = omc_StateMachineFlatten_qCref(threadData, _OMC_LIT88((void*)((char*)(&(_OMC_LIT_STRUCT88).header) + 3)), _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)), tmpMeta[0], _stateRef);
3746#line 3746 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3747
3748#line 1273 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3749 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3750#line 1273 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3751 _ticksInStateVar = omc_StateMachineFlatten_createVarWithDefaults(threadData, _ticksInStateRef, _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)), _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)), tmpMeta[0]);
3752#line 3752 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3753
3754#line 1274 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3755 _ticksInStateVar = omc_StateMachineFlatten_setVarFixedStartValue(threadData, _ticksInStateVar, _OMC_LIT71((void*)((char*)(&(_OMC_LIT_STRUCT71).header) + 3)));
3756#line 3756 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3757
3758#line 1277 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3759 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _ticksInStateRef, _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)));
3760#line 1277 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3761 _ticksInStateExp = tmpMeta[0];
3762#line 3762 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3763
3764#line 1278 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3765 _expCond = omc_Expression_crefExp(threadData, _stateActiveRef);
3766#line 3766 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3767
3768#line 1280 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3769 tmpMeta[0] = mmc_mk_cons(_ticksInStateExp, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
3770#line 1280 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3771 tmpMeta[1] = mmc_mk_box4(16, &DAE_Exp_CALL__desc, _OMC_LIT78((void*)((char*)(&(_OMC_LIT_STRUCT78).header) + 3)), tmpMeta[0], _OMC_LIT80((void*)((char*)(&(_OMC_LIT_STRUCT80).header) + 3)));
3772#line 1280 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3773 tmpMeta[2] = mmc_mk_box4(10, &DAE_Exp_BINARY__desc, tmpMeta[1], _OMC_LIT89((void*)((char*)(&(_OMC_LIT_STRUCT89).header) + 3)), _OMC_LIT79((void*)((char*)(&(_OMC_LIT_STRUCT79).header) + 3)));
3774#line 1280 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3775 _expThen = tmpMeta[2];
3776#line 3776 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3777
3778#line 1281 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3779 _expElse = _OMC_LIT71((void*)((char*)(&(_OMC_LIT_STRUCT71).header) + 3));
3780#line 3780 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3781
3782#line 1282 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3783 tmpMeta[0] = mmc_mk_box4(15, &DAE_Exp_IFEXP__desc, _expCond, _expThen, _expElse);
3784#line 1282 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3785 tmpMeta[1] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, _ticksInStateExp, tmpMeta[0], _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)));
3786#line 1282 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3787 _ticksInStateEqn = tmpMeta[1];
3788#line 3788 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3789 _return: OMC_LABEL_UNUSED__attribute__((unused))
3790 if (out_ticksInStateEqn) { *out_ticksInStateEqn = _ticksInStateEqn; }
3791 return _ticksInStateVar;
3792}
3793
3794PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_createTimeEnteredStateIndicator(threadData_t *threadData, modelica_metatype _stateRef, modelica_metatype _stateActiveRef, modelica_metatype *out_timeEnteredStateEqn)
3795{
3796 modelica_metatype _timeEnteredStateVar = NULL((void*)0);
3797 modelica_metatype _timeEnteredStateEqn = NULL((void*)0);
3798 modelica_metatype _timeEnteredStateRef = NULL((void*)0);
3799 modelica_metatype _timeEnteredStateExp = NULL((void*)0);
3800 modelica_metatype _stateActiveExp = NULL((void*)0);
3801 modelica_metatype _expCond = NULL((void*)0);
3802 modelica_metatype _expThen = NULL((void*)0);
3803 modelica_metatype _expElse = NULL((void*)0);
3804 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
3805 MMC_SO()mmc_check_stackoverflow(threadData);
3806 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3807 // _timeEnteredStateVar has no default value.
3808 // _timeEnteredStateEqn has no default value.
3809 // _timeEnteredStateRef has no default value.
3810 // _timeEnteredStateExp has no default value.
3811 // _stateActiveExp has no default value.
3812 // _expCond has no default value.
3813 // _expThen has no default value.
3814 // _expElse has no default value.
3815#line 1234 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3816 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3817#line 1234 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3818 _timeEnteredStateRef = omc_StateMachineFlatten_qCref(threadData, _OMC_LIT90((void*)((char*)(&(_OMC_LIT_STRUCT90).header) + 3)), _OMC_LIT91((void*)((char*)(&(_OMC_LIT_STRUCT91).header) + 3)), tmpMeta[0], _stateRef);
3819#line 3819 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3820
3821#line 1235 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3822 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3823#line 1235 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3824 _timeEnteredStateVar = omc_StateMachineFlatten_createVarWithDefaults(threadData, _timeEnteredStateRef, _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)), _OMC_LIT91((void*)((char*)(&(_OMC_LIT_STRUCT91).header) + 3)), tmpMeta[0]);
3825#line 3825 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3826
3827#line 1236 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3828 _timeEnteredStateVar = omc_StateMachineFlatten_setVarFixedStartValue(threadData, _timeEnteredStateVar, _OMC_LIT92((void*)((char*)(&(_OMC_LIT_STRUCT92).header) + 3)));
3829#line 3829 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3830
3831#line 1237 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3832 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _timeEnteredStateRef, _OMC_LIT91((void*)((char*)(&(_OMC_LIT_STRUCT91).header) + 3)));
3833#line 1237 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3834 _timeEnteredStateExp = tmpMeta[0];
3835#line 3835 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3836
3837#line 1239 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3838 _stateActiveExp = omc_Expression_crefExp(threadData, _stateActiveRef);
3839#line 3839 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3840
3841#line 1243 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3842 tmpMeta[0] = mmc_mk_cons(_stateActiveExp, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
3843#line 1243 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3844 tmpMeta[1] = mmc_mk_box4(16, &DAE_Exp_CALL__desc, _OMC_LIT78((void*)((char*)(&(_OMC_LIT_STRUCT78).header) + 3)), tmpMeta[0], _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)));
3845#line 1243 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3846 tmpMeta[2] = mmc_mk_box6(14, &DAE_Exp_RELATION__desc, tmpMeta[1], _OMC_LIT93((void*)((char*)(&(_OMC_LIT_STRUCT93).header) + 3)), _OMC_LIT62((void*)((char*)(&(_OMC_LIT_STRUCT62).header) + 3)), mmc_mk_integermmc_mk_icon(((modelica_integer) -1)), mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)));
3847#line 1243 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3848 tmpMeta[3] = mmc_mk_box6(14, &DAE_Exp_RELATION__desc, _stateActiveExp, _OMC_LIT93((void*)((char*)(&(_OMC_LIT_STRUCT93).header) + 3)), _OMC_LIT77((void*)((char*)(&(_OMC_LIT_STRUCT77).header) + 3)), mmc_mk_integermmc_mk_icon(((modelica_integer) -1)), mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)));
3849#line 1243 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3850 tmpMeta[4] = mmc_mk_box4(12, &DAE_Exp_LBINARY__desc, tmpMeta[2], _OMC_LIT87((void*)((char*)(&(_OMC_LIT_STRUCT87).header) + 3)), tmpMeta[3]);
3851#line 1243 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3852 _expCond = tmpMeta[4];
3853#line 3853 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3854
3855#line 1249 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3856 _expThen = _OMC_LIT102((void*)((char*)(&(_OMC_LIT_STRUCT102).header) + 3));
3857#line 3857 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3858
3859#line 1254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3860 tmpMeta[0] = mmc_mk_cons(_timeEnteredStateExp, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
3861#line 1254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3862 tmpMeta[1] = mmc_mk_box4(16, &DAE_Exp_CALL__desc, _OMC_LIT78((void*)((char*)(&(_OMC_LIT_STRUCT78).header) + 3)), tmpMeta[0], _OMC_LIT101((void*)((char*)(&(_OMC_LIT_STRUCT101).header) + 3)));
3863#line 1254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3864 _expElse = tmpMeta[1];
3865#line 3865 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3866
3867#line 1256 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3868 tmpMeta[0] = mmc_mk_box4(15, &DAE_Exp_IFEXP__desc, _expCond, _expThen, _expElse);
3869#line 1256 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3870 tmpMeta[1] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, _timeEnteredStateExp, tmpMeta[0], _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)));
3871#line 1256 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3872 _timeEnteredStateEqn = tmpMeta[1];
3873#line 3873 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3874 _return: OMC_LABEL_UNUSED__attribute__((unused))
3875 if (out_timeEnteredStateEqn) { *out_timeEnteredStateEqn = _timeEnteredStateEqn; }
3876 return _timeEnteredStateVar;
3877}
3878
3879PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_createTimeInStateIndicator(threadData_t *threadData, modelica_metatype _stateRef, modelica_metatype _stateActiveRef, modelica_metatype _timeEnteredStateVar, modelica_metatype *out_timeInStateEqn)
3880{
3881 modelica_metatype _timeInStateVar = NULL((void*)0);
3882 modelica_metatype _timeInStateEqn = NULL((void*)0);
3883 modelica_metatype _timeInStateRef = NULL((void*)0);
3884 modelica_metatype _timeEnteredStateRef = NULL((void*)0);
3885 modelica_metatype _ty = NULL((void*)0);
3886 modelica_metatype _timeInStateExp = NULL((void*)0);
3887 modelica_metatype _timeEnteredStateExp = NULL((void*)0);
3888 modelica_metatype _stateActiveExp = NULL((void*)0);
3889 modelica_metatype _expCond = NULL((void*)0);
3890 modelica_metatype _expSampleTime = NULL((void*)0);
3891 modelica_metatype _expThen = NULL((void*)0);
3892 modelica_metatype _expElse = NULL((void*)0);
3893 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
3894 MMC_SO()mmc_check_stackoverflow(threadData);
3895 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3896 // _timeInStateVar has no default value.
3897 // _timeInStateEqn has no default value.
3898 // _timeInStateRef has no default value.
3899 // _timeEnteredStateRef has no default value.
3900 // _ty has no default value.
3901 // _timeInStateExp has no default value.
3902 // _timeEnteredStateExp has no default value.
3903 // _stateActiveExp has no default value.
3904 // _expCond has no default value.
3905 // _expSampleTime has no default value.
3906 // _expThen has no default value.
3907 // _expElse has no default value.
3908#line 1195 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3909 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3910#line 1195 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3911 _timeInStateRef = omc_StateMachineFlatten_qCref(threadData, _OMC_LIT103((void*)((char*)(&(_OMC_LIT_STRUCT103).header) + 3)), _OMC_LIT91((void*)((char*)(&(_OMC_LIT_STRUCT91).header) + 3)), tmpMeta[0], _stateRef);
3912#line 3912 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3913
3914#line 1196 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3915 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3916#line 1196 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3917 _timeInStateVar = omc_StateMachineFlatten_createVarWithDefaults(threadData, _timeInStateRef, _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)), _OMC_LIT91((void*)((char*)(&(_OMC_LIT_STRUCT91).header) + 3)), tmpMeta[0]);
3918#line 3918 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3919
3920#line 1197 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3921 _timeInStateVar = omc_StateMachineFlatten_setVarFixedStartValue(threadData, _timeInStateVar, _OMC_LIT92((void*)((char*)(&(_OMC_LIT_STRUCT92).header) + 3)));
3922#line 3922 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3923
3924#line 1198 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3925 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _timeInStateRef, _OMC_LIT91((void*)((char*)(&(_OMC_LIT_STRUCT91).header) + 3)));
3926#line 1198 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3927 _timeInStateExp = tmpMeta[0];
3928#line 3928 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3929
3930#line 1200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3931 /* Pattern-matching assignment */
3932#line 1200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3933 tmpMeta[0] = _timeEnteredStateVar;
3934#line 1200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3935 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,13)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((13 +1
) << 10) + (((0 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3936#line 1200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3937 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
3938#line 1200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3939 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (7)))))
;
3940#line 1200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3941 _timeEnteredStateRef = tmpMeta[1];
3942#line 1200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3943 _ty = tmpMeta[2];
3944#line 3944 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3945
3946#line 1201 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3947 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _timeEnteredStateRef, _ty);
3948#line 1201 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3949 _timeEnteredStateExp = tmpMeta[0];
3950#line 3950 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3951
3952#line 1203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3953 _stateActiveExp = omc_Expression_crefExp(threadData, _stateActiveRef);
3954#line 3954 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3955
3956#line 1207 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3957 _expCond = omc_Expression_crefExp(threadData, _stateActiveRef);
3958#line 3958 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3959
3960#line 1209 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3961 _expSampleTime = _OMC_LIT102((void*)((char*)(&(_OMC_LIT_STRUCT102).header) + 3));
3962#line 3962 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3963
3964#line 1214 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3965 tmpMeta[0] = mmc_mk_box4(10, &DAE_Exp_BINARY__desc, _expSampleTime, _OMC_LIT104((void*)((char*)(&(_OMC_LIT_STRUCT104).header) + 3)), _timeEnteredStateExp);
3966#line 1214 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3967 _expThen = tmpMeta[0];
3968#line 3968 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3969
3970#line 1216 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3971 _expElse = _OMC_LIT92((void*)((char*)(&(_OMC_LIT_STRUCT92).header) + 3));
3972#line 3972 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3973
3974#line 1218 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3975 tmpMeta[0] = mmc_mk_box4(15, &DAE_Exp_IFEXP__desc, _expCond, _expThen, _expElse);
3976#line 1218 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3977 tmpMeta[1] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, _timeInStateExp, tmpMeta[0], _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)));
3978#line 1218 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
3979 _timeInStateEqn = tmpMeta[1];
3980#line 3980 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
3981 _return: OMC_LABEL_UNUSED__attribute__((unused))
3982 if (out_timeInStateEqn) { *out_timeInStateEqn = _timeInStateEqn; }
3983 return _timeInStateVar;
3984}
3985
3986PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_addPropagationEquations(threadData_t *threadData, modelica_metatype _inFlatSmSemantics, modelica_metatype _inEnclosingStateCrefOption, modelica_metatype _inEnclosingFlatSmSemanticsOption)
3987{
3988 modelica_metatype _outFlatSmSemantics = NULL((void*)0);
3989 modelica_metatype _preRef = NULL((void*)0);
3990 modelica_metatype _initStateRef = NULL((void*)0);
3991 modelica_metatype _initRef = NULL((void*)0);
3992 modelica_metatype _resetRef = NULL((void*)0);
3993 modelica_metatype _activeRef = NULL((void*)0);
3994 modelica_metatype _stateRef = NULL((void*)0);
3995 modelica_metatype _activePlotIndicatorRef = NULL((void*)0);
3996 modelica_metatype _initVar = NULL((void*)0);
3997 modelica_metatype _activePlotIndicatorVar = NULL((void*)0);
3998 modelica_metatype _ticksInStateVar = NULL((void*)0);
3999 modelica_metatype _timeEnteredStateVar = NULL((void*)0);
4000 modelica_metatype _timeInStateVar = NULL((void*)0);
4001 modelica_metatype _activePlotIndicatorEqn = NULL((void*)0);
4002 modelica_metatype _ticksInStateEqn = NULL((void*)0);
4003 modelica_metatype _timeEnteredStateEqn = NULL((void*)0);
4004 modelica_metatype _timeInStateEqn = NULL((void*)0);
4005 modelica_metatype _rhs = NULL((void*)0);
4006 modelica_metatype _andExp = NULL((void*)0);
4007 modelica_metatype _eqExp = NULL((void*)0);
4008 modelica_metatype _activeResetStateRefExp = NULL((void*)0);
4009 modelica_metatype _activeStateRefExp = NULL((void*)0);
4010 modelica_metatype _activeResetRefExp = NULL((void*)0);
4011 modelica_metatype _tArrayBool = NULL((void*)0);
4012 modelica_metatype _tArrayInteger = NULL((void*)0);
4013 modelica_string _ident = NULL((void*)0);
4014 modelica_metatype _smComps = NULL((void*)0);
4015 modelica_metatype _t = NULL((void*)0);
4016 modelica_metatype _c = NULL((void*)0);
4017 modelica_metatype _smvars = NULL((void*)0);
4018 modelica_metatype _smknowns = NULL((void*)0);
4019 modelica_metatype _smeqs = NULL((void*)0);
4020 modelica_metatype _enclosingStateOption = NULL((void*)0);
4021 modelica_metatype _pvars = NULL((void*)0);
4022 modelica_metatype _peqs = NULL((void*)0);
4023 modelica_metatype _enclosingStateCref = NULL((void*)0);
4024 modelica_metatype _enclosingPreRef = NULL((void*)0);
4025 modelica_metatype _enclosingActiveResetStateRef = NULL((void*)0);
4026 modelica_metatype _enclosingActiveResetRef = NULL((void*)0);
4027 modelica_metatype _enclosingActiveStateRef = NULL((void*)0);
4028 modelica_metatype _enclosingFlatSMSemantics = NULL((void*)0);
4029 modelica_metatype _enclosingFlatSMComps = NULL((void*)0);
4030 modelica_metatype _enclosingFlatSMInitStateRef = NULL((void*)0);
4031 modelica_integer _posOfEnclosingSMComp;
4032 modelica_integer _nStates;
4033 modelica_integer tmp1;
4034 modelica_integer tmp2;
4035 modelica_integer tmp3;
4036 modelica_metatype tmpMeta[10] __attribute__((unused)) = {0};
4037 MMC_SO()mmc_check_stackoverflow(threadData);
4038 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4039 // _outFlatSmSemantics has no default value.
4040 // _preRef has no default value.
4041 // _initStateRef has no default value.
4042 // _initRef has no default value.
4043 // _resetRef has no default value.
4044 // _activeRef has no default value.
4045 // _stateRef has no default value.
4046 // _activePlotIndicatorRef has no default value.
4047 // _initVar has no default value.
4048 // _activePlotIndicatorVar has no default value.
4049 // _ticksInStateVar has no default value.
4050 // _timeEnteredStateVar has no default value.
4051 // _timeInStateVar has no default value.
4052 // _activePlotIndicatorEqn has no default value.
4053 // _ticksInStateEqn has no default value.
4054 // _timeEnteredStateEqn has no default value.
4055 // _timeInStateEqn has no default value.
4056 // _rhs has no default value.
4057 // _andExp has no default value.
4058 // _eqExp has no default value.
4059 // _activeResetStateRefExp has no default value.
4060 // _activeStateRefExp has no default value.
4061 // _activeResetRefExp has no default value.
4062 // _tArrayBool has no default value.
4063 // _tArrayInteger has no default value.
4064 // _ident has no default value.
4065 // _smComps has no default value.
4066 // _t has no default value.
4067 // _c has no default value.
4068 // _smvars has no default value.
4069 // _smknowns has no default value.
4070 // _smeqs has no default value.
4071 // _enclosingStateOption has no default value.
4072 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4073 _pvars = tmpMeta[0];
4074 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4075 _peqs = tmpMeta[1];
4076 // _enclosingStateCref has no default value.
4077 // _enclosingPreRef has no default value.
4078 // _enclosingActiveResetStateRef has no default value.
4079 // _enclosingActiveResetRef has no default value.
4080 // _enclosingActiveStateRef has no default value.
4081 // _enclosingFlatSMSemantics has no default value.
4082 // _enclosingFlatSMComps has no default value.
4083 // _enclosingFlatSMInitStateRef has no default value.
4084 // _posOfEnclosingSMComp has no default value.
4085 // _nStates has no default value.
4086#line 1092 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4087 /* Pattern-matching assignment */
4088#line 1092 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4089 tmpMeta[2] = _inFlatSmSemantics;
4090#line 1092 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4091 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
4092#line 1092 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4093 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (3)))))
;
4094#line 1092 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4095 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (4)))))
;
4096#line 1092 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4097 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (5)))))
;
4098#line 1092 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4099 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (6)))))
;
4100#line 1092 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4101 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (7)))))
;
4102#line 1092 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4103 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (8)))))
;
4104#line 1092 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4105 _ident = tmpMeta[3];
4106#line 1092 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4107 _smComps = tmpMeta[4];
4108#line 1092 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4109 _t = tmpMeta[5];
4110#line 1092 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4111 _c = tmpMeta[6];
4112#line 1092 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4113 _smvars = tmpMeta[7];
4114#line 1092 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4115 _smknowns = tmpMeta[8];
4116#line 1092 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4117 _smeqs = tmpMeta[9];
4118#line 4118 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4119
4120#line 1094 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4121 /* Pattern-matching assignment */
4122#line 1094 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4123 tmpMeta[2] = arrayGet(_smComps, ((modelica_integer) 1))nobox_arrayGet(threadData,_smComps,((modelica_integer) 1));
4124#line 1094 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4125 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],29,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((2 +1)
<< 10) + (((29 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4126#line 1094 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4127 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
4128#line 1094 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4129 _initStateRef = tmpMeta[3];
4130#line 4130 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4131
4132#line 1096 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4133 _preRef = omc_ComponentReference_crefPrefixString(threadData, _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)), _initStateRef);
4134#line 4134 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4135
4136#line 1099 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4137 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4138#line 1099 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4139 _activeRef = omc_StateMachineFlatten_qCref(threadData, _OMC_LIT63((void*)((char*)(&(_OMC_LIT_STRUCT63).header) + 3)), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)), tmpMeta[2], _preRef);
4140#line 4140 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4141
4142#line 1100 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4143 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4144#line 1100 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4145 _resetRef = omc_StateMachineFlatten_qCref(threadData, _OMC_LIT64((void*)((char*)(&(_OMC_LIT_STRUCT64).header) + 3)), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)), tmpMeta[2], _preRef);
4146#line 4146 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4147
4148#line 1101 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4149 if(isNone(_inEnclosingFlatSmSemanticsOption)(0==((((((*(mmc_uint_t*)((void*)((char*)(_inEnclosingFlatSmSemanticsOption
) - 3)))) & (7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char
*)(_inEnclosingFlatSmSemanticsOption) - 3)))) >> (3+3))
) : (((*(mmc_uint_t*)((void*)((char*)(_inEnclosingFlatSmSemanticsOption
) - 3)))) >> 10)) ? 1 : 0)
)
4150#line 1101 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4151 {
4152#line 1104 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4153 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4154#line 1104 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4155 _initRef = omc_StateMachineFlatten_qCref(threadData, _OMC_LIT106((void*)((char*)(&(_OMC_LIT_STRUCT106).header) + 3)), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)), tmpMeta[2], _preRef);
4156#line 4156 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4157
4158#line 1105 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4159 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4160#line 1105 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4161 _initVar = omc_StateMachineFlatten_createVarWithDefaults(threadData, _initRef, _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)), tmpMeta[2]);
4162#line 4162 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4163
4164#line 1106 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4165 _initVar = omc_StateMachineFlatten_setVarFixedStartValue(threadData, _initVar, _OMC_LIT77((void*)((char*)(&(_OMC_LIT_STRUCT77).header) + 3)));
4166#line 4166 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4167
4168#line 1107 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4169 tmpMeta[2] = mmc_mk_cons(_initVar, _pvars);
4170#line 1107 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4171 _pvars = tmpMeta[2];
4172#line 4172 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4173
4174#line 1108 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4175 tmpMeta[3] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _initRef, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
4176#line 1108 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4177 tmpMeta[4] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, tmpMeta[3], _OMC_LIT62((void*)((char*)(&(_OMC_LIT_STRUCT62).header) + 3)), _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)));
4178#line 1108 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4179 tmpMeta[2] = mmc_mk_cons(tmpMeta[4], _peqs);
4180#line 1108 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4181 _peqs = tmpMeta[2];
4182#line 4182 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4183
4184#line 1111 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4185 tmpMeta[3] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _initRef, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
4186#line 1111 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4187 tmpMeta[2] = mmc_mk_cons(tmpMeta[3], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
4188#line 1111 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4189 tmpMeta[4] = mmc_mk_box4(16, &DAE_Exp_CALL__desc, _OMC_LIT78((void*)((char*)(&(_OMC_LIT_STRUCT78).header) + 3)), tmpMeta[2], _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)));
4190#line 1111 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4191 _rhs = tmpMeta[4];
4192#line 4192 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4193
4194#line 1112 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4195 tmpMeta[3] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _resetRef, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
4196#line 1112 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4197 tmpMeta[4] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, tmpMeta[3], _rhs, _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)));
4198#line 1112 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4199 tmpMeta[2] = mmc_mk_cons(tmpMeta[4], _peqs);
4200#line 1112 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4201 _peqs = tmpMeta[2];
4202#line 4202 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4203
4204#line 1116 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4205 tmpMeta[3] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _activeRef, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
4206#line 1116 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4207 tmpMeta[4] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, tmpMeta[3], _OMC_LIT77((void*)((char*)(&(_OMC_LIT_STRUCT77).header) + 3)), _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)));
4208#line 1116 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4209 tmpMeta[2] = mmc_mk_cons(tmpMeta[4], _peqs);
4210#line 1116 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4211 _peqs = tmpMeta[2];
4212#line 4212 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4213 }
4214 else
4215 {
4216#line 1119 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4217 _enclosingStateCref = omc_Util_getOption(threadData, _inEnclosingStateCrefOption);
4218#line 4218 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4219
4220#line 1120 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4221 _enclosingFlatSMSemantics = omc_Util_getOption(threadData, _inEnclosingFlatSmSemanticsOption);
4222#line 4222 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4223
4224#line 1121 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4225 /* Pattern-matching assignment */
4226#line 1121 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4227 tmpMeta[2] = _enclosingFlatSMSemantics;
4228#line 1121 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4229 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (3)))))
;
4230#line 1121 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4231 _enclosingFlatSMComps = tmpMeta[3];
4232#line 4232 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4233
4234#line 1123 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4235 /* Pattern-matching assignment */
4236#line 1123 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4237 tmpMeta[2] = arrayGet(_enclosingFlatSMComps, ((modelica_integer) 1))nobox_arrayGet(threadData,_enclosingFlatSMComps,((modelica_integer
) 1))
;
4238#line 1123 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4239 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],29,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((2 +1)
<< 10) + (((29 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4240#line 1123 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4241 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
4242#line 1123 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4243 _enclosingFlatSMInitStateRef = tmpMeta[3];
4244#line 4244 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4245
4246#line 1125 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4247 _enclosingPreRef = omc_ComponentReference_crefPrefixString(threadData, _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)), _enclosingFlatSMInitStateRef);
4248#line 4248 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4249
4250#line 1128 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4251 _posOfEnclosingSMComp = omc_List_position1OnTrue(threadData, arrayList(_enclosingFlatSMComps), boxvar_StateMachineFlatten_sMCompEqualsRef((void*)((char*)(&(boxvar_lit_StateMachineFlatten_sMCompEqualsRef
).header) + 3))
, _enclosingStateCref);
4252#line 4252 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4253
4254#line 1131 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4255 _nStates = arrayLength(_enclosingFlatSMComps);
4256#line 4256 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4257
4258#line 1132 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4259 tmpMeta[3] = mmc_mk_box2(3, &DAE_Dimension_DIM__INTEGER__desc, mmc_mk_integermmc_mk_icon(_nStates));
4260#line 1132 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4261 tmpMeta[2] = mmc_mk_cons(tmpMeta[3], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
4262#line 1132 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4263 tmpMeta[4] = mmc_mk_box3(9, &DAE_Type_T__ARRAY__desc, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)), tmpMeta[2]);
4264#line 1132 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4265 _tArrayBool = tmpMeta[4];
4266#line 4266 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4267
4268#line 1133 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4269 tmpMeta[3] = mmc_mk_box2(3, &DAE_Dimension_DIM__INTEGER__desc, mmc_mk_integermmc_mk_icon(_nStates));
4270#line 1133 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4271 tmpMeta[2] = mmc_mk_cons(tmpMeta[3], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
4272#line 1133 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4273 tmpMeta[4] = mmc_mk_box3(9, &DAE_Type_T__ARRAY__desc, _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)), tmpMeta[2]);
4274#line 1133 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4275 _tArrayInteger = tmpMeta[4];
Value stored to '_tArrayInteger' is never read
4276#line 4276 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4277
4278#line 1134 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4279 tmpMeta[3] = mmc_mk_box2(3, &DAE_Exp_ICONST__desc, mmc_mk_integermmc_mk_icon(_posOfEnclosingSMComp));
4280#line 1134 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4281 tmpMeta[4] = mmc_mk_box2(5, &DAE_Subscript_INDEX__desc, tmpMeta[3]);
4282#line 1134 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4283 tmpMeta[2] = mmc_mk_cons(tmpMeta[4], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
4284#line 1134 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4285 _enclosingActiveResetStateRef = omc_StateMachineFlatten_qCref(threadData, _OMC_LIT73((void*)((char*)(&(_OMC_LIT_STRUCT73).header) + 3)), _tArrayBool, tmpMeta[2], _enclosingPreRef);
4286#line 4286 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4287
4288#line 1135 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4289 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4290#line 1135 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4291 _enclosingActiveResetRef = omc_StateMachineFlatten_qCref(threadData, _OMC_LIT69((void*)((char*)(&(_OMC_LIT_STRUCT69).header) + 3)), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)), tmpMeta[2], _enclosingPreRef);
4292#line 4292 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4293
4294#line 1136 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4295 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4296#line 1136 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4297 _enclosingActiveStateRef = omc_StateMachineFlatten_qCref(threadData, _OMC_LIT68((void*)((char*)(&(_OMC_LIT_STRUCT68).header) + 3)), _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)), tmpMeta[2], _enclosingPreRef);
4298#line 4298 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4299
4300#line 1138 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4301 tmpMeta[2] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _enclosingActiveStateRef, _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)));
4302#line 1138 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4303 tmpMeta[3] = mmc_mk_box2(3, &DAE_Exp_ICONST__desc, mmc_mk_integermmc_mk_icon(_posOfEnclosingSMComp));
4304#line 1138 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4305 tmpMeta[4] = mmc_mk_box6(14, &DAE_Exp_RELATION__desc, tmpMeta[2], _OMC_LIT81((void*)((char*)(&(_OMC_LIT_STRUCT81).header) + 3)), tmpMeta[3], mmc_mk_integermmc_mk_icon(((modelica_integer) -1)), mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)));
4306#line 1138 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4307 _eqExp = tmpMeta[4];
4308#line 4308 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4309
4310#line 1140 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4311 tmpMeta[2] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _enclosingActiveResetRef, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
4312#line 1140 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4313 tmpMeta[3] = mmc_mk_box4(12, &DAE_Exp_LBINARY__desc, tmpMeta[2], _OMC_LIT87((void*)((char*)(&(_OMC_LIT_STRUCT87).header) + 3)), _eqExp);
4314#line 1140 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4315 _andExp = tmpMeta[3];
4316#line 4316 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4317
4318#line 1141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4319 tmpMeta[2] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _enclosingActiveResetStateRef, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
4320#line 1141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4321 tmpMeta[3] = mmc_mk_box4(12, &DAE_Exp_LBINARY__desc, tmpMeta[2], _OMC_LIT105((void*)((char*)(&(_OMC_LIT_STRUCT105).header) + 3)), _andExp);
4322#line 1141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4323 _rhs = tmpMeta[3];
4324#line 4324 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4325
4326#line 1144 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4327 tmpMeta[3] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _resetRef, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
4328#line 1144 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4329 tmpMeta[4] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, tmpMeta[3], _rhs, _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)));
4330#line 1144 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4331 tmpMeta[2] = mmc_mk_cons(tmpMeta[4], _peqs);
4332#line 1144 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4333 _peqs = tmpMeta[2];
4334#line 4334 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4335
4336#line 1147 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4337 tmpMeta[2] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _enclosingActiveStateRef, _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)));
4338#line 1147 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4339 tmpMeta[3] = mmc_mk_box2(3, &DAE_Exp_ICONST__desc, mmc_mk_integermmc_mk_icon(_posOfEnclosingSMComp));
4340#line 1147 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4341 tmpMeta[4] = mmc_mk_box6(14, &DAE_Exp_RELATION__desc, tmpMeta[2], _OMC_LIT81((void*)((char*)(&(_OMC_LIT_STRUCT81).header) + 3)), tmpMeta[3], mmc_mk_integermmc_mk_icon(((modelica_integer) -1)), mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)));
4342#line 1147 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4343 _rhs = tmpMeta[4];
4344#line 4344 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4345
4346#line 1149 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4347 tmpMeta[3] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _activeRef, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
4348#line 1149 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4349 tmpMeta[4] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, tmpMeta[3], _rhs, _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)));
4350#line 1149 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4351 tmpMeta[2] = mmc_mk_cons(tmpMeta[4], _peqs);
4352#line 1149 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4353 _peqs = tmpMeta[2];
4354#line 4354 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4355 }
4356
4357#line 1153 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4358 tmp1 = ((modelica_integer) 1); tmp2 = 1; tmp3 = arrayLength(_smComps);
4359#line 1153 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4360 if(!(((tmp2 > 0) && (tmp1 > tmp3)) || ((tmp2 < 0) && (tmp1 < tmp3))))
4361#line 1153 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4362 {
4363#line 1153 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4364 modelica_integer _i;
4365#line 1153 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4366 for(_i = ((modelica_integer) 1); in_range_integer(_i, tmp1, tmp3); _i += tmp2)
4367#line 1153 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4368 {
4369#line 1155 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4370 /* Pattern-matching assignment */
4371#line 1155 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4372 tmpMeta[2] = arrayGet(_smComps, _i)nobox_arrayGet(threadData,_smComps,_i);
4373#line 1155 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4374 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],29,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((2 +1)
<< 10) + (((29 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4375#line 1155 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4376 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
4377#line 1155 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4378 _stateRef = tmpMeta[3];
4379#line 4379 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4380
4381#line 1156 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4382 _activePlotIndicatorVar = omc_StateMachineFlatten_createActiveIndicator(threadData, _stateRef, _preRef, _i ,&_activePlotIndicatorEqn);
4383#line 4383 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4384
4385#line 1157 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4386 tmpMeta[2] = mmc_mk_cons(_activePlotIndicatorVar, _pvars);
4387#line 1157 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4388 _pvars = tmpMeta[2];
4389#line 4389 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4390
4391#line 1158 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4392 tmpMeta[2] = mmc_mk_cons(_activePlotIndicatorEqn, _peqs);
4393#line 1158 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4394 _peqs = tmpMeta[2];
4395#line 4395 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4396
4397#line 1161 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4398 /* Pattern-matching assignment */
4399#line 1161 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4400 tmpMeta[2] = _activePlotIndicatorVar;
4401#line 1161 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4402 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],0,13)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((13 +1
) << 10) + (((0 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4403#line 1161 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4404 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
4405#line 1161 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4406 _activePlotIndicatorRef = tmpMeta[3];
4407#line 4407 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4408
4409#line 1162 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4410 _ticksInStateVar = omc_StateMachineFlatten_createTicksInStateIndicator(threadData, _stateRef, _activePlotIndicatorRef ,&_ticksInStateEqn);
4411#line 4411 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4412
4413#line 1163 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4414 tmpMeta[2] = mmc_mk_cons(_ticksInStateVar, _pvars);
4415#line 1163 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4416 _pvars = tmpMeta[2];
4417#line 4417 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4418
4419#line 1164 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4420 tmpMeta[2] = mmc_mk_cons(_ticksInStateEqn, _peqs);
4421#line 1164 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4422 _peqs = tmpMeta[2];
4423#line 4423 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4424
4425#line 1169 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4426 _timeEnteredStateVar = omc_StateMachineFlatten_createTimeEnteredStateIndicator(threadData, _stateRef, _activePlotIndicatorRef ,&_timeEnteredStateEqn);
4427#line 4427 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4428
4429#line 1171 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4430 _timeInStateVar = omc_StateMachineFlatten_createTimeInStateIndicator(threadData, _stateRef, _activePlotIndicatorRef, _timeEnteredStateVar ,&_timeInStateEqn);
4431#line 4431 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4432
4433#line 1172 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4434 tmpMeta[3] = mmc_mk_cons(_timeInStateVar, _pvars);
4435#line 1172 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4436 tmpMeta[2] = mmc_mk_cons(_timeEnteredStateVar, tmpMeta[3]);
4437#line 1172 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4438 _pvars = tmpMeta[2];
4439#line 4439 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4440
4441#line 1173 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4442 tmpMeta[3] = mmc_mk_cons(_timeInStateEqn, _peqs);
4443#line 1173 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4444 tmpMeta[2] = mmc_mk_cons(_timeEnteredStateEqn, tmpMeta[3]);
4445#line 1173 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4446 _peqs = tmpMeta[2];
4447#line 4447 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4448 }
4449 }
4450
4451#line 1176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4452 tmpMeta[2] = mmc_mk_box11(3, &StateMachineFlatten_FlatSmSemantics_FLAT__SM__SEMANTICS__desc, _ident, _smComps, _t, _c, _smvars, _smknowns, _smeqs, _pvars, _peqs, _inEnclosingStateCrefOption);
4453#line 1176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4454 _outFlatSmSemantics = tmpMeta[2];
4455#line 4455 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4456 _return: OMC_LABEL_UNUSED__attribute__((unused))
4457 return _outFlatSmSemantics;
4458}
4459
4460PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_getStartAttrOption(threadData_t *threadData, modelica_metatype _inVarAttrOpt)
4461{
4462 modelica_metatype _outExpOpt = NULL((void*)0);
4463 modelica_metatype _start = NULL((void*)0);
4464 MMC_SO()mmc_check_stackoverflow(threadData);
4465 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4466 // _outExpOpt has no default value.
4467 // _start has no default value.
4468#line 1047 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4469 if(isSome(_inVarAttrOpt)(0==((((((*(mmc_uint_t*)((void*)((char*)(_inVarAttrOpt) - 3))
)) & (7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(_inVarAttrOpt
) - 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*
)(_inVarAttrOpt) - 3)))) >> 10)) ? 0 : 1)
)
4470#line 1047 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4471 {
4472#line 1048 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4473 _start = omc_DAEUtil_getStartAttr(threadData, _inVarAttrOpt);
4474#line 4474 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4475
4476#line 1049 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4477 _outExpOpt = mmc_mk_some(_start);
4478#line 4478 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4479 }
4480 else
4481 {
4482#line 1051 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4483 _outExpOpt = mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3));
4484#line 4484 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4485 }
4486 _return: OMC_LABEL_UNUSED__attribute__((unused))
4487 return _outExpOpt;
4488}
4489
4490static modelica_metatype closure1_ComponentReference_crefEqual(threadData_t *thData, modelica_metatype closure, modelica_metatype inComponentRef2)
4491{
4492 modelica_metatype inComponentRef1 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),1))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (1)))))
;
4493 return boxptr_ComponentReference_crefEqual(thData, inComponentRef1, inComponentRef2);
4494}
4495PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_traversingSubsPreviousCrefs(threadData_t *threadData, modelica_metatype _inExp, modelica_metatype _inCrefsHit, modelica_boolean *out_cont, modelica_metatype *out_outCrefsHit)
4496{
4497 modelica_metatype _outExp = NULL((void*)0);
4498 modelica_boolean _cont;
4499 modelica_metatype _outCrefsHit = NULL((void*)0);
4500 modelica_metatype tmpMeta[10] __attribute__((unused)) = {0};
4501 MMC_SO()mmc_check_stackoverflow(threadData);
4502 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4503 // _outExp has no default value.
4504 _cont = 1;
4505 // _outCrefsHit has no default value.
4506#line 1021 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4507
4508#line 1021 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4509
4510#line 4510 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4511 { /* match expression */
4512 modelica_metatype tmp4_1;modelica_metatype tmp4_2;
4513 tmp4_1 = _inExp;
4514 tmp4_2 = _inCrefsHit;
4515 {
4516 modelica_metatype _cr = NULL((void*)0);
4517 modelica_metatype _substituteRef = NULL((void*)0);
4518 modelica_metatype _crefs = NULL((void*)0);
4519 modelica_metatype _ty = NULL((void*)0);
4520 volatile mmc_switch_type tmp4;
4521 int tmp5;
4522 // _cr has no default value.
4523 // _substituteRef has no default value.
4524 // _crefs has no default value.
4525 // _ty has no default value.
4526 tmp4 = 0;
4527 for (; tmp4 < 2; tmp4++) {
4528 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4529 case 0: {
4530 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,13,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((13 +3) & 255) << 2)))
== 0) goto tmp3_end;
4531 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4532 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
4533 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
4534 if (8 != MMC_STRLEN(tmpMeta[3])(((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))) >>
(3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT3)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT3).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmpMeta[3])(((struct mmc_string*)((void*)((char*)(tmpMeta[3]) - 3)))->
data)
) != 0) goto tmp3_end;
4535 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
4536 if (listEmpty(tmpMeta[4])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4537 tmpMeta[5] = MMC_CAR(tmpMeta[4])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (1)))))
;
4538 tmpMeta[6] = MMC_CDR(tmpMeta[4])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (2)))))
;
4539 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[5],6,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5]) - 3)))==(((2 +1)
<< 10) + (((6 +3) & 255) << 2)))
== 0) goto tmp3_end;
4540 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (2)))))
;
4541 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (3)))))
;
4542 if (!listEmpty(tmpMeta[6])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[6]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4543 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
4544
4545 _cr = tmpMeta[7];
4546 _ty = tmpMeta[8];
4547 _crefs = tmpMeta[9];
4548 tmpMeta[2] = mmc_mk_box1(0, _cr);
4549 /* Pattern matching succeeded */
4550 /* Check guard condition after assignments */
4551 if (!omc_List_exist(threadData, _crefs, (modelica_fnptr) mmc_mk_box2(0,closure1_ComponentReference_crefEqual,tmpMeta[2]))) goto tmp3_end;
4552#line 1032 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4553 _substituteRef = omc_ComponentReference_appendStringLastIdent(threadData, _OMC_LIT107((void*)((char*)(&(_OMC_LIT_STRUCT107).header) + 3)), _cr);
4554#line 4554 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4555#line 1033 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4556 tmpMeta[3] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _substituteRef, _ty);
4557#line 1033 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4558 tmpMeta[4] = mmc_mk_box2(0, _crefs, mmc_mk_boolean(1)((1) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))));
4559#line 1033 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4560 tmpMeta[0+0] = tmpMeta[3];
4561#line 1033 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4562 tmpMeta[0+1] = tmpMeta[4];
4563#line 4563 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4564 goto tmp3_done;
4565 }
4566 case 1: {
4567
4568 /* Pattern matching succeeded */
4569#line 1034 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4570 tmpMeta[0+0] = _inExp;
4571#line 1034 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4572 tmpMeta[0+1] = _inCrefsHit;
4573#line 4573 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4574 goto tmp3_done;
4575 }
4576 }
4577 goto tmp3_end;
4578 tmp3_end: ;
4579 }
4580 goto goto_2;
4581 goto_2:;
4582 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4583 goto tmp3_done;
4584 tmp3_done:;
4585 }
4586 }
4587 _outExp = tmpMeta[0+0];
4588 _outCrefsHit = tmpMeta[0+1];
4589 _return: OMC_LABEL_UNUSED__attribute__((unused))
4590 if (out_cont) { *out_cont = _cont; }
4591 if (out_outCrefsHit) { *out_outCrefsHit = _outCrefsHit; }
4592 return _outExp;
4593}
4594PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_traversingSubsPreviousCrefs(threadData_t *threadData, modelica_metatype _inExp, modelica_metatype _inCrefsHit, modelica_metatype *out_cont, modelica_metatype *out_outCrefsHit)
4595{
4596 modelica_boolean _cont;
4597 modelica_metatype _outExp = NULL((void*)0);
4598 _outExp = omc_StateMachineFlatten_traversingSubsPreviousCrefs(threadData, _inExp, _inCrefsHit, &_cont, out_outCrefsHit);
4599 /* skip box _outExp; DAE.Exp */
4600 if (out_cont) { *out_cont = mmc_mk_icon(_cont); }
4601 /* skip box _outCrefsHit; tuple<list<DAE.ComponentRef>, #Boolean> */
4602 return _outExp;
4603}
4604
4605PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_traversingSubsPreviousCref(threadData_t *threadData, modelica_metatype _inExp, modelica_metatype _inCrefHit, modelica_boolean *out_cont, modelica_metatype *out_outCrefHit)
4606{
4607 modelica_metatype _outExp = NULL((void*)0);
4608 modelica_boolean _cont;
4609 modelica_metatype _outCrefHit = NULL((void*)0);
4610 modelica_metatype tmpMeta[10] __attribute__((unused)) = {0};
4611 MMC_SO()mmc_check_stackoverflow(threadData);
4612 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4613 // _outExp has no default value.
4614 _cont = 1;
4615 // _outCrefHit has no default value.
4616#line 993 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4617
4618#line 993 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4619
4620#line 4620 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4621 { /* match expression */
4622 modelica_metatype tmp4_1;modelica_metatype tmp4_2;
4623 tmp4_1 = _inExp;
4624 tmp4_2 = _inCrefHit;
4625 {
4626 modelica_metatype _cr = NULL((void*)0);
4627 modelica_metatype _cref = NULL((void*)0);
4628 modelica_metatype _substituteRef = NULL((void*)0);
4629 modelica_metatype _ty = NULL((void*)0);
4630 volatile mmc_switch_type tmp4;
4631 int tmp5;
4632 // _cr has no default value.
4633 // _cref has no default value.
4634 // _substituteRef has no default value.
4635 // _ty has no default value.
4636 tmp4 = 0;
4637 for (; tmp4 < 2; tmp4++) {
4638 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4639 case 0: {
4640 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,13,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((13 +3) & 255) << 2)))
== 0) goto tmp3_end;
4641 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4642 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
4643 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
4644 if (8 != MMC_STRLEN(tmpMeta[3])(((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))) >>
(3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT3)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT3).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmpMeta[3])(((struct mmc_string*)((void*)((char*)(tmpMeta[3]) - 3)))->
data)
) != 0) goto tmp3_end;
4645 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
4646 if (listEmpty(tmpMeta[4])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4647 tmpMeta[5] = MMC_CAR(tmpMeta[4])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (1)))))
;
4648 tmpMeta[6] = MMC_CDR(tmpMeta[4])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (2)))))
;
4649 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[5],6,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5]) - 3)))==(((2 +1)
<< 10) + (((6 +3) & 255) << 2)))
== 0) goto tmp3_end;
4650 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (2)))))
;
4651 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (3)))))
;
4652 if (!listEmpty(tmpMeta[6])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[6]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4653 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
4654
4655 _cr = tmpMeta[7];
4656 _ty = tmpMeta[8];
4657 _cref = tmpMeta[9];
4658 /* Pattern matching succeeded */
4659 /* Check guard condition after assignments */
4660 if (!omc_ComponentReference_crefEqual(threadData, _cr, _cref)) goto tmp3_end;
4661#line 1002 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4662 tmpMeta[2] = stringAppend(_OMC_LIT108((void*)((char*)(&(_OMC_LIT_STRUCT108).header) + 3)),omc_ComponentReference_crefStr(threadData, _cr));
4663#line 1002 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4664 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT109((void*)((char*)(&(_OMC_LIT_STRUCT109).header) + 3)));
4665#line 1002 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4666 tmpMeta[4] = stringAppend(tmpMeta[3],omc_ComponentReference_crefStr(threadData, _cref));
4667#line 1002 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4668 tmpMeta[5] = stringAppend(tmpMeta[4],_OMC_LIT110((void*)((char*)(&(_OMC_LIT_STRUCT110).header) + 3)));
4669#line 1002 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4670 fputs(MMC_STRINGDATA(tmpMeta[5])(((struct mmc_string*)((void*)((char*)(tmpMeta[5]) - 3)))->
data)
,stdoutstdout);
4671#line 4671 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4672
4673#line 1003 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4674 _substituteRef = omc_ComponentReference_appendStringLastIdent(threadData, _OMC_LIT107((void*)((char*)(&(_OMC_LIT_STRUCT107).header) + 3)), _cref);
4675#line 4675 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4676#line 1004 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4677 tmpMeta[2] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, _substituteRef, _ty);
4678#line 1004 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4679 tmpMeta[3] = mmc_mk_box2(0, _cref, mmc_mk_boolean(1)((1) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))));
4680#line 1004 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4681 tmpMeta[0+0] = tmpMeta[2];
4682#line 1004 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4683 tmpMeta[0+1] = tmpMeta[3];
4684#line 4684 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4685 goto tmp3_done;
4686 }
4687 case 1: {
4688
4689 /* Pattern matching succeeded */
4690#line 1005 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4691 tmpMeta[0+0] = _inExp;
4692#line 1005 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4693 tmpMeta[0+1] = _inCrefHit;
4694#line 4694 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4695 goto tmp3_done;
4696 }
4697 }
4698 goto tmp3_end;
4699 tmp3_end: ;
4700 }
4701 goto goto_2;
4702 goto_2:;
4703 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4704 goto tmp3_done;
4705 tmp3_done:;
4706 }
4707 }
4708 _outExp = tmpMeta[0+0];
4709 _outCrefHit = tmpMeta[0+1];
4710 _return: OMC_LABEL_UNUSED__attribute__((unused))
4711 if (out_cont) { *out_cont = _cont; }
4712 if (out_outCrefHit) { *out_outCrefHit = _outCrefHit; }
4713 return _outExp;
4714}
4715PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_traversingSubsPreviousCref(threadData_t *threadData, modelica_metatype _inExp, modelica_metatype _inCrefHit, modelica_metatype *out_cont, modelica_metatype *out_outCrefHit)
4716{
4717 modelica_boolean _cont;
4718 modelica_metatype _outExp = NULL((void*)0);
4719 _outExp = omc_StateMachineFlatten_traversingSubsPreviousCref(threadData, _inExp, _inCrefHit, &_cont, out_outCrefHit);
4720 /* skip box _outExp; DAE.Exp */
4721 if (out_cont) { *out_cont = mmc_mk_icon(_cont); }
4722 /* skip box _outCrefHit; tuple<DAE.ComponentRef, #Boolean> */
4723 return _outExp;
4724}
4725
4726PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_wrapInStateActivationConditionalCT(threadData_t *threadData, modelica_metatype _inEqn, modelica_metatype _inStateCref)
4727{
4728 modelica_metatype _outEqn = NULL((void*)0);
4729 modelica_metatype _exp = NULL((void*)0);
4730 modelica_metatype _scalar = NULL((void*)0);
4731 modelica_metatype _scalar1 = NULL((void*)0);
4732 modelica_metatype _activeRef = NULL((void*)0);
4733 modelica_metatype _expElse = NULL((void*)0);
4734 modelica_metatype _ty = NULL((void*)0);
4735 modelica_metatype _callAttributes = NULL((void*)0);
4736 modelica_metatype _source = NULL((void*)0);
4737 modelica_metatype _cref = NULL((void*)0);
4738 modelica_metatype tmpMeta[8] __attribute__((unused)) = {0};
4739 MMC_SO()mmc_check_stackoverflow(threadData);
4740 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4741 // _outEqn has no default value.
4742 // _exp has no default value.
4743 // _scalar has no default value.
4744 // _scalar1 has no default value.
4745 // _activeRef has no default value.
4746 // _expElse has no default value.
4747 // _ty has no default value.
4748 // _callAttributes has no default value.
4749 // _source has no default value.
4750 // _cref has no default value.
4751#line 966 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4752 /* Pattern-matching assignment */
4753#line 966 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4754 tmpMeta[0] = _inEqn;
4755#line 966 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4756 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],3,3)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((3 +1)
<< 10) + (((3 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4757#line 966 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4758 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4759#line 966 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4760 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
4761#line 966 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4762 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
4763#line 966 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4764 _exp = tmpMeta[1];
4765#line 966 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4766 _scalar = tmpMeta[2];
4767#line 966 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4768 _source = tmpMeta[3];
4769#line 4769 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4770
4771#line 4771 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4772 { /* matchcontinue expression */
4773 {
4774 volatile mmc_switch_type tmp3;
4775 int tmp4;
4776 tmp3 = 0;
4777 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) {
4778 tmp2_top:
4779 threadData->mmc_jumper = &new_mmc_jumper;
4780 for (; tmp3 < 2; tmp3++) {
4781 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
4782 case 0: {
4783 /* Pattern matching succeeded */
4784#line 968 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4785 /* Pattern-matching assignment */
4786#line 968 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4787 tmpMeta[0] = _exp;
4788#line 968 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4789 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],13,3)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((3 +1)
<< 10) + (((13 +3) & 255) << 2)))
== 0) goto goto_1;
4790#line 968 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4791 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4792#line 968 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4793 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto goto_1;
4794#line 968 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4795 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
4796#line 968 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4797 if (3 != MMC_STRLEN(tmpMeta[2])(((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))) >>
(3)) - 8))
|| strcmp("der", MMC_STRINGDATA(tmpMeta[2])(((struct mmc_string*)((void*)((char*)(tmpMeta[2]) - 3)))->
data)
) != 0) goto goto_1;
4798#line 968 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4799 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
4800#line 968 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4801 if (listEmpty(tmpMeta[3])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto goto_1;
4802#line 968 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4803 tmpMeta[4] = MMC_CAR(tmpMeta[3])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (1)))))
;
4804#line 968 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4805 tmpMeta[5] = MMC_CDR(tmpMeta[3])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (2)))))
;
4806#line 968 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4807 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],6,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3)))==(((2 +1)
<< 10) + (((6 +3) & 255) << 2)))
== 0) goto goto_1;
4808#line 968 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4809 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (2)))))
;
4810#line 968 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4811 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (3)))))
;
4812#line 968 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4813 if (!listEmpty(tmpMeta[5])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto goto_1;
4814#line 968 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4815 _cref = tmpMeta[6];
4816#line 968 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4817 _ty = tmpMeta[7];
4818#line 4818 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4819#line 4819 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4820 goto tmp2_done;
4821 }
4822 case 1: {
4823 /* Pattern matching succeeded */
4824#line 970 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4825 omc_Error_addCompilerError(threadData, _OMC_LIT111((void*)((char*)(&(_OMC_LIT_STRUCT111).header) + 3)));
4826#line 4826 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4827
4828#line 971 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4829 goto goto_1;
4830#line 4830 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4831#line 4831 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4832 goto tmp2_done;
4833 }
4834 }
4835 goto tmp2_end;
4836 tmp2_end: ;
4837 }
4838 goto goto_1;
4839 tmp2_done:
4840 (void)tmp3;
4841 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4842 goto tmp2_done2;
4843 goto_1:;
4844 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4845 if (++tmp3 < 2) {
4846 goto tmp2_top;
4847 }
4848 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4849 tmp2_done2:;
4850 }
4851 }
4852 ;
4853
4854#line 974 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4855 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4856#line 974 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4857 tmpMeta[1] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, omc_StateMachineFlatten_qCref(threadData, _OMC_LIT63((void*)((char*)(&(_OMC_LIT_STRUCT63).header) + 3)), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)), tmpMeta[0], _inStateCref), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
4858#line 974 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4859 _activeRef = tmpMeta[1];
4860#line 4860 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4861
4862#line 975 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4863 tmpMeta[0] = mmc_mk_box8(3, &DAE_CallAttributes_CALL__ATTR__desc, _ty, mmc_mk_boolean(0)((0) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), mmc_mk_boolean(1)((1) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), mmc_mk_boolean(0)((0) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), mmc_mk_boolean(0)((0) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), _OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)), _OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3)));
4864#line 975 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4865 _callAttributes = tmpMeta[0];
4866#line 4866 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4867
4868#line 976 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4869 _expElse = _OMC_LIT92((void*)((char*)(&(_OMC_LIT_STRUCT92).header) + 3));
4870#line 4870 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4871
4872#line 977 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4873 tmpMeta[0] = mmc_mk_box4(15, &DAE_Exp_IFEXP__desc, _activeRef, _scalar, _expElse);
4874#line 977 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4875 _scalar1 = tmpMeta[0];
4876#line 4876 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4877
4878#line 979 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4879 tmpMeta[0] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, _exp, _scalar1, _source);
4880#line 979 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4881 _outEqn = tmpMeta[0];
4882#line 4882 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4883 _return: OMC_LABEL_UNUSED__attribute__((unused))
4884 return _outEqn;
4885}
4886
4887PROTECTED_FUNCTION_STATIC modelica_metatype omc_StateMachineFlatten_wrapInStateActivationConditional(threadData_t *threadData, modelica_metatype _inEqn, modelica_metatype _inStateCref, modelica_boolean _isResetEquation)
4888{
4889 modelica_metatype _outEqn = NULL((void*)0);
4890 modelica_metatype _exp = NULL((void*)0);
4891 modelica_metatype _scalar = NULL((void*)0);
4892 modelica_metatype _scalar1 = NULL((void*)0);
4893 modelica_metatype _activeRef = NULL((void*)0);
4894 modelica_metatype _expElse = NULL((void*)0);
4895 modelica_metatype _ty = NULL((void*)0);
4896 modelica_metatype _callAttributes = NULL((void*)0);
4897 modelica_metatype _source = NULL((void*)0);
4898 modelica_metatype _cref = NULL((void*)0);
4899 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
4900 MMC_SO()mmc_check_stackoverflow(threadData);
4901 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4902 // _outEqn has no default value.
4903 // _exp has no default value.
4904 // _scalar has no default value.
4905 // _scalar1 has no default value.
4906 // _activeRef has no default value.
4907 // _expElse has no default value.
4908 // _ty has no default value.
4909 // _callAttributes has no default value.
4910 // _source has no default value.
4911 // _cref has no default value.
4912#line 930 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4913 /* Pattern-matching assignment */
4914#line 930 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4915 tmpMeta[0] = _inEqn;
4916#line 930 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4917 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],3,3)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((3 +1)
<< 10) + (((3 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4918#line 930 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4919 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4920#line 930 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4921 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
4922#line 930 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4923 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
4924#line 930 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4925 _exp = tmpMeta[1];
4926#line 930 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4927 _scalar = tmpMeta[2];
4928#line 930 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4929 _source = tmpMeta[3];
4930#line 4930 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4931
4932#line 4932 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4933 { /* matchcontinue expression */
4934 {
4935 volatile mmc_switch_type tmp3;
4936 int tmp4;
4937 tmp3 = 0;
4938 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) {
4939 tmp2_top:
4940 threadData->mmc_jumper = &new_mmc_jumper;
4941 for (; tmp3 < 2; tmp3++) {
4942 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
4943 case 0: {
4944 /* Pattern matching succeeded */
4945#line 932 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4946 /* Pattern-matching assignment */
4947#line 932 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4948 tmpMeta[0] = _exp;
4949#line 932 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4950 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],6,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((2 +1)
<< 10) + (((6 +3) & 255) << 2)))
== 0) goto goto_1;
4951#line 932 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4952 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4953#line 932 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4954 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
4955#line 932 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4956 _cref = tmpMeta[1];
4957#line 932 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4958 _ty = tmpMeta[2];
4959#line 4959 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4960#line 4960 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4961 goto tmp2_done;
4962 }
4963 case 1: {
4964 /* Pattern matching succeeded */
4965#line 934 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4966 omc_Error_addCompilerError(threadData, _OMC_LIT112((void*)((char*)(&(_OMC_LIT_STRUCT112).header) + 3)));
4967#line 4967 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4968
4969#line 935 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4970 goto goto_1;
4971#line 4971 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4972#line 4972 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
4973 goto tmp2_done;
4974 }
4975 }
4976 goto tmp2_end;
4977 tmp2_end: ;
4978 }
4979 goto goto_1;
4980 tmp2_done:
4981 (void)tmp3;
4982 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4983 goto tmp2_done2;
4984 goto_1:;
4985 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4986 if (++tmp3 < 2) {
4987 goto tmp2_top;
4988 }
4989 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4990 tmp2_done2:;
4991 }
4992 }
4993 ;
4994
4995#line 938 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4996 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4997#line 938 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
4998 tmpMeta[1] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, omc_StateMachineFlatten_qCref(threadData, _OMC_LIT63((void*)((char*)(&(_OMC_LIT_STRUCT63).header) + 3)), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)), tmpMeta[0], _inStateCref), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
4999#line 938 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
5000 _activeRef = tmpMeta[1];
5001#line 5001 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
5002
5003#line 939 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
5004 tmpMeta[0] = mmc_mk_box8(3, &DAE_CallAttributes_CALL__ATTR__desc, _ty, mmc_mk_boolean(0)((0) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), mmc_mk_boolean(1)((1) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), mmc_mk_boolean(0)((0) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), mmc_mk_boolean(0)((0) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), _OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)), _OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3)));
5005#line 939 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
5006 _callAttributes = tmpMeta[0];
5007#line 5007 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
5008
5009#line 940 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
5010 if(_isResetEquation)
5011#line 940 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
5012 {
5013#line 941 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
5014 tmpMeta[0] = mmc_mk_box3(9, &DAE_Exp_CREF__desc, omc_ComponentReference_appendStringLastIdent(threadData, _OMC_LIT107((void*)((char*)(&(_OMC_LIT_STRUCT107).header) + 3)), _cref), _ty);
5015#line 941 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
5016 _expElse = tmpMeta[0];
5017#line 5017 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
5018 }
5019 else
5020 {
5021#line 943 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
5022 tmpMeta[0] = mmc_mk_cons(_exp, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
5023#line 943 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
5024 tmpMeta[1] = mmc_mk_box4(16, &DAE_Exp_CALL__desc, _OMC_LIT78((void*)((char*)(&(_OMC_LIT_STRUCT78).header) + 3)), tmpMeta[0], _callAttributes);
5025#line 943 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
5026 _expElse = tmpMeta[1];
5027#line 5027 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
5028 }
5029
5030#line 945 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
5031 tmpMeta[0] = mmc_mk_box4(15, &DAE_Exp_IFEXP__desc, _activeRef, _scalar, _expElse);
5032#line 945 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
5033 _scalar1 = tmpMeta[0];
5034#line 5034 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
5035
5036#line 947 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
5037 tmpMeta[0] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, _exp, _scalar1, _source);
5038#line 947 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/FrontEnd/StateMachineFlatten.mo"
5039 _outEqn = tmpMeta[0];
5040#line 5040 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/StateMachineFlatten.c"
5041 _return: OMC_LABEL_UNUSED__attribute__((unused))
5042 return _outEqn;
5043}
5044PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_StateMachineFlatten_wrapInStateActivationConditional(threadData_t *threadData, modelica_metatype _inEqn, modelica_metatype _inStateCref, modelica_metatype _isResetEquation)
5045{
5046 modelica_integer tmp1;
5047 modelica_metatype _outEqn = NULL((void*)0);
5048 tmp1 = mmc_unbox_integer(_isResetEquation)(((mmc_sint_t) (_isResetEquation)) >> 1);
5049 _outEqn = omc_Sta