Bug Summary

File:OMCompiler/Compiler/boot/build/OnRelaxation.c
Warning:line 12118, column 11
Value stored to '_subsyst' is never read

Annotated Source Code

[?] Use j/k keys for keyboard navigation

1#ifdef OMC_BASE_FILE
2 #define OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c" OMC_BASE_FILE
3#else
4 #define OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c" "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5#endif
6#include "omc_simulation_settings.h"
7#include "OnRelaxation.h"
8#define _OMC_LIT0_data"getOrphansPairsConstraints Process Orphan " "getOrphansPairsConstraints Process Orphan "
9static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT0,42,_OMC_LIT0_data)struct { mmc_uint_t header; const char data[(42)+1]; } _OMC_LIT_STRUCT0
= { ((((mmc_uint_t)42)<<(3))+((1<<(3+3))+5)), "getOrphansPairsConstraints Process Orphan "
}
;
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"\n" "\n"
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)), "\n"
}
;
13#define _OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT1)((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3))
14#define _OMC_LIT2_data";... % " ";... % "
15static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT2,7,_OMC_LIT2_data)struct { mmc_uint_t header; const char data[(7)+1]; } _OMC_LIT_STRUCT2
= { ((((mmc_uint_t)7)<<(3))+((1<<(3+3))+5)), ";... % "
}
;
16#define _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT2)((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3))
17#define _OMC_LIT3_data" " " "
18static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT3,1,_OMC_LIT3_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT3
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), " "
}
;
19#define _OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT3)((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3))
20#define _OMC_LIT4_data"0, " "0, "
21static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT4,3,_OMC_LIT4_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT4
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "0, "
}
;
22#define _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT4)((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3))
23#define _OMC_LIT5_data", " ", "
24static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT5,2,_OMC_LIT5_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT5
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), ", "
}
;
25#define _OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT5)((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3))
26#define _OMC_LIT6_data"gaussElimination failt because of non diagonal Entry for col " "gaussElimination failt because of non diagonal Entry for col "
27static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT6,61,_OMC_LIT6_data)struct { mmc_uint_t header; const char data[(61)+1]; } _OMC_LIT_STRUCT6
= { ((((mmc_uint_t)61)<<(3))+((1<<(3+3))+5)), "gaussElimination failt because of non diagonal Entry for col "
}
;
28#define _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT6)((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3))
29#define _OMC_LIT7_data"$tmp" "$tmp"
30static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT7,4,_OMC_LIT7_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT7
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), "$tmp"
}
;
31#define _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT7)((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3))
32#define _OMC_LIT8_data"_" "_"
33static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT8,1,_OMC_LIT8_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT8
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "_"
}
;
34#define _OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT8)((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3))
35static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT9,2,4)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT9
= { (((2) << 10) + (((4) & 255) << 2)),
{&DAE_Type_T__REAL__desc,MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
36#define _OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT9)((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))
37#define _OMC_LIT10_data"" ""
38static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT10,0,_OMC_LIT10_data)struct { mmc_uint_t header; const char data[(0)+1]; } _OMC_LIT_STRUCT10
= { ((((mmc_uint_t)0)<<(3))+((1<<(3+3))+5)), "" }
;
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_DEFREALLIT(_OMC_LIT_STRUCT11,0.0)struct mmc_real_lit _OMC_LIT_STRUCT11 = {0,(((8/8) << 10
) + 9),0.0}
;
41#define _OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT11)((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3))
42static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT12,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT12
= { (((8) << 10) + (((3) & 255) << 2)),
{&SourceInfo_SOURCEINFO__desc,_OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3))}};
43#define _OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT12)((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3))
44static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT13,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT13
= { (((1) << 10) + (((4) & 255) << 2)),
{&DAE_ComponentPrefix_NOCOMPPRE__desc,}};
45#define _OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT13)((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3))
46static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT14,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT14
= { (((8) << 10) + (((3) & 255) << 2)),
{&DAE_ElementSource_SOURCE__desc,_OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),_OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
47#define _OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT14)((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3))
48static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT15,1,9)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT15
= { (((1) << 10) + (((9) & 255) << 2)),
{&BackendDAE_EquationKind_UNKNOWN__EQUATION__KIND__desc,}};
49#define _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT15)((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3))
50static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT16,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT16
= { (((5) << 10) + (((3) & 255) << 2)),
{&BackendDAE_EvaluationStages_EVALUATION__STAGES__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0)))}};
51#define _OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT16)((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3))
52static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT17,4,3)struct { mmc_uint_t header; const void *data[4]; } _OMC_LIT_STRUCT17
= { (((4) << 10) + (((3) & 255) << 2)),
{&BackendDAE_EquationAttributes_EQUATION__ATTRIBUTES__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)),_OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3))}};
53#define _OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT17)((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3))
54static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT18,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT18
= { (((1) << 10) + (((3) & 255) << 2)),
{&BackendDAE_VarKind_VARIABLE__desc,}};
55#define _OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT18)((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3))
56static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT19,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT19
= { (((1) << 10) + (((5) & 255) << 2)),
{&DAE_VarDirection_BIDIR__desc,}};
57#define _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT19)((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3))
58static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT20,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT20
= { (((1) << 10) + (((5) & 255) << 2)),
{&DAE_VarParallelism_NON__PARALLEL__desc,}};
59#define _OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT20)((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3))
60static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT21,2,6)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT21
= { (((2) << 10) + (((6) & 255) << 2)),
{&DAE_Exp_BCONST__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0)))}};
61#define _OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT21)((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3))
62static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT22,1,6)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT22
= { (((1) << 10) + (((6) & 255) << 2)),
{&DAE_ConnectorType_NON__CONNECTOR__desc,}};
63#define _OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT22)((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3))
64static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT23,1,6)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT23
= { (((1) << 10) + (((6) & 255) << 2)),
{&DAE_VarInnerOuter_NOT__INNER__OUTER__desc,}};
65#define _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT23)((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3))
66#define _OMC_LIT24_data":" ":"
67static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT24,1,_OMC_LIT24_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT24
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), ":"
}
;
68#define _OMC_LIT24((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT24)((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3))
69#define _OMC_LIT25_data": " ": "
70static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT25,2,_OMC_LIT25_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT25
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), ": "
}
;
71#define _OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT25)((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3))
72static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT26,2,4)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT26
= { (((2) << 10) + (((4) & 255) << 2)),
{&DAE_Exp_RCONST__desc,_OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3))}};
73#define _OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT26)((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3))
74static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT27,2,0)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT27
= { (((2) << 10) + (((0) & 255) << 2)),
{MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
75#define _OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT27)((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3))
76#define _OMC_LIT28_data"Error in getLinkPosition1! Found Orphan with more than one parents " "Error in getLinkPosition1! Found Orphan with more than one parents "
77static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT28,67,_OMC_LIT28_data)struct { mmc_uint_t header; const char data[(67)+1]; } _OMC_LIT_STRUCT28
= { ((((mmc_uint_t)67)<<(3))+((1<<(3+3))+5)), "Error in getLinkPosition1! Found Orphan with more than one parents "
}
;
78#define _OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT28)((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3))
79#define _OMC_LIT29_data"try to relax\n" "try to relax\n"
80static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT29,13,_OMC_LIT29_data)struct { mmc_uint_t header; const char data[(13)+1]; } _OMC_LIT_STRUCT29
= { ((((mmc_uint_t)13)<<(3))+((1<<(3+3))+5)), "try to relax\n"
}
;
81#define _OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT29)((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3))
82static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT30,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT30
= { (((1) << 10) + (((3) & 255) << 2)),
{&BackendDAE_BaseClockPartitionKind_UNKNOWN__PARTITION__desc,}};
83#define _OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT30)((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3))
84static 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)),
{&BackendDAE_IndexType_ABSOLUTE__desc,}};
85#define _OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT31)((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3))
86#define _OMC_LIT32_data"Matching time: " "Matching time: "
87static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT32,16,_OMC_LIT32_data)struct { mmc_uint_t header; const char data[(16)+1]; } _OMC_LIT_STRUCT32
= { ((((mmc_uint_t)16)<<(3))+((1<<(3+3))+5)), "Matching time: "
}
;
88#define _OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT32)((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3))
89#define _OMC_LIT33_data"Identifikation time: " "Identifikation time: "
90static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT33,22,_OMC_LIT33_data)struct { mmc_uint_t header; const char data[(22)+1]; } _OMC_LIT_STRUCT33
= { ((((mmc_uint_t)22)<<(3))+((1<<(3+3))+5)), "Identifikation time: "
}
;
91#define _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT33)((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3))
92#define _OMC_LIT34_data"Reihenfolge time: " "Reihenfolge time: "
93static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT34,19,_OMC_LIT34_data)struct { mmc_uint_t header; const char data[(19)+1]; } _OMC_LIT_STRUCT34
= { ((((mmc_uint_t)19)<<(3))+((1<<(3+3))+5)), "Reihenfolge time: "
}
;
94#define _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT34)((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))
95static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT35,2,1)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT35
= { (((2) << 10) + (((1) & 255) << 2)),
{MMC_IMMEDIATE(MMC_TAGFIXNUM(-1))((void*)(((((mmc_uint_t) (-1)) << 1)+0))),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
96#define _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT35)((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3))
97#define _OMC_LIT36_data"Paarung time: " "Paarung time: "
98static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT36,15,_OMC_LIT36_data)struct { mmc_uint_t header; const char data[(15)+1]; } _OMC_LIT_STRUCT36
= { ((((mmc_uint_t)15)<<(3))+((1<<(3+3))+5)), "Paarung time: "
}
;
99#define _OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT36)((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3))
100#define _OMC_LIT37_data"Indizierung time: " "Indizierung time: "
101static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT37,19,_OMC_LIT37_data)struct { mmc_uint_t header; const char data[(19)+1]; } _OMC_LIT_STRUCT37
= { ((((mmc_uint_t)19)<<(3))+((1<<(3+3))+5)), "Indizierung time: "
}
;
102#define _OMC_LIT37((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT37)((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3))
103static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT38,2,0)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT38
= { (((2) << 10) + (((0) & 255) << 2)),
{MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0)))}};
104#define _OMC_LIT38((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT38)((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3))
105#define _OMC_LIT39_data"Gaus Elimination time: " "Gaus Elimination time: "
106static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT39,23,_OMC_LIT39_data)struct { mmc_uint_t header; const char data[(23)+1]; } _OMC_LIT_STRUCT39
= { ((((mmc_uint_t)23)<<(3))+((1<<(3+3))+5)), "Gaus Elimination time: "
}
;
107#define _OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT39)((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3))
108#define _OMC_LIT40_data"Gesamt time: " "Gesamt time: "
109static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT40,14,_OMC_LIT40_data)struct { mmc_uint_t header; const char data[(14)+1]; } _OMC_LIT_STRUCT40
= { ((((mmc_uint_t)14)<<(3))+((1<<(3+3))+5)), "Gesamt time: "
}
;
110#define _OMC_LIT40((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT40)((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3))
111#define _OMC_LIT41_data"Ok system relaxed\n" "Ok system relaxed\n"
112static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT41,18,_OMC_LIT41_data)struct { mmc_uint_t header; const char data[(18)+1]; } _OMC_LIT_STRUCT41
= { ((((mmc_uint_t)18)<<(3))+((1<<(3+3))+5)), "Ok system relaxed\n"
}
;
113#define _OMC_LIT41((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT41)((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3))
114#include "util/modelica.h"
115
116#include "OnRelaxation_includes.h"
117
118
119/* default, do not make protected functions static */
120#if !defined(PROTECTED_FUNCTION_STATIC)
121#define PROTECTED_FUNCTION_STATIC
122#endif
123PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_getConstOneVariable(threadData_t *threadData, modelica_metatype _vlst, modelica_metatype _e, modelica_metatype _vec1, modelica_metatype _vars, modelica_integer *out_i);
124PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getConstOneVariable(threadData_t *threadData, modelica_metatype _vlst, modelica_metatype _e, modelica_metatype _vec1, modelica_metatype _vars, modelica_metatype *out_i);
125static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_getConstOneVariable,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_getConstOneVariable
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_getConstOneVariable,0}};
126#define boxvar_OnRelaxation_getConstOneVariable((void*)((char*)(&(boxvar_lit_OnRelaxation_getConstOneVariable
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_getConstOneVariable)((void*)((char*)(&(boxvar_lit_OnRelaxation_getConstOneVariable
).header) + 3))
127PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_naturalMatching2(threadData_t *threadData, modelica_metatype _eqn, modelica_metatype _vars, modelica_metatype _inTpl);
128static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_naturalMatching2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_naturalMatching2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_naturalMatching2omc_OnRelaxation_naturalMatching2,0}};
129#define boxvar_OnRelaxation_naturalMatching2((void*)((char*)(&(boxvar_lit_OnRelaxation_naturalMatching2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_naturalMatching2)((void*)((char*)(&(boxvar_lit_OnRelaxation_naturalMatching2
).header) + 3))
130PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_naturalMatching1(threadData_t *threadData, modelica_metatype _eqn, modelica_metatype _vars, modelica_metatype _inTpl);
131static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_naturalMatching1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_naturalMatching1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_naturalMatching1omc_OnRelaxation_naturalMatching1,0}};
132#define boxvar_OnRelaxation_naturalMatching1((void*)((char*)(&(boxvar_lit_OnRelaxation_naturalMatching1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_naturalMatching1)((void*)((char*)(&(boxvar_lit_OnRelaxation_naturalMatching1
).header) + 3))
133PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_naturalMatching(threadData_t *threadData, modelica_metatype _eqn, modelica_metatype _vars, modelica_metatype _inTpl);
134static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_naturalMatching,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_naturalMatching
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_naturalMatchingomc_OnRelaxation_naturalMatching,0}};
135#define boxvar_OnRelaxation_naturalMatching((void*)((char*)(&(boxvar_lit_OnRelaxation_naturalMatching
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_naturalMatching)((void*)((char*)(&(boxvar_lit_OnRelaxation_naturalMatching
).header) + 3))
136PROTECTED_FUNCTION_STATIC modelica_integer omc_OnRelaxation_aliasMatching1(threadData_t *threadData, modelica_integer _i1, modelica_integer _i2, modelica_boolean _b1, modelica_boolean _b2);
137PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_aliasMatching1(threadData_t *threadData, modelica_metatype _i1, modelica_metatype _i2, modelica_metatype _b1, modelica_metatype _b2);
138static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_aliasMatching1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_aliasMatching1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_aliasMatching1,0}};
139#define boxvar_OnRelaxation_aliasMatching1((void*)((char*)(&(boxvar_lit_OnRelaxation_aliasMatching1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_aliasMatching1)((void*)((char*)(&(boxvar_lit_OnRelaxation_aliasMatching1
).header) + 3))
140PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_aliasMatching(threadData_t *threadData, modelica_metatype _eqn, modelica_metatype _vars, modelica_metatype _inTpl);
141static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_aliasMatching,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_aliasMatching
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_aliasMatchingomc_OnRelaxation_aliasMatching,0}};
142#define boxvar_OnRelaxation_aliasMatching((void*)((char*)(&(boxvar_lit_OnRelaxation_aliasMatching)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_aliasMatching)((void*)((char*)(&(boxvar_lit_OnRelaxation_aliasMatching)
.header) + 3))
143PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_vectorMatching1(threadData_t *threadData, modelica_metatype _e1, modelica_metatype _e2, modelica_integer _size, modelica_metatype _vars, modelica_metatype _inTpl);
144PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_vectorMatching1(threadData_t *threadData, modelica_metatype _e1, modelica_metatype _e2, modelica_metatype _size, modelica_metatype _vars, modelica_metatype _inTpl);
145static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_vectorMatching1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_vectorMatching1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_vectorMatching1,0}};
146#define boxvar_OnRelaxation_vectorMatching1((void*)((char*)(&(boxvar_lit_OnRelaxation_vectorMatching1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_vectorMatching1)((void*)((char*)(&(boxvar_lit_OnRelaxation_vectorMatching1
).header) + 3))
147PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_vectorMatching(threadData_t *threadData, modelica_metatype _eqn, modelica_metatype _vars, modelica_metatype _inTpl);
148static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_vectorMatching,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_vectorMatching
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_vectorMatchingomc_OnRelaxation_vectorMatching,0}};
149#define boxvar_OnRelaxation_vectorMatching((void*)((char*)(&(boxvar_lit_OnRelaxation_vectorMatching
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_vectorMatching)((void*)((char*)(&(boxvar_lit_OnRelaxation_vectorMatching
).header) + 3))
150PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_onefreeMatchingBFS1(threadData_t *threadData, modelica_metatype _rows, modelica_integer _c, modelica_metatype _mt, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _columark, modelica_integer _mark, modelica_metatype _inNextQeue);
151PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_onefreeMatchingBFS1(threadData_t *threadData, modelica_metatype _rows, modelica_metatype _c, modelica_metatype _mt, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _columark, modelica_metatype _mark, modelica_metatype _inNextQeue);
152static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_onefreeMatchingBFS1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_onefreeMatchingBFS1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_onefreeMatchingBFS1,0}};
153#define boxvar_OnRelaxation_onefreeMatchingBFS1((void*)((char*)(&(boxvar_lit_OnRelaxation_onefreeMatchingBFS1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_onefreeMatchingBFS1)((void*)((char*)(&(boxvar_lit_OnRelaxation_onefreeMatchingBFS1
).header) + 3))
154PROTECTED_FUNCTION_STATIC modelica_boolean omc_OnRelaxation_isAssignedSaveEnhanced(threadData_t *threadData, modelica_metatype _ass, modelica_integer _inTpl);
155PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_isAssignedSaveEnhanced(threadData_t *threadData, modelica_metatype _ass, modelica_metatype _inTpl);
156static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_isAssignedSaveEnhanced,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_isAssignedSaveEnhanced
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_isAssignedSaveEnhanced,0}};
157#define boxvar_OnRelaxation_isAssignedSaveEnhanced((void*)((char*)(&(boxvar_lit_OnRelaxation_isAssignedSaveEnhanced
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_isAssignedSaveEnhanced)((void*)((char*)(&(boxvar_lit_OnRelaxation_isAssignedSaveEnhanced
).header) + 3))
158PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_onefreeMatchingBFS(threadData_t *threadData, modelica_metatype _queue, modelica_metatype _m, modelica_metatype _mt, modelica_integer _size, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _columark, modelica_integer _mark, modelica_metatype _nextQeue);
159PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_onefreeMatchingBFS(threadData_t *threadData, modelica_metatype _queue, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _size, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _columark, modelica_metatype _mark, modelica_metatype _nextQeue);
160static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_onefreeMatchingBFS,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_onefreeMatchingBFS
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_onefreeMatchingBFS,0}};
161#define boxvar_OnRelaxation_onefreeMatchingBFS((void*)((char*)(&(boxvar_lit_OnRelaxation_onefreeMatchingBFS
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_onefreeMatchingBFS)((void*)((char*)(&(boxvar_lit_OnRelaxation_onefreeMatchingBFS
).header) + 3))
162PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_unassignedLst(threadData_t *threadData, modelica_metatype _vlst, modelica_metatype _ass1);
163static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_unassignedLst,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_unassignedLst
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_unassignedLstomc_OnRelaxation_unassignedLst,0}};
164#define boxvar_OnRelaxation_unassignedLst((void*)((char*)(&(boxvar_lit_OnRelaxation_unassignedLst)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_unassignedLst)((void*)((char*)(&(boxvar_lit_OnRelaxation_unassignedLst)
.header) + 3))
165PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_assignLst(threadData_t *threadData, modelica_metatype _vlst, modelica_integer _e, modelica_metatype _ass1, modelica_metatype _ass2);
166PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_assignLst(threadData_t *threadData, modelica_metatype _vlst, modelica_metatype _e, modelica_metatype _ass1, modelica_metatype _ass2);
167static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_assignLst,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_assignLst
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_assignLst,0}};
168#define boxvar_OnRelaxation_assignLst((void*)((char*)(&(boxvar_lit_OnRelaxation_assignLst).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_assignLst)((void*)((char*)(&(boxvar_lit_OnRelaxation_assignLst).header
) + 3))
169PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_expHasCreftraverser(threadData_t *threadData, modelica_metatype _e, modelica_metatype _inTpl, modelica_boolean *out_cont, modelica_metatype *out_outTpl);
170PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_expHasCreftraverser(threadData_t *threadData, modelica_metatype _e, modelica_metatype _inTpl, modelica_metatype *out_cont, modelica_metatype *out_outTpl);
171static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_expHasCreftraverser,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_expHasCreftraverser
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_expHasCreftraverser,0}};
172#define boxvar_OnRelaxation_expHasCreftraverser((void*)((char*)(&(boxvar_lit_OnRelaxation_expHasCreftraverser
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_expHasCreftraverser)((void*)((char*)(&(boxvar_lit_OnRelaxation_expHasCreftraverser
).header) + 3))
173PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_addCrefandParentsToSet(threadData_t *threadData, modelica_metatype _inCref, modelica_metatype _ihs, modelica_metatype _oprecr);
174static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_addCrefandParentsToSet,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_addCrefandParentsToSet
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_addCrefandParentsToSetomc_OnRelaxation_addCrefandParentsToSet,0}};
175#define boxvar_OnRelaxation_addCrefandParentsToSet((void*)((char*)(&(boxvar_lit_OnRelaxation_addCrefandParentsToSet
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_addCrefandParentsToSet)((void*)((char*)(&(boxvar_lit_OnRelaxation_addCrefandParentsToSet
).header) + 3))
176PROTECTED_FUNCTION_STATIC modelica_boolean omc_OnRelaxation_expHasCref(threadData_t *threadData, modelica_metatype _inExp, modelica_metatype _cr);
177PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_expHasCref(threadData_t *threadData, modelica_metatype _inExp, modelica_metatype _cr);
178static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_expHasCref,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_expHasCref
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_expHasCref,0}};
179#define boxvar_OnRelaxation_expHasCref((void*)((char*)(&(boxvar_lit_OnRelaxation_expHasCref).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_expHasCref)((void*)((char*)(&(boxvar_lit_OnRelaxation_expHasCref).header
) + 3))
180PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_getOrphans(threadData_t *threadData, modelica_integer _indx, modelica_integer _size, modelica_metatype _ass, modelica_metatype _inOrphans);
181PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getOrphans(threadData_t *threadData, modelica_metatype _indx, modelica_metatype _size, modelica_metatype _ass, modelica_metatype _inOrphans);
182static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_getOrphans,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_getOrphans
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_getOrphans,0}};
183#define boxvar_OnRelaxation_getOrphans((void*)((char*)(&(boxvar_lit_OnRelaxation_getOrphans).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_getOrphans)((void*)((char*)(&(boxvar_lit_OnRelaxation_getOrphans).header
) + 3))
184PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_markIndexdColums(threadData_t *threadData, modelica_integer _i, modelica_integer _size, modelica_integer _mark, modelica_metatype _colummarks, modelica_metatype _vec2);
185PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_markIndexdColums(threadData_t *threadData, modelica_metatype _i, modelica_metatype _size, modelica_metatype _mark, modelica_metatype _colummarks, modelica_metatype _vec2);
186static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_markIndexdColums,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_markIndexdColums
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_markIndexdColums,0}};
187#define boxvar_OnRelaxation_markIndexdColums((void*)((char*)(&(boxvar_lit_OnRelaxation_markIndexdColums
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_markIndexdColums)((void*)((char*)(&(boxvar_lit_OnRelaxation_markIndexdColums
).header) + 3))
188PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_getIndexesForEqnsRest(threadData_t *threadData, modelica_integer _i, modelica_integer _size, modelica_integer _id, modelica_integer _mark, modelica_metatype _colummarks, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _vec1, modelica_metatype _vec2);
189PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_getIndexesForEqnsRest(threadData_t *threadData, modelica_metatype _i, modelica_metatype _size, modelica_metatype _id, modelica_metatype _mark, modelica_metatype _colummarks, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _vec1, modelica_metatype _vec2);
190static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_getIndexesForEqnsRest,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_getIndexesForEqnsRest
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_getIndexesForEqnsRest,0}};
191#define boxvar_OnRelaxation_getIndexesForEqnsRest((void*)((char*)(&(boxvar_lit_OnRelaxation_getIndexesForEqnsRest
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_getIndexesForEqnsRest)((void*)((char*)(&(boxvar_lit_OnRelaxation_getIndexesForEqnsRest
).header) + 3))
192PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_markIndexSubgraph(threadData_t *threadData, modelica_boolean _b, modelica_metatype _r, modelica_integer _mark, modelica_metatype _rowmarks);
193PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_markIndexSubgraph(threadData_t *threadData, modelica_metatype _b, modelica_metatype _r, modelica_metatype _mark, modelica_metatype _rowmarks);
194static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_markIndexSubgraph,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_markIndexSubgraph
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_markIndexSubgraph,0}};
195#define boxvar_OnRelaxation_markIndexSubgraph((void*)((char*)(&(boxvar_lit_OnRelaxation_markIndexSubgraph
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_markIndexSubgraph)((void*)((char*)(&(boxvar_lit_OnRelaxation_markIndexSubgraph
).header) + 3))
196PROTECTED_FUNCTION_STATIC modelica_boolean omc_OnRelaxation_getIndexSubGraph(threadData_t *threadData, modelica_metatype _rows, modelica_metatype _vorphan, modelica_metatype _m, modelica_metatype _mT, modelica_integer _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _orowmarks, modelica_metatype _ocolummarks, modelica_metatype _ass1, modelica_metatype _ass2, modelica_boolean _ifound);
197PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getIndexSubGraph(threadData_t *threadData, modelica_metatype _rows, modelica_metatype _vorphan, modelica_metatype _m, modelica_metatype _mT, modelica_metatype _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _orowmarks, modelica_metatype _ocolummarks, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _ifound);
198static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_getIndexSubGraph,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_getIndexSubGraph
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_getIndexSubGraph,0}};
199#define boxvar_OnRelaxation_getIndexSubGraph((void*)((char*)(&(boxvar_lit_OnRelaxation_getIndexSubGraph
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_getIndexSubGraph)((void*)((char*)(&(boxvar_lit_OnRelaxation_getIndexSubGraph
).header) + 3))
200PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_doMark(threadData_t *threadData, modelica_integer _index, modelica_metatype _arr, modelica_integer _mark);
201PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_doMark(threadData_t *threadData, modelica_metatype _index, modelica_metatype _arr, modelica_metatype _mark);
202static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_doMark,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_doMark
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_doMark,0}};
203#define boxvar_OnRelaxation_doMark((void*)((char*)(&(boxvar_lit_OnRelaxation_doMark).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_doMark)((void*)((char*)(&(boxvar_lit_OnRelaxation_doMark).header
) + 3))
204PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_doAssign(threadData_t *threadData, modelica_integer _index, modelica_metatype _arr, modelica_metatype _assign);
205PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_doAssign(threadData_t *threadData, modelica_metatype _index, modelica_metatype _arr, modelica_metatype _assign);
206static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_doAssign,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_doAssign
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_doAssign,0}};
207#define boxvar_OnRelaxation_doAssign((void*)((char*)(&(boxvar_lit_OnRelaxation_doAssign).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_doAssign)((void*)((char*)(&(boxvar_lit_OnRelaxation_doAssign).header
) + 3))
208PROTECTED_FUNCTION_STATIC modelica_boolean omc_OnRelaxation_isNoResOrphan(threadData_t *threadData, modelica_integer _indx, modelica_metatype _ass);
209PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_isNoResOrphan(threadData_t *threadData, modelica_metatype _indx, modelica_metatype _ass);
210static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_isNoResOrphan,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_isNoResOrphan
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_isNoResOrphan,0}};
211#define boxvar_OnRelaxation_isNoResOrphan((void*)((char*)(&(boxvar_lit_OnRelaxation_isNoResOrphan)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_isNoResOrphan)((void*)((char*)(&(boxvar_lit_OnRelaxation_isNoResOrphan)
.header) + 3))
212PROTECTED_FUNCTION_STATIC modelica_boolean omc_OnRelaxation_isResOrphan(threadData_t *threadData, modelica_integer _indx, modelica_metatype _ass);
213PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_isResOrphan(threadData_t *threadData, modelica_metatype _indx, modelica_metatype _ass);
214static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_isResOrphan,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_isResOrphan
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_isResOrphan,0}};
215#define boxvar_OnRelaxation_isResOrphan((void*)((char*)(&(boxvar_lit_OnRelaxation_isResOrphan).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_isResOrphan)((void*)((char*)(&(boxvar_lit_OnRelaxation_isResOrphan).header
) + 3))
216PROTECTED_FUNCTION_STATIC modelica_boolean omc_OnRelaxation_isNoOrphan(threadData_t *threadData, modelica_integer _indx, modelica_metatype _ass);
217PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_isNoOrphan(threadData_t *threadData, modelica_metatype _indx, modelica_metatype _ass);
218static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_isNoOrphan,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_isNoOrphan
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_isNoOrphan,0}};
219#define boxvar_OnRelaxation_isNoOrphan((void*)((char*)(&(boxvar_lit_OnRelaxation_isNoOrphan).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_isNoOrphan)((void*)((char*)(&(boxvar_lit_OnRelaxation_isNoOrphan).header
) + 3))
220PROTECTED_FUNCTION_STATIC modelica_boolean omc_OnRelaxation_isOrphan(threadData_t *threadData, modelica_integer _indx, modelica_metatype _ass);
221PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_isOrphan(threadData_t *threadData, modelica_metatype _indx, modelica_metatype _ass);
222static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_isOrphan,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_isOrphan
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_isOrphan,0}};
223#define boxvar_OnRelaxation_isOrphan((void*)((char*)(&(boxvar_lit_OnRelaxation_isOrphan).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_isOrphan)((void*)((char*)(&(boxvar_lit_OnRelaxation_isOrphan).header
) + 3))
224PROTECTED_FUNCTION_STATIC modelica_boolean omc_OnRelaxation_marked(threadData_t *threadData, modelica_integer _indx, modelica_metatype _markarray, modelica_integer _mark);
225PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_marked(threadData_t *threadData, modelica_metatype _indx, modelica_metatype _markarray, modelica_metatype _mark);
226static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_marked,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_marked
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_marked,0}};
227#define boxvar_OnRelaxation_marked((void*)((char*)(&(boxvar_lit_OnRelaxation_marked).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_marked)((void*)((char*)(&(boxvar_lit_OnRelaxation_marked).header
) + 3))
228PROTECTED_FUNCTION_STATIC modelica_boolean omc_OnRelaxation_unmarked(threadData_t *threadData, modelica_integer _indx, modelica_metatype _markarray, modelica_integer _mark);
229PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_unmarked(threadData_t *threadData, modelica_metatype _indx, modelica_metatype _markarray, modelica_metatype _mark);
230static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_unmarked,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_unmarked
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_unmarked,0}};
231#define boxvar_OnRelaxation_unmarked((void*)((char*)(&(boxvar_lit_OnRelaxation_unmarked).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_unmarked)((void*)((char*)(&(boxvar_lit_OnRelaxation_unmarked).header
) + 3))
232PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_getIndexQueque1(threadData_t *threadData, modelica_metatype _rows, modelica_integer _c, modelica_metatype _mT, modelica_integer _mark, modelica_metatype _rowmarks, modelica_boolean *out_ob);
233PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getIndexQueque1(threadData_t *threadData, modelica_metatype _rows, modelica_metatype _c, modelica_metatype _mT, modelica_metatype _mark, modelica_metatype _rowmarks, modelica_metatype *out_ob);
234static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_getIndexQueque1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_getIndexQueque1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_getIndexQueque1,0}};
235#define boxvar_OnRelaxation_getIndexQueque1((void*)((char*)(&(boxvar_lit_OnRelaxation_getIndexQueque1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_getIndexQueque1)((void*)((char*)(&(boxvar_lit_OnRelaxation_getIndexQueque1
).header) + 3))
236PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_getIndexQueque(threadData_t *threadData, modelica_metatype _colums, modelica_metatype _m, modelica_metatype _mT, modelica_integer _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _vec2, modelica_metatype _queuemark, modelica_metatype _nextqueue, modelica_metatype _iqueue, modelica_metatype _iqueue1);
237PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getIndexQueque(threadData_t *threadData, modelica_metatype _colums, modelica_metatype _m, modelica_metatype _mT, modelica_metatype _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _vec2, modelica_metatype _queuemark, modelica_metatype _nextqueue, modelica_metatype _iqueue, modelica_metatype _iqueue1);
238static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_getIndexQueque,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_getIndexQueque
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_getIndexQueque,0}};
239#define boxvar_OnRelaxation_getIndexQueque((void*)((char*)(&(boxvar_lit_OnRelaxation_getIndexQueque
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_getIndexQueque)((void*)((char*)(&(boxvar_lit_OnRelaxation_getIndexQueque
).header) + 3))
240PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_setIndexQueue(threadData_t *threadData, modelica_integer _col, modelica_metatype _tpl, modelica_metatype _itpl);
241PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_setIndexQueue(threadData_t *threadData, modelica_metatype _col, modelica_metatype _tpl, modelica_metatype _itpl);
242static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_setIndexQueue,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_setIndexQueue
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_setIndexQueue,0}};
243#define boxvar_OnRelaxation_setIndexQueue((void*)((char*)(&(boxvar_lit_OnRelaxation_setIndexQueue)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_setIndexQueue)((void*)((char*)(&(boxvar_lit_OnRelaxation_setIndexQueue)
.header) + 3))
244PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_setBoarderElemts(threadData_t *threadData, modelica_metatype _elements, modelica_metatype _m, modelica_integer _mark, modelica_metatype _arr, modelica_integer _orphan);
245PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_setBoarderElemts(threadData_t *threadData, modelica_metatype _elements, modelica_metatype _m, modelica_metatype _mark, modelica_metatype _arr, modelica_metatype _orphan);
246static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_setBoarderElemts,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_setBoarderElemts
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_setBoarderElemts,0}};
247#define boxvar_OnRelaxation_setBoarderElemts((void*)((char*)(&(boxvar_lit_OnRelaxation_setBoarderElemts
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_setBoarderElemts)((void*)((char*)(&(boxvar_lit_OnRelaxation_setBoarderElemts
).header) + 3))
248PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_getBorderElements(threadData_t *threadData, modelica_metatype _elements, modelica_metatype _m, modelica_integer _mark, modelica_metatype _arr, modelica_metatype _iAcc);
249PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getBorderElements(threadData_t *threadData, modelica_metatype _elements, modelica_metatype _m, modelica_metatype _mark, modelica_metatype _arr, modelica_metatype _iAcc);
250static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_getBorderElements,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_getBorderElements
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_getBorderElements,0}};
251#define boxvar_OnRelaxation_getBorderElements((void*)((char*)(&(boxvar_lit_OnRelaxation_getBorderElements
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_getBorderElements)((void*)((char*)(&(boxvar_lit_OnRelaxation_getBorderElements
).header) + 3))
252PROTECTED_FUNCTION_STATIC modelica_integer omc_OnRelaxation_getIndexesForEqnsAdvanced(threadData_t *threadData, modelica_metatype _orphans, modelica_integer _index, modelica_metatype _m, modelica_metatype _mT, modelica_integer _imark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _orowmarks, modelica_metatype _ocolummarks, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _vec1, modelica_metatype _vec2, modelica_metatype _queuemark, modelica_metatype _vars, modelica_metatype _eqns, modelica_metatype _shared, modelica_integer _size);
253PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getIndexesForEqnsAdvanced(threadData_t *threadData, modelica_metatype _orphans, modelica_metatype _index, modelica_metatype _m, modelica_metatype _mT, modelica_metatype _imark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _orowmarks, modelica_metatype _ocolummarks, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _vec1, modelica_metatype _vec2, modelica_metatype _queuemark, modelica_metatype _vars, modelica_metatype _eqns, modelica_metatype _shared, modelica_metatype _size);
254static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_getIndexesForEqnsAdvanced,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_getIndexesForEqnsAdvanced
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_getIndexesForEqnsAdvanced,0}};
255#define boxvar_OnRelaxation_getIndexesForEqnsAdvanced((void*)((char*)(&(boxvar_lit_OnRelaxation_getIndexesForEqnsAdvanced
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_getIndexesForEqnsAdvanced)((void*)((char*)(&(boxvar_lit_OnRelaxation_getIndexesForEqnsAdvanced
).header) + 3))
256PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_getOrphansPairsConstraints1(threadData_t *threadData, modelica_metatype _eqns, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_integer _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _eqnsarr, modelica_integer _orphan, modelica_metatype _nextQueue);
257PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_getOrphansPairsConstraints1(threadData_t *threadData, modelica_metatype _eqns, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _eqnsarr, modelica_metatype _orphan, modelica_metatype _nextQueue);
258static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_getOrphansPairsConstraints1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_getOrphansPairsConstraints1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_getOrphansPairsConstraints1,0}};
259#define boxvar_OnRelaxation_getOrphansPairsConstraints1((void*)((char*)(&(boxvar_lit_OnRelaxation_getOrphansPairsConstraints1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_getOrphansPairsConstraints1)((void*)((char*)(&(boxvar_lit_OnRelaxation_getOrphansPairsConstraints1
).header) + 3))
260PROTECTED_FUNCTION_STATIC modelica_integer omc_OnRelaxation_getOrphansPairsConstraints(threadData_t *threadData, modelica_metatype _inOrphans, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_integer _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _eqns);
261PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getOrphansPairsConstraints(threadData_t *threadData, modelica_metatype _inOrphans, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _eqns);
262static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_getOrphansPairsConstraints,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_getOrphansPairsConstraints
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_getOrphansPairsConstraints,0}};
263#define boxvar_OnRelaxation_getOrphansPairsConstraints((void*)((char*)(&(boxvar_lit_OnRelaxation_getOrphansPairsConstraints
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_getOrphansPairsConstraints)((void*)((char*)(&(boxvar_lit_OnRelaxation_getOrphansPairsConstraints
).header) + 3))
264PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_getOrphansPairs1(threadData_t *threadData, modelica_metatype _rows, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_integer _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_integer _orphan, modelica_metatype _nextQueue);
265PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_getOrphansPairs1(threadData_t *threadData, modelica_metatype _rows, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _orphan, modelica_metatype _nextQueue);
266static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_getOrphansPairs1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_getOrphansPairs1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_getOrphansPairs1,0}};
267#define boxvar_OnRelaxation_getOrphansPairs1((void*)((char*)(&(boxvar_lit_OnRelaxation_getOrphansPairs1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_getOrphansPairs1)((void*)((char*)(&(boxvar_lit_OnRelaxation_getOrphansPairs1
).header) + 3))
268PROTECTED_FUNCTION_STATIC modelica_integer omc_OnRelaxation_getOrphansPairs(threadData_t *threadData, modelica_metatype _inOrphans, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_integer _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks);
269PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getOrphansPairs(threadData_t *threadData, modelica_metatype _inOrphans, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks);
270static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_getOrphansPairs,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_getOrphansPairs
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_getOrphansPairs,0}};
271#define boxvar_OnRelaxation_getOrphansPairs((void*)((char*)(&(boxvar_lit_OnRelaxation_getOrphansPairs
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_getOrphansPairs)((void*)((char*)(&(boxvar_lit_OnRelaxation_getOrphansPairs
).header) + 3))
272PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_sortVarsforOrder2(threadData_t *threadData, modelica_integer _index, modelica_metatype _inVarLst, modelica_metatype _vararray, modelica_metatype _iAcc);
273PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_sortVarsforOrder2(threadData_t *threadData, modelica_metatype _index, modelica_metatype _inVarLst, modelica_metatype _vararray, modelica_metatype _iAcc);
274static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_sortVarsforOrder2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_sortVarsforOrder2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_sortVarsforOrder2,0}};
275#define boxvar_OnRelaxation_sortVarsforOrder2((void*)((char*)(&(boxvar_lit_OnRelaxation_sortVarsforOrder2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_sortVarsforOrder2)((void*)((char*)(&(boxvar_lit_OnRelaxation_sortVarsforOrder2
).header) + 3))
276PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_sortVarsforOrder1(threadData_t *threadData, modelica_metatype _crlst, modelica_integer _index, modelica_metatype _inVarLst, modelica_metatype _vindxs, modelica_metatype _vararray, modelica_metatype _vars);
277PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_sortVarsforOrder1(threadData_t *threadData, modelica_metatype _crlst, modelica_metatype _index, modelica_metatype _inVarLst, modelica_metatype _vindxs, modelica_metatype _vararray, modelica_metatype _vars);
278static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_sortVarsforOrder1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_sortVarsforOrder1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_sortVarsforOrder1,0}};
279#define boxvar_OnRelaxation_sortVarsforOrder1((void*)((char*)(&(boxvar_lit_OnRelaxation_sortVarsforOrder1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_sortVarsforOrder1)((void*)((char*)(&(boxvar_lit_OnRelaxation_sortVarsforOrder1
).header) + 3))
280PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_sortVarsforOrder(threadData_t *threadData, modelica_metatype _inEqn, modelica_metatype _inVarLst, modelica_metatype _vindxs, modelica_metatype _vars);
281static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_sortVarsforOrder,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_sortVarsforOrder
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_sortVarsforOrderomc_OnRelaxation_sortVarsforOrder,0}};
282#define boxvar_OnRelaxation_sortVarsforOrder((void*)((char*)(&(boxvar_lit_OnRelaxation_sortVarsforOrder
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_sortVarsforOrder)((void*)((char*)(&(boxvar_lit_OnRelaxation_sortVarsforOrder
).header) + 3))
283PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_getEqnsinOrder(threadData_t *threadData, modelica_integer _indx, modelica_metatype _inTpl);
284PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getEqnsinOrder(threadData_t *threadData, modelica_metatype _indx, modelica_metatype _inTpl);
285static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_getEqnsinOrder,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_getEqnsinOrder
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_getEqnsinOrder,0}};
286#define boxvar_OnRelaxation_getEqnsinOrder((void*)((char*)(&(boxvar_lit_OnRelaxation_getEqnsinOrder
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_getEqnsinOrder)((void*)((char*)(&(boxvar_lit_OnRelaxation_getEqnsinOrder
).header) + 3))
287PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_dumpJacMatrix(threadData_t *threadData, modelica_metatype _jac, modelica_integer _row, modelica_integer _col, modelica_integer _size, modelica_metatype _vars);
288PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_dumpJacMatrix(threadData_t *threadData, modelica_metatype _jac, modelica_metatype _row, modelica_metatype _col, modelica_metatype _size, modelica_metatype _vars);
289static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_dumpJacMatrix,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_dumpJacMatrix
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_dumpJacMatrix,0}};
290#define boxvar_OnRelaxation_dumpJacMatrix((void*)((char*)(&(boxvar_lit_OnRelaxation_dumpJacMatrix)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_dumpJacMatrix)((void*)((char*)(&(boxvar_lit_OnRelaxation_dumpJacMatrix)
.header) + 3))
291PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_transformJacToMatrix(threadData_t *threadData, modelica_metatype _jac, modelica_integer _row, modelica_integer _col, modelica_integer _size, modelica_metatype _b, modelica_metatype _matrix);
292PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_transformJacToMatrix(threadData_t *threadData, modelica_metatype _jac, modelica_metatype _row, modelica_metatype _col, modelica_metatype _size, modelica_metatype _b, modelica_metatype _matrix);
293static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_transformJacToMatrix,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_transformJacToMatrix
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_transformJacToMatrix,0}};
294#define boxvar_OnRelaxation_transformJacToMatrix((void*)((char*)(&(boxvar_lit_OnRelaxation_transformJacToMatrix
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_transformJacToMatrix)((void*)((char*)(&(boxvar_lit_OnRelaxation_transformJacToMatrix
).header) + 3))
295PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_transformJacToAdjacencyMatrix(threadData_t *threadData, modelica_metatype _jac, modelica_metatype _m, modelica_metatype _mT, modelica_fnptr _func);
296static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_transformJacToAdjacencyMatrix,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_transformJacToAdjacencyMatrix
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_transformJacToAdjacencyMatrixomc_OnRelaxation_transformJacToAdjacencyMatrix,0}};
297#define boxvar_OnRelaxation_transformJacToAdjacencyMatrix((void*)((char*)(&(boxvar_lit_OnRelaxation_transformJacToAdjacencyMatrix
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_transformJacToAdjacencyMatrix)((void*)((char*)(&(boxvar_lit_OnRelaxation_transformJacToAdjacencyMatrix
).header) + 3))
298PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_transformJacToAdjacencyMatrix1(threadData_t *threadData, modelica_metatype _jac, modelica_metatype _m, modelica_metatype _ass1, modelica_metatype _ass2, modelica_fnptr _func);
299static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_transformJacToAdjacencyMatrix1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_transformJacToAdjacencyMatrix1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_transformJacToAdjacencyMatrix1omc_OnRelaxation_transformJacToAdjacencyMatrix1,0}};
300#define boxvar_OnRelaxation_transformJacToAdjacencyMatrix1((void*)((char*)(&(boxvar_lit_OnRelaxation_transformJacToAdjacencyMatrix1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_transformJacToAdjacencyMatrix1)((void*)((char*)(&(boxvar_lit_OnRelaxation_transformJacToAdjacencyMatrix1
).header) + 3))
301PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_transformJacToAdjacencyMatrix2(threadData_t *threadData, modelica_metatype _jac, modelica_metatype _m, modelica_metatype _mapIncRowEqn, modelica_metatype _eqns, modelica_metatype _ass1, modelica_metatype _ass2, modelica_fnptr _func);
302static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_transformJacToAdjacencyMatrix2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_transformJacToAdjacencyMatrix2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_transformJacToAdjacencyMatrix2omc_OnRelaxation_transformJacToAdjacencyMatrix2,0}};
303#define boxvar_OnRelaxation_transformJacToAdjacencyMatrix2((void*)((char*)(&(boxvar_lit_OnRelaxation_transformJacToAdjacencyMatrix2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_transformJacToAdjacencyMatrix2)((void*)((char*)(&(boxvar_lit_OnRelaxation_transformJacToAdjacencyMatrix2
).header) + 3))
304PROTECTED_FUNCTION_STATIC modelica_boolean omc_OnRelaxation_isConstOneMinusOne(threadData_t *threadData, modelica_metatype _inExp);
305PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_isConstOneMinusOne(threadData_t *threadData, modelica_metatype _inExp);
306static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_isConstOneMinusOne,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_isConstOneMinusOne
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_isConstOneMinusOne,0}};
307#define boxvar_OnRelaxation_isConstOneMinusOne((void*)((char*)(&(boxvar_lit_OnRelaxation_isConstOneMinusOne
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_isConstOneMinusOne)((void*)((char*)(&(boxvar_lit_OnRelaxation_isConstOneMinusOne
).header) + 3))
308PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_diagonalEntry(threadData_t *threadData, modelica_integer _col, modelica_metatype _row);
309PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_diagonalEntry(threadData_t *threadData, modelica_metatype _col, modelica_metatype _row);
310static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_diagonalEntry,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_diagonalEntry
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_diagonalEntry,0}};
311#define boxvar_OnRelaxation_diagonalEntry((void*)((char*)(&(boxvar_lit_OnRelaxation_diagonalEntry)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_diagonalEntry)((void*)((char*)(&(boxvar_lit_OnRelaxation_diagonalEntry)
.header) + 3))
312PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_gaussElimination(threadData_t *threadData, modelica_integer _col, modelica_integer _size, modelica_metatype _matrix, modelica_metatype _inVars, modelica_metatype _inEqns, modelica_metatype _inTpl, modelica_metatype *out_outEqns);
313PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_gaussElimination(threadData_t *threadData, modelica_metatype _col, modelica_metatype _size, modelica_metatype _matrix, modelica_metatype _inVars, modelica_metatype _inEqns, modelica_metatype _inTpl, modelica_metatype *out_outEqns);
314static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_gaussElimination,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_gaussElimination
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_gaussElimination,0}};
315#define boxvar_OnRelaxation_gaussElimination((void*)((char*)(&(boxvar_lit_OnRelaxation_gaussElimination
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_gaussElimination)((void*)((char*)(&(boxvar_lit_OnRelaxation_gaussElimination
).header) + 3))
316PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_gaussElimination1(threadData_t *threadData, modelica_integer _col, modelica_integer _row, modelica_integer _size, modelica_metatype _ce, modelica_metatype _matrix, modelica_metatype _inVars, modelica_metatype _inEqns, modelica_metatype _inTpl, modelica_metatype *out_outEqns, modelica_metatype *out_outTpl);
317PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_gaussElimination1(threadData_t *threadData, modelica_metatype _col, modelica_metatype _row, modelica_metatype _size, modelica_metatype _ce, modelica_metatype _matrix, modelica_metatype _inVars, modelica_metatype _inEqns, modelica_metatype _inTpl, modelica_metatype *out_outEqns, modelica_metatype *out_outTpl);
318static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_gaussElimination1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_gaussElimination1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_gaussElimination1,0}};
319#define boxvar_OnRelaxation_gaussElimination1((void*)((char*)(&(boxvar_lit_OnRelaxation_gaussElimination1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_gaussElimination1)((void*)((char*)(&(boxvar_lit_OnRelaxation_gaussElimination1
).header) + 3))
320PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_makeDummyVar(threadData_t *threadData, modelica_metatype _inTpl, modelica_metatype _e, modelica_metatype _inVars, modelica_metatype _inEqns, modelica_metatype *out_outEqns, modelica_metatype *out_outExp, modelica_metatype *out_outTpl);
321static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_makeDummyVar,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_makeDummyVar
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_makeDummyVaromc_OnRelaxation_makeDummyVar,0}};
322#define boxvar_OnRelaxation_makeDummyVar((void*)((char*)(&(boxvar_lit_OnRelaxation_makeDummyVar).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_makeDummyVar)((void*)((char*)(&(boxvar_lit_OnRelaxation_makeDummyVar).
header) + 3))
323PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_removeFromCol(threadData_t *threadData, modelica_integer _i, modelica_metatype _inTpl, modelica_metatype _inAcc);
324PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_removeFromCol(threadData_t *threadData, modelica_metatype _i, modelica_metatype _inTpl, modelica_metatype _inAcc);
325static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_removeFromCol,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_removeFromCol
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_removeFromCol,0}};
326#define boxvar_OnRelaxation_removeFromCol((void*)((char*)(&(boxvar_lit_OnRelaxation_removeFromCol)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_removeFromCol)((void*)((char*)(&(boxvar_lit_OnRelaxation_removeFromCol)
.header) + 3))
327PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_mulRow(threadData_t *threadData, modelica_metatype _inTpl, modelica_metatype _e1);
328static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_mulRow,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_mulRow
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_mulRowomc_OnRelaxation_mulRow,0}};
329#define boxvar_OnRelaxation_mulRow((void*)((char*)(&(boxvar_lit_OnRelaxation_mulRow).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_mulRow)((void*)((char*)(&(boxvar_lit_OnRelaxation_mulRow).header
) + 3))
330PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_addRows(threadData_t *threadData, modelica_metatype _inA, modelica_metatype _inB, modelica_integer _col, modelica_metatype _inVars, modelica_metatype _inEqns, modelica_metatype _inTpl, modelica_metatype _inElst, modelica_metatype *out_outVars, modelica_metatype *out_outEqns, modelica_metatype *out_outTpl);
331PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_addRows(threadData_t *threadData, modelica_metatype _inA, modelica_metatype _inB, modelica_metatype _col, modelica_metatype _inVars, modelica_metatype _inEqns, modelica_metatype _inTpl, modelica_metatype _inElst, modelica_metatype *out_outVars, modelica_metatype *out_outEqns, modelica_metatype *out_outTpl);
332static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_addRows,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_addRows
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_addRows,0}};
333#define boxvar_OnRelaxation_addRows((void*)((char*)(&(boxvar_lit_OnRelaxation_addRows).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_addRows)((void*)((char*)(&(boxvar_lit_OnRelaxation_addRows).header
) + 3))
334PROTECTED_FUNCTION_STATIC modelica_string omc_OnRelaxation_dumpMatrix1(threadData_t *threadData, modelica_metatype _inTpl);
335static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_dumpMatrix1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_dumpMatrix1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_dumpMatrix1omc_OnRelaxation_dumpMatrix1,0}};
336#define boxvar_OnRelaxation_dumpMatrix1((void*)((char*)(&(boxvar_lit_OnRelaxation_dumpMatrix1).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_dumpMatrix1)((void*)((char*)(&(boxvar_lit_OnRelaxation_dumpMatrix1).header
) + 3))
337PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_dumpMatrix(threadData_t *threadData, modelica_integer _row, modelica_integer _size, modelica_metatype _matrix);
338PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_dumpMatrix(threadData_t *threadData, modelica_metatype _row, modelica_metatype _size, modelica_metatype _matrix);
339static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_dumpMatrix,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_dumpMatrix
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_dumpMatrix,0}};
340#define boxvar_OnRelaxation_dumpMatrix((void*)((char*)(&(boxvar_lit_OnRelaxation_dumpMatrix).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_dumpMatrix)((void*)((char*)(&(boxvar_lit_OnRelaxation_dumpMatrix).header
) + 3))
341PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_makeGausElimination(threadData_t *threadData, modelica_integer _row, modelica_integer _size, modelica_metatype _matrix, modelica_metatype _vars, modelica_metatype _iAcc);
342PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_makeGausElimination(threadData_t *threadData, modelica_metatype _row, modelica_metatype _size, modelica_metatype _matrix, modelica_metatype _vars, modelica_metatype _iAcc);
343static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_makeGausElimination,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_makeGausElimination
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_makeGausElimination,0}};
344#define boxvar_OnRelaxation_makeGausElimination((void*)((char*)(&(boxvar_lit_OnRelaxation_makeGausElimination
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_makeGausElimination)((void*)((char*)(&(boxvar_lit_OnRelaxation_makeGausElimination
).header) + 3))
345PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_makeGausEliminationRow(threadData_t *threadData, modelica_metatype _lst, modelica_integer _size, modelica_metatype _vars, modelica_metatype _inExp, modelica_metatype *out_outExp1);
346PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_makeGausEliminationRow(threadData_t *threadData, modelica_metatype _lst, modelica_metatype _size, modelica_metatype _vars, modelica_metatype _inExp, modelica_metatype *out_outExp1);
347static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_makeGausEliminationRow,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_makeGausEliminationRow
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_makeGausEliminationRow,0}};
348#define boxvar_OnRelaxation_makeGausEliminationRow((void*)((char*)(&(boxvar_lit_OnRelaxation_makeGausEliminationRow
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_makeGausEliminationRow)((void*)((char*)(&(boxvar_lit_OnRelaxation_makeGausEliminationRow
).header) + 3))
349PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_makeCrefExps(threadData_t *threadData, modelica_metatype _v);
350static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_makeCrefExps,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_makeCrefExps
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_makeCrefExpsomc_OnRelaxation_makeCrefExps,0}};
351#define boxvar_OnRelaxation_makeCrefExps((void*)((char*)(&(boxvar_lit_OnRelaxation_makeCrefExps).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_makeCrefExps)((void*)((char*)(&(boxvar_lit_OnRelaxation_makeCrefExps).
header) + 3))
352PROTECTED_FUNCTION_STATIC modelica_integer omc_OnRelaxation_hasResidualOrphan(threadData_t *threadData, modelica_metatype _eqns, modelica_metatype _ass);
353PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_hasResidualOrphan(threadData_t *threadData, modelica_metatype _eqns, modelica_metatype _ass);
354static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_hasResidualOrphan,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_hasResidualOrphan
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_hasResidualOrphan,0}};
355#define boxvar_OnRelaxation_hasResidualOrphan((void*)((char*)(&(boxvar_lit_OnRelaxation_hasResidualOrphan
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_hasResidualOrphan)((void*)((char*)(&(boxvar_lit_OnRelaxation_hasResidualOrphan
).header) + 3))
356PROTECTED_FUNCTION_STATIC modelica_integer omc_OnRelaxation_hasResidualOrphan1(threadData_t *threadData, modelica_metatype _eqns, modelica_metatype _ass, modelica_metatype _eqnsarr);
357PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_hasResidualOrphan1(threadData_t *threadData, modelica_metatype _eqns, modelica_metatype _ass, modelica_metatype _eqnsarr);
358static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_hasResidualOrphan1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_hasResidualOrphan1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_hasResidualOrphan1,0}};
359#define boxvar_OnRelaxation_hasResidualOrphan1((void*)((char*)(&(boxvar_lit_OnRelaxation_hasResidualOrphan1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_hasResidualOrphan1)((void*)((char*)(&(boxvar_lit_OnRelaxation_hasResidualOrphan1
).header) + 3))
360PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_reduceOrphancMatrix1(threadData_t *threadData, modelica_metatype _comps, modelica_metatype _comps1, modelica_metatype _m);
361static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_reduceOrphancMatrix1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_reduceOrphancMatrix1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_reduceOrphancMatrix1omc_OnRelaxation_reduceOrphancMatrix1,0}};
362#define boxvar_OnRelaxation_reduceOrphancMatrix1((void*)((char*)(&(boxvar_lit_OnRelaxation_reduceOrphancMatrix1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_reduceOrphancMatrix1)((void*)((char*)(&(boxvar_lit_OnRelaxation_reduceOrphancMatrix1
).header) + 3))
363PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_reduceOrphancMatrix(threadData_t *threadData, modelica_metatype _comps, modelica_metatype _m);
364static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_reduceOrphancMatrix,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_reduceOrphancMatrix
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_reduceOrphancMatrixomc_OnRelaxation_reduceOrphancMatrix,0}};
365#define boxvar_OnRelaxation_reduceOrphancMatrix((void*)((char*)(&(boxvar_lit_OnRelaxation_reduceOrphancMatrix
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_reduceOrphancMatrix)((void*)((char*)(&(boxvar_lit_OnRelaxation_reduceOrphancMatrix
).header) + 3))
366PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_getOrphansOrderEdvanced3(threadData_t *threadData, modelica_metatype _roots, modelica_metatype _otherorphans, modelica_metatype _constraints, modelica_metatype _vorphans, modelica_metatype _vorphansarray, modelica_integer _mark, modelica_metatype _rowmarks, modelica_integer *out_omark);
367PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getOrphansOrderEdvanced3(threadData_t *threadData, modelica_metatype _roots, modelica_metatype _otherorphans, modelica_metatype _constraints, modelica_metatype _vorphans, modelica_metatype _vorphansarray, modelica_metatype _mark, modelica_metatype _rowmarks, modelica_metatype *out_omark);
368static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_getOrphansOrderEdvanced3,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_getOrphansOrderEdvanced3
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_getOrphansOrderEdvanced3,0}};
369#define boxvar_OnRelaxation_getOrphansOrderEdvanced3((void*)((char*)(&(boxvar_lit_OnRelaxation_getOrphansOrderEdvanced3
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_getOrphansOrderEdvanced3)((void*)((char*)(&(boxvar_lit_OnRelaxation_getOrphansOrderEdvanced3
).header) + 3))
370PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_getOrder(threadData_t *threadData, modelica_metatype _comp, modelica_metatype _inorder);
371static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_getOrder,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_getOrder
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_getOrderomc_OnRelaxation_getOrder,0}};
372#define boxvar_OnRelaxation_getOrder((void*)((char*)(&(boxvar_lit_OnRelaxation_getOrder).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_getOrder)((void*)((char*)(&(boxvar_lit_OnRelaxation_getOrder).header
) + 3))
373PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_getOrphansAdjacencyMatrix(threadData_t *threadData, modelica_metatype _orphans, modelica_metatype _invmap, modelica_metatype _vorphansarray, modelica_metatype _mT, modelica_boolean _addself, modelica_metatype *out_outMT);
374PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getOrphansAdjacencyMatrix(threadData_t *threadData, modelica_metatype _orphans, modelica_metatype _invmap, modelica_metatype _vorphansarray, modelica_metatype _mT, modelica_metatype _addself, modelica_metatype *out_outMT);
375static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_getOrphansAdjacencyMatrix,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_getOrphansAdjacencyMatrix
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_getOrphansAdjacencyMatrix,0}};
376#define boxvar_OnRelaxation_getOrphansAdjacencyMatrix((void*)((char*)(&(boxvar_lit_OnRelaxation_getOrphansAdjacencyMatrix
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_getOrphansAdjacencyMatrix)((void*)((char*)(&(boxvar_lit_OnRelaxation_getOrphansAdjacencyMatrix
).header) + 3))
377PROTECTED_FUNCTION_STATIC modelica_integer omc_OnRelaxation_getInvMap(threadData_t *threadData, modelica_integer _orphan, modelica_metatype _invmap, modelica_integer _index);
378PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getInvMap(threadData_t *threadData, modelica_metatype _orphan, modelica_metatype _invmap, modelica_metatype _index);
379static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_getInvMap,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_getInvMap
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_getInvMap,0}};
380#define boxvar_OnRelaxation_getInvMap((void*)((char*)(&(boxvar_lit_OnRelaxation_getInvMap).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_getInvMap)((void*)((char*)(&(boxvar_lit_OnRelaxation_getInvMap).header
) + 3))
381PROTECTED_FUNCTION_STATIC modelica_integer omc_OnRelaxation_getOrphansOrderEdvanced4(threadData_t *threadData, modelica_metatype _linklst, modelica_metatype _m, modelica_metatype _mt, modelica_integer _imark, modelica_metatype _rowmarks, modelica_metatype _iorder, modelica_metatype _iAcc);
382PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getOrphansOrderEdvanced4(threadData_t *threadData, modelica_metatype _linklst, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _imark, modelica_metatype _rowmarks, modelica_metatype _iorder, modelica_metatype _iAcc);
383static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_getOrphansOrderEdvanced4,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_getOrphansOrderEdvanced4
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_getOrphansOrderEdvanced4,0}};
384#define boxvar_OnRelaxation_getOrphansOrderEdvanced4((void*)((char*)(&(boxvar_lit_OnRelaxation_getOrphansOrderEdvanced4
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_getOrphansOrderEdvanced4)((void*)((char*)(&(boxvar_lit_OnRelaxation_getOrphansOrderEdvanced4
).header) + 3))
385PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_getOrphansOrderEdvanced6(threadData_t *threadData, modelica_metatype _linklst, modelica_metatype _childslst, modelica_metatype _m);
386static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_getOrphansOrderEdvanced6,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_getOrphansOrderEdvanced6
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_getOrphansOrderEdvanced6omc_OnRelaxation_getOrphansOrderEdvanced6,0}};
387#define boxvar_OnRelaxation_getOrphansOrderEdvanced6((void*)((char*)(&(boxvar_lit_OnRelaxation_getOrphansOrderEdvanced6
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_getOrphansOrderEdvanced6)((void*)((char*)(&(boxvar_lit_OnRelaxation_getOrphansOrderEdvanced6
).header) + 3))
388PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_getOrphansOrderEdvanced5(threadData_t *threadData, modelica_metatype _linklst, modelica_metatype _m, modelica_metatype _mt, modelica_integer _imark, modelica_metatype _rowmarks, modelica_metatype _iAcc, modelica_integer *out_omark);
389PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getOrphansOrderEdvanced5(threadData_t *threadData, modelica_metatype _linklst, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _imark, modelica_metatype _rowmarks, modelica_metatype _iAcc, modelica_metatype *out_omark);
390static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_getOrphansOrderEdvanced5,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_getOrphansOrderEdvanced5
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_getOrphansOrderEdvanced5,0}};
391#define boxvar_OnRelaxation_getOrphansOrderEdvanced5((void*)((char*)(&(boxvar_lit_OnRelaxation_getOrphansOrderEdvanced5
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_getOrphansOrderEdvanced5)((void*)((char*)(&(boxvar_lit_OnRelaxation_getOrphansOrderEdvanced5
).header) + 3))
392PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_getLinkPosition1(threadData_t *threadData, modelica_metatype _orphans, modelica_metatype _m, modelica_metatype _mt, modelica_integer _mark, modelica_metatype _rowmarks, modelica_integer _preorphan, modelica_metatype _iAcc);
393PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getLinkPosition1(threadData_t *threadData, modelica_metatype _orphans, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _mark, modelica_metatype _rowmarks, modelica_metatype _preorphan, modelica_metatype _iAcc);
394static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_getLinkPosition1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_getLinkPosition1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_getLinkPosition1,0}};
395#define boxvar_OnRelaxation_getLinkPosition1((void*)((char*)(&(boxvar_lit_OnRelaxation_getLinkPosition1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_getLinkPosition1)((void*)((char*)(&(boxvar_lit_OnRelaxation_getLinkPosition1
).header) + 3))
396PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_getLinkPosition(threadData_t *threadData, modelica_metatype _orphans, modelica_metatype _m, modelica_metatype _mt, modelica_integer _mark, modelica_metatype _rowmarks, modelica_metatype _iAcc);
397PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getLinkPosition(threadData_t *threadData, modelica_metatype _orphans, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _mark, modelica_metatype _rowmarks, modelica_metatype _iAcc);
398static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_getLinkPosition,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_getLinkPosition
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_getLinkPosition,0}};
399#define boxvar_OnRelaxation_getLinkPosition((void*)((char*)(&(boxvar_lit_OnRelaxation_getLinkPosition
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_getLinkPosition)((void*)((char*)(&(boxvar_lit_OnRelaxation_getLinkPosition
).header) + 3))
400PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_mergeOrphanParents(threadData_t *threadData, modelica_metatype _links, modelica_metatype _m, modelica_metatype _iAcc);
401static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_mergeOrphanParents,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_mergeOrphanParents
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_mergeOrphanParentsomc_OnRelaxation_mergeOrphanParents,0}};
402#define boxvar_OnRelaxation_mergeOrphanParents((void*)((char*)(&(boxvar_lit_OnRelaxation_mergeOrphanParents
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_mergeOrphanParents)((void*)((char*)(&(boxvar_lit_OnRelaxation_mergeOrphanParents
).header) + 3))
403PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_getConstraintesOrphansOrderEdvanced1(threadData_t *threadData, modelica_metatype _eqns, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_integer _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_integer _preorphan, modelica_metatype _orphans, modelica_metatype _nextQueue);
404PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_getConstraintesOrphansOrderEdvanced1(threadData_t *threadData, modelica_metatype _eqns, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _preorphan, modelica_metatype _orphans, modelica_metatype _nextQueue);
405static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_getConstraintesOrphansOrderEdvanced1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_getConstraintesOrphansOrderEdvanced1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_getConstraintesOrphansOrderEdvanced1,0}};
406#define boxvar_OnRelaxation_getConstraintesOrphansOrderEdvanced1((void*)((char*)(&(boxvar_lit_OnRelaxation_getConstraintesOrphansOrderEdvanced1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_getConstraintesOrphansOrderEdvanced1)((void*)((char*)(&(boxvar_lit_OnRelaxation_getConstraintesOrphansOrderEdvanced1
).header) + 3))
407PROTECTED_FUNCTION_STATIC modelica_integer omc_OnRelaxation_getConstraintesOrphansOrderEdvanced(threadData_t *threadData, modelica_metatype _inOrphans, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _mc, modelica_metatype _mct, modelica_integer _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _orphans);
408PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getConstraintesOrphansOrderEdvanced(threadData_t *threadData, modelica_metatype _inOrphans, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _mc, modelica_metatype _mct, modelica_metatype _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _orphans);
409static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_getConstraintesOrphansOrderEdvanced,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_getConstraintesOrphansOrderEdvanced
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_getConstraintesOrphansOrderEdvanced,0}};
410#define boxvar_OnRelaxation_getConstraintesOrphansOrderEdvanced((void*)((char*)(&(boxvar_lit_OnRelaxation_getConstraintesOrphansOrderEdvanced
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_getConstraintesOrphansOrderEdvanced)((void*)((char*)(&(boxvar_lit_OnRelaxation_getConstraintesOrphansOrderEdvanced
).header) + 3))
411PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_getOrphansOrderEdvanced1(threadData_t *threadData, modelica_metatype _eqns, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_integer _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_integer _preorphan, modelica_metatype _orphans, modelica_metatype _nextQueue);
412PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_getOrphansOrderEdvanced1(threadData_t *threadData, modelica_metatype _eqns, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _preorphan, modelica_metatype _orphans, modelica_metatype _nextQueue);
413static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_getOrphansOrderEdvanced1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_getOrphansOrderEdvanced1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_getOrphansOrderEdvanced1,0}};
414#define boxvar_OnRelaxation_getOrphansOrderEdvanced1((void*)((char*)(&(boxvar_lit_OnRelaxation_getOrphansOrderEdvanced1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_getOrphansOrderEdvanced1)((void*)((char*)(&(boxvar_lit_OnRelaxation_getOrphansOrderEdvanced1
).header) + 3))
415PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_addPreOrphans(threadData_t *threadData, modelica_integer _orphan, modelica_metatype _preorphans, modelica_metatype _arr);
416PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_addPreOrphans(threadData_t *threadData, modelica_metatype _orphan, modelica_metatype _preorphans, modelica_metatype _arr);
417static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_addPreOrphans,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_addPreOrphans
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_addPreOrphans,0}};
418#define boxvar_OnRelaxation_addPreOrphans((void*)((char*)(&(boxvar_lit_OnRelaxation_addPreOrphans)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_addPreOrphans)((void*)((char*)(&(boxvar_lit_OnRelaxation_addPreOrphans)
.header) + 3))
419PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_addPreOrphan(threadData_t *threadData, modelica_integer _orphan, modelica_integer _preorphan, modelica_metatype _arr);
420PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_addPreOrphan(threadData_t *threadData, modelica_metatype _orphan, modelica_metatype _preorphan, modelica_metatype _arr);
421static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_addPreOrphan,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_addPreOrphan
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_addPreOrphan,0}};
422#define boxvar_OnRelaxation_addPreOrphan((void*)((char*)(&(boxvar_lit_OnRelaxation_addPreOrphan).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_addPreOrphan)((void*)((char*)(&(boxvar_lit_OnRelaxation_addPreOrphan).
header) + 3))
423PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_hasOrphanAdvanced(threadData_t *threadData, modelica_metatype _rows, modelica_metatype _ass1, modelica_metatype _iAcc);
424static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_hasOrphanAdvanced,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_hasOrphanAdvanced
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_hasOrphanAdvancedomc_OnRelaxation_hasOrphanAdvanced,0}};
425#define boxvar_OnRelaxation_hasOrphanAdvanced((void*)((char*)(&(boxvar_lit_OnRelaxation_hasOrphanAdvanced
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_hasOrphanAdvanced)((void*)((char*)(&(boxvar_lit_OnRelaxation_hasOrphanAdvanced
).header) + 3))
426PROTECTED_FUNCTION_STATIC modelica_integer omc_OnRelaxation_getOrphansOrderEdvanced(threadData_t *threadData, modelica_metatype _inOrphans, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _mc, modelica_metatype _mct, modelica_integer _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _orphans);
427PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getOrphansOrderEdvanced(threadData_t *threadData, modelica_metatype _inOrphans, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _mc, modelica_metatype _mct, modelica_metatype _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _orphans);
428static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_getOrphansOrderEdvanced,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_getOrphansOrderEdvanced
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_getOrphansOrderEdvanced,0}};
429#define boxvar_OnRelaxation_getOrphansOrderEdvanced((void*)((char*)(&(boxvar_lit_OnRelaxation_getOrphansOrderEdvanced
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_getOrphansOrderEdvanced)((void*)((char*)(&(boxvar_lit_OnRelaxation_getOrphansOrderEdvanced
).header) + 3))
430PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_generateResidualClique(threadData_t *threadData, modelica_integer _r, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _orphans, modelica_integer _e);
431PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_generateResidualClique(threadData_t *threadData, modelica_metatype _r, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _orphans, modelica_metatype _e);
432static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_generateResidualClique,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_generateResidualClique
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_generateResidualClique,0}};
433#define boxvar_OnRelaxation_generateResidualClique((void*)((char*)(&(boxvar_lit_OnRelaxation_generateResidualClique
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_generateResidualClique)((void*)((char*)(&(boxvar_lit_OnRelaxation_generateResidualClique
).header) + 3))
434PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_generateClique(threadData_t *threadData, modelica_integer _r, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _orphans, modelica_integer _e);
435PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_generateClique(threadData_t *threadData, modelica_metatype _r, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _orphans, modelica_metatype _e);
436static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_generateClique,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_generateClique
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_generateClique,0}};
437#define boxvar_OnRelaxation_generateClique((void*)((char*)(&(boxvar_lit_OnRelaxation_generateClique
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_generateClique)((void*)((char*)(&(boxvar_lit_OnRelaxation_generateClique
).header) + 3))
438PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_prepairOrphansOrder3(threadData_t *threadData, modelica_metatype _eqns, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_integer _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_integer _preorphan, modelica_metatype _partner, modelica_metatype _orphans, modelica_metatype _prer);
439PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_prepairOrphansOrder3(threadData_t *threadData, modelica_metatype _eqns, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _preorphan, modelica_metatype _partner, modelica_metatype _orphans, modelica_metatype _prer);
440static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_prepairOrphansOrder3,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_prepairOrphansOrder3
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_prepairOrphansOrder3,0}};
441#define boxvar_OnRelaxation_prepairOrphansOrder3((void*)((char*)(&(boxvar_lit_OnRelaxation_prepairOrphansOrder3
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_prepairOrphansOrder3)((void*)((char*)(&(boxvar_lit_OnRelaxation_prepairOrphansOrder3
).header) + 3))
442PROTECTED_FUNCTION_STATIC modelica_integer omc_OnRelaxation_prepairOrphansOrder2(threadData_t *threadData, modelica_metatype _inOrphans, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_integer _imark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _orphans);
443PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_prepairOrphansOrder2(threadData_t *threadData, modelica_metatype _inOrphans, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _imark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _orphans);
444static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_prepairOrphansOrder2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_prepairOrphansOrder2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_prepairOrphansOrder2,0}};
445#define boxvar_OnRelaxation_prepairOrphansOrder2((void*)((char*)(&(boxvar_lit_OnRelaxation_prepairOrphansOrder2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_prepairOrphansOrder2)((void*)((char*)(&(boxvar_lit_OnRelaxation_prepairOrphansOrder2
).header) + 3))
446PROTECTED_FUNCTION_STATIC modelica_boolean omc_OnRelaxation_prepairOrphansOrder1(threadData_t *threadData, modelica_metatype _eqns, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_integer _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_integer _preorphan, modelica_metatype _orphans, modelica_metatype _prer, modelica_boolean _ifoundFlow, modelica_metatype _vars);
447PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_prepairOrphansOrder1(threadData_t *threadData, modelica_metatype _eqns, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _preorphan, modelica_metatype _orphans, modelica_metatype _prer, modelica_metatype _ifoundFlow, modelica_metatype _vars);
448static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_prepairOrphansOrder1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_prepairOrphansOrder1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_prepairOrphansOrder1,0}};
449#define boxvar_OnRelaxation_prepairOrphansOrder1((void*)((char*)(&(boxvar_lit_OnRelaxation_prepairOrphansOrder1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_prepairOrphansOrder1)((void*)((char*)(&(boxvar_lit_OnRelaxation_prepairOrphansOrder1
).header) + 3))
450PROTECTED_FUNCTION_STATIC modelica_integer omc_OnRelaxation_prepairOrphansOrder(threadData_t *threadData, modelica_metatype _inOrphans, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_integer _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _orphans, modelica_metatype _vars, modelica_metatype _iroots, modelica_metatype _iconstraints, modelica_metatype *out_oroots, modelica_metatype *out_oconstraints);
451PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_prepairOrphansOrder(threadData_t *threadData, modelica_metatype _inOrphans, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _orphans, modelica_metatype _vars, modelica_metatype _iroots, modelica_metatype _iconstraints, modelica_metatype *out_oroots, modelica_metatype *out_oconstraints);
452static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_prepairOrphansOrder,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_prepairOrphansOrder
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_prepairOrphansOrder,0}};
453#define boxvar_OnRelaxation_prepairOrphansOrder((void*)((char*)(&(boxvar_lit_OnRelaxation_prepairOrphansOrder
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_prepairOrphansOrder)((void*)((char*)(&(boxvar_lit_OnRelaxation_prepairOrphansOrder
).header) + 3))
454PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_generateCliquesResidual2(threadData_t *threadData, modelica_metatype _eqns, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_integer _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _orphan);
455PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_generateCliquesResidual2(threadData_t *threadData, modelica_metatype _eqns, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _orphan);
456static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_generateCliquesResidual2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_generateCliquesResidual2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_generateCliquesResidual2,0}};
457#define boxvar_OnRelaxation_generateCliquesResidual2((void*)((char*)(&(boxvar_lit_OnRelaxation_generateCliquesResidual2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_generateCliquesResidual2)((void*)((char*)(&(boxvar_lit_OnRelaxation_generateCliquesResidual2
).header) + 3))
458PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_selectNonFlows(threadData_t *threadData, modelica_metatype _rows, modelica_metatype _flowFlag);
459static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_selectNonFlows,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_selectNonFlows
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_selectNonFlowsomc_OnRelaxation_selectNonFlows,0}};
460#define boxvar_OnRelaxation_selectNonFlows((void*)((char*)(&(boxvar_lit_OnRelaxation_selectNonFlows
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_selectNonFlows)((void*)((char*)(&(boxvar_lit_OnRelaxation_selectNonFlows
).header) + 3))
461PROTECTED_FUNCTION_STATIC modelica_boolean omc_OnRelaxation_generateCliquesResidual1(threadData_t *threadData, modelica_metatype _rows, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_integer _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_boolean _ifoundFlow, modelica_metatype _vars);
462PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_generateCliquesResidual1(threadData_t *threadData, modelica_metatype _rows, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _ifoundFlow, modelica_metatype _vars);
463static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_generateCliquesResidual1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_generateCliquesResidual1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_generateCliquesResidual1,0}};
464#define boxvar_OnRelaxation_generateCliquesResidual1((void*)((char*)(&(boxvar_lit_OnRelaxation_generateCliquesResidual1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_generateCliquesResidual1)((void*)((char*)(&(boxvar_lit_OnRelaxation_generateCliquesResidual1
).header) + 3))
465PROTECTED_FUNCTION_STATIC modelica_integer omc_OnRelaxation_generateCliquesResidual(threadData_t *threadData, modelica_metatype _inOrphans, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_integer _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _vars, modelica_metatype _iconstraints, modelica_metatype *out_oconstraints);
466PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_generateCliquesResidual(threadData_t *threadData, modelica_metatype _inOrphans, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _vars, modelica_metatype _iconstraints, modelica_metatype *out_oconstraints);
467static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_generateCliquesResidual,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_generateCliquesResidual
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_generateCliquesResidual,0}};
468#define boxvar_OnRelaxation_generateCliquesResidual((void*)((char*)(&(boxvar_lit_OnRelaxation_generateCliquesResidual
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_generateCliquesResidual)((void*)((char*)(&(boxvar_lit_OnRelaxation_generateCliquesResidual
).header) + 3))
469PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_markOrphans(threadData_t *threadData, modelica_integer _o, modelica_integer _mark, modelica_metatype _rowmark);
470PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_markOrphans(threadData_t *threadData, modelica_metatype _o, modelica_metatype _mark, modelica_metatype _rowmark);
471static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_markOrphans,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_markOrphans
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_markOrphans,0}};
472#define boxvar_OnRelaxation_markOrphans((void*)((char*)(&(boxvar_lit_OnRelaxation_markOrphans).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_markOrphans)((void*)((char*)(&(boxvar_lit_OnRelaxation_markOrphans).header
) + 3))
473PROTECTED_FUNCTION_STATIC modelica_integer omc_OnRelaxation_transposeOrphanVec(threadData_t *threadData, modelica_integer _c, modelica_metatype _vec3, modelica_integer _inId);
474PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_transposeOrphanVec(threadData_t *threadData, modelica_metatype _c, modelica_metatype _vec3, modelica_metatype _inId);
475static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_transposeOrphanVec,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_transposeOrphanVec
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_transposeOrphanVec,0}};
476#define boxvar_OnRelaxation_transposeOrphanVec((void*)((char*)(&(boxvar_lit_OnRelaxation_transposeOrphanVec
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_transposeOrphanVec)((void*)((char*)(&(boxvar_lit_OnRelaxation_transposeOrphanVec
).header) + 3))
477PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_dumpVar(threadData_t *threadData, modelica_integer _id, modelica_metatype _vars);
478PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_dumpVar(threadData_t *threadData, modelica_metatype _id, modelica_metatype _vars);
479static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_dumpVar,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_dumpVar
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_dumpVar,0}};
480#define boxvar_OnRelaxation_dumpVar((void*)((char*)(&(boxvar_lit_OnRelaxation_dumpVar).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_dumpVar)((void*)((char*)(&(boxvar_lit_OnRelaxation_dumpVar).header
) + 3))
481PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_replaceEquationsAddNew(threadData_t *threadData, modelica_metatype _inEqnIndxes, modelica_metatype _inEqns, modelica_metatype _inEqSystem);
482static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_replaceEquationsAddNew,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_replaceEquationsAddNew
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_replaceEquationsAddNewomc_OnRelaxation_replaceEquationsAddNew,0}};
483#define boxvar_OnRelaxation_replaceEquationsAddNew((void*)((char*)(&(boxvar_lit_OnRelaxation_replaceEquationsAddNew
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_replaceEquationsAddNew)((void*)((char*)(&(boxvar_lit_OnRelaxation_replaceEquationsAddNew
).header) + 3))
484PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_traverserExpreplaceFinalParameter(threadData_t *threadData, modelica_metatype _inExp, modelica_metatype _tpl, modelica_metatype *out_outTpl);
485static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_traverserExpreplaceFinalParameter,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_traverserExpreplaceFinalParameter
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_traverserExpreplaceFinalParameteromc_OnRelaxation_traverserExpreplaceFinalParameter,0}};
486#define boxvar_OnRelaxation_traverserExpreplaceFinalParameter((void*)((char*)(&(boxvar_lit_OnRelaxation_traverserExpreplaceFinalParameter
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_traverserExpreplaceFinalParameter)((void*)((char*)(&(boxvar_lit_OnRelaxation_traverserExpreplaceFinalParameter
).header) + 3))
487PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_replaceFinalParameter(threadData_t *threadData, modelica_metatype _itpl);
488static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_replaceFinalParameter,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_replaceFinalParameter
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_replaceFinalParameteromc_OnRelaxation_replaceFinalParameter,0}};
489#define boxvar_OnRelaxation_replaceFinalParameter((void*)((char*)(&(boxvar_lit_OnRelaxation_replaceFinalParameter
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_replaceFinalParameter)((void*)((char*)(&(boxvar_lit_OnRelaxation_replaceFinalParameter
).header) + 3))
490PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_removeRootConnections(threadData_t *threadData, modelica_integer _orphan, modelica_metatype _orphansarray, modelica_metatype _roots);
491PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_removeRootConnections(threadData_t *threadData, modelica_metatype _orphan, modelica_metatype _orphansarray, modelica_metatype _roots);
492static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_removeRootConnections,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_removeRootConnections
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_removeRootConnections,0}};
493#define boxvar_OnRelaxation_removeRootConnections((void*)((char*)(&(boxvar_lit_OnRelaxation_removeRootConnections
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_removeRootConnections)((void*)((char*)(&(boxvar_lit_OnRelaxation_removeRootConnections
).header) + 3))
494PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_relaxSystem1(threadData_t *threadData, modelica_metatype _isyst, modelica_metatype _ishared, modelica_metatype _inComps, modelica_metatype *out_oshared, modelica_boolean *out_outRunMatching);
495PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_relaxSystem1(threadData_t *threadData, modelica_metatype _isyst, modelica_metatype _ishared, modelica_metatype _inComps, modelica_metatype *out_oshared, modelica_metatype *out_outRunMatching);
496static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_relaxSystem1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_relaxSystem1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_relaxSystem1,0}};
497#define boxvar_OnRelaxation_relaxSystem1((void*)((char*)(&(boxvar_lit_OnRelaxation_relaxSystem1).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_relaxSystem1)((void*)((char*)(&(boxvar_lit_OnRelaxation_relaxSystem1).
header) + 3))
498PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_relaxSystem0(threadData_t *threadData, modelica_metatype _isyst, modelica_metatype _inShared, modelica_boolean _inChanged, modelica_metatype *out_outShared, modelica_boolean *out_outChanged);
499PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_relaxSystem0(threadData_t *threadData, modelica_metatype _isyst, modelica_metatype _inShared, modelica_metatype _inChanged, modelica_metatype *out_outShared, modelica_metatype *out_outChanged);
500static const MMC_DEFSTRUCTLIT(boxvar_lit_OnRelaxation_relaxSystem0,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_OnRelaxation_relaxSystem0
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_OnRelaxation_relaxSystem0,0}};
501#define boxvar_OnRelaxation_relaxSystem0((void*)((char*)(&(boxvar_lit_OnRelaxation_relaxSystem0).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_OnRelaxation_relaxSystem0)((void*)((char*)(&(boxvar_lit_OnRelaxation_relaxSystem0).
header) + 3))
502
503PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_getConstOneVariable(threadData_t *threadData, modelica_metatype _vlst, modelica_metatype _e, modelica_metatype _vec1, modelica_metatype _vars, modelica_integer *out_i)
504{
505 modelica_metatype _outCr = NULL((void*)0);
506 modelica_integer _i;
507 modelica_integer tmp1_c1 __attribute__((unused)) = 0;
508 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
509 MMC_SO()mmc_check_stackoverflow(threadData);
510 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
511 // _outCr has no default value.
512 // _i has no default value.
513#line 3482 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
514
515#line 3482 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
516
517#line 517 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
518 { /* matchcontinue expression */
519 volatile modelica_metatype tmp4_1;
520 tmp4_1 = _vlst;
521 {
522 modelica_metatype _v = NULL((void*)0);
523 modelica_metatype _rest = NULL((void*)0);
524 modelica_metatype _cr = NULL((void*)0);
525 modelica_metatype _e1 = NULL((void*)0);
526 modelica_metatype _e2 = NULL((void*)0);
527 volatile mmc_switch_type tmp4;
528 int tmp5;
529 // _v has no default value.
530 // _rest has no default value.
531 // _cr has no default value.
532 // _e1 has no default value.
533 // _e2 has no default value.
534 tmp4 = 0;
535 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) {
536 tmp3_top:
537 threadData->mmc_jumper = &new_mmc_jumper;
538 for (; tmp4 < 2; tmp4++) {
539 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
540 case 0: {
541 modelica_integer tmp6;
542 modelica_boolean tmp7;
543 modelica_boolean tmp8;
544 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
545 tmpMeta[2] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
546 tmpMeta[3] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
547 _v = tmpMeta[2];
548 /* Pattern matching succeeded */
549#line 3490 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
550 _cr = omc_BackendVariable_varCref(threadData, _v);
551#line 551 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
552
553#line 3491 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
554 /* Pattern-matching tuple assignment, wild first pattern */
555#line 3491 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
556 omc_BackendVariable_getVar(threadData, _cr, _vars, &tmpMeta[2]);
557#line 3491 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
558 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto goto_2;
559#line 3491 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
560 tmpMeta[3] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
561#line 3491 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
562 tmpMeta[4] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
563#line 3491 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
564 tmp6 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
565#line 3491 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
566 _i = tmp6 /* pattern as ty=Integer */;
567#line 567 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
568
569#line 3492 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
570 /* Pattern-matching assignment */
571#line 3492 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
572 tmp7 = (mmc_unbox_integer(arrayGet(_vec1,_i) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_vec1,_i))) >>
1)
> ((modelica_integer) 0));
573#line 3492 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
574 if (0 != tmp7) goto goto_2;
575#line 575 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
576
577#line 3493 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
578 _e1 = omc_Differentiate_differentiateExpSolve(threadData, _e, _cr, mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)));
579#line 579 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
580
581#line 3494 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
582 _e2 = omc_ExpressionSimplify_simplify(threadData, _e1, NULL((void*)0));
583#line 583 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
584
585#line 3495 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
586 /* Pattern-matching assignment */
587#line 3495 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
588 tmp8 = (omc_Expression_isConstOne(threadData, _e2) || omc_Expression_isConstMinusOne(threadData, _e2));
589#line 3495 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
590 if (1 != tmp8) goto goto_2;
591#line 591 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
592#line 3496 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
593 tmpMeta[0+0] = _cr;
594#line 3496 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
595 tmp1_c1 = _i;
596#line 596 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
597 goto tmp3_done;
598 }
599 case 1: {
600 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
601 tmpMeta[2] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
602 tmpMeta[3] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
603 _rest = tmpMeta[3];
604 /* Pattern matching succeeded */
605#line 3500 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
606 tmpMeta[0+0] = omc_OnRelaxation_getConstOneVariable(threadData, _rest, _e, _vec1, _vars, &tmp1_c1);
607#line 607 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
608 goto tmp3_done;
609 }
610 }
611 goto tmp3_end;
612 tmp3_end: ;
613 }
614 goto goto_2;
615 tmp3_done:
616 (void)tmp4;
617 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
618 goto tmp3_done2;
619 goto_2:;
620 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
621 if (++tmp4 < 2) {
622 goto tmp3_top;
623 }
624 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
625 tmp3_done2:;
626 }
627 }
628 _outCr = tmpMeta[0+0];
629 _i = tmp1_c1;
630 _return: OMC_LABEL_UNUSED__attribute__((unused))
631 if (out_i) { *out_i = _i; }
632 return _outCr;
633}
634PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getConstOneVariable(threadData_t *threadData, modelica_metatype _vlst, modelica_metatype _e, modelica_metatype _vec1, modelica_metatype _vars, modelica_metatype *out_i)
635{
636 modelica_integer _i;
637 modelica_metatype _outCr = NULL((void*)0);
638 _outCr = omc_OnRelaxation_getConstOneVariable(threadData, _vlst, _e, _vec1, _vars, &_i);
639 /* skip box _outCr; DAE.ComponentRef */
640 if (out_i) { *out_i = mmc_mk_icon(_i); }
641 return _outCr;
642}
643
644PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_naturalMatching2(threadData_t *threadData, modelica_metatype _eqn, modelica_metatype _vars, modelica_metatype _inTpl)
645{
646 modelica_metatype _outTpl = NULL((void*)0);
647 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
648 MMC_SO()mmc_check_stackoverflow(threadData);
649 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
650 // _outTpl has no default value.
651#line 651 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
652 { /* matchcontinue expression */
653 volatile modelica_metatype tmp3_1;volatile modelica_metatype tmp3_2;
654 tmp3_1 = _eqn;
655 tmp3_2 = _inTpl;
656 {
657 modelica_integer _id;
658 modelica_integer _i;
659 modelica_metatype _vec1 = NULL((void*)0);
660 modelica_metatype _vec2 = NULL((void*)0);
661 modelica_metatype _e = NULL((void*)0);
662 modelica_metatype _e1 = NULL((void*)0);
663 modelica_metatype _e2 = NULL((void*)0);
664 modelica_metatype _vlst = NULL((void*)0);
665 volatile mmc_switch_type tmp3;
666 int tmp4;
667 // _id has no default value.
668 // _i has no default value.
669 // _vec1 has no default value.
670 // _vec2 has no default value.
671 // _e has no default value.
672 // _e1 has no default value.
673 // _e2 has no default value.
674 // _vlst has no default value.
675 tmp3 = 0;
676 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) {
677 tmp2_top:
678 threadData->mmc_jumper = &new_mmc_jumper;
679 for (; tmp3 < 2; tmp3++) {
680 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
681 case 0: {
682 modelica_integer tmp5;
683 modelica_boolean tmp6;
684 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;
685 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
686 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
687 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(1)))))
;
688 tmp5 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
689 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
690 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(3)))))
;
691 _e1 = tmpMeta[1];
692 _e2 = tmpMeta[2];
693 _id = tmp5 /* pattern as ty=Integer */;
694 _vec1 = tmpMeta[4];
695 _vec2 = tmpMeta[5];
696 /* Pattern matching succeeded */
697#line 3462 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
698 /* Pattern-matching assignment */
699#line 3462 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
700 tmp6 = (mmc_unbox_integer(arrayGet(_vec2,_id) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_vec2,_id))) >>
1)
> ((modelica_integer) 0));
701#line 3462 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
702 if (0 != tmp6) goto goto_1;
703#line 703 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
704
705#line 3463 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
706 _e = omc_Expression_expSub(threadData, _e1, _e2);
707#line 707 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
708
709#line 3464 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
710 _vlst = omc_BackendEquation_equationVars(threadData, _eqn, _vars);
711#line 711 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
712
713#line 3465 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
714 omc_OnRelaxation_getConstOneVariable(threadData, _vlst, _e, _vec1, _vars ,&_i);
715#line 715 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
716
717#line 3466 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
718 _vec1 = arrayUpdate(_vec1, _i, mmc_mk_integer(_id))boxptr_arrayUpdate(threadData,_vec1,mmc_mk_icon(_i),mmc_mk_icon
(_id))
;
719#line 719 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
720
721#line 3467 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
722 _vec2 = arrayUpdate(_vec2, _id, mmc_mk_integer(_i))boxptr_arrayUpdate(threadData,_vec2,mmc_mk_icon(_id),mmc_mk_icon
(_i))
;
723#line 723 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
724#line 3468 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
725 tmpMeta[1] = mmc_mk_box3(0, mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _id), _vec1, _vec2);
726#line 3468 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
727 tmpMeta[0] = tmpMeta[1];
728#line 728 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
729 goto tmp2_done;
730 }
731 case 1: {
732 modelica_integer tmp7;
733 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(1)))))
;
734 tmp7 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
735 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
736 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(3)))))
;
737 _id = tmp7 /* pattern as ty=Integer */;
738 _vec1 = tmpMeta[2];
739 _vec2 = tmpMeta[3];
740 /* Pattern matching succeeded */
741#line 3470 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
742 tmpMeta[1] = mmc_mk_box3(0, mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _id), _vec1, _vec2);
743#line 3470 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
744 tmpMeta[0] = tmpMeta[1];
745#line 745 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
746 goto tmp2_done;
747 }
748 }
749 goto tmp2_end;
750 tmp2_end: ;
751 }
752 goto goto_1;
753 tmp2_done:
754 (void)tmp3;
755 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
756 goto tmp2_done2;
757 goto_1:;
758 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
759 if (++tmp3 < 2) {
760 goto tmp2_top;
761 }
762 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
763 tmp2_done2:;
764 }
765 }
766 _outTpl = tmpMeta[0];
767 _return: OMC_LABEL_UNUSED__attribute__((unused))
768 return _outTpl;
769}
770
771PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_naturalMatching1(threadData_t *threadData, modelica_metatype _eqn, modelica_metatype _vars, modelica_metatype _inTpl)
772{
773 modelica_metatype _outTpl = NULL((void*)0);
774 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
775 MMC_SO()mmc_check_stackoverflow(threadData);
776 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
777 // _outTpl has no default value.
778#line 778 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
779 { /* matchcontinue expression */
780 volatile modelica_metatype tmp3_1;volatile modelica_metatype tmp3_2;
781 tmp3_1 = _eqn;
782 tmp3_2 = _inTpl;
783 {
784 modelica_integer _id;
785 modelica_integer _i;
786 modelica_metatype _vec1 = NULL((void*)0);
787 modelica_metatype _vec2 = NULL((void*)0);
788 modelica_metatype _cr = NULL((void*)0);
789 volatile mmc_switch_type tmp3;
790 int tmp4;
791 // _id has no default value.
792 // _i has no default value.
793 // _vec1 has no default value.
794 // _vec2 has no default value.
795 // _cr has no default value.
796 tmp3 = 0;
797 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) {
798 tmp2_top:
799 threadData->mmc_jumper = &new_mmc_jumper;
800 for (; tmp3 < 2; tmp3++) {
801 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
802 case 0: {
803 modelica_integer tmp5;
804 modelica_boolean tmp6;
805 modelica_integer tmp7;
806 modelica_boolean tmp8;
807 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;
808 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
809 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],6,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((2 +1)
<< 10) + (((6 +3) & 255) << 2)))
== 0) goto tmp2_end;
810 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
811 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(1)))))
;
812 tmp5 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
813 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
814 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(3)))))
;
815 _cr = tmpMeta[2];
816 _id = tmp5 /* pattern as ty=Integer */;
817 _vec1 = tmpMeta[4];
818 _vec2 = tmpMeta[5];
819 /* Pattern matching succeeded */
820#line 3435 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
821 /* Pattern-matching assignment */
822#line 3435 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
823 tmp6 = (mmc_unbox_integer(arrayGet(_vec2,_id) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_vec2,_id))) >>
1)
> ((modelica_integer) 0));
824#line 3435 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
825 if (0 != tmp6) goto goto_1;
826#line 826 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
827
828#line 3436 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
829 /* Pattern-matching tuple assignment, wild first pattern */
830#line 3436 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
831 omc_BackendVariable_getVar(threadData, _cr, _vars, &tmpMeta[1]);
832#line 3436 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
833 if (listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto goto_1;
834#line 3436 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
835 tmpMeta[2] = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
836#line 3436 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
837 tmpMeta[3] = MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
838#line 3436 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
839 tmp7 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
840#line 3436 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
841 _i = tmp7 /* pattern as ty=Integer */;
842#line 842 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
843
844#line 3437 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
845 /* Pattern-matching assignment */
846#line 3437 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
847 tmp8 = (mmc_unbox_integer(arrayGet(_vec1,_i) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_vec1,_i))) >>
1)
> ((modelica_integer) 0));
848#line 3437 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
849 if (0 != tmp8) goto goto_1;
850#line 850 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
851
852#line 3438 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
853 _vec1 = arrayUpdate(_vec1, _i, mmc_mk_integer(_id))boxptr_arrayUpdate(threadData,_vec1,mmc_mk_icon(_i),mmc_mk_icon
(_id))
;
854#line 854 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
855
856#line 3439 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
857 _vec2 = arrayUpdate(_vec2, _id, mmc_mk_integer(_i))boxptr_arrayUpdate(threadData,_vec2,mmc_mk_icon(_id),mmc_mk_icon
(_i))
;
858#line 858 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
859#line 3440 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
860 tmpMeta[1] = mmc_mk_box3(0, mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _id), _vec1, _vec2);
861#line 3440 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
862 tmpMeta[0] = tmpMeta[1];
863#line 863 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
864 goto tmp2_done;
865 }
866 case 1: {
867 modelica_integer tmp9;
868 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(1)))))
;
869 tmp9 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
870 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
871 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(3)))))
;
872 _id = tmp9 /* pattern as ty=Integer */;
873 _vec1 = tmpMeta[2];
874 _vec2 = tmpMeta[3];
875 /* Pattern matching succeeded */
876#line 3442 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
877 tmpMeta[1] = mmc_mk_box3(0, mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _id), _vec1, _vec2);
878#line 3442 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
879 tmpMeta[0] = tmpMeta[1];
880#line 880 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
881 goto tmp2_done;
882 }
883 }
884 goto tmp2_end;
885 tmp2_end: ;
886 }
887 goto goto_1;
888 tmp2_done:
889 (void)tmp3;
890 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
891 goto tmp2_done2;
892 goto_1:;
893 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
894 if (++tmp3 < 2) {
895 goto tmp2_top;
896 }
897 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
898 tmp2_done2:;
899 }
900 }
901 _outTpl = tmpMeta[0];
902 _return: OMC_LABEL_UNUSED__attribute__((unused))
903 return _outTpl;
904}
905
906PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_naturalMatching(threadData_t *threadData, modelica_metatype _eqn, modelica_metatype _vars, modelica_metatype _inTpl)
907{
908 modelica_metatype _outTpl = NULL((void*)0);
909 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
910 MMC_SO()mmc_check_stackoverflow(threadData);
911 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
912 // _outTpl has no default value.
913#line 913 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
914 { /* matchcontinue expression */
915 volatile modelica_metatype tmp3_1;volatile modelica_metatype tmp3_2;
916 tmp3_1 = _eqn;
917 tmp3_2 = _inTpl;
918 {
919 modelica_integer _id;
920 modelica_integer _i;
921 modelica_metatype _vec1 = NULL((void*)0);
922 modelica_metatype _vec2 = NULL((void*)0);
923 modelica_metatype _cr = NULL((void*)0);
924 volatile mmc_switch_type tmp3;
925 int tmp4;
926 // _id has no default value.
927 // _i has no default value.
928 // _vec1 has no default value.
929 // _vec2 has no default value.
930 // _cr has no default value.
931 tmp3 = 0;
932 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) {
933 tmp2_top:
934 threadData->mmc_jumper = &new_mmc_jumper;
935 for (; tmp3 < 2; tmp3++) {
936 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
937 case 0: {
938 modelica_integer tmp5;
939 modelica_boolean tmp6;
940 modelica_integer tmp7;
941 modelica_boolean tmp8;
942 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;
943 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
944 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],6,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((2 +1)
<< 10) + (((6 +3) & 255) << 2)))
== 0) goto tmp2_end;
945 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
946 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(1)))))
;
947 tmp5 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
948 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
949 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(3)))))
;
950 _cr = tmpMeta[2];
951 _id = tmp5 /* pattern as ty=Integer */;
952 _vec1 = tmpMeta[4];
953 _vec2 = tmpMeta[5];
954 /* Pattern matching succeeded */
955#line 3408 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
956 /* Pattern-matching assignment */
957#line 3408 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
958 tmp6 = (mmc_unbox_integer(arrayGet(_vec2,_id) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_vec2,_id))) >>
1)
> ((modelica_integer) 0));
959#line 3408 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
960 if (0 != tmp6) goto goto_1;
961#line 961 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
962
963#line 3409 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
964 /* Pattern-matching tuple assignment, wild first pattern */
965#line 3409 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
966 omc_BackendVariable_getVar(threadData, _cr, _vars, &tmpMeta[1]);
967#line 3409 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
968 if (listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto goto_1;
969#line 3409 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
970 tmpMeta[2] = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
971#line 3409 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
972 tmpMeta[3] = MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
973#line 3409 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
974 tmp7 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
975#line 3409 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
976 _i = tmp7 /* pattern as ty=Integer */;
977#line 977 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
978
979#line 3410 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
980 /* Pattern-matching assignment */
981#line 3410 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
982 tmp8 = (mmc_unbox_integer(arrayGet(_vec1,_i) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_vec1,_i))) >>
1)
> ((modelica_integer) 0));
983#line 3410 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
984 if (0 != tmp8) goto goto_1;
985#line 985 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
986
987#line 3411 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
988 _vec1 = arrayUpdate(_vec1, _i, mmc_mk_integer(_id))boxptr_arrayUpdate(threadData,_vec1,mmc_mk_icon(_i),mmc_mk_icon
(_id))
;
989#line 989 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
990
991#line 3412 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
992 _vec2 = arrayUpdate(_vec2, _id, mmc_mk_integer(_i))boxptr_arrayUpdate(threadData,_vec2,mmc_mk_icon(_id),mmc_mk_icon
(_i))
;
993#line 993 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
994#line 3413 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
995 tmpMeta[1] = mmc_mk_box3(0, mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _id), _vec1, _vec2);
996#line 3413 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
997 tmpMeta[0] = tmpMeta[1];
998#line 998 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
999 goto tmp2_done;
1000 }
1001 case 1: {
1002 modelica_integer tmp9;
1003 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(1)))))
;
1004 tmp9 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
1005 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
1006 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(3)))))
;
1007 _id = tmp9 /* pattern as ty=Integer */;
1008 _vec1 = tmpMeta[2];
1009 _vec2 = tmpMeta[3];
1010 /* Pattern matching succeeded */
1011#line 3415 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1012 tmpMeta[1] = mmc_mk_box3(0, mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _id), _vec1, _vec2);
1013#line 3415 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1014 tmpMeta[0] = tmpMeta[1];
1015#line 1015 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1016 goto tmp2_done;
1017 }
1018 }
1019 goto tmp2_end;
1020 tmp2_end: ;
1021 }
1022 goto goto_1;
1023 tmp2_done:
1024 (void)tmp3;
1025 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1026 goto tmp2_done2;
1027 goto_1:;
1028 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1029 if (++tmp3 < 2) {
1030 goto tmp2_top;
1031 }
1032 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1033 tmp2_done2:;
1034 }
1035 }
1036 _outTpl = tmpMeta[0];
1037 _return: OMC_LABEL_UNUSED__attribute__((unused))
1038 return _outTpl;
1039}
1040
1041PROTECTED_FUNCTION_STATIC modelica_integer omc_OnRelaxation_aliasMatching1(threadData_t *threadData, modelica_integer _i1, modelica_integer _i2, modelica_boolean _b1, modelica_boolean _b2)
1042{
1043 modelica_integer _i;
1044 modelica_integer tmp1 = 0;
1045 MMC_SO()mmc_check_stackoverflow(threadData);
1046 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1047 // _i has no default value.
1048#line 1048 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1049 { /* match expression */
1050 modelica_boolean tmp4_1;modelica_boolean tmp4_2;
1051 tmp4_1 = _b1;
1052 tmp4_2 = _b2;
1053 {
1054 volatile mmc_switch_type tmp4;
1055 int tmp5;
1056 tmp4 = 0;
1057 for (; tmp4 < 2; tmp4++) {
1058 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1059 case 0: {
1060 if (0 != tmp4_1) goto tmp3_end;
1061 if (1 != tmp4_2) goto tmp3_end;
1062 /* Pattern matching succeeded */
1063#line 3387 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1064 tmp1 = _i1;
1065#line 1065 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1066 goto tmp3_done;
1067 }
1068 case 1: {
1069 if (1 != tmp4_1) goto tmp3_end;
1070 if (0 != tmp4_2) goto tmp3_end;
1071 /* Pattern matching succeeded */
1072#line 3388 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1073 tmp1 = _i2;
1074#line 1074 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1075 goto tmp3_done;
1076 }
1077 }
1078 goto tmp3_end;
1079 tmp3_end: ;
1080 }
1081 goto goto_2;
1082 goto_2:;
1083 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1084 goto tmp3_done;
1085 tmp3_done:;
1086 }
1087 }
1088 _i = tmp1;
1089 _return: OMC_LABEL_UNUSED__attribute__((unused))
1090 return _i;
1091}
1092PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_aliasMatching1(threadData_t *threadData, modelica_metatype _i1, modelica_metatype _i2, modelica_metatype _b1, modelica_metatype _b2)
1093{
1094 modelica_integer tmp1;
1095 modelica_integer tmp2;
1096 modelica_integer tmp3;
1097 modelica_integer tmp4;
1098 modelica_integer _i;
1099 modelica_metatype out_i;
1100 tmp1 = mmc_unbox_integer(_i1)(((mmc_sint_t) (_i1)) >> 1);
1101 tmp2 = mmc_unbox_integer(_i2)(((mmc_sint_t) (_i2)) >> 1);
1102 tmp3 = mmc_unbox_integer(_b1)(((mmc_sint_t) (_b1)) >> 1);
1103 tmp4 = mmc_unbox_integer(_b2)(((mmc_sint_t) (_b2)) >> 1);
1104 _i = omc_OnRelaxation_aliasMatching1(threadData, tmp1, tmp2, tmp3, tmp4);
1105 out_i = mmc_mk_icon(_i);
1106 return out_i;
1107}
1108
1109PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_aliasMatching(threadData_t *threadData, modelica_metatype _eqn, modelica_metatype _vars, modelica_metatype _inTpl)
1110{
1111 modelica_metatype _outTpl = NULL((void*)0);
1112 modelica_metatype tmpMeta[8] __attribute__((unused)) = {0};
1113 MMC_SO()mmc_check_stackoverflow(threadData);
1114 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1115 // _outTpl has no default value.
1116#line 1116 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1117 { /* matchcontinue expression */
1118 volatile modelica_metatype tmp3_1;volatile modelica_metatype tmp3_2;
1119 tmp3_1 = _eqn;
1120 tmp3_2 = _inTpl;
1121 {
1122 modelica_integer _id;
1123 modelica_integer _i;
1124 modelica_integer _i1;
1125 modelica_integer _i2;
1126 modelica_integer _size;
1127 modelica_metatype _vec1 = NULL((void*)0);
1128 modelica_metatype _vec2 = NULL((void*)0);
1129 modelica_metatype _cr1 = NULL((void*)0);
1130 modelica_metatype _cr2 = NULL((void*)0);
1131 volatile mmc_switch_type tmp3;
1132 int tmp4;
1133 // _id has no default value.
1134 // _i has no default value.
1135 // _i1 has no default value.
1136 // _i2 has no default value.
1137 // _size has no default value.
1138 // _vec1 has no default value.
1139 // _vec2 has no default value.
1140 // _cr1 has no default value.
1141 // _cr2 has no default value.
1142 tmp3 = 0;
1143 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) {
1144 tmp2_top:
1145 threadData->mmc_jumper = &new_mmc_jumper;
1146 for (; tmp3 < 2; tmp3++) {
1147 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1148 case 0: {
1149 modelica_integer tmp5;
1150 modelica_boolean tmp6;
1151 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;
1152 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1153 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],6,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((2 +1)
<< 10) + (((6 +3) & 255) << 2)))
== 0) goto tmp2_end;
1154 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
1155 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
1156 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],6,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((2 +1)
<< 10) + (((6 +3) & 255) << 2)))
== 0) goto tmp2_end;
1157 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (2)))))
;
1158 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(1)))))
;
1159 tmp5 = mmc_unbox_integer(tmpMeta[5])(((mmc_sint_t) (tmpMeta[5])) >> 1);
1160 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
1161 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(3)))))
;
1162 _cr1 = tmpMeta[2];
1163 _cr2 = tmpMeta[4];
1164 _id = tmp5 /* pattern as ty=Integer */;
1165 _vec1 = tmpMeta[6];
1166 _vec2 = tmpMeta[7];
1167 /* Pattern matching succeeded */
1168#line 3365 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1169 /* Pattern-matching assignment */
1170#line 3365 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1171 tmp6 = (mmc_unbox_integer(arrayGet(_vec2,_id) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_vec2,_id))) >>
1)
> ((modelica_integer) 0));
1172#line 3365 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1173 if (0 != tmp6) goto goto_1;
1174#line 1174 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1175
1176#line 3366 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1177 omc_BackendVariable_getVarSingle(threadData, _cr1, _vars ,&_i1);
1178#line 1178 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1179
1180#line 3367 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1181 omc_BackendVariable_getVarSingle(threadData, _cr2, _vars ,&_i2);
1182#line 1182 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1183
1184#line 3368 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1185 _i = omc_OnRelaxation_aliasMatching1(threadData, _i1, _i2, (mmc_unbox_integer(arrayGet(_vec1,_i1) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_vec1,_i1))) >>
1)
> ((modelica_integer) 0)), (mmc_unbox_integer(arrayGet(_vec1,_i2) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_vec1,_i2))) >>
1)
> ((modelica_integer) 0)));
1186#line 1186 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1187
1188#line 3369 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1189 _vec1 = arrayUpdate(_vec1, _i, mmc_mk_integer(_id))boxptr_arrayUpdate(threadData,_vec1,mmc_mk_icon(_i),mmc_mk_icon
(_id))
;
1190#line 1190 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1191
1192#line 3370 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1193 _vec2 = arrayUpdate(_vec2, _id, mmc_mk_integer(_i))boxptr_arrayUpdate(threadData,_vec2,mmc_mk_icon(_id),mmc_mk_icon
(_i))
;
1194#line 1194 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1195#line 3371 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1196 tmpMeta[1] = mmc_mk_box3(0, mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _id), _vec1, _vec2);
1197#line 3371 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1198 tmpMeta[0] = tmpMeta[1];
1199#line 1199 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1200 goto tmp2_done;
1201 }
1202 case 1: {
1203 modelica_integer tmp7;
1204 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(1)))))
;
1205 tmp7 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
1206 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
1207 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(3)))))
;
1208 _id = tmp7 /* pattern as ty=Integer */;
1209 _vec1 = tmpMeta[2];
1210 _vec2 = tmpMeta[3];
1211 /* Pattern matching succeeded */
1212#line 3374 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1213 _size = omc_BackendEquation_equationSize(threadData, _eqn);
1214#line 1214 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1215#line 3375 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1216 tmpMeta[1] = mmc_mk_box3(0, mmc_mk_integermmc_mk_icon(_id + _size), _vec1, _vec2);
1217#line 3375 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1218 tmpMeta[0] = tmpMeta[1];
1219#line 1219 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1220 goto tmp2_done;
1221 }
1222 }
1223 goto tmp2_end;
1224 tmp2_end: ;
1225 }
1226 goto goto_1;
1227 tmp2_done:
1228 (void)tmp3;
1229 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1230 goto tmp2_done2;
1231 goto_1:;
1232 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1233 if (++tmp3 < 2) {
1234 goto tmp2_top;
1235 }
1236 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1237 tmp2_done2:;
1238 }
1239 }
1240 _outTpl = tmpMeta[0];
1241 _return: OMC_LABEL_UNUSED__attribute__((unused))
1242 return _outTpl;
1243}
1244
1245PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_vectorMatching1(threadData_t *threadData, modelica_metatype _e1, modelica_metatype _e2, modelica_integer _size, modelica_metatype _vars, modelica_metatype _inTpl)
1246{
1247 modelica_metatype _outTpl = NULL((void*)0);
1248 modelica_metatype tmpMeta[7] __attribute__((unused)) = {0};
1249 MMC_SO()mmc_check_stackoverflow(threadData);
1250 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1251 // _outTpl has no default value.
1252#line 1252 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1253 { /* matchcontinue expression */
1254 volatile modelica_metatype tmp3_1;volatile modelica_metatype tmp3_2;volatile modelica_metatype tmp3_3;
1255 tmp3_1 = _e1;
1256 tmp3_2 = _e2;
1257 tmp3_3 = _inTpl;
1258 {
1259 modelica_integer _id;
1260 modelica_metatype _vec1 = NULL((void*)0);
1261 modelica_metatype _vec2 = NULL((void*)0);
1262 modelica_metatype _cr = NULL((void*)0);
1263 modelica_metatype _crnosubs = NULL((void*)0);
1264 modelica_metatype _crlst = NULL((void*)0);
1265 modelica_metatype _crlst1 = NULL((void*)0);
1266 modelica_metatype _elst = NULL((void*)0);
1267 modelica_metatype _ilst = NULL((void*)0);
1268 modelica_metatype _set = NULL((void*)0);
1269 volatile mmc_switch_type tmp3;
1270 int tmp4;
1271 // _id has no default value.
1272 // _vec1 has no default value.
1273 // _vec2 has no default value.
1274 // _cr has no default value.
1275 // _crnosubs has no default value.
1276 // _crlst has no default value.
1277 // _crlst1 has no default value.
1278 // _elst has no default value.
1279 // _ilst has no default value.
1280 // _set has no default value.
1281 tmp3 = 0;
1282 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) {
1283 tmp2_top:
1284 threadData->mmc_jumper = &new_mmc_jumper;
1285 for (; tmp3 < 6; tmp3++) {
1286 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1287 case 0: {
1288 modelica_integer tmp5;
1289 modelica_boolean tmp6;
1290 modelica_boolean tmp7;
1291 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;
1292 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1293 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_3), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_3) - 3))) +
(1)))))
;
1294 tmp5 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
1295 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_3), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_3) - 3))) +
(2)))))
;
1296 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_3), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_3) - 3))) +
(3)))))
;
1297 _cr = tmpMeta[1];
1298 _id = tmp5 /* pattern as ty=Integer */;
1299 _vec1 = tmpMeta[3];
1300 _vec2 = tmpMeta[4];
1301 /* Pattern matching succeeded */
1302#line 3250 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1303 /* Pattern-matching assignment */
1304#line 3250 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1305 tmp6 = omc_OnRelaxation_expHasCref(threadData, _e2, _cr);
1306#line 3250 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1307 if (0 != tmp6) goto goto_1;
1308#line 1308 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1309
1310#line 3252 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1311 omc_BackendVariable_getVar(threadData, _cr, _vars ,&_ilst);
1312#line 1312 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1313
1314#line 3254 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1315 /* Pattern-matching assignment */
1316#line 3254 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1317 tmp7 = (_size == listLength(_ilst));
1318#line 3254 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1319 if (1 != tmp7) goto goto_1;
1320#line 1320 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1321
1322#line 3256 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1323 omc_OnRelaxation_unassignedLst(threadData, _ilst, _vec1);
1324#line 1324 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1325
1326#line 3258 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1327 omc_OnRelaxation_assignLst(threadData, _ilst, _id, _vec1, _vec2);
1328#line 1328 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1329#line 3259 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1330 tmpMeta[1] = mmc_mk_box3(0, mmc_mk_integermmc_mk_icon(_id + _size), _vec1, _vec2);
1331#line 3259 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1332 tmpMeta[0] = tmpMeta[1];
1333#line 1333 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1334 goto tmp2_done;
1335 }
1336 case 1: {
1337 modelica_integer tmp8;
1338 modelica_boolean tmp9;
1339 modelica_boolean tmp10;
1340 if (mmc__uniontype__metarecord__typedef__equal(tmp3_2,6,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))==(((2 +1) <<
10) + (((6 +3) & 255) << 2)))
== 0) goto tmp2_end;
1341 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
1342 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_3), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_3) - 3))) +
(1)))))
;
1343 tmp8 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
1344 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_3), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_3) - 3))) +
(2)))))
;
1345 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_3), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_3) - 3))) +
(3)))))
;
1346 _cr = tmpMeta[1];
1347 _id = tmp8 /* pattern as ty=Integer */;
1348 _vec1 = tmpMeta[3];
1349 _vec2 = tmpMeta[4];
1350 /* Pattern matching succeeded */
1351#line 3264 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1352 /* Pattern-matching assignment */
1353#line 3264 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1354 tmp9 = omc_OnRelaxation_expHasCref(threadData, _e1, _cr);
1355#line 3264 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1356 if (0 != tmp9) goto goto_1;
1357#line 1357 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1358
1359#line 3266 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1360 omc_BackendVariable_getVar(threadData, _cr, _vars ,&_ilst);
1361#line 1361 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1362
1363#line 3268 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1364 /* Pattern-matching assignment */
1365#line 3268 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1366 tmp10 = (_size == listLength(_ilst));
1367#line 3268 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1368 if (1 != tmp10) goto goto_1;
1369#line 1369 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1370
1371#line 3270 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1372 omc_OnRelaxation_unassignedLst(threadData, _ilst, _vec1);
1373#line 1373 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1374
1375#line 3272 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1376 omc_OnRelaxation_assignLst(threadData, _ilst, _id, _vec1, _vec2);
1377#line 1377 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1378#line 3273 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1379 tmpMeta[1] = mmc_mk_box3(0, mmc_mk_integermmc_mk_icon(_id + _size), _vec1, _vec2);
1380#line 3273 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1381 tmpMeta[0] = tmpMeta[1];
1382#line 1382 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1383 goto tmp2_done;
1384 }
1385 case 2: {
1386 modelica_integer tmp11;
1387 modelica_boolean tmp12;
1388 modelica_boolean tmp13;
1389 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,8,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((8 +3) & 255) << 2)))
== 0) goto tmp2_end;
1390 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1391 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],6,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((1 +1)
<< 10) + (((6 +3) & 255) << 2)))
== 0) goto tmp2_end;
1392 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
1393 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],6,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((2 +1)
<< 10) + (((6 +3) & 255) << 2)))
== 0) goto tmp2_end;
1394 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
1395 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_3), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_3) - 3))) +
(1)))))
;
1396 tmp11 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
1397 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_3), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_3) - 3))) +
(2)))))
;
1398 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_3), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_3) - 3))) +
(3)))))
;
1399 _cr = tmpMeta[3];
1400 _id = tmp11 /* pattern as ty=Integer */;
1401 _vec1 = tmpMeta[5];
1402 _vec2 = tmpMeta[6];
1403 /* Pattern matching succeeded */
1404#line 3278 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1405 /* Pattern-matching assignment */
1406#line 3278 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1407 tmp12 = omc_OnRelaxation_expHasCref(threadData, _e2, _cr);
1408#line 3278 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1409 if (0 != tmp12) goto goto_1;
1410#line 1410 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1411
1412#line 3280 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1413 omc_BackendVariable_getVar(threadData, _cr, _vars ,&_ilst);
1414#line 1414 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1415
1416#line 3282 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1417 /* Pattern-matching assignment */
1418#line 3282 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1419 tmp13 = (_size == listLength(_ilst));
1420#line 3282 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1421 if (1 != tmp13) goto goto_1;
1422#line 1422 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1423
1424#line 3284 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1425 omc_OnRelaxation_unassignedLst(threadData, _ilst, _vec1);
1426#line 1426 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1427
1428#line 3286 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1429 omc_OnRelaxation_assignLst(threadData, _ilst, _id, _vec1, _vec2);
1430#line 1430 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1431#line 3287 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1432 tmpMeta[1] = mmc_mk_box3(0, mmc_mk_integermmc_mk_icon(_id + _size), _vec1, _vec2);
1433#line 3287 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1434 tmpMeta[0] = tmpMeta[1];
1435#line 1435 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1436 goto tmp2_done;
1437 }
1438 case 3: {
1439 modelica_integer tmp14;
1440 modelica_boolean tmp15;
1441 modelica_boolean tmp16;
1442 if (mmc__uniontype__metarecord__typedef__equal(tmp3_2,8,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))==(((2 +1) <<
10) + (((8 +3) & 255) << 2)))
== 0) goto tmp2_end;
1443 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
1444 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],6,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((1 +1)
<< 10) + (((6 +3) & 255) << 2)))
== 0) goto tmp2_end;
1445 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(3)))))
;
1446 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],6,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((2 +1)
<< 10) + (((6 +3) & 255) << 2)))
== 0) goto tmp2_end;
1447 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
1448 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_3), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_3) - 3))) +
(1)))))
;
1449 tmp14 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
1450 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_3), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_3) - 3))) +
(2)))))
;
1451 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_3), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_3) - 3))) +
(3)))))
;
1452 _cr = tmpMeta[3];
1453 _id = tmp14 /* pattern as ty=Integer */;
1454 _vec1 = tmpMeta[5];
1455 _vec2 = tmpMeta[6];
1456 /* Pattern matching succeeded */
1457#line 3292 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1458 /* Pattern-matching assignment */
1459#line 3292 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1460 tmp15 = omc_OnRelaxation_expHasCref(threadData, _e1, _cr);
1461#line 3292 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1462 if (0 != tmp15) goto goto_1;
1463#line 1463 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1464
1465#line 3294 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1466 omc_BackendVariable_getVar(threadData, _cr, _vars ,&_ilst);
1467#line 1467 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1468
1469#line 3296 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1470 /* Pattern-matching assignment */
1471#line 3296 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1472 tmp16 = (_size == listLength(_ilst));
1473#line 3296 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1474 if (1 != tmp16) goto goto_1;
1475#line 1475 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1476
1477#line 3298 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1478 omc_OnRelaxation_unassignedLst(threadData, _ilst, _vec1);
1479#line 1479 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1480
1481#line 3300 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1482 omc_OnRelaxation_assignLst(threadData, _ilst, _id, _vec1, _vec2);
1483#line 1483 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1484#line 3301 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1485 tmpMeta[1] = mmc_mk_box3(0, mmc_mk_integermmc_mk_icon(_id + _size), _vec1, _vec2);
1486#line 3301 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1487 tmpMeta[0] = tmpMeta[1];
1488#line 1488 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1489 goto tmp2_done;
1490 }
1491 case 4: {
1492 modelica_integer tmp17;
1493 modelica_boolean tmp18;
1494 modelica_boolean tmp19;
1495 modelica_integer tmp20;
1496 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_3), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_3) - 3))) +
(1)))))
;
1497 tmp17 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
1498 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_3), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_3) - 3))) +
(2)))))
;
1499 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_3), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_3) - 3))) +
(3)))))
;
1500 _id = tmp17 /* pattern as ty=Integer */;
1501 _vec1 = tmpMeta[2];
1502 _vec2 = tmpMeta[3];
1503 /* Pattern matching succeeded */
1504#line 3306 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1505 _elst = omc_Expression_flattenArrayExpToList(threadData, _e1);
1506#line 1506 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1507
1508#line 3308 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1509 _crlst = omc_List_map(threadData, _elst, boxvar_Expression_expCrefNegCref((void*)((char*)(&(boxvar_lit_Expression_expCrefNegCref).
header) + 3))
);
1510#line 1510 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1511
1512#line 3309 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1513 _crlst = omc_List_uniqueOnTrue(threadData, _crlst, boxvar_ComponentReference_crefEqualNoStringCompare((void*)((char*)(&(boxvar_lit_ComponentReference_crefEqualNoStringCompare
).header) + 3))
);
1514#line 1514 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1515
1516#line 3310 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1517 /* Pattern-matching assignment */
1518#line 3310 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1519 tmp18 = (_size == listLength(_crlst));
1520#line 3310 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1521 if (1 != tmp18) goto goto_1;
1522#line 1522 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1523
1524#line 3311 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1525 /* Pattern-matching assignment */
1526#line 3311 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1527 tmpMeta[1] = _crlst;
1528#line 3311 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1529 if (listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto goto_1;
1530#line 3311 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1531 tmpMeta[2] = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
1532#line 3311 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1533 tmpMeta[3] = MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
1534#line 3311 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1535 _cr = tmpMeta[2];
1536#line 3311 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1537 _crlst1 = tmpMeta[3];
1538#line 1538 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1539
1540#line 3312 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1541 /* Pattern-matching assignment */
1542#line 3312 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1543 tmp19 = omc_List_map1BoolAnd(threadData, _crlst1, boxvar_ComponentReference_crefEqualWithoutLastSubs((void*)((char*)(&(boxvar_lit_ComponentReference_crefEqualWithoutLastSubs
).header) + 3))
, _cr);
1544#line 3312 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1545 if (1 != tmp19) goto goto_1;
1546#line 1546 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1547
1548#line 3314 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1549 _set = omc_HashSet_emptyHashSet(threadData);
1550#line 1550 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1551
1552#line 3315 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1553 _crnosubs = omc_ComponentReference_crefStripLastSubs(threadData, _cr);
1554#line 1554 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1555
1556#line 3316 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1557 _set = omc_OnRelaxation_addCrefandParentsToSet(threadData, _crnosubs, _set, mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)));
1558#line 1558 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1559
1560#line 3317 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1561 _set = omc_List_fold(threadData, _crlst, boxvar_BaseHashSet_add((void*)((char*)(&(boxvar_lit_BaseHashSet_add).header) + 3
))
, _set);
1562#line 1562 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1563
1564#line 3318 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1565 /* Pattern-matching tuple assignment, wild first pattern */
1566#line 3318 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1567 tmpMeta[3] = mmc_mk_box2(0, _set, mmc_mk_boolean(0)((0) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))));
1568#line 3318 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1569 omc_Expression_traverseExpTopDown(threadData, _e2, boxvar_OnRelaxation_expHasCreftraverser((void*)((char*)(&(boxvar_lit_OnRelaxation_expHasCreftraverser
).header) + 3))
, tmpMeta[3], &tmpMeta[1]);
1570#line 3318 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1571 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
1572#line 3318 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1573 tmp20 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
1574#line 3318 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1575 if (0 != tmp20) goto goto_1;
1576#line 1576 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1577
1578#line 3319 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1579 omc_BackendVariable_getVarLst(threadData, _crlst, _vars ,&_ilst);
1580#line 1580 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1581
1582#line 3321 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1583 omc_OnRelaxation_unassignedLst(threadData, _ilst, _vec1);
1584#line 1584 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1585
1586#line 3323 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1587 omc_OnRelaxation_assignLst(threadData, _ilst, _id, _vec1, _vec2);
1588#line 1588 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1589#line 3324 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1590 tmpMeta[1] = mmc_mk_box3(0, mmc_mk_integermmc_mk_icon(_id + _size), _vec1, _vec2);
1591#line 3324 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1592 tmpMeta[0] = tmpMeta[1];
1593#line 1593 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1594 goto tmp2_done;
1595 }
1596 case 5: {
1597 modelica_integer tmp21;
1598 modelica_boolean tmp22;
1599 modelica_boolean tmp23;
1600 modelica_integer tmp24;
1601 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_3), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_3) - 3))) +
(1)))))
;
1602 tmp21 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
1603 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_3), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_3) - 3))) +
(2)))))
;
1604 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_3), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_3) - 3))) +
(3)))))
;
1605 _id = tmp21 /* pattern as ty=Integer */;
1606 _vec1 = tmpMeta[2];
1607 _vec2 = tmpMeta[3];
1608 /* Pattern matching succeeded */
1609#line 3329 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1610 _elst = omc_Expression_flattenArrayExpToList(threadData, _e2);
1611#line 1611 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1612
1613#line 3331 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1614 _crlst = omc_List_map(threadData, _elst, boxvar_Expression_expCrefNegCref((void*)((char*)(&(boxvar_lit_Expression_expCrefNegCref).
header) + 3))
);
1615#line 1615 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1616
1617#line 3332 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1618 _crlst = omc_List_uniqueOnTrue(threadData, _crlst, boxvar_ComponentReference_crefEqualNoStringCompare((void*)((char*)(&(boxvar_lit_ComponentReference_crefEqualNoStringCompare
).header) + 3))
);
1619#line 1619 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1620
1621#line 3333 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1622 /* Pattern-matching assignment */
1623#line 3333 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1624 tmp22 = (_size == listLength(_crlst));
1625#line 3333 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1626 if (1 != tmp22) goto goto_1;
1627#line 1627 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1628
1629#line 3334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1630 /* Pattern-matching assignment */
1631#line 3334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1632 tmpMeta[1] = _crlst;
1633#line 3334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1634 if (listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto goto_1;
1635#line 3334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1636 tmpMeta[2] = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
1637#line 3334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1638 tmpMeta[3] = MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
1639#line 3334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1640 _cr = tmpMeta[2];
1641#line 3334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1642 _crlst1 = tmpMeta[3];
1643#line 1643 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1644
1645#line 3335 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1646 /* Pattern-matching assignment */
1647#line 3335 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1648 tmp23 = omc_List_map1BoolAnd(threadData, _crlst1, boxvar_ComponentReference_crefEqualWithoutLastSubs((void*)((char*)(&(boxvar_lit_ComponentReference_crefEqualWithoutLastSubs
).header) + 3))
, _cr);
1649#line 3335 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1650 if (1 != tmp23) goto goto_1;
1651#line 1651 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1652
1653#line 3337 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1654 _set = omc_HashSet_emptyHashSet(threadData);
1655#line 1655 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1656
1657#line 3338 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1658 _crnosubs = omc_ComponentReference_crefStripLastSubs(threadData, _cr);
1659#line 1659 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1660
1661#line 3339 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1662 _set = omc_OnRelaxation_addCrefandParentsToSet(threadData, _crnosubs, _set, mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)));
1663#line 1663 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1664
1665#line 3340 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1666 _set = omc_List_fold(threadData, _crlst, boxvar_BaseHashSet_add((void*)((char*)(&(boxvar_lit_BaseHashSet_add).header) + 3
))
, _set);
1667#line 1667 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1668
1669#line 3341 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1670 /* Pattern-matching tuple assignment, wild first pattern */
1671#line 3341 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1672 tmpMeta[3] = mmc_mk_box2(0, _set, mmc_mk_boolean(0)((0) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))));
1673#line 3341 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1674 omc_Expression_traverseExpTopDown(threadData, _e1, boxvar_OnRelaxation_expHasCreftraverser((void*)((char*)(&(boxvar_lit_OnRelaxation_expHasCreftraverser
).header) + 3))
, tmpMeta[3], &tmpMeta[1]);
1675#line 3341 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1676 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
1677#line 3341 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1678 tmp24 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
1679#line 3341 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1680 if (0 != tmp24) goto goto_1;
1681#line 1681 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1682
1683#line 3342 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1684 omc_BackendVariable_getVarLst(threadData, _crlst, _vars ,&_ilst);
1685#line 1685 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1686
1687#line 3344 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1688 omc_OnRelaxation_unassignedLst(threadData, _ilst, _vec1);
1689#line 1689 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1690
1691#line 3346 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1692 omc_OnRelaxation_assignLst(threadData, _ilst, _id, _vec1, _vec2);
1693#line 1693 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1694#line 3347 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1695 tmpMeta[1] = mmc_mk_box3(0, mmc_mk_integermmc_mk_icon(_id + _size), _vec1, _vec2);
1696#line 3347 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1697 tmpMeta[0] = tmpMeta[1];
1698#line 1698 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1699 goto tmp2_done;
1700 }
1701 }
1702 goto tmp2_end;
1703 tmp2_end: ;
1704 }
1705 goto goto_1;
1706 tmp2_done:
1707 (void)tmp3;
1708 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1709 goto tmp2_done2;
1710 goto_1:;
1711 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1712 if (++tmp3 < 6) {
1713 goto tmp2_top;
1714 }
1715 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1716 tmp2_done2:;
1717 }
1718 }
1719 _outTpl = tmpMeta[0];
1720 _return: OMC_LABEL_UNUSED__attribute__((unused))
1721 return _outTpl;
1722}
1723PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_vectorMatching1(threadData_t *threadData, modelica_metatype _e1, modelica_metatype _e2, modelica_metatype _size, modelica_metatype _vars, modelica_metatype _inTpl)
1724{
1725 modelica_integer tmp1;
1726 modelica_metatype _outTpl = NULL((void*)0);
1727 tmp1 = mmc_unbox_integer(_size)(((mmc_sint_t) (_size)) >> 1);
1728 _outTpl = omc_OnRelaxation_vectorMatching1(threadData, _e1, _e2, tmp1, _vars, _inTpl);
1729 /* skip box _outTpl; tuple<#Integer, array<#Integer>, array<#Integer>> */
1730 return _outTpl;
1731}
1732
1733PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_vectorMatching(threadData_t *threadData, modelica_metatype _eqn, modelica_metatype _vars, modelica_metatype _inTpl)
1734{
1735 modelica_metatype _outTpl = NULL((void*)0);
1736 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
1737 MMC_SO()mmc_check_stackoverflow(threadData);
1738 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1739 // _outTpl has no default value.
1740#line 1740 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1741 { /* matchcontinue expression */
1742 volatile modelica_metatype tmp3_1;volatile modelica_metatype tmp3_2;
1743 tmp3_1 = _eqn;
1744 tmp3_2 = _inTpl;
1745 {
1746 modelica_integer _id;
1747 modelica_integer _size;
1748 modelica_metatype _vec1 = NULL((void*)0);
1749 modelica_metatype _vec2 = NULL((void*)0);
1750 modelica_metatype _e1 = NULL((void*)0);
1751 modelica_metatype _e2 = NULL((void*)0);
1752 modelica_metatype _ds = NULL((void*)0);
1753 volatile mmc_switch_type tmp3;
1754 int tmp4;
1755 // _id has no default value.
1756 // _size has no default value.
1757 // _vec1 has no default value.
1758 // _vec2 has no default value.
1759 // _e1 has no default value.
1760 // _e2 has no default value.
1761 // _ds has no default value.
1762 tmp3 = 0;
1763 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) {
1764 tmp2_top:
1765 threadData->mmc_jumper = &new_mmc_jumper;
1766 for (; tmp3 < 5; tmp3++) {
1767 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1768 case 0: {
1769 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,6)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((6 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
1770 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1771 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
1772 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
1773
1774 _ds = tmpMeta[1];
1775 _e1 = tmpMeta[2];
1776 _e2 = tmpMeta[3];
1777 /* Pattern matching succeeded */
1778#line 3203 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1779 _size = mmc_unbox_integer(omc_List_fold(threadData, _ds, boxvar_intMul, mmc_mk_integer(((modelica_integer) 1))))(((mmc_sint_t) (omc_List_fold(threadData, _ds, ((void*)((char
*)(&(boxvar_lit_intMul).header) + 3)), mmc_mk_icon(((modelica_integer
) 1))))) >> 1)
;
1780#line 1780 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1781#line 3204 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1782 tmpMeta[0] = omc_OnRelaxation_vectorMatching1(threadData, _e1, _e2, _size, _vars, _inTpl);
1783#line 1783 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1784 goto tmp2_done;
1785 }
1786 case 1: {
1787 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,6)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((6 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
1788 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1789 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
1790 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
1791
1792 _ds = tmpMeta[1];
1793 _e2 = tmpMeta[2];
1794 _e1 = tmpMeta[3];
1795 tmp3 += 2; /* Pattern matching succeeded; we may skip some cases if we fail */
1796#line 3208 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1797 _size = mmc_unbox_integer(omc_List_fold(threadData, _ds, boxvar_intMul, mmc_mk_integer(((modelica_integer) 1))))(((mmc_sint_t) (omc_List_fold(threadData, _ds, ((void*)((char
*)(&(boxvar_lit_intMul).header) + 3)), mmc_mk_icon(((modelica_integer
) 1))))) >> 1)
;
1798#line 1798 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1799#line 3209 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1800 tmpMeta[0] = omc_OnRelaxation_vectorMatching1(threadData, _e2, _e1, _size, _vars, _inTpl);
1801#line 1801 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1802 goto tmp2_done;
1803 }
1804 case 2: {
1805 modelica_integer tmp5;
1806 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,6,5)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((5 +1) <<
10) + (((6 +3) & 255) << 2)))
== 0) goto tmp2_end;
1807 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1808 tmp5 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
1809 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
1810 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
1811
1812 _size = tmp5 /* pattern as ty=Integer */;
1813 _e1 = tmpMeta[2];
1814 _e2 = tmpMeta[3];
1815 /* Pattern matching succeeded */
1816#line 3214 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1817 tmpMeta[0] = omc_OnRelaxation_vectorMatching1(threadData, _e1, _e2, _size, _vars, _inTpl);
1818#line 1818 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1819 goto tmp2_done;
1820 }
1821 case 3: {
1822 modelica_integer tmp6;
1823 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,6,5)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((5 +1) <<
10) + (((6 +3) & 255) << 2)))
== 0) goto tmp2_end;
1824 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1825 tmp6 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
1826 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
1827 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
1828
1829 _size = tmp6 /* pattern as ty=Integer */;
1830 _e2 = tmpMeta[2];
1831 _e1 = tmpMeta[3];
1832 /* Pattern matching succeeded */
1833#line 3218 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1834 tmpMeta[0] = omc_OnRelaxation_vectorMatching1(threadData, _e2, _e1, _size, _vars, _inTpl);
1835#line 1835 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1836 goto tmp2_done;
1837 }
1838 case 4: {
1839 modelica_integer tmp7;
1840 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(1)))))
;
1841 tmp7 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
1842 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
1843 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(3)))))
;
1844 _id = tmp7 /* pattern as ty=Integer */;
1845 _vec1 = tmpMeta[2];
1846 _vec2 = tmpMeta[3];
1847 /* Pattern matching succeeded */
1848#line 3222 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1849 _size = omc_BackendEquation_equationSize(threadData, _eqn);
1850#line 1850 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1851#line 3223 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1852 tmpMeta[1] = mmc_mk_box3(0, mmc_mk_integermmc_mk_icon(_id + _size), _vec1, _vec2);
1853#line 3223 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1854 tmpMeta[0] = tmpMeta[1];
1855#line 1855 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1856 goto tmp2_done;
1857 }
1858 }
1859 goto tmp2_end;
1860 tmp2_end: ;
1861 }
1862 goto goto_1;
1863 tmp2_done:
1864 (void)tmp3;
1865 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1866 goto tmp2_done2;
1867 goto_1:;
1868 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1869 if (++tmp3 < 5) {
1870 goto tmp2_top;
1871 }
1872 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1873 tmp2_done2:;
1874 }
1875 }
1876 _outTpl = tmpMeta[0];
1877 _return: OMC_LABEL_UNUSED__attribute__((unused))
1878 return _outTpl;
1879}
1880
1881PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_onefreeMatchingBFS1(threadData_t *threadData, modelica_metatype _rows, modelica_integer _c, modelica_metatype _mt, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _columark, modelica_integer _mark, modelica_metatype _inNextQeue)
1882{
1883 modelica_metatype _outNextQeue = NULL((void*)0);
1884 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
1885 MMC_SO()mmc_check_stackoverflow(threadData);
1886 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1887 // _outNextQeue has no default value.
1888#line 1888 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1889 { /* matchcontinue expression */
1890 volatile modelica_metatype tmp3_1;
1891 tmp3_1 = _rows;
1892 {
1893 modelica_integer _r;
1894 modelica_metatype _vareqns = NULL((void*)0);
1895 volatile mmc_switch_type tmp3;
1896 int tmp4;
1897 // _r has no default value.
1898 // _vareqns has no default value.
1899 tmp3 = 0;
1900 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) {
1901 tmp2_top:
1902 threadData->mmc_jumper = &new_mmc_jumper;
1903 for (; tmp3 < 2; tmp3++) {
1904 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1905 case 0: {
1906 modelica_integer tmp5;
1907 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1908 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
1909 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1910 tmp5 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
1911 if (!listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1912 _r = tmp5 /* pattern as ty=Integer */;
1913 /* Pattern matching succeeded */
1914#line 3173 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1915 arrayUpdate(_ass1, _r, mmc_mk_integer(_c))boxptr_arrayUpdate(threadData,_ass1,mmc_mk_icon(_r),mmc_mk_icon
(_c))
;
1916#line 1916 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1917
1918#line 3174 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1919 arrayUpdate(_ass2, _c, mmc_mk_integer(_r))boxptr_arrayUpdate(threadData,_ass2,mmc_mk_icon(_c),mmc_mk_icon
(_r))
;
1920#line 1920 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1921
1922#line 3175 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1923 _vareqns = omc_List_removeOnTrue(threadData, _ass2, boxvar_OnRelaxation_isAssignedSaveEnhanced((void*)((char*)(&(boxvar_lit_OnRelaxation_isAssignedSaveEnhanced
).header) + 3))
, arrayGet(_mt,_r)nobox_arrayGet(threadData,_mt,_r) /* DAE.ASUB */);
1924#line 1924 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1925#line 3178 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1926 tmpMeta[0] = listAppend(_inNextQeue, _vareqns);
1927#line 1927 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1928 goto tmp2_done;
1929 }
1930 case 1: {
1931
1932 /* Pattern matching succeeded */
1933#line 3180 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1934 tmpMeta[0] = _inNextQeue;
1935#line 1935 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1936 goto tmp2_done;
1937 }
1938 }
1939 goto tmp2_end;
1940 tmp2_end: ;
1941 }
1942 goto goto_1;
1943 tmp2_done:
1944 (void)tmp3;
1945 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1946 goto tmp2_done2;
1947 goto_1:;
1948 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1949 if (++tmp3 < 2) {
1950 goto tmp2_top;
1951 }
1952 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1953 tmp2_done2:;
1954 }
1955 }
1956 _outNextQeue = tmpMeta[0];
1957 _return: OMC_LABEL_UNUSED__attribute__((unused))
1958 return _outNextQeue;
1959}
1960PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_onefreeMatchingBFS1(threadData_t *threadData, modelica_metatype _rows, modelica_metatype _c, modelica_metatype _mt, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _columark, modelica_metatype _mark, modelica_metatype _inNextQeue)
1961{
1962 modelica_integer tmp1;
1963 modelica_integer tmp2;
1964 modelica_metatype _outNextQeue = NULL((void*)0);
1965 tmp1 = mmc_unbox_integer(_c)(((mmc_sint_t) (_c)) >> 1);
1966 tmp2 = mmc_unbox_integer(_mark)(((mmc_sint_t) (_mark)) >> 1);
1967 _outNextQeue = omc_OnRelaxation_onefreeMatchingBFS1(threadData, _rows, tmp1, _mt, _ass1, _ass2, _columark, tmp2, _inNextQeue);
1968 /* skip box _outNextQeue; list<#Integer> */
1969 return _outNextQeue;
1970}
1971
1972PROTECTED_FUNCTION_STATIC modelica_boolean omc_OnRelaxation_isAssignedSaveEnhanced(threadData_t *threadData, modelica_metatype _ass, modelica_integer _inTpl)
1973{
1974 modelica_boolean _outB;
1975 MMC_SO()mmc_check_stackoverflow(threadData);
1976 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1977 // _outB has no default value.
1978#line 3151 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
1979 _outB = ((_inTpl > ((modelica_integer) 0))?(mmc_unbox_integer(arrayGet(_ass,_inTpl) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_ass,_inTpl))) >>
1)
> ((modelica_integer) 0)):1);
1980#line 1980 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
1981 _return: OMC_LABEL_UNUSED__attribute__((unused))
1982 return _outB;
1983}
1984PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_isAssignedSaveEnhanced(threadData_t *threadData, modelica_metatype _ass, modelica_metatype _inTpl)
1985{
1986 modelica_integer tmp1;
1987 modelica_boolean _outB;
1988 modelica_metatype out_outB;
1989 tmp1 = mmc_unbox_integer(_inTpl)(((mmc_sint_t) (_inTpl)) >> 1);
1990 _outB = omc_OnRelaxation_isAssignedSaveEnhanced(threadData, _ass, tmp1);
1991 out_outB = mmc_mk_icon(_outB);
1992 return out_outB;
1993}
1994
1995PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_onefreeMatchingBFS(threadData_t *threadData, modelica_metatype _queue, modelica_metatype _m, modelica_metatype _mt, modelica_integer _size, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _columark, modelica_integer _mark, modelica_metatype _nextQeue)
1996{
1997 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1998 MMC_SO()mmc_check_stackoverflow(threadData);
1999 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2000#line 2000 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2001 { /* match expression */
2002 modelica_metatype tmp3_1;modelica_metatype tmp3_2;
2003 tmp3_1 = _queue;
2004 tmp3_2 = _nextQeue;
2005 {
2006 modelica_integer _c;
2007 modelica_metatype _rest = NULL((void*)0);
2008 modelica_metatype _newqueue = NULL((void*)0);
2009 modelica_metatype _rows = NULL((void*)0);
2010 volatile mmc_switch_type tmp3;
2011 int tmp4;
2012 // _c has no default value.
2013 // _rest has no default value.
2014 // _newqueue has no default value.
2015 // _rows has no default value.
2016 tmp3 = 0;
2017 for (; tmp3 < 3; tmp3++) {
2018 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2019 case 0: {
2020 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2021 if (!listEmpty(tmp3_2)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2022 /* Pattern matching succeeded */
2023#line 2023 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2024 goto tmp2_done;
2025 }
2026 case 1: {
2027 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2028
2029 /* Pattern matching succeeded */
2030#line 3131 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2031 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2032#line 3131 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2033 /* Tail recursive call */
2034#line 3131 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2035 _queue = _nextQeue;
2036#line 3131 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2037 _nextQeue = tmpMeta[0];
2038#line 3131 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2039 goto _tailrecursive;
2040#line 3131 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2041 /* TODO: Make sure any eventual dead code below is never generated */
2042#line 3131 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2043 ;
2044#line 2044 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2045#line 2045 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2046 goto tmp2_done;
2047 }
2048 case 2: {
2049 modelica_integer tmp5;
2050 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2051 tmpMeta[0] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
2052 tmpMeta[1] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2053 tmp5 = mmc_unbox_integer(tmpMeta[0])(((mmc_sint_t) (tmpMeta[0])) >> 1);
2054
2055 _c = tmp5 /* pattern as ty=Integer */;
2056 _rest = tmpMeta[1];
2057 /* Pattern matching succeeded */
2058#line 3137 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2059 _rows = omc_List_removeOnTrue(threadData, _ass1, boxvar_OnRelaxation_isAssignedSaveEnhanced((void*)((char*)(&(boxvar_lit_OnRelaxation_isAssignedSaveEnhanced
).header) + 3))
, arrayGet(_m,_c)nobox_arrayGet(threadData,_m,_c) /* DAE.ASUB */);
2060#line 2060 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2061
2062#line 3139 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2063 _newqueue = omc_OnRelaxation_onefreeMatchingBFS1(threadData, _rows, _c, _mt, _ass1, _ass2, _columark, _mark, _nextQeue);
2064#line 2064 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2065
2066#line 3140 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2067 /* Tail recursive call */
2068#line 3140 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2069 _queue = _rest;
2070#line 3140 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2071 _nextQeue = _newqueue;
2072#line 3140 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2073 goto _tailrecursive;
2074#line 3140 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2075 /* TODO: Make sure any eventual dead code below is never generated */
2076#line 3140 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2077 ;
2078#line 2078 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2079#line 2079 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2080 goto tmp2_done;
2081 }
2082 }
2083 goto tmp2_end;
2084 tmp2_end: ;
2085 }
2086 goto goto_1;
2087 goto_1:;
2088 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2089 goto tmp2_done;
2090 tmp2_done:;
2091 }
2092 }
2093 ;
2094 _return: OMC_LABEL_UNUSED__attribute__((unused))
2095 return;
2096}
2097PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_onefreeMatchingBFS(threadData_t *threadData, modelica_metatype _queue, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _size, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _columark, modelica_metatype _mark, modelica_metatype _nextQeue)
2098{
2099 modelica_integer tmp1;
2100 modelica_integer tmp2;
2101 tmp1 = mmc_unbox_integer(_size)(((mmc_sint_t) (_size)) >> 1);
2102 tmp2 = mmc_unbox_integer(_mark)(((mmc_sint_t) (_mark)) >> 1);
2103 omc_OnRelaxation_onefreeMatchingBFS(threadData, _queue, _m, _mt, tmp1, _ass1, _ass2, _columark, tmp2, _nextQeue);
2104 return;
2105}
2106
2107PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_unassignedLst(threadData_t *threadData, modelica_metatype _vlst, modelica_metatype _ass1)
2108{
2109 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2110 MMC_SO()mmc_check_stackoverflow(threadData);
2111 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2112#line 2112 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2113 { /* match expression */
2114 modelica_metatype tmp3_1;
2115 tmp3_1 = _vlst;
2116 {
2117 modelica_integer _v;
2118 modelica_metatype _rest = NULL((void*)0);
2119 volatile mmc_switch_type tmp3;
2120 int tmp4;
2121 // _v has no default value.
2122 // _rest has no default value.
2123 tmp3 = 0;
2124 for (; tmp3 < 2; tmp3++) {
2125 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2126 case 0: {
2127 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2128 /* Pattern matching succeeded */
2129#line 2129 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2130 goto tmp2_done;
2131 }
2132 case 1: {
2133 modelica_integer tmp5;
2134 modelica_boolean tmp6;
2135 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2136 tmpMeta[0] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
2137 tmpMeta[1] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2138 tmp5 = mmc_unbox_integer(tmpMeta[0])(((mmc_sint_t) (tmpMeta[0])) >> 1);
2139 _v = tmp5 /* pattern as ty=Integer */;
2140 _rest = tmpMeta[1];
2141 /* Pattern matching succeeded */
2142#line 3105 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2143 /* Pattern-matching assignment */
2144#line 3105 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2145 tmp6 = (mmc_unbox_integer(arrayGet(_ass1,_v) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_ass1,_v))) >>
1)
> ((modelica_integer) 0));
2146#line 3105 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2147 if (0 != tmp6) goto goto_1;
2148#line 2148 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2149
2150#line 3106 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2151 /* Tail recursive call */
2152#line 3106 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2153 _vlst = _rest;
2154#line 3106 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2155 goto _tailrecursive;
2156#line 3106 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2157 /* TODO: Make sure any eventual dead code below is never generated */
2158#line 3106 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2159 ;
2160#line 2160 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2161#line 2161 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2162 goto tmp2_done;
2163 }
2164 }
2165 goto tmp2_end;
2166 tmp2_end: ;
2167 }
2168 goto goto_1;
2169 goto_1:;
2170 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2171 goto tmp2_done;
2172 tmp2_done:;
2173 }
2174 }
2175 ;
2176 _return: OMC_LABEL_UNUSED__attribute__((unused))
2177 return;
2178}
2179
2180PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_assignLst(threadData_t *threadData, modelica_metatype _vlst, modelica_integer _e, modelica_metatype _ass1, modelica_metatype _ass2)
2181{
2182 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2183 MMC_SO()mmc_check_stackoverflow(threadData);
2184 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2185#line 2185 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2186 { /* match expression */
2187 modelica_metatype tmp3_1;
2188 tmp3_1 = _vlst;
2189 {
2190 modelica_integer _v;
2191 modelica_metatype _rest = NULL((void*)0);
2192 volatile mmc_switch_type tmp3;
2193 int tmp4;
2194 // _v has no default value.
2195 // _rest has no default value.
2196 tmp3 = 0;
2197 for (; tmp3 < 2; tmp3++) {
2198 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2199 case 0: {
2200 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2201 /* Pattern matching succeeded */
2202#line 2202 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2203 goto tmp2_done;
2204 }
2205 case 1: {
2206 modelica_integer tmp5;
2207 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2208 tmpMeta[0] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
2209 tmpMeta[1] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2210 tmp5 = mmc_unbox_integer(tmpMeta[0])(((mmc_sint_t) (tmpMeta[0])) >> 1);
2211 _v = tmp5 /* pattern as ty=Integer */;
2212 _rest = tmpMeta[1];
2213 /* Pattern matching succeeded */
2214#line 3086 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2215 arrayUpdate(_ass1, _v, mmc_mk_integer(_e))boxptr_arrayUpdate(threadData,_ass1,mmc_mk_icon(_v),mmc_mk_icon
(_e))
;
2216#line 2216 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2217
2218#line 3087 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2219 arrayUpdate(_ass2, _e, mmc_mk_integer(_v))boxptr_arrayUpdate(threadData,_ass2,mmc_mk_icon(_e),mmc_mk_icon
(_v))
;
2220#line 2220 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2221
2222#line 3088 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2223 /* Tail recursive call */
2224#line 3088 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2225 _vlst = _rest;
2226#line 3088 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2227 _e = ((modelica_integer) 1) + _e;
2228#line 3088 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2229 goto _tailrecursive;
2230#line 3088 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2231 /* TODO: Make sure any eventual dead code below is never generated */
2232#line 3088 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2233 ;
2234#line 2234 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2235#line 2235 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2236 goto tmp2_done;
2237 }
2238 }
2239 goto tmp2_end;
2240 tmp2_end: ;
2241 }
2242 goto goto_1;
2243 goto_1:;
2244 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2245 goto tmp2_done;
2246 tmp2_done:;
2247 }
2248 }
2249 ;
2250 _return: OMC_LABEL_UNUSED__attribute__((unused))
2251 return;
2252}
2253PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_assignLst(threadData_t *threadData, modelica_metatype _vlst, modelica_metatype _e, modelica_metatype _ass1, modelica_metatype _ass2)
2254{
2255 modelica_integer tmp1;
2256 tmp1 = mmc_unbox_integer(_e)(((mmc_sint_t) (_e)) >> 1);
2257 omc_OnRelaxation_assignLst(threadData, _vlst, tmp1, _ass1, _ass2);
2258 return;
2259}
2260
2261PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_expHasCreftraverser(threadData_t *threadData, modelica_metatype _e, modelica_metatype _inTpl, modelica_boolean *out_cont, modelica_metatype *out_outTpl)
2262{
2263 modelica_metatype _outExp = NULL((void*)0);
2264 modelica_boolean _cont;
2265 modelica_metatype _outTpl = NULL((void*)0);
2266 modelica_boolean tmp1_c1 __attribute__((unused)) = 0;
2267 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
2268 MMC_SO()mmc_check_stackoverflow(threadData);
2269 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2270 // _outExp has no default value.
2271 // _cont has no default value.
2272 // _outTpl has no default value.
2273#line 3056 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2274
2275#line 3056 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2276
2277#line 3056 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2278
2279#line 2279 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2280 { /* matchcontinue expression */
2281 volatile modelica_metatype tmp4_1;volatile modelica_metatype tmp4_2;
2282 tmp4_1 = _e;
2283 tmp4_2 = _inTpl;
2284 {
2285 modelica_boolean _b;
2286 modelica_metatype _cr = NULL((void*)0);
2287 modelica_metatype _set = NULL((void*)0);
2288 volatile mmc_switch_type tmp4;
2289 int tmp5;
2290 // _b has no default value.
2291 // _cr has no default value.
2292 // _set has no default value.
2293 tmp4 = 0;
2294 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) {
2295 tmp3_top:
2296 threadData->mmc_jumper = &new_mmc_jumper;
2297 for (; tmp4 < 2; tmp4++) {
2298 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2299 case 0: {
2300 modelica_integer tmp6;
2301 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
2302 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(2)))))
;
2303 tmp6 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
2304 if (0 != tmp6) goto tmp3_end;
2305 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,6,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((6 +3) & 255) << 2)))
== 0) goto tmp3_end;
2306 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2307
2308 _set = tmpMeta[3];
2309 _cr = tmpMeta[5];
2310 /* Pattern matching succeeded */
2311#line 3064 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2312 _b = omc_BaseHashSet_has(threadData, _cr, _set);
2313#line 2313 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2314#line 3065 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2315 tmpMeta[3] = mmc_mk_box2(0, _set, mmc_mk_boolean(_b)((_b) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))));
2316#line 3065 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2317 tmpMeta[0+0] = _e;
2318#line 3065 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2319 tmp1_c1 = (!_b);
2320#line 3065 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2321 tmpMeta[0+2] = tmpMeta[3];
2322#line 2322 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2323 goto tmp3_done;
2324 }
2325 case 1: {
2326 modelica_integer tmp7;
2327 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
2328 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(2)))))
;
2329 tmp7 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
2330 _set = tmpMeta[3];
2331 _b = tmp7 /* pattern as ty=Boolean */;
2332 /* Pattern matching succeeded */
2333#line 3068 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2334 tmpMeta[3] = mmc_mk_box2(0, _set, mmc_mk_boolean(_b)((_b) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))));
2335#line 3068 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2336 tmpMeta[0+0] = _e;
2337#line 3068 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2338 tmp1_c1 = (!_b);
2339#line 3068 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2340 tmpMeta[0+2] = tmpMeta[3];
2341#line 2341 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2342 goto tmp3_done;
2343 }
2344 }
2345 goto tmp3_end;
2346 tmp3_end: ;
2347 }
2348 goto goto_2;
2349 tmp3_done:
2350 (void)tmp4;
2351 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2352 goto tmp3_done2;
2353 goto_2:;
2354 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2355 if (++tmp4 < 2) {
2356 goto tmp3_top;
2357 }
2358 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2359 tmp3_done2:;
2360 }
2361 }
2362 _outExp = tmpMeta[0+0];
2363 _cont = tmp1_c1;
2364 _outTpl = tmpMeta[0+2];
2365 _return: OMC_LABEL_UNUSED__attribute__((unused))
2366 if (out_cont) { *out_cont = _cont; }
2367 if (out_outTpl) { *out_outTpl = _outTpl; }
2368 return _outExp;
2369}
2370PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_expHasCreftraverser(threadData_t *threadData, modelica_metatype _e, modelica_metatype _inTpl, modelica_metatype *out_cont, modelica_metatype *out_outTpl)
2371{
2372 modelica_boolean _cont;
2373 modelica_metatype _outExp = NULL((void*)0);
2374 _outExp = omc_OnRelaxation_expHasCreftraverser(threadData, _e, _inTpl, &_cont, out_outTpl);
2375 /* skip box _outExp; DAE.Exp */
2376 if (out_cont) { *out_cont = mmc_mk_icon(_cont); }
2377 /* skip box _outTpl; tuple<tuple<array<list<tuple<DAE.ComponentRef, #Integer>>>, tuple<#Integer, #Integer, array<Option<DAE.ComponentRef>>>, #Integer, #Integer, tuple<.HashSet.FuncHashCref<function>(DAE.ComponentRef cr, #Integer mod) => #Integer, .HashSet.FuncCrefEqual<function>(DAE.ComponentRef cr1, DAE.ComponentRef cr2) => #Boolean, .HashSet.FuncCrefStr<function>(DAE.ComponentRef cr) => String>>, #Boolean> */
2378 return _outExp;
2379}
2380
2381PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_addCrefandParentsToSet(threadData_t *threadData, modelica_metatype _inCref, modelica_metatype _ihs, modelica_metatype _oprecr)
2382{
2383 modelica_metatype _ohs = NULL((void*)0);
2384 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
2385 MMC_SO()mmc_check_stackoverflow(threadData);
2386 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2387 // _ohs has no default value.
2388#line 2388 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2389 { /* match expression */
2390 modelica_metatype tmp3_1;modelica_metatype tmp3_2;
2391 tmp3_1 = _inCref;
2392 tmp3_2 = _oprecr;
2393 {
2394 modelica_metatype _cr = NULL((void*)0);
2395 modelica_metatype _idcr = NULL((void*)0);
2396 modelica_metatype _precr = NULL((void*)0);
2397 modelica_metatype _subcr = NULL((void*)0);
2398 modelica_metatype _crlst = NULL((void*)0);
2399 modelica_metatype _set = NULL((void*)0);
2400 modelica_metatype _ty = NULL((void*)0);
2401 modelica_string _ident = NULL((void*)0);
2402 modelica_metatype _subscriptLst = NULL((void*)0);
2403 volatile mmc_switch_type tmp3;
2404 int tmp4;
2405 // _cr has no default value.
2406 // _idcr has no default value.
2407 // _precr has no default value.
2408 // _subcr has no default value.
2409 // _crlst has no default value.
2410 // _set has no default value.
2411 // _ty has no default value.
2412 // _ident has no default value.
2413 // _subscriptLst has no default value.
2414 tmp3 = 0;
2415 for (; tmp3 < 4; tmp3++) {
2416 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2417 case 0: {
2418 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,3)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((3 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
2419 if (!optionNone(tmp3_2)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp3_2
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp2_end;
2420 _cr = tmp3_1;
2421 /* Pattern matching succeeded */
2422#line 3018 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2423 _crlst = omc_ComponentReference_expandCref(threadData, _cr, 1);
2424#line 2424 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2425#line 3019 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2426 tmpMeta[1] = mmc_mk_cons(_cr, _crlst);
2427#line 3019 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2428 tmpMeta[0] = omc_List_fold(threadData, tmpMeta[1], boxvar_BaseHashSet_add((void*)((char*)(&(boxvar_lit_BaseHashSet_add).header) + 3
))
, _ihs);
2429#line 2429 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2430 goto tmp2_done;
2431 }
2432 case 1: {
2433 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,3)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((3 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
2434 if (optionNone(tmp3_2)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp3_2
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp2_end;
2435 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(1)))))
;
2436 _cr = tmp3_1;
2437 _precr = tmpMeta[1];
2438 /* Pattern matching succeeded */
2439#line 3023 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2440 _crlst = omc_ComponentReference_expandCref(threadData, _cr, 1);
2441#line 2441 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2442
2443#line 3024 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2444 tmpMeta[1] = mmc_mk_cons(_cr, _crlst);
2445#line 3024 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2446 _crlst = omc_List_map1r(threadData, tmpMeta[1], boxvar_ComponentReference_joinCrefs((void*)((char*)(&(boxvar_lit_ComponentReference_joinCrefs
).header) + 3))
, _precr);
2447#line 2447 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2448#line 3025 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2449 tmpMeta[0] = omc_List_fold(threadData, _crlst, boxvar_BaseHashSet_add((void*)((char*)(&(boxvar_lit_BaseHashSet_add).header) + 3
))
, _ihs);
2450#line 2450 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2451 goto tmp2_done;
2452 }
2453 case 2: {
2454 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;
2455 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2456 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
2457 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
2458 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(5)))))
;
2459 if (!optionNone(tmp3_2)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp3_2
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp2_end;
2460 _ident = tmpMeta[1];
2461 _ty = tmpMeta[2];
2462 _subscriptLst = tmpMeta[3];
2463 _subcr = tmpMeta[4];
2464 /* Pattern matching succeeded */
2465#line 3029 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2466 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2467#line 3029 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2468 _idcr = omc_ComponentReference_makeCrefIdent(threadData, _ident, _ty, tmpMeta[1]);
2469#line 2469 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2470
2471#line 3030 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2472 _set = omc_BaseHashSet_add(threadData, _idcr, _ihs);
2473#line 2473 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2474
2475#line 3031 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2476 _idcr = omc_ComponentReference_makeCrefIdent(threadData, _ident, _ty, _subscriptLst);
2477#line 2477 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2478
2479#line 3032 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2480 _set = omc_BaseHashSet_add(threadData, _idcr, _set);
2481#line 2481 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2482#line 3033 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2483 /* Tail recursive call */
2484#line 3033 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2485 _inCref = _subcr;
2486#line 3033 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2487 _ihs = _set;
2488#line 3033 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2489 _oprecr = mmc_mk_some(_idcr);
2490#line 3033 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2491 goto _tailrecursive;
2492#line 3033 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2493 /* TODO: Make sure any eventual dead code below is never generated */
2494#line 2494 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2495 goto tmp2_done;
2496 }
2497 case 3: {
2498 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;
2499 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2500 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
2501 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
2502 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(5)))))
;
2503 if (optionNone(tmp3_2)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp3_2
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp2_end;
2504 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(1)))))
;
2505 _ident = tmpMeta[1];
2506 _ty = tmpMeta[2];
2507 _subscriptLst = tmpMeta[3];
2508 _subcr = tmpMeta[4];
2509 _precr = tmpMeta[5];
2510 /* Pattern matching succeeded */
2511#line 3037 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2512 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2513#line 3037 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2514 _idcr = omc_ComponentReference_makeCrefIdent(threadData, _ident, _ty, tmpMeta[1]);
2515#line 2515 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2516
2517#line 3038 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2518 _idcr = omc_ComponentReference_joinCrefs(threadData, _precr, _idcr);
2519#line 2519 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2520
2521#line 3039 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2522 _set = omc_BaseHashSet_add(threadData, _idcr, _ihs);
2523#line 2523 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2524
2525#line 3040 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2526 _idcr = omc_ComponentReference_makeCrefIdent(threadData, _ident, _ty, _subscriptLst);
2527#line 2527 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2528
2529#line 3041 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2530 _precr = omc_ComponentReference_joinCrefs(threadData, _precr, _idcr);
2531#line 2531 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2532
2533#line 3042 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2534 _set = omc_BaseHashSet_add(threadData, _precr, _ihs);
2535#line 2535 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2536#line 3043 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2537 /* Tail recursive call */
2538#line 3043 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2539 _inCref = _subcr;
2540#line 3043 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2541 _ihs = _set;
2542#line 3043 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2543 _oprecr = mmc_mk_some(_precr);
2544#line 3043 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2545 goto _tailrecursive;
2546#line 3043 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2547 /* TODO: Make sure any eventual dead code below is never generated */
2548#line 2548 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2549 goto tmp2_done;
2550 }
2551 }
2552 goto tmp2_end;
2553 tmp2_end: ;
2554 }
2555 goto goto_1;
2556 goto_1:;
2557 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2558 goto tmp2_done;
2559 tmp2_done:;
2560 }
2561 }
2562 _ohs = tmpMeta[0];
2563 _return: OMC_LABEL_UNUSED__attribute__((unused))
2564 return _ohs;
2565}
2566
2567PROTECTED_FUNCTION_STATIC modelica_boolean omc_OnRelaxation_expHasCref(threadData_t *threadData, modelica_metatype _inExp, modelica_metatype _cr)
2568{
2569 modelica_boolean _isthere;
2570 modelica_metatype _set = NULL((void*)0);
2571 modelica_integer tmp1;
2572 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
2573 MMC_SO()mmc_check_stackoverflow(threadData);
2574 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2575 // _isthere has no default value.
2576 // _set has no default value.
2577#line 2997 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2578 _set = omc_HashSet_emptyHashSet(threadData);
2579#line 2579 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2580
2581#line 2998 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2582 _set = omc_OnRelaxation_addCrefandParentsToSet(threadData, _cr, _set, mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)));
2583#line 2583 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2584
2585#line 2999 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2586 /* Pattern-matching tuple assignment, wild first pattern */
2587#line 2999 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2588 tmpMeta[2] = mmc_mk_box2(0, _set, mmc_mk_boolean(0)((0) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))));
2589#line 2999 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2590 omc_Expression_traverseExpTopDown(threadData, _inExp, boxvar_OnRelaxation_expHasCreftraverser((void*)((char*)(&(boxvar_lit_OnRelaxation_expHasCreftraverser
).header) + 3))
, tmpMeta[2], &tmpMeta[0]);
2591#line 2999 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2592 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
2593#line 2999 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2594 tmp1 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
2595#line 2999 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2596 _isthere = tmp1 /* pattern as ty=Boolean */;
2597#line 2597 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2598 _return: OMC_LABEL_UNUSED__attribute__((unused))
2599 return _isthere;
2600}
2601PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_expHasCref(threadData_t *threadData, modelica_metatype _inExp, modelica_metatype _cr)
2602{
2603 modelica_boolean _isthere;
2604 modelica_metatype out_isthere;
2605 _isthere = omc_OnRelaxation_expHasCref(threadData, _inExp, _cr);
2606 out_isthere = mmc_mk_icon(_isthere);
2607 return out_isthere;
2608}
2609
2610PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_getOrphans(threadData_t *threadData, modelica_integer _indx, modelica_integer _size, modelica_metatype _ass, modelica_metatype _inOrphans)
2611{
2612 modelica_metatype _outOrphans = NULL((void*)0);
2613 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2614 MMC_SO()mmc_check_stackoverflow(threadData);
2615 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2616 // _outOrphans has no default value.
2617#line 2617 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2618 { /* matchcontinue expression */
2619 {
2620 modelica_metatype _orphans = NULL((void*)0);
2621 volatile mmc_switch_type tmp3;
2622 int tmp4;
2623 // _orphans has no default value.
2624 tmp3 = 0;
2625 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) {
2626 tmp2_top:
2627 threadData->mmc_jumper = &new_mmc_jumper;
2628 for (; tmp3 < 2; tmp3++) {
2629 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2630 case 0: {
2631 modelica_boolean tmp5;
2632 /* Pattern matching succeeded */
2633#line 2978 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2634 /* Pattern-matching assignment */
2635#line 2978 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2636 tmp5 = (_indx > _size);
2637#line 2978 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2638 if (1 != tmp5) goto goto_1;
2639#line 2639 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2640#line 2979 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2641 tmpMeta[0] = _inOrphans;
2642#line 2642 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2643 goto tmp2_done;
2644 }
2645 case 1: {
2646 /* Pattern matching succeeded */
2647#line 2983 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2648 _orphans = omc_List_consOnTrue(threadData, (mmc_unbox_integer(arrayGet(_ass,_indx) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_ass,_indx))) >>
1)
< ((modelica_integer) 1)), mmc_mk_integermmc_mk_icon(_indx), _inOrphans);
2649#line 2649 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2650#line 2984 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2651 tmpMeta[0] = omc_OnRelaxation_getOrphans(threadData, ((modelica_integer) 1) + _indx, _size, _ass, _orphans);
2652#line 2652 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2653 goto tmp2_done;
2654 }
2655 }
2656 goto tmp2_end;
2657 tmp2_end: ;
2658 }
2659 goto goto_1;
2660 tmp2_done:
2661 (void)tmp3;
2662 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2663 goto tmp2_done2;
2664 goto_1:;
2665 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2666 if (++tmp3 < 2) {
2667 goto tmp2_top;
2668 }
2669 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2670 tmp2_done2:;
2671 }
2672 }
2673 _outOrphans = tmpMeta[0];
2674 _return: OMC_LABEL_UNUSED__attribute__((unused))
2675 return _outOrphans;
2676}
2677PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getOrphans(threadData_t *threadData, modelica_metatype _indx, modelica_metatype _size, modelica_metatype _ass, modelica_metatype _inOrphans)
2678{
2679 modelica_integer tmp1;
2680 modelica_integer tmp2;
2681 modelica_metatype _outOrphans = NULL((void*)0);
2682 tmp1 = mmc_unbox_integer(_indx)(((mmc_sint_t) (_indx)) >> 1);
2683 tmp2 = mmc_unbox_integer(_size)(((mmc_sint_t) (_size)) >> 1);
2684 _outOrphans = omc_OnRelaxation_getOrphans(threadData, tmp1, tmp2, _ass, _inOrphans);
2685 /* skip box _outOrphans; list<#Integer> */
2686 return _outOrphans;
2687}
2688
2689PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_markIndexdColums(threadData_t *threadData, modelica_integer _i, modelica_integer _size, modelica_integer _mark, modelica_metatype _colummarks, modelica_metatype _vec2)
2690{
2691 MMC_SO()mmc_check_stackoverflow(threadData);
2692 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2693#line 2693 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2694 { /* matchcontinue expression */
2695 {
2696 volatile mmc_switch_type tmp3;
2697 int tmp4;
2698 tmp3 = 0;
2699 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) {
2700 tmp2_top:
2701 threadData->mmc_jumper = &new_mmc_jumper;
2702 for (; tmp3 < 3; tmp3++) {
2703 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2704 case 0: {
2705 modelica_boolean tmp5;
2706 modelica_boolean tmp6;
2707 /* Pattern matching succeeded */
2708#line 2948 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2709 /* Pattern-matching assignment */
2710#line 2948 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2711 tmp5 = (_i > _size);
2712#line 2948 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2713 if (0 != tmp5) goto goto_1;
2714#line 2714 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2715
2716#line 2949 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2717 /* Pattern-matching assignment */
2718#line 2949 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2719 tmp6 = (mmc_unbox_integer(arrayGet(_vec2,_i) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_vec2,_i))) >>
1)
> ((modelica_integer) 0));
2720#line 2949 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2721 if (1 != tmp6) goto goto_1;
2722#line 2722 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2723
2724#line 2950 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2725 arrayUpdate(_colummarks, mmc_unbox_integer(arrayGet(_vec2,_i) /* DAE.ASUB */), mmc_mk_integer(_mark))boxptr_arrayUpdate(threadData,_colummarks,mmc_mk_icon((((mmc_sint_t
) (nobox_arrayGet(threadData,_vec2,_i))) >> 1)),mmc_mk_icon
(_mark))
;
2726#line 2726 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2727
2728#line 2951 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2729 omc_OnRelaxation_markIndexdColums(threadData, ((modelica_integer) 1) + _i, _size, _mark, _colummarks, _vec2);
2730#line 2730 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2731#line 2731 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2732 goto tmp2_done;
2733 }
2734 case 1: {
2735 modelica_boolean tmp7;
2736 /* Pattern matching succeeded */
2737#line 2956 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2738 /* Pattern-matching assignment */
2739#line 2956 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2740 tmp7 = (_i > _size);
2741#line 2956 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2742 if (0 != tmp7) goto goto_1;
2743#line 2743 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2744
2745#line 2957 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2746 omc_OnRelaxation_markIndexdColums(threadData, ((modelica_integer) 1) + _i, _size, _mark, _colummarks, _vec2);
2747#line 2747 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2748#line 2748 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2749 goto tmp2_done;
2750 }
2751 case 2: {
2752 /* Pattern matching succeeded */
2753#line 2753 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2754 goto tmp2_done;
2755 }
2756 }
2757 goto tmp2_end;
2758 tmp2_end: ;
2759 }
2760 goto goto_1;
2761 tmp2_done:
2762 (void)tmp3;
2763 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2764 goto tmp2_done2;
2765 goto_1:;
2766 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2767 if (++tmp3 < 3) {
2768 goto tmp2_top;
2769 }
2770 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2771 tmp2_done2:;
2772 }
2773 }
2774 ;
2775 _return: OMC_LABEL_UNUSED__attribute__((unused))
2776 return;
2777}
2778PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_markIndexdColums(threadData_t *threadData, modelica_metatype _i, modelica_metatype _size, modelica_metatype _mark, modelica_metatype _colummarks, modelica_metatype _vec2)
2779{
2780 modelica_integer tmp1;
2781 modelica_integer tmp2;
2782 modelica_integer tmp3;
2783 tmp1 = mmc_unbox_integer(_i)(((mmc_sint_t) (_i)) >> 1);
2784 tmp2 = mmc_unbox_integer(_size)(((mmc_sint_t) (_size)) >> 1);
2785 tmp3 = mmc_unbox_integer(_mark)(((mmc_sint_t) (_mark)) >> 1);
2786 omc_OnRelaxation_markIndexdColums(threadData, tmp1, tmp2, tmp3, _colummarks, _vec2);
2787 return;
2788}
2789
2790PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_getIndexesForEqnsRest(threadData_t *threadData, modelica_integer _i, modelica_integer _size, modelica_integer _id, modelica_integer _mark, modelica_metatype _colummarks, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _vec1, modelica_metatype _vec2)
2791{
2792 MMC_SO()mmc_check_stackoverflow(threadData);
2793 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2794#line 2794 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2795 { /* matchcontinue expression */
2796 {
2797 volatile mmc_switch_type tmp3;
2798 int tmp4;
2799 tmp3 = 0;
2800 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) {
2801 tmp2_top:
2802 threadData->mmc_jumper = &new_mmc_jumper;
2803 for (; tmp3 < 3; tmp3++) {
2804 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2805 case 0: {
2806 modelica_boolean tmp5;
2807 modelica_boolean tmp6;
2808 /* Pattern matching succeeded */
2809#line 2919 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2810 /* Pattern-matching assignment */
2811#line 2919 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2812 tmp5 = (_i > _size);
2813#line 2919 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2814 if (0 != tmp5) goto goto_1;
2815#line 2815 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2816
2817#line 2920 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2818 /* Pattern-matching assignment */
2819#line 2920 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2820 tmp6 = (_mark == mmc_unbox_integer(arrayGet(_colummarks,_i) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_colummarks,_i))) >>
1)
);
2821#line 2920 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2822 if (1 != tmp6) goto goto_1;
2823#line 2823 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2824
2825#line 2921 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2826 omc_OnRelaxation_getIndexesForEqnsRest(threadData, ((modelica_integer) 1) + _i, _size, _id, _mark, _colummarks, _ass1, _ass2, _vec1, _vec2);
2827#line 2827 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2828#line 2828 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2829 goto tmp2_done;
2830 }
2831 case 1: {
2832 modelica_boolean tmp7;
2833 /* Pattern matching succeeded */
2834#line 2926 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2835 /* Pattern-matching assignment */
2836#line 2926 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2837 tmp7 = (_i > _size);
2838#line 2926 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2839 if (0 != tmp7) goto goto_1;
2840#line 2840 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2841
2842#line 2927 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2843 arrayUpdate(_vec1, _id, arrayGet(_ass2,_i) /* DAE.ASUB */)boxptr_arrayUpdate(threadData,_vec1,mmc_mk_icon(_id),nobox_arrayGet
(threadData,_ass2,_i))
;
2844#line 2844 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2845
2846#line 2928 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2847 arrayUpdate(_vec2, _id, mmc_mk_integer(_i))boxptr_arrayUpdate(threadData,_vec2,mmc_mk_icon(_id),mmc_mk_icon
(_i))
;
2848#line 2848 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2849
2850#line 2929 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2851 omc_OnRelaxation_getIndexesForEqnsRest(threadData, ((modelica_integer) 1) + _i, _size, ((modelica_integer) 1) + _id, _mark, _colummarks, _ass1, _ass2, _vec1, _vec2);
2852#line 2852 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2853#line 2853 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2854 goto tmp2_done;
2855 }
2856 case 2: {
2857 /* Pattern matching succeeded */
2858#line 2858 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2859 goto tmp2_done;
2860 }
2861 }
2862 goto tmp2_end;
2863 tmp2_end: ;
2864 }
2865 goto goto_1;
2866 tmp2_done:
2867 (void)tmp3;
2868 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2869 goto tmp2_done2;
2870 goto_1:;
2871 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2872 if (++tmp3 < 3) {
2873 goto tmp2_top;
2874 }
2875 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2876 tmp2_done2:;
2877 }
2878 }
2879 ;
2880 _return: OMC_LABEL_UNUSED__attribute__((unused))
2881 return;
2882}
2883PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_getIndexesForEqnsRest(threadData_t *threadData, modelica_metatype _i, modelica_metatype _size, modelica_metatype _id, modelica_metatype _mark, modelica_metatype _colummarks, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _vec1, modelica_metatype _vec2)
2884{
2885 modelica_integer tmp1;
2886 modelica_integer tmp2;
2887 modelica_integer tmp3;
2888 modelica_integer tmp4;
2889 tmp1 = mmc_unbox_integer(_i)(((mmc_sint_t) (_i)) >> 1);
2890 tmp2 = mmc_unbox_integer(_size)(((mmc_sint_t) (_size)) >> 1);
2891 tmp3 = mmc_unbox_integer(_id)(((mmc_sint_t) (_id)) >> 1);
2892 tmp4 = mmc_unbox_integer(_mark)(((mmc_sint_t) (_mark)) >> 1);
2893 omc_OnRelaxation_getIndexesForEqnsRest(threadData, tmp1, tmp2, tmp3, tmp4, _colummarks, _ass1, _ass2, _vec1, _vec2);
2894 return;
2895}
2896
2897PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_markIndexSubgraph(threadData_t *threadData, modelica_boolean _b, modelica_metatype _r, modelica_integer _mark, modelica_metatype _rowmarks)
2898{
2899 MMC_SO()mmc_check_stackoverflow(threadData);
2900 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2901#line 2901 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2902 { /* match expression */
2903 modelica_boolean tmp3_1;
2904 tmp3_1 = _b;
2905 {
2906 volatile mmc_switch_type tmp3;
2907 int tmp4;
2908 tmp3 = 0;
2909 for (; tmp3 < 2; tmp3++) {
2910 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2911 case 0: {
2912 if (0 != tmp3_1) goto tmp2_end;
2913 /* Pattern matching succeeded */
2914#line 2914 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2915 goto tmp2_done;
2916 }
2917 case 1: {
2918 if (1 != tmp3_1) goto tmp2_end;
2919 /* Pattern matching succeeded */
2920#line 2899 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2921 omc_List_map2__0(threadData, _r, boxvar_OnRelaxation_doMark((void*)((char*)(&(boxvar_lit_OnRelaxation_doMark).header
) + 3))
, _rowmarks, mmc_mk_integermmc_mk_icon(_mark));
2922#line 2922 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2923#line 2923 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2924 goto tmp2_done;
2925 }
2926 }
2927 goto tmp2_end;
2928 tmp2_end: ;
2929 }
2930 goto goto_1;
2931 goto_1:;
2932 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2933 goto tmp2_done;
2934 tmp2_done:;
2935 }
2936 }
2937 ;
2938 _return: OMC_LABEL_UNUSED__attribute__((unused))
2939 return;
2940}
2941PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_markIndexSubgraph(threadData_t *threadData, modelica_metatype _b, modelica_metatype _r, modelica_metatype _mark, modelica_metatype _rowmarks)
2942{
2943 modelica_integer tmp1;
2944 modelica_integer tmp2;
2945 tmp1 = mmc_unbox_integer(_b)(((mmc_sint_t) (_b)) >> 1);
2946 tmp2 = mmc_unbox_integer(_mark)(((mmc_sint_t) (_mark)) >> 1);
2947 omc_OnRelaxation_markIndexSubgraph(threadData, tmp1, _r, tmp2, _rowmarks);
2948 return;
2949}
2950
2951PROTECTED_FUNCTION_STATIC modelica_boolean omc_OnRelaxation_getIndexSubGraph(threadData_t *threadData, modelica_metatype _rows, modelica_metatype _vorphan, modelica_metatype _m, modelica_metatype _mT, modelica_integer _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _orowmarks, modelica_metatype _ocolummarks, modelica_metatype _ass1, modelica_metatype _ass2, modelica_boolean _ifound)
2952{
2953 modelica_boolean _found;
2954 modelica_boolean tmp1 = 0;
2955 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2956 MMC_SO()mmc_check_stackoverflow(threadData);
2957 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2958 // _found has no default value.
2959#line 2959 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2960 { /* matchcontinue expression */
2961 volatile modelica_metatype tmp4_1;
2962 tmp4_1 = _rows;
2963 {
2964 modelica_integer _r;
2965 modelica_integer _e;
2966 modelica_metatype _rest = NULL((void*)0);
2967 modelica_metatype _nextrows = NULL((void*)0);
2968 modelica_boolean _b;
2969 volatile mmc_switch_type tmp4;
2970 int tmp5;
2971 // _r has no default value.
2972 // _e has no default value.
2973 // _rest has no default value.
2974 // _nextrows has no default value.
2975 // _b has no default value.
2976 tmp4 = 0;
2977 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) {
2978 tmp3_top:
2979 threadData->mmc_jumper = &new_mmc_jumper;
2980 for (; tmp4 < 5; tmp4++) {
2981 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2982 case 0: {
2983 if (!listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
2984 tmp4 += 4; /* Pattern matching succeeded; we may skip some cases if we fail */
2985#line 2841 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
2986 tmp1 = _ifound;
2987#line 2987 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
2988 goto tmp3_done;
2989 }
2990 case 1: {
2991 modelica_integer tmp6;
2992 modelica_boolean tmp7;
2993 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
2994 tmpMeta[0] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
2995 tmpMeta[1] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2996 tmp6 = mmc_unbox_integer(tmpMeta[0])(((mmc_sint_t) (tmpMeta[0])) >> 1);
2997 _r = tmp6 /* pattern as ty=Integer */;
2998 _rest = tmpMeta[1];
2999 /* Pattern matching succeeded */
3000#line 2846 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3001 /* Pattern-matching assignment */
3002#line 2846 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3003 tmp7 = listMember(mmc_mk_integermmc_mk_icon(_r), _vorphan);
3004#line 2846 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3005 if (1 != tmp7) goto goto_2;
3006#line 3006 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3007
3008#line 2849 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3009 omc_OnRelaxation_getIndexSubGraph(threadData, _rest, _vorphan, _m, _mT, _mark, _rowmarks, _colummarks, _orowmarks, _ocolummarks, _ass1, _ass2, 0);
3010#line 3010 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3011#line 2850 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3012 tmp1 = 1;
3013#line 3013 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3014 goto tmp3_done;
3015 }
3016 case 2: {
3017 modelica_integer tmp8;
3018 modelica_boolean tmp9;
3019 modelica_boolean tmp10;
3020 modelica_boolean tmp11;
3021 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
3022 tmpMeta[0] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
3023 tmpMeta[1] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3024 tmp8 = mmc_unbox_integer(tmpMeta[0])(((mmc_sint_t) (tmpMeta[0])) >> 1);
3025 _r = tmp8 /* pattern as ty=Integer */;
3026 _rest = tmpMeta[1];
3027 /* Pattern matching succeeded */
3028#line 2855 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3029 /* Pattern-matching assignment */
3030#line 2855 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3031 tmp9 = listMember(mmc_mk_integermmc_mk_icon(_r), _vorphan);
3032#line 2855 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3033 if (0 != tmp9) goto goto_2;
3034#line 3034 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3035
3036#line 2857 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3037 /* Pattern-matching assignment */
3038#line 2857 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3039 tmp10 = (mmc_unbox_integer(arrayGet(_orowmarks,_r) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_orowmarks,_r))) >>
1)
== ((modelica_integer) 1));
3040#line 2857 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3041 if (0 != tmp10) goto goto_2;
3042#line 3042 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3043
3044#line 2858 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3045 /* Pattern-matching assignment */
3046#line 2858 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3047 tmp11 = (mmc_unbox_integer(arrayGet(_rowmarks,_r) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_rowmarks,_r))) >>
1)
== _mark);
3048#line 2858 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3049 if (1 != tmp11) goto goto_2;
3050#line 3050 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3051
3052#line 2859 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3053 _e = mmc_unbox_integer(arrayGet(_ass1,_r) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_ass1,_r))) >>
1)
;
3054#line 3054 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3055
3056#line 2860 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3057 omc_List_map2__0(threadData, arrayGet(_ass2,_e)nobox_arrayGet(threadData,_ass2,_e) /* DAE.ASUB */, boxvar_OnRelaxation_doMark((void*)((char*)(&(boxvar_lit_OnRelaxation_doMark).header
) + 3))
, _rowmarks, mmc_mk_integermmc_mk_icon(_mark));
3058#line 3058 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3059#line 2861 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3060 tmp1 = omc_OnRelaxation_getIndexSubGraph(threadData, _rest, _vorphan, _m, _mT, _mark, _rowmarks, _colummarks, _orowmarks, _ocolummarks, _ass1, _ass2, 1);
3061#line 3061 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3062 goto tmp3_done;
3063 }
3064 case 3: {
3065 modelica_integer tmp12;
3066 modelica_boolean tmp13;
3067 modelica_boolean tmp14;
3068 modelica_boolean tmp15;
3069 modelica_boolean tmp16;
3070 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
3071 tmpMeta[0] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
3072 tmpMeta[1] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3073 tmp12 = mmc_unbox_integer(tmpMeta[0])(((mmc_sint_t) (tmpMeta[0])) >> 1);
3074 _r = tmp12 /* pattern as ty=Integer */;
3075 _rest = tmpMeta[1];
3076 /* Pattern matching succeeded */
3077#line 2866 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3078 /* Pattern-matching assignment */
3079#line 2866 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3080 tmp13 = listMember(mmc_mk_integermmc_mk_icon(_r), _vorphan);
3081#line 2866 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3082 if (0 != tmp13) goto goto_2;
3083#line 3083 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3084
3085#line 2868 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3086 /* Pattern-matching assignment */
3087#line 2868 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3088 tmp14 = (mmc_unbox_integer(arrayGet(_orowmarks,_r) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_orowmarks,_r))) >>
1)
== ((modelica_integer) 1));
3089#line 2868 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3090 if (0 != tmp14) goto goto_2;
3091#line 3091 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3092
3093#line 2870 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3094 _e = mmc_unbox_integer(arrayGet(_ass1,_r) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_ass1,_r))) >>
1)
;
3095#line 3095 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3096
3097#line 2871 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3098 /* Pattern-matching assignment */
3099#line 2871 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3100 tmp15 = (mmc_unbox_integer(arrayGet(_ocolummarks,_e) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_ocolummarks,_e))) >>
1)
== ((modelica_integer) 1));
3101#line 2871 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3102 if (0 != tmp15) goto goto_2;
3103#line 3103 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3104
3105#line 2872 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3106 /* Pattern-matching assignment */
3107#line 2872 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3108 tmp16 = (mmc_unbox_integer(arrayGet(_colummarks,_e) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_colummarks,_e))) >>
1)
== _mark);
3109#line 2872 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3110 if (0 != tmp16) goto goto_2;
3111#line 3111 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3112
3113#line 2873 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3114 _nextrows = omc_List_select(threadData, arrayGet(_m,_e)nobox_arrayGet(threadData,_m,_e) /* DAE.ASUB */, boxvar_Util_intPositive((void*)((char*)(&(boxvar_lit_Util_intPositive).header) +
3))
);
3115#line 3115 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3116
3117#line 2874 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3118 _nextrows = omc_List_setDifferenceOnTrue(threadData, _nextrows, arrayGet(_ass2,_e)nobox_arrayGet(threadData,_ass2,_e) /* DAE.ASUB */, boxvar_intEq((void*)((char*)(&(boxvar_lit_intEq).header) + 3)));
3119#line 3119 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3120
3121#line 2877 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3122 arrayUpdate(_colummarks, _e, mmc_mk_integer(_mark))boxptr_arrayUpdate(threadData,_colummarks,mmc_mk_icon(_e),mmc_mk_icon
(_mark))
;
3123#line 3123 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3124
3125#line 2879 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3126 _b = omc_OnRelaxation_getIndexSubGraph(threadData, _nextrows, _vorphan, _m, _mT, _mark, _rowmarks, _colummarks, _orowmarks, _ocolummarks, _ass1, _ass2, 0);
3127#line 3127 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3128
3129#line 2880 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3130 omc_OnRelaxation_markIndexSubgraph(threadData, _b, arrayGet(_ass2,_e)nobox_arrayGet(threadData,_ass2,_e) /* DAE.ASUB */, _mark, _rowmarks);
3131#line 3131 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3132#line 2881 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3133 tmp1 = omc_OnRelaxation_getIndexSubGraph(threadData, _rest, _vorphan, _m, _mT, _mark, _rowmarks, _colummarks, _orowmarks, _ocolummarks, _ass1, _ass2, (_b || _ifound));
3134#line 3134 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3135 goto tmp3_done;
3136 }
3137 case 4: {
3138 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
3139 tmpMeta[0] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
3140 tmpMeta[1] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3141 _rest = tmpMeta[1];
3142 /* Pattern matching succeeded */
3143#line 2884 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3144 tmp1 = omc_OnRelaxation_getIndexSubGraph(threadData, _rest, _vorphan, _m, _mT, _mark, _rowmarks, _colummarks, _orowmarks, _ocolummarks, _ass1, _ass2, _ifound);
3145#line 3145 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3146 goto tmp3_done;
3147 }
3148 }
3149 goto tmp3_end;
3150 tmp3_end: ;
3151 }
3152 goto goto_2;
3153 tmp3_done:
3154 (void)tmp4;
3155 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
3156 goto tmp3_done2;
3157 goto_2:;
3158 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
3159 if (++tmp4 < 5) {
3160 goto tmp3_top;
3161 }
3162 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3163 tmp3_done2:;
3164 }
3165 }
3166 _found = tmp1;
3167 _return: OMC_LABEL_UNUSED__attribute__((unused))
3168 return _found;
3169}
3170PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getIndexSubGraph(threadData_t *threadData, modelica_metatype _rows, modelica_metatype _vorphan, modelica_metatype _m, modelica_metatype _mT, modelica_metatype _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _orowmarks, modelica_metatype _ocolummarks, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _ifound)
3171{
3172 modelica_integer tmp1;
3173 modelica_integer tmp2;
3174 modelica_boolean _found;
3175 modelica_metatype out_found;
3176 tmp1 = mmc_unbox_integer(_mark)(((mmc_sint_t) (_mark)) >> 1);
3177 tmp2 = mmc_unbox_integer(_ifound)(((mmc_sint_t) (_ifound)) >> 1);
3178 _found = omc_OnRelaxation_getIndexSubGraph(threadData, _rows, _vorphan, _m, _mT, tmp1, _rowmarks, _colummarks, _orowmarks, _ocolummarks, _ass1, _ass2, tmp2);
3179 out_found = mmc_mk_icon(_found);
3180 return out_found;
3181}
3182
3183PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_doMark(threadData_t *threadData, modelica_integer _index, modelica_metatype _arr, modelica_integer _mark)
3184{
3185 MMC_SO()mmc_check_stackoverflow(threadData);
3186 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3187#line 2818 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3188 arrayUpdate(_arr, _index, mmc_mk_integer(_mark))boxptr_arrayUpdate(threadData,_arr,mmc_mk_icon(_index),mmc_mk_icon
(_mark))
;
3189#line 3189 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3190 _return: OMC_LABEL_UNUSED__attribute__((unused))
3191 return;
3192}
3193PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_doMark(threadData_t *threadData, modelica_metatype _index, modelica_metatype _arr, modelica_metatype _mark)
3194{
3195 modelica_integer tmp1;
3196 modelica_integer tmp2;
3197 tmp1 = mmc_unbox_integer(_index)(((mmc_sint_t) (_index)) >> 1);
3198 tmp2 = mmc_unbox_integer(_mark)(((mmc_sint_t) (_mark)) >> 1);
3199 omc_OnRelaxation_doMark(threadData, tmp1, _arr, tmp2);
3200 return;
3201}
3202
3203PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_doAssign(threadData_t *threadData, modelica_integer _index, modelica_metatype _arr, modelica_metatype _assign)
3204{
3205 MMC_SO()mmc_check_stackoverflow(threadData);
3206 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3207#line 2810 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3208 arrayUpdate(_arr, _index, _assign)boxptr_arrayUpdate(threadData,_arr,mmc_mk_icon(_index),_assign
)
;
3209#line 3209 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3210 _return: OMC_LABEL_UNUSED__attribute__((unused))
3211 return;
3212}
3213PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_doAssign(threadData_t *threadData, modelica_metatype _index, modelica_metatype _arr, modelica_metatype _assign)
3214{
3215 modelica_integer tmp1;
3216 tmp1 = mmc_unbox_integer(_index)(((mmc_sint_t) (_index)) >> 1);
3217 omc_OnRelaxation_doAssign(threadData, tmp1, _arr, _assign);
3218 return;
3219}
3220
3221PROTECTED_FUNCTION_STATIC modelica_boolean omc_OnRelaxation_isNoResOrphan(threadData_t *threadData, modelica_integer _indx, modelica_metatype _ass)
3222{
3223 modelica_boolean _b;
3224 MMC_SO()mmc_check_stackoverflow(threadData);
3225 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3226 // _b has no default value.
3227#line 2802 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3228 _b = (!listEmpty(arrayGet(_ass,_indx) /* DAE.ASUB */)((*(mmc_uint_t*)((void*)((char*)(nobox_arrayGet(threadData,_ass
,_indx)) - 3))) == (((0) << 10) + (((0) & 255) <<
2)))
);
3229#line 3229 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3230 _return: OMC_LABEL_UNUSED__attribute__((unused))
3231 return _b;
3232}
3233PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_isNoResOrphan(threadData_t *threadData, modelica_metatype _indx, modelica_metatype _ass)
3234{
3235 modelica_integer tmp1;
3236 modelica_boolean _b;
3237 modelica_metatype out_b;
3238 tmp1 = mmc_unbox_integer(_indx)(((mmc_sint_t) (_indx)) >> 1);
3239 _b = omc_OnRelaxation_isNoResOrphan(threadData, tmp1, _ass);
3240 out_b = mmc_mk_icon(_b);
3241 return out_b;
3242}
3243
3244PROTECTED_FUNCTION_STATIC modelica_boolean omc_OnRelaxation_isResOrphan(threadData_t *threadData, modelica_integer _indx, modelica_metatype _ass)
3245{
3246 modelica_boolean _b;
3247 MMC_SO()mmc_check_stackoverflow(threadData);
3248 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3249 // _b has no default value.
3250#line 2794 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3251 _b = listEmpty(arrayGet(_ass,_indx) /* DAE.ASUB */)((*(mmc_uint_t*)((void*)((char*)(nobox_arrayGet(threadData,_ass
,_indx)) - 3))) == (((0) << 10) + (((0) & 255) <<
2)))
;
3252#line 3252 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3253 _return: OMC_LABEL_UNUSED__attribute__((unused))
3254 return _b;
3255}
3256PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_isResOrphan(threadData_t *threadData, modelica_metatype _indx, modelica_metatype _ass)
3257{
3258 modelica_integer tmp1;
3259 modelica_boolean _b;
3260 modelica_metatype out_b;
3261 tmp1 = mmc_unbox_integer(_indx)(((mmc_sint_t) (_indx)) >> 1);
3262 _b = omc_OnRelaxation_isResOrphan(threadData, tmp1, _ass);
3263 out_b = mmc_mk_icon(_b);
3264 return out_b;
3265}
3266
3267PROTECTED_FUNCTION_STATIC modelica_boolean omc_OnRelaxation_isNoOrphan(threadData_t *threadData, modelica_integer _indx, modelica_metatype _ass)
3268{
3269 modelica_boolean _b;
3270 MMC_SO()mmc_check_stackoverflow(threadData);
3271 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3272 // _b has no default value.
3273#line 2786 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3274 _b = (mmc_unbox_integer(arrayGet(_ass,_indx) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_ass,_indx))) >>
1)
> ((modelica_integer) 0));
3275#line 3275 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3276 _return: OMC_LABEL_UNUSED__attribute__((unused))
3277 return _b;
3278}
3279PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_isNoOrphan(threadData_t *threadData, modelica_metatype _indx, modelica_metatype _ass)
3280{
3281 modelica_integer tmp1;
3282 modelica_boolean _b;
3283 modelica_metatype out_b;
3284 tmp1 = mmc_unbox_integer(_indx)(((mmc_sint_t) (_indx)) >> 1);
3285 _b = omc_OnRelaxation_isNoOrphan(threadData, tmp1, _ass);
3286 out_b = mmc_mk_icon(_b);
3287 return out_b;
3288}
3289
3290PROTECTED_FUNCTION_STATIC modelica_boolean omc_OnRelaxation_isOrphan(threadData_t *threadData, modelica_integer _indx, modelica_metatype _ass)
3291{
3292 modelica_boolean _b;
3293 MMC_SO()mmc_check_stackoverflow(threadData);
3294 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3295 // _b has no default value.
3296#line 2778 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3297 _b = (mmc_unbox_integer(arrayGet(_ass,_indx) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_ass,_indx))) >>
1)
< ((modelica_integer) 1));
3298#line 3298 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3299 _return: OMC_LABEL_UNUSED__attribute__((unused))
3300 return _b;
3301}
3302PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_isOrphan(threadData_t *threadData, modelica_metatype _indx, modelica_metatype _ass)
3303{
3304 modelica_integer tmp1;
3305 modelica_boolean _b;
3306 modelica_metatype out_b;
3307 tmp1 = mmc_unbox_integer(_indx)(((mmc_sint_t) (_indx)) >> 1);
3308 _b = omc_OnRelaxation_isOrphan(threadData, tmp1, _ass);
3309 out_b = mmc_mk_icon(_b);
3310 return out_b;
3311}
3312
3313PROTECTED_FUNCTION_STATIC modelica_boolean omc_OnRelaxation_marked(threadData_t *threadData, modelica_integer _indx, modelica_metatype _markarray, modelica_integer _mark)
3314{
3315 modelica_boolean _b;
3316 MMC_SO()mmc_check_stackoverflow(threadData);
3317 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3318 // _b has no default value.
3319#line 2770 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3320 _b = (mmc_unbox_integer(arrayGet(_markarray,_indx) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_markarray,_indx)))
>> 1)
== _mark);
3321#line 3321 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3322 _return: OMC_LABEL_UNUSED__attribute__((unused))
3323 return _b;
3324}
3325PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_marked(threadData_t *threadData, modelica_metatype _indx, modelica_metatype _markarray, modelica_metatype _mark)
3326{
3327 modelica_integer tmp1;
3328 modelica_integer tmp2;
3329 modelica_boolean _b;
3330 modelica_metatype out_b;
3331 tmp1 = mmc_unbox_integer(_indx)(((mmc_sint_t) (_indx)) >> 1);
3332 tmp2 = mmc_unbox_integer(_mark)(((mmc_sint_t) (_mark)) >> 1);
3333 _b = omc_OnRelaxation_marked(threadData, tmp1, _markarray, tmp2);
3334 out_b = mmc_mk_icon(_b);
3335 return out_b;
3336}
3337
3338PROTECTED_FUNCTION_STATIC modelica_boolean omc_OnRelaxation_unmarked(threadData_t *threadData, modelica_integer _indx, modelica_metatype _markarray, modelica_integer _mark)
3339{
3340 modelica_boolean _b;
3341 MMC_SO()mmc_check_stackoverflow(threadData);
3342 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3343 // _b has no default value.
3344#line 2761 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3345 _b = (mmc_unbox_integer(arrayGet(_markarray,_indx) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_markarray,_indx)))
>> 1)
!= _mark);
3346#line 3346 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3347 _return: OMC_LABEL_UNUSED__attribute__((unused))
3348 return _b;
3349}
3350PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_unmarked(threadData_t *threadData, modelica_metatype _indx, modelica_metatype _markarray, modelica_metatype _mark)
3351{
3352 modelica_integer tmp1;
3353 modelica_integer tmp2;
3354 modelica_boolean _b;
3355 modelica_metatype out_b;
3356 tmp1 = mmc_unbox_integer(_indx)(((mmc_sint_t) (_indx)) >> 1);
3357 tmp2 = mmc_unbox_integer(_mark)(((mmc_sint_t) (_mark)) >> 1);
3358 _b = omc_OnRelaxation_unmarked(threadData, tmp1, _markarray, tmp2);
3359 out_b = mmc_mk_icon(_b);
3360 return out_b;
3361}
3362
3363PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_getIndexQueque1(threadData_t *threadData, modelica_metatype _rows, modelica_integer _c, modelica_metatype _mT, modelica_integer _mark, modelica_metatype _rowmarks, modelica_boolean *out_ob)
3364{
3365 modelica_metatype _ocolums = NULL((void*)0);
3366 modelica_boolean _ob;
3367 modelica_metatype _colums = NULL((void*)0);
3368 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
3369 MMC_SO()mmc_check_stackoverflow(threadData);
3370 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3371 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3372 _ocolums = tmpMeta[0];
3373 _ob = 0;
3374 // _colums has no default value.
3375#line 2743 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3376 {
3377#line 2743 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3378 modelica_metatype _r;
3379#line 2743 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3380 for (tmpMeta[1] = _rows; !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)))))
)
3381#line 2743 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3382 {
3383#line 2743 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3384 _r = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
3385#line 2744 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3386 if((mmc_unbox_integer(arrayGet(_rowmarks,mmc_unbox_integer(_r)) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_rowmarks,(((mmc_sint_t
) (_r)) >> 1)))) >> 1)
== _mark))
3387#line 2744 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3388 {
3389#line 2746 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3390 _ob = 1;
3391#line 3391 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3392
3393#line 2747 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3394 _colums = omc_List_select(threadData, arrayGet(_mT,mmc_unbox_integer(_r))nobox_arrayGet(threadData,_mT,(((mmc_sint_t) (_r)) >> 1
))
/* DAE.ASUB */, boxvar_Util_intPositive((void*)((char*)(&(boxvar_lit_Util_intPositive).header) +
3))
);
3395#line 3395 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3396
3397#line 2748 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3398 _colums = omc_List_removeOnTrue(threadData, mmc_mk_integermmc_mk_icon(_c), boxvar_intEq((void*)((char*)(&(boxvar_lit_intEq).header) + 3)), _colums);
3399#line 3399 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3400
3401#line 2749 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3402 _ocolums = listAppend(_colums, _ocolums);
3403#line 3403 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3404 }
3405 }
3406 }
3407
3408#line 2752 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3409 _ocolums = omc_List_unique(threadData, _ocolums);
3410#line 3410 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3411 _return: OMC_LABEL_UNUSED__attribute__((unused))
3412 if (out_ob) { *out_ob = _ob; }
3413 return _ocolums;
3414}
3415PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getIndexQueque1(threadData_t *threadData, modelica_metatype _rows, modelica_metatype _c, modelica_metatype _mT, modelica_metatype _mark, modelica_metatype _rowmarks, modelica_metatype *out_ob)
3416{
3417 modelica_integer tmp1;
3418 modelica_integer tmp2;
3419 modelica_boolean _ob;
3420 modelica_metatype _ocolums = NULL((void*)0);
3421 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
3422 tmp1 = mmc_unbox_integer(_c)(((mmc_sint_t) (_c)) >> 1);
3423 tmp2 = mmc_unbox_integer(_mark)(((mmc_sint_t) (_mark)) >> 1);
3424 _ocolums = omc_OnRelaxation_getIndexQueque1(threadData, _rows, tmp1, _mT, tmp2, _rowmarks, &_ob);
3425 /* skip box _ocolums; list<#Integer> */
3426 if (out_ob) { *out_ob = mmc_mk_icon(_ob); }
3427 return _ocolums;
3428}
3429
3430PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_getIndexQueque(threadData_t *threadData, modelica_metatype _colums, modelica_metatype _m, modelica_metatype _mT, modelica_integer _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _vec2, modelica_metatype _queuemark, modelica_metatype _nextqueue, modelica_metatype _iqueue, modelica_metatype _iqueue1)
3431{
3432 modelica_metatype _oqueue = NULL((void*)0);
3433 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
3434 MMC_SO()mmc_check_stackoverflow(threadData);
3435 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3436 // _oqueue has no default value.
3437#line 3437 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3438 { /* match expression */
3439 modelica_metatype tmp3_1;modelica_metatype tmp3_2;
3440 tmp3_1 = _colums;
3441 tmp3_2 = _nextqueue;
3442 {
3443 modelica_integer _c;
3444 modelica_metatype _rest = NULL((void*)0);
3445 modelica_metatype _queue = NULL((void*)0);
3446 modelica_metatype _r = NULL((void*)0);
3447 modelica_metatype _queue1 = NULL((void*)0);
3448 modelica_metatype _colums1 = NULL((void*)0);
3449 modelica_boolean _b1;
3450 modelica_boolean _b2;
3451 volatile mmc_switch_type tmp3;
3452 int tmp4;
3453 // _c has no default value.
3454 // _rest has no default value.
3455 // _queue has no default value.
3456 // _r has no default value.
3457 // _queue1 has no default value.
3458 // _colums1 has no default value.
3459 // _b1 has no default value.
3460 // _b2 has no default value.
3461 tmp3 = 0;
3462 for (; tmp3 < 3; tmp3++) {
3463 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3464 case 0: {
3465 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3466 if (!listEmpty(tmp3_2)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3467 /* Pattern matching succeeded */
3468#line 2709 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3469 tmpMeta[0] = _iqueue1;
3470#line 3470 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3471 goto tmp2_done;
3472 }
3473 case 1: {
3474 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3475
3476 /* Pattern matching succeeded */
3477#line 2712 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3478 _queue = omc_List_unique(threadData, _iqueue);
3479#line 3479 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3480#line 2714 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3481 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3482#line 2714 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3483 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3484#line 2714 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3485 tmpMeta[3] = mmc_mk_cons(_queue, _iqueue1);
3486#line 2714 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3487 /* Tail recursive call */
3488#line 2714 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3489 _colums = _nextqueue;
3490#line 2714 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3491 _nextqueue = tmpMeta[1];
3492#line 2714 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3493 _iqueue = tmpMeta[2];
3494#line 2714 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3495 _iqueue1 = tmpMeta[3];
3496#line 2714 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3497 goto _tailrecursive;
3498#line 2714 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3499 /* TODO: Make sure any eventual dead code below is never generated */
3500#line 3500 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3501 goto tmp2_done;
3502 }
3503 case 2: {
3504 modelica_integer tmp5;
3505 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3506 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
3507 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3508 tmp5 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
3509
3510 _c = tmp5 /* pattern as ty=Integer */;
3511 _rest = tmpMeta[2];
3512 /* Pattern matching succeeded */
3513#line 2718 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3514 _r = arrayGet(_ass2,_c)nobox_arrayGet(threadData,_ass2,_c) /* DAE.ASUB */;
3515#line 3515 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3516
3517#line 2720 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3518 _colums1 = omc_OnRelaxation_getIndexQueque1(threadData, _r, _c, _mT, _mark, _rowmarks ,&_b2);
3519#line 3519 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3520
3521#line 2722 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3522 _b1 = (!listEmpty(_colums)((*(mmc_uint_t*)((void*)((char*)(_colums) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
);
3523#line 3523 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3524
3525#line 2724 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3526 _queue = (_b1?omc_List_unionOnTrue(threadData, _colums1, _nextqueue, boxvar_intEq((void*)((char*)(&(boxvar_lit_intEq).header) + 3))):_nextqueue);
3527#line 3527 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3528
3529#line 2726 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3530 _queue1 = omc_List_consOnTrue(threadData, _b2, mmc_mk_integermmc_mk_icon(_c), _iqueue);
3531#line 3531 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3532#line 2727 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3533 /* Tail recursive call */
3534#line 2727 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3535 _colums = _rest;
3536#line 2727 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3537 _nextqueue = _queue;
3538#line 2727 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3539 _iqueue = _queue1;
3540#line 2727 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3541 goto _tailrecursive;
3542#line 2727 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3543 /* TODO: Make sure any eventual dead code below is never generated */
3544#line 3544 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3545 goto tmp2_done;
3546 }
3547 }
3548 goto tmp2_end;
3549 tmp2_end: ;
3550 }
3551 goto goto_1;
3552 goto_1:;
3553 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3554 goto tmp2_done;
3555 tmp2_done:;
3556 }
3557 }
3558 _oqueue = tmpMeta[0];
3559 _return: OMC_LABEL_UNUSED__attribute__((unused))
3560 return _oqueue;
3561}
3562PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getIndexQueque(threadData_t *threadData, modelica_metatype _colums, modelica_metatype _m, modelica_metatype _mT, modelica_metatype _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _vec2, modelica_metatype _queuemark, modelica_metatype _nextqueue, modelica_metatype _iqueue, modelica_metatype _iqueue1)
3563{
3564 modelica_integer tmp1;
3565 modelica_metatype _oqueue = NULL((void*)0);
3566 tmp1 = mmc_unbox_integer(_mark)(((mmc_sint_t) (_mark)) >> 1);
3567 _oqueue = omc_OnRelaxation_getIndexQueque(threadData, _colums, _m, _mT, tmp1, _rowmarks, _colummarks, _ass1, _ass2, _vec2, _queuemark, _nextqueue, _iqueue, _iqueue1);
3568 /* skip box _oqueue; list<list<#Integer>> */
3569 return _oqueue;
3570}
3571
3572PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_setIndexQueue(threadData_t *threadData, modelica_integer _col, modelica_metatype _tpl, modelica_metatype _itpl)
3573{
3574 modelica_metatype _otpl = NULL((void*)0);
3575 modelica_metatype tmpMeta[10] __attribute__((unused)) = {0};
3576 MMC_SO()mmc_check_stackoverflow(threadData);
3577 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3578 // _otpl has no default value.
3579#line 3579 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3580 { /* matchcontinue expression */
3581 volatile modelica_metatype tmp3_1;volatile modelica_metatype tmp3_2;
3582 tmp3_1 = _tpl;
3583 tmp3_2 = _itpl;
3584 {
3585 modelica_metatype _vec2 = NULL((void*)0);
3586 modelica_metatype _colummark = NULL((void*)0);
3587 modelica_metatype _vec1 = NULL((void*)0);
3588 modelica_metatype _ass2 = NULL((void*)0);
3589 modelica_metatype _r = NULL((void*)0);
3590 modelica_metatype _rlst = NULL((void*)0);
3591 modelica_metatype _elst = NULL((void*)0);
3592 modelica_metatype _queuemark = NULL((void*)0);
3593 modelica_integer _index;
3594 modelica_integer _mark;
3595 volatile mmc_switch_type tmp3;
3596 int tmp4;
3597 // _vec2 has no default value.
3598 // _colummark has no default value.
3599 // _vec1 has no default value.
3600 // _ass2 has no default value.
3601 // _r has no default value.
3602 // _rlst has no default value.
3603 // _elst has no default value.
3604 // _queuemark has no default value.
3605 // _index has no default value.
3606 // _mark has no default value.
3607 tmp3 = 0;
3608 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) {
3609 tmp2_top:
3610 threadData->mmc_jumper = &new_mmc_jumper;
3611 for (; tmp3 < 3; tmp3++) {
3612 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3613 case 0: {
3614 modelica_integer tmp5;
3615 modelica_integer tmp6;
3616 modelica_integer tmp7;
3617 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
3618 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3619 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
3620 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
3621 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(5)))))
;
3622 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(6)))))
;
3623 tmp5 = mmc_unbox_integer(tmpMeta[6])(((mmc_sint_t) (tmpMeta[6])) >> 1);
3624 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(1)))))
;
3625 tmp6 = mmc_unbox_integer(tmpMeta[7])(((mmc_sint_t) (tmpMeta[7])) >> 1);
3626 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
3627 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(3)))))
;
3628 _vec1 = tmpMeta[1];
3629 _vec2 = tmpMeta[2];
3630 _ass2 = tmpMeta[3];
3631 _queuemark = tmpMeta[4];
3632 _colummark = tmpMeta[5];
3633 _mark = tmp5 /* pattern as ty=Integer */;
3634 _index = tmp6 /* pattern as ty=Integer */;
3635 _elst = tmpMeta[8];
3636 _rlst = tmpMeta[9];
3637 /* Pattern matching succeeded */
3638#line 2666 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3639 _r = arrayGet(_ass2,_col)nobox_arrayGet(threadData,_ass2,_col) /* DAE.ASUB */;
3640#line 3640 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3641
3642#line 2667 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3643 /* Pattern-matching assignment */
3644#line 2667 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3645 tmpMeta[1] = arrayGet(_queuemark,_col)nobox_arrayGet(threadData,_queuemark,_col) /* DAE.ASUB */;
3646#line 2667 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3647 tmp7 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
3648#line 2667 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3649 if (0 != tmp7) goto goto_1;
3650#line 3650 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3651
3652#line 2669 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3653 arrayUpdate(_vec1, _index, _r)boxptr_arrayUpdate(threadData,_vec1,mmc_mk_icon(_index),_r);
3654#line 3654 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3655
3656#line 2670 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3657 arrayUpdate(_vec2, _index, mmc_mk_integer(_col))boxptr_arrayUpdate(threadData,_vec2,mmc_mk_icon(_index),mmc_mk_icon
(_col))
;
3658#line 3658 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3659
3660#line 2671 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3661 arrayUpdate(_queuemark, _col, mmc_mk_boolean(1))boxptr_arrayUpdate(threadData,_queuemark,mmc_mk_icon(_col),((
1) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))))
;
3662#line 3662 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3663
3664#line 2672 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3665 arrayUpdate(_colummark, _col, mmc_mk_integer(_mark))boxptr_arrayUpdate(threadData,_colummark,mmc_mk_icon(_col),mmc_mk_icon
(_mark))
;
3666#line 3666 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3667#line 2673 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3668 tmpMeta[1] = mmc_mk_cons(mmc_mk_integermmc_mk_icon(_col), _elst);
3669#line 2673 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3670 tmpMeta[2] = mmc_mk_box3(0, mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _index), tmpMeta[1], listAppend(_r, _rlst));
3671#line 2673 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3672 tmpMeta[0] = tmpMeta[2];
3673#line 3673 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3674 goto tmp2_done;
3675 }
3676 case 1: {
3677 modelica_integer tmp8;
3678 modelica_integer tmp9;
3679 modelica_boolean tmp10;
3680 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
3681 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(5)))))
;
3682 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(6)))))
;
3683 tmp8 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
3684 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(1)))))
;
3685 tmp9 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
3686 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
3687 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(3)))))
;
3688 _ass2 = tmpMeta[1];
3689 _colummark = tmpMeta[2];
3690 _mark = tmp8 /* pattern as ty=Integer */;
3691 _index = tmp9 /* pattern as ty=Integer */;
3692 _elst = tmpMeta[5];
3693 _rlst = tmpMeta[6];
3694 /* Pattern matching succeeded */
3695#line 2677 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3696 _r = arrayGet(_ass2,_col)nobox_arrayGet(threadData,_ass2,_col) /* DAE.ASUB */;
3697#line 3697 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3698
3699#line 2678 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3700 /* Pattern-matching assignment */
3701#line 2678 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3702 tmp10 = (mmc_unbox_integer(arrayGet(_colummark,_col) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_colummark,_col))) >>
1)
== _mark);
3703#line 2678 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3704 if (0 != tmp10) goto goto_1;
3705#line 3705 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3706
3707#line 2679 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3708 arrayUpdate(_colummark, _col, mmc_mk_integer(_mark))boxptr_arrayUpdate(threadData,_colummark,mmc_mk_icon(_col),mmc_mk_icon
(_mark))
;
3709#line 3709 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3710#line 2680 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3711 tmpMeta[1] = mmc_mk_cons(mmc_mk_integermmc_mk_icon(_col), _elst);
3712#line 2680 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3713 tmpMeta[2] = mmc_mk_box3(0, mmc_mk_integermmc_mk_icon(_index), tmpMeta[1], listAppend(_r, _rlst));
3714#line 2680 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3715 tmpMeta[0] = tmpMeta[2];
3716#line 3716 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3717 goto tmp2_done;
3718 }
3719 case 2: {
3720
3721 /* Pattern matching succeeded */
3722#line 2683 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3723 tmpMeta[0] = _itpl;
3724#line 3724 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3725 goto tmp2_done;
3726 }
3727 }
3728 goto tmp2_end;
3729 tmp2_end: ;
3730 }
3731 goto goto_1;
3732 tmp2_done:
3733 (void)tmp3;
3734 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
3735 goto tmp2_done2;
3736 goto_1:;
3737 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
3738 if (++tmp3 < 3) {
3739 goto tmp2_top;
3740 }
3741 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3742 tmp2_done2:;
3743 }
3744 }
3745 _otpl = tmpMeta[0];
3746 _return: OMC_LABEL_UNUSED__attribute__((unused))
3747 return _otpl;
3748}
3749PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_setIndexQueue(threadData_t *threadData, modelica_metatype _col, modelica_metatype _tpl, modelica_metatype _itpl)
3750{
3751 modelica_integer tmp1;
3752 modelica_metatype _otpl = NULL((void*)0);
3753 tmp1 = mmc_unbox_integer(_col)(((mmc_sint_t) (_col)) >> 1);
3754 _otpl = omc_OnRelaxation_setIndexQueue(threadData, tmp1, _tpl, _itpl);
3755 /* skip box _otpl; tuple<#Integer, list<#Integer>, list<#Integer>> */
3756 return _otpl;
3757}
3758
3759PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_setBoarderElemts(threadData_t *threadData, modelica_metatype _elements, modelica_metatype _m, modelica_integer _mark, modelica_metatype _arr, modelica_integer _orphan)
3760{
3761 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3762 MMC_SO()mmc_check_stackoverflow(threadData);
3763 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3764#line 3764 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3765 { /* match expression */
3766 modelica_metatype tmp3_1;
3767 tmp3_1 = _elements;
3768 {
3769 modelica_integer _elem;
3770 modelica_metatype _rest = NULL((void*)0);
3771 modelica_metatype _lst = NULL((void*)0);
3772 volatile mmc_switch_type tmp3;
3773 int tmp4;
3774 // _elem has no default value.
3775 // _rest has no default value.
3776 // _lst has no default value.
3777 tmp3 = 0;
3778 for (; tmp3 < 2; tmp3++) {
3779 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3780 case 0: {
3781 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3782 /* Pattern matching succeeded */
3783#line 3783 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3784 goto tmp2_done;
3785 }
3786 case 1: {
3787 modelica_integer tmp5;
3788 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3789 tmpMeta[0] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
3790 tmpMeta[1] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3791 tmp5 = mmc_unbox_integer(tmpMeta[0])(((mmc_sint_t) (tmpMeta[0])) >> 1);
3792 _elem = tmp5 /* pattern as ty=Integer */;
3793 _rest = tmpMeta[1];
3794 /* Pattern matching succeeded */
3795#line 2642 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3796 _lst = omc_List_select2(threadData, arrayGet(_m,_elem)nobox_arrayGet(threadData,_m,_elem) /* DAE.ASUB */, boxvar_OnRelaxation_unmarked((void*)((char*)(&(boxvar_lit_OnRelaxation_unmarked).header
) + 3))
, _arr, mmc_mk_integermmc_mk_icon(_mark));
3797#line 3797 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3798
3799#line 2643 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3800 tmpMeta[0] = mmc_mk_cons(mmc_mk_integermmc_mk_icon(_orphan), _lst);
3801#line 2643 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3802 arrayUpdate(_m, _elem, tmpMeta[0])boxptr_arrayUpdate(threadData,_m,mmc_mk_icon(_elem),tmpMeta[0
])
;
3803#line 3803 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3804
3805#line 2645 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3806 /* Tail recursive call */
3807#line 2645 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3808 _elements = _rest;
3809#line 2645 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3810 goto _tailrecursive;
3811#line 2645 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3812 /* TODO: Make sure any eventual dead code below is never generated */
3813#line 2645 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3814 ;
3815#line 3815 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3816#line 3816 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3817 goto tmp2_done;
3818 }
3819 }
3820 goto tmp2_end;
3821 tmp2_end: ;
3822 }
3823 goto goto_1;
3824 goto_1:;
3825 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3826 goto tmp2_done;
3827 tmp2_done:;
3828 }
3829 }
3830 ;
3831 _return: OMC_LABEL_UNUSED__attribute__((unused))
3832 return;
3833}
3834PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_setBoarderElemts(threadData_t *threadData, modelica_metatype _elements, modelica_metatype _m, modelica_metatype _mark, modelica_metatype _arr, modelica_metatype _orphan)
3835{
3836 modelica_integer tmp1;
3837 modelica_integer tmp2;
3838 tmp1 = mmc_unbox_integer(_mark)(((mmc_sint_t) (_mark)) >> 1);
3839 tmp2 = mmc_unbox_integer(_orphan)(((mmc_sint_t) (_orphan)) >> 1);
3840 omc_OnRelaxation_setBoarderElemts(threadData, _elements, _m, tmp1, _arr, tmp2);
3841 return;
3842}
3843
3844PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_getBorderElements(threadData_t *threadData, modelica_metatype _elements, modelica_metatype _m, modelica_integer _mark, modelica_metatype _arr, modelica_metatype _iAcc)
3845{
3846 modelica_metatype _oAcc = NULL((void*)0);
3847 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
3848 MMC_SO()mmc_check_stackoverflow(threadData);
3849 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3850 // _oAcc has no default value.
3851#line 3851 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3852 { /* match expression */
3853 modelica_metatype tmp3_1;
3854 tmp3_1 = _elements;
3855 {
3856 modelica_integer _elem;
3857 modelica_metatype _rest = NULL((void*)0);
3858 modelica_metatype _lst = NULL((void*)0);
3859 modelica_metatype _lst1 = NULL((void*)0);
3860 volatile mmc_switch_type tmp3;
3861 int tmp4;
3862 // _elem has no default value.
3863 // _rest has no default value.
3864 // _lst has no default value.
3865 // _lst1 has no default value.
3866 tmp3 = 0;
3867 for (; tmp3 < 2; tmp3++) {
3868 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3869 case 0: {
3870 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3871 /* Pattern matching succeeded */
3872#line 2615 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3873 tmpMeta[0] = _iAcc;
3874#line 3874 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3875 goto tmp2_done;
3876 }
3877 case 1: {
3878 modelica_integer tmp5;
3879 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3880 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
3881 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3882 tmp5 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
3883 _elem = tmp5 /* pattern as ty=Integer */;
3884 _rest = tmpMeta[2];
3885 /* Pattern matching succeeded */
3886#line 2618 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3887 _lst = omc_List_split2OnTrue(threadData, arrayGet(_m,_elem)nobox_arrayGet(threadData,_m,_elem) /* DAE.ASUB */, boxvar_OnRelaxation_unmarked((void*)((char*)(&(boxvar_lit_OnRelaxation_unmarked).header
) + 3))
, _arr, mmc_mk_integermmc_mk_icon(_mark) ,&_lst1);
3888#line 3888 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3889
3890#line 2619 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3891 arrayUpdate(_m, _elem, _lst1)boxptr_arrayUpdate(threadData,_m,mmc_mk_icon(_elem),_lst1);
3892#line 3892 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3893
3894#line 2620 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3895 _lst = omc_List_select2(threadData, _lst, boxvar_OnRelaxation_unmarked((void*)((char*)(&(boxvar_lit_OnRelaxation_unmarked).header
) + 3))
, _arr, mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mark));
3896#line 3896 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3897
3898#line 2621 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3899 omc_List_map2__0(threadData, _lst, boxvar_OnRelaxation_doMark((void*)((char*)(&(boxvar_lit_OnRelaxation_doMark).header
) + 3))
, _arr, mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _mark));
3900#line 3900 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3901#line 2622 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3902 /* Tail recursive call */
3903#line 2622 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3904 _elements = _rest;
3905#line 2622 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3906 _iAcc = listAppend(_lst, _iAcc);
3907#line 2622 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3908 goto _tailrecursive;
3909#line 2622 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3910 /* TODO: Make sure any eventual dead code below is never generated */
3911#line 3911 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3912 goto tmp2_done;
3913 }
3914 }
3915 goto tmp2_end;
3916 tmp2_end: ;
3917 }
3918 goto goto_1;
3919 goto_1:;
3920 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3921 goto tmp2_done;
3922 tmp2_done:;
3923 }
3924 }
3925 _oAcc = tmpMeta[0];
3926 _return: OMC_LABEL_UNUSED__attribute__((unused))
3927 return _oAcc;
3928}
3929PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getBorderElements(threadData_t *threadData, modelica_metatype _elements, modelica_metatype _m, modelica_metatype _mark, modelica_metatype _arr, modelica_metatype _iAcc)
3930{
3931 modelica_integer tmp1;
3932 modelica_metatype _oAcc = NULL((void*)0);
3933 tmp1 = mmc_unbox_integer(_mark)(((mmc_sint_t) (_mark)) >> 1);
3934 _oAcc = omc_OnRelaxation_getBorderElements(threadData, _elements, _m, tmp1, _arr, _iAcc);
3935 /* skip box _oAcc; list<#Integer> */
3936 return _oAcc;
3937}
3938
3939PROTECTED_FUNCTION_STATIC modelica_integer omc_OnRelaxation_getIndexesForEqnsAdvanced(threadData_t *threadData, modelica_metatype _orphans, modelica_integer _index, modelica_metatype _m, modelica_metatype _mT, modelica_integer _imark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _orowmarks, modelica_metatype _ocolummarks, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _vec1, modelica_metatype _vec2, modelica_metatype _queuemark, modelica_metatype _vars, modelica_metatype _eqns, modelica_metatype _shared, modelica_integer _size)
3940{
3941 modelica_integer _outMark;
3942 modelica_integer tmp1 = 0;
3943 modelica_metatype tmpMeta[8] __attribute__((unused)) = {0};
3944 MMC_SO()mmc_check_stackoverflow(threadData);
3945 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3946 // _outMark has no default value.
3947#line 3947 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3948 { /* matchcontinue expression */
3949 volatile modelica_metatype tmp4_1;
3950 tmp4_1 = _orphans;
3951 {
3952 modelica_integer _vorphan;
3953 modelica_integer _eorphan;
3954 modelica_integer _index1;
3955 modelica_integer _mark;
3956 modelica_metatype _rest = NULL((void*)0);
3957 modelica_metatype _rows = NULL((void*)0);
3958 modelica_metatype _queue = NULL((void*)0);
3959 modelica_metatype _rqueue = NULL((void*)0);
3960 modelica_metatype _bvars = NULL((void*)0);
3961 modelica_metatype _beqns = NULL((void*)0);
3962 modelica_metatype _lst = NULL((void*)0);
3963 modelica_metatype _vorphans = NULL((void*)0);
3964 modelica_metatype _vorphanseqns = NULL((void*)0);
3965 modelica_metatype _queuelst = NULL((void*)0);
3966 volatile mmc_switch_type tmp4;
3967 int tmp5;
3968 // _vorphan has no default value.
3969 // _eorphan has no default value.
3970 // _index1 has no default value.
3971 // _mark has no default value.
3972 // _rest has no default value.
3973 // _rows has no default value.
3974 // _queue has no default value.
3975 // _rqueue has no default value.
3976 // _bvars has no default value.
3977 // _beqns has no default value.
3978 // _lst has no default value.
3979 // _vorphans has no default value.
3980 // _vorphanseqns has no default value.
3981 // _queuelst has no default value.
3982 tmp4 = 0;
3983 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) {
3984 tmp3_top:
3985 threadData->mmc_jumper = &new_mmc_jumper;
3986 for (; tmp4 < 3; tmp4++) {
3987 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
3988 case 0: {
3989 if (!listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
3990 tmp4 += 2; /* Pattern matching succeeded; we may skip some cases if we fail */
3991#line 2529 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
3992 tmp1 = _imark;
3993#line 3993 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
3994 goto tmp3_done;
3995 }
3996 case 1: {
3997 modelica_integer tmp6;
3998 modelica_boolean tmp7;
3999 modelica_integer tmp8;
4000 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4001 tmpMeta[0] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
4002 tmpMeta[1] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4003 tmp6 = mmc_unbox_integer(tmpMeta[0])(((mmc_sint_t) (tmpMeta[0])) >> 1);
4004 _vorphan = tmp6 /* pattern as ty=Integer */;
4005 _rest = tmpMeta[1];
4006 /* Pattern matching succeeded */
4007#line 2532 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4008 /* Pattern-matching assignment */
4009#line 2532 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4010 tmp7 = (mmc_unbox_integer(arrayGet(_orowmarks,_vorphan) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_orowmarks,_vorphan
))) >> 1)
== ((modelica_integer) 1));
4011#line 2532 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4012 if (1 != tmp7) goto goto_2;
4013#line 4013 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4014
4015#line 2533 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4016 _eorphan = mmc_unbox_integer(arrayGet(_ass1,_vorphan) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_ass1,_vorphan))) >>
1)
;
4017#line 4017 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4018
4019#line 2534 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4020 _vorphans = arrayGet(_ass2,_eorphan)nobox_arrayGet(threadData,_ass2,_eorphan) /* DAE.ASUB */;
4021#line 4021 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4022
4023#line 2537 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4024 _rows = omc_List_select(threadData, arrayGet(_m,_eorphan)nobox_arrayGet(threadData,_m,_eorphan) /* DAE.ASUB */, boxvar_Util_intPositive((void*)((char*)(&(boxvar_lit_Util_intPositive).header) +
3))
);
4025#line 4025 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4026
4027#line 2538 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4028 _rows = omc_List_fold1(threadData, arrayGet(_ass2,_eorphan)nobox_arrayGet(threadData,_ass2,_eorphan) /* DAE.ASUB */, boxvar_List_removeOnTrue((void*)((char*)(&(boxvar_lit_List_removeOnTrue).header) +
3))
, boxvar_intEq((void*)((char*)(&(boxvar_lit_intEq).header) + 3)), _rows);
4029#line 4029 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4030
4031#line 2540 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4032 omc_OnRelaxation_getIndexSubGraph(threadData, _rows, _vorphans, _m, _mT, _imark, _rowmarks, _colummarks, _orowmarks, _ocolummarks, _ass1, _ass2, 0);
4033#line 4033 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4034
4035#line 2543 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4036 _vorphanseqns = omc_List_unique(threadData, omc_List_flatten(threadData, omc_List_map1r(threadData, _vorphans, boxvar_arrayGet((void*)((char*)(&(boxvar_lit_arrayGet).header) + 3)), _mT)));
4037#line 4037 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4038
4039#line 2545 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4040 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4041#line 2545 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4042 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4043#line 2545 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4044 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4045#line 2545 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4046 _queuelst = omc_OnRelaxation_getIndexQueque(threadData, _vorphanseqns, _m, _mT, _imark, _rowmarks, _colummarks, _ass1, _ass2, _vec2, _queuemark, tmpMeta[0], tmpMeta[1], tmpMeta[2]);
4047#line 4047 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4048
4049#line 2546 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4050 _queue = omc_List_flatten(threadData, _queuelst);
4051#line 4051 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4052
4053#line 2550 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4054 _mark = ((modelica_integer) 2) + _imark;
4055#line 4055 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4056
4057#line 2551 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4058 /* Pattern-matching assignment */
4059#line 2551 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4060 tmpMeta[0] = mmc_mk_box6(0, _vec1, _vec2, _ass2, _queuemark, _colummarks, mmc_mk_integermmc_mk_icon(_mark));
4061#line 2551 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4062 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4063#line 2551 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4064 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4065#line 2551 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4066 tmpMeta[3] = mmc_mk_box3(0, mmc_mk_integermmc_mk_icon(_index), tmpMeta[1], tmpMeta[2]);
4067#line 2551 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4068 tmpMeta[4] = omc_List_fold1(threadData, _queue, boxvar_OnRelaxation_setIndexQueue((void*)((char*)(&(boxvar_lit_OnRelaxation_setIndexQueue)
.header) + 3))
, tmpMeta[0], tmpMeta[3]);
4069#line 2551 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4070 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (1)))))
;
4071#line 2551 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4072 tmp8 = mmc_unbox_integer(tmpMeta[5])(((mmc_sint_t) (tmpMeta[5])) >> 1);
4073#line 2551 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4074 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (2)))))
;
4075#line 2551 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4076 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (3)))))
;
4077#line 2551 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4078 _index1 = tmp8 /* pattern as ty=Integer */;
4079#line 2551 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4080 _queue = tmpMeta[6];
4081#line 2551 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4082 _rqueue = tmpMeta[7];
4083#line 4083 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4084
4085#line 2552 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4086 arrayUpdate(_vec1, _index1, _vorphans)boxptr_arrayUpdate(threadData,_vec1,mmc_mk_icon(_index1),_vorphans
)
;
4087#line 4087 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4088
4089#line 2553 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4090 arrayUpdate(_vec2, _index1, mmc_mk_integer(_eorphan))boxptr_arrayUpdate(threadData,_vec2,mmc_mk_icon(_index1),mmc_mk_icon
(_eorphan))
;
4091#line 4091 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4092
4093#line 2554 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4094 arrayUpdate(_queuemark, _eorphan, mmc_mk_boolean(1))boxptr_arrayUpdate(threadData,_queuemark,mmc_mk_icon(_eorphan
),((1) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))))
;
4095#line 4095 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4096
4097#line 2555 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4098 _mark = ((modelica_integer) 1) + _mark;
4099#line 4099 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4100
4101#line 2559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4102 omc_List_map2__0(threadData, _rqueue, boxvar_OnRelaxation_doMark((void*)((char*)(&(boxvar_lit_OnRelaxation_doMark).header
) + 3))
, _rowmarks, mmc_mk_integermmc_mk_icon(_mark));
4103#line 4103 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4104
4105#line 2561 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4106 omc_List_map2__0(threadData, _queue, boxvar_OnRelaxation_doMark((void*)((char*)(&(boxvar_lit_OnRelaxation_doMark).header
) + 3))
, _colummarks, mmc_mk_integermmc_mk_icon(_mark));
4107#line 4107 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4108
4109#line 2563 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4110 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4111#line 2563 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4112 _bvars = omc_OnRelaxation_getBorderElements(threadData, _queue, _m, _mark, _rowmarks, tmpMeta[0]);
4113#line 4113 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4114
4115#line 2564 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4116 _bvars = omc_List_fold1(threadData, _vorphans, boxvar_List_removeOnTrue((void*)((char*)(&(boxvar_lit_List_removeOnTrue).header) +
3))
, boxvar_intEq((void*)((char*)(&(boxvar_lit_intEq).header) + 3)), _bvars);
4117#line 4117 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4118
4119#line 2566 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4120 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4121#line 2566 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4122 _beqns = omc_OnRelaxation_getBorderElements(threadData, _rqueue, _mT, _mark, _colummarks, tmpMeta[0]);
4123#line 4123 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4124
4125#line 2567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4126 _beqns = omc_List_removeOnTrue(threadData, mmc_mk_integermmc_mk_icon(_eorphan), boxvar_intEq((void*)((char*)(&(boxvar_lit_intEq).header) + 3)), _beqns);
4127#line 4127 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4128
4129#line 2569 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4130 _lst = omc_List_select2(threadData, arrayGet(_m,_eorphan)nobox_arrayGet(threadData,_m,_eorphan) /* DAE.ASUB */, boxvar_OnRelaxation_unmarked((void*)((char*)(&(boxvar_lit_OnRelaxation_unmarked).header
) + 3))
, _rowmarks, mmc_mk_integermmc_mk_icon(_mark));
4131#line 4131 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4132
4133#line 2570 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4134 _lst = listAppend(_vorphans, listAppend(_lst, _bvars));
4135#line 4135 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4136
4137#line 2572 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4138 arrayUpdate(_m, _eorphan, _lst)boxptr_arrayUpdate(threadData,_m,mmc_mk_icon(_eorphan),_lst);
4139#line 4139 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4140
4141#line 2574 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4142 _lst = omc_List_select2(threadData, _vorphanseqns, boxvar_OnRelaxation_unmarked((void*)((char*)(&(boxvar_lit_OnRelaxation_unmarked).header
) + 3))
, _colummarks, mmc_mk_integermmc_mk_icon(_mark));
4143#line 4143 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4144
4145#line 2575 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4146 tmpMeta[0] = mmc_mk_cons(mmc_mk_integermmc_mk_icon(_eorphan), _lst);
4147#line 2575 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4148 _lst = listAppend(tmpMeta[0], _beqns);
4149#line 4149 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4150
4151#line 2577 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4152 arrayUpdate(_mT, _vorphan, _lst)boxptr_arrayUpdate(threadData,_mT,mmc_mk_icon(_vorphan),_lst);
4153#line 4153 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4154
4155#line 2579 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4156 omc_OnRelaxation_setBoarderElemts(threadData, _bvars, _mT, _mark, _colummarks, _eorphan);
4157#line 4157 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4158
4159#line 2580 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4160 omc_OnRelaxation_setBoarderElemts(threadData, _beqns, _m, _mark, _rowmarks, _vorphan);
4161#line 4161 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4162
4163#line 2583 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4164 omc_List_fold1(threadData, _vorphans, boxvar_OnRelaxation_markOrphans((void*)((char*)(&(boxvar_lit_OnRelaxation_markOrphans).header
) + 3))
, mmc_mk_integermmc_mk_icon(((modelica_integer) -1)), _orowmarks);
4165#line 4165 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4166
4167#line 2584 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4168 arrayUpdate(_ocolummarks, _eorphan, mmc_mk_integer(((modelica_integer) -1)))boxptr_arrayUpdate(threadData,_ocolummarks,mmc_mk_icon(_eorphan
),mmc_mk_icon(((modelica_integer) -1)))
;
4169#line 4169 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4170
4171#line 2586 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4172 _vorphans = omc_List_removeOnTrue(threadData, mmc_mk_integermmc_mk_icon(_vorphan), boxvar_intEq((void*)((char*)(&(boxvar_lit_intEq).header) + 3)), _vorphans);
4173#line 4173 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4174
4175#line 2587 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4176 omc_List_fold1(threadData, _vorphans, boxvar_OnRelaxation_markOrphans((void*)((char*)(&(boxvar_lit_OnRelaxation_markOrphans).header
) + 3))
, mmc_mk_integermmc_mk_icon(((modelica_integer) -1)), _orowmarks);
4177#line 4177 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4178
4179#line 2588 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4180 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4181#line 2588 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4182 omc_List_fold1r(threadData, _vorphans, boxvar_arrayUpdate((void*)((char*)(&(boxvar_lit_arrayUpdate).header) + 3)), tmpMeta[0], _mT);
4183#line 4183 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4184#line 2593 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4185 tmp1 = omc_OnRelaxation_getIndexesForEqnsAdvanced(threadData, _rest, ((modelica_integer) 1) + _index1, _m, _mT, ((modelica_integer) 2) + _mark, _rowmarks, _colummarks, _orowmarks, _ocolummarks, _ass1, _ass2, _vec1, _vec2, _queuemark, _vars, _eqns, _shared, _size);
4186#line 4186 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4187 goto tmp3_done;
4188 }
4189 case 2: {
4190 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4191 tmpMeta[0] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
4192 tmpMeta[1] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4193 _rest = tmpMeta[1];
4194 /* Pattern matching succeeded */
4195#line 2596 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4196 tmp1 = omc_OnRelaxation_getIndexesForEqnsAdvanced(threadData, _rest, _index, _m, _mT, _imark, _rowmarks, _colummarks, _orowmarks, _ocolummarks, _ass1, _ass2, _vec1, _vec2, _queuemark, _vars, _eqns, _shared, _size);
4197#line 4197 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4198 goto tmp3_done;
4199 }
4200 }
4201 goto tmp3_end;
4202 tmp3_end: ;
4203 }
4204 goto goto_2;
4205 tmp3_done:
4206 (void)tmp4;
4207 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4208 goto tmp3_done2;
4209 goto_2:;
4210 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4211 if (++tmp4 < 3) {
4212 goto tmp3_top;
4213 }
4214 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4215 tmp3_done2:;
4216 }
4217 }
4218 _outMark = tmp1;
4219 _return: OMC_LABEL_UNUSED__attribute__((unused))
4220 return _outMark;
4221}
4222PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getIndexesForEqnsAdvanced(threadData_t *threadData, modelica_metatype _orphans, modelica_metatype _index, modelica_metatype _m, modelica_metatype _mT, modelica_metatype _imark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _orowmarks, modelica_metatype _ocolummarks, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _vec1, modelica_metatype _vec2, modelica_metatype _queuemark, modelica_metatype _vars, modelica_metatype _eqns, modelica_metatype _shared, modelica_metatype _size)
4223{
4224 modelica_integer tmp1;
4225 modelica_integer tmp2;
4226 modelica_integer tmp3;
4227 modelica_integer _outMark;
4228 modelica_metatype out_outMark;
4229 tmp1 = mmc_unbox_integer(_index)(((mmc_sint_t) (_index)) >> 1);
4230 tmp2 = mmc_unbox_integer(_imark)(((mmc_sint_t) (_imark)) >> 1);
4231 tmp3 = mmc_unbox_integer(_size)(((mmc_sint_t) (_size)) >> 1);
4232 _outMark = omc_OnRelaxation_getIndexesForEqnsAdvanced(threadData, _orphans, tmp1, _m, _mT, tmp2, _rowmarks, _colummarks, _orowmarks, _ocolummarks, _ass1, _ass2, _vec1, _vec2, _queuemark, _vars, _eqns, _shared, tmp3);
4233 out_outMark = mmc_mk_icon(_outMark);
4234 return out_outMark;
4235}
4236
4237PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_getOrphansPairsConstraints1(threadData_t *threadData, modelica_metatype _eqns, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_integer _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _eqnsarr, modelica_integer _orphan, modelica_metatype _nextQueue)
4238{
4239 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4240 MMC_SO()mmc_check_stackoverflow(threadData);
4241 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4242#line 4242 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4243 { /* matchcontinue expression */
4244 volatile modelica_metatype tmp3_1;volatile modelica_metatype tmp3_2;
4245 tmp3_1 = _eqns;
4246 tmp3_2 = _nextQueue;
4247 {
4248 modelica_integer _e;
4249 modelica_integer _o;
4250 modelica_metatype _rest = NULL((void*)0);
4251 modelica_metatype _next = NULL((void*)0);
4252 modelica_metatype _rlst = NULL((void*)0);
4253 modelica_metatype _lst = NULL((void*)0);
4254 modelica_metatype _ass2lst = NULL((void*)0);
4255 volatile mmc_switch_type tmp3;
4256 int tmp4;
4257 // _e has no default value.
4258 // _o has no default value.
4259 // _rest has no default value.
4260 // _next has no default value.
4261 // _rlst has no default value.
4262 // _lst has no default value.
4263 // _ass2lst has no default value.
4264 tmp3 = 0;
4265 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) {
4266 tmp2_top:
4267 threadData->mmc_jumper = &new_mmc_jumper;
4268 for (; tmp3 < 5; tmp3++) {
4269 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
4270 case 0: {
4271 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4272 if (!listEmpty(tmp3_2)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4273 /* Pattern matching succeeded */
4274#line 4274 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4275 goto tmp2_done;
4276 }
4277 case 1: {
4278 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4279
4280 tmp3 += 3; /* Pattern matching succeeded; we may skip some cases if we fail */
4281#line 2453 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4282 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4283#line 2453 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4284 omc_OnRelaxation_getOrphansPairsConstraints1(threadData, _nextQueue, _ass1, _ass2, _m, _mt, _mark, _rowmarks, _colummarks, _eqnsarr, _orphan, tmpMeta[0]);
4285#line 4285 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4286#line 4286 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4287 goto tmp2_done;
4288 }
4289 case 2: {
4290 modelica_integer tmp5;
4291 modelica_boolean tmp6;
4292 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4293 tmpMeta[0] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
4294 tmpMeta[1] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
4295 tmp5 = mmc_unbox_integer(tmpMeta[0])(((mmc_sint_t) (tmpMeta[0])) >> 1);
4296
4297 _e = tmp5 /* pattern as ty=Integer */;
4298 /* Pattern matching succeeded */
4299#line 2459 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4300 /* Pattern-matching assignment */
4301#line 2459 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4302 tmp6 = (mmc_unbox_integer(arrayGet(_colummarks,_e) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_colummarks,_e))) >>
1)
== _mark);
4303#line 2459 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4304 if (0 != tmp6) goto goto_1;
4305#line 4305 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4306
4307#line 2460 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4308 _rlst = omc_List_select1(threadData, arrayGet(_m,_e)nobox_arrayGet(threadData,_m,_e) /* DAE.ASUB */, boxvar_intGt((void*)((char*)(&(boxvar_lit_intGt).header) + 3)), mmc_mk_integermmc_mk_icon(((modelica_integer) 0)));
4309#line 4309 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4310
4311#line 2461 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4312 _rlst = omc_List_fold1(threadData, arrayGet(_ass2,_e)nobox_arrayGet(threadData,_ass2,_e) /* DAE.ASUB */, boxvar_List_removeOnTrue((void*)((char*)(&(boxvar_lit_List_removeOnTrue).header) +
3))
, boxvar_intEq((void*)((char*)(&(boxvar_lit_intEq).header) + 3)), _rlst);
4313#line 4313 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4314
4315#line 2462 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4316 _next = omc_List_select1(threadData, omc_List_flatten(threadData, omc_List_map1r(threadData, _rlst, boxvar_arrayGet((void*)((char*)(&(boxvar_lit_arrayGet).header) + 3)), _mt)), boxvar_intGt((void*)((char*)(&(boxvar_lit_intGt).header) + 3)), mmc_mk_integermmc_mk_icon(((modelica_integer) 0)));
4317#line 4317 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4318
4319#line 2464 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4320 _o = omc_OnRelaxation_hasResidualOrphan1(threadData, _next, _ass2, _eqnsarr);
4321#line 4321 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4322
4323#line 2466 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4324 arrayUpdate(_ass1, _orphan, mmc_mk_integer(_o))boxptr_arrayUpdate(threadData,_ass1,mmc_mk_icon(_orphan),mmc_mk_icon
(_o))
;
4325#line 4325 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4326
4327#line 2467 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4328 _ass2lst = arrayGet(_ass2,_o)nobox_arrayGet(threadData,_ass2,_o) /* DAE.ASUB */;
4329#line 4329 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4330
4331#line 2468 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4332 tmpMeta[0] = mmc_mk_cons(mmc_mk_integermmc_mk_icon(_orphan), _ass2lst);
4333#line 2468 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4334 _ass2lst = tmpMeta[0];
4335#line 4335 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4336
4337#line 2469 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4338 arrayUpdate(_ass2, _o, _ass2lst)boxptr_arrayUpdate(threadData,_ass2,mmc_mk_icon(_o),_ass2lst);
4339#line 4339 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4340#line 4340 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4341 goto tmp2_done;
4342 }
4343 case 3: {
4344 modelica_integer tmp7;
4345 modelica_boolean tmp8;
4346 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4347 tmpMeta[0] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
4348 tmpMeta[1] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
4349 tmp7 = mmc_unbox_integer(tmpMeta[0])(((mmc_sint_t) (tmpMeta[0])) >> 1);
4350
4351 _e = tmp7 /* pattern as ty=Integer */;
4352 _rest = tmpMeta[1];
4353 /* Pattern matching succeeded */
4354#line 2475 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4355 /* Pattern-matching assignment */
4356#line 2475 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4357 tmp8 = (mmc_unbox_integer(arrayGet(_colummarks,_e) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_colummarks,_e))) >>
1)
== _mark);
4358#line 2475 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4359 if (0 != tmp8) goto goto_1;
4360#line 4360 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4361
4362#line 2476 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4363 _rlst = omc_List_select1(threadData, arrayGet(_m,_e)nobox_arrayGet(threadData,_m,_e) /* DAE.ASUB */, boxvar_intGt((void*)((char*)(&(boxvar_lit_intGt).header) + 3)), mmc_mk_integermmc_mk_icon(((modelica_integer) 0)));
4364#line 4364 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4365
4366#line 2477 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4367 _lst = omc_List_select1(threadData, omc_List_map1r(threadData, _rlst, boxvar_arrayGet((void*)((char*)(&(boxvar_lit_arrayGet).header) + 3)), _ass1), boxvar_intGt((void*)((char*)(&(boxvar_lit_intGt).header) + 3)), mmc_mk_integermmc_mk_icon(((modelica_integer) 0)));
4368#line 4368 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4369
4370#line 2478 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4371 _rlst = omc_List_fold1(threadData, _lst, boxvar_List_removeOnTrue((void*)((char*)(&(boxvar_lit_List_removeOnTrue).header) +
3))
, boxvar_intEq((void*)((char*)(&(boxvar_lit_intEq).header) + 3)), _rlst);
4372#line 4372 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4373
4374#line 2479 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4375 _next = omc_List_select1(threadData, omc_List_map1r(threadData, _rlst, boxvar_arrayGet((void*)((char*)(&(boxvar_lit_arrayGet).header) + 3)), _ass1), boxvar_intGt((void*)((char*)(&(boxvar_lit_intGt).header) + 3)), mmc_mk_integermmc_mk_icon(((modelica_integer) 0)));
4376#line 4376 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4377
4378#line 2480 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4379 _next = listAppend(_nextQueue, _next);
4380#line 4380 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4381
4382#line 2481 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4383 arrayUpdate(_colummarks, _e, mmc_mk_integer(_mark))boxptr_arrayUpdate(threadData,_colummarks,mmc_mk_icon(_e),mmc_mk_icon
(_mark))
;
4384#line 4384 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4385
4386#line 2483 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4387 omc_OnRelaxation_getOrphansPairsConstraints1(threadData, _rest, _ass1, _ass2, _m, _mt, _mark, _rowmarks, _colummarks, _eqnsarr, _orphan, _next);
4388#line 4388 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4389#line 4389 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4390 goto tmp2_done;
4391 }
4392 case 4: {
4393 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4394 tmpMeta[0] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
4395 tmpMeta[1] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
4396
4397 _rest = tmpMeta[1];
4398 /* Pattern matching succeeded */
4399#line 2488 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4400 omc_OnRelaxation_getOrphansPairsConstraints1(threadData, _rest, _ass1, _ass2, _m, _mt, _mark, _rowmarks, _colummarks, _eqnsarr, _orphan, _nextQueue);
4401#line 4401 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4402#line 4402 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4403 goto tmp2_done;
4404 }
4405 }
4406 goto tmp2_end;
4407 tmp2_end: ;
4408 }
4409 goto goto_1;
4410 tmp2_done:
4411 (void)tmp3;
4412 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4413 goto tmp2_done2;
4414 goto_1:;
4415 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4416 if (++tmp3 < 5) {
4417 goto tmp2_top;
4418 }
4419 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4420 tmp2_done2:;
4421 }
4422 }
4423 ;
4424 _return: OMC_LABEL_UNUSED__attribute__((unused))
4425 return;
4426}
4427PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_getOrphansPairsConstraints1(threadData_t *threadData, modelica_metatype _eqns, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _eqnsarr, modelica_metatype _orphan, modelica_metatype _nextQueue)
4428{
4429 modelica_integer tmp1;
4430 modelica_integer tmp2;
4431 tmp1 = mmc_unbox_integer(_mark)(((mmc_sint_t) (_mark)) >> 1);
4432 tmp2 = mmc_unbox_integer(_orphan)(((mmc_sint_t) (_orphan)) >> 1);
4433 omc_OnRelaxation_getOrphansPairsConstraints1(threadData, _eqns, _ass1, _ass2, _m, _mt, tmp1, _rowmarks, _colummarks, _eqnsarr, tmp2, _nextQueue);
4434 return;
4435}
4436
4437PROTECTED_FUNCTION_STATIC modelica_integer omc_OnRelaxation_getOrphansPairsConstraints(threadData_t *threadData, modelica_metatype _inOrphans, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_integer _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _eqns)
4438{
4439 modelica_integer _omark;
4440 modelica_integer tmp1 = 0;
4441 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4442 MMC_SO()mmc_check_stackoverflow(threadData);
4443 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4444 // _omark has no default value.
4445#line 4445 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4446 { /* matchcontinue expression */
4447 volatile modelica_metatype tmp4_1;
4448 tmp4_1 = _inOrphans;
4449 {
4450 modelica_metatype _rest = NULL((void*)0);
4451 modelica_integer _o;
4452 volatile mmc_switch_type tmp4;
4453 int tmp5;
4454 // _rest has no default value.
4455 // _o has no default value.
4456 tmp4 = 0;
4457 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) {
4458 tmp3_top:
4459 threadData->mmc_jumper = &new_mmc_jumper;
4460 for (; tmp4 < 3; tmp4++) {
4461 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4462 case 0: {
4463 if (!listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4464 tmp4 += 2; /* Pattern matching succeeded; we may skip some cases if we fail */
4465#line 2414 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4466 tmp1 = _mark;
4467#line 4467 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4468 goto tmp3_done;
4469 }
4470 case 1: {
4471 modelica_integer tmp6;
4472 modelica_boolean tmp7;
4473 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4474 tmpMeta[0] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
4475 tmpMeta[1] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4476 tmp6 = mmc_unbox_integer(tmpMeta[0])(((mmc_sint_t) (tmpMeta[0])) >> 1);
4477 _o = tmp6 /* pattern as ty=Integer */;
4478 _rest = tmpMeta[1];
4479 /* Pattern matching succeeded */
4480#line 2418 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4481 /* Pattern-matching assignment */
4482#line 2418 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4483 tmp7 = (mmc_unbox_integer(arrayGet(_colummarks,_o) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_colummarks,_o))) >>
1)
== _mark);
4484#line 2418 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4485 if (0 != tmp7) goto goto_2;
4486#line 4486 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4487
4488#line 2419 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4489 arrayUpdate(_colummarks, _o, mmc_mk_integer(_mark))boxptr_arrayUpdate(threadData,_colummarks,mmc_mk_icon(_o),mmc_mk_icon
(_mark))
;
4490#line 4490 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4491
4492#line 2420 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4493 tmpMeta[0] = stringAppend(_OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)),intString(_o));
4494#line 2420 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4495 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)));
4496#line 2420 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4497 fputs(MMC_STRINGDATA(tmpMeta[1])(((struct mmc_string*)((void*)((char*)(tmpMeta[1]) - 3)))->
data)
,stdoutstdout);
4498#line 4498 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4499
4500#line 2421 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4501 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4502#line 2421 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4503 omc_OnRelaxation_getOrphansPairsConstraints1(threadData, arrayGet(_mt,_o)nobox_arrayGet(threadData,_mt,_o) /* DAE.ASUB */, _ass1, _ass2, _m, _mt, _mark, _rowmarks, _colummarks, _eqns, _o, tmpMeta[0]);
4504#line 4504 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4505#line 2422 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4506 tmp1 = omc_OnRelaxation_getOrphansPairsConstraints(threadData, _rest, _ass1, _ass2, _m, _mt, ((modelica_integer) 1) + _mark, _rowmarks, _colummarks, _eqns);
4507#line 4507 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4508 goto tmp3_done;
4509 }
4510 case 2: {
4511 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4512 tmpMeta[0] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
4513 tmpMeta[1] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4514 _rest = tmpMeta[1];
4515 /* Pattern matching succeeded */
4516#line 2425 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4517 tmp1 = omc_OnRelaxation_getOrphansPairsConstraints(threadData, _rest, _ass1, _ass2, _m, _mt, _mark, _rowmarks, _colummarks, _eqns);
4518#line 4518 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4519 goto tmp3_done;
4520 }
4521 }
4522 goto tmp3_end;
4523 tmp3_end: ;
4524 }
4525 goto goto_2;
4526 tmp3_done:
4527 (void)tmp4;
4528 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4529 goto tmp3_done2;
4530 goto_2:;
4531 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4532 if (++tmp4 < 3) {
4533 goto tmp3_top;
4534 }
4535 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4536 tmp3_done2:;
4537 }
4538 }
4539 _omark = tmp1;
4540 _return: OMC_LABEL_UNUSED__attribute__((unused))
4541 return _omark;
4542}
4543PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getOrphansPairsConstraints(threadData_t *threadData, modelica_metatype _inOrphans, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _eqns)
4544{
4545 modelica_integer tmp1;
4546 modelica_integer _omark;
4547 modelica_metatype out_omark;
4548 tmp1 = mmc_unbox_integer(_mark)(((mmc_sint_t) (_mark)) >> 1);
4549 _omark = omc_OnRelaxation_getOrphansPairsConstraints(threadData, _inOrphans, _ass1, _ass2, _m, _mt, tmp1, _rowmarks, _colummarks, _eqns);
4550 out_omark = mmc_mk_icon(_omark);
4551 return out_omark;
4552}
4553
4554PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_getOrphansPairs1(threadData_t *threadData, modelica_metatype _rows, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_integer _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_integer _orphan, modelica_metatype _nextQueue)
4555{
4556 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4557 MMC_SO()mmc_check_stackoverflow(threadData);
4558 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4559#line 4559 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4560 { /* matchcontinue expression */
4561 volatile modelica_metatype tmp3_1;volatile modelica_metatype tmp3_2;
4562 tmp3_1 = _rows;
4563 tmp3_2 = _nextQueue;
4564 {
4565 modelica_integer _r;
4566 modelica_integer _o;
4567 modelica_metatype _rest = NULL((void*)0);
4568 modelica_metatype _next = NULL((void*)0);
4569 modelica_metatype _elst = NULL((void*)0);
4570 volatile mmc_switch_type tmp3;
4571 int tmp4;
4572 // _r has no default value.
4573 // _o has no default value.
4574 // _rest has no default value.
4575 // _next has no default value.
4576 // _elst has no default value.
4577 tmp3 = 0;
4578 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) {
4579 tmp2_top:
4580 threadData->mmc_jumper = &new_mmc_jumper;
4581 for (; tmp3 < 5; tmp3++) {
4582 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
4583 case 0: {
4584 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4585 if (!listEmpty(tmp3_2)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4586 /* Pattern matching succeeded */
4587#line 4587 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4588 goto tmp2_done;
4589 }
4590 case 1: {
4591 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4592
4593 tmp3 += 3; /* Pattern matching succeeded; we may skip some cases if we fail */
4594#line 2361 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4595 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4596#line 2361 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4597 omc_OnRelaxation_getOrphansPairs1(threadData, _nextQueue, _ass1, _ass2, _m, _mt, _mark, _rowmarks, _colummarks, _orphan, tmpMeta[0]);
4598#line 4598 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4599#line 4599 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4600 goto tmp2_done;
4601 }
4602 case 2: {
4603 modelica_integer tmp5;
4604 modelica_boolean tmp6;
4605 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4606 tmpMeta[0] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
4607 tmpMeta[1] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
4608 tmp5 = mmc_unbox_integer(tmpMeta[0])(((mmc_sint_t) (tmpMeta[0])) >> 1);
4609
4610 _r = tmp5 /* pattern as ty=Integer */;
4611 /* Pattern matching succeeded */
4612#line 2367 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4613 /* Pattern-matching assignment */
4614#line 2367 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4615 tmp6 = (mmc_unbox_integer(arrayGet(_rowmarks,_r) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_rowmarks,_r))) >>
1)
== _mark);
4616#line 2367 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4617 if (0 != tmp6) goto goto_1;
4618#line 4618 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4619
4620#line 2368 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4621 _elst = omc_List_select1(threadData, arrayGet(_mt,_r)nobox_arrayGet(threadData,_mt,_r) /* DAE.ASUB */, boxvar_intGt((void*)((char*)(&(boxvar_lit_intGt).header) + 3)), mmc_mk_integermmc_mk_icon(((modelica_integer) 0)));
4622#line 4622 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4623
4624#line 2370 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4625 _o = omc_OnRelaxation_hasResidualOrphan(threadData, _elst, _ass2);
4626#line 4626 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4627
4628#line 2372 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4629 arrayUpdate(_ass1, _orphan, mmc_mk_integer(_o))boxptr_arrayUpdate(threadData,_ass1,mmc_mk_icon(_orphan),mmc_mk_icon
(_o))
;
4630#line 4630 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4631
4632#line 2373 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4633 tmpMeta[0] = mmc_mk_cons(mmc_mk_integermmc_mk_icon(_orphan), MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
4634#line 2373 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4635 arrayUpdate(_ass2, _o, tmpMeta[0])boxptr_arrayUpdate(threadData,_ass2,mmc_mk_icon(_o),tmpMeta[0
])
;
4636#line 4636 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4637#line 4637 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4638 goto tmp2_done;
4639 }
4640 case 3: {
4641 modelica_integer tmp7;
4642 modelica_boolean tmp8;
4643 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4644 tmpMeta[0] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
4645 tmpMeta[1] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
4646 tmp7 = mmc_unbox_integer(tmpMeta[0])(((mmc_sint_t) (tmpMeta[0])) >> 1);
4647
4648 _r = tmp7 /* pattern as ty=Integer */;
4649 _rest = tmpMeta[1];
4650 /* Pattern matching succeeded */
4651#line 2378 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4652 /* Pattern-matching assignment */
4653#line 2378 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4654 tmp8 = (mmc_unbox_integer(arrayGet(_rowmarks,_r) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_rowmarks,_r))) >>
1)
== _mark);
4655#line 2378 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4656 if (0 != tmp8) goto goto_1;
4657#line 4657 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4658
4659#line 2379 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4660 _elst = omc_List_select1(threadData, arrayGet(_mt,_r)nobox_arrayGet(threadData,_mt,_r) /* DAE.ASUB */, boxvar_intGt((void*)((char*)(&(boxvar_lit_intGt).header) + 3)), mmc_mk_integermmc_mk_icon(((modelica_integer) 0)));
4661#line 4661 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4662
4663#line 2380 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4664 _next = omc_List_select1(threadData, omc_List_flatten(threadData, omc_List_map1r(threadData, _elst, boxvar_arrayGet((void*)((char*)(&(boxvar_lit_arrayGet).header) + 3)), _ass2)), boxvar_intGt((void*)((char*)(&(boxvar_lit_intGt).header) + 3)), mmc_mk_integermmc_mk_icon(((modelica_integer) 0)));
4665#line 4665 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4666
4667#line 2382 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4668 _next = listAppend(_nextQueue, _next);
4669#line 4669 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4670
4671#line 2383 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4672 arrayUpdate(_rowmarks, _r, mmc_mk_integer(_mark))boxptr_arrayUpdate(threadData,_rowmarks,mmc_mk_icon(_r),mmc_mk_icon
(_mark))
;
4673#line 4673 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4674
4675#line 2385 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4676 omc_OnRelaxation_getOrphansPairs1(threadData, _rest, _ass1, _ass2, _m, _mt, _mark, _rowmarks, _colummarks, _orphan, _next);
4677#line 4677 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4678#line 4678 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4679 goto tmp2_done;
4680 }
4681 case 4: {
4682 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4683 tmpMeta[0] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
4684 tmpMeta[1] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
4685
4686 _rest = tmpMeta[1];
4687 /* Pattern matching succeeded */
4688#line 2390 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4689 omc_OnRelaxation_getOrphansPairs1(threadData, _rest, _ass1, _ass2, _m, _mt, _mark, _rowmarks, _colummarks, _orphan, _nextQueue);
4690#line 4690 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4691#line 4691 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4692 goto tmp2_done;
4693 }
4694 }
4695 goto tmp2_end;
4696 tmp2_end: ;
4697 }
4698 goto goto_1;
4699 tmp2_done:
4700 (void)tmp3;
4701 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4702 goto tmp2_done2;
4703 goto_1:;
4704 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4705 if (++tmp3 < 5) {
4706 goto tmp2_top;
4707 }
4708 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4709 tmp2_done2:;
4710 }
4711 }
4712 ;
4713 _return: OMC_LABEL_UNUSED__attribute__((unused))
4714 return;
4715}
4716PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_getOrphansPairs1(threadData_t *threadData, modelica_metatype _rows, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks, modelica_metatype _orphan, modelica_metatype _nextQueue)
4717{
4718 modelica_integer tmp1;
4719 modelica_integer tmp2;
4720 tmp1 = mmc_unbox_integer(_mark)(((mmc_sint_t) (_mark)) >> 1);
4721 tmp2 = mmc_unbox_integer(_orphan)(((mmc_sint_t) (_orphan)) >> 1);
4722 omc_OnRelaxation_getOrphansPairs1(threadData, _rows, _ass1, _ass2, _m, _mt, tmp1, _rowmarks, _colummarks, tmp2, _nextQueue);
4723 return;
4724}
4725
4726PROTECTED_FUNCTION_STATIC modelica_integer omc_OnRelaxation_getOrphansPairs(threadData_t *threadData, modelica_metatype _inOrphans, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_integer _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks)
4727{
4728 modelica_integer _omark;
4729 modelica_integer tmp1 = 0;
4730 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4731 MMC_SO()mmc_check_stackoverflow(threadData);
4732 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4733 // _omark has no default value.
4734#line 4734 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4735 { /* matchcontinue expression */
4736 volatile modelica_metatype tmp4_1;
4737 tmp4_1 = _inOrphans;
4738 {
4739 modelica_metatype _rest = NULL((void*)0);
4740 modelica_integer _o;
4741 volatile mmc_switch_type tmp4;
4742 int tmp5;
4743 // _rest has no default value.
4744 // _o has no default value.
4745 tmp4 = 0;
4746 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) {
4747 tmp3_top:
4748 threadData->mmc_jumper = &new_mmc_jumper;
4749 for (; tmp4 < 3; tmp4++) {
4750 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4751 case 0: {
4752 if (!listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4753 tmp4 += 2; /* Pattern matching succeeded; we may skip some cases if we fail */
4754#line 2323 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4755 tmp1 = _mark;
4756#line 4756 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4757 goto tmp3_done;
4758 }
4759 case 1: {
4760 modelica_integer tmp6;
4761 modelica_boolean tmp7;
4762 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4763 tmpMeta[0] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
4764 tmpMeta[1] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4765 tmp6 = mmc_unbox_integer(tmpMeta[0])(((mmc_sint_t) (tmpMeta[0])) >> 1);
4766 _o = tmp6 /* pattern as ty=Integer */;
4767 _rest = tmpMeta[1];
4768 /* Pattern matching succeeded */
4769#line 2327 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4770 /* Pattern-matching assignment */
4771#line 2327 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4772 tmp7 = (mmc_unbox_integer(arrayGet(_rowmarks,_o) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_rowmarks,_o))) >>
1)
== _mark);
4773#line 2327 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4774 if (0 != tmp7) goto goto_2;
4775#line 4775 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4776
4777#line 2329 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4778 tmpMeta[0] = mmc_mk_cons(mmc_mk_integermmc_mk_icon(_o), MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
4779#line 2329 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4780 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4781#line 2329 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4782 omc_OnRelaxation_getOrphansPairs1(threadData, tmpMeta[0], _ass1, _ass2, _m, _mt, _mark, _rowmarks, _colummarks, _o, tmpMeta[1]);
4783#line 4783 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4784#line 2330 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4785 tmp1 = omc_OnRelaxation_getOrphansPairs(threadData, _rest, _ass1, _ass2, _m, _mt, ((modelica_integer) 1) + _mark, _rowmarks, _colummarks);
4786#line 4786 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4787 goto tmp3_done;
4788 }
4789 case 2: {
4790 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4791 tmpMeta[0] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
4792 tmpMeta[1] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4793 _rest = tmpMeta[1];
4794 /* Pattern matching succeeded */
4795#line 2333 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4796 tmp1 = omc_OnRelaxation_getOrphansPairs(threadData, _rest, _ass1, _ass2, _m, _mt, _mark, _rowmarks, _colummarks);
4797#line 4797 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4798 goto tmp3_done;
4799 }
4800 }
4801 goto tmp3_end;
4802 tmp3_end: ;
4803 }
4804 goto goto_2;
4805 tmp3_done:
4806 (void)tmp4;
4807 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4808 goto tmp3_done2;
4809 goto_2:;
4810 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4811 if (++tmp4 < 3) {
4812 goto tmp3_top;
4813 }
4814 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4815 tmp3_done2:;
4816 }
4817 }
4818 _omark = tmp1;
4819 _return: OMC_LABEL_UNUSED__attribute__((unused))
4820 return _omark;
4821}
4822PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getOrphansPairs(threadData_t *threadData, modelica_metatype _inOrphans, modelica_metatype _ass1, modelica_metatype _ass2, modelica_metatype _m, modelica_metatype _mt, modelica_metatype _mark, modelica_metatype _rowmarks, modelica_metatype _colummarks)
4823{
4824 modelica_integer tmp1;
4825 modelica_integer _omark;
4826 modelica_metatype out_omark;
4827 tmp1 = mmc_unbox_integer(_mark)(((mmc_sint_t) (_mark)) >> 1);
4828 _omark = omc_OnRelaxation_getOrphansPairs(threadData, _inOrphans, _ass1, _ass2, _m, _mt, tmp1, _rowmarks, _colummarks);
4829 out_omark = mmc_mk_icon(_omark);
4830 return out_omark;
4831}
4832
4833PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_sortVarsforOrder2(threadData_t *threadData, modelica_integer _index, modelica_metatype _inVarLst, modelica_metatype _vararray, modelica_metatype _iAcc)
4834{
4835 modelica_metatype _outVarLst = NULL((void*)0);
4836 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
4837 MMC_SO()mmc_check_stackoverflow(threadData);
4838 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4839 // _outVarLst has no default value.
4840#line 4840 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4841 { /* matchcontinue expression */
4842 volatile modelica_metatype tmp3_1;
4843 tmp3_1 = _inVarLst;
4844 {
4845 modelica_metatype _v = NULL((void*)0);
4846 modelica_metatype _vlst = NULL((void*)0);
4847 volatile mmc_switch_type tmp3;
4848 int tmp4;
4849 // _v has no default value.
4850 // _vlst has no default value.
4851 tmp3 = 0;
4852 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) {
4853 tmp2_top:
4854 threadData->mmc_jumper = &new_mmc_jumper;
4855 for (; tmp3 < 3; tmp3++) {
4856 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
4857 case 0: {
4858 modelica_boolean tmp5;
4859
4860 /* Pattern matching succeeded */
4861#line 2292 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4862 /* Pattern-matching assignment */
4863#line 2292 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4864 tmp5 = (_index > arrayLength(_vararray));
4865#line 2292 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4866 if (1 != tmp5) goto goto_1;
4867#line 4867 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4868#line 2293 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4869 tmpMeta[0] = listReverse(_iAcc);
4870#line 4870 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4871 goto tmp2_done;
4872 }
4873 case 1: {
4874
4875 /* Pattern matching succeeded */
4876#line 2297 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4877 /* Pattern-matching assignment */
4878#line 2297 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4879 tmpMeta[1] = arrayGet(_vararray,_index)nobox_arrayGet(threadData,_vararray,_index) /* DAE.ASUB */;
4880#line 2297 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4881 if (optionNone(tmpMeta[1])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[1]) - 3)))) >> 10)) ? 1 : 0)
) goto goto_1;
4882#line 2297 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4883 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
4884#line 2297 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4885 _v = tmpMeta[2];
4886#line 4886 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4887#line 2298 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4888 tmpMeta[1] = mmc_mk_cons(_v, _iAcc);
4889#line 2298 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4890 tmpMeta[0] = omc_OnRelaxation_sortVarsforOrder2(threadData, ((modelica_integer) 1) + _index, _inVarLst, _vararray, tmpMeta[1]);
4891#line 4891 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4892 goto tmp2_done;
4893 }
4894 case 2: {
4895 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4896 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
4897 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
4898 _v = tmpMeta[1];
4899 _vlst = tmpMeta[2];
4900 /* Pattern matching succeeded */
4901#line 2301 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4902 tmpMeta[1] = mmc_mk_cons(_v, _iAcc);
4903#line 2301 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4904 tmpMeta[0] = omc_OnRelaxation_sortVarsforOrder2(threadData, ((modelica_integer) 1) + _index, _vlst, _vararray, tmpMeta[1]);
4905#line 4905 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4906 goto tmp2_done;
4907 }
4908 }
4909 goto tmp2_end;
4910 tmp2_end: ;
4911 }
4912 goto goto_1;
4913 tmp2_done:
4914 (void)tmp3;
4915 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4916 goto tmp2_done2;
4917 goto_1:;
4918 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4919 if (++tmp3 < 3) {
4920 goto tmp2_top;
4921 }
4922 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4923 tmp2_done2:;
4924 }
4925 }
4926 _outVarLst = tmpMeta[0];
4927 _return: OMC_LABEL_UNUSED__attribute__((unused))
4928 return _outVarLst;
4929}
4930PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_sortVarsforOrder2(threadData_t *threadData, modelica_metatype _index, modelica_metatype _inVarLst, modelica_metatype _vararray, modelica_metatype _iAcc)
4931{
4932 modelica_integer tmp1;
4933 modelica_metatype _outVarLst = NULL((void*)0);
4934 tmp1 = mmc_unbox_integer(_index)(((mmc_sint_t) (_index)) >> 1);
4935 _outVarLst = omc_OnRelaxation_sortVarsforOrder2(threadData, tmp1, _inVarLst, _vararray, _iAcc);
4936 /* skip box _outVarLst; list<BackendDAE.Var> */
4937 return _outVarLst;
4938}
4939
4940PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_sortVarsforOrder1(threadData_t *threadData, modelica_metatype _crlst, modelica_integer _index, modelica_metatype _inVarLst, modelica_metatype _vindxs, modelica_metatype _vararray, modelica_metatype _vars)
4941{
4942 modelica_metatype _outVarLst = NULL((void*)0);
4943 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
4944 MMC_SO()mmc_check_stackoverflow(threadData);
4945 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4946 // _outVarLst has no default value.
4947#line 4947 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4948 { /* matchcontinue expression */
4949 volatile modelica_metatype tmp3_1;
4950 tmp3_1 = _crlst;
4951 {
4952 modelica_integer _i;
4953 modelica_integer _p;
4954 modelica_metatype _ilst = NULL((void*)0);
4955 modelica_metatype _v = NULL((void*)0);
4956 modelica_metatype _vlst = NULL((void*)0);
4957 modelica_metatype _cr = NULL((void*)0);
4958 modelica_metatype _rest = NULL((void*)0);
4959 volatile mmc_switch_type tmp3;
4960 int tmp4;
4961 // _i has no default value.
4962 // _p has no default value.
4963 // _ilst has no default value.
4964 // _v has no default value.
4965 // _vlst has no default value.
4966 // _cr has no default value.
4967 // _rest has no default value.
4968 tmp3 = 0;
4969 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) {
4970 tmp2_top:
4971 threadData->mmc_jumper = &new_mmc_jumper;
4972 for (; tmp3 < 3; tmp3++) {
4973 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
4974 case 0: {
4975 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4976 tmp3 += 2; /* Pattern matching succeeded; we may skip some cases if we fail */
4977#line 2260 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4978 _vlst = omc_List_sort(threadData, _inVarLst, boxvar_BackendVariable_varSortFunc((void*)((char*)(&(boxvar_lit_BackendVariable_varSortFunc
).header) + 3))
);
4979#line 4979 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4980#line 2261 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4981 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4982#line 2261 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4983 tmpMeta[0] = omc_OnRelaxation_sortVarsforOrder2(threadData, ((modelica_integer) 1), _vlst, _vararray, tmpMeta[1]);
4984#line 4984 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4985 goto tmp2_done;
4986 }
4987 case 1: {
4988 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4989 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
4990 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
4991 _cr = tmpMeta[1];
4992 _rest = tmpMeta[2];
4993 /* Pattern matching succeeded */
4994#line 2266 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4995 _v = omc_BackendVariable_getVarSingle(threadData, _cr, _vars ,&_i);
4996#line 4996 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
4997
4998#line 2267 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
4999 _p = omc_List_position(threadData, mmc_mk_integermmc_mk_icon(_i), _vindxs);
5000#line 5000 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5001
5002#line 2268 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5003 _ilst = listDelete(_vindxs, _p)boxptr_listDelete(threadData,_vindxs,mmc_mk_icon(_p));
5004#line 5004 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5005
5006#line 2269 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5007 _vlst = listDelete(_inVarLst, _p)boxptr_listDelete(threadData,_inVarLst,mmc_mk_icon(_p));
5008#line 5008 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5009
5010#line 2270 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5011 arrayUpdate(_vararray, _index, mmc_mk_some(_v))boxptr_arrayUpdate(threadData,_vararray,mmc_mk_icon(_index),mmc_mk_some
(_v))
;
5012#line 5012 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5013#line 2271 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5014 tmpMeta[0] = omc_OnRelaxation_sortVarsforOrder1(threadData, _rest, ((modelica_integer) 1) + _index, _vlst, _ilst, _vararray, _vars);
5015#line 5015 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5016 goto tmp2_done;
5017 }
5018 case 2: {
5019 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
5020 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
5021 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
5022 _rest = tmpMeta[2];
5023 /* Pattern matching succeeded */
5024#line 2274 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5025 tmpMeta[0] = omc_OnRelaxation_sortVarsforOrder1(threadData, _rest, ((modelica_integer) 1) + _index, _inVarLst, _vindxs, _vararray, _vars);
5026#line 5026 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5027 goto tmp2_done;
5028 }
5029 }
5030 goto tmp2_end;
5031 tmp2_end: ;
5032 }
5033 goto goto_1;
5034 tmp2_done:
5035 (void)tmp3;
5036 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
5037 goto tmp2_done2;
5038 goto_1:;
5039 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
5040 if (++tmp3 < 3) {
5041 goto tmp2_top;
5042 }
5043 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5044 tmp2_done2:;
5045 }
5046 }
5047 _outVarLst = tmpMeta[0];
5048 _return: OMC_LABEL_UNUSED__attribute__((unused))
5049 return _outVarLst;
5050}
5051PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_sortVarsforOrder1(threadData_t *threadData, modelica_metatype _crlst, modelica_metatype _index, modelica_metatype _inVarLst, modelica_metatype _vindxs, modelica_metatype _vararray, modelica_metatype _vars)
5052{
5053 modelica_integer tmp1;
5054 modelica_metatype _outVarLst = NULL((void*)0);
5055 tmp1 = mmc_unbox_integer(_index)(((mmc_sint_t) (_index)) >> 1);
5056 _outVarLst = omc_OnRelaxation_sortVarsforOrder1(threadData, _crlst, tmp1, _inVarLst, _vindxs, _vararray, _vars);
5057 /* skip box _outVarLst; list<BackendDAE.Var> */
5058 return _outVarLst;
5059}
5060
5061PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_sortVarsforOrder(threadData_t *threadData, modelica_metatype _inEqn, modelica_metatype _inVarLst, modelica_metatype _vindxs, modelica_metatype _vars)
5062{
5063 modelica_metatype _outVarLst = NULL((void*)0);
5064 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
5065 MMC_SO()mmc_check_stackoverflow(threadData);
5066 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5067 // _outVarLst has no default value.
5068#line 5068 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5069 { /* matchcontinue expression */
5070 volatile modelica_metatype tmp3_1;
5071 tmp3_1 = _inEqn;
5072 {
5073 modelica_metatype _crlst = NULL((void*)0);
5074 modelica_metatype _e1 = NULL((void*)0);
5075 modelica_metatype _elst = NULL((void*)0);
5076 volatile mmc_switch_type tmp3;
5077 int tmp4;
5078 // _crlst has no default value.
5079 // _e1 has no default value.
5080 // _elst has no default value.
5081 tmp3 = 0;
5082 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) {
5083 tmp2_top:
5084 threadData->mmc_jumper = &new_mmc_jumper;
5085 for (; tmp3 < 3; tmp3++) {
5086 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
5087 case 0: {
5088 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,6)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((6 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
5089 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
5090
5091 _e1 = tmpMeta[1];
5092 /* Pattern matching succeeded */
5093#line 2216 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5094 _elst = omc_Expression_flattenArrayExpToList(threadData, _e1);
5095#line 5095 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5096
5097#line 2218 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5098 _crlst = omc_List_map(threadData, _elst, boxvar_Expression_expCrefNegCref((void*)((char*)(&(boxvar_lit_Expression_expCrefNegCref).
header) + 3))
);
5099#line 5099 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5100#line 2220 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5101 tmpMeta[0] = omc_OnRelaxation_sortVarsforOrder1(threadData, _crlst, ((modelica_integer) 1), _inVarLst, _vindxs, arrayCreate(listLength(_vindxs), mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3))), _vars);
5102#line 5102 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5103 goto tmp2_done;
5104 }
5105 case 1: {
5106 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,6)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((6 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
5107 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
5108
5109 _e1 = tmpMeta[1];
5110 /* Pattern matching succeeded */
5111#line 2226 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5112 _elst = omc_Expression_flattenArrayExpToList(threadData, _e1);
5113#line 5113 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5114
5115#line 2228 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5116 _crlst = omc_List_map(threadData, _elst, boxvar_Expression_expCrefNegCref((void*)((char*)(&(boxvar_lit_Expression_expCrefNegCref).
header) + 3))
);
5117#line 5117 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5118#line 2230 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5119 tmpMeta[0] = omc_OnRelaxation_sortVarsforOrder1(threadData, _crlst, ((modelica_integer) 1), _inVarLst, _vindxs, arrayCreate(listLength(_vindxs), mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3))), _vars);
5120#line 5120 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5121 goto tmp2_done;
5122 }
5123 case 2: {
5124
5125 /* Pattern matching succeeded */
5126#line 2235 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5127 tmpMeta[0] = omc_List_sort(threadData, _inVarLst, boxvar_BackendVariable_varSortFunc((void*)((char*)(&(boxvar_lit_BackendVariable_varSortFunc
).header) + 3))
);
5128#line 5128 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5129 goto tmp2_done;
5130 }
5131 }
5132 goto tmp2_end;
5133 tmp2_end: ;
5134 }
5135 goto goto_1;
5136 tmp2_done:
5137 (void)tmp3;
5138 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
5139 goto tmp2_done2;
5140 goto_1:;
5141 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
5142 if (++tmp3 < 3) {
5143 goto tmp2_top;
5144 }
5145 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5146 tmp2_done2:;
5147 }
5148 }
5149 _outVarLst = tmpMeta[0];
5150 _return: OMC_LABEL_UNUSED__attribute__((unused))
5151 return _outVarLst;
5152}
5153
5154PROTECTED_FUNCTION_STATIC modelica_metatype omc_OnRelaxation_getEqnsinOrder(threadData_t *threadData, modelica_integer _indx, modelica_metatype _inTpl)
5155{
5156 modelica_metatype _outTpl = NULL((void*)0);
5157 modelica_metatype _e = NULL((void*)0);
5158 modelica_metatype _eqns = NULL((void*)0);
5159 modelica_metatype _eqnssort = NULL((void*)0);
5160 modelica_metatype _ass2 = NULL((void*)0);
5161 modelica_metatype _vlst = NULL((void*)0);
5162 modelica_metatype _vars = NULL((void*)0);
5163 modelica_metatype _varssort = NULL((void*)0);
5164 modelica_metatype _vindxs = NULL((void*)0);
5165 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
5166 MMC_SO()mmc_check_stackoverflow(threadData);
5167 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5168 // _outTpl has no default value.
5169 // _e has no default value.
5170 // _eqns has no default value.
5171 // _eqnssort has no default value.
5172 // _ass2 has no default value.
5173 // _vlst has no default value.
5174 // _vars has no default value.
5175 // _varssort has no default value.
5176 // _vindxs has no default value.
5177#line 2187 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5178 /* Pattern-matching assignment */
5179#line 2187 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5180 tmpMeta[0] = _inTpl;
5181#line 2187 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5182 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
5183#line 2187 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5184 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
5185#line 2187 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5186 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
5187#line 2187 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5188 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
5189#line 2187 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5190 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
5191#line 2187 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5192 _eqns = tmpMeta[1];
5193#line 2187 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5194 _vars = tmpMeta[2];
5195#line 2187 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5196 _ass2 = tmpMeta[3];
5197#line 2187 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5198 _eqnssort = tmpMeta[4];
5199#line 2187 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5200 _varssort = tmpMeta[5];
5201#line 5201 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5202
5203#line 2189 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5204 _e = omc_BackendEquation_get(threadData, _eqns, _indx);
5205#line 5205 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5206
5207#line 2191 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5208 _eqnssort = omc_BackendEquation_add(threadData, _e, _eqnssort);
5209#line 5209 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5210
5211#line 2193 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5212 _vindxs = arrayGet(_ass2,_indx)nobox_arrayGet(threadData,_ass2,_indx) /* DAE.ASUB */;
5213#line 5213 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5214
5215#line 2194 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5216 _vlst = omc_List_map1r(threadData, _vindxs, boxvar_BackendVariable_getVarAt((void*)((char*)(&(boxvar_lit_BackendVariable_getVarAt).header
) + 3))
, _vars);
5217#line 5217 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5218
5219#line 2195 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5220 _vlst = omc_OnRelaxation_sortVarsforOrder(threadData, _e, _vlst, _vindxs, _vars);
5221#line 5221 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5222
5223#line 2196 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5224 _varssort = omc_BackendVariable_addVars(threadData, _vlst, _varssort);
5225#line 5225 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5226
5227#line 2197 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5228 tmpMeta[0] = mmc_mk_box5(0, _eqns, _vars, _ass2, _eqnssort, _varssort);
5229#line 2197 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5230 _outTpl = tmpMeta[0];
5231#line 5231 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5232 _return: OMC_LABEL_UNUSED__attribute__((unused))
5233 return _outTpl;
5234}
5235PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_OnRelaxation_getEqnsinOrder(threadData_t *threadData, modelica_metatype _indx, modelica_metatype _inTpl)
5236{
5237 modelica_integer tmp1;
5238 modelica_metatype _outTpl = NULL((void*)0);
5239 tmp1 = mmc_unbox_integer(_indx)(((mmc_sint_t) (_indx)) >> 1);
5240 _outTpl = omc_OnRelaxation_getEqnsinOrder(threadData, tmp1, _inTpl);
5241 /* skip box _outTpl; tuple<ExpandableArray<BackendDAE.Equation>, BackendDAE.Variables, array<list<#Integer>>, ExpandableArray<BackendDAE.Equation>, BackendDAE.Variables> */
5242 return _outTpl;
5243}
5244
5245PROTECTED_FUNCTION_STATIC void omc_OnRelaxation_dumpJacMatrix(threadData_t *threadData, modelica_metatype _jac, modelica_integer _row, modelica_integer _col, modelica_integer _size, modelica_metatype _vars)
5246{
5247 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
5248 MMC_SO()mmc_check_stackoverflow(threadData);
5249 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5250#line 5250 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5251 { /* matchcontinue expression */
5252 volatile modelica_metatype tmp3_1;
5253 tmp3_1 = _jac;
5254 {
5255 modelica_string _estr = NULL((void*)0);
5256 modelica_integer _c;
5257 modelica_integer _r;
5258 modelica_metatype _e = NULL((void*)0);
5259 modelica_metatype _v = NULL((void*)0);
5260 modelica_metatype _rest = NULL((void*)0);
5261 modelica_metatype _cr = NULL((void*)0);
5262 volatile mmc_switch_type tmp3;
5263 int tmp4;
5264 // _estr has no default value.
5265 // _c has no default value.
5266 // _r has no default value.
5267 // _e has no default value.
5268 // _v has no default value.
5269 // _rest has no default value.
5270 // _cr has no default value.
5271 tmp3 = 0;
5272 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) {
5273 tmp2_top:
5274 threadData->mmc_jumper = &new_mmc_jumper;
5275 for (; tmp3 < 6; tmp3++) {
5276 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
5277 case 0: {
5278 modelica_boolean tmp5;
5279
5280 /* Pattern matching succeeded */
5281#line 2133 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5282 /* Pattern-matching assignment */
5283#line 2133 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5284 tmp5 = (_row > _size);
5285#line 2133 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5286 if (1 != tmp5) goto goto_1;
5287#line 5287 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5288#line 5288 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5289 goto tmp2_done;
5290 }
5291 case 1: {
5292 modelica_boolean tmp6;
5293
5294 /* Pattern matching succeeded */
5295#line 2137 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5296 /* Pattern-matching assignment */
5297#line 2137 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5298 tmp6 = (_col > _size);
5299#line 2137 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5300 if (1 != tmp6) goto goto_1;
5301#line 5301 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5302
5303#line 2138 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5304 _v = omc_BackendVariable_getVarAt(threadData, _vars, _row);
5305#line 5305 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5306
5307#line 2139 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5308 _cr = omc_BackendVariable_varCref(threadData, _v);
5309#line 5309 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5310
5311#line 2140 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5312 fputs(MMC_STRINGDATA(_OMC_LIT2)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT2).header) + 3))) - 3)))->data)
,stdoutstdout);
5313#line 5313 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5314
5315#line 2141 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5316 fputs(MMC_STRINGDATA(intString(_row))(((struct mmc_string*)((void*)((char*)(intString(_row)) - 3))
)->data)
,stdoutstdout);
5317#line 5317 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5318
5319#line 2142 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5320 fputs(MMC_STRINGDATA(_OMC_LIT3)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT3).header) + 3))) - 3)))->data)
,stdoutstdout);
5321#line 5321 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5322
5323#line 2143 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5324 fputs(MMC_STRINGDATA(omc_ComponentReference_printComponentRefStr(threadData, _cr))(((struct mmc_string*)((void*)((char*)(omc_ComponentReference_printComponentRefStr
(threadData, _cr)) - 3)))->data)
,stdoutstdout);
5325#line 5325 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5326
5327#line 2143 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5328 fputs(MMC_STRINGDATA(_OMC_LIT1)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT1).header) + 3))) - 3)))->data)
,stdoutstdout);
5329#line 5329 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5330
5331#line 2144 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5332 omc_OnRelaxation_dumpJacMatrix(threadData, _jac, ((modelica_integer) 1) + _row, ((modelica_integer) 1), _size, _vars);
5333#line 5333 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5334#line 5334 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5335 goto tmp2_done;
5336 }
5337 case 2: {
5338 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
5339 tmp3 += 3; /* Pattern matching succeeded; we may skip some cases if we fail */
5340#line 2148 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5341 fputs(MMC_STRINGDATA(_OMC_LIT4)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT4).header) + 3))) - 3)))->data)
,stdoutstdout);
5342#line 5342 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5343
5344#line 2149 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5345 omc_OnRelaxation_dumpJacMatrix(threadData, _jac, _row, ((modelica_integer) 1) + _col, _size, _vars);
5346#line 5346 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5347#line 5347 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5348 goto tmp2_done;
5349 }
5350 case 3: {
5351 modelica_integer tmp7;
5352 modelica_integer tmp8;
5353 modelica_boolean tmp9;
5354 modelica_boolean tmp10;
5355 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
5356 tmpMeta[0] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
5357 tmpMeta[1] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
5358 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
5359 tmp7 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
5360 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
5361 tmp8 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
5362 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
5363 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],3,3)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3)))==(((3 +1)
<< 10) + (((3 +3) & 255) << 2)))
== 0) goto tmp2_end;
5364 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (2)))))
;
5365
5366 _r = tmp7 /* pattern as ty=Integer */;
5367 _c = tmp8 /* pattern as ty=Integer */;
5368 _e = tmpMeta[5];
5369 _rest = tmpMeta[1];
5370 /* Pattern matching succeeded */
5371#line 2153 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5372 /* Pattern-matching assignment */
5373#line 2153 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5374 tmp9 = (_r == _row);
5375#line 2153 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5376 if (1 != tmp9) goto goto_1;
5377#line 5377 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5378
5379#line 2154 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5380 /* Pattern-matching assignment */
5381#line 2154 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5382 tmp10 = (_c == _col);
5383#line 2154 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5384 if (1 != tmp10) goto goto_1;
5385#line 5385 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5386
5387#line 2155 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5388 _estr = omc_ExpressionDump_printExpStr(threadData, _e);
5389#line 5389 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5390
5391#line 2156 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5392 fputs(MMC_STRINGDATA(_estr)(((struct mmc_string*)((void*)((char*)(_estr) - 3)))->data
)
,stdoutstdout);
5393#line 5393 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5394
5395#line 2156 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5396 fputs(MMC_STRINGDATA(_OMC_LIT5)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT5).header) + 3))) - 3)))->data)
,stdoutstdout);
5397#line 5397 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5398
5399#line 2157 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5400 omc_OnRelaxation_dumpJacMatrix(threadData, _rest, _row, ((modelica_integer) 1) + _col, _size, _vars);
5401#line 5401 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5402#line 5402 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5403 goto tmp2_done;
5404 }
5405 case 4: {
5406 modelica_integer tmp11;
5407 modelica_integer tmp12;
5408 modelica_boolean tmp13;
5409 modelica_boolean tmp14;
5410 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
5411 tmpMeta[0] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
5412 tmpMeta[1] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
5413 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
5414 tmp11 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
5415 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
5416 tmp12 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
5417
5418 _r = tmp11 /* pattern as ty=Integer */;
5419 _c = tmp12 /* pattern as ty=Integer */;
5420 /* Pattern matching succeeded */
5421#line 2161 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5422 /* Pattern-matching assignment */
5423#line 2161 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5424 tmp13 = (_r == _row);
5425#line 2161 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5426 if (1 != tmp13) goto goto_1;
5427#line 5427 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5428
5429#line 2162 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5430 /* Pattern-matching assignment */
5431#line 2162 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5432 tmp14 = (_col < _c);
5433#line 2162 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5434 if (1 != tmp14) goto goto_1;
5435#line 5435 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5436
5437#line 2163 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5438 fputs(MMC_STRINGDATA(_OMC_LIT4)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT4).header) + 3))) - 3)))->data)
,stdoutstdout);
5439#line 5439 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5440
5441#line 2164 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5442 omc_OnRelaxation_dumpJacMatrix(threadData, _jac, _row, ((modelica_integer) 1) + _col, _size, _vars);
5443#line 5443 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5444#line 5444 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5445 goto tmp2_done;
5446 }
5447 case 5: {
5448 modelica_integer tmp15;
5449 modelica_boolean tmp16;
5450 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
5451 tmpMeta[0] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
5452 tmpMeta[1] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
5453 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
5454 tmp15 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
5455
5456 _r = tmp15 /* pattern as ty=Integer */;
5457 /* Pattern matching succeeded */
5458#line 2168 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5459 /* Pattern-matching assignment */
5460#line 2168 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5461 tmp16 = (_r == _row);
5462#line 2168 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5463 if (0 != tmp16) goto goto_1;
5464#line 5464 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5465
5466#line 2169 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5467 fputs(MMC_STRINGDATA(_OMC_LIT4)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT4).header) + 3))) - 3)))->data)
,stdoutstdout);
5468#line 5468 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5469
5470#line 2170 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/OnRelaxation.mo"
5471 omc_OnRelaxation_dumpJacMatrix(threadData, _jac, _row, ((modelica_integer) 1) + _col, _size, _vars);
5472#line 5472 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5473#line 5473 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/OnRelaxation.c"
5474 goto tmp2_done;
5475 }
5476 }
5477 goto tmp2_end;
5478 tmp2_end: ;
5479 }
5480 goto goto_1;
5481 tmp2_done:
5482 (void)tmp3;
5483 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
5484 goto tmp2_done2;
5485 goto_1:;
5486 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
5487 if (++tmp3 < 6) {
5488 goto tmp2_top;
5489 }
5490 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5491 tmp2_done2:;
5492 }
5493 }
5494 ;
5495 _return: OMC_LABEL_UNUSED__attribute__((unused))
5496 return;
5497}
5498PROTECTED_FUNCTION_STATIC void boxptr_OnRelaxation_dumpJacMatrix(threadData_t *threadData, modelica_metatype _jac, modelica_metatype _row, modelica_metatype _col, modelica_metatype _size, modelica_metatype _vars)
5499{
5500 modelica_integer tmp1;
5501 modelica_integer tmp2;
5502 modelica_integer tmp3;
5503 tmp1 = mmc_unbox_integer(_row)