Bug Summary

File:OMCompiler/Compiler/boot/build/NFUnitCheck.c
Warning:line 2841, column 11
Value stored to '_inconsistentUnits' 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/NFUnitCheck.c" OMC_BASE_FILE
3#else
4 #define OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c" "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
5#endif
6#include "omc_simulation_settings.h"
7#include "NFUnitCheck.h"
8#define _OMC_LIT0_data"unit" "unit"
9static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT0,4,_OMC_LIT0_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT0
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), "unit"
}
;
10#define _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT0)((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))
11#define _OMC_LIT1_data"-" "-"
12static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT1,1,_OMC_LIT1_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT1
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "-"
}
;
13#define _OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT1)((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3))
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)),
{&NFUnit_Unit_MASTER__desc,MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).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"NONE" "NONE"
17static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT3,4,_OMC_LIT3_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT3
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), "NONE"
}
;
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"- sub-expression \"" "- sub-expression \""
20static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT4,18,_OMC_LIT4_data)struct { mmc_uint_t header; const char data[(18)+1]; } _OMC_LIT_STRUCT4
= { ((((mmc_uint_t)18)<<(3))+((1<<(3+3))+5)), "- sub-expression \""
}
;
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"\" has unit \"" "\" has unit \""
23static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT5,12,_OMC_LIT5_data)struct { mmc_uint_t header; const char data[(12)+1]; } _OMC_LIT_STRUCT5
= { ((((mmc_uint_t)12)<<(3))+((1<<(3+3))+5)), "\" has unit \""
}
;
24#define _OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT5)((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3))
25#define _OMC_LIT6_data"\"" "\""
26static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT6,1,_OMC_LIT6_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT6
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "\""
}
;
27#define _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT6)((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3))
28#define _OMC_LIT7_data"\"\n" "\"\n"
29static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT7,2,_OMC_LIT7_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT7
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), "\"\n"
}
;
30#define _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT7)((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3))
31#define _OMC_LIT8_data"" ""
32static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT8,0,_OMC_LIT8_data)struct { mmc_uint_t header; const char data[(0)+1]; } _OMC_LIT_STRUCT8
= { ((((mmc_uint_t)0)<<(3))+((1<<(3+3))+5)), "" }
;
33#define _OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT8)((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3))
34#define _OMC_LIT9_data"The following equation is INCONSISTENT due to specified unit information: " "The following equation is INCONSISTENT due to specified unit information: "
35static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT9,74,_OMC_LIT9_data)struct { mmc_uint_t header; const char data[(74)+1]; } _OMC_LIT_STRUCT9
= { ((((mmc_uint_t)74)<<(3))+((1<<(3+3))+5)), "The following equation is INCONSISTENT due to specified unit information: "
}
;
36#define _OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT9)((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))
37#define _OMC_LIT10_data"\n" "\n"
38static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT10,1,_OMC_LIT10_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT10
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "\n"
}
;
39#define _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT10)((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3))
40static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT11,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT11
= { (((1) << 10) + (((5) & 255) << 2)),
{&ErrorTypes_MessageType_TRANSLATION__desc,}};
41#define _OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT11)((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3))
42static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT12,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT12
= { (((1) << 10) + (((5) & 255) << 2)),
{&ErrorTypes_Severity_WARNING__desc,}};
43#define _OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT12)((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3))
44#define _OMC_LIT13_data"%s" "%s"
45static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT13,2,_OMC_LIT13_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT13
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), "%s"
}
;
46#define _OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT13)((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3))
47static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT14,2,4)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT14
= { (((2) << 10) + (((4) & 255) << 2)),
{&Gettext_TranslatableContent_notrans__desc,_OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3))}};
48#define _OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT14)((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3))
49static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT15,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT15
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(6000))((void*)(((((mmc_uint_t) (6000)) << 1)+0))),_OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)),_OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)),_OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3))}};
50#define _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT15)((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3))
51#define _OMC_LIT16_data"The units of following sub-expressions need to be equal:\n" "The units of following sub-expressions need to be equal:\n"
52static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT16,57,_OMC_LIT16_data)struct { mmc_uint_t header; const char data[(57)+1]; } _OMC_LIT_STRUCT16
= { ((((mmc_uint_t)57)<<(3))+((1<<(3+3))+5)), "The units of following sub-expressions need to be equal:\n"
}
;
53#define _OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT16)((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3))
54#define _OMC_LIT17_data"jhagemann" "jhagemann"
55static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT17,9,_OMC_LIT17_data)struct { mmc_uint_t header; const char data[(9)+1]; } _OMC_LIT_STRUCT17
= { ((((mmc_uint_t)9)<<(3))+((1<<(3+3))+5)), "jhagemann"
}
;
56#define _OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT17)((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3))
57static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT18,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT18
= { (((1) << 10) + (((4) & 255) << 2)),
{&NFComponentRef_EMPTY__desc,}};
58#define _OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT18)((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3))
59static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT19,3,6)struct { mmc_uint_t header; const void *data[3]; } _OMC_LIT_STRUCT19
= { (((3) << 10) + (((6) & 255) << 2)),
{&NFComponentRef_STRING__desc,_OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3)),_OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3))}};
60#define _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT19)((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3))
61static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT20,2,0)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT20
= { (((2) << 10) + (((0) & 255) << 2)),
{_OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)),_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3))}};
62#define _OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT20)((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3))
63static const MMC_DEFREALLIT(_OMC_LIT_STRUCT21,1.0)struct mmc_real_lit _OMC_LIT_STRUCT21 = {0,(((8/8) << 10
) + 9),1.0}
;
64#define _OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT21)((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3))
65static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT22,9,3)struct { mmc_uint_t header; const void *data[9]; } _OMC_LIT_STRUCT22
= { (((9) << 10) + (((3) & 255) << 2)),
{&NFUnit_Unit_UNIT__desc,_OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).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(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))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0)))}};
66#define _OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT22)((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3))
67#define _OMC_LIT23_data"." "."
68static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT23,1,_OMC_LIT23_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT23
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "."
}
;
69#define _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT23)((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3))
70#define _OMC_LIT24_data"pre" "pre"
71static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT24,3,_OMC_LIT24_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT24
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "pre"
}
;
72#define _OMC_LIT24((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT24)((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3))
73#define _OMC_LIT25_data"der" "der"
74static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT25,3,_OMC_LIT25_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT25
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "der"
}
;
75#define _OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT25)((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3))
76#define _OMC_LIT26_data"sqrt" "sqrt"
77static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT26,4,_OMC_LIT26_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT26
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), "sqrt"
}
;
78#define _OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT26)((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3))
79#define _OMC_LIT27_data"time" "time"
80static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT27,4,_OMC_LIT27_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT27
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), "time"
}
;
81#define _OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT27)((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3))
82static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT28,1,13)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT28
= { (((1) << 10) + (((13) & 255) << 2)),
{&NFType_UNKNOWN__desc,}};
83#define _OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT28)((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3))
84#define _OMC_LIT29_data"()" "()"
85static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT29,2,_OMC_LIT29_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT29
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), "()"
}
;
86#define _OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT29)((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3))
87static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT30,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT30
= { (((1) << 10) + (((4) & 255) << 2)),
{&NFType_REAL__desc,}};
88#define _OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT30)((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3))
89static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT31,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT31
= { (((1) << 10) + (((3) & 255) << 2)),
{&DAE_Prefix_NOPRE__desc,}};
90#define _OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT31)((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3))
91static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT32,1,11)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT32
= { (((1) << 10) + (((11) & 255) << 2)),
{&DAE_Type_T__UNKNOWN__desc,}};
92#define _OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT32)((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3))
93static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT33,4,4)struct { mmc_uint_t header; const void *data[4]; } _OMC_LIT_STRUCT33
= { (((4) << 10) + (((4) & 255) << 2)),
{&DAE_ComponentRef_CREF__IDENT__desc,_OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)),_OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
94#define _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT33)((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3))
95static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT34,2,0)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT34
= { (((2) << 10) + (((0) & 255) << 2)),
{_OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)),_OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3))}};
96#define _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT34)((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))
97#define _OMC_LIT35_data"dumpEqUCStruct" "dumpEqUCStruct"
98static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT35,14,_OMC_LIT35_data)struct { mmc_uint_t header; const char data[(14)+1]; } _OMC_LIT_STRUCT35
= { ((((mmc_uint_t)14)<<(3))+((1<<(3+3))+5)), "dumpEqUCStruct"
}
;
99#define _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT35)((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3))
100#define _OMC_LIT36_data"Dumps all the equations handled by the unit checker as tree-structure." "Dumps all the equations handled by the unit checker as tree-structure."
101static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT36,70,_OMC_LIT36_data)struct { mmc_uint_t header; const char data[(70)+1]; } _OMC_LIT_STRUCT36
= { ((((mmc_uint_t)70)<<(3))+((1<<(3+3))+5)), "Dumps all the equations handled by the unit checker as tree-structure."
}
;
102#define _OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT36)((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3))
103static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT37,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT37
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3))}};
104#define _OMC_LIT37((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT37)((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3))
105static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT38,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT38
= { (((5) << 10) + (((3) & 255) << 2)),
{&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(115))((void*)(((((mmc_uint_t) (115)) << 1)+0))),_OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT37((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3))}};
106#define _OMC_LIT38((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT38)((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3))
107#define _OMC_LIT39_data"\" has the Unit \"" "\" has the Unit \""
108static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT39,16,_OMC_LIT39_data)struct { mmc_uint_t header; const char data[(16)+1]; } _OMC_LIT_STRUCT39
= { ((((mmc_uint_t)16)<<(3))+((1<<(3+3))+5)), "\" has the Unit \""
}
;
109#define _OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT39)((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3))
110#define _OMC_LIT40_data"dumpUnits" "dumpUnits"
111static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT40,9,_OMC_LIT40_data)struct { mmc_uint_t header; const char data[(9)+1]; } _OMC_LIT_STRUCT40
= { ((((mmc_uint_t)9)<<(3))+((1<<(3+3))+5)), "dumpUnits"
}
;
112#define _OMC_LIT40((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT40)((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3))
113#define _OMC_LIT41_data"Dumps all the calculated units." "Dumps all the calculated units."
114static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT41,31,_OMC_LIT41_data)struct { mmc_uint_t header; const char data[(31)+1]; } _OMC_LIT_STRUCT41
= { ((((mmc_uint_t)31)<<(3))+((1<<(3+3))+5)), "Dumps all the calculated units."
}
;
115#define _OMC_LIT41((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT41)((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3))
116static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT42,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT42
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT41((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3))}};
117#define _OMC_LIT42((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT42)((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3))
118static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT43,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT43
= { (((5) << 10) + (((3) & 255) << 2)),
{&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(113))((void*)(((((mmc_uint_t) (113)) << 1)+0))),_OMC_LIT40((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT42((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3))}};
119#define _OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT43)((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3))
120#define _OMC_LIT44_data"frontEndUnitCheck" "frontEndUnitCheck"
121static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT44,17,_OMC_LIT44_data)struct { mmc_uint_t header; const char data[(17)+1]; } _OMC_LIT_STRUCT44
= { ((((mmc_uint_t)17)<<(3))+((1<<(3+3))+5)), "frontEndUnitCheck"
}
;
122#define _OMC_LIT44((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT44)((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3))
123#define _OMC_LIT45_data"Checks the consistency of units in equation." "Checks the consistency of units in equation."
124static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT45,44,_OMC_LIT45_data)struct { mmc_uint_t header; const char data[(44)+1]; } _OMC_LIT_STRUCT45
= { ((((mmc_uint_t)44)<<(3))+((1<<(3+3))+5)), "Checks the consistency of units in equation."
}
;
125#define _OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT45)((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3))
126static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT46,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT46
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3))}};
127#define _OMC_LIT46((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT46)((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3))
128static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT47,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT47
= { (((5) << 10) + (((3) & 255) << 2)),
{&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(169))((void*)(((((mmc_uint_t) (169)) << 1)+0))),_OMC_LIT44((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT46((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3))}};
129#define _OMC_LIT47((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT47)((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3))
130#define _OMC_LIT48_data"checkModel" "checkModel"
131static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT48,10,_OMC_LIT48_data)struct { mmc_uint_t header; const char data[(10)+1]; } _OMC_LIT_STRUCT48
= { ((((mmc_uint_t)10)<<(3))+((1<<(3+3))+5)), "checkModel"
}
;
132#define _OMC_LIT48((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT48)((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3))
133static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT49,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT49
= { (((1) << 10) + (((3) & 255) << 2)),
{&Flags_FlagVisibility_INTERNAL__desc,}};
134#define _OMC_LIT49((void*)((char*)(&(_OMC_LIT_STRUCT49).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT49)((void*)((char*)(&(_OMC_LIT_STRUCT49).header) + 3))
135static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT50,2,4)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT50
= { (((2) << 10) + (((4) & 255) << 2)),
{&Flags_FlagData_BOOL__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0)))}};
136#define _OMC_LIT50((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT50)((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3))
137#define _OMC_LIT51_data"Set when checkModel is used to turn on specific features for checking." "Set when checkModel is used to turn on specific features for checking."
138static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT51,70,_OMC_LIT51_data)struct { mmc_uint_t header; const char data[(70)+1]; } _OMC_LIT_STRUCT51
= { ((((mmc_uint_t)70)<<(3))+((1<<(3+3))+5)), "Set when checkModel is used to turn on specific features for checking."
}
;
139#define _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT51)((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3))
140static 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)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3))}};
141#define _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT52)((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3))
142static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT53,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT53
= { (((8) << 10) + (((3) & 255) << 2)),
{&Flags_ConfigFlag_CONFIG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(31))((void*)(((((mmc_uint_t) (31)) << 1)+0))),_OMC_LIT48((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3)),MMC_REFSTRUCTLIT(mmc_none)((void*)((char*)(&(mmc_none).header) + 3)),_OMC_LIT49((void*)((char*)(&(_OMC_LIT_STRUCT49).header) + 3)),_OMC_LIT50((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3)),MMC_REFSTRUCTLIT(mmc_none)((void*)((char*)(&(mmc_none).header) + 3)),_OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3))}};
143#define _OMC_LIT53((void*)((char*)(&(_OMC_LIT_STRUCT53).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT53)((void*)((char*)(&(_OMC_LIT_STRUCT53).header) + 3))
144#define _OMC_LIT54_data"######## UnitCheck COMPLETED ########\n" "######## UnitCheck COMPLETED ########\n"
145static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT54,38,_OMC_LIT54_data)struct { mmc_uint_t header; const char data[(38)+1]; } _OMC_LIT_STRUCT54
= { ((((mmc_uint_t)38)<<(3))+((1<<(3+3))+5)), "######## UnitCheck COMPLETED ########\n"
}
;
146#define _OMC_LIT54((void*)((char*)(&(_OMC_LIT_STRUCT54).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT54)((void*)((char*)(&(_OMC_LIT_STRUCT54).header) + 3))
147#define _OMC_LIT55_data"NFUnitCheck.checkUnits: unit check module failed" "NFUnitCheck.checkUnits: unit check module failed"
148static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT55,48,_OMC_LIT55_data)struct { mmc_uint_t header; const char data[(48)+1]; } _OMC_LIT_STRUCT55
= { ((((mmc_uint_t)48)<<(3))+((1<<(3+3))+5)), "NFUnitCheck.checkUnits: unit check module failed"
}
;
149#define _OMC_LIT55((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT55)((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3))
150#define _OMC_LIT56_data"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo" "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
151static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT56,99,_OMC_LIT56_data)struct { mmc_uint_t header; const char data[(99)+1]; } _OMC_LIT_STRUCT56
= { ((((mmc_uint_t)99)<<(3))+((1<<(3+3))+5)), "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
}
;
152#define _OMC_LIT56((void*)((char*)(&(_OMC_LIT_STRUCT56).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT56)((void*)((char*)(&(_OMC_LIT_STRUCT56).header) + 3))
153static const MMC_DEFREALLIT(_OMC_LIT_STRUCT57_6,1588090879.0)struct mmc_real_lit _OMC_LIT_STRUCT57_6 = {0,(((8/8) <<
10) + 9),1588090879.0}
;
154#define _OMC_LIT57_6((void*)((char*)(&(_OMC_LIT_STRUCT57_6).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT57_6)((void*)((char*)(&(_OMC_LIT_STRUCT57_6).header) + 3))
155static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT57,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT57
= { (((8) << 10) + (((3) & 255) << 2)),
{&SourceInfo_SOURCEINFO__desc,_OMC_LIT56((void*)((char*)(&(_OMC_LIT_STRUCT56).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(128))((void*)(((((mmc_uint_t) (128)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(5))((void*)(((((mmc_uint_t) (5)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(128))((void*)(((((mmc_uint_t) (128)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(91))((void*)(((((mmc_uint_t) (91)) << 1)+0))),_OMC_LIT57_6((void*)((char*)(&(_OMC_LIT_STRUCT57_6).header) + 3))}};
156#define _OMC_LIT57((void*)((char*)(&(_OMC_LIT_STRUCT57).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT57)((void*)((char*)(&(_OMC_LIT_STRUCT57).header) + 3))
157#define _OMC_LIT58_data"NFUnitCheck.checkUnits" "NFUnitCheck.checkUnits"
158static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT58,22,_OMC_LIT58_data)struct { mmc_uint_t header; const char data[(22)+1]; } _OMC_LIT_STRUCT58
= { ((((mmc_uint_t)22)<<(3))+((1<<(3+3))+5)), "NFUnitCheck.checkUnits"
}
;
159#define _OMC_LIT58((void*)((char*)(&(_OMC_LIT_STRUCT58).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT58)((void*)((char*)(&(_OMC_LIT_STRUCT58).header) + 3))
160#include "util/modelica.h"
161
162#include "NFUnitCheck_includes.h"
163
164
165/* default, do not make protected functions static */
166#if !defined(PROTECTED_FUNCTION_STATIC)
167#define PROTECTED_FUNCTION_STATIC
168#endif
169PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_parse(threadData_t *threadData, modelica_string _unitString, modelica_metatype _cref, modelica_metatype _D_24in_htS2U, modelica_metatype _D_24in_htU2S, modelica_metatype *out_htS2U, modelica_metatype *out_htU2S);
170static const MMC_DEFSTRUCTLIT(boxvar_lit_NFUnitCheck_parse,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFUnitCheck_parse
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFUnitCheck_parseomc_NFUnitCheck_parse,0}};
171#define boxvar_NFUnitCheck_parse((void*)((char*)(&(boxvar_lit_NFUnitCheck_parse).header) +
3))
MMC_REFSTRUCTLIT(boxvar_lit_NFUnitCheck_parse)((void*)((char*)(&(boxvar_lit_NFUnitCheck_parse).header) +
3))
172PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_convertUnitString2unit(threadData_t *threadData, modelica_metatype _var, modelica_metatype _D_24in_htCr2U, modelica_metatype _D_24in_htS2U, modelica_metatype _D_24in_htU2S, modelica_metatype *out_htS2U, modelica_metatype *out_htU2S);
173static const MMC_DEFSTRUCTLIT(boxvar_lit_NFUnitCheck_convertUnitString2unit,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFUnitCheck_convertUnitString2unit
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFUnitCheck_convertUnitString2unitomc_NFUnitCheck_convertUnitString2unit,0}};
174#define boxvar_NFUnitCheck_convertUnitString2unit((void*)((char*)(&(boxvar_lit_NFUnitCheck_convertUnitString2unit
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFUnitCheck_convertUnitString2unit)((void*)((char*)(&(boxvar_lit_NFUnitCheck_convertUnitString2unit
).header) + 3))
175PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_addUnit2HtU2S(threadData_t *threadData, modelica_string _name, modelica_metatype _unit, modelica_metatype _D_24in_htU2S);
176static const MMC_DEFSTRUCTLIT(boxvar_lit_NFUnitCheck_addUnit2HtU2S,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFUnitCheck_addUnit2HtU2S
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFUnitCheck_addUnit2HtU2Somc_NFUnitCheck_addUnit2HtU2S,0}};
177#define boxvar_NFUnitCheck_addUnit2HtU2S((void*)((char*)(&(boxvar_lit_NFUnitCheck_addUnit2HtU2S).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFUnitCheck_addUnit2HtU2S)((void*)((char*)(&(boxvar_lit_NFUnitCheck_addUnit2HtU2S).
header) + 3))
178PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_addUnit2HtS2U(threadData_t *threadData, modelica_string _name, modelica_metatype _unit, modelica_metatype _inHtS2U);
179static const MMC_DEFSTRUCTLIT(boxvar_lit_NFUnitCheck_addUnit2HtS2U,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFUnitCheck_addUnit2HtS2U
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFUnitCheck_addUnit2HtS2Uomc_NFUnitCheck_addUnit2HtS2U,0}};
180#define boxvar_NFUnitCheck_addUnit2HtS2U((void*)((char*)(&(boxvar_lit_NFUnitCheck_addUnit2HtS2U).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFUnitCheck_addUnit2HtS2U)((void*)((char*)(&(boxvar_lit_NFUnitCheck_addUnit2HtS2U).
header) + 3))
181PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_foldCallArg1(threadData_t *threadData, modelica_metatype _args, modelica_metatype _D_24in_htCr2U, modelica_metatype _D_24in_htS2U, modelica_metatype _D_24in_htU2S, modelica_metatype _D_24in_fnCache, modelica_metatype _inUnit, modelica_metatype _units, modelica_metatype _vars, modelica_string _fnName, modelica_metatype *out_htS2U, modelica_metatype *out_htU2S, modelica_metatype *out_fnCache, modelica_metatype *out_inconsistentUnits);
182static const MMC_DEFSTRUCTLIT(boxvar_lit_NFUnitCheck_foldCallArg1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFUnitCheck_foldCallArg1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFUnitCheck_foldCallArg1omc_NFUnitCheck_foldCallArg1,0}};
183#define boxvar_NFUnitCheck_foldCallArg1((void*)((char*)(&(boxvar_lit_NFUnitCheck_foldCallArg1).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFUnitCheck_foldCallArg1)((void*)((char*)(&(boxvar_lit_NFUnitCheck_foldCallArg1).header
) + 3))
184PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_foldCallArg(threadData_t *threadData, modelica_metatype _args, modelica_metatype _D_24in_htCr2U, modelica_metatype _D_24in_htS2U, modelica_metatype _D_24in_htU2S, modelica_metatype _D_24in_fnCache, modelica_metatype *out_htS2U, modelica_metatype *out_htU2S, modelica_metatype *out_fnCache, modelica_metatype *out_inconsistentUnits);
185static const MMC_DEFSTRUCTLIT(boxvar_lit_NFUnitCheck_foldCallArg,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFUnitCheck_foldCallArg
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFUnitCheck_foldCallArgomc_NFUnitCheck_foldCallArg,0}};
186#define boxvar_NFUnitCheck_foldCallArg((void*)((char*)(&(boxvar_lit_NFUnitCheck_foldCallArg).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFUnitCheck_foldCallArg)((void*)((char*)(&(boxvar_lit_NFUnitCheck_foldCallArg).header
) + 3))
187PROTECTED_FUNCTION_STATIC modelica_string omc_NFUnitCheck_Errorfunction2(threadData_t *threadData, modelica_metatype _inexpList, modelica_metatype _inHtU2S);
188static const MMC_DEFSTRUCTLIT(boxvar_lit_NFUnitCheck_Errorfunction2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFUnitCheck_Errorfunction2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFUnitCheck_Errorfunction2omc_NFUnitCheck_Errorfunction2,0}};
189#define boxvar_NFUnitCheck_Errorfunction2((void*)((char*)(&(boxvar_lit_NFUnitCheck_Errorfunction2)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFUnitCheck_Errorfunction2)((void*)((char*)(&(boxvar_lit_NFUnitCheck_Errorfunction2)
.header) + 3))
190PROTECTED_FUNCTION_STATIC void omc_NFUnitCheck_Errorfunction(threadData_t *threadData, modelica_metatype _inexpList, modelica_metatype _inEq, modelica_metatype _inHtU2S);
191static const MMC_DEFSTRUCTLIT(boxvar_lit_NFUnitCheck_Errorfunction,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFUnitCheck_Errorfunction
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFUnitCheck_Errorfunctionomc_NFUnitCheck_Errorfunction,0}};
192#define boxvar_NFUnitCheck_Errorfunction((void*)((char*)(&(boxvar_lit_NFUnitCheck_Errorfunction).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFUnitCheck_Errorfunction)((void*)((char*)(&(boxvar_lit_NFUnitCheck_Errorfunction).
header) + 3))
193PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_updateHtCr2U(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _unit, modelica_metatype _D_24in_htCr2U);
194static const MMC_DEFSTRUCTLIT(boxvar_lit_NFUnitCheck_updateHtCr2U,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFUnitCheck_updateHtCr2U
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFUnitCheck_updateHtCr2Uomc_NFUnitCheck_updateHtCr2U,0}};
195#define boxvar_NFUnitCheck_updateHtCr2U((void*)((char*)(&(boxvar_lit_NFUnitCheck_updateHtCr2U).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFUnitCheck_updateHtCr2U)((void*)((char*)(&(boxvar_lit_NFUnitCheck_updateHtCr2U).header
) + 3))
196PROTECTED_FUNCTION_STATIC modelica_boolean omc_NFUnitCheck_unitTypesEqual(threadData_t *threadData, modelica_metatype _unit1, modelica_metatype _unit2, modelica_metatype _htCr2U, modelica_metatype *out_outUnit, modelica_metatype *out_outHtCr2U);
197PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFUnitCheck_unitTypesEqual(threadData_t *threadData, modelica_metatype _unit1, modelica_metatype _unit2, modelica_metatype _htCr2U, modelica_metatype *out_outUnit, modelica_metatype *out_outHtCr2U);
198static const MMC_DEFSTRUCTLIT(boxvar_lit_NFUnitCheck_unitTypesEqual,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFUnitCheck_unitTypesEqual
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFUnitCheck_unitTypesEqual,0}};
199#define boxvar_NFUnitCheck_unitTypesEqual((void*)((char*)(&(boxvar_lit_NFUnitCheck_unitTypesEqual)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFUnitCheck_unitTypesEqual)((void*)((char*)(&(boxvar_lit_NFUnitCheck_unitTypesEqual)
.header) + 3))
200PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_parseFunctionUnits(threadData_t *threadData, modelica_string _funcName, modelica_metatype _func);
201static const MMC_DEFSTRUCTLIT(boxvar_lit_NFUnitCheck_parseFunctionUnits,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFUnitCheck_parseFunctionUnits
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFUnitCheck_parseFunctionUnitsomc_NFUnitCheck_parseFunctionUnits,0}};
202#define boxvar_NFUnitCheck_parseFunctionUnits((void*)((char*)(&(boxvar_lit_NFUnitCheck_parseFunctionUnits
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFUnitCheck_parseFunctionUnits)((void*)((char*)(&(boxvar_lit_NFUnitCheck_parseFunctionUnits
).header) + 3))
203PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_getCallUnits(threadData_t *threadData, modelica_string _fnName, modelica_metatype _call, modelica_metatype _fnCache, modelica_metatype *out_outputVars, modelica_metatype *out_inputUnits, modelica_metatype *out_outputUnits, modelica_metatype *out_outFnCache);
204static const MMC_DEFSTRUCTLIT(boxvar_lit_NFUnitCheck_getCallUnits,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFUnitCheck_getCallUnits
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFUnitCheck_getCallUnitsomc_NFUnitCheck_getCallUnits,0}};
205#define boxvar_NFUnitCheck_getCallUnits((void*)((char*)(&(boxvar_lit_NFUnitCheck_getCallUnits).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFUnitCheck_getCallUnits)((void*)((char*)(&(boxvar_lit_NFUnitCheck_getCallUnits).header
) + 3))
206PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_insertUnitString(threadData_t *threadData, modelica_metatype _unit, modelica_metatype _D_24in_htS2U, modelica_metatype _D_24in_htU2S, modelica_metatype *out_htU2S);
207static const MMC_DEFSTRUCTLIT(boxvar_lit_NFUnitCheck_insertUnitString,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFUnitCheck_insertUnitString
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFUnitCheck_insertUnitStringomc_NFUnitCheck_insertUnitString,0}};
208#define boxvar_NFUnitCheck_insertUnitString((void*)((char*)(&(boxvar_lit_NFUnitCheck_insertUnitString
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFUnitCheck_insertUnitString)((void*)((char*)(&(boxvar_lit_NFUnitCheck_insertUnitString
).header) + 3))
209PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_insertUnitInEquationCall(threadData_t *threadData, modelica_metatype _call, modelica_metatype _D_24in_unit, modelica_metatype _D_24in_htCr2U, modelica_metatype _D_24in_htS2U, modelica_metatype _D_24in_htU2S, modelica_metatype _D_24in_fnCache, modelica_metatype *out_htCr2U, modelica_metatype *out_htS2U, modelica_metatype *out_htU2S, modelica_metatype *out_fnCache, modelica_metatype *out_inconsistentUnits);
210static const MMC_DEFSTRUCTLIT(boxvar_lit_NFUnitCheck_insertUnitInEquationCall,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFUnitCheck_insertUnitInEquationCall
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFUnitCheck_insertUnitInEquationCallomc_NFUnitCheck_insertUnitInEquationCall,0}};
211#define boxvar_NFUnitCheck_insertUnitInEquationCall((void*)((char*)(&(boxvar_lit_NFUnitCheck_insertUnitInEquationCall
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFUnitCheck_insertUnitInEquationCall)((void*)((char*)(&(boxvar_lit_NFUnitCheck_insertUnitInEquationCall
).header) + 3))
212PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_insertUnitInEquation(threadData_t *threadData, modelica_metatype _eq, modelica_metatype _D_24in_unit, modelica_metatype _D_24in_htCr2U, modelica_metatype _D_24in_htS2U, modelica_metatype _D_24in_htU2S, modelica_metatype _D_24in_fnCache, modelica_metatype *out_htCr2U, modelica_metatype *out_htS2U, modelica_metatype *out_htU2S, modelica_metatype *out_fnCache, modelica_metatype *out_inconsistentUnits);
213static const MMC_DEFSTRUCTLIT(boxvar_lit_NFUnitCheck_insertUnitInEquation,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFUnitCheck_insertUnitInEquation
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFUnitCheck_insertUnitInEquationomc_NFUnitCheck_insertUnitInEquation,0}};
214#define boxvar_NFUnitCheck_insertUnitInEquation((void*)((char*)(&(boxvar_lit_NFUnitCheck_insertUnitInEquation
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFUnitCheck_insertUnitInEquation)((void*)((char*)(&(boxvar_lit_NFUnitCheck_insertUnitInEquation
).header) + 3))
215PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_makeNewCref(threadData_t *threadData, modelica_string _paramName, modelica_string _fnName);
216static const MMC_DEFSTRUCTLIT(boxvar_lit_NFUnitCheck_makeNewCref,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFUnitCheck_makeNewCref
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFUnitCheck_makeNewCrefomc_NFUnitCheck_makeNewCref,0}};
217#define boxvar_NFUnitCheck_makeNewCref((void*)((char*)(&(boxvar_lit_NFUnitCheck_makeNewCref).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFUnitCheck_makeNewCref)((void*)((char*)(&(boxvar_lit_NFUnitCheck_makeNewCref).header
) + 3))
218PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_foldEquation2(threadData_t *threadData, modelica_metatype _eq, modelica_boolean _dumpEqInitStruct, modelica_metatype _D_24in_htCr2U, modelica_metatype _D_24in_htS2U, modelica_metatype _D_24in_htU2S, modelica_metatype _D_24in_fnCache, modelica_metatype *out_htS2U, modelica_metatype *out_htU2S, modelica_metatype *out_fnCache, modelica_metatype *out_inconsistentUnits);
219PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFUnitCheck_foldEquation2(threadData_t *threadData, modelica_metatype _eq, modelica_metatype _dumpEqInitStruct, modelica_metatype _D_24in_htCr2U, modelica_metatype _D_24in_htS2U, modelica_metatype _D_24in_htU2S, modelica_metatype _D_24in_fnCache, modelica_metatype *out_htS2U, modelica_metatype *out_htU2S, modelica_metatype *out_fnCache, modelica_metatype *out_inconsistentUnits);
220static const MMC_DEFSTRUCTLIT(boxvar_lit_NFUnitCheck_foldEquation2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFUnitCheck_foldEquation2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFUnitCheck_foldEquation2,0}};
221#define boxvar_NFUnitCheck_foldEquation2((void*)((char*)(&(boxvar_lit_NFUnitCheck_foldEquation2).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFUnitCheck_foldEquation2)((void*)((char*)(&(boxvar_lit_NFUnitCheck_foldEquation2).
header) + 3))
222PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_foldEquation(threadData_t *threadData, modelica_metatype _eq, modelica_metatype _D_24in_htCr2U, modelica_metatype _D_24in_htS2U, modelica_metatype _D_24in_htU2S, modelica_metatype _D_24in_fnCache, modelica_boolean _dumpEqInitStruct, modelica_metatype *out_htS2U, modelica_metatype *out_htU2S, modelica_metatype *out_fnCache);
223PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFUnitCheck_foldEquation(threadData_t *threadData, modelica_metatype _eq, modelica_metatype _D_24in_htCr2U, modelica_metatype _D_24in_htS2U, modelica_metatype _D_24in_htU2S, modelica_metatype _D_24in_fnCache, modelica_metatype _dumpEqInitStruct, modelica_metatype *out_htS2U, modelica_metatype *out_htU2S, modelica_metatype *out_fnCache);
224static const MMC_DEFSTRUCTLIT(boxvar_lit_NFUnitCheck_foldEquation,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFUnitCheck_foldEquation
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFUnitCheck_foldEquation,0}};
225#define boxvar_NFUnitCheck_foldEquation((void*)((char*)(&(boxvar_lit_NFUnitCheck_foldEquation).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFUnitCheck_foldEquation)((void*)((char*)(&(boxvar_lit_NFUnitCheck_foldEquation).header
) + 3))
226PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_foldBindingExp(threadData_t *threadData, modelica_metatype _var, modelica_metatype _D_24in_htCr2U, modelica_metatype _D_24in_htS2U, modelica_metatype _D_24in_htU2S, modelica_metatype _D_24in_fnCache, modelica_boolean _dumpEqInitStruct, modelica_metatype *out_htS2U, modelica_metatype *out_htU2S, modelica_metatype *out_fnCache);
227PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFUnitCheck_foldBindingExp(threadData_t *threadData, modelica_metatype _var, modelica_metatype _D_24in_htCr2U, modelica_metatype _D_24in_htS2U, modelica_metatype _D_24in_htU2S, modelica_metatype _D_24in_fnCache, modelica_metatype _dumpEqInitStruct, modelica_metatype *out_htS2U, modelica_metatype *out_htU2S, modelica_metatype *out_fnCache);
228static const MMC_DEFSTRUCTLIT(boxvar_lit_NFUnitCheck_foldBindingExp,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFUnitCheck_foldBindingExp
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFUnitCheck_foldBindingExp,0}};
229#define boxvar_NFUnitCheck_foldBindingExp((void*)((char*)(&(boxvar_lit_NFUnitCheck_foldBindingExp)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFUnitCheck_foldBindingExp)((void*)((char*)(&(boxvar_lit_NFUnitCheck_foldBindingExp)
.header) + 3))
230PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_checkModelConsistency(threadData_t *threadData, modelica_metatype _variables, modelica_metatype _equations, modelica_metatype _initialEquations, modelica_metatype _D_24in_htCr2U, modelica_metatype _D_24in_htS2U, modelica_metatype _D_24in_htU2S, modelica_metatype _D_24in_fnCache, modelica_metatype *out_htS2U, modelica_metatype *out_htU2S, modelica_metatype *out_fnCache);
231static const MMC_DEFSTRUCTLIT(boxvar_lit_NFUnitCheck_checkModelConsistency,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFUnitCheck_checkModelConsistency
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFUnitCheck_checkModelConsistencyomc_NFUnitCheck_checkModelConsistency,0}};
232#define boxvar_NFUnitCheck_checkModelConsistency((void*)((char*)(&(boxvar_lit_NFUnitCheck_checkModelConsistency
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFUnitCheck_checkModelConsistency)((void*)((char*)(&(boxvar_lit_NFUnitCheck_checkModelConsistency
).header) + 3))
233PROTECTED_FUNCTION_STATIC modelica_string omc_NFUnitCheck_notification2(threadData_t *threadData, modelica_metatype _inLt1, modelica_metatype _inHtCr2U2, modelica_metatype _inHtU2S);
234static const MMC_DEFSTRUCTLIT(boxvar_lit_NFUnitCheck_notification2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFUnitCheck_notification2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFUnitCheck_notification2omc_NFUnitCheck_notification2,0}};
235#define boxvar_NFUnitCheck_notification2((void*)((char*)(&(boxvar_lit_NFUnitCheck_notification2).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFUnitCheck_notification2)((void*)((char*)(&(boxvar_lit_NFUnitCheck_notification2).
header) + 3))
236PROTECTED_FUNCTION_STATIC void omc_NFUnitCheck_notification(threadData_t *threadData, modelica_metatype _inHtCr2U1, modelica_metatype _inHtCr2U2, modelica_metatype _inHtU2S);
237static const MMC_DEFSTRUCTLIT(boxvar_lit_NFUnitCheck_notification,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFUnitCheck_notification
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFUnitCheck_notificationomc_NFUnitCheck_notification,0}};
238#define boxvar_NFUnitCheck_notification((void*)((char*)(&(boxvar_lit_NFUnitCheck_notification).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFUnitCheck_notification)((void*)((char*)(&(boxvar_lit_NFUnitCheck_notification).header
) + 3))
239PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_updateVariable(threadData_t *threadData, modelica_metatype _D_24in_var, modelica_metatype _htCr2U, modelica_metatype _htU2S);
240static const MMC_DEFSTRUCTLIT(boxvar_lit_NFUnitCheck_updateVariable,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFUnitCheck_updateVariable
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFUnitCheck_updateVariableomc_NFUnitCheck_updateVariable,0}};
241#define boxvar_NFUnitCheck_updateVariable((void*)((char*)(&(boxvar_lit_NFUnitCheck_updateVariable)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFUnitCheck_updateVariable)((void*)((char*)(&(boxvar_lit_NFUnitCheck_updateVariable)
.header) + 3))
242PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_updateModel(threadData_t *threadData, modelica_metatype _D_24in_flatModel, modelica_metatype _htCr2U, modelica_metatype _htU2S);
243static const MMC_DEFSTRUCTLIT(boxvar_lit_NFUnitCheck_updateModel,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFUnitCheck_updateModel
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFUnitCheck_updateModelomc_NFUnitCheck_updateModel,0}};
244#define boxvar_NFUnitCheck_updateModel((void*)((char*)(&(boxvar_lit_NFUnitCheck_updateModel).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFUnitCheck_updateModel)((void*)((char*)(&(boxvar_lit_NFUnitCheck_updateModel).header
) + 3))
245
246PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_parse(threadData_t *threadData, modelica_string _unitString, modelica_metatype _cref, modelica_metatype _D_24in_htS2U, modelica_metatype _D_24in_htU2S, modelica_metatype *out_htS2U, modelica_metatype *out_htU2S)
247{
248 jmp_buf *old_mmc_jumper = threadData->mmc_jumper;
249 modelica_metatype _unit = NULL((void*)0);
250 modelica_metatype _htS2U = NULL((void*)0);
251 modelica_metatype _htU2S = NULL((void*)0);
252 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
253 MMC_SO()mmc_check_stackoverflow(threadData);
254 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
255 // _unit has no default value.
256 _htS2U = _D_24in_htS2U;
257 _htU2S = _D_24in_htU2S;
258#line 1135 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
259 if((stringLength(_unitString)(((((*(mmc_uint_t*)((void*)((char*)(_unitString) - 3)))) >>
(3)) - 8))
== ((modelica_integer) 0)))
260#line 1135 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
261 {
262#line 1136 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
263 tmpMeta[0] = mmc_mk_cons(_cref, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
264#line 1136 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
265 tmpMeta[1] = mmc_mk_box2(4, &NFUnit_Unit_MASTER__desc, tmpMeta[0]);
266#line 1136 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
267 _unit = tmpMeta[1];
268#line 268 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
269
270#line 1137 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
271 goto _return;
272#line 272 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
273 }
274
275#line 275 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
276 { /* matchcontinue expression */
277 {
278 volatile mmc_switch_type tmp3;
279 int tmp4;
280 tmp3 = 0;
281 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) {
282 tmp2_top:
283 threadData->mmc_jumper = &new_mmc_jumper;
284 for (; tmp3 < 2; tmp3++) {
285 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
286 case 0: {
287 /* Pattern matching succeeded */
288#line 1140 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
289 _unit = omc_BaseHashTable_get(threadData, _unitString, _htS2U);
290#line 290 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
291#line 291 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
292 goto tmp2_done;
293 }
294 case 1: {
295 /* Pattern matching succeeded */
296#line 296 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
297 { /* matchcontinue expression */
298 {
299 volatile mmc_switch_type tmp7;
300 int tmp8;
301 tmp7 = 0;
302 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) {
303 tmp6_top:
304 threadData->mmc_jumper = &new_mmc_jumper;
305 for (; tmp7 < 2; tmp7++) {
306 switch (MMC_SWITCH_CAST(tmp7)(tmp7)) {
307 case 0: {
308 /* Pattern matching succeeded */
309#line 1143 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
310 _unit = omc_NFUnit_parseUnitString(threadData, _unitString, _htS2U);
311#line 311 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
312#line 312 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
313 goto tmp6_done;
314 }
315 case 1: {
316 /* Pattern matching succeeded */
317#line 1145 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
318 tmpMeta[0] = mmc_mk_box2(5, &NFUnit_Unit_UNKNOWN__desc, _unitString);
319#line 1145 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
320 _unit = tmpMeta[0];
321#line 321 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
322#line 322 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
323 goto tmp6_done;
324 }
325 }
326 goto tmp6_end;
327 tmp6_end: ;
328 }
329 goto goto_5;
330 tmp6_done:
331 (void)tmp7;
332 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
333 goto tmp6_done2;
334 goto_5:;
335 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
336 if (++tmp7 < 2) {
337 goto tmp6_top;
338 }
339 goto goto_1;
340 tmp6_done2:;
341 }
342 }
343 ;
344
345#line 1147 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
346 _htS2U = omc_NFUnitCheck_addUnit2HtS2U(threadData, _unitString, _unit, _htS2U);
347#line 347 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
348
349#line 1148 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
350 _htU2S = omc_NFUnitCheck_addUnit2HtU2S(threadData, _unitString, _unit, _htU2S);
351#line 351 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
352#line 352 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
353 goto tmp2_done;
354 }
355 }
356 goto tmp2_end;
357 tmp2_end: ;
358 }
359 goto goto_1;
360 tmp2_done:
361 (void)tmp3;
362 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
363 goto tmp2_done2;
364 goto_1:;
365 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
366 if (++tmp3 < 2) {
367 goto tmp2_top;
368 }
369 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
370 tmp2_done2:;
371 }
372 }
373 ;
374 _return: OMC_LABEL_UNUSED__attribute__((unused))
375 if (out_htS2U) { *out_htS2U = _htS2U; }
376 if (out_htU2S) { *out_htU2S = _htU2S; }
377 threadData->mmc_jumper = old_mmc_jumper;
378 return _unit;
379}
380
381PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_convertUnitString2unit(threadData_t *threadData, modelica_metatype _var, modelica_metatype _D_24in_htCr2U, modelica_metatype _D_24in_htS2U, modelica_metatype _D_24in_htU2S, modelica_metatype *out_htS2U, modelica_metatype *out_htU2S)
382{
383 modelica_metatype _htCr2U = NULL((void*)0);
384 modelica_metatype _htS2U = NULL((void*)0);
385 modelica_metatype _htU2S = NULL((void*)0);
386 modelica_metatype _unit_binding = NULL((void*)0);
387 modelica_metatype _unit_exp = NULL((void*)0);
388 modelica_string _unit_string = NULL((void*)0);
389 modelica_metatype _unit = NULL((void*)0);
390 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
391 MMC_SO()mmc_check_stackoverflow(threadData);
392 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
393 _htCr2U = _D_24in_htCr2U;
394 _htS2U = _D_24in_htS2U;
395 _htU2S = _D_24in_htU2S;
396 // _unit_binding has no default value.
397 // _unit_exp has no default value.
398 // _unit_string has no default value.
399 // _unit has no default value.
400#line 1106 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
401 _unit_binding = omc_NFVariable_lookupTypeAttribute(threadData, _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)), _var);
402#line 402 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
403
404#line 1107 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
405 _unit_exp = omc_NFBinding_Binding_typedExp(threadData, _unit_binding);
406#line 406 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
407
408#line 408 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
409 { /* match expression */
410 modelica_metatype tmp3_1;
411 tmp3_1 = _unit_exp;
412 {
413 volatile mmc_switch_type tmp3;
414 int tmp4;
415 tmp3 = 0;
416 for (; tmp3 < 2; tmp3++) {
417 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
418 case 0: {
419 if (optionNone(tmp3_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp3_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp2_end;
420 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
421 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],2,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((1 +1)
<< 10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
422 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
423 _unit_string = tmpMeta[1];
424 /* Pattern matching succeeded */
425 /* Check guard condition after assignments */
426 if (!(!(stringLength(_unit_string)(((((*(mmc_uint_t*)((void*)((char*)(_unit_string) - 3)))) >>
(3)) - 8))
== ((modelica_integer) 0)))) goto tmp2_end;
427#line 1113 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
428 _unit = omc_NFUnitCheck_parse(threadData, _unit_string, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_var), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_var) - 3))) + (
2)))))
), _htS2U, _htU2S ,&_htS2U ,&_htU2S);
429#line 429 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
430
431#line 1114 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
432 tmpMeta[0] = mmc_mk_box2(0, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_var), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_var) - 3))) + (
2)))))
), _unit);
433#line 1114 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
434 _htCr2U = omc_BaseHashTable_add(threadData, tmpMeta[0], _htCr2U);
435#line 435 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
436#line 436 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
437 goto tmp2_done;
438 }
439 case 1: {
440
441 /* Pattern matching succeeded */
442#line 1120 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
443 tmpMeta[0] = mmc_mk_cons((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_var), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_var) - 3))) + (
2)))))
), MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
444#line 1120 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
445 tmpMeta[1] = mmc_mk_box2(4, &NFUnit_Unit_MASTER__desc, tmpMeta[0]);
446#line 1120 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
447 tmpMeta[2] = mmc_mk_box2(0, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_var), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_var) - 3))) + (
2)))))
), tmpMeta[1]);
448#line 1120 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
449 _htCr2U = omc_BaseHashTable_add(threadData, tmpMeta[2], _htCr2U);
450#line 450 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
451
452#line 1121 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
453 tmpMeta[0] = mmc_mk_cons((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_var), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_var) - 3))) + (
2)))))
), MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
454#line 1121 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
455 tmpMeta[1] = mmc_mk_box2(4, &NFUnit_Unit_MASTER__desc, tmpMeta[0]);
456#line 1121 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
457 _htS2U = omc_NFUnitCheck_addUnit2HtS2U(threadData, _OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)), tmpMeta[1], _htS2U);
458#line 458 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
459
460#line 1122 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
461 tmpMeta[0] = mmc_mk_cons((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_var), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_var) - 3))) + (
2)))))
), MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
462#line 1122 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
463 tmpMeta[1] = mmc_mk_box2(4, &NFUnit_Unit_MASTER__desc, tmpMeta[0]);
464#line 1122 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
465 _htU2S = omc_NFUnitCheck_addUnit2HtU2S(threadData, _OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)), tmpMeta[1], _htU2S);
466#line 466 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
467#line 467 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
468 goto tmp2_done;
469 }
470 }
471 goto tmp2_end;
472 tmp2_end: ;
473 }
474 goto goto_1;
475 goto_1:;
476 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
477 goto tmp2_done;
478 tmp2_done:;
479 }
480 }
481 ;
482 _return: OMC_LABEL_UNUSED__attribute__((unused))
483 if (out_htS2U) { *out_htS2U = _htS2U; }
484 if (out_htU2S) { *out_htU2S = _htU2S; }
485 return _htCr2U;
486}
487
488PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_addUnit2HtU2S(threadData_t *threadData, modelica_string _name, modelica_metatype _unit, modelica_metatype _D_24in_htU2S)
489{
490 modelica_metatype _htU2S = NULL((void*)0);
491 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
492 MMC_SO()mmc_check_stackoverflow(threadData);
493 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
494 _htU2S = _D_24in_htU2S;
495#line 495 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
496 { /* matchcontinue expression */
497 {
498 volatile mmc_switch_type tmp3;
499 int tmp4;
500 tmp3 = 0;
501 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) {
502 tmp2_top:
503 threadData->mmc_jumper = &new_mmc_jumper;
504 for (; tmp3 < 2; tmp3++) {
505 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
506 case 0: {
507 /* Pattern matching succeeded */
508#line 1089 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
509 tmpMeta[0] = mmc_mk_box2(0, _unit, _name);
510#line 1089 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
511 _htU2S = omc_BaseHashTable_addUnique(threadData, tmpMeta[0], _htU2S);
512#line 512 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
513#line 513 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
514 goto tmp2_done;
515 }
516 case 1: {
517 /* Pattern matching succeeded */
518#line 518 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
519 goto tmp2_done;
520 }
521 }
522 goto tmp2_end;
523 tmp2_end: ;
524 }
525 goto goto_1;
526 tmp2_done:
527 (void)tmp3;
528 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
529 goto tmp2_done2;
530 goto_1:;
531 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
532 if (++tmp3 < 2) {
533 goto tmp2_top;
534 }
535 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
536 tmp2_done2:;
537 }
538 }
539 ;
540 _return: OMC_LABEL_UNUSED__attribute__((unused))
541 return _htU2S;
542}
543
544PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_addUnit2HtS2U(threadData_t *threadData, modelica_string _name, modelica_metatype _unit, modelica_metatype _inHtS2U)
545{
546 modelica_metatype _outHtS2U = NULL((void*)0);
547 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
548 MMC_SO()mmc_check_stackoverflow(threadData);
549 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
550 // _outHtS2U has no default value.
551#line 1080 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
552 tmpMeta[0] = mmc_mk_box2(0, _name, _unit);
553#line 1080 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
554 _outHtS2U = omc_BaseHashTable_add(threadData, tmpMeta[0], _inHtS2U);
555#line 555 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
556 _return: OMC_LABEL_UNUSED__attribute__((unused))
557 return _outHtS2U;
558}
559
560PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_foldCallArg1(threadData_t *threadData, modelica_metatype _args, modelica_metatype _D_24in_htCr2U, modelica_metatype _D_24in_htS2U, modelica_metatype _D_24in_htU2S, modelica_metatype _D_24in_fnCache, modelica_metatype _inUnit, modelica_metatype _units, modelica_metatype _vars, modelica_string _fnName, modelica_metatype *out_htS2U, modelica_metatype *out_htU2S, modelica_metatype *out_fnCache, modelica_metatype *out_inconsistentUnits)
561{
562 modelica_metatype _htCr2U = NULL((void*)0);
563 modelica_metatype _htS2U = NULL((void*)0);
564 modelica_metatype _htU2S = NULL((void*)0);
565 modelica_metatype _fnCache = NULL((void*)0);
566 modelica_metatype _inconsistentUnits = NULL((void*)0);
567 modelica_string _unit = NULL((void*)0);
568 modelica_string _var = NULL((void*)0);
569 modelica_metatype _rest_units = NULL((void*)0);
570 modelica_metatype _rest_vars = NULL((void*)0);
571 modelica_metatype _op_unit = NULL((void*)0);
572 modelica_metatype _op_unit2 = NULL((void*)0);
573 modelica_metatype _icu = NULL((void*)0);
574 modelica_metatype _temp = NULL((void*)0);
575 modelica_boolean _b;
576 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
577 MMC_SO()mmc_check_stackoverflow(threadData);
578 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
579 _htCr2U = _D_24in_htCr2U;
580 _htS2U = _D_24in_htS2U;
581 _htU2S = _D_24in_htU2S;
582 _fnCache = _D_24in_fnCache;
583 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
584 _inconsistentUnits = tmpMeta[0];
585 // _unit has no default value.
586 // _var has no default value.
587 _rest_units = _units;
588 _rest_vars = _vars;
589 // _op_unit has no default value.
590 // _op_unit2 has no default value.
591 // _icu has no default value.
592 // _temp has no default value.
593 // _b has no default value.
594#line 1048 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
595 {
596#line 1048 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
597 modelica_metatype _arg;
598#line 1048 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
599 for (tmpMeta[1] = _args; !listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[1]=MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
)
600#line 1048 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
601 {
602#line 1048 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
603 _arg = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
604#line 1049 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
605 /* Pattern-matching assignment */
606#line 1049 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
607 tmpMeta[2] = _rest_vars;
608#line 1049 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
609 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
610#line 1049 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
611 tmpMeta[3] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
612#line 1049 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
613 tmpMeta[4] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
614#line 1049 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
615 _var = tmpMeta[3];
616#line 1049 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
617 _rest_vars = tmpMeta[4];
618#line 618 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
619
620#line 1050 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
621 /* Pattern-matching assignment */
622#line 1050 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
623 tmpMeta[2] = _rest_units;
624#line 1050 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
625 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
626#line 1050 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
627 tmpMeta[3] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
628#line 1050 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
629 tmpMeta[4] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
630#line 1050 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
631 _unit = tmpMeta[3];
632#line 1050 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
633 _rest_units = tmpMeta[4];
634#line 634 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
635
636#line 1052 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
637 _op_unit = omc_NFUnitCheck_insertUnitInEquation(threadData, _arg, _inUnit, _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_icu);
638#line 638 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
639
640#line 1055 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
641 if((stringEqual(_unit, _OMC_LIT3)((((((*(mmc_uint_t*)((void*)((char*)(_unit) - 3)))) >> (
3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(((void*)((char
*)(&(_OMC_LIT_STRUCT3).header) + 3))) - 3)))) >> (3
)) - 8)) && !mmc_stringCompare(_unit,((void*)((char*)
(&(_OMC_LIT_STRUCT3).header) + 3))))
))
642#line 1055 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
643 {
644#line 1056 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
645 _op_unit2 = _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3));
646#line 646 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
647 }
648 else
649 {
650#line 1058 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
651 _op_unit2 = omc_NFUnit_parseUnitString(threadData, _unit, _htS2U);
652#line 652 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
653 }
654
655#line 1061 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
656 _b = omc_NFUnitCheck_unitTypesEqual(threadData, _op_unit, _op_unit2, _htCr2U ,&_op_unit, NULL((void*)0));
657#line 657 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
658
659#line 1063 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
660 if(_b)
661#line 1063 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
662 {
663#line 1064 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
664 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
665#line 1064 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
666 _icu = tmpMeta[2];
667#line 667 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
668 }
669 else
670 {
671#line 1066 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
672 _temp = omc_NFUnitCheck_makeNewCref(threadData, _unit, _fnName);
673#line 673 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
674
675#line 1067 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
676 tmpMeta[4] = mmc_mk_box2(0, _arg, _op_unit);
677#line 1067 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
678 tmpMeta[5] = mmc_mk_box2(0, _temp, _op_unit2);
679#line 1067 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
680 tmpMeta[3] = mmc_mk_cons(tmpMeta[4], mmc_mk_cons(tmpMeta[5], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))));
681#line 1067 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
682 tmpMeta[2] = mmc_mk_cons(tmpMeta[3], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
683#line 1067 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
684 _icu = tmpMeta[2];
685#line 685 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
686 }
687
688#line 1070 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
689 _inconsistentUnits = omc_List_append__reverse(threadData, _icu, _inconsistentUnits);
690#line 690 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
691 }
692 }
693 _return: OMC_LABEL_UNUSED__attribute__((unused))
694 if (out_htS2U) { *out_htS2U = _htS2U; }
695 if (out_htU2S) { *out_htU2S = _htU2S; }
696 if (out_fnCache) { *out_fnCache = _fnCache; }
697 if (out_inconsistentUnits) { *out_inconsistentUnits = _inconsistentUnits; }
698 return _htCr2U;
699}
700
701PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_foldCallArg(threadData_t *threadData, modelica_metatype _args, modelica_metatype _D_24in_htCr2U, modelica_metatype _D_24in_htS2U, modelica_metatype _D_24in_htU2S, modelica_metatype _D_24in_fnCache, modelica_metatype *out_htS2U, modelica_metatype *out_htU2S, modelica_metatype *out_fnCache, modelica_metatype *out_inconsistentUnits)
702{
703 modelica_metatype _htCr2U = NULL((void*)0);
704 modelica_metatype _htS2U = NULL((void*)0);
705 modelica_metatype _htU2S = NULL((void*)0);
706 modelica_metatype _fnCache = NULL((void*)0);
707 modelica_metatype _inconsistentUnits = NULL((void*)0);
708 modelica_metatype _icu = NULL((void*)0);
709 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
710 MMC_SO()mmc_check_stackoverflow(threadData);
711 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
712 _htCr2U = _D_24in_htCr2U;
713 _htS2U = _D_24in_htS2U;
714 _htU2S = _D_24in_htU2S;
715 _fnCache = _D_24in_fnCache;
716 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
717 _inconsistentUnits = tmpMeta[0];
718 // _icu has no default value.
719#line 1019 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
720 {
721#line 1019 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
722 modelica_metatype _exp;
723#line 1019 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
724 for (tmpMeta[1] = _args; !listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[1]=MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
)
725#line 1019 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
726 {
727#line 1019 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
728 _exp = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
729#line 1020 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
730 omc_NFUnitCheck_insertUnitInEquation(threadData, _exp, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_icu);
731#line 731 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
732
733#line 1022 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
734 _inconsistentUnits = omc_List_append__reverse(threadData, _icu, _inconsistentUnits);
735#line 735 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
736 }
737 }
738
739#line 1025 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
740 _inconsistentUnits = listReverse(_inconsistentUnits);
741#line 741 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
742 _return: OMC_LABEL_UNUSED__attribute__((unused))
743 if (out_htS2U) { *out_htS2U = _htS2U; }
744 if (out_htU2S) { *out_htU2S = _htU2S; }
745 if (out_fnCache) { *out_fnCache = _fnCache; }
746 if (out_inconsistentUnits) { *out_inconsistentUnits = _inconsistentUnits; }
747 return _htCr2U;
748}
749
750PROTECTED_FUNCTION_STATIC modelica_string omc_NFUnitCheck_Errorfunction2(threadData_t *threadData, modelica_metatype _inexpList, modelica_metatype _inHtU2S)
751{
752 modelica_string _outS = NULL((void*)0);
753 modelica_string tmp1 = 0;
754 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
755 MMC_SO()mmc_check_stackoverflow(threadData);
756 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
757 // _outS has no default value.
758#line 758 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
759 { /* match expression */
760 modelica_metatype tmp4_1;
761 tmp4_1 = _inexpList;
762 {
763 modelica_metatype _expList = NULL((void*)0);
764 modelica_metatype _exp = NULL((void*)0);
765 modelica_metatype _ut = NULL((void*)0);
766 modelica_string _s = NULL((void*)0);
767 modelica_string _s1 = NULL((void*)0);
768 modelica_string _s2 = NULL((void*)0);
769 volatile mmc_switch_type tmp4;
770 int tmp5;
771 // _expList has no default value.
772 // _exp has no default value.
773 // _ut has no default value.
774 // _s has no default value.
775 // _s1 has no default value.
776 // _s2 has no default value.
777 tmp4 = 0;
778 for (; tmp4 < 2; tmp4++) {
779 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
780 case 0: {
781 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
782 tmpMeta[0] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
783 tmpMeta[1] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
784 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
785 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
786 if (!listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
787 _exp = tmpMeta[2];
788 _ut = tmpMeta[3];
789 /* Pattern matching succeeded */
790#line 994 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
791 _s = omc_NFExpression_toString(threadData, _exp);
792#line 792 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
793
794#line 995 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
795 _s1 = omc_NFUnit_unitString(threadData, _ut, _inHtU2S);
796#line 796 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
797#line 996 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
798 tmpMeta[0] = stringAppend(_OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)),_s);
799#line 996 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
800 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)));
801#line 996 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
802 tmpMeta[2] = stringAppend(tmpMeta[1],_s1);
803#line 996 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
804 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)));
805#line 996 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
806 tmp1 = tmpMeta[3];
807#line 807 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
808 goto tmp3_done;
809 }
810 case 1: {
811 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
812 tmpMeta[0] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
813 tmpMeta[1] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
814 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
815 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
816 _exp = tmpMeta[2];
817 _ut = tmpMeta[3];
818 _expList = tmpMeta[1];
819 /* Pattern matching succeeded */
820#line 1000 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
821 _s = omc_NFExpression_toString(threadData, _exp);
822#line 822 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
823
824#line 1001 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
825 _s1 = omc_NFUnit_unitString(threadData, _ut, _inHtU2S);
826#line 826 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
827
828#line 1002 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
829 _s2 = omc_NFUnitCheck_Errorfunction2(threadData, _expList, _inHtU2S);
830#line 830 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
831#line 1003 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
832 tmpMeta[0] = stringAppend(_OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)),_s);
833#line 1003 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
834 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)));
835#line 1003 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
836 tmpMeta[2] = stringAppend(tmpMeta[1],_s1);
837#line 1003 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
838 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
839#line 1003 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
840 tmpMeta[4] = stringAppend(tmpMeta[3],_s2);
841#line 1003 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
842 tmp1 = tmpMeta[4];
843#line 843 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
844 goto tmp3_done;
845 }
846 }
847 goto tmp3_end;
848 tmp3_end: ;
849 }
850 goto goto_2;
851 goto_2:;
852 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
853 goto tmp3_done;
854 tmp3_done:;
855 }
856 }
857 _outS = tmp1;
858 _return: OMC_LABEL_UNUSED__attribute__((unused))
859 return _outS;
860}
861
862PROTECTED_FUNCTION_STATIC void omc_NFUnitCheck_Errorfunction(threadData_t *threadData, modelica_metatype _inexpList, modelica_metatype _inEq, modelica_metatype _inHtU2S)
863{
864 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
865 MMC_SO()mmc_check_stackoverflow(threadData);
866 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
867#line 867 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
868 { /* match expression */
869 modelica_metatype tmp3_1;
870 tmp3_1 = _inexpList;
871 {
872 modelica_string _s = NULL((void*)0);
873 modelica_string _s1 = NULL((void*)0);
874 modelica_string _s2 = NULL((void*)0);
875 modelica_metatype _expList = NULL((void*)0);
876 modelica_metatype _info = NULL((void*)0);
877 volatile mmc_switch_type tmp3;
878 int tmp4;
879 // _s has no default value.
880 // _s1 has no default value.
881 // _s2 has no default value.
882 // _expList has no default value.
883 // _info has no default value.
884 tmp3 = 0;
885 for (; tmp3 < 1; tmp3++) {
886 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
887 case 0: {
888
889 _expList = tmp3_1;
890 /* Pattern matching succeeded */
891#line 967 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
892 _info = omc_NFEquation_info(threadData, _inEq);
893#line 893 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
894
895#line 968 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
896 _s = omc_NFEquation_toString(threadData, _inEq, _OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)));
897#line 897 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
898
899#line 969 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
900 _s1 = omc_NFUnitCheck_Errorfunction2(threadData, _expList, _inHtU2S);
901#line 901 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
902
903#line 970 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
904 tmpMeta[0] = stringAppend(_OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3)),_s);
905#line 970 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
906 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)));
907#line 970 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
908 _s2 = tmpMeta[1];
909#line 909 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
910
911#line 971 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
912 tmpMeta[0] = mmc_mk_cons(_s2, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
913#line 971 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
914 omc_Error_addSourceMessage(threadData, _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)), tmpMeta[0], _info);
915#line 915 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
916
917#line 972 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
918 tmpMeta[0] = stringAppend(_OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)),_s1);
919#line 972 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
920 omc_Error_addCompilerWarning(threadData, tmpMeta[0]);
921#line 921 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
922#line 922 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
923 goto tmp2_done;
924 }
925 }
926 goto tmp2_end;
927 tmp2_end: ;
928 }
929 goto goto_1;
930 goto_1:;
931 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
932 goto tmp2_done;
933 tmp2_done:;
934 }
935 }
936 ;
937 _return: OMC_LABEL_UNUSED__attribute__((unused))
938 return;
939}
940
941PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_updateHtCr2U(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _unit, modelica_metatype _D_24in_htCr2U)
942{
943 modelica_metatype _htCr2U = NULL((void*)0);
944 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
945 MMC_SO()mmc_check_stackoverflow(threadData);
946 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
947 _htCr2U = _D_24in_htCr2U;
948#line 946 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
949 if((!omc_BaseHashTable_hasKey(threadData, _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)), _htCr2U)))
950#line 946 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
951 {
952#line 947 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
953 _htCr2U = omc_BaseHashTable_add(threadData, _OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)), _htCr2U);
954#line 954 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
955 }
956
957#line 950 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
958 tmpMeta[0] = mmc_mk_box2(0, _cref, _unit);
959#line 950 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
960 omc_BaseHashTable_update(threadData, tmpMeta[0], _htCr2U);
961#line 961 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
962 _return: OMC_LABEL_UNUSED__attribute__((unused))
963 return _htCr2U;
964}
965
966PROTECTED_FUNCTION_STATIC modelica_boolean omc_NFUnitCheck_unitTypesEqual(threadData_t *threadData, modelica_metatype _unit1, modelica_metatype _unit2, modelica_metatype _htCr2U, modelica_metatype *out_outUnit, modelica_metatype *out_outHtCr2U)
967{
968 modelica_boolean _isEqual;
969 modelica_metatype _outUnit = NULL((void*)0);
970 modelica_metatype _outHtCr2U = NULL((void*)0);
971 modelica_boolean tmp1_c0 __attribute__((unused)) = 0;
972 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
973 MMC_SO()mmc_check_stackoverflow(threadData);
974 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
975 // _isEqual has no default value.
976 // _outUnit has no default value.
977 // _outHtCr2U has no default value.
978#line 888 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
979
980#line 888 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
981
982#line 888 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
983
984#line 984 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
985 { /* match expression */
986 modelica_metatype tmp4_1;modelica_metatype tmp4_2;
987 tmp4_1 = _unit1;
988 tmp4_2 = _unit2;
989 {
990 modelica_real _r;
991 modelica_metatype _vars1 = NULL((void*)0);
992 modelica_metatype _vars2 = NULL((void*)0);
993 modelica_string _s1 = NULL((void*)0);
994 modelica_string _s2 = NULL((void*)0);
995 volatile mmc_switch_type tmp4;
996 int tmp5;
997 // _r has no default value.
998 // _vars1 has no default value.
999 // _vars2 has no default value.
1000 // _s1 has no default value.
1001 // _s2 has no default value.
1002 tmp4 = 0;
1003 for (; tmp4 < 8; tmp4++) {
1004 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1005 case 0: {
1006 modelica_real tmp6;
1007 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,8)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((8 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
1008 if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,8)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))==(((8 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
1009
1010 /* Pattern matching succeeded */
1011#line 896 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1012 _isEqual = (mmc_unbox_real((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_unit1), 2))))mmc_prim_get_real(((*(void**)(((void*)((void**)(((void*)((char
*)(_unit1) - 3))) + (2)))))))
== mmc_unbox_real((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_unit2), 2))))mmc_prim_get_real(((*(void**)(((void*)((void**)(((void*)((char
*)(_unit2) - 3))) + (2)))))))
);
1013#line 1013 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1014
1015#line 898 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1016 if((!_isEqual))
1017#line 898 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1018 {
1019#line 899 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1020 _r = fmax(fabs(mmc_unbox_real((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_unit1), 2))))mmc_prim_get_real(((*(void**)(((void*)((void**)(((void*)((char
*)(_unit1) - 3))) + (2)))))))
),fabs(mmc_unbox_real((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_unit2), 2))))mmc_prim_get_real(((*(void**)(((void*)((void**)(((void*)((char
*)(_unit2) - 3))) + (2)))))))
));
1021#line 1021 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1022
1023#line 900 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1024 tmp6 = _r;
1025#line 900 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1026 if (tmp6 == 0) {goto goto_2;}
1027#line 900 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1028 _isEqual = ((fabs(mmc_unbox_real((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_unit1), 2))))mmc_prim_get_real(((*(void**)(((void*)((void**)(((void*)((char
*)(_unit1) - 3))) + (2)))))))
- (mmc_unbox_real((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_unit2), 2))))mmc_prim_get_real(((*(void**)(((void*)((void**)(((void*)((char
*)(_unit2) - 3))) + (2)))))))
))) / tmp6 <= 0.001);
1029#line 1029 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1030 }
1031
1032#line 903 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1033 _isEqual = (((((((_isEqual && (mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_unit1), 3))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_unit1) - 3))) + (3)))))))) >> 1)
== mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_unit2), 3))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_unit2) - 3))) + (3)))))))) >> 1)
)) && (mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_unit1), 4))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_unit1) - 3))) + (4)))))))) >> 1)
== mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_unit2), 4))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_unit2) - 3))) + (4)))))))) >> 1)
)) && (mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_unit1), 5))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_unit1) - 3))) + (5)))))))) >> 1)
== mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_unit2), 5))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_unit2) - 3))) + (5)))))))) >> 1)
)) && (mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_unit1), 6))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_unit1) - 3))) + (6)))))))) >> 1)
== mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_unit2), 6))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_unit2) - 3))) + (6)))))))) >> 1)
)) && (mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_unit1), 7))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_unit1) - 3))) + (7)))))))) >> 1)
== mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_unit2), 7))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_unit2) - 3))) + (7)))))))) >> 1)
)) && (mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_unit1), 8))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_unit1) - 3))) + (8)))))))) >> 1)
== mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_unit2), 8))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_unit2) - 3))) + (8)))))))) >> 1)
)) && (mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_unit1), 9))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_unit1) - 3))) + (9)))))))) >> 1)
== mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_unit2), 9))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_unit2) - 3))) + (9)))))))) >> 1)
));
1034#line 1034 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1035#line 911 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1036 tmp1_c0 = _isEqual;
1037#line 911 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1038 tmpMeta[0+1] = _unit1;
1039#line 911 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1040 tmpMeta[0+2] = _htCr2U;
1041#line 1041 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1042 goto tmp3_done;
1043 }
1044 case 1: {
1045 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,8)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((8 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
1046 if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
1047 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(2)))))
;
1048 _vars2 = tmpMeta[3];
1049 /* Pattern matching succeeded */
1050#line 916 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1051 _outHtCr2U = omc_List_fold1(threadData, _vars2, boxvar_NFUnitCheck_updateHtCr2U((void*)((char*)(&(boxvar_lit_NFUnitCheck_updateHtCr2U).header
) + 3))
, _unit1, _htCr2U);
1052#line 1052 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1053#line 917 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1054 tmp1_c0 = 1;
1055#line 917 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1056 tmpMeta[0+1] = _unit1;
1057#line 917 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1058 tmpMeta[0+2] = _outHtCr2U;
1059#line 1059 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1060 goto tmp3_done;
1061 }
1062 case 2: {
1063 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
1064 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
1065 if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,8)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))==(((8 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
1066
1067 _vars1 = tmpMeta[3];
1068 /* Pattern matching succeeded */
1069#line 922 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1070 _outHtCr2U = omc_List_fold1(threadData, _vars1, boxvar_NFUnitCheck_updateHtCr2U((void*)((char*)(&(boxvar_lit_NFUnitCheck_updateHtCr2U).header
) + 3))
, _unit2, _htCr2U);
1071#line 1071 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1072#line 923 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1073 tmp1_c0 = 1;
1074#line 923 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1075 tmpMeta[0+1] = _unit2;
1076#line 923 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1077 tmpMeta[0+2] = _outHtCr2U;
1078#line 1078 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1079 goto tmp3_done;
1080 }
1081 case 3: {
1082 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
1083 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
1084 if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
1085 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(2)))))
;
1086 _vars1 = tmpMeta[3];
1087 _vars2 = tmpMeta[4];
1088 /* Pattern matching succeeded */
1089#line 928 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1090 _vars2 = omc_List_append__reverse(threadData, _vars1, _vars2);
1091#line 1091 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1092#line 929 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1093 tmpMeta[3] = mmc_mk_box2(4, &NFUnit_Unit_MASTER__desc, _vars2);
1094#line 929 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1095 tmp1_c0 = 1;
1096#line 929 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1097 tmpMeta[0+1] = tmpMeta[3];
1098#line 929 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1099 tmpMeta[0+2] = _htCr2U;
1100#line 1100 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1101 goto tmp3_done;
1102 }
1103 case 4: {
1104 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
1105 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
1106 if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,2,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))==(((1 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
1107 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(2)))))
;
1108 _s1 = tmpMeta[3];
1109 _s2 = tmpMeta[4];
1110 /* Pattern matching succeeded */
1111#line 933 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1112 tmp1_c0 = (stringEqual(_s1, _s2)((((((*(mmc_uint_t*)((void*)((char*)(_s1) - 3)))) >> (3
)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(_s2) - 3)))) >>
(3)) - 8)) && !mmc_stringCompare(_s1,_s2))
);
1113#line 933 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1114 tmpMeta[0+1] = _unit1;
1115#line 933 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1116 tmpMeta[0+2] = _htCr2U;
1117#line 1117 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1118 goto tmp3_done;
1119 }
1120 case 5: {
1121 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
1122
1123 /* Pattern matching succeeded */
1124#line 935 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1125 tmp1_c0 = 1;
1126#line 935 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1127 tmpMeta[0+1] = _unit1;
1128#line 935 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1129 tmpMeta[0+2] = _htCr2U;
1130#line 1130 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1131 goto tmp3_done;
1132 }
1133 case 6: {
1134 if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,2,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))==(((1 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
1135
1136 /* Pattern matching succeeded */
1137#line 936 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1138 tmp1_c0 = 1;
1139#line 936 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1140 tmpMeta[0+1] = _unit2;
1141#line 936 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1142 tmpMeta[0+2] = _htCr2U;
1143#line 1143 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1144 goto tmp3_done;
1145 }
1146 case 7: {
1147
1148 /* Pattern matching succeeded */
1149#line 937 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1150 tmp1_c0 = 0;
1151#line 937 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1152 tmpMeta[0+1] = _unit1;
1153#line 937 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1154 tmpMeta[0+2] = _htCr2U;
1155#line 1155 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1156 goto tmp3_done;
1157 }
1158 }
1159 goto tmp3_end;
1160 tmp3_end: ;
1161 }
1162 goto goto_2;
1163 goto_2:;
1164 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1165 goto tmp3_done;
1166 tmp3_done:;
1167 }
1168 }
1169 _isEqual = tmp1_c0;
1170 _outUnit = tmpMeta[0+1];
1171 _outHtCr2U = tmpMeta[0+2];
1172 _return: OMC_LABEL_UNUSED__attribute__((unused))
1173 if (out_outUnit) { *out_outUnit = _outUnit; }
1174 if (out_outHtCr2U) { *out_outHtCr2U = _outHtCr2U; }
1175 return _isEqual;
1176}
1177PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFUnitCheck_unitTypesEqual(threadData_t *threadData, modelica_metatype _unit1, modelica_metatype _unit2, modelica_metatype _htCr2U, modelica_metatype *out_outUnit, modelica_metatype *out_outHtCr2U)
1178{
1179 modelica_boolean _isEqual;
1180 modelica_metatype out_isEqual;
1181 _isEqual = omc_NFUnitCheck_unitTypesEqual(threadData, _unit1, _unit2, _htCr2U, out_outUnit, out_outHtCr2U);
1182 out_isEqual = mmc_mk_icon(_isEqual);
1183 /* skip box _outUnit; NFUnit.Unit */
1184 /* skip box _outHtCr2U; tuple<array<list<tuple<NFComponentRef, #Integer>>>, tuple<#Integer, #Integer, array<Option<tuple<NFComponentRef, NFUnit.Unit>>>>, #Integer, tuple<.NFHashTableCrToUnit.FuncHashKey<function>(NFComponentRef cr, #Integer mod) => #Integer, .NFHashTableCrToUnit.FuncKeyEqual<function>(NFComponentRef cr1, NFComponentRef cr2) => #Boolean, .NFHashTableCrToUnit.FuncKeyStr<function>(NFComponentRef cr) => String, .NFHashTableCrToUnit.FuncValueStr<function>(NFUnit.Unit exp) => String>> */
1185 return out_isEqual;
1186}
1187
1188PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_parseFunctionUnits(threadData_t *threadData, modelica_string _funcName, modelica_metatype _func)
1189{
1190 modelica_metatype _outArgs = NULL((void*)0);
1191 modelica_string _fn_name = NULL((void*)0);
1192 modelica_metatype _in_units = NULL((void*)0);
1193 modelica_metatype _out_units = NULL((void*)0);
1194 modelica_metatype _in_args = NULL((void*)0);
1195 modelica_metatype _out_args = NULL((void*)0);
1196 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1197 MMC_SO()mmc_check_stackoverflow(threadData);
1198 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1199 // _outArgs has no default value.
1200 // _fn_name has no default value.
1201 // _in_units has no default value.
1202 // _out_units has no default value.
1203 // _in_args has no default value.
1204 // _out_args has no default value.
1205#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1206 {
1207#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1208 modelica_metatype _D_24tmpVar1;
1209#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1210 modelica_metatype* tmp1;
1211#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1212 modelica_string _D_24tmpVar0;
1213#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1214 int tmp2;
1215#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1216 modelica_metatype _p_loopVar = 0;
1217#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1218 modelica_metatype _p;
1219#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1220 _p_loopVar = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_func), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_func) - 3))) +
(4)))))
);
1221#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1222 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1223#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1224 _D_24tmpVar1 = tmpMeta[1]; /* defaultValue */
1225#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1226 tmp1 = &_D_24tmpVar1;
1227#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1228 while(1) {
1229#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1230 tmp2 = 1;
1231#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1232 if (!listEmpty(_p_loopVar)((*(mmc_uint_t*)((void*)((char*)(_p_loopVar) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) {
1233#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1234 _p = MMC_CAR(_p_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_p_loopVar) - 3
))) + (1)))))
;
1235#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1236 _p_loopVar = MMC_CDR(_p_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_p_loopVar) - 3
))) + (2)))))
;
1237#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1238 tmp2--;
1239#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1240 }
1241#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1242 if (tmp2 == 0) {
1243#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1244 _D_24tmpVar0 = omc_NFComponent_Component_getUnitAttribute(threadData, omc_NFInstNode_InstNode_component(threadData, _p), _OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)));
1245#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1246 *tmp1 = mmc_mk_cons(_D_24tmpVar0,0);
1247#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1248 tmp1 = &MMC_CDR(*tmp1)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp1) - 3))) +
(2)))))
;
1249#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1250 } else if (tmp2 == 1) {
1251#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1252 break;
1253#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1254 } else {
1255#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1256 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1257#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1258 }
1259#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1260 }
1261#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1262 *tmp1 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
1263#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1264 tmpMeta[0] = _D_24tmpVar1;
1265#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1266 }
1267#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1268 _in_units = tmpMeta[0];
1269#line 1269 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1270
1271#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1272 {
1273#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1274 modelica_metatype _D_24tmpVar3;
1275#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1276 modelica_metatype* tmp3;
1277#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1278 modelica_string _D_24tmpVar2;
1279#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1280 int tmp4;
1281#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1282 modelica_metatype _p_loopVar = 0;
1283#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1284 modelica_metatype _p;
1285#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1286 _p_loopVar = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_func), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_func) - 3))) +
(5)))))
);
1287#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1288 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1289#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1290 _D_24tmpVar3 = tmpMeta[1]; /* defaultValue */
1291#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1292 tmp3 = &_D_24tmpVar3;
1293#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1294 while(1) {
1295#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1296 tmp4 = 1;
1297#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1298 if (!listEmpty(_p_loopVar)((*(mmc_uint_t*)((void*)((char*)(_p_loopVar) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) {
1299#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1300 _p = MMC_CAR(_p_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_p_loopVar) - 3
))) + (1)))))
;
1301#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1302 _p_loopVar = MMC_CDR(_p_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_p_loopVar) - 3
))) + (2)))))
;
1303#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1304 tmp4--;
1305#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1306 }
1307#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1308 if (tmp4 == 0) {
1309#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1310 _D_24tmpVar2 = omc_NFComponent_Component_getUnitAttribute(threadData, omc_NFInstNode_InstNode_component(threadData, _p), _OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)));
1311#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1312 *tmp3 = mmc_mk_cons(_D_24tmpVar2,0);
1313#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1314 tmp3 = &MMC_CDR(*tmp3)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp3) - 3))) +
(2)))))
;
1315#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1316 } else if (tmp4 == 1) {
1317#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1318 break;
1319#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1320 } else {
1321#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1322 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1323#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1324 }
1325#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1326 }
1327#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1328 *tmp3 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
1329#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1330 tmpMeta[0] = _D_24tmpVar3;
1331#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1332 }
1333#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1334 _out_units = tmpMeta[0];
1335#line 1335 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1336
1337#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1338 {
1339#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1340 modelica_metatype _D_24tmpVar5;
1341#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1342 modelica_metatype* tmp5;
1343#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1344 modelica_string _D_24tmpVar4;
1345#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1346 int tmp6;
1347#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1348 modelica_metatype _p_loopVar = 0;
1349#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1350 modelica_metatype _p;
1351#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1352 _p_loopVar = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_func), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_func) - 3))) +
(4)))))
);
1353#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1354 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1355#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1356 _D_24tmpVar5 = tmpMeta[1]; /* defaultValue */
1357#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1358 tmp5 = &_D_24tmpVar5;
1359#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1360 while(1) {
1361#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1362 tmp6 = 1;
1363#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1364 if (!listEmpty(_p_loopVar)((*(mmc_uint_t*)((void*)((char*)(_p_loopVar) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) {
1365#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1366 _p = MMC_CAR(_p_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_p_loopVar) - 3
))) + (1)))))
;
1367#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1368 _p_loopVar = MMC_CDR(_p_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_p_loopVar) - 3
))) + (2)))))
;
1369#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1370 tmp6--;
1371#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1372 }
1373#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1374 if (tmp6 == 0) {
1375#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1376 _D_24tmpVar4 = omc_NFInstNode_InstNode_name(threadData, _p);
1377#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1378 *tmp5 = mmc_mk_cons(_D_24tmpVar4,0);
1379#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1380 tmp5 = &MMC_CDR(*tmp5)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp5) - 3))) +
(2)))))
;
1381#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1382 } else if (tmp6 == 1) {
1383#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1384 break;
1385#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1386 } else {
1387#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1388 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1389#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1390 }
1391#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1392 }
1393#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1394 *tmp5 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
1395#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1396 tmpMeta[0] = _D_24tmpVar5;
1397#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1398 }
1399#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1400 _in_args = tmpMeta[0];
1401#line 1401 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1402
1403#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1404 {
1405#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1406 modelica_metatype _D_24tmpVar7;
1407#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1408 modelica_metatype* tmp7;
1409#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1410 modelica_string _D_24tmpVar6;
1411#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1412 int tmp8;
1413#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1414 modelica_metatype _p_loopVar = 0;
1415#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1416 modelica_metatype _p;
1417#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1418 _p_loopVar = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_func), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_func) - 3))) +
(5)))))
);
1419#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1420 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1421#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1422 _D_24tmpVar7 = tmpMeta[1]; /* defaultValue */
1423#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1424 tmp7 = &_D_24tmpVar7;
1425#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1426 while(1) {
1427#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1428 tmp8 = 1;
1429#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1430 if (!listEmpty(_p_loopVar)((*(mmc_uint_t*)((void*)((char*)(_p_loopVar) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) {
1431#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1432 _p = MMC_CAR(_p_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_p_loopVar) - 3
))) + (1)))))
;
1433#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1434 _p_loopVar = MMC_CDR(_p_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_p_loopVar) - 3
))) + (2)))))
;
1435#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1436 tmp8--;
1437#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1438 }
1439#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1440 if (tmp8 == 0) {
1441#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1442 _D_24tmpVar6 = omc_NFInstNode_InstNode_name(threadData, _p);
1443#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1444 *tmp7 = mmc_mk_cons(_D_24tmpVar6,0);
1445#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1446 tmp7 = &MMC_CDR(*tmp7)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp7) - 3))) +
(2)))))
;
1447#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1448 } else if (tmp8 == 1) {
1449#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1450 break;
1451#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1452 } else {
1453#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1454 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1455#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1456 }
1457#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1458 }
1459#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1460 *tmp7 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
1461#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1462 tmpMeta[0] = _D_24tmpVar7;
1463#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1464 }
1465#line 875 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1466 _out_args = tmpMeta[0];
1467#line 1467 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1468
1469#line 876 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1470 tmpMeta[0] = mmc_mk_box6(3, &NFUnitCheck_Functionargs_FUNCTIONUNITS__desc, _funcName, _in_args, _out_args, _in_units, _out_units);
1471#line 876 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1472 _outArgs = tmpMeta[0];
1473#line 1473 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1474 _return: OMC_LABEL_UNUSED__attribute__((unused))
1475 return _outArgs;
1476}
1477
1478PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_getCallUnits(threadData_t *threadData, modelica_string _fnName, modelica_metatype _call, modelica_metatype _fnCache, modelica_metatype *out_outputVars, modelica_metatype *out_inputUnits, modelica_metatype *out_outputUnits, modelica_metatype *out_outFnCache)
1479{
1480 modelica_metatype _inputVars = NULL((void*)0);
1481 modelica_metatype _outputVars = NULL((void*)0);
1482 modelica_metatype _inputUnits = NULL((void*)0);
1483 modelica_metatype _outputUnits = NULL((void*)0);
1484 modelica_metatype _outFnCache = NULL((void*)0);
1485 modelica_metatype _args = NULL((void*)0);
1486 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
1487 MMC_SO()mmc_check_stackoverflow(threadData);
1488 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1489 // _inputVars has no default value.
1490 // _outputVars has no default value.
1491 // _inputUnits has no default value.
1492 // _outputUnits has no default value.
1493 _outFnCache = _fnCache;
1494 // _args has no default value.
1495#line 1495 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1496 { /* matchcontinue expression */
1497 {
1498 volatile mmc_switch_type tmp3;
1499 int tmp4;
1500 tmp3 = 0;
1501 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) {
1502 tmp2_top:
1503 threadData->mmc_jumper = &new_mmc_jumper;
1504 for (; tmp3 < 2; tmp3++) {
1505 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1506 case 0: {
1507 /* Pattern matching succeeded */
1508#line 855 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1509 _args = omc_BaseHashTable_get(threadData, _fnName, _fnCache);
1510#line 1510 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1511#line 1511 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1512 goto tmp2_done;
1513 }
1514 case 1: {
1515 /* Pattern matching succeeded */
1516#line 857 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1517 _args = omc_NFUnitCheck_parseFunctionUnits(threadData, _fnName, omc_NFCall_Call_typedFunction(threadData, _call));
1518#line 1518 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1519
1520#line 858 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1521 tmpMeta[0] = mmc_mk_box2(0, _fnName, _args);
1522#line 858 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1523 _outFnCache = omc_BaseHashTable_addUnique(threadData, tmpMeta[0], _outFnCache);
1524#line 1524 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1525#line 1525 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1526 goto tmp2_done;
1527 }
1528 }
1529 goto tmp2_end;
1530 tmp2_end: ;
1531 }
1532 goto goto_1;
1533 tmp2_done:
1534 (void)tmp3;
1535 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1536 goto tmp2_done2;
1537 goto_1:;
1538 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1539 if (++tmp3 < 2) {
1540 goto tmp2_top;
1541 }
1542 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1543 tmp2_done2:;
1544 }
1545 }
1546 ;
1547
1548#line 861 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1549 /* Pattern-matching assignment */
1550#line 861 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1551 tmpMeta[0] = _args;
1552#line 861 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1553 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
1554#line 861 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1555 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
1556#line 861 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1557 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
1558#line 861 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1559 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
1560#line 861 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1561 _inputVars = tmpMeta[1];
1562#line 861 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1563 _outputVars = tmpMeta[2];
1564#line 861 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1565 _inputUnits = tmpMeta[3];
1566#line 861 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1567 _outputUnits = tmpMeta[4];
1568#line 1568 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1569 _return: OMC_LABEL_UNUSED__attribute__((unused))
1570 if (out_outputVars) { *out_outputVars = _outputVars; }
1571 if (out_inputUnits) { *out_inputUnits = _inputUnits; }
1572 if (out_outputUnits) { *out_outputUnits = _outputUnits; }
1573 if (out_outFnCache) { *out_outFnCache = _outFnCache; }
1574 return _inputVars;
1575}
1576
1577PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_insertUnitString(threadData_t *threadData, modelica_metatype _unit, modelica_metatype _D_24in_htS2U, modelica_metatype _D_24in_htU2S, modelica_metatype *out_htU2S)
1578{
1579 modelica_metatype _htS2U = NULL((void*)0);
1580 modelica_metatype _htU2S = NULL((void*)0);
1581 modelica_string _unit_str = NULL((void*)0);
1582 MMC_SO()mmc_check_stackoverflow(threadData);
1583 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1584 _htS2U = _D_24in_htS2U;
1585 _htU2S = _D_24in_htU2S;
1586 // _unit_str has no default value.
1587#line 837 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1588 _unit_str = omc_NFUnit_unitString(threadData, _unit, _htU2S);
1589#line 1589 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1590
1591#line 838 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1592 _htS2U = omc_NFUnitCheck_addUnit2HtS2U(threadData, _unit_str, _unit, _htS2U);
1593#line 1593 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1594
1595#line 839 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1596 _htU2S = omc_NFUnitCheck_addUnit2HtU2S(threadData, _unit_str, _unit, _htU2S);
1597#line 1597 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1598 _return: OMC_LABEL_UNUSED__attribute__((unused))
1599 if (out_htU2S) { *out_htU2S = _htU2S; }
1600 return _htS2U;
1601}
1602
1603PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_insertUnitInEquationCall(threadData_t *threadData, modelica_metatype _call, modelica_metatype _D_24in_unit, modelica_metatype _D_24in_htCr2U, modelica_metatype _D_24in_htS2U, modelica_metatype _D_24in_htU2S, modelica_metatype _D_24in_fnCache, modelica_metatype *out_htCr2U, modelica_metatype *out_htS2U, modelica_metatype *out_htU2S, modelica_metatype *out_fnCache, modelica_metatype *out_inconsistentUnits)
1604{
1605 modelica_metatype _unit = NULL((void*)0);
1606 modelica_metatype _htCr2U = NULL((void*)0);
1607 modelica_metatype _htS2U = NULL((void*)0);
1608 modelica_metatype _htU2S = NULL((void*)0);
1609 modelica_metatype _fnCache = NULL((void*)0);
1610 modelica_metatype _inconsistentUnits = NULL((void*)0);
1611 modelica_metatype _fn_path = NULL((void*)0);
1612 modelica_string _fn_name = NULL((void*)0);
1613 modelica_metatype _call_args = NULL((void*)0);
1614 modelica_metatype _op_unit = NULL((void*)0);
1615 modelica_metatype _vars = NULL((void*)0);
1616 modelica_metatype _var_names = NULL((void*)0);
1617 modelica_metatype _unit_names = NULL((void*)0);
1618 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
1619 MMC_SO()mmc_check_stackoverflow(threadData);
1620 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1621 _unit = _D_24in_unit;
1622 _htCr2U = _D_24in_htCr2U;
1623 _htS2U = _D_24in_htS2U;
1624 _htU2S = _D_24in_htU2S;
1625 _fnCache = _D_24in_fnCache;
1626 // _inconsistentUnits has no default value.
1627 // _fn_path has no default value.
1628 // _fn_name has no default value.
1629 // _call_args has no default value.
1630 // _op_unit has no default value.
1631 // _vars has no default value.
1632 // _var_names has no default value.
1633 // _unit_names has no default value.
1634#line 759 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1635 _fn_path = omc_NFCall_Call_functionName(threadData, _call);
1636#line 1636 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1637
1638#line 760 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1639 _call_args = omc_NFCall_Call_arguments(threadData, _call);
1640#line 1640 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1641
1642#line 762 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1643
1644#line 762 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1645
1646#line 1646 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1647 { /* matchcontinue expression */
1648 volatile modelica_metatype tmp4_1;
1649 tmp4_1 = _fn_path;
1650 {
1651 volatile mmc_switch_type tmp4;
1652 int tmp5;
1653 tmp4 = 0;
1654 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) {
1655 tmp3_top:
1656 threadData->mmc_jumper = &new_mmc_jumper;
1657 for (; tmp4 < 6; tmp4++) {
1658 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1659 case 0: {
1660 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
1661 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
1662 if (3 != MMC_STRLEN(tmpMeta[2])(((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))) >>
(3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT24)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT24).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmpMeta[2])(((struct mmc_string*)((void*)((char*)(tmpMeta[2]) - 3)))->
data)
) != 0) goto tmp3_end;
1663 tmp4 += 2; /* Pattern matching succeeded; we may skip some cases if we fail */
1664#line 765 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1665 _op_unit = omc_NFUnitCheck_insertUnitInEquation(threadData, listHead(_call_args)boxptr_listHead(threadData,_call_args), _unit, _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_inconsistentUnits);
1666#line 1666 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1667#line 767 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1668 tmpMeta[0+0] = _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3));
1669#line 767 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1670 tmpMeta[0+1] = _inconsistentUnits;
1671#line 1671 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1672 goto tmp3_done;
1673 }
1674 case 1: {
1675 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
1676 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
1677 if (3 != MMC_STRLEN(tmpMeta[2])(((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))) >>
(3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT25)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT25).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmpMeta[2])(((struct mmc_string*)((void*)((char*)(tmpMeta[2]) - 3)))->
data)
) != 0) goto tmp3_end;
1678 tmp4 += 1; /* Pattern matching succeeded; we may skip some cases if we fail */
1679#line 772 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1680 _op_unit = omc_NFUnitCheck_insertUnitInEquation(threadData, listHead(_call_args)boxptr_listHead(threadData,_call_args), _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_inconsistentUnits);
1681#line 1681 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1682
1683#line 775 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1684 if(omc_NFUnit_isUnit(threadData, _op_unit))
1685#line 775 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1686 {
1687#line 776 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1688 _op_unit = omc_NFUnit_unitDiv(threadData, _op_unit, _OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3)));
1689#line 1689 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1690
1691#line 777 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1692 _htS2U = omc_NFUnitCheck_insertUnitString(threadData, _op_unit, _htS2U, _htU2S ,&_htU2S);
1693#line 1693 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1694 }
1695 else
1696 {
1697 if(omc_NFUnit_isUnit(threadData, _unit))
1698 {
1699#line 779 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1700 /* Pattern-matching assignment */
1701#line 779 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1702 tmpMeta[2] = _op_unit;
1703#line 779 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1704 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 goto_2;
1705#line 779 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1706 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
1707#line 779 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1708 _vars = tmpMeta[3];
1709#line 1709 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1710
1711#line 780 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1712 _op_unit = omc_NFUnit_unitMul(threadData, _unit, _OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3)));
1713#line 1713 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1714
1715#line 781 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1716 _htCr2U = omc_List_fold1(threadData, _vars, boxvar_NFUnitCheck_updateHtCr2U((void*)((char*)(&(boxvar_lit_NFUnitCheck_updateHtCr2U).header
) + 3))
, _op_unit, _htCr2U);
1717#line 1717 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1718
1719#line 782 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1720 _htS2U = omc_NFUnitCheck_insertUnitString(threadData, _op_unit, _htS2U, _htU2S ,&_htU2S);
1721#line 1721 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1722 }
1723 else
1724 {
1725#line 784 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1726 _op_unit = _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3));
1727#line 1727 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1728 }
1729 }
1730#line 786 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1731 tmpMeta[0+0] = _op_unit;
1732#line 786 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1733 tmpMeta[0+1] = _inconsistentUnits;
1734#line 1734 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1735 goto tmp3_done;
1736 }
1737 case 2: {
1738 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
1739 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
1740 if (4 != MMC_STRLEN(tmpMeta[2])(((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))) >>
(3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT26)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT26).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmpMeta[2])(((struct mmc_string*)((void*)((char*)(tmpMeta[2]) - 3)))->
data)
) != 0) goto tmp3_end;
1741 /* Pattern matching succeeded */
1742#line 791 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1743 _op_unit = omc_NFUnitCheck_insertUnitInEquation(threadData, listHead(_call_args)boxptr_listHead(threadData,_call_args), _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_inconsistentUnits);
1744#line 1744 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1745
1746#line 794 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1747 if(omc_NFUnit_isUnit(threadData, _op_unit))
1748#line 794 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1749 {
1750#line 795 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1751 _op_unit = omc_NFUnit_unitRoot(threadData, _op_unit, 2.0);
1752#line 1752 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1753
1754#line 796 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1755 _htS2U = omc_NFUnitCheck_insertUnitString(threadData, _op_unit, _htS2U, _htU2S ,&_htU2S);
1756#line 1756 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1757 }
1758 else
1759 {
1760 if(omc_NFUnit_isUnit(threadData, _unit))
1761 {
1762#line 798 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1763 /* Pattern-matching assignment */
1764#line 798 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1765 tmpMeta[2] = _op_unit;
1766#line 798 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1767 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 goto_2;
1768#line 798 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1769 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
1770#line 798 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1771 _vars = tmpMeta[3];
1772#line 1772 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1773
1774#line 799 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1775 _op_unit = omc_NFUnit_unitPow(threadData, _unit, ((modelica_integer) 2));
1776#line 1776 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1777
1778#line 800 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1779 _htCr2U = omc_List_fold1(threadData, _vars, boxvar_NFUnitCheck_updateHtCr2U((void*)((char*)(&(boxvar_lit_NFUnitCheck_updateHtCr2U).header
) + 3))
, _op_unit, _htCr2U);
1780#line 1780 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1781
1782#line 801 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1783 _htS2U = omc_NFUnitCheck_insertUnitString(threadData, _op_unit, _htS2U, _htU2S ,&_htU2S);
1784#line 1784 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1785
1786#line 802 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1787 _op_unit = _unit;
1788#line 1788 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1789 }
1790 else
1791 {
1792#line 804 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1793 _op_unit = _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3));
1794#line 1794 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1795 }
1796 }
1797#line 806 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1798 tmpMeta[0+0] = _op_unit;
1799#line 806 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1800 tmpMeta[0+1] = _inconsistentUnits;
1801#line 1801 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1802 goto tmp3_done;
1803 }
1804 case 3: {
1805 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
1806
1807 /* Pattern matching succeeded */
1808 /* Check guard condition after assignments */
1809 if (!omc_NFFunction_Function_isBuiltin(threadData, omc_NFCall_Call_typedFunction(threadData, _call))) goto tmp3_end;
1810#line 812 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1811 _htCr2U = omc_NFUnitCheck_foldCallArg(threadData, _call_args, _htCr2U, _htS2U, _htU2S, _fnCache ,&_htS2U ,&_htU2S ,&_fnCache ,&_inconsistentUnits);
1812#line 1812 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1813#line 814 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1814 tmpMeta[0+0] = _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3));
1815#line 814 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1816 tmpMeta[0+1] = _inconsistentUnits;
1817#line 1817 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1818 goto tmp3_done;
1819 }
1820 case 4: {
1821
1822 /* Pattern matching succeeded */
1823#line 819 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1824 _fn_name = omc_AbsynUtil_pathString(threadData, omc_AbsynUtil_makeNotFullyQualified(threadData, _fn_path), _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3)), 1, 0);
1825#line 1825 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1826
1827#line 820 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1828 _var_names = omc_NFUnitCheck_getCallUnits(threadData, _fn_name, _call, _fnCache ,NULL((void*)0) ,&_unit_names ,NULL((void*)0) ,&_fnCache);
1829#line 1829 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1830
1831#line 821 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1832 _htCr2U = omc_NFUnitCheck_foldCallArg1(threadData, _call_args, _htCr2U, _htS2U, _htU2S, _fnCache, _unit, _unit_names, _var_names, _fn_name ,&_htS2U ,&_htU2S ,&_fnCache ,&_inconsistentUnits);
1833#line 1833 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1834#line 823 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1835 tmpMeta[0+0] = _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3));
1836#line 823 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1837 tmpMeta[0+1] = _inconsistentUnits;
1838#line 1838 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1839 goto tmp3_done;
1840 }
1841 case 5: {
1842
1843 /* Pattern matching succeeded */
1844#line 826 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1845 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1846#line 826 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1847 tmpMeta[0+0] = _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3));
1848#line 826 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1849 tmpMeta[0+1] = tmpMeta[2];
1850#line 1850 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1851 goto tmp3_done;
1852 }
1853 }
1854 goto tmp3_end;
1855 tmp3_end: ;
1856 }
1857 goto goto_2;
1858 tmp3_done:
1859 (void)tmp4;
1860 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1861 goto tmp3_done2;
1862 goto_2:;
1863 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1864 if (++tmp4 < 6) {
1865 goto tmp3_top;
1866 }
1867 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1868 tmp3_done2:;
1869 }
1870 }
1871 _unit = tmpMeta[0+0];
1872 _inconsistentUnits = tmpMeta[0+1];
1873 _return: OMC_LABEL_UNUSED__attribute__((unused))
1874 if (out_htCr2U) { *out_htCr2U = _htCr2U; }
1875 if (out_htS2U) { *out_htS2U = _htS2U; }
1876 if (out_htU2S) { *out_htU2S = _htU2S; }
1877 if (out_fnCache) { *out_fnCache = _fnCache; }
1878 if (out_inconsistentUnits) { *out_inconsistentUnits = _inconsistentUnits; }
1879 return _unit;
1880}
1881
1882PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_insertUnitInEquation(threadData_t *threadData, modelica_metatype _eq, modelica_metatype _D_24in_unit, modelica_metatype _D_24in_htCr2U, modelica_metatype _D_24in_htS2U, modelica_metatype _D_24in_htU2S, modelica_metatype _D_24in_fnCache, modelica_metatype *out_htCr2U, modelica_metatype *out_htS2U, modelica_metatype *out_htU2S, modelica_metatype *out_fnCache, modelica_metatype *out_inconsistentUnits)
1883{
1884 modelica_metatype _unit = NULL((void*)0);
1885 modelica_metatype _htCr2U = NULL((void*)0);
1886 modelica_metatype _htS2U = NULL((void*)0);
1887 modelica_metatype _htU2S = NULL((void*)0);
1888 modelica_metatype _fnCache = NULL((void*)0);
1889 modelica_metatype _inconsistentUnits = NULL((void*)0);
1890 modelica_metatype tmpMeta[9] __attribute__((unused)) = {0};
1891 MMC_SO()mmc_check_stackoverflow(threadData);
1892 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1893 _unit = _D_24in_unit;
1894 _htCr2U = _D_24in_htCr2U;
1895 _htS2U = _D_24in_htS2U;
1896 _htU2S = _D_24in_htU2S;
1897 _fnCache = _D_24in_fnCache;
1898 // _inconsistentUnits has no default value.
1899#line 417 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1900
1901#line 417 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1902
1903#line 1903 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1904 { /* matchcontinue expression */
1905 volatile modelica_metatype tmp4_1;
1906 tmp4_1 = _eq;
1907 {
1908 modelica_metatype _exp1 = NULL((void*)0);
1909 modelica_metatype _exp2 = NULL((void*)0);
1910 modelica_metatype _unit1 = NULL((void*)0);
1911 modelica_metatype _unit2 = NULL((void*)0);
1912 modelica_metatype _op_unit = NULL((void*)0);
1913 modelica_metatype _icu1 = NULL((void*)0);
1914 modelica_metatype _icu2 = NULL((void*)0);
1915 modelica_metatype _vars = NULL((void*)0);
1916 modelica_integer _i;
1917 modelica_boolean _b;
1918 volatile mmc_switch_type tmp4;
1919 int tmp5;
1920 // _exp1 has no default value.
1921 // _exp2 has no default value.
1922 // _unit1 has no default value.
1923 // _unit2 has no default value.
1924 // _op_unit has no default value.
1925 // _icu1 has no default value.
1926 // _icu2 has no default value.
1927 // _vars has no default value.
1928 // _i has no default value.
1929 // _b has no default value.
1930 tmp4 = 0;
1931 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) {
1932 tmp3_top:
1933 threadData->mmc_jumper = &new_mmc_jumper;
1934 for (; tmp4 < 30; tmp4++) {
1935 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1936 case 0: {
1937 modelica_integer tmp6;
1938 modelica_boolean tmp7;
1939 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((15 +3) & 255) << 2)))
== 0) goto tmp3_end;
1940 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
1941 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
1942 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
1943 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
1944 tmp6 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
1945 if (2 != tmp6) goto tmp3_end;
1946 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
1947 _exp1 = tmpMeta[2];
1948 _exp2 = tmpMeta[5];
1949 /* Pattern matching succeeded */
1950#line 429 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1951 /* Pattern-matching tuple assignment */
1952#line 429 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1953 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp1, _unit, _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
1954#line 429 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1955 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto goto_2;
1956#line 429 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1957 _unit1 = tmpMeta[7];
1958#line 429 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1959 _htCr2U = tmpMeta[2];
1960#line 429 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1961 _htS2U = tmpMeta[3];
1962#line 429 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1963 _htU2S = tmpMeta[4];
1964#line 429 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1965 _fnCache = tmpMeta[5];
1966#line 429 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1967 _icu1 = tmpMeta[6];
1968#line 1968 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1969
1970#line 431 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1971 _unit2 = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp2, _unit1, _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_icu2);
1972#line 1972 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1973
1974#line 433 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1975 /* Pattern-matching tuple assignment */
1976#line 433 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1977 tmp7 = omc_NFUnitCheck_unitTypesEqual(threadData, _unit1, _unit2, _htCr2U, &tmpMeta[2], &tmpMeta[3]);
1978#line 433 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1979 if (1 != tmp7) goto goto_2;
1980#line 433 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1981 _op_unit = tmpMeta[2];
1982#line 433 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1983 _htCr2U = tmpMeta[3];
1984#line 1984 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1985#line 434 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1986 tmpMeta[0+0] = _op_unit;
1987#line 434 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
1988 tmpMeta[0+1] = omc_List_append__reverse(threadData, _icu1, _icu2);
1989#line 1989 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
1990 goto tmp3_done;
1991 }
1992 case 1: {
1993 modelica_integer tmp8;
1994 modelica_boolean tmp9;
1995 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((15 +3) & 255) << 2)))
== 0) goto tmp3_end;
1996 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
1997 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
1998 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
1999 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
2000 tmp8 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
2001 if (2 != tmp8) goto tmp3_end;
2002 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
2003 _exp1 = tmpMeta[2];
2004 _exp2 = tmpMeta[5];
2005 /* Pattern matching succeeded */
2006#line 440 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2007 _unit2 = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp2, _unit, _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_icu1);
2008#line 2008 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2009
2010#line 442 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2011 _unit1 = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp1, _unit2, _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_icu2);
2012#line 2012 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2013
2014#line 444 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2015 /* Pattern-matching tuple assignment */
2016#line 444 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2017 tmp9 = omc_NFUnitCheck_unitTypesEqual(threadData, _unit1, _unit2, _htCr2U, &tmpMeta[2], &tmpMeta[3]);
2018#line 444 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2019 if (1 != tmp9) goto goto_2;
2020#line 444 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2021 _op_unit = tmpMeta[2];
2022#line 444 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2023 _htCr2U = tmpMeta[3];
2024#line 2024 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2025#line 445 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2026 tmpMeta[0+0] = _op_unit;
2027#line 445 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2028 tmpMeta[0+1] = omc_List_append__reverse(threadData, _icu1, _icu2);
2029#line 2029 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2030 goto tmp3_done;
2031 }
2032 case 2: {
2033 modelica_integer tmp10;
2034 modelica_boolean tmp11;
2035 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((15 +3) & 255) << 2)))
== 0) goto tmp3_end;
2036 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2037 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
2038 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2039 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
2040 tmp10 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
2041 if (2 != tmp10) goto tmp3_end;
2042 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
2043 _exp1 = tmpMeta[2];
2044 _exp2 = tmpMeta[5];
2045 /* Pattern matching succeeded */
2046#line 451 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2047 /* Pattern-matching tuple assignment */
2048#line 451 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2049 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp1, _unit, _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
2050#line 451 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2051 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto goto_2;
2052#line 451 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2053 _unit1 = tmpMeta[7];
2054#line 451 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2055 _htCr2U = tmpMeta[2];
2056#line 451 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2057 _htS2U = tmpMeta[3];
2058#line 451 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2059 _htU2S = tmpMeta[4];
2060#line 451 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2061 _fnCache = tmpMeta[5];
2062#line 451 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2063 _icu1 = tmpMeta[6];
2064#line 2064 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2065
2066#line 453 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2067 _unit2 = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp2, _unit1, _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_icu2);
2068#line 2068 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2069
2070#line 455 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2071 /* Pattern-matching tuple assignment */
2072#line 455 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2073 tmp11 = omc_NFUnitCheck_unitTypesEqual(threadData, _unit1, _unit2, _htCr2U, NULL((void*)0), NULL((void*)0));
2074#line 455 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2075 if (0 != tmp11) goto goto_2;
2076#line 2076 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2077#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2078 tmpMeta[4] = mmc_mk_box2(0, _exp1, _unit1);
2079#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2080 tmpMeta[5] = mmc_mk_box2(0, _exp2, _unit2);
2081#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2082 tmpMeta[3] = mmc_mk_cons(tmpMeta[4], mmc_mk_cons(tmpMeta[5], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))));
2083#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2084 tmpMeta[2] = mmc_mk_cons(tmpMeta[3], omc_List_append__reverse(threadData, _icu1, _icu2));
2085#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2086 tmpMeta[0+0] = _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3));
2087#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2088 tmpMeta[0+1] = tmpMeta[2];
2089#line 2089 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2090 goto tmp3_done;
2091 }
2092 case 3: {
2093 modelica_integer tmp12;
2094 modelica_boolean tmp13;
2095 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((15 +3) & 255) << 2)))
== 0) goto tmp3_end;
2096 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2097 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
2098 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2099 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
2100 tmp12 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
2101 if (2 != tmp12) goto tmp3_end;
2102 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
2103 _exp1 = tmpMeta[2];
2104 _exp2 = tmpMeta[5];
2105 tmp4 += 25; /* Pattern matching succeeded; we may skip some cases if we fail */
2106#line 462 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2107 _unit2 = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp2, _unit, _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_icu1);
2108#line 2108 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2109
2110#line 464 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2111 _unit1 = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp1, _unit2, _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_icu2);
2112#line 2112 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2113
2114#line 466 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2115 /* Pattern-matching tuple assignment */
2116#line 466 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2117 tmp13 = omc_NFUnitCheck_unitTypesEqual(threadData, _unit1, _unit2, _htCr2U, NULL((void*)0), NULL((void*)0));
2118#line 466 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2119 if (0 != tmp13) goto goto_2;
2120#line 2120 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2121#line 467 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2122 tmpMeta[4] = mmc_mk_box2(0, _exp1, _unit1);
2123#line 467 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2124 tmpMeta[5] = mmc_mk_box2(0, _exp2, _unit2);
2125#line 467 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2126 tmpMeta[3] = mmc_mk_cons(tmpMeta[4], mmc_mk_cons(tmpMeta[5], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))));
2127#line 467 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2128 tmpMeta[2] = mmc_mk_cons(tmpMeta[3], omc_List_append__reverse(threadData, _icu1, _icu2));
2129#line 467 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2130 tmpMeta[0+0] = _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3));
2131#line 467 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2132 tmpMeta[0+1] = tmpMeta[2];
2133#line 2133 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2134 goto tmp3_done;
2135 }
2136 case 4: {
2137 modelica_integer tmp14;
2138 modelica_boolean tmp15;
2139 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((15 +3) & 255) << 2)))
== 0) goto tmp3_end;
2140 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2141 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
2142 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2143 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
2144 tmp14 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
2145 if (1 != tmp14) goto tmp3_end;
2146 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
2147 _exp1 = tmpMeta[2];
2148 _exp2 = tmpMeta[5];
2149 /* Pattern matching succeeded */
2150#line 473 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2151 /* Pattern-matching tuple assignment */
2152#line 473 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2153 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp1, _unit, _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
2154#line 473 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2155 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto goto_2;
2156#line 473 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2157 _unit1 = tmpMeta[7];
2158#line 473 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2159 _htCr2U = tmpMeta[2];
2160#line 473 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2161 _htS2U = tmpMeta[3];
2162#line 473 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2163 _htU2S = tmpMeta[4];
2164#line 473 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2165 _fnCache = tmpMeta[5];
2166#line 473 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2167 _icu1 = tmpMeta[6];
2168#line 2168 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2169
2170#line 475 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2171 _unit2 = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp2, _unit1, _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_icu2);
2172#line 2172 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2173
2174#line 477 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2175 /* Pattern-matching tuple assignment */
2176#line 477 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2177 tmp15 = omc_NFUnitCheck_unitTypesEqual(threadData, _unit1, _unit2, _htCr2U, &tmpMeta[2], &tmpMeta[3]);
2178#line 477 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2179 if (1 != tmp15) goto goto_2;
2180#line 477 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2181 _op_unit = tmpMeta[2];
2182#line 477 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2183 _htCr2U = tmpMeta[3];
2184#line 2184 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2185#line 478 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2186 tmpMeta[0+0] = _op_unit;
2187#line 478 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2188 tmpMeta[0+1] = omc_List_append__reverse(threadData, _icu1, _icu2);
2189#line 2189 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2190 goto tmp3_done;
2191 }
2192 case 5: {
2193 modelica_integer tmp16;
2194 modelica_boolean tmp17;
2195 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((15 +3) & 255) << 2)))
== 0) goto tmp3_end;
2196 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2197 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
2198 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2199 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
2200 tmp16 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
2201 if (1 != tmp16) goto tmp3_end;
2202 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
2203 _exp1 = tmpMeta[2];
2204 _exp2 = tmpMeta[5];
2205 /* Pattern matching succeeded */
2206#line 484 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2207 _unit2 = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp2, _unit, _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_icu1);
2208#line 2208 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2209
2210#line 486 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2211 _unit1 = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp1, _unit2, _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_icu2);
2212#line 2212 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2213
2214#line 488 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2215 /* Pattern-matching tuple assignment */
2216#line 488 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2217 tmp17 = omc_NFUnitCheck_unitTypesEqual(threadData, _unit1, _unit2, _htCr2U, &tmpMeta[2], &tmpMeta[3]);
2218#line 488 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2219 if (1 != tmp17) goto goto_2;
2220#line 488 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2221 _op_unit = tmpMeta[2];
2222#line 488 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2223 _htCr2U = tmpMeta[3];
2224#line 2224 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2225#line 489 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2226 tmpMeta[0+0] = _op_unit;
2227#line 489 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2228 tmpMeta[0+1] = omc_List_append__reverse(threadData, _icu1, _icu2);
2229#line 2229 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2230 goto tmp3_done;
2231 }
2232 case 6: {
2233 modelica_integer tmp18;
2234 modelica_boolean tmp19;
2235 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((15 +3) & 255) << 2)))
== 0) goto tmp3_end;
2236 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2237 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
2238 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2239 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
2240 tmp18 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
2241 if (1 != tmp18) goto tmp3_end;
2242 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
2243 _exp1 = tmpMeta[2];
2244 _exp2 = tmpMeta[5];
2245 /* Pattern matching succeeded */
2246#line 495 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2247 /* Pattern-matching tuple assignment */
2248#line 495 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2249 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp1, _unit, _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
2250#line 495 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2251 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto goto_2;
2252#line 495 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2253 _unit1 = tmpMeta[7];
2254#line 495 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2255 _htCr2U = tmpMeta[2];
2256#line 495 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2257 _htS2U = tmpMeta[3];
2258#line 495 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2259 _htU2S = tmpMeta[4];
2260#line 495 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2261 _fnCache = tmpMeta[5];
2262#line 495 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2263 _icu1 = tmpMeta[6];
2264#line 2264 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2265
2266#line 497 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2267 _unit2 = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp2, _unit1, _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_icu2);
2268#line 2268 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2269
2270#line 499 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2271 /* Pattern-matching tuple assignment */
2272#line 499 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2273 tmp19 = omc_NFUnitCheck_unitTypesEqual(threadData, _unit1, _unit2, _htCr2U, NULL((void*)0), NULL((void*)0));
2274#line 499 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2275 if (0 != tmp19) goto goto_2;
2276#line 2276 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2277#line 500 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2278 tmpMeta[4] = mmc_mk_box2(0, _exp1, _unit1);
2279#line 500 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2280 tmpMeta[5] = mmc_mk_box2(0, _exp2, _unit2);
2281#line 500 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2282 tmpMeta[3] = mmc_mk_cons(tmpMeta[4], mmc_mk_cons(tmpMeta[5], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))));
2283#line 500 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2284 tmpMeta[2] = mmc_mk_cons(tmpMeta[3], omc_List_append__reverse(threadData, _icu1, _icu2));
2285#line 500 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2286 tmpMeta[0+0] = _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3));
2287#line 500 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2288 tmpMeta[0+1] = tmpMeta[2];
2289#line 2289 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2290 goto tmp3_done;
2291 }
2292 case 7: {
2293 modelica_integer tmp20;
2294 modelica_boolean tmp21;
2295 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((15 +3) & 255) << 2)))
== 0) goto tmp3_end;
2296 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2297 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
2298 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2299 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
2300 tmp20 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
2301 if (1 != tmp20) goto tmp3_end;
2302 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
2303 _exp1 = tmpMeta[2];
2304 _exp2 = tmpMeta[5];
2305 tmp4 += 21; /* Pattern matching succeeded; we may skip some cases if we fail */
2306#line 506 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2307 _unit2 = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp2, _unit, _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_icu1);
2308#line 2308 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2309
2310#line 508 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2311 _unit1 = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp1, _unit2, _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_icu2);
2312#line 2312 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2313
2314#line 510 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2315 /* Pattern-matching tuple assignment */
2316#line 510 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2317 tmp21 = omc_NFUnitCheck_unitTypesEqual(threadData, _unit1, _unit2, _htCr2U, NULL((void*)0), NULL((void*)0));
2318#line 510 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2319 if (0 != tmp21) goto goto_2;
2320#line 2320 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2321#line 511 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2322 tmpMeta[4] = mmc_mk_box2(0, _exp1, _unit1);
2323#line 511 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2324 tmpMeta[5] = mmc_mk_box2(0, _exp2, _unit2);
2325#line 511 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2326 tmpMeta[3] = mmc_mk_cons(tmpMeta[4], mmc_mk_cons(tmpMeta[5], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))));
2327#line 511 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2328 tmpMeta[2] = mmc_mk_cons(tmpMeta[3], omc_List_append__reverse(threadData, _icu1, _icu2));
2329#line 511 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2330 tmpMeta[0+0] = _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3));
2331#line 511 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2332 tmpMeta[0+1] = tmpMeta[2];
2333#line 2333 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2334 goto tmp3_done;
2335 }
2336 case 8: {
2337 modelica_integer tmp22;
2338 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((15 +3) & 255) << 2)))
== 0) goto tmp3_end;
2339 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2340 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
2341 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2342 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
2343 tmp22 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
2344 if (3 != tmp22) goto tmp3_end;
2345 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
2346 _exp1 = tmpMeta[2];
2347 _exp2 = tmpMeta[5];
2348 /* Pattern matching succeeded */
2349#line 517 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2350 /* Pattern-matching tuple assignment */
2351#line 517 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2352 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp1, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
2353#line 517 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2354 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto goto_2;
2355#line 517 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2356 _unit1 = tmpMeta[7];
2357#line 517 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2358 _htCr2U = tmpMeta[2];
2359#line 517 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2360 _htS2U = tmpMeta[3];
2361#line 517 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2362 _htU2S = tmpMeta[4];
2363#line 517 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2364 _fnCache = tmpMeta[5];
2365#line 517 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2366 _icu1 = tmpMeta[6];
2367#line 2367 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2368
2369#line 519 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2370 /* Pattern-matching tuple assignment */
2371#line 519 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2372 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp2, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
2373#line 519 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2374 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto goto_2;
2375#line 519 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2376 _unit2 = tmpMeta[7];
2377#line 519 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2378 _htCr2U = tmpMeta[2];
2379#line 519 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2380 _htS2U = tmpMeta[3];
2381#line 519 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2382 _htU2S = tmpMeta[4];
2383#line 519 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2384 _fnCache = tmpMeta[5];
2385#line 519 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2386 _icu2 = tmpMeta[6];
2387#line 2387 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2388
2389#line 521 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2390 _op_unit = omc_NFUnit_unitMul(threadData, _unit1, _unit2);
2391#line 2391 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2392
2393#line 522 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2394 _htS2U = omc_NFUnitCheck_insertUnitString(threadData, _op_unit, _htS2U, _htU2S ,&_htU2S);
2395#line 2395 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2396#line 523 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2397 tmpMeta[0+0] = _op_unit;
2398#line 523 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2399 tmpMeta[0+1] = omc_List_append__reverse(threadData, _icu1, _icu2);
2400#line 2400 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2401 goto tmp3_done;
2402 }
2403 case 9: {
2404 modelica_integer tmp23;
2405 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((15 +3) & 255) << 2)))
== 0) goto tmp3_end;
2406 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2407 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
2408 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2409 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
2410 tmp23 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
2411 if (3 != tmp23) goto tmp3_end;
2412 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
2413 _exp1 = tmpMeta[2];
2414 _exp2 = tmpMeta[5];
2415 /* Pattern matching succeeded */
2416 /* Check guard condition after assignments */
2417 if (!omc_NFUnit_isMaster(threadData, _unit)) goto tmp3_end;
2418#line 529 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2419 /* Pattern-matching tuple assignment */
2420#line 529 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2421 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp1, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
2422#line 529 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2423 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto goto_2;
2424#line 529 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2425 _htCr2U = tmpMeta[2];
2426#line 529 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2427 _htS2U = tmpMeta[3];
2428#line 529 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2429 _htU2S = tmpMeta[4];
2430#line 529 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2431 _fnCache = tmpMeta[5];
2432#line 529 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2433 _icu1 = tmpMeta[6];
2434#line 2434 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2435
2436#line 531 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2437 /* Pattern-matching tuple assignment */
2438#line 531 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2439 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp2, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
2440#line 531 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2441 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto goto_2;
2442#line 531 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2443 _htCr2U = tmpMeta[2];
2444#line 531 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2445 _htS2U = tmpMeta[3];
2446#line 531 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2447 _htU2S = tmpMeta[4];
2448#line 531 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2449 _fnCache = tmpMeta[5];
2450#line 531 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2451 _icu2 = tmpMeta[6];
2452#line 2452 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2453#line 533 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2454 tmpMeta[0+0] = _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3));
2455#line 533 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2456 tmpMeta[0+1] = omc_List_append__reverse(threadData, _icu1, _icu2);
2457#line 2457 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2458 goto tmp3_done;
2459 }
2460 case 10: {
2461 modelica_integer tmp24;
2462 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((15 +3) & 255) << 2)))
== 0) goto tmp3_end;
2463 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2464 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
2465 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2466 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
2467 tmp24 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
2468 if (3 != tmp24) goto tmp3_end;
2469 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
2470 _exp1 = tmpMeta[2];
2471 _exp2 = tmpMeta[5];
2472 /* Pattern matching succeeded */
2473 /* Check guard condition after assignments */
2474 if (!omc_NFUnit_isUnit(threadData, _unit)) goto tmp3_end;
2475#line 539 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2476 /* Pattern-matching tuple assignment */
2477#line 539 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2478 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp1, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
2479#line 539 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2480 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto goto_2;
2481#line 539 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2482 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[7]) - 3
))) + (2)))))
;
2483#line 539 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2484 _vars = tmpMeta[8];
2485#line 539 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2486 _htCr2U = tmpMeta[2];
2487#line 539 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2488 _htS2U = tmpMeta[3];
2489#line 539 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2490 _htU2S = tmpMeta[4];
2491#line 539 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2492 _fnCache = tmpMeta[5];
2493#line 539 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2494 _icu1 = tmpMeta[6];
2495#line 2495 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2496
2497#line 541 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2498 /* Pattern-matching tuple assignment */
2499#line 541 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2500 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp2, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
2501#line 541 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2502 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto goto_2;
2503#line 541 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2504 _unit2 = tmpMeta[7];
2505#line 541 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2506 _htCr2U = tmpMeta[2];
2507#line 541 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2508 _htS2U = tmpMeta[3];
2509#line 541 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2510 _htU2S = tmpMeta[4];
2511#line 541 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2512 _fnCache = tmpMeta[5];
2513#line 541 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2514 _icu2 = tmpMeta[6];
2515#line 2515 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2516
2517#line 543 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2518 _op_unit = omc_NFUnit_unitDiv(threadData, _unit, _unit2);
2519#line 2519 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2520
2521#line 544 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2522 _htCr2U = omc_List_fold1(threadData, _vars, boxvar_NFUnitCheck_updateHtCr2U((void*)((char*)(&(boxvar_lit_NFUnitCheck_updateHtCr2U).header
) + 3))
, _op_unit, _htCr2U);
2523#line 2523 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2524
2525#line 545 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2526 _htS2U = omc_NFUnitCheck_insertUnitString(threadData, _op_unit, _htS2U, _htU2S ,&_htU2S);
2527#line 2527 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2528#line 546 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2529 tmpMeta[0+0] = _unit;
2530#line 546 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2531 tmpMeta[0+1] = omc_List_append__reverse(threadData, _icu1, _icu2);
2532#line 2532 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2533 goto tmp3_done;
2534 }
2535 case 11: {
2536 modelica_integer tmp25;
2537 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((15 +3) & 255) << 2)))
== 0) goto tmp3_end;
2538 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2539 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
2540 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2541 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
2542 tmp25 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
2543 if (3 != tmp25) goto tmp3_end;
2544 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
2545 _exp1 = tmpMeta[2];
2546 _exp2 = tmpMeta[5];
2547 /* Pattern matching succeeded */
2548 /* Check guard condition after assignments */
2549 if (!omc_NFUnit_isMaster(threadData, _unit)) goto tmp3_end;
2550#line 552 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2551 /* Pattern-matching tuple assignment */
2552#line 552 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2553 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp1, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
2554#line 552 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2555 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto goto_2;
2556#line 552 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2557 _htCr2U = tmpMeta[2];
2558#line 552 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2559 _htS2U = tmpMeta[3];
2560#line 552 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2561 _htU2S = tmpMeta[4];
2562#line 552 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2563 _fnCache = tmpMeta[5];
2564#line 552 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2565 _icu1 = tmpMeta[6];
2566#line 2566 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2567
2568#line 554 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2569 /* Pattern-matching tuple assignment */
2570#line 554 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2571 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp2, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
2572#line 554 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2573 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto goto_2;
2574#line 554 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2575 _htCr2U = tmpMeta[2];
2576#line 554 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2577 _htS2U = tmpMeta[3];
2578#line 554 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2579 _htU2S = tmpMeta[4];
2580#line 554 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2581 _fnCache = tmpMeta[5];
2582#line 554 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2583 _icu2 = tmpMeta[6];
2584#line 2584 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2585#line 556 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2586 tmpMeta[0+0] = _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3));
2587#line 556 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2588 tmpMeta[0+1] = omc_List_append__reverse(threadData, _icu1, _icu2);
2589#line 2589 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2590 goto tmp3_done;
2591 }
2592 case 12: {
2593 modelica_integer tmp26;
2594 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((15 +3) & 255) << 2)))
== 0) goto tmp3_end;
2595 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2596 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
2597 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2598 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
2599 tmp26 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
2600 if (3 != tmp26) goto tmp3_end;
2601 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
2602 _exp1 = tmpMeta[2];
2603 _exp2 = tmpMeta[5];
2604 /* Pattern matching succeeded */
2605 /* Check guard condition after assignments */
2606 if (!omc_NFUnit_isUnit(threadData, _unit)) goto tmp3_end;
2607#line 562 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2608 /* Pattern-matching tuple assignment */
2609#line 562 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2610 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp1, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
2611#line 562 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2612 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto goto_2;
2613#line 562 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2614 _unit2 = tmpMeta[7];
2615#line 562 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2616 _htCr2U = tmpMeta[2];
2617#line 562 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2618 _htS2U = tmpMeta[3];
2619#line 562 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2620 _htU2S = tmpMeta[4];
2621#line 562 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2622 _fnCache = tmpMeta[5];
2623#line 562 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2624 _icu1 = tmpMeta[6];
2625#line 2625 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2626
2627#line 564 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2628 /* Pattern-matching tuple assignment */
2629#line 564 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2630 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp2, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
2631#line 564 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2632 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto goto_2;
2633#line 564 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2634 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[7]) - 3
))) + (2)))))
;
2635#line 564 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2636 _vars = tmpMeta[8];
2637#line 564 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2638 _htCr2U = tmpMeta[2];
2639#line 564 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2640 _htS2U = tmpMeta[3];
2641#line 564 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2642 _htU2S = tmpMeta[4];
2643#line 564 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2644 _fnCache = tmpMeta[5];
2645#line 564 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2646 _icu2 = tmpMeta[6];
2647#line 2647 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2648
2649#line 566 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2650 _op_unit = omc_NFUnit_unitDiv(threadData, _unit, _unit2);
2651#line 2651 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2652
2653#line 567 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2654 _htCr2U = omc_List_fold1(threadData, _vars, boxvar_NFUnitCheck_updateHtCr2U((void*)((char*)(&(boxvar_lit_NFUnitCheck_updateHtCr2U).header
) + 3))
, _op_unit, _htCr2U);
2655#line 2655 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2656
2657#line 568 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2658 _htS2U = omc_NFUnitCheck_insertUnitString(threadData, _op_unit, _htS2U, _htU2S ,&_htU2S);
2659#line 2659 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2660#line 569 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2661 tmpMeta[0+0] = _unit;
2662#line 569 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2663 tmpMeta[0+1] = omc_List_append__reverse(threadData, _icu1, _icu2);
2664#line 2664 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2665 goto tmp3_done;
2666 }
2667 case 13: {
2668 modelica_integer tmp27;
2669 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((15 +3) & 255) << 2)))
== 0) goto tmp3_end;
2670 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2671 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
2672 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2673 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
2674 tmp27 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
2675 if (3 != tmp27) goto tmp3_end;
2676 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
2677 _exp1 = tmpMeta[2];
2678 _exp2 = tmpMeta[5];
2679 tmp4 += 15; /* Pattern matching succeeded; we may skip some cases if we fail */
2680#line 574 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2681 /* Pattern-matching tuple assignment */
2682#line 574 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2683 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp1, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
2684#line 574 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2685 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto goto_2;
2686#line 574 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2687 _htCr2U = tmpMeta[2];
2688#line 574 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2689 _htS2U = tmpMeta[3];
2690#line 574 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2691 _htU2S = tmpMeta[4];
2692#line 574 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2693 _fnCache = tmpMeta[5];
2694#line 574 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2695 _icu1 = tmpMeta[6];
2696#line 2696 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2697
2698#line 576 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2699 /* Pattern-matching tuple assignment */
2700#line 576 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2701 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp2, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
2702#line 576 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2703 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto goto_2;
2704#line 576 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2705 _htCr2U = tmpMeta[2];
2706#line 576 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2707 _htS2U = tmpMeta[3];
2708#line 576 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2709 _htU2S = tmpMeta[4];
2710#line 576 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2711 _fnCache = tmpMeta[5];
2712#line 576 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2713 _icu2 = tmpMeta[6];
2714#line 2714 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2715#line 578 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2716 tmpMeta[0+0] = _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3));
2717#line 578 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2718 tmpMeta[0+1] = omc_List_append__reverse(threadData, _icu1, _icu2);
2719#line 2719 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2720 goto tmp3_done;
2721 }
2722 case 14: {
2723 modelica_integer tmp28;
2724 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((15 +3) & 255) << 2)))
== 0) goto tmp3_end;
2725 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2726 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
2727 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2728 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
2729 tmp28 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
2730 if (4 != tmp28) goto tmp3_end;
2731 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
2732 _exp1 = tmpMeta[2];
2733 _exp2 = tmpMeta[5];
2734 /* Pattern matching succeeded */
2735#line 584 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2736 /* Pattern-matching tuple assignment */
2737#line 584 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2738 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp1, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
2739#line 584 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2740 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto goto_2;
2741#line 584 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2742 _unit1 = tmpMeta[7];
2743#line 584 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2744 _htCr2U = tmpMeta[2];
2745#line 584 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2746 _htS2U = tmpMeta[3];
2747#line 584 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2748 _htU2S = tmpMeta[4];
2749#line 584 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2750 _fnCache = tmpMeta[5];
2751#line 584 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2752 _icu1 = tmpMeta[6];
2753#line 2753 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2754
2755#line 586 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2756 /* Pattern-matching tuple assignment */
2757#line 586 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2758 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp2, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
2759#line 586 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2760 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto goto_2;
2761#line 586 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2762 _unit2 = tmpMeta[7];
2763#line 586 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2764 _htCr2U = tmpMeta[2];
2765#line 586 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2766 _htS2U = tmpMeta[3];
2767#line 586 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2768 _htU2S = tmpMeta[4];
2769#line 586 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2770 _fnCache = tmpMeta[5];
2771#line 586 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2772 _icu2 = tmpMeta[6];
2773#line 2773 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2774
2775#line 588 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2776 _op_unit = omc_NFUnit_unitDiv(threadData, _unit1, _unit2);
2777#line 2777 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2778
2779#line 589 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2780 _htS2U = omc_NFUnitCheck_insertUnitString(threadData, _op_unit, _htS2U, _htU2S ,&_htU2S);
2781#line 2781 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2782#line 590 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2783 tmpMeta[0+0] = _op_unit;
2784#line 590 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2785 tmpMeta[0+1] = omc_List_append__reverse(threadData, _icu1, _icu2);
2786#line 2786 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2787 goto tmp3_done;
2788 }
2789 case 15: {
2790 modelica_integer tmp29;
2791 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((15 +3) & 255) << 2)))
== 0) goto tmp3_end;
2792 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2793 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
2794 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2795 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
2796 tmp29 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
2797 if (4 != tmp29) goto tmp3_end;
2798 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
2799 _exp1 = tmpMeta[2];
2800 _exp2 = tmpMeta[5];
2801 /* Pattern matching succeeded */
2802 /* Check guard condition after assignments */
2803 if (!omc_NFUnit_isMaster(threadData, _unit)) goto tmp3_end;
2804#line 596 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2805 /* Pattern-matching tuple assignment */
2806#line 596 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2807 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp1, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
2808#line 596 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2809 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto goto_2;
2810#line 596 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2811 _htCr2U = tmpMeta[2];
2812#line 596 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2813 _htS2U = tmpMeta[3];
2814#line 596 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2815 _htU2S = tmpMeta[4];
2816#line 596 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2817 _fnCache = tmpMeta[5];
2818#line 596 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2819 _icu1 = tmpMeta[6];
2820#line 2820 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2821
2822#line 598 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2823 /* Pattern-matching tuple assignment */
2824#line 598 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2825 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp2, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
2826#line 598 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2827 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto goto_2;
2828#line 598 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2829 _htCr2U = tmpMeta[2];
2830#line 598 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2831 _htS2U = tmpMeta[3];
2832#line 598 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2833 _htU2S = tmpMeta[4];
2834#line 598 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2835 _fnCache = tmpMeta[5];
2836#line 598 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2837 _icu2 = tmpMeta[6];
2838#line 2838 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2839
2840#line 600 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2841 _inconsistentUnits = omc_List_append__reverse(threadData, _icu1, _icu2);
Value stored to '_inconsistentUnits' is never read
2842#line 2842 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2843#line 601 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2844 tmpMeta[0+0] = _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3));
2845#line 601 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2846 tmpMeta[0+1] = omc_List_append__reverse(threadData, _icu1, _icu2);
2847#line 2847 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2848 goto tmp3_done;
2849 }
2850 case 16: {
2851 modelica_integer tmp30;
2852 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((15 +3) & 255) << 2)))
== 0) goto tmp3_end;
2853 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2854 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
2855 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2856 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
2857 tmp30 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
2858 if (4 != tmp30) goto tmp3_end;
2859 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
2860 _exp1 = tmpMeta[2];
2861 _exp2 = tmpMeta[5];
2862 /* Pattern matching succeeded */
2863 /* Check guard condition after assignments */
2864 if (!omc_NFUnit_isUnit(threadData, _unit)) goto tmp3_end;
2865#line 607 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2866 /* Pattern-matching tuple assignment */
2867#line 607 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2868 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp1, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
2869#line 607 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2870 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto goto_2;
2871#line 607 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2872 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[7]) - 3
))) + (2)))))
;
2873#line 607 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2874 _vars = tmpMeta[8];
2875#line 607 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2876 _htCr2U = tmpMeta[2];
2877#line 607 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2878 _htS2U = tmpMeta[3];
2879#line 607 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2880 _htU2S = tmpMeta[4];
2881#line 607 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2882 _fnCache = tmpMeta[5];
2883#line 607 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2884 _icu1 = tmpMeta[6];
2885#line 2885 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2886
2887#line 609 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2888 /* Pattern-matching tuple assignment */
2889#line 609 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2890 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp2, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
2891#line 609 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2892 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto goto_2;
2893#line 609 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2894 _unit2 = tmpMeta[7];
2895#line 609 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2896 _htCr2U = tmpMeta[2];
2897#line 609 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2898 _htS2U = tmpMeta[3];
2899#line 609 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2900 _htU2S = tmpMeta[4];
2901#line 609 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2902 _fnCache = tmpMeta[5];
2903#line 609 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2904 _icu2 = tmpMeta[6];
2905#line 2905 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2906
2907#line 611 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2908 _op_unit = omc_NFUnit_unitMul(threadData, _unit, _unit2);
2909#line 2909 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2910
2911#line 612 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2912 _htCr2U = omc_List_fold1(threadData, _vars, boxvar_NFUnitCheck_updateHtCr2U((void*)((char*)(&(boxvar_lit_NFUnitCheck_updateHtCr2U).header
) + 3))
, _op_unit, _htCr2U);
2913#line 2913 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2914
2915#line 613 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2916 _htS2U = omc_NFUnitCheck_insertUnitString(threadData, _op_unit, _htS2U, _htU2S ,&_htU2S);
2917#line 2917 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2918#line 614 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2919 tmpMeta[0+0] = _unit;
2920#line 614 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2921 tmpMeta[0+1] = omc_List_append__reverse(threadData, _icu1, _icu2);
2922#line 2922 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2923 goto tmp3_done;
2924 }
2925 case 17: {
2926 modelica_integer tmp31;
2927 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((15 +3) & 255) << 2)))
== 0) goto tmp3_end;
2928 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2929 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
2930 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2931 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
2932 tmp31 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
2933 if (4 != tmp31) goto tmp3_end;
2934 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
2935 _exp1 = tmpMeta[2];
2936 _exp2 = tmpMeta[5];
2937 /* Pattern matching succeeded */
2938 /* Check guard condition after assignments */
2939 if (!omc_NFUnit_isMaster(threadData, _unit)) goto tmp3_end;
2940#line 620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2941 /* Pattern-matching tuple assignment */
2942#line 620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2943 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp1, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
2944#line 620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2945 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto goto_2;
2946#line 620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2947 _htCr2U = tmpMeta[2];
2948#line 620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2949 _htS2U = tmpMeta[3];
2950#line 620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2951 _htU2S = tmpMeta[4];
2952#line 620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2953 _fnCache = tmpMeta[5];
2954#line 620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2955 _icu1 = tmpMeta[6];
2956#line 2956 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2957
2958#line 622 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2959 /* Pattern-matching tuple assignment */
2960#line 622 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2961 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp2, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
2962#line 622 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2963 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto goto_2;
2964#line 622 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2965 _htCr2U = tmpMeta[2];
2966#line 622 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2967 _htS2U = tmpMeta[3];
2968#line 622 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2969 _htU2S = tmpMeta[4];
2970#line 622 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2971 _fnCache = tmpMeta[5];
2972#line 622 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2973 _icu2 = tmpMeta[6];
2974#line 2974 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2975#line 624 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2976 tmpMeta[0+0] = _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3));
2977#line 624 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2978 tmpMeta[0+1] = omc_List_append__reverse(threadData, _icu1, _icu2);
2979#line 2979 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
2980 goto tmp3_done;
2981 }
2982 case 18: {
2983 modelica_integer tmp32;
2984 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((15 +3) & 255) << 2)))
== 0) goto tmp3_end;
2985 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2986 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
2987 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2988 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
2989 tmp32 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
2990 if (4 != tmp32) goto tmp3_end;
2991 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
2992 _exp1 = tmpMeta[2];
2993 _exp2 = tmpMeta[5];
2994 /* Pattern matching succeeded */
2995 /* Check guard condition after assignments */
2996 if (!omc_NFUnit_isUnit(threadData, _unit)) goto tmp3_end;
2997#line 630 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
2998 /* Pattern-matching tuple assignment */
2999#line 630 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3000 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp1, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
3001#line 630 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3002 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto goto_2;
3003#line 630 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3004 _unit2 = tmpMeta[7];
3005#line 630 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3006 _htCr2U = tmpMeta[2];
3007#line 630 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3008 _htS2U = tmpMeta[3];
3009#line 630 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3010 _htU2S = tmpMeta[4];
3011#line 630 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3012 _fnCache = tmpMeta[5];
3013#line 630 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3014 _icu1 = tmpMeta[6];
3015#line 3015 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3016
3017#line 632 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3018 /* Pattern-matching tuple assignment */
3019#line 632 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3020 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp2, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
3021#line 632 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3022 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto goto_2;
3023#line 632 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3024 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[7]) - 3
))) + (2)))))
;
3025#line 632 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3026 _vars = tmpMeta[8];
3027#line 632 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3028 _htCr2U = tmpMeta[2];
3029#line 632 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3030 _htS2U = tmpMeta[3];
3031#line 632 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3032 _htU2S = tmpMeta[4];
3033#line 632 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3034 _fnCache = tmpMeta[5];
3035#line 632 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3036 _icu2 = tmpMeta[6];
3037#line 3037 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3038
3039#line 634 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3040 _op_unit = omc_NFUnit_unitDiv(threadData, _unit2, _unit);
3041#line 3041 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3042
3043#line 635 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3044 _htCr2U = omc_List_fold1(threadData, _vars, boxvar_NFUnitCheck_updateHtCr2U((void*)((char*)(&(boxvar_lit_NFUnitCheck_updateHtCr2U).header
) + 3))
, _op_unit, _htCr2U);
3045#line 3045 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3046
3047#line 636 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3048 _htS2U = omc_NFUnitCheck_insertUnitString(threadData, _op_unit, _htS2U, _htU2S ,&_htU2S);
3049#line 3049 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3050#line 637 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3051 tmpMeta[0+0] = _unit;
3052#line 637 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3053 tmpMeta[0+1] = omc_List_append__reverse(threadData, _icu1, _icu2);
3054#line 3054 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3055 goto tmp3_done;
3056 }
3057 case 19: {
3058 modelica_integer tmp33;
3059 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((15 +3) & 255) << 2)))
== 0) goto tmp3_end;
3060 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3061 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
3062 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
3063 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
3064 tmp33 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
3065 if (4 != tmp33) goto tmp3_end;
3066 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
3067 _exp1 = tmpMeta[2];
3068 _exp2 = tmpMeta[5];
3069 tmp4 += 9; /* Pattern matching succeeded; we may skip some cases if we fail */
3070#line 642 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3071 /* Pattern-matching tuple assignment */
3072#line 642 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3073 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp1, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
3074#line 642 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3075 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto goto_2;
3076#line 642 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3077 _htCr2U = tmpMeta[2];
3078#line 642 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3079 _htS2U = tmpMeta[3];
3080#line 642 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3081 _htU2S = tmpMeta[4];
3082#line 642 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3083 _fnCache = tmpMeta[5];
3084#line 642 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3085 _icu1 = tmpMeta[6];
3086#line 3086 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3087
3088#line 644 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3089 /* Pattern-matching tuple assignment */
3090#line 644 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3091 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp2, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
3092#line 644 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3093 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto goto_2;
3094#line 644 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3095 _htCr2U = tmpMeta[2];
3096#line 644 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3097 _htS2U = tmpMeta[3];
3098#line 644 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3099 _htU2S = tmpMeta[4];
3100#line 644 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3101 _fnCache = tmpMeta[5];
3102#line 644 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3103 _icu2 = tmpMeta[6];
3104#line 3104 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3105#line 646 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3106 tmpMeta[0+0] = _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3));
3107#line 646 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3108 tmpMeta[0+1] = omc_List_append__reverse(threadData, _icu1, _icu2);
3109#line 3109 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3110 goto tmp3_done;
3111 }
3112 case 20: {
3113 modelica_integer tmp34;
3114 modelica_boolean tmp35;
3115 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((15 +3) & 255) << 2)))
== 0) goto tmp3_end;
3116 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3117 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
3118 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
3119 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
3120 tmp34 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
3121 if (5 != tmp34) goto tmp3_end;
3122 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
3123 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[5],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
3124
3125 _exp1 = tmpMeta[2];
3126 _exp2 = tmpMeta[5];
3127 /* Pattern matching succeeded */
3128#line 652 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3129 /* Pattern-matching tuple assignment */
3130#line 652 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3131 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp1, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
3132#line 652 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3133 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto goto_2;
3134#line 652 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3135 _htCr2U = tmpMeta[2];
3136#line 652 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3137 _htS2U = tmpMeta[3];
3138#line 652 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3139 _htU2S = tmpMeta[4];
3140#line 652 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3141 _fnCache = tmpMeta[5];
3142#line 652 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3143 _icu1 = tmpMeta[6];
3144#line 3144 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3145
3146#line 654 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3147 _i = ((modelica_integer)floor(mmc_unbox_real((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_exp2), 2))))mmc_prim_get_real(((*(void**)(((void*)((void**)(((void*)((char
*)(_exp2) - 3))) + (2)))))))
));
3148#line 3148 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3149
3150#line 655 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3151 /* Pattern-matching assignment */
3152#line 655 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3153 tmp35 = (mmc_unbox_real((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_exp2), 2))))mmc_prim_get_real(((*(void**)(((void*)((void**)(((void*)((char
*)(_exp2) - 3))) + (2)))))))
== ((modelica_real)_i));
3154#line 655 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3155 if (1 != tmp35) goto goto_2;
3156#line 3156 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3157
3158#line 656 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3159 _op_unit = omc_NFUnit_unitPow(threadData, _unit, _i);
3160#line 3160 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3161
3162#line 657 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3163 _htS2U = omc_NFUnitCheck_insertUnitString(threadData, _op_unit, _htS2U, _htU2S ,&_htU2S);
3164#line 3164 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3165#line 658 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3166 tmpMeta[0+0] = _op_unit;
3167#line 658 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3168 tmpMeta[0+1] = _icu1;
3169#line 3169 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3170 goto tmp3_done;
3171 }
3172 case 21: {
3173 modelica_integer tmp36;
3174 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((15 +3) & 255) << 2)))
== 0) goto tmp3_end;
3175 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3176 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
3177 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
3178 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
3179 tmp36 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
3180 if (5 != tmp36) goto tmp3_end;
3181 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
3182 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[5],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
3183
3184 _exp1 = tmpMeta[2];
3185 _exp2 = tmpMeta[5];
3186 /* Pattern matching succeeded */
3187 /* Check guard condition after assignments */
3188 if (!omc_NFUnit_isUnit(threadData, _unit)) goto tmp3_end;
3189#line 664 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3190 /* Pattern-matching tuple assignment */
3191#line 664 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3192 tmpMeta[7] = omc_NFUnitCheck_insertUnitInEquation(threadData, _exp1, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], &tmpMeta[5], &tmpMeta[6]);
3193#line 664 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3194 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto goto_2;
3195#line 664 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3196 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[7]) - 3
))) + (2)))))
;
3197#line 664 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3198 _vars = tmpMeta[8];
3199#line 664 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3200 _htCr2U = tmpMeta[2];
3201#line 664 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3202 _htS2U = tmpMeta[3];
3203#line 664 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3204 _htU2S = tmpMeta[4];
3205#line 664 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3206 _fnCache = tmpMeta[5];
3207#line 664 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3208 _icu1 = tmpMeta[6];
3209#line 3209 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3210
3211#line 666 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3212 _op_unit = omc_NFUnit_unitRoot(threadData, _unit, mmc_unbox_real((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_exp2), 2))))mmc_prim_get_real(((*(void**)(((void*)((void**)(((void*)((char
*)(_exp2) - 3))) + (2)))))))
);
3213#line 3213 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3214
3215#line 667 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3216 _htCr2U = omc_List_fold1(threadData, _vars, boxvar_NFUnitCheck_updateHtCr2U((void*)((char*)(&(boxvar_lit_NFUnitCheck_updateHtCr2U).header
) + 3))
, _op_unit, _htCr2U);
3217#line 3217 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3218
3219#line 668 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3220 _htS2U = omc_NFUnitCheck_insertUnitString(threadData, _op_unit, _htS2U, _htU2S ,&_htU2S);
3221#line 3221 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3222#line 669 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3223 tmpMeta[0+0] = _unit;
3224#line 669 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3225 tmpMeta[0+1] = _icu1;
3226#line 3226 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3227 goto tmp3_done;
3228 }
3229 case 22: {
3230 modelica_integer tmp37;
3231 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((15 +3) & 255) << 2)))
== 0) goto tmp3_end;
3232 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3233 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
3234 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
3235 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
3236 tmp37 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
3237 if (5 != tmp37) goto tmp3_end;
3238 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
3239 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[5],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
3240
3241 _exp1 = tmpMeta[2];
3242 tmp4 += 6; /* Pattern matching succeeded; we may skip some cases if we fail */
3243#line 674 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3244 omc_NFUnitCheck_insertUnitInEquation(threadData, _exp1, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_icu1);
3245#line 3245 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3246#line 676 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3247 tmpMeta[0+0] = _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3));
3248#line 676 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3249 tmpMeta[0+1] = _icu1;
3250#line 3250 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3251 goto tmp3_done;
3252 }
3253 case 23: {
3254 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,12,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((12 +3) & 255) << 2)))
== 0) goto tmp3_end;
3255
3256 tmp4 += 5; /* Pattern matching succeeded; we may skip some cases if we fail */
3257#line 682 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3258 _op_unit = omc_NFUnitCheck_insertUnitInEquationCall(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_eq) - 3))) + (
2)))))
), _unit, _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_icu1);
3259#line 3259 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3260#line 684 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3261 tmpMeta[0+0] = _op_unit;
3262#line 684 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3263 tmpMeta[0+1] = _icu1;
3264#line 3264 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3265 goto tmp3_done;
3266 }
3267 case 24: {
3268 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,20,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((20 +3) & 255) << 2)))
== 0) goto tmp3_end;
3269
3270 tmp4 += 4; /* Pattern matching succeeded; we may skip some cases if we fail */
3271#line 689 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3272 _unit1 = omc_NFUnitCheck_insertUnitInEquation(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_eq) - 3))) + (
3)))))
), _unit, _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_icu1);
3273#line 3273 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3274
3275#line 691 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3276 _unit2 = omc_NFUnitCheck_insertUnitInEquation(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_eq) - 3))) + (
4)))))
), _unit1, _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_icu2);
3277#line 3277 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3278
3279#line 693 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3280 _b = omc_NFUnitCheck_unitTypesEqual(threadData, _unit1, _unit2, _htCr2U ,&_op_unit ,&_htCr2U);
3281#line 3281 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3282
3283#line 694 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3284 _inconsistentUnits = omc_List_append__reverse(threadData, _icu1, _icu2);
3285#line 3285 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3286
3287#line 696 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3288 if((!_b))
3289#line 696 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3290 {
3291#line 697 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3292 tmpMeta[4] = mmc_mk_box2(0, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_eq) - 3))) + (
3)))))
), _unit1);
3293#line 697 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3294 tmpMeta[5] = mmc_mk_box2(0, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_eq) - 3))) + (
4)))))
), _unit2);
3295#line 697 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3296 tmpMeta[3] = mmc_mk_cons(tmpMeta[4], mmc_mk_cons(tmpMeta[5], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))));
3297#line 697 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3298 tmpMeta[2] = mmc_mk_cons(tmpMeta[3], _inconsistentUnits);
3299#line 697 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3300 _inconsistentUnits = tmpMeta[2];
3301#line 3301 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3302
3303#line 698 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3304 _op_unit = _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3));
3305#line 3305 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3306 }
3307#line 700 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3308 tmpMeta[0+0] = _op_unit;
3309#line 700 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3310 tmpMeta[0+1] = _inconsistentUnits;
3311#line 3311 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3312 goto tmp3_done;
3313 }
3314 case 25: {
3315 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,19,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((19 +3) & 255) << 2)))
== 0) goto tmp3_end;
3316
3317 tmp4 += 3; /* Pattern matching succeeded; we may skip some cases if we fail */
3318#line 705 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3319 _unit1 = omc_NFUnitCheck_insertUnitInEquation(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_eq) - 3))) + (
2)))))
), _unit, _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_icu1);
3320#line 3320 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3321
3322#line 707 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3323 _unit2 = omc_NFUnitCheck_insertUnitInEquation(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_eq) - 3))) + (
4)))))
), _unit, _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_icu2);
3324#line 3324 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3325
3326#line 709 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3327 _b = omc_NFUnitCheck_unitTypesEqual(threadData, _unit1, _unit2, _htCr2U ,&_op_unit ,&_htCr2U);
3328#line 3328 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3329
3330#line 710 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3331 _inconsistentUnits = omc_List_append__reverse(threadData, _icu1, _icu2);
3332#line 3332 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3333
3334#line 712 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3335 if((!_b))
3336#line 712 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3337 {
3338#line 713 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3339 tmpMeta[4] = mmc_mk_box2(0, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_eq) - 3))) + (
2)))))
), _unit1);
3340#line 713 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3341 tmpMeta[5] = mmc_mk_box2(0, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_eq) - 3))) + (
4)))))
), _unit2);
3342#line 713 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3343 tmpMeta[3] = mmc_mk_cons(tmpMeta[4], mmc_mk_cons(tmpMeta[5], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))));
3344#line 713 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3345 tmpMeta[2] = mmc_mk_cons(tmpMeta[3], _inconsistentUnits);
3346#line 713 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3347 _inconsistentUnits = tmpMeta[2];
3348#line 3348 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3349
3350#line 714 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3351 _op_unit = _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3));
3352#line 3352 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3353 }
3354#line 716 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3355 tmpMeta[0+0] = _op_unit;
3356#line 716 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3357 tmpMeta[0+1] = _inconsistentUnits;
3358#line 3358 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3359 goto tmp3_done;
3360 }
3361 case 26: {
3362 modelica_integer tmp38;
3363 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,16,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((16 +3) & 255) << 2)))
== 0) goto tmp3_end;
3364 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3365 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
3366 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (3)))))
;
3367 tmp38 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
3368 if (26 != tmp38) goto tmp3_end;
3369
3370 tmp4 += 2; /* Pattern matching succeeded; we may skip some cases if we fail */
3371#line 721 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3372 _op_unit = omc_NFUnitCheck_insertUnitInEquation(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_eq) - 3))) + (
3)))))
), _unit, _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_icu1);
3373#line 3373 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3374#line 723 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3375 tmpMeta[0+0] = _op_unit;
3376#line 723 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3377 tmpMeta[0+1] = _icu1;
3378#line 3378 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3379 goto tmp3_done;
3380 }
3381 case 27: {
3382 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,5,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((5 +3) & 255) << 2)))
== 0) goto tmp3_end;
3383
3384 /* Pattern matching succeeded */
3385 /* Check guard condition after assignments */
3386 if (!(omc_NFComponentRef_isSimple(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_eq) - 3))) + (
3)))))
)) && (stringEqual(omc_NFComponentRef_firstName(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 3)))), _OMC_LIT27)((((((*(mmc_uint_t*)((void*)((char*)(omc_NFComponentRef_firstName
(threadData, ((*(void**)(((void*)((void**)(((void*)((char*)(_eq
) - 3))) + (3)))))))) - 3)))) >> (3)) - 8)) == (((((*(mmc_uint_t
*)((void*)((char*)(((void*)((char*)(&(_OMC_LIT_STRUCT27).
header) + 3))) - 3)))) >> (3)) - 8)) && !mmc_stringCompare
(omc_NFComponentRef_firstName(threadData, ((*(void**)(((void*
)((void**)(((void*)((char*)(_eq) - 3))) + (3))))))),((void*)(
(char*)(&(_OMC_LIT_STRUCT27).header) + 3))))
))) goto tmp3_end;
3387#line 729 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3388 _op_unit = _OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3));
3389#line 3389 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3390
3391#line 730 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3392 _htS2U = omc_NFUnitCheck_addUnit2HtS2U(threadData, _OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)), _op_unit, _htS2U);
3393#line 3393 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3394
3395#line 731 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3396 _htU2S = omc_NFUnitCheck_addUnit2HtU2S(threadData, _OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)), _op_unit, _htU2S);
3397#line 3397 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3398#line 732 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3399 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3400#line 732 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3401 tmpMeta[0+0] = _op_unit;
3402#line 732 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3403 tmpMeta[0+1] = tmpMeta[2];
3404#line 3404 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3405 goto tmp3_done;
3406 }
3407 case 28: {
3408 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,5,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((5 +3) & 255) << 2)))
== 0) goto tmp3_end;
3409 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3410 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],1,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((0 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
3411
3412 /* Pattern matching succeeded */
3413#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3414 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3415#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3416 tmpMeta[0+0] = omc_BaseHashTable_get(threadData, omc_NFComponentRef_stripSubscripts(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_eq) - 3))) + (
3)))))
), NULL((void*)0)), _htCr2U);
3417#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3418 tmpMeta[0+1] = tmpMeta[2];
3419#line 3419 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3420 goto tmp3_done;
3421 }
3422 case 29: {
3423
3424 /* Pattern matching succeeded */
3425#line 738 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3426 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3427#line 738 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3428 tmpMeta[0+0] = _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3));
3429#line 738 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3430 tmpMeta[0+1] = tmpMeta[2];
3431#line 3431 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3432 goto tmp3_done;
3433 }
3434 }
3435 goto tmp3_end;
3436 tmp3_end: ;
3437 }
3438 goto goto_2;
3439 tmp3_done:
3440 (void)tmp4;
3441 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
3442 goto tmp3_done2;
3443 goto_2:;
3444 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
3445 if (++tmp4 < 30) {
3446 goto tmp3_top;
3447 }
3448 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3449 tmp3_done2:;
3450 }
3451 }
3452 _unit = tmpMeta[0+0];
3453 _inconsistentUnits = tmpMeta[0+1];
3454 _return: OMC_LABEL_UNUSED__attribute__((unused))
3455 if (out_htCr2U) { *out_htCr2U = _htCr2U; }
3456 if (out_htS2U) { *out_htS2U = _htS2U; }
3457 if (out_htU2S) { *out_htU2S = _htU2S; }
3458 if (out_fnCache) { *out_fnCache = _fnCache; }
3459 if (out_inconsistentUnits) { *out_inconsistentUnits = _inconsistentUnits; }
3460 return _unit;
3461}
3462
3463PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_makeNewCref(threadData_t *threadData, modelica_string _paramName, modelica_string _fnName)
3464{
3465 modelica_metatype _outExp = NULL((void*)0);
3466 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
3467 MMC_SO()mmc_check_stackoverflow(threadData);
3468 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3469 // _outExp has no default value.
3470#line 401 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3471 tmpMeta[0] = stringAppend(_fnName,_OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3)));
3472#line 401 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3473 tmpMeta[1] = mmc_mk_box3(6, &NFComponentRef_STRING__desc, tmpMeta[0], _OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)));
3474#line 401 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3475 tmpMeta[2] = mmc_mk_box3(6, &NFComponentRef_STRING__desc, _paramName, tmpMeta[1]);
3476#line 401 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3477 tmpMeta[3] = mmc_mk_box3(8, &NFExpression_CREF__desc, _OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3)), tmpMeta[2]);
3478#line 401 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3479 _outExp = tmpMeta[3];
3480#line 3480 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3481 _return: OMC_LABEL_UNUSED__attribute__((unused))
3482 return _outExp;
3483}
3484
3485PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_foldEquation2(threadData_t *threadData, modelica_metatype _eq, modelica_boolean _dumpEqInitStruct, modelica_metatype _D_24in_htCr2U, modelica_metatype _D_24in_htS2U, modelica_metatype _D_24in_htU2S, modelica_metatype _D_24in_fnCache, modelica_metatype *out_htS2U, modelica_metatype *out_htU2S, modelica_metatype *out_fnCache, modelica_metatype *out_inconsistentUnits)
3486{
3487 modelica_metatype _htCr2U = NULL((void*)0);
3488 modelica_metatype _htS2U = NULL((void*)0);
3489 modelica_metatype _htU2S = NULL((void*)0);
3490 modelica_metatype _fnCache = NULL((void*)0);
3491 modelica_metatype _inconsistentUnits = NULL((void*)0);
3492 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
3493 MMC_SO()mmc_check_stackoverflow(threadData);
3494 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3495 _htCr2U = _D_24in_htCr2U;
3496 _htS2U = _D_24in_htS2U;
3497 _htU2S = _D_24in_htU2S;
3498 _fnCache = _D_24in_fnCache;
3499 // _inconsistentUnits has no default value.
3500#line 3500 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3501 { /* match expression */
3502 modelica_metatype tmp3_1;
3503 tmp3_1 = _eq;
3504 {
3505 modelica_metatype _icu1 = NULL((void*)0);
3506 modelica_metatype _icu2 = NULL((void*)0);
3507 modelica_metatype _lhs = NULL((void*)0);
3508 modelica_metatype _rhs = NULL((void*)0);
3509 modelica_metatype _temp = NULL((void*)0);
3510 modelica_string _fn_name = NULL((void*)0);
3511 modelica_string _formal_args = NULL((void*)0);
3512 modelica_string _formal_var = NULL((void*)0);
3513 modelica_metatype _out_vars = NULL((void*)0);
3514 modelica_metatype _out_units = NULL((void*)0);
3515 modelica_metatype _unit1 = NULL((void*)0);
3516 modelica_metatype _unit2 = NULL((void*)0);
3517 modelica_metatype _eql = NULL((void*)0);
3518 modelica_boolean _b;
3519 volatile mmc_switch_type tmp3;
3520 int tmp4;
3521 // _icu1 has no default value.
3522 // _icu2 has no default value.
3523 // _lhs has no default value.
3524 // _rhs has no default value.
3525 // _temp has no default value.
3526 // _fn_name has no default value.
3527 // _formal_args has no default value.
3528 // _formal_var has no default value.
3529 // _out_vars has no default value.
3530 // _out_units has no default value.
3531 // _unit1 has no default value.
3532 // _unit2 has no default value.
3533 // _eql has no default value.
3534 // _b has no default value.
3535 tmp3 = 0;
3536 for (; tmp3 < 7; tmp3++) {
3537 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3538 case 0: {
3539 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((4 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
3540 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3541 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],10,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((2 +1)
<< 10) + (((10 +3) & 255) << 2)))
== 0) goto tmp2_end;
3542 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
3543 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],12,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((1 +1)
<< 10) + (((12 +3) & 255) << 2)))
== 0) goto tmp2_end;
3544
3545 _lhs = tmpMeta[1];
3546 _rhs = tmpMeta[2];
3547 /* Pattern matching succeeded */
3548 /* Check guard condition after assignments */
3549 if (!(!omc_NFFunction_Function_isBuiltin(threadData, omc_NFCall_Call_typedFunction(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_rhs), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_rhs) - 3))) + (
2)))))
))))) goto tmp2_end;
3550#line 314 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3551 _fn_name = omc_AbsynUtil_pathString(threadData, omc_AbsynUtil_makeNotFullyQualified(threadData, omc_NFCall_Call_functionName(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_rhs), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_rhs) - 3))) + (
2)))))
))), _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3)), 1, 0);
3552#line 3552 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3553
3554#line 315 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3555 omc_NFUnitCheck_getCallUnits(threadData, _fn_name, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_rhs), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_rhs) - 3))) + (
2)))))
), _fnCache ,&_out_vars ,NULL((void*)0) ,&_out_units, NULL((void*)0));
3556#line 3556 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3557
3558#line 316 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3559 _htCr2U = omc_NFUnitCheck_foldCallArg1(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_lhs), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_lhs) - 3))) + (
3)))))
), _htCr2U, _htS2U, _htU2S, _fnCache, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _out_units, _out_vars, _fn_name ,&_htS2U ,&_htU2S ,&_fnCache ,&_icu1);
3560#line 3560 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3561
3562#line 318 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3563 omc_NFUnitCheck_insertUnitInEquation(threadData, _rhs, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_icu2);
3564#line 3564 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3565#line 320 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3566 tmpMeta[0] = omc_List_append__reverse(threadData, _icu1, _icu2);
3567#line 3567 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3568 goto tmp2_done;
3569 }
3570 case 1: {
3571 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((4 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
3572 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
3573 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],12,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((1 +1)
<< 10) + (((12 +3) & 255) << 2)))
== 0) goto tmp2_end;
3574
3575 _rhs = tmpMeta[1];
3576 /* Pattern matching succeeded */
3577 /* Check guard condition after assignments */
3578 if (!(!omc_NFFunction_Function_isBuiltin(threadData, omc_NFCall_Call_typedFunction(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_rhs), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_rhs) - 3))) + (
2)))))
))))) goto tmp2_end;
3579#line 326 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3580 _fn_name = omc_AbsynUtil_pathString(threadData, omc_AbsynUtil_makeNotFullyQualified(threadData, omc_NFCall_Call_functionName(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_rhs), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_rhs) - 3))) + (
2)))))
))), _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3)), 1, 0);
3581#line 3581 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3582
3583#line 327 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3584 omc_NFUnitCheck_getCallUnits(threadData, _fn_name, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_rhs), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_rhs) - 3))) + (
2)))))
), _fnCache ,&_out_vars ,NULL((void*)0) ,&_out_units ,&_fnCache);
3585#line 3585 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3586
3587#line 328 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3588 _unit1 = omc_NFUnitCheck_insertUnitInEquation(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_eq) - 3))) + (
2)))))
), _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,NULL((void*)0));
3589#line 3589 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3590
3591#line 330 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3592 _formal_args = listHead(_out_units)boxptr_listHead(threadData,_out_units);
3593#line 3593 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3594
3595#line 331 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3596 _formal_var = listHead(_out_vars)boxptr_listHead(threadData,_out_vars);
3597#line 3597 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3598
3599#line 333 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3600 _unit2 = ((stringEqual(_formal_args, _OMC_LIT3)((((((*(mmc_uint_t*)((void*)((char*)(_formal_args) - 3)))) >>
(3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(((void*)((
char*)(&(_OMC_LIT_STRUCT3).header) + 3))) - 3)))) >>
(3)) - 8)) && !mmc_stringCompare(_formal_args,((void
*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3))))
)?_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)):omc_NFUnit_parseUnitString(threadData, _formal_args, _htS2U));
3601#line 3601 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3602
3603#line 335 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3604 _b = omc_NFUnitCheck_unitTypesEqual(threadData, _unit1, _unit2, _htCr2U, NULL((void*)0), NULL((void*)0));
3605#line 3605 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3606
3607#line 336 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3608 if(_b)
3609#line 336 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3610 {
3611#line 337 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3612 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3613#line 337 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3614 _icu1 = tmpMeta[1];
3615#line 3615 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3616 }
3617 else
3618 {
3619#line 339 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3620 tmpMeta[3] = mmc_mk_box2(0, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_eq) - 3))) + (
2)))))
), _unit1);
3621#line 339 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3622 tmpMeta[4] = mmc_mk_box2(0, omc_NFUnitCheck_makeNewCref(threadData, _formal_var, _fn_name), _unit2);
3623#line 339 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3624 tmpMeta[2] = mmc_mk_cons(tmpMeta[3], mmc_mk_cons(tmpMeta[4], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))));
3625#line 339 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3626 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
3627#line 339 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3628 _icu1 = tmpMeta[1];
3629#line 3629 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3630 }
3631
3632#line 342 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3633 omc_NFUnitCheck_insertUnitInEquation(threadData, _rhs, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_icu2);
3634#line 3634 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3635#line 344 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3636 tmpMeta[0] = omc_List_append__reverse(threadData, _icu1, _icu2);
3637#line 3637 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3638 goto tmp2_done;
3639 }
3640 case 2: {
3641 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((4 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
3642
3643 /* Pattern matching succeeded */
3644#line 349 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3645 tmpMeta[1] = mmc_mk_box4(18, &NFExpression_BINARY__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_eq) - 3))) + (
3)))))
), omc_NFOperator_makeSub(threadData, _OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3))), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_eq) - 3))) + (
2)))))
));
3646#line 349 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3647 _temp = tmpMeta[1];
3648#line 3648 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3649
3650#line 351 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3651 if(_dumpEqInitStruct)
3652#line 351 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3653 {
3654#line 352 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3655 omc_ExpressionDump_dumpExp(threadData, omc_NFExpression_toDAE(threadData, _temp));
3656#line 3656 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3657 }
3658
3659#line 355 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3660 omc_NFUnitCheck_insertUnitInEquation(threadData, _temp, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_inconsistentUnits);
3661#line 3661 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3662#line 357 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3663 tmpMeta[0] = _inconsistentUnits;
3664#line 3664 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3665 goto tmp2_done;
3666 }
3667 case 3: {
3668 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((4 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
3669
3670 /* Pattern matching succeeded */
3671#line 362 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3672 tmpMeta[1] = mmc_mk_box4(18, &NFExpression_BINARY__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_eq) - 3))) + (
3)))))
), omc_NFOperator_makeSub(threadData, _OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3))), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_eq) - 3))) + (
2)))))
));
3673#line 362 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3674 _temp = tmpMeta[1];
3675#line 3675 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3676
3677#line 364 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3678 if(_dumpEqInitStruct)
3679#line 364 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3680 {
3681#line 365 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3682 omc_ExpressionDump_dumpExp(threadData, omc_NFExpression_toDAE(threadData, _temp));
3683#line 3683 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3684 }
3685
3686#line 368 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3687 omc_NFUnitCheck_insertUnitInEquation(threadData, _temp, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_inconsistentUnits);
3688#line 3688 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3689#line 370 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3690 tmpMeta[0] = _inconsistentUnits;
3691#line 3691 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3692 goto tmp2_done;
3693 }
3694 case 4: {
3695 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,6,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((6 +3) & 255) << 2)))
== 0) goto tmp2_end;
3696 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3697 if (listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3698 tmpMeta[2] = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
3699 tmpMeta[3] = MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
3700 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],0,3)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((3 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
3701 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (4)))))
;
3702
3703 _eql = tmpMeta[4];
3704 /* Pattern matching succeeded */
3705#line 375 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3706 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3707#line 375 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3708 _inconsistentUnits = tmpMeta[1];
3709#line 3709 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3710
3711#line 377 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3712 {
3713#line 377 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3714 modelica_metatype _e;
3715#line 377 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3716 for (tmpMeta[1] = _eql; !listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[1]=MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
)
3717#line 377 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3718 {
3719#line 377 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3720 _e = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
3721#line 378 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3722 _htCr2U = omc_NFUnitCheck_foldEquation2(threadData, _e, _dumpEqInitStruct, _htCr2U, _htS2U, _htU2S, _fnCache ,&_htS2U ,&_htU2S ,&_fnCache ,&_icu1);
3723#line 3723 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3724
3725#line 380 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3726 _inconsistentUnits = omc_List_append__reverse(threadData, _icu1, _inconsistentUnits);
3727#line 3727 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3728 }
3729 }
3730#line 382 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3731 tmpMeta[0] = _inconsistentUnits;
3732#line 3732 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3733 goto tmp2_done;
3734 }
3735 case 5: {
3736 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,10,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((10 +3) & 255) << 2)))
== 0) goto tmp2_end;
3737
3738 /* Pattern matching succeeded */
3739#line 387 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3740 omc_NFUnitCheck_insertUnitInEquation(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_eq), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_eq) - 3))) + (
2)))))
), _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), _htCr2U, _htS2U, _htU2S, _fnCache ,&_htCr2U ,&_htS2U ,&_htU2S ,&_fnCache ,&_inconsistentUnits);
3741#line 3741 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3742#line 389 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3743 tmpMeta[0] = _inconsistentUnits;
3744#line 3744 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3745 goto tmp2_done;
3746 }
3747 case 6: {
3748
3749 /* Pattern matching succeeded */
3750#line 392 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3751 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3752#line 392 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3753 tmpMeta[0] = tmpMeta[1];
3754#line 3754 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3755 goto tmp2_done;
3756 }
3757 }
3758 goto tmp2_end;
3759 tmp2_end: ;
3760 }
3761 goto goto_1;
3762 goto_1:;
3763 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3764 goto tmp2_done;
3765 tmp2_done:;
3766 }
3767 }
3768 _inconsistentUnits = tmpMeta[0];
3769 _return: OMC_LABEL_UNUSED__attribute__((unused))
3770 if (out_htS2U) { *out_htS2U = _htS2U; }
3771 if (out_htU2S) { *out_htU2S = _htU2S; }
3772 if (out_fnCache) { *out_fnCache = _fnCache; }
3773 if (out_inconsistentUnits) { *out_inconsistentUnits = _inconsistentUnits; }
3774 return _htCr2U;
3775}
3776PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFUnitCheck_foldEquation2(threadData_t *threadData, modelica_metatype _eq, modelica_metatype _dumpEqInitStruct, modelica_metatype _D_24in_htCr2U, modelica_metatype _D_24in_htS2U, modelica_metatype _D_24in_htU2S, modelica_metatype _D_24in_fnCache, modelica_metatype *out_htS2U, modelica_metatype *out_htU2S, modelica_metatype *out_fnCache, modelica_metatype *out_inconsistentUnits)
3777{
3778 modelica_integer tmp1;
3779 modelica_metatype _htCr2U = NULL((void*)0);
3780 tmp1 = mmc_unbox_integer(_dumpEqInitStruct)(((mmc_sint_t) (_dumpEqInitStruct)) >> 1);
3781 _htCr2U = omc_NFUnitCheck_foldEquation2(threadData, _eq, tmp1, _D_24in_htCr2U, _D_24in_htS2U, _D_24in_htU2S, _D_24in_fnCache, out_htS2U, out_htU2S, out_fnCache, out_inconsistentUnits);
3782 /* skip box _htCr2U; tuple<array<list<tuple<NFComponentRef, #Integer>>>, tuple<#Integer, #Integer, array<Option<tuple<NFComponentRef, NFUnit.Unit>>>>, #Integer, tuple<.NFHashTableCrToUnit.FuncHashKey<function>(NFComponentRef cr, #Integer mod) => #Integer, .NFHashTableCrToUnit.FuncKeyEqual<function>(NFComponentRef cr1, NFComponentRef cr2) => #Boolean, .NFHashTableCrToUnit.FuncKeyStr<function>(NFComponentRef cr) => String, .NFHashTableCrToUnit.FuncValueStr<function>(NFUnit.Unit exp) => String>> */
3783 /* skip box _htS2U; tuple<array<list<tuple<String, #Integer>>>, tuple<#Integer, #Integer, array<Option<tuple<String, NFUnit.Unit>>>>, #Integer, tuple<.NFHashTableStringToUnit.FuncHashKey<function>(String cr, #Integer mod) => #Integer, .NFHashTableStringToUnit.FuncKeyEqual<function>(String cr1, String cr2) => #Boolean, .NFHashTableStringToUnit.FuncKeyStr<function>(String cr) => String, .NFHashTableStringToUnit.FuncValueStr<function>(NFUnit.Unit exp) => String>> */
3784 /* skip box _htU2S; tuple<array<list<tuple<NFUnit.Unit, #Integer>>>, tuple<#Integer, #Integer, array<Option<tuple<NFUnit.Unit, String>>>>, #Integer, tuple<.NFHashTableUnitToString.FuncHashKey<function>(NFUnit.Unit cr, #Integer mod) => #Integer, .NFHashTableUnitToString.FuncKeyEqual<function>(NFUnit.Unit cr1, NFUnit.Unit cr2) => #Boolean, .NFHashTableUnitToString.FuncKeyStr<function>(NFUnit.Unit cr) => String, .NFHashTableUnitToString.FuncValueStr<function>(String exp) => String>> */
3785 /* skip box _fnCache; tuple<array<list<tuple<String, #Integer>>>, tuple<#Integer, #Integer, array<Option<tuple<String, NFUnitCheck.Functionargs>>>>, #Integer, tuple<.NFUnitCheck.FunctionUnitCache.FuncHash<function>(String key, #Integer mod) => #Integer, .NFUnitCheck.FunctionUnitCache.FuncEq<function>(String key1, String key2) => #Boolean, .NFUnitCheck.FunctionUnitCache.FuncKeyStr<function>(String key) => String, .NFUnitCheck.FunctionUnitCache.FuncValueStr<function>(NFUnitCheck.Functionargs value) => String>> */
3786 /* skip box _inconsistentUnits; list<list<tuple<NFExpression, NFUnit.Unit>>> */
3787 return _htCr2U;
3788}
3789
3790PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_foldEquation(threadData_t *threadData, modelica_metatype _eq, modelica_metatype _D_24in_htCr2U, modelica_metatype _D_24in_htS2U, modelica_metatype _D_24in_htU2S, modelica_metatype _D_24in_fnCache, modelica_boolean _dumpEqInitStruct, modelica_metatype *out_htS2U, modelica_metatype *out_htU2S, modelica_metatype *out_fnCache)
3791{
3792 modelica_metatype _htCr2U = NULL((void*)0);
3793 modelica_metatype _htS2U = NULL((void*)0);
3794 modelica_metatype _htU2S = NULL((void*)0);
3795 modelica_metatype _fnCache = NULL((void*)0);
3796 modelica_metatype _inconsistent_units = NULL((void*)0);
3797 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3798 MMC_SO()mmc_check_stackoverflow(threadData);
3799 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3800 _htCr2U = _D_24in_htCr2U;
3801 _htS2U = _D_24in_htS2U;
3802 _htU2S = _D_24in_htU2S;
3803 _fnCache = _D_24in_fnCache;
3804 // _inconsistent_units has no default value.
3805#line 283 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3806 _htCr2U = omc_NFUnitCheck_foldEquation2(threadData, _eq, _dumpEqInitStruct, _htCr2U, _htS2U, _htU2S, _fnCache ,&_htS2U ,&_htU2S ,&_fnCache ,&_inconsistent_units);
3807#line 3807 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3808
3809#line 286 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3810 {
3811#line 286 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3812 modelica_metatype _u;
3813#line 286 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3814 for (tmpMeta[0] = _inconsistent_units; !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)))))
)
3815#line 286 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3816 {
3817#line 286 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3818 _u = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
3819#line 287 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3820 omc_NFUnitCheck_Errorfunction(threadData, _u, _eq, _htU2S);
3821#line 3821 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3822 }
3823 }
3824 _return: OMC_LABEL_UNUSED__attribute__((unused))
3825 if (out_htS2U) { *out_htS2U = _htS2U; }
3826 if (out_htU2S) { *out_htU2S = _htU2S; }
3827 if (out_fnCache) { *out_fnCache = _fnCache; }
3828 return _htCr2U;
3829}
3830PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFUnitCheck_foldEquation(threadData_t *threadData, modelica_metatype _eq, modelica_metatype _D_24in_htCr2U, modelica_metatype _D_24in_htS2U, modelica_metatype _D_24in_htU2S, modelica_metatype _D_24in_fnCache, modelica_metatype _dumpEqInitStruct, modelica_metatype *out_htS2U, modelica_metatype *out_htU2S, modelica_metatype *out_fnCache)
3831{
3832 modelica_integer tmp1;
3833 modelica_metatype _htCr2U = NULL((void*)0);
3834 tmp1 = mmc_unbox_integer(_dumpEqInitStruct)(((mmc_sint_t) (_dumpEqInitStruct)) >> 1);
3835 _htCr2U = omc_NFUnitCheck_foldEquation(threadData, _eq, _D_24in_htCr2U, _D_24in_htS2U, _D_24in_htU2S, _D_24in_fnCache, tmp1, out_htS2U, out_htU2S, out_fnCache);
3836 /* skip box _htCr2U; tuple<array<list<tuple<NFComponentRef, #Integer>>>, tuple<#Integer, #Integer, array<Option<tuple<NFComponentRef, NFUnit.Unit>>>>, #Integer, tuple<.NFHashTableCrToUnit.FuncHashKey<function>(NFComponentRef cr, #Integer mod) => #Integer, .NFHashTableCrToUnit.FuncKeyEqual<function>(NFComponentRef cr1, NFComponentRef cr2) => #Boolean, .NFHashTableCrToUnit.FuncKeyStr<function>(NFComponentRef cr) => String, .NFHashTableCrToUnit.FuncValueStr<function>(NFUnit.Unit exp) => String>> */
3837 /* skip box _htS2U; tuple<array<list<tuple<String, #Integer>>>, tuple<#Integer, #Integer, array<Option<tuple<String, NFUnit.Unit>>>>, #Integer, tuple<.NFHashTableStringToUnit.FuncHashKey<function>(String cr, #Integer mod) => #Integer, .NFHashTableStringToUnit.FuncKeyEqual<function>(String cr1, String cr2) => #Boolean, .NFHashTableStringToUnit.FuncKeyStr<function>(String cr) => String, .NFHashTableStringToUnit.FuncValueStr<function>(NFUnit.Unit exp) => String>> */
3838 /* skip box _htU2S; tuple<array<list<tuple<NFUnit.Unit, #Integer>>>, tuple<#Integer, #Integer, array<Option<tuple<NFUnit.Unit, String>>>>, #Integer, tuple<.NFHashTableUnitToString.FuncHashKey<function>(NFUnit.Unit cr, #Integer mod) => #Integer, .NFHashTableUnitToString.FuncKeyEqual<function>(NFUnit.Unit cr1, NFUnit.Unit cr2) => #Boolean, .NFHashTableUnitToString.FuncKeyStr<function>(NFUnit.Unit cr) => String, .NFHashTableUnitToString.FuncValueStr<function>(String exp) => String>> */
3839 /* skip box _fnCache; tuple<array<list<tuple<String, #Integer>>>, tuple<#Integer, #Integer, array<Option<tuple<String, NFUnitCheck.Functionargs>>>>, #Integer, tuple<.NFUnitCheck.FunctionUnitCache.FuncHash<function>(String key, #Integer mod) => #Integer, .NFUnitCheck.FunctionUnitCache.FuncEq<function>(String key1, String key2) => #Boolean, .NFUnitCheck.FunctionUnitCache.FuncKeyStr<function>(String key) => String, .NFUnitCheck.FunctionUnitCache.FuncValueStr<function>(NFUnitCheck.Functionargs value) => String>> */
3840 return _htCr2U;
3841}
3842
3843PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_foldBindingExp(threadData_t *threadData, modelica_metatype _var, modelica_metatype _D_24in_htCr2U, modelica_metatype _D_24in_htS2U, modelica_metatype _D_24in_htU2S, modelica_metatype _D_24in_fnCache, modelica_boolean _dumpEqInitStruct, modelica_metatype *out_htS2U, modelica_metatype *out_htU2S, modelica_metatype *out_fnCache)
3844{
3845 modelica_metatype _htCr2U = NULL((void*)0);
3846 modelica_metatype _htS2U = NULL((void*)0);
3847 modelica_metatype _htU2S = NULL((void*)0);
3848 modelica_metatype _fnCache = NULL((void*)0);
3849 modelica_metatype _binding_exp = NULL((void*)0);
3850 modelica_metatype _eq = NULL((void*)0);
3851 MMC_SO()mmc_check_stackoverflow(threadData);
3852 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3853 _htCr2U = _D_24in_htCr2U;
3854 _htS2U = _D_24in_htS2U;
3855 _htU2S = _D_24in_htU2S;
3856 _fnCache = _D_24in_fnCache;
3857 // _binding_exp has no default value.
3858 // _eq has no default value.
3859#line 264 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3860 if((omc_NFType_isReal(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_var), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_var) - 3))) + (
3)))))
)) && omc_NFBinding_Binding_isBound(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_var), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_var) - 3))) + (
4)))))
))))
3861#line 264 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3862 {
3863#line 265 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3864 _binding_exp = omc_NFBinding_Binding_getTypedExp(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_var), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_var) - 3))) + (
4)))))
));
3865#line 3865 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3866
3867#line 266 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3868 _eq = omc_NFEquation_makeEquality(threadData, omc_NFExpression_fromCref(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_var), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_var) - 3))) + (
2)))))
)), _binding_exp, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_var), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_var) - 3))) + (
3)))))
), omc_ElementSource_createElementSource(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_var), 9))(*(void**)(((void*)((void**)(((void*)((char*)(_var) - 3))) + (
9)))))
), mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)), _OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3)), _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))));
3869#line 3869 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3870
3871#line 268 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3872 _htCr2U = omc_NFUnitCheck_foldEquation(threadData, _eq, _htCr2U, _htS2U, _htU2S, _fnCache, _dumpEqInitStruct ,&_htS2U ,&_htU2S ,&_fnCache);
3873#line 3873 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3874 }
3875 _return: OMC_LABEL_UNUSED__attribute__((unused))
3876 if (out_htS2U) { *out_htS2U = _htS2U; }
3877 if (out_htU2S) { *out_htU2S = _htU2S; }
3878 if (out_fnCache) { *out_fnCache = _fnCache; }
3879 return _htCr2U;
3880}
3881PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFUnitCheck_foldBindingExp(threadData_t *threadData, modelica_metatype _var, modelica_metatype _D_24in_htCr2U, modelica_metatype _D_24in_htS2U, modelica_metatype _D_24in_htU2S, modelica_metatype _D_24in_fnCache, modelica_metatype _dumpEqInitStruct, modelica_metatype *out_htS2U, modelica_metatype *out_htU2S, modelica_metatype *out_fnCache)
3882{
3883 modelica_integer tmp1;
3884 modelica_metatype _htCr2U = NULL((void*)0);
3885 tmp1 = mmc_unbox_integer(_dumpEqInitStruct)(((mmc_sint_t) (_dumpEqInitStruct)) >> 1);
3886 _htCr2U = omc_NFUnitCheck_foldBindingExp(threadData, _var, _D_24in_htCr2U, _D_24in_htS2U, _D_24in_htU2S, _D_24in_fnCache, tmp1, out_htS2U, out_htU2S, out_fnCache);
3887 /* skip box _htCr2U; tuple<array<list<tuple<NFComponentRef, #Integer>>>, tuple<#Integer, #Integer, array<Option<tuple<NFComponentRef, NFUnit.Unit>>>>, #Integer, tuple<.NFHashTableCrToUnit.FuncHashKey<function>(NFComponentRef cr, #Integer mod) => #Integer, .NFHashTableCrToUnit.FuncKeyEqual<function>(NFComponentRef cr1, NFComponentRef cr2) => #Boolean, .NFHashTableCrToUnit.FuncKeyStr<function>(NFComponentRef cr) => String, .NFHashTableCrToUnit.FuncValueStr<function>(NFUnit.Unit exp) => String>> */
3888 /* skip box _htS2U; tuple<array<list<tuple<String, #Integer>>>, tuple<#Integer, #Integer, array<Option<tuple<String, NFUnit.Unit>>>>, #Integer, tuple<.NFHashTableStringToUnit.FuncHashKey<function>(String cr, #Integer mod) => #Integer, .NFHashTableStringToUnit.FuncKeyEqual<function>(String cr1, String cr2) => #Boolean, .NFHashTableStringToUnit.FuncKeyStr<function>(String cr) => String, .NFHashTableStringToUnit.FuncValueStr<function>(NFUnit.Unit exp) => String>> */
3889 /* skip box _htU2S; tuple<array<list<tuple<NFUnit.Unit, #Integer>>>, tuple<#Integer, #Integer, array<Option<tuple<NFUnit.Unit, String>>>>, #Integer, tuple<.NFHashTableUnitToString.FuncHashKey<function>(NFUnit.Unit cr, #Integer mod) => #Integer, .NFHashTableUnitToString.FuncKeyEqual<function>(NFUnit.Unit cr1, NFUnit.Unit cr2) => #Boolean, .NFHashTableUnitToString.FuncKeyStr<function>(NFUnit.Unit cr) => String, .NFHashTableUnitToString.FuncValueStr<function>(String exp) => String>> */
3890 /* skip box _fnCache; tuple<array<list<tuple<String, #Integer>>>, tuple<#Integer, #Integer, array<Option<tuple<String, NFUnitCheck.Functionargs>>>>, #Integer, tuple<.NFUnitCheck.FunctionUnitCache.FuncHash<function>(String key, #Integer mod) => #Integer, .NFUnitCheck.FunctionUnitCache.FuncEq<function>(String key1, String key2) => #Boolean, .NFUnitCheck.FunctionUnitCache.FuncKeyStr<function>(String key) => String, .NFUnitCheck.FunctionUnitCache.FuncValueStr<function>(NFUnitCheck.Functionargs value) => String>> */
3891 return _htCr2U;
3892}
3893
3894PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_checkModelConsistency(threadData_t *threadData, modelica_metatype _variables, modelica_metatype _equations, modelica_metatype _initialEquations, modelica_metatype _D_24in_htCr2U, modelica_metatype _D_24in_htS2U, modelica_metatype _D_24in_htU2S, modelica_metatype _D_24in_fnCache, modelica_metatype *out_htS2U, modelica_metatype *out_htU2S, modelica_metatype *out_fnCache)
3895{
3896 modelica_metatype _htCr2U = NULL((void*)0);
3897 modelica_metatype _htS2U = NULL((void*)0);
3898 modelica_metatype _htU2S = NULL((void*)0);
3899 modelica_metatype _fnCache = NULL((void*)0);
3900 modelica_boolean _dump_eq_unit;
3901 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3902 MMC_SO()mmc_check_stackoverflow(threadData);
3903 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3904 _htCr2U = _D_24in_htCr2U;
3905 _htS2U = _D_24in_htS2U;
3906 _htU2S = _D_24in_htU2S;
3907 _fnCache = _D_24in_fnCache;
3908 _dump_eq_unit = omc_Flags_isSet(threadData, _OMC_LIT38((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3)));
3909#line 240 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3910 {
3911#line 240 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3912 modelica_metatype _v;
3913#line 240 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3914 for (tmpMeta[0] = _variables; !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)))))
)
3915#line 240 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3916 {
3917#line 240 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3918 _v = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
3919#line 241 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3920 _htCr2U = omc_NFUnitCheck_foldBindingExp(threadData, _v, _htCr2U, _htS2U, _htU2S, _fnCache, _dump_eq_unit ,&_htS2U ,&_htU2S ,&_fnCache);
3921#line 3921 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3922 }
3923 }
3924
3925#line 244 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3926 {
3927#line 244 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3928 modelica_metatype _eq;
3929#line 244 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3930 for (tmpMeta[0] = _equations; !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)))))
)
3931#line 244 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3932 {
3933#line 244 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3934 _eq = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
3935#line 245 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3936 _htCr2U = omc_NFUnitCheck_foldEquation(threadData, _eq, _htCr2U, _htS2U, _htU2S, _fnCache, _dump_eq_unit ,&_htS2U ,&_htU2S ,&_fnCache);
3937#line 3937 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3938 }
3939 }
3940
3941#line 248 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3942 {
3943#line 248 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3944 modelica_metatype _ieq;
3945#line 248 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3946 for (tmpMeta[0] = _initialEquations; !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)))))
)
3947#line 248 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3948 {
3949#line 248 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3950 _ieq = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
3951#line 249 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3952 _htCr2U = omc_NFUnitCheck_foldEquation(threadData, _ieq, _htCr2U, _htS2U, _htU2S, _fnCache, _dump_eq_unit ,&_htS2U ,&_htU2S ,&_fnCache);
3953#line 3953 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
3954 }
3955 }
3956 _return: OMC_LABEL_UNUSED__attribute__((unused))
3957 if (out_htS2U) { *out_htS2U = _htS2U; }
3958 if (out_htU2S) { *out_htU2S = _htU2S; }
3959 if (out_fnCache) { *out_fnCache = _fnCache; }
3960 return _htCr2U;
3961}
3962
3963PROTECTED_FUNCTION_STATIC modelica_string omc_NFUnitCheck_notification2(threadData_t *threadData, modelica_metatype _inLt1, modelica_metatype _inHtCr2U2, modelica_metatype _inHtU2S)
3964{
3965 modelica_string _outS = NULL((void*)0);
3966 modelica_metatype _cr1 = NULL((void*)0);
3967 modelica_real _factor1;
3968 modelica_integer _i1;
3969 modelica_integer _i2;
3970 modelica_integer _i3;
3971 modelica_integer _i4;
3972 modelica_integer _i5;
3973 modelica_integer _i6;
3974 modelica_integer _i7;
3975 modelica_metatype tmpMeta[16] __attribute__((unused)) = {0};
3976 MMC_SO()mmc_check_stackoverflow(threadData);
3977 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3978 // _outS has no default value.
3979 _cr1 = _OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3));
3980 _factor1 = 0.0;
3981 _i1 = ((modelica_integer) 0);
3982 _i2 = ((modelica_integer) 0);
3983 _i3 = ((modelica_integer) 0);
3984 _i4 = ((modelica_integer) 0);
3985 _i5 = ((modelica_integer) 0);
3986 _i6 = ((modelica_integer) 0);
3987 _i7 = ((modelica_integer) 0);
3988#line 212 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3989 {
3990#line 212 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3991 modelica_metatype _D_24tmpVar9;
3992#line 212 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3993 modelica_metatype* tmp1;
3994#line 212 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3995 modelica_string _D_24tmpVar8;
3996#line 212 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3997 int tmp2;
3998#line 212 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
3999 modelica_metatype _t1_loopVar = 0;
4000#line 212 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4001 modelica_boolean tmp3 = 0;
4002#line 212 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4003 modelica_metatype _t1;
4004#line 212 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4005 _t1_loopVar = _inLt1;
4006#line 212 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4007 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4008#line 212 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4009 _D_24tmpVar9 = tmpMeta[1]; /* defaultValue */
4010#line 212 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4011 tmp1 = &_D_24tmpVar9;
4012#line 212 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4013 while(1) {
4014#line 212 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4015 tmp2 = 1;
4016#line 212 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4017 while (!listEmpty(_t1_loopVar)((*(mmc_uint_t*)((void*)((char*)(_t1_loopVar) - 3))) == (((0)
<< 10) + (((0) & 255) << 2)))
) {
4018#line 212 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4019 _t1 = MMC_CAR(_t1_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_t1_loopVar) - 3
))) + (1)))))
;
4020#line 212 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4021 _t1_loopVar = MMC_CDR(_t1_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_t1_loopVar) - 3
))) + (2)))))
;
4022#line 4022 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4023 { /* match expression */
4024 modelica_metatype tmp6_1;
4025 tmp6_1 = _t1;
4026 {
4027 modelica_boolean _b;
4028 volatile mmc_switch_type tmp6;
4029 int tmp7;
4030 // _b has no default value.
4031 tmp6 = 0;
4032 for (; tmp6 < 2; tmp6++) {
4033 switch (MMC_SWITCH_CAST(tmp6)(tmp6)) {
4034 case 0: {
4035 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp6_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp6_1) - 3))) +
(1)))))
;
4036 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp6_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp6_1) - 3))) +
(2)))))
;
4037 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[8],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[8]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp5_end;
4038
4039 _cr1 = tmpMeta[7];
4040 /* Pattern matching succeeded */
4041#line 218 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4042 _b = 0;
4043#line 4043 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4044
4045#line 4045 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4046 { /* matchcontinue expression */
4047 {
4048 volatile mmc_switch_type tmp10;
4049 int tmp11;
4050 tmp10 = 0;
4051 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) {
4052 tmp9_top:
4053 threadData->mmc_jumper = &new_mmc_jumper;
4054 for (; tmp10 < 2; tmp10++) {
4055 switch (MMC_SWITCH_CAST(tmp10)(tmp10)) {
4056 case 0: {
4057 modelica_real tmp12;
4058 modelica_integer tmp13;
4059 modelica_integer tmp14;
4060 modelica_integer tmp15;
4061 modelica_integer tmp16;
4062 modelica_integer tmp17;
4063 modelica_integer tmp18;
4064 modelica_integer tmp19;
4065 /* Pattern matching succeeded */
4066#line 220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4067 /* Pattern-matching assignment */
4068#line 220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4069 tmpMeta[7] = omc_BaseHashTable_get(threadData, omc_NFComponentRef_stripSubscripts(threadData, _cr1, NULL((void*)0)), _inHtCr2U2);
4070#line 220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4071 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto goto_8;
4072#line 220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4073 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[7]) - 3
))) + (2)))))
;
4074#line 220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4075 tmp12 = mmc_unbox_real(tmpMeta[8])mmc_prim_get_real(tmpMeta[8]);
4076#line 220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4077 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[7]) - 3
))) + (3)))))
;
4078#line 220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4079 tmp13 = mmc_unbox_integer(tmpMeta[9])(((mmc_sint_t) (tmpMeta[9])) >> 1);
4080#line 220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4081 tmpMeta[10] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[7]) - 3
))) + (4)))))
;
4082#line 220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4083 tmp14 = mmc_unbox_integer(tmpMeta[10])(((mmc_sint_t) (tmpMeta[10])) >> 1);
4084#line 220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4085 tmpMeta[11] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[7]) - 3
))) + (5)))))
;
4086#line 220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4087 tmp15 = mmc_unbox_integer(tmpMeta[11])(((mmc_sint_t) (tmpMeta[11])) >> 1);
4088#line 220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4089 tmpMeta[12] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[7]) - 3
))) + (6)))))
;
4090#line 220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4091 tmp16 = mmc_unbox_integer(tmpMeta[12])(((mmc_sint_t) (tmpMeta[12])) >> 1);
4092#line 220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4093 tmpMeta[13] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[7]) - 3
))) + (7)))))
;
4094#line 220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4095 tmp17 = mmc_unbox_integer(tmpMeta[13])(((mmc_sint_t) (tmpMeta[13])) >> 1);
4096#line 220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4097 tmpMeta[14] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[7]) - 3
))) + (8)))))
;
4098#line 220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4099 tmp18 = mmc_unbox_integer(tmpMeta[14])(((mmc_sint_t) (tmpMeta[14])) >> 1);
4100#line 220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4101 tmpMeta[15] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 9))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[7]) - 3
))) + (9)))))
;
4102#line 220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4103 tmp19 = mmc_unbox_integer(tmpMeta[15])(((mmc_sint_t) (tmpMeta[15])) >> 1);
4104#line 220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4105 _factor1 = tmp12 /* pattern as ty=Real */;
4106#line 220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4107 _i1 = tmp13 /* pattern as ty=Integer */;
4108#line 220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4109 _i2 = tmp14 /* pattern as ty=Integer */;
4110#line 220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4111 _i3 = tmp15 /* pattern as ty=Integer */;
4112#line 220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4113 _i4 = tmp16 /* pattern as ty=Integer */;
4114#line 220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4115 _i5 = tmp17 /* pattern as ty=Integer */;
4116#line 220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4117 _i6 = tmp18 /* pattern as ty=Integer */;
4118#line 220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4119 _i7 = tmp19 /* pattern as ty=Integer */;
4120#line 4120 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4121
4122#line 222 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4123 _b = 1;
4124#line 4124 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4125#line 4125 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4126 goto tmp9_done;
4127 }
4128 case 1: {
4129 /* Pattern matching succeeded */
4130#line 4130 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4131 goto tmp9_done;
4132 }
4133 }
4134 goto tmp9_end;
4135 tmp9_end: ;
4136 }
4137 goto goto_8;
4138 tmp9_done:
4139 (void)tmp10;
4140 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4141 goto tmp9_done2;
4142 goto_8:;
4143 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4144 if (++tmp10 < 2) {
4145 goto tmp9_top;
4146 }
4147 goto goto_4;
4148 tmp9_done2:;
4149 }
4150 }
4151 ;
4152#line 225 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4153 tmp3 = _b;
4154#line 4154 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4155 goto tmp5_done;
4156 }
4157 case 1: {
4158
4159 /* Pattern matching succeeded */
4160#line 225 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4161 tmp3 = 0;
4162#line 4162 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4163 goto tmp5_done;
4164 }
4165 }
4166 goto tmp5_end;
4167 tmp5_end: ;
4168 }
4169 goto goto_4;
4170 goto_4:;
4171 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4172 goto tmp5_done;
4173 tmp5_done:;
4174 }
4175 }
4176 if (tmp3) {
4177 tmp2--;
4178 break;
4179 }
4180 }
4181 if (tmp2 == 0) {
4182 tmpMeta[2] = stringAppend(_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)),omc_NFComponentRef_toString(threadData, _cr1));
4183 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3)));
4184 tmpMeta[4] = mmc_mk_box9(3, &NFUnit_Unit_UNIT__desc, mmc_mk_realmmc_mk_rcon(_factor1), mmc_mk_integermmc_mk_icon(_i1), mmc_mk_integermmc_mk_icon(_i2), mmc_mk_integermmc_mk_icon(_i3), mmc_mk_integermmc_mk_icon(_i4), mmc_mk_integermmc_mk_icon(_i5), mmc_mk_integermmc_mk_icon(_i6), mmc_mk_integermmc_mk_icon(_i7));
4185 tmpMeta[5] = stringAppend(tmpMeta[3],omc_NFUnit_unitString(threadData, tmpMeta[4], _inHtU2S));
4186 tmpMeta[6] = stringAppend(tmpMeta[5],_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
4187 _D_24tmpVar8 = tmpMeta[6];
4188 *tmp1 = mmc_mk_cons(_D_24tmpVar8,0);
4189 tmp1 = &MMC_CDR(*tmp1)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp1) - 3))) +
(2)))))
;
4190 } else if (tmp2 == 1) {
4191 break;
4192 } else {
4193 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4194 }
4195 }
4196 *tmp1 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
4197 tmpMeta[0] = _D_24tmpVar9;
4198 }
4199 _outS = stringAppendList(tmpMeta[0]);
4200 _return: OMC_LABEL_UNUSED__attribute__((unused))
4201 return _outS;
4202}
4203
4204PROTECTED_FUNCTION_STATIC void omc_NFUnitCheck_notification(threadData_t *threadData, modelica_metatype _inHtCr2U1, modelica_metatype _inHtCr2U2, modelica_metatype _inHtU2S)
4205{
4206 modelica_string _str = NULL((void*)0);
4207 modelica_metatype _lt1 = NULL((void*)0);
4208 MMC_SO()mmc_check_stackoverflow(threadData);
4209 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4210 // _str has no default value.
4211 // _lt1 has no default value.
4212#line 195 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4213 _lt1 = omc_BaseHashTable_hashTableList(threadData, _inHtCr2U1);
4214#line 4214 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4215
4216#line 196 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4217 _str = omc_NFUnitCheck_notification2(threadData, _lt1, _inHtCr2U2, _inHtU2S);
4218#line 4218 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4219
4220#line 197 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4221 if((omc_Flags_isSet(threadData, _OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3))) && (!stringEqual(_str, _OMC_LIT8)((((((*(mmc_uint_t*)((void*)((char*)(_str) - 3)))) >> (
3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(((void*)((char
*)(&(_OMC_LIT_STRUCT8).header) + 3))) - 3)))) >> (3
)) - 8)) && !mmc_stringCompare(_str,((void*)((char*)(
&(_OMC_LIT_STRUCT8).header) + 3))))
)))
4222#line 197 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4223 {
4224#line 198 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4225 omc_Error_addCompilerNotification(threadData, _str);
4226#line 4226 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4227 }
4228 _return: OMC_LABEL_UNUSED__attribute__((unused))
4229 return;
4230}
4231
4232PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_updateVariable(threadData_t *threadData, modelica_metatype _D_24in_var, modelica_metatype _htCr2U, modelica_metatype _htU2S)
4233{
4234 jmp_buf *old_mmc_jumper = threadData->mmc_jumper;
4235 modelica_metatype _var = NULL((void*)0);
4236 modelica_string _name = NULL((void*)0);
4237 modelica_string _unit_str = NULL((void*)0);
4238 modelica_metatype _binding = NULL((void*)0);
4239 modelica_integer _unit_idx;
4240 modelica_metatype _unit = NULL((void*)0);
4241 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
4242 MMC_SO()mmc_check_stackoverflow(threadData);
4243 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4244 _var = _D_24in_var;
4245 // _name has no default value.
4246 // _unit_str has no default value.
4247 // _binding has no default value.
4248 _unit_idx = ((modelica_integer) 0);
4249 // _unit has no default value.
4250#line 155 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4251 if(omc_NFType_isReal(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_var), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_var) - 3))) + (
3)))))
)))
4252#line 155 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4253 {
4254#line 156 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4255 {
4256#line 156 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4257 modelica_metatype _attr;
4258#line 156 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4259 for (tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_var), 7))(*(void**)(((void*)((void**)(((void*)((char*)(_var) - 3))) + (
7)))))
); !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)))))
)
4260#line 156 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4261 {
4262#line 156 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4263 _attr = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
4264#line 157 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4265 /* Pattern-matching assignment */
4266#line 157 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4267 tmpMeta[1] = _attr;
4268#line 157 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4269 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
4270#line 157 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4271 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
4272#line 157 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4273 _name = tmpMeta[2];
4274#line 157 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4275 _binding = tmpMeta[3];
4276#line 4276 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4277
4278#line 158 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4279 _unit_idx = ((modelica_integer) 1) + _unit_idx;
4280#line 4280 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4281
4282#line 160 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4283 if((stringEqual(_name, _OMC_LIT0)((((((*(mmc_uint_t*)((void*)((char*)(_name) - 3)))) >> (
3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(((void*)((char
*)(&(_OMC_LIT_STRUCT0).header) + 3))) - 3)))) >> (3
)) - 8)) && !mmc_stringCompare(_name,((void*)((char*)
(&(_OMC_LIT_STRUCT0).header) + 3))))
))
4284#line 160 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4285 {
4286#line 161 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4287 if(omc_NFBinding_Binding_isBound(threadData, _binding))
4288#line 161 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4289 {
4290#line 163 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4291 goto _return;
4292#line 4292 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4293 }
4294 else
4295 {
4296#line 166 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4297 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
4298#line 166 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4299 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_var)((void*)((char*)(_var) - 3)), 10*sizeof(modelica_metatype));
4300#line 166 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4301 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[7] = listDelete((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_var), 7))), _unit_idx)boxptr_listDelete(threadData,((*(void**)(((void*)((void**)(((
void*)((char*)(_var) - 3))) + (7)))))),mmc_mk_icon(_unit_idx)
)
;
4302#line 166 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4303 _var = tmpMeta[1];
4304#line 4304 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4305
4306#line 167 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4307 break;
4308#line 4308 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4309 }
4310 }
4311 }
4312 }
4313
4314#line 4314 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4315 { /* matchcontinue expression */
4316 {
4317 volatile mmc_switch_type tmp3;
4318 int tmp4;
4319 tmp3 = 0;
4320 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) {
4321 tmp2_top:
4322 threadData->mmc_jumper = &new_mmc_jumper;
4323 for (; tmp3 < 2; tmp3++) {
4324 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
4325 case 0: {
4326 /* Pattern matching succeeded */
4327#line 174 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4328 _unit = omc_BaseHashTable_get(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_var), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_var) - 3))) + (
2)))))
), _htCr2U);
4329#line 4329 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4330
4331#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4332 if(omc_NFUnit_isUnit(threadData, _unit))
4333#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4334 {
4335#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4336 _unit_str = omc_NFUnit_unitString(threadData, _unit, _htU2S);
4337#line 4337 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4338
4339#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4340 tmpMeta[0] = mmc_mk_box2(5, &NFExpression_STRING__desc, _unit_str);
4341#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4342 tmpMeta[1] = mmc_mk_box3(7, &NFBinding_Binding_FLAT__BINDING__desc, tmpMeta[0], mmc_mk_integermmc_mk_icon(1));
4343#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4344 _binding = tmpMeta[1];
4345#line 4345 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4346
4347#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4348 tmpMeta[2] = mmc_mk_box2(0, _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)), _binding);
4349#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4350 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_var), 7))(*(void**)(((void*)((void**)(((void*)((char*)(_var) - 3))) + (
7)))))
));
4351#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4352 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
4353#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4354 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_var)((void*)((char*)(_var) - 3)), 10*sizeof(modelica_metatype));
4355#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4356 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[7] = tmpMeta[1];
4357#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4358 _var = tmpMeta[0];
4359#line 4359 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4360 }
4361#line 4361 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4362 goto tmp2_done;
4363 }
4364 case 1: {
4365 /* Pattern matching succeeded */
4366#line 4366 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4367 goto tmp2_done;
4368 }
4369 }
4370 goto tmp2_end;
4371 tmp2_end: ;
4372 }
4373 goto goto_1;
4374 tmp2_done:
4375 (void)tmp3;
4376 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4377 goto tmp2_done2;
4378 goto_1:;
4379 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4380 if (++tmp3 < 2) {
4381 goto tmp2_top;
4382 }
4383 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4384 tmp2_done2:;
4385 }
4386 }
4387 ;
4388 }
4389 _return: OMC_LABEL_UNUSED__attribute__((unused))
4390 threadData->mmc_jumper = old_mmc_jumper;
4391 return _var;
4392}
4393
4394PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFUnitCheck_updateModel(threadData_t *threadData, modelica_metatype _D_24in_flatModel, modelica_metatype _htCr2U, modelica_metatype _htU2S)
4395{
4396 modelica_metatype _flatModel = NULL((void*)0);
4397 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
4398 MMC_SO()mmc_check_stackoverflow(threadData);
4399 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4400 _flatModel = _D_24in_flatModel;
4401#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4402 {
4403#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4404 modelica_metatype _D_24tmpVar11;
4405#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4406 modelica_metatype* tmp1;
4407#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4408 modelica_metatype _D_24tmpVar10;
4409#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4410 int tmp2;
4411#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4412 modelica_metatype _v_loopVar = 0;
4413#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4414 modelica_metatype _v;
4415#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4416 _v_loopVar = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_flatModel), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_flatModel) - 3
))) + (3)))))
);
4417#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4418 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4419#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4420 _D_24tmpVar11 = tmpMeta[2]; /* defaultValue */
4421#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4422 tmp1 = &_D_24tmpVar11;
4423#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4424 while(1) {
4425#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4426 tmp2 = 1;
4427#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4428 if (!listEmpty(_v_loopVar)((*(mmc_uint_t*)((void*)((char*)(_v_loopVar) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) {
4429#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4430 _v = MMC_CAR(_v_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_v_loopVar) - 3
))) + (1)))))
;
4431#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4432 _v_loopVar = MMC_CDR(_v_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_v_loopVar) - 3
))) + (2)))))
;
4433#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4434 tmp2--;
4435#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4436 }
4437#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4438 if (tmp2 == 0) {
4439#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4440 _D_24tmpVar10 = omc_NFUnitCheck_updateVariable(threadData, _v, _htCr2U, _htU2S);
4441#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4442 *tmp1 = mmc_mk_cons(_D_24tmpVar10,0);
4443#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4444 tmp1 = &MMC_CDR(*tmp1)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp1) - 3))) +
(2)))))
;
4445#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4446 } else if (tmp2 == 1) {
4447#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4448 break;
4449#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4450 } else {
4451#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4452 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4453#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4454 }
4455#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4456 }
4457#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4458 *tmp1 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
4459#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4460 tmpMeta[1] = _D_24tmpVar11;
4461#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4462 }
4463#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4464 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(9))((void*)((char*)(mmc_alloc_words(9)) + 3));
4465#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4466 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_flatModel)((void*)((char*)(_flatModel) - 3)), 9*sizeof(modelica_metatype));
4467#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4468 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[3] = tmpMeta[1];
4469#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4470 _flatModel = tmpMeta[0];
4471#line 4471 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4472 _return: OMC_LABEL_UNUSED__attribute__((unused))
4473 return _flatModel;
4474}
4475
4476DLLExport
4477modelica_metatype omc_NFUnitCheck_checkUnits(threadData_t *threadData, modelica_metatype _D_24in_flatModel)
4478{
4479 jmp_buf *old_mmc_jumper = threadData->mmc_jumper;
4480 modelica_metatype _flatModel = NULL((void*)0);
4481 modelica_metatype _htCr2U1 = NULL((void*)0);
4482 modelica_metatype _htCr2U2 = NULL((void*)0);
4483 modelica_metatype _htS2U = NULL((void*)0);
4484 modelica_metatype _htU2S = NULL((void*)0);
4485 modelica_metatype _fn_cache = NULL((void*)0);
4486 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4487 MMC_SO()mmc_check_stackoverflow(threadData);
4488 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4489 _flatModel = _D_24in_flatModel;
4490 // _htCr2U1 has no default value.
4491 // _htCr2U2 has no default value.
4492 // _htS2U has no default value.
4493 // _htU2S has no default value.
4494 // _fn_cache has no default value.
4495#line 101 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4496 if((!(omc_Flags_isSet(threadData, _OMC_LIT47((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3))) || omc_Flags_getConfigBool(threadData, _OMC_LIT53((void*)((char*)(&(_OMC_LIT_STRUCT53).header) + 3))))))
4497#line 101 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4498 {
4499#line 102 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4500 goto _return;
4501#line 4501 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4502 }
4503
4504#line 4504 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4505 { /* matchcontinue expression */
4506 {
4507 volatile mmc_switch_type tmp3;
4508 int tmp4;
4509 tmp3 = 0;
4510 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) {
4511 tmp2_top:
4512 threadData->mmc_jumper = &new_mmc_jumper;
4513 for (; tmp3 < 2; tmp3++) {
4514 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
4515 case 0: {
4516 /* Pattern matching succeeded */
4517#line 106 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4518 _htCr2U1 = omc_NFHashTableCrToUnit_emptyHashTableSized(threadData, omc_Util_nextPrime(threadData, ((modelica_integer)floor(10.0 + (1.4) * (((modelica_real)listLength((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_flatModel), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_flatModel) - 3
))) + (3)))))
))))))));
4519#line 4519 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4520
4521#line 107 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4522 _htS2U = omc_NFUnit_getKnownUnits(threadData);
4523#line 4523 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4524
4525#line 108 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4526 _htU2S = omc_NFUnit_getKnownUnitsInverse(threadData);
4527#line 4527 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4528
4529#line 109 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4530 _fn_cache = omc_NFUnitCheck_FunctionUnitCache_emptyCache(threadData, ((modelica_integer) 2053));
4531#line 4531 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4532
4533#line 111 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4534 {
4535#line 111 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4536 modelica_metatype _v;
4537#line 111 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4538 for (tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_flatModel), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_flatModel) - 3
))) + (3)))))
); !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)))))
)
4539#line 111 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4540 {
4541#line 111 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4542 _v = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
4543#line 112 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4544 _htCr2U1 = omc_NFUnitCheck_convertUnitString2unit(threadData, _v, _htCr2U1, _htS2U, _htU2S ,&_htS2U ,&_htU2S);
4545#line 4545 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4546 }
4547 }
4548
4549#line 115 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4550 _htCr2U2 = omc_BaseHashTable_copy(threadData, _htCr2U1);
4551#line 4551 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4552
4553#line 116 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4554 _htCr2U2 = omc_NFUnitCheck_checkModelConsistency(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_flatModel), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_flatModel) - 3
))) + (3)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_flatModel), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_flatModel) - 3
))) + (4)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_flatModel), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_flatModel) - 3
))) + (5)))))
), _htCr2U2, _htS2U, _htU2S, _fn_cache ,&_htS2U ,&_htU2S, NULL((void*)0));
4555#line 4555 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4556
4557#line 119 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4558 if(omc_Flags_isSet(threadData, _OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3))))
4559#line 119 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4560 {
4561#line 120 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4562 omc_BaseHashTable_dumpHashTable(threadData, _htCr2U2);
4563#line 4563 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4564
4565#line 121 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4566 fputs(MMC_STRINGDATA(_OMC_LIT54)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT54).header) + 3))) - 3)))->data)
,stdoutstdout);
4567#line 4567 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4568 }
4569
4570#line 124 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4571 omc_NFUnitCheck_notification(threadData, _htCr2U1, _htCr2U2, _htU2S);
4572#line 4572 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4573
4574#line 126 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4575 _flatModel = omc_NFUnitCheck_updateModel(threadData, _flatModel, _htCr2U2, _htU2S);
4576#line 4576 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4577#line 4577 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4578 goto tmp2_done;
4579 }
4580 case 1: {
4581 /* Pattern matching succeeded */
4582#line 128 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4583 omc_Error_addInternalError(threadData, _OMC_LIT55((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3)), _OMC_LIT57((void*)((char*)(&(_OMC_LIT_STRUCT57).header) + 3)));
4584#line 4584 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4585#line 4585 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4586 goto tmp2_done;
4587 }
4588 }
4589 goto tmp2_end;
4590 tmp2_end: ;
4591 }
4592 goto goto_1;
4593 tmp2_done:
4594 (void)tmp3;
4595 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4596 goto tmp2_done2;
4597 goto_1:;
4598 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4599 if (++tmp3 < 2) {
4600 goto tmp2_top;
4601 }
4602 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4603 tmp2_done2:;
4604 }
4605 }
4606 ;
4607
4608#line 131 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4609 omc_ExecStat_execStat(threadData, _OMC_LIT58((void*)((char*)(&(_OMC_LIT_STRUCT58).header) + 3)));
4610#line 4610 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4611 _return: OMC_LABEL_UNUSED__attribute__((unused))
4612 threadData->mmc_jumper = old_mmc_jumper;
4613 return _flatModel;
4614}
4615
4616DLLExport
4617modelica_metatype omc_NFUnitCheck_FunctionUnitCache_emptyCache(threadData_t *threadData, modelica_integer _size)
4618{
4619 modelica_metatype _table = NULL((void*)0);
4620 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
4621 MMC_SO()mmc_check_stackoverflow(threadData);
4622 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4623 // _table has no default value.
4624#line 88 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4625 tmpMeta[0] = mmc_mk_box4(0, boxvar_stringHashDjb2Mod((void*)((char*)(&(boxvar_lit_stringHashDjb2Mod).header) +
3))
, boxvar_stringEq((void*)((char*)(&(boxvar_lit_stringEq).header) + 3)), boxvar_Util_id((void*)((char*)(&(boxvar_lit_Util_id).header) + 3)), boxvar_NFUnitCheck_FunctionUnitCache_dummyPrint((void*)((char*)(&(boxvar_lit_NFUnitCheck_FunctionUnitCache_dummyPrint
).header) + 3))
);
4626#line 88 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFUnitCheck.mo"
4627 _table = omc_BaseHashTable_emptyHashTableWork(threadData, _size, tmpMeta[0]);
4628#line 4628 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFUnitCheck.c"
4629 _return: OMC_LABEL_UNUSED__attribute__((unused))
4630 return _table;
4631}
4632modelica_metatype boxptr_NFUnitCheck_FunctionUnitCache_emptyCache(threadData_t *threadData, modelica_metatype _size)
4633{
4634 modelica_integer tmp1;
4635 modelica_metatype _table = NULL((void*)0);
4636 tmp1 = mmc_unbox_integer(_size)(((mmc_sint_t) (_size)) >> 1);
4637 _table = omc_NFUnitCheck_FunctionUnitCache_emptyCache(threadData, tmp1);
4638 /* skip box _table; tuple<array<list<tuple<String, #Integer>>>, tuple<#Integer, #Integer, array<Option<tuple<String, NFUnitCheck.Functionargs>>>>, #Integer, tuple<.NFUnitCheck.FunctionUnitCache.FuncHash<function>(String key, #Integer mod) => #Integer, .NFUnitCheck.FunctionUnitCache.FuncEq<function>(String key1, String key2) => #Boolean, .NFUnitCheck.FunctionUnitCache.FuncKeyStr<function>(String key) => String, .NFUnitCheck.FunctionUnitCache.FuncValueStr<function>(NFUnitCheck.Functionargs value) => String>> */
4639 return _table;
4640}
4641
4642DLLExport
4643modelica_string omc_NFUnitCheck_FunctionUnitCache_dummyPrint(threadData_t *threadData, modelica_metatype _args)
4644{
4645 modelica_string _res = NULL((void*)0);
4646 MMC_SO()mmc_check_stackoverflow(threadData);
4647 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4648 _res = _OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3));
4649 _return: OMC_LABEL_UNUSED__attribute__((unused))
4650 return _res;
4651}
4652