Bug Summary

File:OMCompiler/Compiler/boot/build/Tpl.c
Warning:line 1499, column 3
Value stored to '_nErr' is never read

Annotated Source Code

[?] Use j/k keys for keyboard navigation

1#ifdef OMC_BASE_FILE
2 #define OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c" OMC_BASE_FILE
3#else
4 #define OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c" "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5#endif
6#include "omc_simulation_settings.h"
7#include "Tpl.h"
8#define _OMC_LIT0_data"Stack overflow:\n" "Stack overflow:\n"
9static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT0,16,_OMC_LIT0_data)struct { mmc_uint_t header; const char data[(16)+1]; } _OMC_LIT_STRUCT0
= { ((((mmc_uint_t)16)<<(3))+((1<<(3+3))+5)), "Stack overflow:\n"
}
;
10#define _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT0)((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))
11#define _OMC_LIT1_data"\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"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo" "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
15static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT2,89,_OMC_LIT2_data)struct { mmc_uint_t header; const char data[(89)+1]; } _OMC_LIT_STRUCT2
= { ((((mmc_uint_t)89)<<(3))+((1<<(3+3))+5)), "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
}
;
16#define _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT2)((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3))
17static const MMC_DEFREALLIT(_OMC_LIT_STRUCT3_6,1588090879.0)struct mmc_real_lit _OMC_LIT_STRUCT3_6 = {0,(((8/8) << 10
) + 9),1588090879.0}
;
18#define _OMC_LIT3_6((void*)((char*)(&(_OMC_LIT_STRUCT3_6).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT3_6)((void*)((char*)(&(_OMC_LIT_STRUCT3_6).header) + 3))
19static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT3,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT3
= { (((8) << 10) + (((3) & 255) << 2)),
{&SourceInfo_SOURCEINFO__desc,_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(2554))((void*)(((((mmc_uint_t) (2554)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(3))((void*)(((((mmc_uint_t) (3)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(2554))((void*)(((((mmc_uint_t) (2554)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(102))((void*)(((((mmc_uint_t) (102)) << 1)+0))),_OMC_LIT3_6((void*)((char*)(&(_OMC_LIT_STRUCT3_6).header) + 3))}};
20#define _OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT3)((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3))
21#define _OMC_LIT4_data"susanDebug" "susanDebug"
22static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT4,10,_OMC_LIT4_data)struct { mmc_uint_t header; const char data[(10)+1]; } _OMC_LIT_STRUCT4
= { ((((mmc_uint_t)10)<<(3))+((1<<(3+3))+5)), "susanDebug"
}
;
23#define _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT4)((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3))
24#define _OMC_LIT5_data"Makes Susan generate code using try/else to better debug which function broke the expected match semantics." "Makes Susan generate code using try/else to better debug which function broke the expected match semantics."
25static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT5,107,_OMC_LIT5_data)struct { mmc_uint_t header; const char data[(107)+1]; } _OMC_LIT_STRUCT5
= { ((((mmc_uint_t)107)<<(3))+((1<<(3+3))+5)), "Makes Susan generate code using try/else to better debug which function broke the expected match semantics."
}
;
26#define _OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT5)((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3))
27static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT6,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT6
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3))}};
28#define _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT6)((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3))
29static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT7,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT7
= { (((5) << 10) + (((3) & 255) << 2)),
{&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(176))((void*)(((((mmc_uint_t) (176)) << 1)+0))),_OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3))}};
30#define _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT7)((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3))
31#define _OMC_LIT8_data"tokFile got non-file text input" "tokFile got non-file text input"
32static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT8,31,_OMC_LIT8_data)struct { mmc_uint_t header; const char data[(31)+1]; } _OMC_LIT_STRUCT8
= { ((((mmc_uint_t)31)<<(3))+((1<<(3+3))+5)), "tokFile got non-file text input"
}
;
33#define _OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT8)((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3))
34static const MMC_DEFREALLIT(_OMC_LIT_STRUCT9_6,1588090879.0)struct mmc_real_lit _OMC_LIT_STRUCT9_6 = {0,(((8/8) << 10
) + 9),1588090879.0}
;
35#define _OMC_LIT9_6((void*)((char*)(&(_OMC_LIT_STRUCT9_6).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT9_6)((void*)((char*)(&(_OMC_LIT_STRUCT9_6).header) + 3))
36static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT9,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT9
= { (((8) << 10) + (((3) & 255) << 2)),
{&SourceInfo_SOURCEINFO__desc,_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(2450))((void*)(((((mmc_uint_t) (2450)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(7))((void*)(((((mmc_uint_t) (7)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(2450))((void*)(((((mmc_uint_t) (2450)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(78))((void*)(((((mmc_uint_t) (78)) << 1)+0))),_OMC_LIT9_6((void*)((char*)(&(_OMC_LIT_STRUCT9_6).header) + 3))}};
37#define _OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT9)((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))
38static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT10,3,3)struct { mmc_uint_t header; const void *data[3]; } _OMC_LIT_STRUCT10
= { (((3) << 10) + (((3) & 255) << 2)),
{&Tpl_Text_MEM__TEXT__desc,MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
39#define _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT10)((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3))
40static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT11,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT11
= { (((1) << 10) + (((5) & 255) << 2)),
{&ErrorTypes_MessageType_TRANSLATION__desc,}};
41#define _OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT11)((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3))
42static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT12,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT12
= { (((1) << 10) + (((4) & 255) << 2)),
{&ErrorTypes_Severity_ERROR__desc,}};
43#define _OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT12)((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3))
44#define _OMC_LIT13_data"Template error: %s." "Template error: %s."
45static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT13,19,_OMC_LIT13_data)struct { mmc_uint_t header; const char data[(19)+1]; } _OMC_LIT_STRUCT13
= { ((((mmc_uint_t)19)<<(3))+((1<<(3+3))+5)), "Template error: %s."
}
;
46#define _OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT13)((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3))
47static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT14,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT14
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3))}};
48#define _OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT14)((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3))
49static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT15,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT15
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(7001))((void*)(((((mmc_uint_t) (7001)) << 1)+0))),_OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)),_OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)),_OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3))}};
50#define _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT15)((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3))
51#define _OMC_LIT16_data"Template error: A template call failed (%s). One possible reason could be that a template imported function call failed (which should not happen for functions called from within template code; templates assert pure 'match'/non-failing semantics)." "Template error: A template call failed (%s). One possible reason could be that a template imported function call failed (which should not happen for functions called from within template code; templates assert pure 'match'/non-failing semantics)."
52static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT16,246,_OMC_LIT16_data)struct { mmc_uint_t header; const char data[(246)+1]; } _OMC_LIT_STRUCT16
= { ((((mmc_uint_t)246)<<(3))+((1<<(3+3))+5)), "Template error: A template call failed (%s). One possible reason could be that a template imported function call failed (which should not happen for functions called from within template code; templates assert pure 'match'/non-failing semantics)."
}
;
53#define _OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT16)((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3))
54static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT17,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT17
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3))}};
55#define _OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT17)((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3))
56static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT18,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT18
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(7014))((void*)(((((mmc_uint_t) (7014)) << 1)+0))),_OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)),_OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)),_OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3))}};
57#define _OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT18)((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3))
58static const MMC_DEFREALLIT(_OMC_LIT_STRUCT19,0.0)struct mmc_real_lit _OMC_LIT_STRUCT19 = {0,(((8/8) << 10
) + 9),0.0}
;
59#define _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT19)((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3))
60#define _OMC_LIT20_data"" ""
61static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT20,0,_OMC_LIT20_data)struct { mmc_uint_t header; const char data[(0)+1]; } _OMC_LIT_STRUCT20
= { ((((mmc_uint_t)0)<<(3))+((1<<(3+3))+5)), "" }
;
62#define _OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT20)((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3))
63#define _OMC_LIT21_data"gendebugsymbols" "gendebugsymbols"
64static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT21,15,_OMC_LIT21_data)struct { mmc_uint_t header; const char data[(15)+1]; } _OMC_LIT_STRUCT21
= { ((((mmc_uint_t)15)<<(3))+((1<<(3+3))+5)), "gendebugsymbols"
}
;
65#define _OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT21)((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3))
66#define _OMC_LIT22_data"Generate code with debugging symbols." "Generate code with debugging symbols."
67static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT22,37,_OMC_LIT22_data)struct { mmc_uint_t header; const char data[(37)+1]; } _OMC_LIT_STRUCT22
= { ((((mmc_uint_t)37)<<(3))+((1<<(3+3))+5)), "Generate code with debugging symbols."
}
;
68#define _OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT22)((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3))
69static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT23,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT23
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3))}};
70#define _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT23)((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3))
71static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT24,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT24
= { (((5) << 10) + (((3) & 255) << 2)),
{&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(71))((void*)(((((mmc_uint_t) (71)) << 1)+0))),_OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3))}};
72#define _OMC_LIT24((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT24)((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3))
73#define _OMC_LIT25_data"textFile " "textFile "
74static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT25,9,_OMC_LIT25_data)struct { mmc_uint_t header; const char data[(9)+1]; } _OMC_LIT_STRUCT25
= { ((((mmc_uint_t)9)<<(3))+((1<<(3+3))+5)), "textFile "
}
;
75#define _OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT25)((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3))
76#define _OMC_LIT26_data"\n text:" "\n text:"
77static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT26,10,_OMC_LIT26_data)struct { mmc_uint_t header; const char data[(10)+1]; } _OMC_LIT_STRUCT26
= { ((((mmc_uint_t)10)<<(3))+((1<<(3+3))+5)), "\n text:"
}
;
78#define _OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT26)((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3))
79#define _OMC_LIT27_data"\n write:" "\n write:"
80static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT27,10,_OMC_LIT27_data)struct { mmc_uint_t header; const char data[(10)+1]; } _OMC_LIT_STRUCT27
= { ((((mmc_uint_t)10)<<(3))+((1<<(3+3))+5)), "\n write:"
}
;
81#define _OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT27)((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3))
82#define _OMC_LIT28_data"tplPerfTimes" "tplPerfTimes"
83static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT28,12,_OMC_LIT28_data)struct { mmc_uint_t header; const char data[(12)+1]; } _OMC_LIT_STRUCT28
= { ((((mmc_uint_t)12)<<(3))+((1<<(3+3))+5)), "tplPerfTimes"
}
;
84#define _OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT28)((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3))
85#define _OMC_LIT29_data"Enables output of template performance data for rendering text to file." "Enables output of template performance data for rendering text to file."
86static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT29,71,_OMC_LIT29_data)struct { mmc_uint_t header; const char data[(71)+1]; } _OMC_LIT_STRUCT29
= { ((((mmc_uint_t)71)<<(3))+((1<<(3+3))+5)), "Enables output of template performance data for rendering text to file."
}
;
87#define _OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT29)((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3))
88static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT30,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT30
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3))}};
89#define _OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT30)((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3))
90static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT31,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT31
= { (((5) << 10) + (((3) & 255) << 2)),
{&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(66))((void*)(((((mmc_uint_t) (66)) << 1)+0))),_OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3))}};
91#define _OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT31)((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3))
92#define _OMC_LIT32_data"failtrace" "failtrace"
93static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT32,9,_OMC_LIT32_data)struct { mmc_uint_t header; const char data[(9)+1]; } _OMC_LIT_STRUCT32
= { ((((mmc_uint_t)9)<<(3))+((1<<(3+3))+5)), "failtrace"
}
;
94#define _OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT32)((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3))
95#define _OMC_LIT33_data"Sets whether to print a failtrace or not." "Sets whether to print a failtrace or not."
96static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT33,41,_OMC_LIT33_data)struct { mmc_uint_t header; const char data[(41)+1]; } _OMC_LIT_STRUCT33
= { ((((mmc_uint_t)41)<<(3))+((1<<(3+3))+5)), "Sets whether to print a failtrace or not."
}
;
97#define _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT33)((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3))
98static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT34,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT34
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3))}};
99#define _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT34)((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))
100static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT35,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT35
= { (((5) << 10) + (((3) & 255) << 2)),
{&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),_OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))}};
101#define _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT35)((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3))
102#define _OMC_LIT36_data"-!!!Tpl.textFile failed - a system error ?\n" "-!!!Tpl.textFile failed - a system error ?\n"
103static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT36,43,_OMC_LIT36_data)struct { mmc_uint_t header; const char data[(43)+1]; } _OMC_LIT_STRUCT36
= { ((((mmc_uint_t)43)<<(3))+((1<<(3+3))+5)), "-!!!Tpl.textFile failed - a system error ?\n"
}
;
104#define _OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT36)((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3))
105#define _OMC_LIT37_data"Stack overflow when evaluating function:\n" "Stack overflow when evaluating function:\n"
106static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT37,41,_OMC_LIT37_data)struct { mmc_uint_t header; const char data[(41)+1]; } _OMC_LIT_STRUCT37
= { ((((mmc_uint_t)41)<<(3))+((1<<(3+3))+5)), "Stack overflow when evaluating function:\n"
}
;
107#define _OMC_LIT37((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT37)((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3))
108static const MMC_DEFREALLIT(_OMC_LIT_STRUCT38_6,1588090879.0)struct mmc_real_lit _OMC_LIT_STRUCT38_6 = {0,(((8/8) <<
10) + 9),1588090879.0}
;
109#define _OMC_LIT38_6((void*)((char*)(&(_OMC_LIT_STRUCT38_6).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT38_6)((void*)((char*)(&(_OMC_LIT_STRUCT38_6).header) + 3))
110static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT38,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT38
= { (((8) << 10) + (((3) & 255) << 2)),
{&SourceInfo_SOURCEINFO__desc,_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(2027))((void*)(((((mmc_uint_t) (2027)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(8))((void*)(((((mmc_uint_t) (8)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(2027))((void*)(((((mmc_uint_t) (2027)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(159))((void*)(((((mmc_uint_t) (159)) << 1)+0))),_OMC_LIT38_6((void*)((char*)(&(_OMC_LIT_STRUCT38_6).header) + 3))}};
111#define _OMC_LIT38((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT38)((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3))
112static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT39,2,4)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT39
= { (((2) << 10) + (((4) & 255) << 2)),
{&Tpl_StringToken_ST__STRING__desc,_OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3))}};
113#define _OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT39)((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3))
114static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT40,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT40
= { (((1) << 10) + (((3) & 255) << 2)),
{&Tpl_BlockType_BT__TEXT__desc,}};
115#define _OMC_LIT40((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT40)((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3))
116#define _OMC_LIT41_data"-!!!Tpl.textStrTok failed - incomplete text was passed to be converted.\n" "-!!!Tpl.textStrTok failed - incomplete text was passed to be converted.\n"
117static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT41,72,_OMC_LIT41_data)struct { mmc_uint_t header; const char data[(72)+1]; } _OMC_LIT_STRUCT41
= { ((((mmc_uint_t)72)<<(3))+((1<<(3+3))+5)), "-!!!Tpl.textStrTok failed - incomplete text was passed to be converted.\n"
}
;
118#define _OMC_LIT41((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT41)((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3))
119#define _OMC_LIT42_data"-!!!Tpl.iterAlignWrapString failed.\n" "-!!!Tpl.iterAlignWrapString failed.\n"
120static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT42,36,_OMC_LIT42_data)struct { mmc_uint_t header; const char data[(36)+1]; } _OMC_LIT_STRUCT42
= { ((((mmc_uint_t)36)<<(3))+((1<<(3+3))+5)), "-!!!Tpl.iterAlignWrapString failed.\n"
}
;
121#define _OMC_LIT42((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT42)((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3))
122#define _OMC_LIT43_data"-!!!Tpl.tokString failed.\n" "-!!!Tpl.tokString failed.\n"
123static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT43,26,_OMC_LIT43_data)struct { mmc_uint_t header; const char data[(26)+1]; } _OMC_LIT_STRUCT43
= { ((((mmc_uint_t)26)<<(3))+((1<<(3+3))+5)), "-!!!Tpl.tokString failed.\n"
}
;
124#define _OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT43)((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3))
125#define _OMC_LIT44_data"-!!!Tpl.stringListFile failed.\n" "-!!!Tpl.stringListFile failed.\n"
126static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT44,31,_OMC_LIT44_data)struct { mmc_uint_t header; const char data[(31)+1]; } _OMC_LIT_STRUCT44
= { ((((mmc_uint_t)31)<<(3))+((1<<(3+3))+5)), "-!!!Tpl.stringListFile failed.\n"
}
;
127#define _OMC_LIT44((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT44)((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3))
128#define _OMC_LIT45_data"-!!!Tpl.stringListString failed.\n" "-!!!Tpl.stringListString failed.\n"
129static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT45,33,_OMC_LIT45_data)struct { mmc_uint_t header; const char data[(33)+1]; } _OMC_LIT_STRUCT45
= { ((((mmc_uint_t)33)<<(3))+((1<<(3+3))+5)), "-!!!Tpl.stringListString failed.\n"
}
;
130#define _OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT45)((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3))
131#define _OMC_LIT46_data"-!!!Tpl.textString failed - a non-comlete text was given.\n" "-!!!Tpl.textString failed - a non-comlete text was given.\n"
132static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT46,58,_OMC_LIT46_data)struct { mmc_uint_t header; const char data[(58)+1]; } _OMC_LIT_STRUCT46
= { ((((mmc_uint_t)58)<<(3))+((1<<(3+3))+5)), "-!!!Tpl.textString failed - a non-comlete text was given.\n"
}
;
133#define _OMC_LIT46((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT46)((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3))
134#define _OMC_LIT47_data"-!!!Tpl.textString failed.\n" "-!!!Tpl.textString failed.\n"
135static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT47,27,_OMC_LIT47_data)struct { mmc_uint_t header; const char data[(27)+1]; } _OMC_LIT_STRUCT47
= { ((((mmc_uint_t)27)<<(3))+((1<<(3+3))+5)), "-!!!Tpl.textString failed.\n"
}
;
136#define _OMC_LIT47((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT47)((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3))
137#define _OMC_LIT48_data"-!!!Tpl.getIter_i0 failed - getIter_i0 was called in a non-iteration context ? \n" "-!!!Tpl.getIter_i0 failed - getIter_i0 was called in a non-iteration context ? \n"
138static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT48,80,_OMC_LIT48_data)struct { mmc_uint_t header; const char data[(80)+1]; } _OMC_LIT_STRUCT48
= { ((((mmc_uint_t)80)<<(3))+((1<<(3+3))+5)), "-!!!Tpl.getIter_i0 failed - getIter_i0 was called in a non-iteration context ? \n"
}
;
139#define _OMC_LIT48((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT48)((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3))
140#define _OMC_LIT49_data"-!!!Tpl.nextIter failed - nextIter was called in a non-iteration context?" "-!!!Tpl.nextIter failed - nextIter was called in a non-iteration context?"
141static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT49,73,_OMC_LIT49_data)struct { mmc_uint_t header; const char data[(73)+1]; } _OMC_LIT_STRUCT49
= { ((((mmc_uint_t)73)<<(3))+((1<<(3+3))+5)), "-!!!Tpl.nextIter failed - nextIter was called in a non-iteration context?"
}
;
142#define _OMC_LIT49((void*)((char*)(&(_OMC_LIT_STRUCT49).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT49)((void*)((char*)(&(_OMC_LIT_STRUCT49).header) + 3))
143static const MMC_DEFREALLIT(_OMC_LIT_STRUCT50_6,1588090879.0)struct mmc_real_lit _OMC_LIT_STRUCT50_6 = {0,(((8/8) <<
10) + 9),1588090879.0}
;
144#define _OMC_LIT50_6((void*)((char*)(&(_OMC_LIT_STRUCT50_6).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT50_6)((void*)((char*)(&(_OMC_LIT_STRUCT50_6).header) + 3))
145static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT50,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT50
= { (((8) << 10) + (((3) & 255) << 2)),
{&SourceInfo_SOURCEINFO__desc,_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(831))((void*)(((((mmc_uint_t) (831)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(9))((void*)(((((mmc_uint_t) (9)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(831))((void*)(((((mmc_uint_t) (831)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(122))((void*)(((((mmc_uint_t) (122)) << 1)+0))),_OMC_LIT50_6((void*)((char*)(&(_OMC_LIT_STRUCT50_6).header) + 3))}};
146#define _OMC_LIT50((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT50)((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3))
147#define _OMC_LIT51_data"-!!!Tpl.popIter failed - probably pushIter and popIter are not well balanced or something was written between the last nextIter and popIter ?\n" "-!!!Tpl.popIter failed - probably pushIter and popIter are not well balanced or something was written between the last nextIter and popIter ?\n"
148static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT51,142,_OMC_LIT51_data)struct { mmc_uint_t header; const char data[(142)+1]; } _OMC_LIT_STRUCT51
= { ((((mmc_uint_t)142)<<(3))+((1<<(3+3))+5)), "-!!!Tpl.popIter failed - probably pushIter and popIter are not well balanced or something was written between the last nextIter and popIter ?\n"
}
;
149#define _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT51)((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3))
150#define _OMC_LIT52_data"Tpl.mo FILE_TEXT does not support aligning or wrapping elements" "Tpl.mo FILE_TEXT does not support aligning or wrapping elements"
151static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT52,63,_OMC_LIT52_data)struct { mmc_uint_t header; const char data[(63)+1]; } _OMC_LIT_STRUCT52
= { ((((mmc_uint_t)63)<<(3))+((1<<(3+3))+5)), "Tpl.mo FILE_TEXT does not support aligning or wrapping elements"
}
;
152#define _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT52)((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3))
153static const MMC_DEFREALLIT(_OMC_LIT_STRUCT53_6,1588090879.0)struct mmc_real_lit _OMC_LIT_STRUCT53_6 = {0,(((8/8) <<
10) + 9),1588090879.0}
;
154#define _OMC_LIT53_6((void*)((char*)(&(_OMC_LIT_STRUCT53_6).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT53_6)((void*)((char*)(&(_OMC_LIT_STRUCT53_6).header) + 3))
155static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT53,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT53
= { (((8) << 10) + (((3) & 255) << 2)),
{&SourceInfo_SOURCEINFO__desc,_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(667))((void*)(((((mmc_uint_t) (667)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(15))((void*)(((((mmc_uint_t) (15)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(667))((void*)(((((mmc_uint_t) (667)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(118))((void*)(((((mmc_uint_t) (118)) << 1)+0))),_OMC_LIT53_6((void*)((char*)(&(_OMC_LIT_STRUCT53_6).header) + 3))}};
156#define _OMC_LIT53((void*)((char*)(&(_OMC_LIT_STRUCT53).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT53)((void*)((char*)(&(_OMC_LIT_STRUCT53).header) + 3))
157#define _OMC_LIT54_data"-!!!Tpl.pushIter failed \n" "-!!!Tpl.pushIter failed \n"
158static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT54,25,_OMC_LIT54_data)struct { mmc_uint_t header; const char data[(25)+1]; } _OMC_LIT_STRUCT54
= { ((((mmc_uint_t)25)<<(3))+((1<<(3+3))+5)), "-!!!Tpl.pushIter failed \n"
}
;
159#define _OMC_LIT54((void*)((char*)(&(_OMC_LIT_STRUCT54).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT54)((void*)((char*)(&(_OMC_LIT_STRUCT54).header) + 3))
160#define _OMC_LIT55_data"-!!!Tpl.popBlock failed - probably pushBlock and popBlock are not well balanced !\n" "-!!!Tpl.popBlock failed - probably pushBlock and popBlock are not well balanced !\n"
161static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT55,82,_OMC_LIT55_data)struct { mmc_uint_t header; const char data[(82)+1]; } _OMC_LIT_STRUCT55
= { ((((mmc_uint_t)82)<<(3))+((1<<(3+3))+5)), "-!!!Tpl.popBlock failed - probably pushBlock and popBlock are not well balanced !\n"
}
;
162#define _OMC_LIT55((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT55)((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3))
163#define _OMC_LIT56_data"-!!!Tpl.pushBlock failed \n" "-!!!Tpl.pushBlock failed \n"
164static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT56,26,_OMC_LIT56_data)struct { mmc_uint_t header; const char data[(26)+1]; } _OMC_LIT_STRUCT56
= { ((((mmc_uint_t)26)<<(3))+((1<<(3+3))+5)), "-!!!Tpl.pushBlock failed \n"
}
;
165#define _OMC_LIT56((void*)((char*)(&(_OMC_LIT_STRUCT56).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT56)((void*)((char*)(&(_OMC_LIT_STRUCT56).header) + 3))
166static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT57,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT57
= { (((1) << 10) + (((3) & 255) << 2)),
{&Tpl_StringToken_ST__NEW__LINE__desc,}};
167#define _OMC_LIT57((void*)((char*)(&(_OMC_LIT_STRUCT57).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT57)((void*)((char*)(&(_OMC_LIT_STRUCT57).header) + 3))
168#define _OMC_LIT58_data"-!!!Tpl.softNL failed. \n" "-!!!Tpl.softNL failed. \n"
169static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT58,24,_OMC_LIT58_data)struct { mmc_uint_t header; const char data[(24)+1]; } _OMC_LIT_STRUCT58
= { ((((mmc_uint_t)24)<<(3))+((1<<(3+3))+5)), "-!!!Tpl.softNL failed. \n"
}
;
170#define _OMC_LIT58((void*)((char*)(&(_OMC_LIT_STRUCT58).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT58)((void*)((char*)(&(_OMC_LIT_STRUCT58).header) + 3))
171static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT59,2,1)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT59
= { (((2) << 10) + (((1) & 255) << 2)),
{_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
172#define _OMC_LIT59((void*)((char*)(&(_OMC_LIT_STRUCT59).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT59)((void*)((char*)(&(_OMC_LIT_STRUCT59).header) + 3))
173#define _OMC_LIT60_data"-!!!Tpl.writeChars failed.\n" "-!!!Tpl.writeChars failed.\n"
174static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT60,27,_OMC_LIT60_data)struct { mmc_uint_t header; const char data[(27)+1]; } _OMC_LIT_STRUCT60
= { ((((mmc_uint_t)27)<<(3))+((1<<(3+3))+5)), "-!!!Tpl.writeChars failed.\n"
}
;
175#define _OMC_LIT60((void*)((char*)(&(_OMC_LIT_STRUCT60).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT60)((void*)((char*)(&(_OMC_LIT_STRUCT60).header) + 3))
176#define _OMC_LIT61_data"-!!!Tpl.writeText failed - incomplete text was passed to be written\n" "-!!!Tpl.writeText failed - incomplete text was passed to be written\n"
177static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT61,68,_OMC_LIT61_data)struct { mmc_uint_t header; const char data[(68)+1]; } _OMC_LIT_STRUCT61
= { ((((mmc_uint_t)68)<<(3))+((1<<(3+3))+5)), "-!!!Tpl.writeText failed - incomplete text was passed to be written\n"
}
;
178#define _OMC_LIT61((void*)((char*)(&(_OMC_LIT_STRUCT61).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT61)((void*)((char*)(&(_OMC_LIT_STRUCT61).header) + 3))
179#include "util/modelica.h"
180
181#include "Tpl_includes.h"
182
183
184/* default, do not make protected functions static */
185#if !defined(PROTECTED_FUNCTION_STATIC)
186#define PROTECTED_FUNCTION_STATIC
187#endif
188PROTECTED_FUNCTION_STATIC void omc_Tpl_handleTok(threadData_t *threadData, modelica_metatype _txt);
189static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_handleTok,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_handleTok
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_handleTokomc_Tpl_handleTok,0}};
190#define boxvar_Tpl_handleTok((void*)((char*)(&(boxvar_lit_Tpl_handleTok).header) + 3)
)
MMC_REFSTRUCTLIT(boxvar_lit_Tpl_handleTok)((void*)((char*)(&(boxvar_lit_Tpl_handleTok).header) + 3)
)
191PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_textFileTell(threadData_t *threadData, modelica_metatype _inText);
192PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_textFileTell(threadData_t *threadData, modelica_metatype _inText);
193static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_textFileTell,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_textFileTell
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_textFileTell,0}};
194#define boxvar_Tpl_textFileTell((void*)((char*)(&(boxvar_lit_Tpl_textFileTell).header) +
3))
MMC_REFSTRUCTLIT(boxvar_lit_Tpl_textFileTell)((void*)((char*)(&(boxvar_lit_Tpl_textFileTell).header) +
3))
195PROTECTED_FUNCTION_STATIC void omc_Tpl_newlineFile(threadData_t *threadData, modelica_metatype _inText);
196static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_newlineFile,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_newlineFile
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_newlineFileomc_Tpl_newlineFile,0}};
197#define boxvar_Tpl_newlineFile((void*)((char*)(&(boxvar_lit_Tpl_newlineFile).header) + 3
))
MMC_REFSTRUCTLIT(boxvar_lit_Tpl_newlineFile)((void*)((char*)(&(boxvar_lit_Tpl_newlineFile).header) + 3
))
198PROTECTED_FUNCTION_STATIC void omc_Tpl_stringFile(threadData_t *threadData, modelica_metatype _inText, modelica_string _str, modelica_boolean _line, modelica_boolean _recurseSeparator);
199PROTECTED_FUNCTION_STATIC void boxptr_Tpl_stringFile(threadData_t *threadData, modelica_metatype _inText, modelica_metatype _str, modelica_metatype _line, modelica_metatype _recurseSeparator);
200static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_stringFile,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_stringFile
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_stringFile,0}};
201#define boxvar_Tpl_stringFile((void*)((char*)(&(boxvar_lit_Tpl_stringFile).header) + 3
))
MMC_REFSTRUCTLIT(boxvar_lit_Tpl_stringFile)((void*)((char*)(&(boxvar_lit_Tpl_stringFile).header) + 3
))
202PROTECTED_FUNCTION_STATIC modelica_metatype omc_Tpl_getTextOpaqueFile(threadData_t *threadData, modelica_metatype _text);
203static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_getTextOpaqueFile,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_getTextOpaqueFile
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_getTextOpaqueFileomc_Tpl_getTextOpaqueFile,0}};
204#define boxvar_Tpl_getTextOpaqueFile((void*)((char*)(&(boxvar_lit_Tpl_getTextOpaqueFile).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Tpl_getTextOpaqueFile)((void*)((char*)(&(boxvar_lit_Tpl_getTextOpaqueFile).header
) + 3))
205PROTECTED_FUNCTION_STATIC void omc_Tpl_addTemplateErrorFunc(threadData_t *threadData, modelica_metatype _func);
206static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_addTemplateErrorFunc,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_addTemplateErrorFunc
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_addTemplateErrorFuncomc_Tpl_addTemplateErrorFunc,0}};
207#define boxvar_Tpl_addTemplateErrorFunc((void*)((char*)(&(boxvar_lit_Tpl_addTemplateErrorFunc).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Tpl_addTemplateErrorFunc)((void*)((char*)(&(boxvar_lit_Tpl_addTemplateErrorFunc).header
) + 3))
208PROTECTED_FUNCTION_STATIC modelica_metatype omc_Tpl_tplCallHandleErrors(threadData_t *threadData, modelica_fnptr _inFun, modelica_metatype _D_24in_txt);
209static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_tplCallHandleErrors,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_tplCallHandleErrors
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_tplCallHandleErrorsomc_Tpl_tplCallHandleErrors,0}};
210#define boxvar_Tpl_tplCallHandleErrors((void*)((char*)(&(boxvar_lit_Tpl_tplCallHandleErrors).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Tpl_tplCallHandleErrors)((void*)((char*)(&(boxvar_lit_Tpl_tplCallHandleErrors).header
) + 3))
211PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_tryWrapFile(threadData_t *threadData, modelica_complex _file, modelica_integer _inWrapWidth, modelica_metatype _inWrapSeparator, modelica_integer _inActualPositionOnLine, modelica_boolean _inAtStartOfLine, modelica_integer _inAfterNewLineIndent, modelica_boolean *out_outAtStartOfLine, modelica_integer *out_outAfterNewLineIndent);
212PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_tryWrapFile(threadData_t *threadData, modelica_metatype _file, modelica_metatype _inWrapWidth, modelica_metatype _inWrapSeparator, modelica_metatype _inActualPositionOnLine, modelica_metatype _inAtStartOfLine, modelica_metatype _inAfterNewLineIndent, modelica_metatype *out_outAtStartOfLine, modelica_metatype *out_outAfterNewLineIndent);
213static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_tryWrapFile,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_tryWrapFile
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_tryWrapFile,0}};
214#define boxvar_Tpl_tryWrapFile((void*)((char*)(&(boxvar_lit_Tpl_tryWrapFile).header) + 3
))
MMC_REFSTRUCTLIT(boxvar_lit_Tpl_tryWrapFile)((void*)((char*)(&(boxvar_lit_Tpl_tryWrapFile).header) + 3
))
215PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_iterAlignWrapFile(threadData_t *threadData, modelica_complex _file, modelica_metatype _inTokens, modelica_integer _inActualIndex, modelica_integer _inAlignNum, modelica_metatype _inAlignSeparator, modelica_integer _inWrapWidth, modelica_metatype _inWrapSeparator, modelica_integer _inActualPositionOnLine, modelica_boolean _inAtStartOfLine, modelica_integer _inAfterNewLineIndent, modelica_boolean *out_outAtStartOfLine);
216PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_iterAlignWrapFile(threadData_t *threadData, modelica_metatype _file, modelica_metatype _inTokens, modelica_metatype _inActualIndex, modelica_metatype _inAlignNum, modelica_metatype _inAlignSeparator, modelica_metatype _inWrapWidth, modelica_metatype _inWrapSeparator, modelica_metatype _inActualPositionOnLine, modelica_metatype _inAtStartOfLine, modelica_metatype _inAfterNewLineIndent, modelica_metatype *out_outAtStartOfLine);
217static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_iterAlignWrapFile,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_iterAlignWrapFile
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_iterAlignWrapFile,0}};
218#define boxvar_Tpl_iterAlignWrapFile((void*)((char*)(&(boxvar_lit_Tpl_iterAlignWrapFile).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Tpl_iterAlignWrapFile)((void*)((char*)(&(boxvar_lit_Tpl_iterAlignWrapFile).header
) + 3))
219PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_iterSeparatorAlignWrapFile(threadData_t *threadData, modelica_complex _file, modelica_metatype _inTokens, modelica_metatype _inSeparator, modelica_integer _inActualIndex, modelica_integer _inAlignNum, modelica_metatype _inAlignSeparator, modelica_integer _inWrapWidth, modelica_metatype _inWrapSeparator, modelica_integer _inActualPositionOnLine, modelica_boolean _inAtStartOfLine, modelica_integer _inAfterNewLineIndent, modelica_boolean *out_outAtStartOfLine);
220PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_iterSeparatorAlignWrapFile(threadData_t *threadData, modelica_metatype _file, modelica_metatype _inTokens, modelica_metatype _inSeparator, modelica_metatype _inActualIndex, modelica_metatype _inAlignNum, modelica_metatype _inAlignSeparator, modelica_metatype _inWrapWidth, modelica_metatype _inWrapSeparator, modelica_metatype _inActualPositionOnLine, modelica_metatype _inAtStartOfLine, modelica_metatype _inAfterNewLineIndent, modelica_metatype *out_outAtStartOfLine);
221static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_iterSeparatorAlignWrapFile,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_iterSeparatorAlignWrapFile
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_iterSeparatorAlignWrapFile,0}};
222#define boxvar_Tpl_iterSeparatorAlignWrapFile((void*)((char*)(&(boxvar_lit_Tpl_iterSeparatorAlignWrapFile
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Tpl_iterSeparatorAlignWrapFile)((void*)((char*)(&(boxvar_lit_Tpl_iterSeparatorAlignWrapFile
).header) + 3))
223PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_iterSeparatorFile(threadData_t *threadData, modelica_complex _file, modelica_metatype _inTokens, modelica_metatype _inSeparator, modelica_integer _inActualPositionOnLine, modelica_boolean _inAtStartOfLine, modelica_integer _inAfterNewLineIndent, modelica_boolean *out_outAtStartOfLine);
224PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_iterSeparatorFile(threadData_t *threadData, modelica_metatype _file, modelica_metatype _inTokens, modelica_metatype _inSeparator, modelica_metatype _inActualPositionOnLine, modelica_metatype _inAtStartOfLine, modelica_metatype _inAfterNewLineIndent, modelica_metatype *out_outAtStartOfLine);
225static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_iterSeparatorFile,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_iterSeparatorFile
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_iterSeparatorFile,0}};
226#define boxvar_Tpl_iterSeparatorFile((void*)((char*)(&(boxvar_lit_Tpl_iterSeparatorFile).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Tpl_iterSeparatorFile)((void*)((char*)(&(boxvar_lit_Tpl_iterSeparatorFile).header
) + 3))
227PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_blockFile(threadData_t *threadData, modelica_complex _file, modelica_metatype _inBlockType, modelica_metatype _inTokens, modelica_integer _inActualPositionOnLine, modelica_boolean _inAtStartOfLine, modelica_integer _inAfterNewLineIndent, modelica_boolean *out_outAtStartOfLine, modelica_integer *out_outAfterNewLineIndent);
228PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_blockFile(threadData_t *threadData, modelica_metatype _file, modelica_metatype _inBlockType, modelica_metatype _inTokens, modelica_metatype _inActualPositionOnLine, modelica_metatype _inAtStartOfLine, modelica_metatype _inAfterNewLineIndent, modelica_metatype *out_outAtStartOfLine, modelica_metatype *out_outAfterNewLineIndent);
229static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_blockFile,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_blockFile
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_blockFile,0}};
230#define boxvar_Tpl_blockFile((void*)((char*)(&(boxvar_lit_Tpl_blockFile).header) + 3)
)
MMC_REFSTRUCTLIT(boxvar_lit_Tpl_blockFile)((void*)((char*)(&(boxvar_lit_Tpl_blockFile).header) + 3)
)
231PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_tryWrapString(threadData_t *threadData, modelica_integer _inWrapWidth, modelica_metatype _inWrapSeparator, modelica_integer _inActualPositionOnLine, modelica_boolean _inAtStartOfLine, modelica_integer _inAfterNewLineIndent, modelica_boolean *out_outAtStartOfLine, modelica_integer *out_outAfterNewLineIndent);
232PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_tryWrapString(threadData_t *threadData, modelica_metatype _inWrapWidth, modelica_metatype _inWrapSeparator, modelica_metatype _inActualPositionOnLine, modelica_metatype _inAtStartOfLine, modelica_metatype _inAfterNewLineIndent, modelica_metatype *out_outAtStartOfLine, modelica_metatype *out_outAfterNewLineIndent);
233static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_tryWrapString,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_tryWrapString
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_tryWrapString,0}};
234#define boxvar_Tpl_tryWrapString((void*)((char*)(&(boxvar_lit_Tpl_tryWrapString).header) +
3))
MMC_REFSTRUCTLIT(boxvar_lit_Tpl_tryWrapString)((void*)((char*)(&(boxvar_lit_Tpl_tryWrapString).header) +
3))
235PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_iterAlignWrapString(threadData_t *threadData, modelica_metatype _inTokens, modelica_integer _inActualIndex, modelica_integer _inAlignNum, modelica_metatype _inAlignSeparator, modelica_integer _inWrapWidth, modelica_metatype _inWrapSeparator, modelica_integer _inActualPositionOnLine, modelica_boolean _inAtStartOfLine, modelica_integer _inAfterNewLineIndent, modelica_boolean *out_outAtStartOfLine);
236PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_iterAlignWrapString(threadData_t *threadData, modelica_metatype _inTokens, modelica_metatype _inActualIndex, modelica_metatype _inAlignNum, modelica_metatype _inAlignSeparator, modelica_metatype _inWrapWidth, modelica_metatype _inWrapSeparator, modelica_metatype _inActualPositionOnLine, modelica_metatype _inAtStartOfLine, modelica_metatype _inAfterNewLineIndent, modelica_metatype *out_outAtStartOfLine);
237static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_iterAlignWrapString,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_iterAlignWrapString
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_iterAlignWrapString,0}};
238#define boxvar_Tpl_iterAlignWrapString((void*)((char*)(&(boxvar_lit_Tpl_iterAlignWrapString).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Tpl_iterAlignWrapString)((void*)((char*)(&(boxvar_lit_Tpl_iterAlignWrapString).header
) + 3))
239PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_iterSeparatorAlignWrapString(threadData_t *threadData, modelica_metatype _inTokens, modelica_metatype _inSeparator, modelica_integer _inActualIndex, modelica_integer _inAlignNum, modelica_metatype _inAlignSeparator, modelica_integer _inWrapWidth, modelica_metatype _inWrapSeparator, modelica_integer _inActualPositionOnLine, modelica_boolean _inAtStartOfLine, modelica_integer _inAfterNewLineIndent, modelica_boolean *out_outAtStartOfLine);
240PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_iterSeparatorAlignWrapString(threadData_t *threadData, modelica_metatype _inTokens, modelica_metatype _inSeparator, modelica_metatype _inActualIndex, modelica_metatype _inAlignNum, modelica_metatype _inAlignSeparator, modelica_metatype _inWrapWidth, modelica_metatype _inWrapSeparator, modelica_metatype _inActualPositionOnLine, modelica_metatype _inAtStartOfLine, modelica_metatype _inAfterNewLineIndent, modelica_metatype *out_outAtStartOfLine);
241static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_iterSeparatorAlignWrapString,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_iterSeparatorAlignWrapString
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_iterSeparatorAlignWrapString,0}};
242#define boxvar_Tpl_iterSeparatorAlignWrapString((void*)((char*)(&(boxvar_lit_Tpl_iterSeparatorAlignWrapString
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Tpl_iterSeparatorAlignWrapString)((void*)((char*)(&(boxvar_lit_Tpl_iterSeparatorAlignWrapString
).header) + 3))
243PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_iterSeparatorString(threadData_t *threadData, modelica_metatype _inTokens, modelica_metatype _inSeparator, modelica_integer _inActualPositionOnLine, modelica_boolean _inAtStartOfLine, modelica_integer _inAfterNewLineIndent, modelica_boolean *out_outAtStartOfLine);
244PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_iterSeparatorString(threadData_t *threadData, modelica_metatype _inTokens, modelica_metatype _inSeparator, modelica_metatype _inActualPositionOnLine, modelica_metatype _inAtStartOfLine, modelica_metatype _inAfterNewLineIndent, modelica_metatype *out_outAtStartOfLine);
245static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_iterSeparatorString,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_iterSeparatorString
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_iterSeparatorString,0}};
246#define boxvar_Tpl_iterSeparatorString((void*)((char*)(&(boxvar_lit_Tpl_iterSeparatorString).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Tpl_iterSeparatorString)((void*)((char*)(&(boxvar_lit_Tpl_iterSeparatorString).header
) + 3))
247PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_blockString(threadData_t *threadData, modelica_metatype _inBlockType, modelica_metatype _inTokens, modelica_integer _inActualPositionOnLine, modelica_boolean _inAtStartOfLine, modelica_integer _inAfterNewLineIndent, modelica_boolean *out_outAtStartOfLine, modelica_integer *out_outAfterNewLineIndent);
248PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_blockString(threadData_t *threadData, modelica_metatype _inBlockType, modelica_metatype _inTokens, modelica_metatype _inActualPositionOnLine, modelica_metatype _inAtStartOfLine, modelica_metatype _inAfterNewLineIndent, modelica_metatype *out_outAtStartOfLine, modelica_metatype *out_outAfterNewLineIndent);
249static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_blockString,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_blockString
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_blockString,0}};
250#define boxvar_Tpl_blockString((void*)((char*)(&(boxvar_lit_Tpl_blockString).header) + 3
))
MMC_REFSTRUCTLIT(boxvar_lit_Tpl_blockString)((void*)((char*)(&(boxvar_lit_Tpl_blockString).header) + 3
))
251PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_stringListFile(threadData_t *threadData, modelica_complex _file, modelica_metatype _inStringList, modelica_integer _D_24in_nchars, modelica_boolean _D_24in_isstart, modelica_integer _D_24in_aind, modelica_boolean *out_isstart, modelica_integer *out_aind);
252PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_stringListFile(threadData_t *threadData, modelica_metatype _file, modelica_metatype _inStringList, modelica_metatype _D_24in_nchars, modelica_metatype _D_24in_isstart, modelica_metatype _D_24in_aind, modelica_metatype *out_isstart, modelica_metatype *out_aind);
253static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_stringListFile,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_stringListFile
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_stringListFile,0}};
254#define boxvar_Tpl_stringListFile((void*)((char*)(&(boxvar_lit_Tpl_stringListFile).header)
+ 3))
MMC_REFSTRUCTLIT(boxvar_lit_Tpl_stringListFile)((void*)((char*)(&(boxvar_lit_Tpl_stringListFile).header)
+ 3))
255PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_stringListString(threadData_t *threadData, modelica_metatype _inStringList, modelica_integer _inActualPositionOnLine, modelica_boolean _inAtStartOfLine, modelica_integer _inAfterNewLineIndent, modelica_boolean *out_outAtStartOfLine, modelica_integer *out_outAfterNewLineIndent);
256PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_stringListString(threadData_t *threadData, modelica_metatype _inStringList, modelica_metatype _inActualPositionOnLine, modelica_metatype _inAtStartOfLine, modelica_metatype _inAfterNewLineIndent, modelica_metatype *out_outAtStartOfLine, modelica_metatype *out_outAfterNewLineIndent);
257static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_stringListString,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_stringListString
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_stringListString,0}};
258#define boxvar_Tpl_stringListString((void*)((char*)(&(boxvar_lit_Tpl_stringListString).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Tpl_stringListString)((void*)((char*)(&(boxvar_lit_Tpl_stringListString).header
) + 3))
259PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_tokFile(threadData_t *threadData, modelica_complex _file, modelica_metatype _inStringToken, modelica_integer _D_24in_nchars, modelica_boolean _D_24in_isstart, modelica_integer _D_24in_aind, modelica_boolean *out_isstart, modelica_integer *out_aind);
260PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_tokFile(threadData_t *threadData, modelica_metatype _file, modelica_metatype _inStringToken, modelica_metatype _D_24in_nchars, modelica_metatype _D_24in_isstart, modelica_metatype _D_24in_aind, modelica_metatype *out_isstart, modelica_metatype *out_aind);
261static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_tokFile,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_tokFile
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_tokFile,0}};
262#define boxvar_Tpl_tokFile((void*)((char*)(&(boxvar_lit_Tpl_tokFile).header) + 3)) MMC_REFSTRUCTLIT(boxvar_lit_Tpl_tokFile)((void*)((char*)(&(boxvar_lit_Tpl_tokFile).header) + 3))
263PROTECTED_FUNCTION_STATIC void omc_Tpl_tokFileText(threadData_t *threadData, modelica_metatype _inText, modelica_metatype _inStringToken, modelica_boolean _doHandleTok);
264PROTECTED_FUNCTION_STATIC void boxptr_Tpl_tokFileText(threadData_t *threadData, modelica_metatype _inText, modelica_metatype _inStringToken, modelica_metatype _doHandleTok);
265static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_tokFileText,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_tokFileText
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_tokFileText,0}};
266#define boxvar_Tpl_tokFileText((void*)((char*)(&(boxvar_lit_Tpl_tokFileText).header) + 3
))
MMC_REFSTRUCTLIT(boxvar_lit_Tpl_tokFileText)((void*)((char*)(&(boxvar_lit_Tpl_tokFileText).header) + 3
))
267PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_tokString(threadData_t *threadData, modelica_metatype _inStringToken, modelica_integer _inActualPositionOnLine, modelica_boolean _inAtStartOfLine, modelica_integer _inAfterNewLineIndent, modelica_boolean *out_outAtStartOfLine, modelica_integer *out_outAfterNewLineIndent);
268PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_tokString(threadData_t *threadData, modelica_metatype _inStringToken, modelica_metatype _inActualPositionOnLine, modelica_metatype _inAtStartOfLine, modelica_metatype _inAfterNewLineIndent, modelica_metatype *out_outAtStartOfLine, modelica_metatype *out_outAfterNewLineIndent);
269static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_tokString,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_tokString
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_tokString,0}};
270#define boxvar_Tpl_tokString((void*)((char*)(&(boxvar_lit_Tpl_tokString).header) + 3)
)
MMC_REFSTRUCTLIT(boxvar_lit_Tpl_tokString)((void*)((char*)(&(boxvar_lit_Tpl_tokString).header) + 3)
)
271PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_tokensFile(threadData_t *threadData, modelica_complex _file, modelica_metatype _inTokens, modelica_integer _D_24in_actualPositionOnLine, modelica_boolean _D_24in_atStartOfLine, modelica_integer _D_24in_afterNewLineIndent, modelica_boolean *out_atStartOfLine, modelica_integer *out_afterNewLineIndent);
272PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_tokensFile(threadData_t *threadData, modelica_metatype _file, modelica_metatype _inTokens, modelica_metatype _D_24in_actualPositionOnLine, modelica_metatype _D_24in_atStartOfLine, modelica_metatype _D_24in_afterNewLineIndent, modelica_metatype *out_atStartOfLine, modelica_metatype *out_afterNewLineIndent);
273static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_tokensFile,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_tokensFile
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_tokensFile,0}};
274#define boxvar_Tpl_tokensFile((void*)((char*)(&(boxvar_lit_Tpl_tokensFile).header) + 3
))
MMC_REFSTRUCTLIT(boxvar_lit_Tpl_tokensFile)((void*)((char*)(&(boxvar_lit_Tpl_tokensFile).header) + 3
))
275PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_tokensString(threadData_t *threadData, modelica_metatype _inTokens, modelica_integer _D_24in_actualPositionOnLine, modelica_boolean _D_24in_atStartOfLine, modelica_integer _D_24in_afterNewLineIndent, modelica_boolean *out_atStartOfLine, modelica_integer *out_afterNewLineIndent);
276PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_tokensString(threadData_t *threadData, modelica_metatype _inTokens, modelica_metatype _D_24in_actualPositionOnLine, modelica_metatype _D_24in_atStartOfLine, modelica_metatype _D_24in_afterNewLineIndent, modelica_metatype *out_atStartOfLine, modelica_metatype *out_afterNewLineIndent);
277static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_tokensString,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_tokensString
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_tokensString,0}};
278#define boxvar_Tpl_tokensString((void*)((char*)(&(boxvar_lit_Tpl_tokensString).header) +
3))
MMC_REFSTRUCTLIT(boxvar_lit_Tpl_tokensString)((void*)((char*)(&(boxvar_lit_Tpl_tokensString).header) +
3))
279PROTECTED_FUNCTION_STATIC modelica_boolean omc_Tpl_isAtStartOfLineTok(threadData_t *threadData, modelica_metatype _inTok);
280PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_isAtStartOfLineTok(threadData_t *threadData, modelica_metatype _inTok);
281static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_isAtStartOfLineTok,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_isAtStartOfLineTok
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_isAtStartOfLineTok,0}};
282#define boxvar_Tpl_isAtStartOfLineTok((void*)((char*)(&(boxvar_lit_Tpl_isAtStartOfLineTok).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Tpl_isAtStartOfLineTok)((void*)((char*)(&(boxvar_lit_Tpl_isAtStartOfLineTok).header
) + 3))
283PROTECTED_FUNCTION_STATIC modelica_boolean omc_Tpl_isAtStartOfLine(threadData_t *threadData, modelica_metatype _text);
284PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_isAtStartOfLine(threadData_t *threadData, modelica_metatype _text);
285static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_isAtStartOfLine,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_isAtStartOfLine
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_isAtStartOfLine,0}};
286#define boxvar_Tpl_isAtStartOfLine((void*)((char*)(&(boxvar_lit_Tpl_isAtStartOfLine).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Tpl_isAtStartOfLine)((void*)((char*)(&(boxvar_lit_Tpl_isAtStartOfLine).header
) + 3))
287PROTECTED_FUNCTION_STATIC modelica_metatype omc_Tpl_takeLineOrString(threadData_t *threadData, modelica_metatype _inChars, modelica_metatype *out_outRestChars, modelica_boolean *out_outIsLine);
288PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_takeLineOrString(threadData_t *threadData, modelica_metatype _inChars, modelica_metatype *out_outRestChars, modelica_metatype *out_outIsLine);
289static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_takeLineOrString,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_takeLineOrString
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_takeLineOrString,0}};
290#define boxvar_Tpl_takeLineOrString((void*)((char*)(&(boxvar_lit_Tpl_takeLineOrString).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Tpl_takeLineOrString)((void*)((char*)(&(boxvar_lit_Tpl_takeLineOrString).header
) + 3))
291PROTECTED_FUNCTION_STATIC modelica_metatype omc_Tpl_writeLineOrStr(threadData_t *threadData, modelica_metatype _inText, modelica_string _inStr, modelica_boolean _inIsLine);
292PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_writeLineOrStr(threadData_t *threadData, modelica_metatype _inText, modelica_metatype _inStr, modelica_metatype _inIsLine);
293static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_writeLineOrStr,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_writeLineOrStr
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_writeLineOrStr,0}};
294#define boxvar_Tpl_writeLineOrStr((void*)((char*)(&(boxvar_lit_Tpl_writeLineOrStr).header)
+ 3))
MMC_REFSTRUCTLIT(boxvar_lit_Tpl_writeLineOrStr)((void*)((char*)(&(boxvar_lit_Tpl_writeLineOrStr).header)
+ 3))
295PROTECTED_FUNCTION_STATIC modelica_metatype omc_Tpl_writeChars(threadData_t *threadData, modelica_metatype _inText, modelica_metatype _inChars);
296static const MMC_DEFSTRUCTLIT(boxvar_lit_Tpl_writeChars,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Tpl_writeChars
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Tpl_writeCharsomc_Tpl_writeChars,0}};
297#define boxvar_Tpl_writeChars((void*)((char*)(&(boxvar_lit_Tpl_writeChars).header) + 3
))
MMC_REFSTRUCTLIT(boxvar_lit_Tpl_writeChars)((void*)((char*)(&(boxvar_lit_Tpl_writeChars).header) + 3
))
298
299DLLExport
300void omc_Tpl_fakeStackOverflow(threadData_t *threadData)
301{
302 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
303 MMC_SO()mmc_check_stackoverflow(threadData);
304 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
305#line 2554 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
306 tmpMeta[0] = stringAppend(_OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)),omc_StackOverflow_generateReadableMessage(threadData, ((modelica_integer) 1000), ((modelica_integer) 4), _OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3))));
307#line 2554 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
308 omc_Error_addInternalError(threadData, tmpMeta[0], _OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)));
309#line 309 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
310
311#line 2555 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
312 omc_StackOverflow_triggerStackOverflow(threadData);
313#line 313 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
314 _return: OMC_LABEL_UNUSED__attribute__((unused))
315 return;
316}
317
318DLLExport
319modelica_boolean omc_Tpl_debugSusan(threadData_t *threadData)
320{
321 modelica_boolean _b;
322 MMC_SO()mmc_check_stackoverflow(threadData);
323 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
324 // _b has no default value.
325#line 2549 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
326 _b = omc_Flags_isSet(threadData, _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
327#line 327 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
328 _return: OMC_LABEL_UNUSED__attribute__((unused))
329 return _b;
330}
331modelica_metatype boxptr_Tpl_debugSusan(threadData_t *threadData)
332{
333 modelica_boolean _b;
334 modelica_metatype out_b;
335 _b = omc_Tpl_debugSusan(threadData);
336 out_b = mmc_mk_icon(_b);
337 return out_b;
338}
339
340PROTECTED_FUNCTION_STATIC void omc_Tpl_handleTok(threadData_t *threadData, modelica_metatype _txt)
341{
342 modelica_metatype _septok = NULL((void*)0);
343 modelica_metatype _aseptok = NULL((void*)0);
344 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
345 MMC_SO()mmc_check_stackoverflow(threadData);
346 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
347 // _septok has no default value.
348 // _aseptok has no default value.
349#line 349 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
350 { /* match expression */
351 modelica_metatype tmp3_1;
352 tmp3_1 = _txt;
353 {
354 volatile mmc_switch_type tmp3;
355 int tmp4;
356 tmp3 = 0;
357 for (; tmp3 < 1; tmp3++) {
358 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
359 case 0: {
360 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,5)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((5 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
361
362 /* Pattern matching succeeded */
363#line 363 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
364 { /* match expression */
365 modelica_metatype tmp7_1;
366 tmp7_1 = arrayGet((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_txt), 6))), ((modelica_integer) 1))nobox_arrayGet(threadData,((*(void**)(((void*)((void**)(((void
*)((char*)(_txt) - 3))) + (6)))))),((modelica_integer) 1))
;
367 {
368 volatile mmc_switch_type tmp7;
369 int tmp8;
370 tmp7 = 0;
371 for (; tmp7 < 2; tmp7++) {
372 switch (MMC_SWITCH_CAST(tmp7)(tmp7)) {
373 case 0: {
374 if (listEmpty(tmp7_1)((*(mmc_uint_t*)((void*)((char*)(tmp7_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp6_end;
375 tmpMeta[0] = MMC_CAR(tmp7_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp7_1) - 3))) +
(1)))))
;
376 tmpMeta[1] = MMC_CDR(tmp7_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp7_1) - 3))) +
(2)))))
;
377 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
378 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],5,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((2 +1)
<< 10) + (((5 +3) & 255) << 2)))
== 0) goto tmp6_end;
379 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (7)))))
;
380 _aseptok = tmpMeta[3];
381 /* Pattern matching succeeded */
382#line 382 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
383 { /* match expression */
384 modelica_metatype tmp11_1;
385 tmp11_1 = arrayGet(_aseptok, ((modelica_integer) 1))nobox_arrayGet(threadData,_aseptok,((modelica_integer) 1));
386 {
387 volatile mmc_switch_type tmp11;
388 int tmp12;
389 tmp11 = 0;
390 for (; tmp11 < 2; tmp11++) {
391 switch (MMC_SWITCH_CAST(tmp11)(tmp11)) {
392 case 0: {
393 if (optionNone(tmp11_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp11_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp11_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp11_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp10_end;
394 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp11_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp11_1) - 3)))
+ (1)))))
;
395 _septok = tmpMeta[0];
396 /* Pattern matching succeeded */
397#line 2534 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
398 arrayUpdate(_aseptok, ((modelica_integer) 1), mmc_mk_none())boxptr_arrayUpdate(threadData,_aseptok,mmc_mk_icon(((modelica_integer
) 1)),((void*)((char*)(&(mmc_none).header) + 3)))
;
399#line 399 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
400
401#line 2535 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
402 omc_Tpl_tokFileText(threadData, _txt, _septok, 0);
403#line 403 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
404#line 404 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
405 goto tmp10_done;
406 }
407 case 1: {
408
409 /* Pattern matching succeeded */
410#line 410 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
411 goto tmp10_done;
412 }
413 }
414 goto tmp10_end;
415 tmp10_end: ;
416 }
417 goto goto_9;
418 goto_9:;
419 goto goto_5;
420 goto tmp10_done;
421 tmp10_done:;
422 }
423 }
424 ;
425#line 425 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
426 goto tmp6_done;
427 }
428 case 1: {
429
430 /* Pattern matching succeeded */
431#line 431 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
432 goto tmp6_done;
433 }
434 }
435 goto tmp6_end;
436 tmp6_end: ;
437 }
438 goto goto_5;
439 goto_5:;
440 goto goto_1;
441 goto tmp6_done;
442 tmp6_done:;
443 }
444 }
445 ;
446#line 446 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
447 goto tmp2_done;
448 }
449 }
450 goto tmp2_end;
451 tmp2_end: ;
452 }
453 goto goto_1;
454 goto_1:;
455 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
456 goto tmp2_done;
457 tmp2_done:;
458 }
459 }
460 ;
461 _return: OMC_LABEL_UNUSED__attribute__((unused))
462 return;
463}
464
465PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_textFileTell(threadData_t *threadData, modelica_metatype _inText)
466{
467 modelica_integer _tell;
468 modelica_complex _file;
469 MMC_SO()mmc_check_stackoverflow(threadData);
470 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
471 // _tell has no default value.
472 _file = omc_File_File_constructor(threadData, omc_Tpl_getTextOpaqueFile(threadData, _inText));
473#line 2516 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
474 _tell = omc_File_tell(threadData, _file);
475#line 475 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
476 _return: OMC_LABEL_UNUSED__attribute__((unused))
477 omc_File_File_destructor(threadData,_file);
478 return _tell;
479}
480PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_textFileTell(threadData_t *threadData, modelica_metatype _inText)
481{
482 modelica_integer _tell;
483 modelica_metatype out_tell;
484 _tell = omc_Tpl_textFileTell(threadData, _inText);
485 out_tell = mmc_mk_icon(_tell);
486 return out_tell;
487}
488
489PROTECTED_FUNCTION_STATIC void omc_Tpl_newlineFile(threadData_t *threadData, modelica_metatype _inText)
490{
491 modelica_complex _file;
492 modelica_integer _nchars;
493 MMC_SO()mmc_check_stackoverflow(threadData);
494 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
495 _file = omc_File_File_constructor(threadData, omc_Tpl_getTextOpaqueFile(threadData, _inText));
496 // _nchars has no default value.
497#line 497 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
498 { /* match expression */
499 modelica_metatype tmp3_1;
500 tmp3_1 = _inText;
501 {
502 volatile mmc_switch_type tmp3;
503 int tmp4;
504 tmp3 = 0;
505 for (; tmp3 < 1; tmp3++) {
506 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
507 case 0: {
508 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,5)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((5 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
509
510 /* Pattern matching succeeded */
511#line 2503 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
512 omc_File_write(threadData, _file, _OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)));
513#line 513 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
514
515#line 2504 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
516 arrayUpdate((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inText), 3))), ((modelica_integer) 1), arrayGet((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inText), 4))), ((modelica_integer) 1)))boxptr_arrayUpdate(threadData,((*(void**)(((void*)((void**)((
(void*)((char*)(_inText) - 3))) + (3)))))),mmc_mk_icon(((modelica_integer
) 1)),nobox_arrayGet(threadData,((*(void**)(((void*)((void**)
(((void*)((char*)(_inText) - 3))) + (4)))))),((modelica_integer
) 1)))
;
517#line 517 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
518
519#line 2505 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
520 arrayUpdate((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inText), 5))), ((modelica_integer) 1), mmc_mk_boolean(1))boxptr_arrayUpdate(threadData,((*(void**)(((void*)((void**)((
(void*)((char*)(_inText) - 3))) + (5)))))),mmc_mk_icon(((modelica_integer
) 1)),((1) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))))
;
521#line 521 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
522#line 522 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
523 goto tmp2_done;
524 }
525 }
526 goto tmp2_end;
527 tmp2_end: ;
528 }
529 goto goto_1;
530 goto_1:;
531 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
532 goto tmp2_done;
533 tmp2_done:;
534 }
535 }
536 ;
537 _return: OMC_LABEL_UNUSED__attribute__((unused))
538 omc_File_File_destructor(threadData,_file);
539 return;
540}
541
542PROTECTED_FUNCTION_STATIC void omc_Tpl_stringFile(threadData_t *threadData, modelica_metatype _inText, modelica_string _str, modelica_boolean _line, modelica_boolean _recurseSeparator)
543{
544 modelica_complex _file;
545 modelica_integer _nchars;
546 modelica_metatype _iopts = NULL((void*)0);
547 modelica_metatype _septok = NULL((void*)0);
548 MMC_SO()mmc_check_stackoverflow(threadData);
549 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
550 _file = omc_File_File_constructor(threadData, omc_Tpl_getTextOpaqueFile(threadData, _inText));
551 // _nchars has no default value.
552 // _iopts has no default value.
553 // _septok has no default value.
554#line 554 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
555 { /* match expression */
556 modelica_metatype tmp3_1;
557 tmp3_1 = _inText;
558 {
559 volatile mmc_switch_type tmp3;
560 int tmp4;
561 tmp3 = 0;
562 for (; tmp3 < 1; tmp3++) {
563 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
564 case 0: {
565 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,5)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((5 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
566
567 /* Pattern matching succeeded */
568#line 2469 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
569 omc_Tpl_handleTok(threadData, _inText);
570#line 570 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
571
572#line 2470 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
573 _nchars = mmc_unbox_integer(arrayGet((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inText), 3))), ((modelica_integer) 1)))(((mmc_sint_t) (nobox_arrayGet(threadData,((*(void**)(((void*
)((void**)(((void*)((char*)(_inText) - 3))) + (3)))))),((modelica_integer
) 1)))) >> 1)
;
574#line 574 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
575
576#line 2471 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
577 if((!_line))
578#line 2471 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
579 {
580#line 2472 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
581 if(mmc_unbox_boolean(arrayGet((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inText), 5))), ((modelica_integer) 1)))(((mmc_sint_t) (nobox_arrayGet(threadData,((*(void**)(((void*
)((void**)(((void*)((char*)(_inText) - 3))) + (5)))))),((modelica_integer
) 1)))) >> 1)
)
582#line 2472 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
583 {
584#line 2473 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
585 omc_File_writeSpace(threadData, _file, _nchars);
586#line 586 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
587
588#line 2474 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
589 omc_File_write(threadData, _file, _str);
590#line 590 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
591
592#line 2475 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
593 arrayUpdate((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inText), 3))), ((modelica_integer) 1), mmc_mk_integer(_nchars + stringLength(_str)))boxptr_arrayUpdate(threadData,((*(void**)(((void*)((void**)((
(void*)((char*)(_inText) - 3))) + (3)))))),mmc_mk_icon(((modelica_integer
) 1)),mmc_mk_icon(_nchars + (((((*(mmc_uint_t*)((void*)((char
*)(_str) - 3)))) >> (3)) - 8))))
;
594#line 594 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
595
596#line 2476 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
597 arrayUpdate((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inText), 5))), ((modelica_integer) 1), mmc_mk_boolean(0))boxptr_arrayUpdate(threadData,((*(void**)(((void*)((void**)((
(void*)((char*)(_inText) - 3))) + (5)))))),mmc_mk_icon(((modelica_integer
) 1)),((0) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))))
;
598#line 598 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
599 }
600 else
601 {
602#line 2478 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
603 omc_File_write(threadData, _file, _str);
604#line 604 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
605
606#line 2479 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
607 arrayUpdate((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inText), 3))), ((modelica_integer) 1), mmc_mk_integer(_nchars + stringLength(_str)))boxptr_arrayUpdate(threadData,((*(void**)(((void*)((void**)((
(void*)((char*)(_inText) - 3))) + (3)))))),mmc_mk_icon(((modelica_integer
) 1)),mmc_mk_icon(_nchars + (((((*(mmc_uint_t*)((void*)((char
*)(_str) - 3)))) >> (3)) - 8))))
;
608#line 608 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
609 }
610 }
611 else
612 {
613#line 2482 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
614 if(mmc_unbox_boolean(arrayGet((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inText), 5))), ((modelica_integer) 1)))(((mmc_sint_t) (nobox_arrayGet(threadData,((*(void**)(((void*
)((void**)(((void*)((char*)(_inText) - 3))) + (5)))))),((modelica_integer
) 1)))) >> 1)
)
615#line 2482 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
616 {
617#line 2483 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
618 omc_File_writeSpace(threadData, _file, _nchars);
619#line 619 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
620 }
621 else
622 {
623#line 2485 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
624 arrayUpdate((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inText), 5))), ((modelica_integer) 1), mmc_mk_boolean(1))boxptr_arrayUpdate(threadData,((*(void**)(((void*)((void**)((
(void*)((char*)(_inText) - 3))) + (5)))))),mmc_mk_icon(((modelica_integer
) 1)),((1) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))))
;
625#line 625 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
626 }
627
628#line 2487 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
629 omc_File_write(threadData, _file, _str);
630#line 630 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
631
632#line 2488 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
633 arrayUpdate((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inText), 3))), ((modelica_integer) 1), arrayGet((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inText), 4))), ((modelica_integer) 1)))boxptr_arrayUpdate(threadData,((*(void**)(((void*)((void**)((
(void*)((char*)(_inText) - 3))) + (3)))))),mmc_mk_icon(((modelica_integer
) 1)),nobox_arrayGet(threadData,((*(void**)(((void*)((void**)
(((void*)((char*)(_inText) - 3))) + (4)))))),((modelica_integer
) 1)))
;
634#line 634 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
635 }
636#line 636 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
637 goto tmp2_done;
638 }
639 }
640 goto tmp2_end;
641 tmp2_end: ;
642 }
643 goto goto_1;
644 goto_1:;
645 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
646 goto tmp2_done;
647 tmp2_done:;
648 }
649 }
650 ;
651 _return: OMC_LABEL_UNUSED__attribute__((unused))
652 omc_File_File_destructor(threadData,_file);
653 return;
654}
655PROTECTED_FUNCTION_STATIC void boxptr_Tpl_stringFile(threadData_t *threadData, modelica_metatype _inText, modelica_metatype _str, modelica_metatype _line, modelica_metatype _recurseSeparator)
656{
657 modelica_integer tmp1;
658 modelica_integer tmp2;
659 tmp1 = mmc_unbox_integer(_line)(((mmc_sint_t) (_line)) >> 1);
660 tmp2 = mmc_unbox_integer(_recurseSeparator)(((mmc_sint_t) (_recurseSeparator)) >> 1);
661 omc_Tpl_stringFile(threadData, _inText, _str, tmp1, tmp2);
662 return;
663}
664
665PROTECTED_FUNCTION_STATIC modelica_metatype omc_Tpl_getTextOpaqueFile(threadData_t *threadData, modelica_metatype _text)
666{
667 modelica_metatype _opaqueFile = NULL((void*)0);
668 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
669 MMC_SO()mmc_check_stackoverflow(threadData);
670 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
671 // _opaqueFile has no default value.
672#line 672 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
673 { /* match expression */
674 modelica_metatype tmp3_1;
675 tmp3_1 = _text;
676 {
677 volatile mmc_switch_type tmp3;
678 int tmp4;
679 tmp3 = 0;
680 for (; tmp3 < 2; tmp3++) {
681 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
682 case 0: {
683 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,5)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((5 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
684
685 /* Pattern matching succeeded */
686#line 2447 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
687 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_text), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_text) - 3))) +
(2)))))
);
688#line 688 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
689 goto tmp2_done;
690 }
691 case 1: {
692
693 /* Pattern matching succeeded */
694#line 2450 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
695 omc_Error_addInternalError(threadData, _OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)), _OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3)));
696#line 696 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
697#line 2451 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
698 goto goto_1;
699#line 699 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
700 goto tmp2_done;
701 }
702 }
703 goto tmp2_end;
704 tmp2_end: ;
705 }
706 goto goto_1;
707 goto_1:;
708 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
709 goto tmp2_done;
710 tmp2_done:;
711 }
712 }
713 _opaqueFile = tmpMeta[0];
714 _return: OMC_LABEL_UNUSED__attribute__((unused))
715 return _opaqueFile;
716}
717
718DLLExport
719modelica_string omc_Tpl_booleanString(threadData_t *threadData, modelica_boolean _b)
720{
721 modelica_string _s = NULL((void*)0);
722 modelica_string tmp1;
723 MMC_SO()mmc_check_stackoverflow(threadData);
724 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
725 // _s has no default value.
726#line 2439 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
727 tmp1 = modelica_boolean_to_modelica_string(_b, ((modelica_integer) 0), 1);
728#line 2439 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
729 _s = tmp1;
730#line 730 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
731 _return: OMC_LABEL_UNUSED__attribute__((unused))
732 return _s;
733}
734modelica_metatype boxptr_Tpl_booleanString(threadData_t *threadData, modelica_metatype _b)
735{
736 modelica_integer tmp1;
737 modelica_string _s = NULL((void*)0);
738 tmp1 = mmc_unbox_integer(_b)(((mmc_sint_t) (_b)) >> 1);
739 _s = omc_Tpl_booleanString(threadData, tmp1);
740 /* skip box _s; String */
741 return _s;
742}
743
744DLLExport
745modelica_metatype omc_Tpl_closeFile(threadData_t *threadData, modelica_metatype _D_24in_text)
746{
747 modelica_metatype _text = NULL((void*)0);
748 modelica_complex _file;
749 MMC_SO()mmc_check_stackoverflow(threadData);
750 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
751 _text = _D_24in_text;
752 _file = omc_File_File_constructor(threadData, omc_Tpl_getTextOpaqueFile(threadData, _text));
753#line 2431 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
754 omc_File_releaseReference(threadData, _file);
755#line 755 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
756
757#line 2432 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
758 _text = _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3));
759#line 759 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
760 _return: OMC_LABEL_UNUSED__attribute__((unused))
761 omc_File_File_destructor(threadData,_file);
762 return _text;
763}
764
765DLLExport
766modelica_metatype omc_Tpl_redirectToFile(threadData_t *threadData, modelica_metatype _D_24in_text, modelica_string _fileName)
767{
768 modelica_metatype _text = NULL((void*)0);
769 modelica_complex _file;
770 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
771 MMC_SO()mmc_check_stackoverflow(threadData);
772 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
773 _text = _D_24in_text;
774 _file = omc_File_File_constructor(threadData, omc_File_noReference(threadData));
775#line 2418 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
776 if(omc_Testsuite_isRunning(threadData))
777#line 2418 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
778 {
779#line 2419 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
780 tmpMeta[0] = stringAppend(_fileName,_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)));
781#line 2419 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
782 omc_System_appendFile(threadData, omc_Testsuite_getTempFilesFile(threadData), tmpMeta[0]);
783#line 783 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
784 }
785
786#line 2421 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
787 omc_File_open(threadData, _file, _fileName, 2);
788#line 788 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
789
790#line 2422 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
791 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
792#line 2422 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
793 tmpMeta[1] = mmc_mk_box6(4, &Tpl_Text_FILE__TEXT__desc, omc_File_getReference(threadData, _file), arrayCreate(((modelica_integer) 1), mmc_mk_integermmc_mk_icon(((modelica_integer) 0))), arrayCreate(((modelica_integer) 1), mmc_mk_integermmc_mk_icon(((modelica_integer) 0))), arrayCreate(((modelica_integer) 1), mmc_mk_boolean(1)((1) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0)))), arrayCreate(((modelica_integer) 1), tmpMeta[0]));
794#line 2422 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
795 _text = omc_Tpl_writeText(threadData, tmpMeta[1], _text);
796#line 796 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
797 _return: OMC_LABEL_UNUSED__attribute__((unused))
798 omc_File_File_destructor(threadData,_file);
799 return _text;
800}
801
802DLLExport
803void omc_Tpl_addTemplateError(threadData_t *threadData, modelica_string _msg)
804{
805 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
806 MMC_SO()mmc_check_stackoverflow(threadData);
807 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
808#line 2408 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
809 tmpMeta[0] = mmc_mk_cons(_msg, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
810#line 2408 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
811 omc_Error_addMessage(threadData, _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)), tmpMeta[0]);
812#line 812 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
813 _return: OMC_LABEL_UNUSED__attribute__((unused))
814 return;
815}
816
817PROTECTED_FUNCTION_STATIC void omc_Tpl_addTemplateErrorFunc(threadData_t *threadData, modelica_metatype _func)
818{
819 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
820 MMC_SO()mmc_check_stackoverflow(threadData);
821 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
822#line 2401 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
823 tmpMeta[0] = mmc_mk_cons(omc_System_dladdr(threadData, _func, NULL((void*)0), NULL((void*)0)), MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
824#line 2401 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
825 omc_Error_addMessage(threadData, _OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)), tmpMeta[0]);
826#line 826 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
827 _return: OMC_LABEL_UNUSED__attribute__((unused))
828 return;
829}
830
831DLLExport
832void omc_Tpl_addSourceTemplateError(threadData_t *threadData, modelica_string _inErrMsg, modelica_metatype _inInfo)
833{
834 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
835 MMC_SO()mmc_check_stackoverflow(threadData);
836 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
837#line 2393 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
838 tmpMeta[0] = mmc_mk_cons(_inErrMsg, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
839#line 2393 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
840 omc_Error_addSourceMessage(threadData, _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)), tmpMeta[0], _inInfo);
841#line 841 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
842 _return: OMC_LABEL_UNUSED__attribute__((unused))
843 return;
844}
845
846DLLExport
847modelica_metatype omc_Tpl_sourceInfo(threadData_t *threadData, modelica_string _inFileName, modelica_integer _inLineNum, modelica_integer _inColumnNum)
848{
849 modelica_metatype _outSourceInfo = NULL((void*)0);
850 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
851 MMC_SO()mmc_check_stackoverflow(threadData);
852 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
853 // _outSourceInfo has no default value.
854#line 2382 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
855 tmpMeta[0] = mmc_mk_box8(3, &SourceInfo_SOURCEINFO__desc, _inFileName, mmc_mk_boolean(0)((0) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), mmc_mk_integermmc_mk_icon(_inLineNum), mmc_mk_integermmc_mk_icon(_inColumnNum), mmc_mk_integermmc_mk_icon(_inLineNum), mmc_mk_integermmc_mk_icon(_inColumnNum), _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)));
856#line 2382 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
857 _outSourceInfo = tmpMeta[0];
858#line 858 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
859 _return: OMC_LABEL_UNUSED__attribute__((unused))
860 return _outSourceInfo;
861}
862modelica_metatype boxptr_Tpl_sourceInfo(threadData_t *threadData, modelica_metatype _inFileName, modelica_metatype _inLineNum, modelica_metatype _inColumnNum)
863{
864 modelica_integer tmp1;
865 modelica_integer tmp2;
866 modelica_metatype _outSourceInfo = NULL((void*)0);
867 tmp1 = mmc_unbox_integer(_inLineNum)(((mmc_sint_t) (_inLineNum)) >> 1);
868 tmp2 = mmc_unbox_integer(_inColumnNum)(((mmc_sint_t) (_inColumnNum)) >> 1);
869 _outSourceInfo = omc_Tpl_sourceInfo(threadData, _inFileName, tmp1, tmp2);
870 /* skip box _outSourceInfo; SourceInfo */
871 return _outSourceInfo;
872}
873
874DLLExport
875void omc_Tpl_textFileConvertLines(threadData_t *threadData, modelica_metatype _inText, modelica_string _inFileName)
876{
877 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
878 MMC_SO()mmc_check_stackoverflow(threadData);
879 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
880#line 880 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
881 { /* matchcontinue expression */
882 volatile modelica_metatype tmp3_1;volatile modelica_string tmp3_2;
883 tmp3_1 = _inText;
884 tmp3_2 = _inFileName;
885 {
886 modelica_metatype _txt = NULL((void*)0);
887 modelica_string _file = NULL((void*)0);
888 modelica_real _rtTickTxt;
889 modelica_real _rtTickW;
890 volatile mmc_switch_type tmp3;
891 int tmp4;
892 // _txt has no default value.
893 // _file has no default value.
894 // _rtTickTxt has no default value.
895 // _rtTickW has no default value.
896 tmp3 = 0;
897 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) {
898 tmp2_top:
899 threadData->mmc_jumper = &new_mmc_jumper;
900 for (; tmp3 < 2; tmp3++) {
901 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
902 case 0: {
903
904 _txt = tmp3_1;
905 _file = tmp3_2;
906 /* Pattern matching succeeded */
907#line 2341 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
908 _rtTickTxt = omc_System_realtimeTock(threadData, ((modelica_integer) 10));
909#line 909 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
910
911#line 2342 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
912 omc_Print_clearBuf(threadData);
913#line 913 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
914
915#line 2343 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
916 omc_Tpl_textStringBuf(threadData, _txt);
917#line 917 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
918
919#line 2344 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
920 _rtTickW = omc_System_realtimeTock(threadData, ((modelica_integer) 10));
921#line 921 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
922
923#line 2345 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
924 omc_System_writeFile(threadData, _file, _OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)));
925#line 925 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
926
927#line 2346 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
928 if((omc_Config_acceptMetaModelicaGrammar(threadData) || omc_Flags_isSet(threadData, _OMC_LIT24((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3)))))
929#line 2346 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
930 {
931#line 2347 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
932 omc_Print_writeBufConvertLines(threadData, omc_System_realpath(threadData, _file));
933#line 933 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
934 }
935 else
936 {
937#line 2349 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
938 omc_Print_writeBuf(threadData, _file);
939#line 939 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
940 }
941
942#line 2351 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
943 if(omc_Testsuite_isRunning(threadData))
944#line 2351 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
945 {
946#line 2352 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
947 tmpMeta[0] = stringAppend(_file,_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)));
948#line 2352 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
949 omc_System_appendFile(threadData, omc_Testsuite_getTempFilesFile(threadData), tmpMeta[0]);
950#line 950 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
951 }
952
953#line 2354 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
954 omc_Print_clearBuf(threadData);
955#line 955 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
956
957#line 2355 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
958 if(omc_Flags_isSet(threadData, _OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3))))
959#line 2355 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
960 {
961#line 2356 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
962 tmpMeta[0] = stringAppend(_OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3)),_file);
963#line 2356 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
964 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3)));
965#line 2356 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
966 tmpMeta[2] = stringAppend(tmpMeta[1],realString(_rtTickW - _rtTickTxt));
967#line 2356 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
968 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)));
969#line 2356 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
970 tmpMeta[4] = stringAppend(tmpMeta[3],realString(omc_System_realtimeTock(threadData, ((modelica_integer) 10)) - _rtTickW));
971#line 2356 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
972 omc_Debug_traceln(threadData, tmpMeta[4]);
973#line 973 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
974 }
975#line 975 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
976 goto tmp2_done;
977 }
978 case 1: {
979 modelica_boolean tmp5;
980
981 /* Pattern matching succeeded */
982#line 2367 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
983 /* Pattern-matching assignment */
984#line 2367 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
985 tmp5 = omc_Flags_isSet(threadData, _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)));
986#line 2367 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
987 if (1 != tmp5) goto goto_1;
988#line 988 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
989
990#line 2367 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
991 omc_Debug_trace(threadData, _OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3)));
992#line 992 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
993#line 993 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
994 goto tmp2_done;
995 }
996 }
997 goto tmp2_end;
998 tmp2_end: ;
999 }
1000 goto goto_1;
1001 tmp2_done:
1002 (void)tmp3;
1003 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1004 goto tmp2_done2;
1005 goto_1:;
1006 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1007 if (++tmp3 < 2) {
1008 goto tmp2_top;
1009 }
1010 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1011 tmp2_done2:;
1012 }
1013 }
1014 ;
1015 _return: OMC_LABEL_UNUSED__attribute__((unused))
1016 return;
1017}
1018
1019DLLExport
1020void omc_Tpl_textFile(threadData_t *threadData, modelica_metatype _inText, modelica_string _inFileName)
1021{
1022 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
1023 MMC_SO()mmc_check_stackoverflow(threadData);
1024 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1025#line 1025 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1026 { /* matchcontinue expression */
1027 volatile modelica_metatype tmp3_1;volatile modelica_string tmp3_2;
1028 tmp3_1 = _inText;
1029 tmp3_2 = _inFileName;
1030 {
1031 modelica_metatype _txt = NULL((void*)0);
1032 modelica_string _file = NULL((void*)0);
1033 modelica_real _rtTickTxt;
1034 modelica_real _rtTickW;
1035 volatile mmc_switch_type tmp3;
1036 int tmp4;
1037 // _txt has no default value.
1038 // _file has no default value.
1039 // _rtTickTxt has no default value.
1040 // _rtTickW has no default value.
1041 tmp3 = 0;
1042 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) {
1043 tmp2_top:
1044 threadData->mmc_jumper = &new_mmc_jumper;
1045 for (; tmp3 < 2; tmp3++) {
1046 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1047 case 0: {
1048
1049 _txt = tmp3_1;
1050 _file = tmp3_2;
1051 /* Pattern matching succeeded */
1052#line 2299 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1053 _rtTickTxt = omc_System_realtimeTock(threadData, ((modelica_integer) 10));
1054#line 1054 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1055
1056#line 2300 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1057 omc_Print_clearBuf(threadData);
1058#line 1058 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1059
1060#line 2301 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1061 omc_Tpl_textStringBuf(threadData, _txt);
1062#line 1062 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1063
1064#line 2302 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1065 _rtTickW = omc_System_realtimeTock(threadData, ((modelica_integer) 10));
1066#line 1066 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1067
1068#line 2303 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1069 omc_Print_writeBuf(threadData, _file);
1070#line 1070 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1071
1072#line 2304 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1073 if(omc_Testsuite_isRunning(threadData))
1074#line 2304 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1075 {
1076#line 2305 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1077 tmpMeta[0] = stringAppend(_file,_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)));
1078#line 2305 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1079 omc_System_appendFile(threadData, omc_Testsuite_getTempFilesFile(threadData), tmpMeta[0]);
1080#line 1080 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1081 }
1082
1083#line 2307 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1084 omc_Print_clearBuf(threadData);
1085#line 1085 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1086
1087#line 2308 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1088 if(omc_Flags_isSet(threadData, _OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3))))
1089#line 2308 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1090 {
1091#line 2309 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1092 tmpMeta[0] = stringAppend(_OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3)),_file);
1093#line 2309 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1094 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3)));
1095#line 2309 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1096 tmpMeta[2] = stringAppend(tmpMeta[1],realString(_rtTickW - _rtTickTxt));
1097#line 2309 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1098 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)));
1099#line 2309 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1100 tmpMeta[4] = stringAppend(tmpMeta[3],realString(omc_System_realtimeTock(threadData, ((modelica_integer) 10)) - _rtTickW));
1101#line 2309 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1102 omc_Debug_trace(threadData, tmpMeta[4]);
1103#line 1103 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1104 }
1105#line 1105 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1106 goto tmp2_done;
1107 }
1108 case 1: {
1109
1110 /* Pattern matching succeeded */
1111#line 2320 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1112 if(omc_Flags_isSet(threadData, _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3))))
1113#line 2320 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1114 {
1115#line 2321 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1116 omc_Debug_trace(threadData, _OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3)));
1117#line 1117 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1118 }
1119#line 1119 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1120 goto tmp2_done;
1121 }
1122 }
1123 goto tmp2_end;
1124 tmp2_end: ;
1125 }
1126 goto goto_1;
1127 tmp2_done:
1128 (void)tmp3;
1129 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1130 goto tmp2_done2;
1131 goto_1:;
1132 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1133 if (++tmp3 < 2) {
1134 goto tmp2_top;
1135 }
1136 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1137 tmp2_done2:;
1138 }
1139 }
1140 ;
1141 _return: OMC_LABEL_UNUSED__attribute__((unused))
1142 return;
1143}
1144
1145DLLExport
1146void omc_Tpl_tplNoret(threadData_t *threadData, modelica_fnptr _inFun, modelica_metatype _inArg)
1147{
1148 modelica_integer _nErr;
1149 MMC_SO()mmc_check_stackoverflow(threadData);
1150 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1151 // _nErr has no default value.
1152#line 2280 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1153 _nErr = omc_Error_getNumErrorMessages(threadData);
1154#line 1154 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1155
1156#line 2281 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1157 omc_Tpl_tplCallWithFailError(threadData, ((modelica_fnptr) _inFun), _inArg, _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)));
1158#line 1158 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1159
1160#line 2282 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1161 omc_Tpl_failIfTrue(threadData, (omc_Error_getNumErrorMessages(threadData) > _nErr));
1162#line 1162 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1163 _return: OMC_LABEL_UNUSED__attribute__((unused))
1164 return;
1165}
1166
1167DLLExport
1168void omc_Tpl_tplNoret2(threadData_t *threadData, modelica_fnptr _inFun, modelica_metatype _inArg, modelica_metatype _inArg2)
1169{
1170 modelica_integer _nErr;
1171 MMC_SO()mmc_check_stackoverflow(threadData);
1172 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1173 // _nErr has no default value.
1174#line 2263 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1175 _nErr = omc_Error_getNumErrorMessages(threadData);
1176#line 1176 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1177
1178#line 2264 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1179 omc_Tpl_tplCallWithFailError2(threadData, ((modelica_fnptr) _inFun), _inArg, _inArg2, _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)));
1180#line 1180 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1181
1182#line 2265 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1183 omc_Tpl_failIfTrue(threadData, (omc_Error_getNumErrorMessages(threadData) > _nErr));
1184#line 1184 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1185 _return: OMC_LABEL_UNUSED__attribute__((unused))
1186 return;
1187}
1188
1189DLLExport
1190void omc_Tpl_tplNoret3(threadData_t *threadData, modelica_fnptr _inFun, modelica_metatype _inArg, modelica_metatype _inArg2, modelica_metatype _inArg3)
1191{
1192 modelica_integer _nErr;
1193 MMC_SO()mmc_check_stackoverflow(threadData);
1194 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1195 // _nErr has no default value.
1196#line 2244 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1197 _nErr = omc_Error_getNumErrorMessages(threadData);
1198#line 1198 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1199
1200#line 2245 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1201 omc_Tpl_tplCallWithFailError3(threadData, ((modelica_fnptr) _inFun), _inArg, _inArg2, _inArg3, _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)));
1202#line 1202 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1203
1204#line 2246 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1205 omc_Tpl_failIfTrue(threadData, (omc_Error_getNumErrorMessages(threadData) > _nErr));
1206#line 1206 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1207 _return: OMC_LABEL_UNUSED__attribute__((unused))
1208 return;
1209}
1210
1211DLLExport
1212void omc_Tpl_tplPrint3(threadData_t *threadData, modelica_fnptr _inFun, modelica_metatype _inArgA, modelica_metatype _inArgB, modelica_metatype _inArgC)
1213{
1214 modelica_metatype _txt = NULL((void*)0);
1215 modelica_integer _nErr;
1216 MMC_SO()mmc_check_stackoverflow(threadData);
1217 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1218 // _txt has no default value.
1219 // _nErr has no default value.
1220#line 2222 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1221 _nErr = omc_Error_getNumErrorMessages(threadData);
1222#line 1222 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1223
1224#line 2223 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1225 _txt = omc_Tpl_tplCallWithFailError3(threadData, ((modelica_fnptr) _inFun), _inArgA, _inArgB, _inArgC, _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)));
1226#line 1226 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1227
1228#line 2224 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1229 omc_Tpl_failIfTrue(threadData, (omc_Error_getNumErrorMessages(threadData) > _nErr));
1230#line 1230 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1231
1232#line 2225 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1233 omc_Tpl_textStringBuf(threadData, _txt);
1234#line 1234 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1235 _return: OMC_LABEL_UNUSED__attribute__((unused))
1236 return;
1237}
1238
1239DLLExport
1240void omc_Tpl_tplPrint2(threadData_t *threadData, modelica_fnptr _inFun, modelica_metatype _inArgA, modelica_metatype _inArgB)
1241{
1242 modelica_metatype _txt = NULL((void*)0);
1243 modelica_integer _nErr;
1244 MMC_SO()mmc_check_stackoverflow(threadData);
1245 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1246 // _txt has no default value.
1247 // _nErr has no default value.
1248#line 2199 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1249 _nErr = omc_Error_getNumErrorMessages(threadData);
1250#line 1250 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1251
1252#line 2200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1253 _txt = omc_Tpl_tplCallWithFailError2(threadData, ((modelica_fnptr) _inFun), _inArgA, _inArgB, _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)));
1254#line 1254 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1255
1256#line 2201 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1257 omc_Tpl_failIfTrue(threadData, (omc_Error_getNumErrorMessages(threadData) > _nErr));
1258#line 1258 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1259
1260#line 2202 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1261 omc_Tpl_textStringBuf(threadData, _txt);
1262#line 1262 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1263 _return: OMC_LABEL_UNUSED__attribute__((unused))
1264 return;
1265}
1266
1267DLLExport
1268void omc_Tpl_tplPrint(threadData_t *threadData, modelica_fnptr _inFun, modelica_metatype _inArg)
1269{
1270 modelica_metatype _txt = NULL((void*)0);
1271 modelica_integer _nErr;
1272 MMC_SO()mmc_check_stackoverflow(threadData);
1273 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1274 // _txt has no default value.
1275 // _nErr has no default value.
1276#line 2178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1277 _nErr = omc_Error_getNumErrorMessages(threadData);
1278#line 1278 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1279
1280#line 2179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1281 _txt = omc_Tpl_tplCallWithFailError(threadData, ((modelica_fnptr) _inFun), _inArg, _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)));
1282#line 1282 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1283
1284#line 2180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1285 omc_Tpl_failIfTrue(threadData, (omc_Error_getNumErrorMessages(threadData) > _nErr));
1286#line 1286 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1287
1288#line 2181 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1289 omc_Tpl_textStringBuf(threadData, _txt);
1290#line 1290 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1291 _return: OMC_LABEL_UNUSED__attribute__((unused))
1292 return;
1293}
1294
1295DLLExport
1296modelica_string omc_Tpl_tplString3(threadData_t *threadData, modelica_fnptr _inFun, modelica_metatype _inArgA, modelica_metatype _inArgB, modelica_metatype _inArgC)
1297{
1298 modelica_string _outString = NULL((void*)0);
1299 modelica_metatype _txt = NULL((void*)0);
1300 modelica_integer _nErr;
1301 MMC_SO()mmc_check_stackoverflow(threadData);
1302 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1303 // _outString has no default value.
1304 // _txt has no default value.
1305 // _nErr has no default value.
1306#line 2159 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1307 _nErr = omc_Error_getNumErrorMessages(threadData);
1308#line 1308 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1309
1310#line 2160 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1311 _txt = omc_Tpl_tplCallWithFailError3(threadData, ((modelica_fnptr) _inFun), _inArgA, _inArgB, _inArgC, _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)));
1312#line 1312 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1313
1314#line 2161 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1315 omc_Tpl_failIfTrue(threadData, (omc_Error_getNumErrorMessages(threadData) > _nErr));
1316#line 1316 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1317
1318#line 2162 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1319 _outString = omc_Tpl_textString(threadData, _txt);
1320#line 1320 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1321 _return: OMC_LABEL_UNUSED__attribute__((unused))
1322 return _outString;
1323}
1324
1325DLLExport
1326modelica_string omc_Tpl_tplString2(threadData_t *threadData, modelica_fnptr _inFun, modelica_metatype _inArgA, modelica_metatype _inArgB)
1327{
1328 modelica_string _outString = NULL((void*)0);
1329 modelica_metatype _txt = NULL((void*)0);
1330 modelica_integer _nErr;
1331 MMC_SO()mmc_check_stackoverflow(threadData);
1332 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1333 // _outString has no default value.
1334 // _txt has no default value.
1335 // _nErr has no default value.
1336#line 2135 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1337 _nErr = omc_Error_getNumErrorMessages(threadData);
1338#line 1338 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1339
1340#line 2136 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1341 _txt = omc_Tpl_tplCallWithFailError2(threadData, ((modelica_fnptr) _inFun), _inArgA, _inArgB, _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)));
1342#line 1342 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1343
1344#line 2137 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1345 omc_Tpl_failIfTrue(threadData, (omc_Error_getNumErrorMessages(threadData) > _nErr));
1346#line 1346 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1347
1348#line 2138 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1349 _outString = omc_Tpl_textString(threadData, _txt);
1350#line 1350 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1351 _return: OMC_LABEL_UNUSED__attribute__((unused))
1352 return _outString;
1353}
1354
1355DLLExport
1356modelica_string omc_Tpl_tplString(threadData_t *threadData, modelica_fnptr _inFun, modelica_metatype _inArg)
1357{
1358 modelica_string _outString = NULL((void*)0);
1359 modelica_metatype _txt = NULL((void*)0);
1360 modelica_integer _nErr;
1361 MMC_SO()mmc_check_stackoverflow(threadData);
1362 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1363 // _outString has no default value.
1364 // _txt has no default value.
1365 // _nErr has no default value.
1366#line 2113 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1367 _nErr = omc_Error_getNumErrorMessages(threadData);
1368#line 1368 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1369
1370#line 2114 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1371 _txt = omc_Tpl_tplCallWithFailError(threadData, ((modelica_fnptr) _inFun), _inArg, _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)));
1372#line 1372 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1373
1374#line 2115 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1375 omc_Tpl_failIfTrue(threadData, (omc_Error_getNumErrorMessages(threadData) > _nErr));
1376#line 1376 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1377
1378#line 2116 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1379 _outString = omc_Tpl_textString(threadData, _txt);
1380#line 1380 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1381 _return: OMC_LABEL_UNUSED__attribute__((unused))
1382 return _outString;
1383}
1384
1385static modelica_metatype closure0_inFun(threadData_t *thData, modelica_metatype closure, modelica_metatype in_txt)
1386{
1387 modelica_metatype inArgA = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),1))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (1)))))
;
1388 modelica_metatype inArgB = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),2))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (2)))))
;
1389 modelica_metatype inArgC = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),3))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (3)))))
;
1390 modelica_fnptr _inFun = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),4))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (4)))))
;
1391 if (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFun),2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFun) - 3))) +
(2)))))
) {
1392 return ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFun), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFun) - 3))) +
(1)))))
)) (thData, MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFun),2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFun) - 3))) +
(2)))))
, in_txt, inArgA, inArgB, inArgC);
1393 } else { /* No closure in the called variable */
1394 return ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFun), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFun) - 3))) +
(1)))))
)) (thData, in_txt, inArgA, inArgB, inArgC);
1395 }
1396}
1397DLLExport
1398modelica_metatype omc_Tpl_tplCallWithFailError3(threadData_t *threadData, modelica_fnptr _inFun, modelica_metatype _inArgA, modelica_metatype _inArgB, modelica_metatype _inArgC, modelica_metatype _D_24in_txt)
1399{
1400 modelica_metatype _txt = NULL((void*)0);
1401 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
1402 MMC_SO()mmc_check_stackoverflow(threadData);
1403 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1404 _txt = _D_24in_txt;
1405#line 2096 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1406 tmpMeta[0] = mmc_mk_box4(0, _inArgA, _inArgB, _inArgC, _inFun);
1407#line 2096 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1408 _txt = omc_Tpl_tplCallHandleErrors(threadData, (modelica_fnptr) mmc_mk_box2(0,closure0_inFun,tmpMeta[0]), _txt);
1409#line 1409 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1410 _return: OMC_LABEL_UNUSED__attribute__((unused))
1411 return _txt;
1412}
1413
1414static modelica_metatype closure1_inFun(threadData_t *thData, modelica_metatype closure, modelica_metatype in_txt)
1415{
1416 modelica_metatype inArgA = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),1))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (1)))))
;
1417 modelica_metatype inArgB = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),2))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (2)))))
;
1418 modelica_fnptr _inFun = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),3))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (3)))))
;
1419 if (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFun),2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFun) - 3))) +
(2)))))
) {
1420 return ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFun), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFun) - 3))) +
(1)))))
)) (thData, MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFun),2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFun) - 3))) +
(2)))))
, in_txt, inArgA, inArgB);
1421 } else { /* No closure in the called variable */
1422 return ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFun), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFun) - 3))) +
(1)))))
)) (thData, in_txt, inArgA, inArgB);
1423 }
1424}
1425DLLExport
1426modelica_metatype omc_Tpl_tplCallWithFailError2(threadData_t *threadData, modelica_fnptr _inFun, modelica_metatype _inArgA, modelica_metatype _inArgB, modelica_metatype _D_24in_txt)
1427{
1428 modelica_metatype _txt = NULL((void*)0);
1429 modelica_metatype _argA = NULL((void*)0);
1430 modelica_metatype _argB = NULL((void*)0);
1431 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
1432 MMC_SO()mmc_check_stackoverflow(threadData);
1433 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1434 _txt = _D_24in_txt;
1435 // _argA has no default value.
1436 // _argB has no default value.
1437#line 2078 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1438 tmpMeta[0] = mmc_mk_box3(0, _inArgA, _inArgB, _inFun);
1439#line 2078 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1440 _txt = omc_Tpl_tplCallHandleErrors(threadData, (modelica_fnptr) mmc_mk_box2(0,closure1_inFun,tmpMeta[0]), _txt);
1441#line 1441 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1442 _return: OMC_LABEL_UNUSED__attribute__((unused))
1443 return _txt;
1444}
1445
1446static modelica_metatype closure2_inFun(threadData_t *thData, modelica_metatype closure, modelica_metatype in_txt)
1447{
1448 modelica_metatype inArgA = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),1))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (1)))))
;
1449 modelica_fnptr _inFun = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),2))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (2)))))
;
1450 if (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFun),2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFun) - 3))) +
(2)))))
) {
1451 return ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFun), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFun) - 3))) +
(1)))))
)) (thData, MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFun),2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFun) - 3))) +
(2)))))
, in_txt, inArgA);
1452 } else { /* No closure in the called variable */
1453 return ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFun), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFun) - 3))) +
(1)))))
)) (thData, in_txt, inArgA);
1454 }
1455}
1456DLLExport
1457modelica_metatype omc_Tpl_tplCallWithFailError(threadData_t *threadData, modelica_fnptr _inFun, modelica_metatype _inArg, modelica_metatype _D_24in_txt)
1458{
1459 modelica_metatype _txt = NULL((void*)0);
1460 modelica_metatype _arg = NULL((void*)0);
1461 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
1462 MMC_SO()mmc_check_stackoverflow(threadData);
1463 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1464 _txt = _D_24in_txt;
1465 // _arg has no default value.
1466#line 2059 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1467 tmpMeta[0] = mmc_mk_box2(0, _inArg, _inFun);
1468#line 2059 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1469 _txt = omc_Tpl_tplCallHandleErrors(threadData, (modelica_fnptr) mmc_mk_box2(0,closure2_inFun,tmpMeta[0]), _txt);
1470#line 1470 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1471 _return: OMC_LABEL_UNUSED__attribute__((unused))
1472 return _txt;
1473}
1474
1475DLLExport
1476modelica_metatype omc_Tpl_tplCallWithFailErrorNoArg(threadData_t *threadData, modelica_fnptr _inFun, modelica_metatype _D_24in_txt)
1477{
1478 modelica_metatype _txt = NULL((void*)0);
1479 MMC_SO()mmc_check_stackoverflow(threadData);
1480 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1481 _txt = _D_24in_txt;
1482#line 2043 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1483 _txt = omc_Tpl_tplCallHandleErrors(threadData, ((modelica_fnptr) _inFun), _txt);
1484#line 1484 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1485 _return: OMC_LABEL_UNUSED__attribute__((unused))
1486 return _txt;
1487}
1488
1489PROTECTED_FUNCTION_STATIC modelica_metatype omc_Tpl_tplCallHandleErrors(threadData_t *threadData, modelica_fnptr _inFun, modelica_metatype _D_24in_txt)
1490{
1491 modelica_metatype _txt = NULL((void*)0);
1492 modelica_integer _nErr;
1493 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
1494 MMC_SO()mmc_check_stackoverflow(threadData);
1495 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1496 _txt = _D_24in_txt;
1497 // _nErr has no default value.
1498#line 2017 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1499 _nErr = omc_Error_getNumErrorMessages(threadData);
Value stored to '_nErr' is never read
1500#line 1500 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1501
1502#line 1502 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1503 { /* stack overflow check */
1504 {
1505 MMC_TRY_STACK(){ jmp_buf *oldMMCJumper = threadData->mmc_jumper; { { jmp_buf
new_mmc_jumper, *old_jumper __attribute__((unused)) = threadData
->mmc_stack_overflow_jumper; threadData->mmc_stack_overflow_jumper
= &new_mmc_jumper; if (_setjmp (new_mmc_jumper) == 0) { threadData
->mmc_stack_overflow_jumper = &new_mmc_jumper;
1506#line 1506 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1507 { /* matchcontinue expression */
1508 {
1509 volatile mmc_switch_type tmp6;
1510 int tmp7;
1511 tmp6 = 0;
1512 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) {
1513 tmp5_top:
1514 threadData->mmc_jumper = &new_mmc_jumper;
1515 for (; tmp6 < 2; tmp6++) {
1516 switch (MMC_SWITCH_CAST(tmp6)(tmp6)) {
1517 case 0: {
1518 /* Pattern matching succeeded */
1519#line 2020 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1520 _txt = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFun), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFun) - 3))) +
(2)))))
) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFun), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFun) - 3))) +
(1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFun), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFun) - 3))) +
(2)))))
), _txt) : ((modelica_metatype(*)(threadData_t*, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFun), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFun) - 3))) +
(1)))))
)) (threadData, _txt);
1521#line 1521 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1522#line 1522 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1523 goto tmp5_done;
1524 }
1525 case 1: {
1526 /* Pattern matching succeeded */
1527#line 2022 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1528 omc_Tpl_addTemplateErrorFunc(threadData, ((modelica_fnptr) _inFun));
1529#line 1529 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1530
1531#line 2023 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1532 goto goto_4;
1533#line 1533 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1534#line 1534 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1535 goto tmp5_done;
1536 }
1537 }
1538 goto tmp5_end;
1539 tmp5_end: ;
1540 }
1541 goto goto_4;
1542 tmp5_done:
1543 (void)tmp6;
1544 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1545 goto tmp5_done2;
1546 goto_4:;
1547 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1548 if (++tmp6 < 2) {
1549 goto tmp5_top;
1550 }
1551 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1552 tmp5_done2:;
1553 }
1554 }
1555 ;
1556 MMC_ELSE_STACK()} else { threadData->mmc_jumper = oldMMCJumper; threadData
->mmc_stack_overflow_jumper = old_jumper;
1557#line 2026 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1558 if(omc_StackOverflow_hasStacktraceMessages(threadData))
1559#line 2026 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1560 {
1561#line 2027 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1562 tmpMeta[0] = stringAppend(_OMC_LIT37((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3)),stringDelimitList(omc_StackOverflow_readableStacktraceMessages(threadData), _OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3))));
1563#line 2027 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1564 omc_Error_addInternalError(threadData, tmpMeta[0], _OMC_LIT38((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3)));
1565#line 1565 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1566 }
1567
1568#line 2029 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1569 omc_Tpl_addTemplateErrorFunc(threadData, ((modelica_fnptr) _inFun));
1570#line 1570 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1571
1572#line 2030 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1573 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1574#line 1574 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1575 MMC_CATCH_STACK()} threadData->mmc_stack_overflow_jumper = old_jumper;mmc_catch_dummy_fn
();} } threadData->mmc_jumper = oldMMCJumper; }
1576 }
1577 }
1578 ;
1579 _return: OMC_LABEL_UNUSED__attribute__((unused))
1580 return _txt;
1581}
1582
1583DLLExport
1584void omc_Tpl_failIfTrue(threadData_t *threadData, modelica_boolean _istrue)
1585{
1586 MMC_SO()mmc_check_stackoverflow(threadData);
1587 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1588#line 2001 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1589 if(_istrue)
1590#line 2001 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1591 {
1592#line 2002 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1593 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1594#line 1594 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1595 }
1596 _return: OMC_LABEL_UNUSED__attribute__((unused))
1597 return;
1598}
1599void boxptr_Tpl_failIfTrue(threadData_t *threadData, modelica_metatype _istrue)
1600{
1601 modelica_integer tmp1;
1602 tmp1 = mmc_unbox_integer(_istrue)(((mmc_sint_t) (_istrue)) >> 1);
1603 omc_Tpl_failIfTrue(threadData, tmp1);
1604 return;
1605}
1606
1607DLLExport
1608modelica_string omc_Tpl_strTokString(threadData_t *threadData, modelica_metatype _inStringToken)
1609{
1610 modelica_string _outString = NULL((void*)0);
1611 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
1612 MMC_SO()mmc_check_stackoverflow(threadData);
1613 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1614 // _outString has no default value.
1615#line 1995 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1616 tmpMeta[0] = mmc_mk_cons(_inStringToken, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
1617#line 1995 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1618 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1619#line 1995 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1620 tmpMeta[2] = mmc_mk_box3(3, &Tpl_Text_MEM__TEXT__desc, tmpMeta[0], tmpMeta[1]);
1621#line 1995 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1622 _outString = omc_Tpl_textString(threadData, tmpMeta[2]);
1623#line 1623 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1624 _return: OMC_LABEL_UNUSED__attribute__((unused))
1625 return _outString;
1626}
1627
1628DLLExport
1629modelica_metatype omc_Tpl_stringText(threadData_t *threadData, modelica_string _inString)
1630{
1631 modelica_metatype _outText = NULL((void*)0);
1632 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
1633 MMC_SO()mmc_check_stackoverflow(threadData);
1634 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1635 // _outText has no default value.
1636#line 1987 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1637 tmpMeta[1] = mmc_mk_box2(4, &Tpl_StringToken_ST__STRING__desc, _inString);
1638#line 1987 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1639 tmpMeta[0] = mmc_mk_cons(tmpMeta[1], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
1640#line 1987 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1641 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1642#line 1987 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1643 tmpMeta[3] = mmc_mk_box3(3, &Tpl_Text_MEM__TEXT__desc, tmpMeta[0], tmpMeta[2]);
1644#line 1987 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1645 _outText = tmpMeta[3];
1646#line 1646 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1647 _return: OMC_LABEL_UNUSED__attribute__((unused))
1648 return _outText;
1649}
1650
1651DLLExport
1652modelica_metatype omc_Tpl_textStrTok(threadData_t *threadData, modelica_metatype _inText)
1653{
1654 modelica_metatype _outStringToken = NULL((void*)0);
1655 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
1656 MMC_SO()mmc_check_stackoverflow(threadData);
1657 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1658 // _outStringToken has no default value.
1659#line 1659 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1660 { /* match expression */
1661 modelica_metatype tmp3_1;
1662 tmp3_1 = _inText;
1663 {
1664 modelica_metatype _txttoks = NULL((void*)0);
1665 volatile mmc_switch_type tmp3;
1666 int tmp4;
1667 // _txttoks has no default value.
1668 tmp3 = 0;
1669 for (; tmp3 < 3; tmp3++) {
1670 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1671 case 0: {
1672 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
1673 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1674 if (!listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1675
1676 /* Pattern matching succeeded */
1677#line 1962 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1678 tmpMeta[0] = _OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3));
1679#line 1679 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1680 goto tmp2_done;
1681 }
1682 case 1: {
1683 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
1684 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1685 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
1686 if (!listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1687 _txttoks = tmpMeta[1];
1688 /* Pattern matching succeeded */
1689#line 1969 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1690 tmpMeta[1] = mmc_mk_box3(7, &Tpl_StringToken_ST__BLOCK__desc, _txttoks, _OMC_LIT40((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3)));
1691#line 1969 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1692 tmpMeta[0] = tmpMeta[1];
1693#line 1693 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1694 goto tmp2_done;
1695 }
1696 case 2: {
1697 modelica_boolean tmp5;
1698
1699 /* Pattern matching succeeded */
1700#line 1976 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1701 /* Pattern-matching assignment */
1702#line 1976 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1703 tmp5 = omc_Flags_isSet(threadData, _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)));
1704#line 1976 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1705 if (1 != tmp5) goto goto_1;
1706#line 1706 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1707
1708#line 1976 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1709 omc_Debug_trace(threadData, _OMC_LIT41((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3)));
1710#line 1710 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1711#line 1977 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1712 goto goto_1;
1713#line 1713 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1714 goto tmp2_done;
1715 }
1716 }
1717 goto tmp2_end;
1718 tmp2_end: ;
1719 }
1720 goto goto_1;
1721 goto_1:;
1722 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1723 goto tmp2_done;
1724 tmp2_done:;
1725 }
1726 }
1727 _outStringToken = tmpMeta[0];
1728 _return: OMC_LABEL_UNUSED__attribute__((unused))
1729 return _outStringToken;
1730}
1731
1732DLLExport
1733modelica_metatype omc_Tpl_strTokText(threadData_t *threadData, modelica_metatype _inStringToken)
1734{
1735 modelica_metatype _outText = NULL((void*)0);
1736 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
1737 MMC_SO()mmc_check_stackoverflow(threadData);
1738 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1739 // _outText has no default value.
1740#line 1949 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1741 tmpMeta[0] = mmc_mk_cons(_inStringToken, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
1742#line 1949 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1743 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1744#line 1949 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1745 tmpMeta[2] = mmc_mk_box3(3, &Tpl_Text_MEM__TEXT__desc, tmpMeta[0], tmpMeta[1]);
1746#line 1949 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1747 _outText = tmpMeta[2];
1748#line 1748 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1749 _return: OMC_LABEL_UNUSED__attribute__((unused))
1750 return _outText;
1751}
1752
1753PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_tryWrapFile(threadData_t *threadData, modelica_complex _file, modelica_integer _inWrapWidth, modelica_metatype _inWrapSeparator, modelica_integer _inActualPositionOnLine, modelica_boolean _inAtStartOfLine, modelica_integer _inAfterNewLineIndent, modelica_boolean *out_outAtStartOfLine, modelica_integer *out_outAfterNewLineIndent)
1754{
1755 modelica_integer _outActualPositionOnLine;
1756 modelica_boolean _outAtStartOfLine;
1757 modelica_integer _outAfterNewLineIndent;
1758 modelica_integer tmp1_c0 __attribute__((unused)) = 0;
1759 modelica_boolean tmp1_c1 __attribute__((unused)) = 0;
1760 modelica_integer tmp1_c2 __attribute__((unused)) = 0;
1761 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
1762 MMC_SO()mmc_check_stackoverflow(threadData);
1763 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1764 // _outActualPositionOnLine has no default value.
1765 // _outAtStartOfLine has no default value.
1766 // _outAfterNewLineIndent has no default value.
1767#line 1926 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1768
1769#line 1926 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1770
1771#line 1926 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1772
1773#line 1773 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1774 { /* match expression */
1775 modelica_integer tmp4_1;modelica_metatype tmp4_2;modelica_integer tmp4_3;modelica_boolean tmp4_4;modelica_integer tmp4_5;
1776 tmp4_1 = _inWrapWidth;
1777 tmp4_2 = _inWrapSeparator;
1778 tmp4_3 = _inActualPositionOnLine;
1779 tmp4_4 = _inAtStartOfLine;
1780 tmp4_5 = _inAfterNewLineIndent;
1781 {
1782 modelica_integer _pos;
1783 modelica_integer _aind;
1784 modelica_integer _wwidth;
1785 modelica_boolean _isstart;
1786 modelica_metatype _wsep = NULL((void*)0);
1787 volatile mmc_switch_type tmp4;
1788 int tmp5;
1789 // _pos has no default value.
1790 // _aind has no default value.
1791 // _wwidth has no default value.
1792 // _isstart has no default value.
1793 // _wsep has no default value.
1794 tmp4 = 0;
1795 for (; tmp4 < 2; tmp4++) {
1796 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1797 case 0: {
1798
1799 _wwidth = tmp4_1;
1800 _wsep = tmp4_2;
1801 _pos = tmp4_3;
1802 _isstart = tmp4_4;
1803 _aind = tmp4_5;
1804 /* Pattern matching succeeded */
1805 /* Check guard condition after assignments */
1806 if (!((_wwidth > ((modelica_integer) 0)) && (_pos >= _wwidth))) goto tmp3_end;
1807#line 1937 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1808 tmp1_c0 = omc_Tpl_tokFile(threadData, _file, _wsep, _pos, _isstart, _aind, &tmp1_c1, &tmp1_c2);
1809#line 1809 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1810 goto tmp3_done;
1811 }
1812 case 1: {
1813
1814 /* Pattern matching succeeded */
1815#line 1940 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1816 tmp1_c0 = _inActualPositionOnLine;
1817#line 1940 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1818 tmp1_c1 = _inAtStartOfLine;
1819#line 1940 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1820 tmp1_c2 = _inAfterNewLineIndent;
1821#line 1821 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1822 goto tmp3_done;
1823 }
1824 }
1825 goto tmp3_end;
1826 tmp3_end: ;
1827 }
1828 goto goto_2;
1829 goto_2:;
1830 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1831 goto tmp3_done;
1832 tmp3_done:;
1833 }
1834 }
1835 _outActualPositionOnLine = tmp1_c0;
1836 _outAtStartOfLine = tmp1_c1;
1837 _outAfterNewLineIndent = tmp1_c2;
1838 _return: OMC_LABEL_UNUSED__attribute__((unused))
1839 if (out_outAtStartOfLine) { *out_outAtStartOfLine = _outAtStartOfLine; }
1840 if (out_outAfterNewLineIndent) { *out_outAfterNewLineIndent = _outAfterNewLineIndent; }
1841 return _outActualPositionOnLine;
1842}
1843PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_tryWrapFile(threadData_t *threadData, modelica_metatype _file, modelica_metatype _inWrapWidth, modelica_metatype _inWrapSeparator, modelica_metatype _inActualPositionOnLine, modelica_metatype _inAtStartOfLine, modelica_metatype _inAfterNewLineIndent, modelica_metatype *out_outAtStartOfLine, modelica_metatype *out_outAfterNewLineIndent)
1844{
1845 modelica_integer tmp1;
1846 modelica_integer tmp2;
1847 modelica_integer tmp3;
1848 modelica_integer tmp4;
1849 modelica_boolean _outAtStartOfLine;
1850 modelica_integer _outAfterNewLineIndent;
1851 modelica_integer _outActualPositionOnLine;
1852 modelica_metatype out_outActualPositionOnLine;
1853 tmp1 = mmc_unbox_integer(_inWrapWidth)(((mmc_sint_t) (_inWrapWidth)) >> 1);
1854 tmp2 = mmc_unbox_integer(_inActualPositionOnLine)(((mmc_sint_t) (_inActualPositionOnLine)) >> 1);
1855 tmp3 = mmc_unbox_integer(_inAtStartOfLine)(((mmc_sint_t) (_inAtStartOfLine)) >> 1);
1856 tmp4 = mmc_unbox_integer(_inAfterNewLineIndent)(((mmc_sint_t) (_inAfterNewLineIndent)) >> 1);
1857 _outActualPositionOnLine = omc_Tpl_tryWrapFile(threadData, _file, tmp1, _inWrapSeparator, tmp2, tmp3, tmp4, &_outAtStartOfLine, &_outAfterNewLineIndent);
1858 out_outActualPositionOnLine = mmc_mk_icon(_outActualPositionOnLine);
1859 if (out_outAtStartOfLine) { *out_outAtStartOfLine = mmc_mk_icon(_outAtStartOfLine); }
1860 if (out_outAfterNewLineIndent) { *out_outAfterNewLineIndent = mmc_mk_icon(_outAfterNewLineIndent); }
1861 return out_outActualPositionOnLine;
1862}
1863
1864PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_iterAlignWrapFile(threadData_t *threadData, modelica_complex _file, modelica_metatype _inTokens, modelica_integer _inActualIndex, modelica_integer _inAlignNum, modelica_metatype _inAlignSeparator, modelica_integer _inWrapWidth, modelica_metatype _inWrapSeparator, modelica_integer _inActualPositionOnLine, modelica_boolean _inAtStartOfLine, modelica_integer _inAfterNewLineIndent, modelica_boolean *out_outAtStartOfLine)
1865{
1866 modelica_integer _outActualPositionOnLine;
1867 modelica_boolean _outAtStartOfLine;
1868 modelica_integer tmp1_c0 __attribute__((unused)) = 0;
1869 modelica_boolean tmp1_c1 __attribute__((unused)) = 0;
1870 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
1871 MMC_SO()mmc_check_stackoverflow(threadData);
1872 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1873 // _outActualPositionOnLine has no default value.
1874 // _outAtStartOfLine has no default value.
1875#line 1853 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1876
1877#line 1853 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1878
1879#line 1879 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1880 { /* match expression */
1881 modelica_metatype tmp4_1;modelica_integer tmp4_2;modelica_integer tmp4_3;modelica_metatype tmp4_4;modelica_integer tmp4_5;modelica_metatype tmp4_6;modelica_integer tmp4_7;modelica_boolean tmp4_8;modelica_integer tmp4_9;
1882 tmp4_1 = _inTokens;
1883 tmp4_2 = _inActualIndex;
1884 tmp4_3 = _inAlignNum;
1885 tmp4_4 = _inAlignSeparator;
1886 tmp4_5 = _inWrapWidth;
1887 tmp4_6 = _inWrapSeparator;
1888 tmp4_7 = _inActualPositionOnLine;
1889 tmp4_8 = _inAtStartOfLine;
1890 tmp4_9 = _inAfterNewLineIndent;
1891 {
1892 modelica_metatype _toks = NULL((void*)0);
1893 modelica_metatype _tok = NULL((void*)0);
1894 modelica_metatype _asep = NULL((void*)0);
1895 modelica_metatype _wsep = NULL((void*)0);
1896 modelica_integer _pos;
1897 modelica_integer _aind;
1898 modelica_integer _idx;
1899 modelica_integer _anum;
1900 modelica_integer _wwidth;
1901 modelica_boolean _isstart;
1902 volatile mmc_switch_type tmp4;
1903 int tmp5;
1904 // _toks has no default value.
1905 // _tok has no default value.
1906 // _asep has no default value.
1907 // _wsep has no default value.
1908 // _pos has no default value.
1909 // _aind has no default value.
1910 // _idx has no default value.
1911 // _anum has no default value.
1912 // _wwidth has no default value.
1913 // _isstart has no default value.
1914 tmp4 = 0;
1915 for (; tmp4 < 5; tmp4++) {
1916 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1917 case 0: {
1918 if (!listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
1919
1920 _pos = tmp4_7;
1921 _isstart = tmp4_8;
1922 /* Pattern matching succeeded */
1923#line 1862 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1924 tmp1_c0 = _pos;
1925#line 1862 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1926 tmp1_c1 = _isstart;
1927#line 1927 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1928 goto tmp3_done;
1929 }
1930 case 1: {
1931 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
1932 tmpMeta[2] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
1933 tmpMeta[3] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
1934
1935 _tok = tmpMeta[2];
1936 _toks = tmpMeta[3];
1937 _idx = tmp4_2;
1938 _anum = tmp4_3;
1939 _asep = tmp4_4;
1940 _wwidth = tmp4_5;
1941 _wsep = tmp4_6;
1942 _pos = tmp4_7;
1943 _isstart = tmp4_8;
1944 _aind = tmp4_9;
1945 /* Pattern matching succeeded */
1946 /* Check guard condition after assignments */
1947 if (!((_idx > ((modelica_integer) 0)) && (modelica_integer_mod(_idx, _anum) == ((modelica_integer) 0)))) goto tmp3_end;
1948#line 1870 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1949 _pos = omc_Tpl_tokFile(threadData, _file, _asep, _pos, _isstart, _aind ,&_isstart ,&_aind);
1950#line 1950 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1951
1952#line 1871 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1953 _pos = omc_Tpl_tryWrapFile(threadData, _file, _wwidth, _wsep, _pos, _isstart, _aind ,&_isstart ,&_aind);
1954#line 1954 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1955
1956#line 1872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1957 _pos = omc_Tpl_tokFile(threadData, _file, _tok, _pos, _isstart, _aind ,&_isstart ,&_aind);
1958#line 1958 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1959#line 1873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1960 /* Tail recursive call */
1961#line 1873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1962 _inTokens = _toks;
1963#line 1873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1964 _inActualIndex = ((modelica_integer) 1) + _idx;
1965#line 1873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1966 _inAlignNum = _anum;
1967#line 1873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1968 _inAlignSeparator = _asep;
1969#line 1873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1970 _inWrapWidth = _wwidth;
1971#line 1873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1972 _inWrapSeparator = _wsep;
1973#line 1873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1974 _inActualPositionOnLine = _pos;
1975#line 1873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1976 _inAtStartOfLine = _isstart;
1977#line 1873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1978 _inAfterNewLineIndent = _aind;
1979#line 1873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1980 goto _tailrecursive;
1981#line 1873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
1982 /* TODO: Make sure any eventual dead code below is never generated */
1983#line 1983 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
1984 goto tmp3_done;
1985 }
1986 case 2: {
1987 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
1988 tmpMeta[2] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
1989 tmpMeta[3] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
1990
1991 _tok = tmpMeta[2];
1992 _toks = tmpMeta[3];
1993 _idx = tmp4_2;
1994 _anum = tmp4_3;
1995 _asep = tmp4_4;
1996 _wwidth = tmp4_5;
1997 _wsep = tmp4_6;
1998 _pos = tmp4_7;
1999 _isstart = tmp4_8;
2000 _aind = tmp4_9;
2001 /* Pattern matching succeeded */
2002 /* Check guard condition after assignments */
2003 if (!((_wwidth > ((modelica_integer) 0)) && (_pos >= _wwidth))) goto tmp3_end;
2004#line 1884 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2005 _pos = omc_Tpl_tokFile(threadData, _file, _wsep, _pos, _isstart, _aind ,&_isstart ,&_aind);
2006#line 2006 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2007
2008#line 1885 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2009 _pos = omc_Tpl_tokFile(threadData, _file, _tok, _pos, _isstart, _aind ,&_isstart ,&_aind);
2010#line 2010 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2011#line 1886 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2012 /* Tail recursive call */
2013#line 1886 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2014 _inTokens = _toks;
2015#line 1886 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2016 _inActualIndex = ((modelica_integer) 1) + _idx;
2017#line 1886 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2018 _inAlignNum = _anum;
2019#line 1886 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2020 _inAlignSeparator = _asep;
2021#line 1886 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2022 _inWrapWidth = _wwidth;
2023#line 1886 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2024 _inWrapSeparator = _wsep;
2025#line 1886 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2026 _inActualPositionOnLine = _pos;
2027#line 1886 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2028 _inAtStartOfLine = _isstart;
2029#line 1886 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2030 _inAfterNewLineIndent = _aind;
2031#line 1886 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2032 goto _tailrecursive;
2033#line 1886 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2034 /* TODO: Make sure any eventual dead code below is never generated */
2035#line 2035 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2036 goto tmp3_done;
2037 }
2038 case 3: {
2039 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
2040 tmpMeta[2] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
2041 tmpMeta[3] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2042
2043 _tok = tmpMeta[2];
2044 _toks = tmpMeta[3];
2045 _idx = tmp4_2;
2046 _anum = tmp4_3;
2047 _asep = tmp4_4;
2048 _wwidth = tmp4_5;
2049 _wsep = tmp4_6;
2050 _pos = tmp4_7;
2051 _isstart = tmp4_8;
2052 _aind = tmp4_9;
2053 /* Pattern matching succeeded */
2054#line 1897 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2055 _pos = omc_Tpl_tokFile(threadData, _file, _tok, _pos, _isstart, _aind ,&_isstart ,&_aind);
2056#line 2056 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2057#line 1898 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2058 /* Tail recursive call */
2059#line 1898 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2060 _inTokens = _toks;
2061#line 1898 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2062 _inActualIndex = ((modelica_integer) 1) + _idx;
2063#line 1898 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2064 _inAlignNum = _anum;
2065#line 1898 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2066 _inAlignSeparator = _asep;
2067#line 1898 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2068 _inWrapWidth = _wwidth;
2069#line 1898 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2070 _inWrapSeparator = _wsep;
2071#line 1898 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2072 _inActualPositionOnLine = _pos;
2073#line 1898 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2074 _inAtStartOfLine = _isstart;
2075#line 1898 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2076 _inAfterNewLineIndent = _aind;
2077#line 1898 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2078 goto _tailrecursive;
2079#line 1898 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2080 /* TODO: Make sure any eventual dead code below is never generated */
2081#line 2081 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2082 goto tmp3_done;
2083 }
2084 case 4: {
2085 modelica_boolean tmp6;
2086
2087 /* Pattern matching succeeded */
2088#line 1907 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2089 /* Pattern-matching assignment */
2090#line 1907 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2091 tmp6 = omc_Flags_isSet(threadData, _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)));
2092#line 1907 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2093 if (1 != tmp6) goto goto_2;
2094#line 2094 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2095
2096#line 1907 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2097 omc_Debug_trace(threadData, _OMC_LIT42((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3)));
2098#line 2098 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2099#line 1908 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2100 goto goto_2;
2101#line 2101 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2102 goto tmp3_done;
2103 }
2104 }
2105 goto tmp3_end;
2106 tmp3_end: ;
2107 }
2108 goto goto_2;
2109 goto_2:;
2110 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2111 goto tmp3_done;
2112 tmp3_done:;
2113 }
2114 }
2115 _outActualPositionOnLine = tmp1_c0;
2116 _outAtStartOfLine = tmp1_c1;
2117 _return: OMC_LABEL_UNUSED__attribute__((unused))
2118 if (out_outAtStartOfLine) { *out_outAtStartOfLine = _outAtStartOfLine; }
2119 return _outActualPositionOnLine;
2120}
2121PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_iterAlignWrapFile(threadData_t *threadData, modelica_metatype _file, modelica_metatype _inTokens, modelica_metatype _inActualIndex, modelica_metatype _inAlignNum, modelica_metatype _inAlignSeparator, modelica_metatype _inWrapWidth, modelica_metatype _inWrapSeparator, modelica_metatype _inActualPositionOnLine, modelica_metatype _inAtStartOfLine, modelica_metatype _inAfterNewLineIndent, modelica_metatype *out_outAtStartOfLine)
2122{
2123 modelica_integer tmp1;
2124 modelica_integer tmp2;
2125 modelica_integer tmp3;
2126 modelica_integer tmp4;
2127 modelica_integer tmp5;
2128 modelica_integer tmp6;
2129 modelica_boolean _outAtStartOfLine;
2130 modelica_integer _outActualPositionOnLine;
2131 modelica_metatype out_outActualPositionOnLine;
2132 tmp1 = mmc_unbox_integer(_inActualIndex)(((mmc_sint_t) (_inActualIndex)) >> 1);
2133 tmp2 = mmc_unbox_integer(_inAlignNum)(((mmc_sint_t) (_inAlignNum)) >> 1);
2134 tmp3 = mmc_unbox_integer(_inWrapWidth)(((mmc_sint_t) (_inWrapWidth)) >> 1);
2135 tmp4 = mmc_unbox_integer(_inActualPositionOnLine)(((mmc_sint_t) (_inActualPositionOnLine)) >> 1);
2136 tmp5 = mmc_unbox_integer(_inAtStartOfLine)(((mmc_sint_t) (_inAtStartOfLine)) >> 1);
2137 tmp6 = mmc_unbox_integer(_inAfterNewLineIndent)(((mmc_sint_t) (_inAfterNewLineIndent)) >> 1);
2138 _outActualPositionOnLine = omc_Tpl_iterAlignWrapFile(threadData, _file, _inTokens, tmp1, tmp2, _inAlignSeparator, tmp3, _inWrapSeparator, tmp4, tmp5, tmp6, &_outAtStartOfLine);
2139 out_outActualPositionOnLine = mmc_mk_icon(_outActualPositionOnLine);
2140 if (out_outAtStartOfLine) { *out_outAtStartOfLine = mmc_mk_icon(_outAtStartOfLine); }
2141 return out_outActualPositionOnLine;
2142}
2143
2144PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_iterSeparatorAlignWrapFile(threadData_t *threadData, modelica_complex _file, modelica_metatype _inTokens, modelica_metatype _inSeparator, modelica_integer _inActualIndex, modelica_integer _inAlignNum, modelica_metatype _inAlignSeparator, modelica_integer _inWrapWidth, modelica_metatype _inWrapSeparator, modelica_integer _inActualPositionOnLine, modelica_boolean _inAtStartOfLine, modelica_integer _inAfterNewLineIndent, modelica_boolean *out_outAtStartOfLine)
2145{
2146 modelica_integer _outActualPositionOnLine;
2147 modelica_boolean _outAtStartOfLine;
2148 modelica_metatype _toks = NULL((void*)0);
2149 modelica_metatype _tok = NULL((void*)0);
2150 modelica_metatype _septok = NULL((void*)0);
2151 modelica_integer _idx;
2152 modelica_integer _anum;
2153 modelica_metatype _asep = NULL((void*)0);
2154 modelica_integer _wwidth;
2155 modelica_metatype _wsep = NULL((void*)0);
2156 modelica_integer _pos;
2157 modelica_boolean _isstart;
2158 modelica_integer _aind;
2159 modelica_integer tmp1;
2160 modelica_integer tmp2;
2161 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
2162 MMC_SO()mmc_check_stackoverflow(threadData);
2163 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2164 // _outActualPositionOnLine has no default value.
2165 // _outAtStartOfLine has no default value.
2166 _toks = _inTokens;
2167 // _tok has no default value.
2168 _septok = _inSeparator;
2169 _idx = _inActualIndex;
2170 _anum = _inAlignNum;
2171 _asep = _inAlignSeparator;
2172 _wwidth = _inWrapWidth;
2173 _wsep = _inWrapSeparator;
2174 _pos = _inActualPositionOnLine;
2175 _isstart = _inAtStartOfLine;
2176 _aind = _inAfterNewLineIndent;
2177#line 1823 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2178 while(1)
2179#line 1823 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2180 {
2181#line 1823 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2182 if(!(!listEmpty(_toks)((*(mmc_uint_t*)((void*)((char*)(_toks) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
)) break;
2183#line 1824 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2184 /* Pattern-matching assignment */
2185#line 1824 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2186 tmpMeta[0] = _toks;
2187#line 1824 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2188 if (listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2189#line 1824 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2190 tmpMeta[1] = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
2191#line 1824 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2192 tmpMeta[2] = MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
2193#line 1824 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2194 _tok = tmpMeta[1];
2195#line 1824 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2196 _toks = tmpMeta[2];
2197#line 2197 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2198
2199#line 1825 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2200 if(((_idx > ((modelica_integer) 0)) && (modelica_integer_mod(_idx, _anum) == ((modelica_integer) 0))))
2201#line 1825 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2202 {
2203#line 1826 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2204 _pos = omc_Tpl_tokFile(threadData, _file, _asep, _pos, _isstart, _aind ,&_isstart ,&_aind);
2205#line 2205 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2206 }
2207 else
2208 {
2209#line 1828 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2210 _pos = omc_Tpl_tokFile(threadData, _file, _septok, _pos, _isstart, _aind ,&_isstart ,&_aind);
2211#line 2211 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2212 }
2213
2214#line 1830 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2215 _pos = omc_Tpl_tryWrapFile(threadData, _file, _wwidth, _wsep, _pos, _isstart, _aind ,&_isstart ,&_aind);
2216#line 2216 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2217
2218#line 1831 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2219 _pos = omc_Tpl_tokFile(threadData, _file, _tok, _pos, _isstart, _aind ,&_isstart ,&_aind);
2220#line 2220 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2221
2222#line 1832 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2223 _idx = ((modelica_integer) 1) + _idx;
2224#line 2224 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2225 }
2226
2227#line 1834 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2228 /* Pattern-matching assignment */
2229#line 1834 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2230 tmpMeta[0] = mmc_mk_box2(0, mmc_mk_integermmc_mk_icon(_pos), mmc_mk_boolean(_isstart)((_isstart) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))));
2231#line 1834 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2232 tmpMeta[1] = tmpMeta[0];
2233#line 1834 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2234 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
2235#line 1834 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2236 tmp1 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
2237#line 1834 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2238 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
2239#line 1834 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2240 tmp2 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
2241#line 1834 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2242 _outActualPositionOnLine = tmp1 /* pattern as ty=Integer */;
2243#line 1834 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2244 _outAtStartOfLine = tmp2 /* pattern as ty=Boolean */;
2245#line 2245 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2246 _return: OMC_LABEL_UNUSED__attribute__((unused))
2247 if (out_outAtStartOfLine) { *out_outAtStartOfLine = _outAtStartOfLine; }
2248 return _outActualPositionOnLine;
2249}
2250PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_iterSeparatorAlignWrapFile(threadData_t *threadData, modelica_metatype _file, modelica_metatype _inTokens, modelica_metatype _inSeparator, modelica_metatype _inActualIndex, modelica_metatype _inAlignNum, modelica_metatype _inAlignSeparator, modelica_metatype _inWrapWidth, modelica_metatype _inWrapSeparator, modelica_metatype _inActualPositionOnLine, modelica_metatype _inAtStartOfLine, modelica_metatype _inAfterNewLineIndent, modelica_metatype *out_outAtStartOfLine)
2251{
2252 modelica_integer tmp1;
2253 modelica_integer tmp2;
2254 modelica_integer tmp3;
2255 modelica_integer tmp4;
2256 modelica_integer tmp5;
2257 modelica_integer tmp6;
2258 modelica_boolean _outAtStartOfLine;
2259 modelica_integer _outActualPositionOnLine;
2260 modelica_metatype out_outActualPositionOnLine;
2261 tmp1 = mmc_unbox_integer(_inActualIndex)(((mmc_sint_t) (_inActualIndex)) >> 1);
2262 tmp2 = mmc_unbox_integer(_inAlignNum)(((mmc_sint_t) (_inAlignNum)) >> 1);
2263 tmp3 = mmc_unbox_integer(_inWrapWidth)(((mmc_sint_t) (_inWrapWidth)) >> 1);
2264 tmp4 = mmc_unbox_integer(_inActualPositionOnLine)(((mmc_sint_t) (_inActualPositionOnLine)) >> 1);
2265 tmp5 = mmc_unbox_integer(_inAtStartOfLine)(((mmc_sint_t) (_inAtStartOfLine)) >> 1);
2266 tmp6 = mmc_unbox_integer(_inAfterNewLineIndent)(((mmc_sint_t) (_inAfterNewLineIndent)) >> 1);
2267 _outActualPositionOnLine = omc_Tpl_iterSeparatorAlignWrapFile(threadData, _file, _inTokens, _inSeparator, tmp1, tmp2, _inAlignSeparator, tmp3, _inWrapSeparator, tmp4, tmp5, tmp6, &_outAtStartOfLine);
2268 out_outActualPositionOnLine = mmc_mk_icon(_outActualPositionOnLine);
2269 if (out_outAtStartOfLine) { *out_outAtStartOfLine = mmc_mk_icon(_outAtStartOfLine); }
2270 return out_outActualPositionOnLine;
2271}
2272
2273PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_iterSeparatorFile(threadData_t *threadData, modelica_complex _file, modelica_metatype _inTokens, modelica_metatype _inSeparator, modelica_integer _inActualPositionOnLine, modelica_boolean _inAtStartOfLine, modelica_integer _inAfterNewLineIndent, modelica_boolean *out_outAtStartOfLine)
2274{
2275 modelica_integer _outActualPositionOnLine;
2276 modelica_boolean _outAtStartOfLine;
2277 modelica_integer tmp1_c0 __attribute__((unused)) = 0;
2278 modelica_boolean tmp1_c1 __attribute__((unused)) = 0;
2279 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
2280 MMC_SO()mmc_check_stackoverflow(threadData);
2281 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2282 // _outActualPositionOnLine has no default value.
2283 // _outAtStartOfLine has no default value.
2284#line 1772 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2285
2286#line 1772 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2287
2288#line 2288 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2289 { /* match expression */
2290 modelica_metatype tmp4_1;modelica_metatype tmp4_2;modelica_integer tmp4_3;modelica_boolean tmp4_4;modelica_integer tmp4_5;
2291 tmp4_1 = _inTokens;
2292 tmp4_2 = _inSeparator;
2293 tmp4_3 = _inActualPositionOnLine;
2294 tmp4_4 = _inAtStartOfLine;
2295 tmp4_5 = _inAfterNewLineIndent;
2296 {
2297 modelica_metatype _toks = NULL((void*)0);
2298 modelica_metatype _tok = NULL((void*)0);
2299 modelica_metatype _septok = NULL((void*)0);
2300 modelica_integer _pos;
2301 modelica_integer _aind;
2302 modelica_boolean _isstart;
2303 volatile mmc_switch_type tmp4;
2304 int tmp5;
2305 // _toks has no default value.
2306 // _tok has no default value.
2307 // _septok has no default value.
2308 // _pos has no default value.
2309 // _aind has no default value.
2310 // _isstart has no default value.
2311 tmp4 = 0;
2312 for (; tmp4 < 2; tmp4++) {
2313 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2314 case 0: {
2315 if (!listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
2316
2317 _pos = tmp4_3;
2318 _isstart = tmp4_4;
2319 /* Pattern matching succeeded */
2320#line 1780 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2321 tmp1_c0 = _pos;
2322#line 1780 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2323 tmp1_c1 = _isstart;
2324#line 2324 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2325 goto tmp3_done;
2326 }
2327 case 1: {
2328 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
2329 tmpMeta[2] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
2330 tmpMeta[3] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2331
2332 _tok = tmpMeta[2];
2333 _toks = tmpMeta[3];
2334 _septok = tmp4_2;
2335 _pos = tmp4_3;
2336 _isstart = tmp4_4;
2337 _aind = tmp4_5;
2338 /* Pattern matching succeeded */
2339#line 1785 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2340 _pos = omc_Tpl_tokFile(threadData, _file, _septok, _pos, _isstart, _aind ,&_isstart ,&_aind);
2341#line 2341 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2342
2343#line 1786 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2344 _pos = omc_Tpl_tokFile(threadData, _file, _tok, _pos, _isstart, _aind ,&_isstart ,&_aind);
2345#line 2345 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2346#line 1787 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2347 /* Tail recursive call */
2348#line 1787 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2349 _inTokens = _toks;
2350#line 1787 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2351 _inSeparator = _septok;
2352#line 1787 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2353 _inActualPositionOnLine = _pos;
2354#line 1787 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2355 _inAtStartOfLine = _isstart;
2356#line 1787 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2357 _inAfterNewLineIndent = _aind;
2358#line 1787 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2359 goto _tailrecursive;
2360#line 1787 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2361 /* TODO: Make sure any eventual dead code below is never generated */
2362#line 2362 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2363 goto tmp3_done;
2364 }
2365 }
2366 goto tmp3_end;
2367 tmp3_end: ;
2368 }
2369 goto goto_2;
2370 goto_2:;
2371 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2372 goto tmp3_done;
2373 tmp3_done:;
2374 }
2375 }
2376 _outActualPositionOnLine = tmp1_c0;
2377 _outAtStartOfLine = tmp1_c1;
2378 _return: OMC_LABEL_UNUSED__attribute__((unused))
2379 if (out_outAtStartOfLine) { *out_outAtStartOfLine = _outAtStartOfLine; }
2380 return _outActualPositionOnLine;
2381}
2382PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_iterSeparatorFile(threadData_t *threadData, modelica_metatype _file, modelica_metatype _inTokens, modelica_metatype _inSeparator, modelica_metatype _inActualPositionOnLine, modelica_metatype _inAtStartOfLine, modelica_metatype _inAfterNewLineIndent, modelica_metatype *out_outAtStartOfLine)
2383{
2384 modelica_integer tmp1;
2385 modelica_integer tmp2;
2386 modelica_integer tmp3;
2387 modelica_boolean _outAtStartOfLine;
2388 modelica_integer _outActualPositionOnLine;
2389 modelica_metatype out_outActualPositionOnLine;
2390 tmp1 = mmc_unbox_integer(_inActualPositionOnLine)(((mmc_sint_t) (_inActualPositionOnLine)) >> 1);
2391 tmp2 = mmc_unbox_integer(_inAtStartOfLine)(((mmc_sint_t) (_inAtStartOfLine)) >> 1);
2392 tmp3 = mmc_unbox_integer(_inAfterNewLineIndent)(((mmc_sint_t) (_inAfterNewLineIndent)) >> 1);
2393 _outActualPositionOnLine = omc_Tpl_iterSeparatorFile(threadData, _file, _inTokens, _inSeparator, tmp1, tmp2, tmp3, &_outAtStartOfLine);
2394 out_outActualPositionOnLine = mmc_mk_icon(_outActualPositionOnLine);
2395 if (out_outAtStartOfLine) { *out_outAtStartOfLine = mmc_mk_icon(_outAtStartOfLine); }
2396 return out_outActualPositionOnLine;
2397}
2398
2399PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_blockFile(threadData_t *threadData, modelica_complex _file, modelica_metatype _inBlockType, modelica_metatype _inTokens, modelica_integer _inActualPositionOnLine, modelica_boolean _inAtStartOfLine, modelica_integer _inAfterNewLineIndent, modelica_boolean *out_outAtStartOfLine, modelica_integer *out_outAfterNewLineIndent)
2400{
2401 modelica_integer _outActualPositionOnLine;
2402 modelica_boolean _outAtStartOfLine;
2403 modelica_integer _outAfterNewLineIndent;
2404 modelica_integer tmp1_c0 __attribute__((unused)) = 0;
2405 modelica_boolean tmp1_c1 __attribute__((unused)) = 0;
2406 modelica_integer tmp1_c2 __attribute__((unused)) = 0;
2407 modelica_metatype tmpMeta[13] __attribute__((unused)) = {0};
2408 MMC_SO()mmc_check_stackoverflow(threadData);
2409 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2410 // _outActualPositionOnLine has no default value.
2411 // _outAtStartOfLine has no default value.
2412 // _outAfterNewLineIndent has no default value.
2413#line 1604 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2414
2415#line 1604 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2416
2417#line 1604 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2418
2419#line 2419 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2420 { /* match expression */
2421 modelica_metatype tmp4_1;modelica_metatype tmp4_2;modelica_integer tmp4_3;modelica_boolean tmp4_4;modelica_integer tmp4_5;
2422 tmp4_1 = _inBlockType;
2423 tmp4_2 = _inTokens;
2424 tmp4_3 = _inActualPositionOnLine;
2425 tmp4_4 = _inAtStartOfLine;
2426 tmp4_5 = _inAfterNewLineIndent;
2427 {
2428 modelica_metatype _toks = NULL((void*)0);
2429 modelica_metatype _septok = NULL((void*)0);
2430 modelica_metatype _tok = NULL((void*)0);
2431 modelica_metatype _asep = NULL((void*)0);
2432 modelica_metatype _wsep = NULL((void*)0);
2433 modelica_integer _nchars;
2434 modelica_integer _tsnchars;
2435 modelica_integer _aind;
2436 modelica_integer _w;
2437 modelica_integer _aoffset;
2438 modelica_integer _anum;
2439 modelica_integer _wwidth;
2440 modelica_integer _blen;
2441 modelica_boolean _isstart;
2442 volatile mmc_switch_type tmp4;
2443 int tmp5;
2444 // _toks has no default value.
2445 // _septok has no default value.
2446 // _tok has no default value.
2447 // _asep has no default value.
2448 // _wsep has no default value.
2449 // _nchars has no default value.
2450 // _tsnchars has no default value.
2451 // _aind has no default value.
2452 // _w has no default value.
2453 // _aoffset has no default value.
2454 // _anum has no default value.
2455 // _wwidth has no default value.
2456 // _blen has no default value.
2457 // _isstart has no default value.
2458 tmp4 = 0;
2459 for (; tmp4 < 15; tmp4++) {
2460 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2461 case 0: {
2462 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((0 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2463
2464 _toks = tmp4_2;
2465 _nchars = tmp4_3;
2466 _isstart = tmp4_4;
2467 _aind = tmp4_5;
2468 /* Pattern matching succeeded */
2469#line 1614 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2470 tmp1_c0 = omc_Tpl_tokensFile(threadData, _file, _toks, _nchars, _isstart, _aind, &tmp1_c1, &tmp1_c2);
2471#line 2471 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2472 goto tmp3_done;
2473 }
2474 case 1: {
2475 modelica_integer tmp6;
2476 if (1 != tmp4_4) goto tmp3_end;
2477 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
2478 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2479 tmp6 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
2480
2481 _w = tmp6 /* pattern as ty=Integer */;
2482 _toks = tmp4_2;
2483 _nchars = tmp4_3;
2484 _aind = tmp4_5;
2485 /* Pattern matching succeeded */
2486#line 1621 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2487 _tsnchars = omc_Tpl_tokensFile(threadData, _file, _toks, _w + _nchars, 1, _w + _aind ,&_isstart, NULL((void*)0));
2488#line 2488 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2489
2490#line 1623 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2491 _nchars = (_isstart?_nchars:_tsnchars);
2492#line 2492 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2493#line 1624 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2494 tmp1_c0 = _nchars;
2495#line 1624 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2496 tmp1_c1 = _isstart;
2497#line 1624 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2498 tmp1_c2 = _aind;
2499#line 2499 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2500 goto tmp3_done;
2501 }
2502 case 2: {
2503 modelica_integer tmp7;
2504 if (0 != tmp4_4) goto tmp3_end;
2505 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
2506 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2507 tmp7 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
2508
2509 _w = tmp7 /* pattern as ty=Integer */;
2510 _toks = tmp4_2;
2511 _nchars = tmp4_3;
2512 _aind = tmp4_5;
2513 /* Pattern matching succeeded */
2514#line 1629 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2515 omc_File_writeSpace(threadData, _file, _w);
2516#line 2516 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2517
2518#line 1630 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2519 _tsnchars = omc_Tpl_tokensFile(threadData, _file, _toks, _w + _nchars, 0, _w + _aind ,&_isstart, NULL((void*)0));
2520#line 2520 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2521
2522#line 1632 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2523 _nchars = (_isstart?_aind:_tsnchars);
2524#line 2524 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2525#line 1633 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2526 tmp1_c0 = _nchars;
2527#line 1633 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2528 tmp1_c1 = _isstart;
2529#line 1633 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2530 tmp1_c2 = _aind;
2531#line 2531 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2532 goto tmp3_done;
2533 }
2534 case 3: {
2535 modelica_integer tmp8;
2536 if (1 != tmp4_4) goto tmp3_end;
2537 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
2538 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2539 tmp8 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
2540
2541 _w = tmp8 /* pattern as ty=Integer */;
2542 _toks = tmp4_2;
2543 _nchars = tmp4_3;
2544 _aind = tmp4_5;
2545 /* Pattern matching succeeded */
2546#line 1638 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2547 _blen = omc_File_tell(threadData, _file);
2548#line 2548 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2549
2550#line 1639 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2551 _tsnchars = omc_Tpl_tokensFile(threadData, _file, _toks, ((modelica_integer) 0), 1, _w ,&_isstart, NULL((void*)0));
2552#line 2552 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2553
2554#line 1641 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2555 _blen = omc_File_tell(threadData, _file) - _blen;
2556#line 2556 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2557
2558#line 1642 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2559 _nchars = ((_blen == ((modelica_integer) 0))?_nchars:(_isstart?_aind:_tsnchars));
2560#line 2560 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2561#line 1643 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2562 tmp1_c0 = _nchars;
2563#line 1643 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2564 tmp1_c1 = _isstart;
2565#line 1643 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2566 tmp1_c2 = _aind;
2567#line 2567 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2568 goto tmp3_done;
2569 }
2570 case 4: {
2571 modelica_integer tmp9;
2572 if (0 != tmp4_4) goto tmp3_end;
2573 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
2574 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2575 tmp9 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
2576
2577 _w = tmp9 /* pattern as ty=Integer */;
2578 _toks = tmp4_2;
2579 _nchars = tmp4_3;
2580 _aind = tmp4_5;
2581 /* Pattern matching succeeded */
2582#line 1648 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2583 _tsnchars = omc_Tpl_tokensFile(threadData, _file, _toks, _nchars, 0, _w ,&_isstart, NULL((void*)0));
2584#line 2584 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2585
2586#line 1650 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2587 _nchars = (_isstart?_aind:_tsnchars);
2588#line 2588 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2589#line 1651 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2590 tmp1_c0 = _nchars;
2591#line 1651 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2592 tmp1_c1 = _isstart;
2593#line 1651 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2594 tmp1_c2 = _aind;
2595#line 2595 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2596 goto tmp3_done;
2597 }
2598 case 5: {
2599 modelica_integer tmp10;
2600 if (1 != tmp4_4) goto tmp3_end;
2601 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,3,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((3 +3) & 255) << 2)))
== 0) goto tmp3_end;
2602 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2603 tmp10 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
2604
2605 _w = tmp10 /* pattern as ty=Integer */;
2606 _toks = tmp4_2;
2607 _nchars = tmp4_3;
2608 _aind = tmp4_5;
2609 /* Pattern matching succeeded */
2610#line 1656 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2611 _blen = omc_File_tell(threadData, _file);
2612#line 2612 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2613
2614#line 1657 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2615 _tsnchars = omc_Tpl_tokensFile(threadData, _file, _toks, _nchars, 1, _aind + _w ,&_isstart, NULL((void*)0));
2616#line 2616 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2617
2618#line 1659 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2619 _blen = omc_File_tell(threadData, _file) - _blen;
2620#line 2620 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2621
2622#line 1660 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2623 _nchars = ((_blen == ((modelica_integer) 0))?_nchars:(_isstart?_aind:_tsnchars));
2624#line 2624 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2625#line 1661 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2626 tmp1_c0 = _nchars;
2627#line 1661 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2628 tmp1_c1 = _isstart;
2629#line 1661 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2630 tmp1_c2 = _aind;
2631#line 2631 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2632 goto tmp3_done;
2633 }
2634 case 6: {
2635 modelica_integer tmp11;
2636 if (0 != tmp4_4) goto tmp3_end;
2637 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,3,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((3 +3) & 255) << 2)))
== 0) goto tmp3_end;
2638 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2639 tmp11 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
2640
2641 _w = tmp11 /* pattern as ty=Integer */;
2642 _toks = tmp4_2;
2643 _nchars = tmp4_3;
2644 _aind = tmp4_5;
2645 /* Pattern matching succeeded */
2646#line 1666 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2647 _tsnchars = omc_Tpl_tokensFile(threadData, _file, _toks, _nchars, 0, _aind + _w ,&_isstart, NULL((void*)0));
2648#line 2648 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2649
2650#line 1668 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2651 _nchars = (_isstart?_aind:_tsnchars);
2652#line 2652 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2653#line 1669 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2654 tmp1_c0 = _nchars;
2655#line 1669 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2656 tmp1_c1 = _isstart;
2657#line 1669 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2658 tmp1_c2 = _aind;
2659#line 2659 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2660 goto tmp3_done;
2661 }
2662 case 7: {
2663 modelica_integer tmp12;
2664 if (1 != tmp4_4) goto tmp3_end;
2665 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,4,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((4 +3) & 255) << 2)))
== 0) goto tmp3_end;
2666 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2667 tmp12 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
2668
2669 _w = tmp12 /* pattern as ty=Integer */;
2670 _toks = tmp4_2;
2671 _nchars = tmp4_3;
2672 _aind = tmp4_5;
2673 /* Pattern matching succeeded */
2674#line 1674 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2675 _blen = omc_File_tell(threadData, _file);
2676#line 2676 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2677
2678#line 1675 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2679 _tsnchars = omc_Tpl_tokensFile(threadData, _file, _toks, _nchars, 1, _nchars + _w ,&_isstart, NULL((void*)0));
2680#line 2680 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2681
2682#line 1677 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2683 _blen = omc_File_tell(threadData, _file) - _blen;
2684#line 2684 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2685
2686#line 1678 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2687 _nchars = ((_blen == ((modelica_integer) 0))?_nchars:(_isstart?_aind:_tsnchars));
2688#line 2688 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2689#line 1679 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2690 tmp1_c0 = _nchars;
2691#line 1679 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2692 tmp1_c1 = _isstart;
2693#line 1679 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2694 tmp1_c2 = _aind;
2695#line 2695 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2696 goto tmp3_done;
2697 }
2698 case 8: {
2699 modelica_integer tmp13;
2700 if (0 != tmp4_4) goto tmp3_end;
2701 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,4,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((4 +3) & 255) << 2)))
== 0) goto tmp3_end;
2702 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2703 tmp13 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
2704
2705 _w = tmp13 /* pattern as ty=Integer */;
2706 _toks = tmp4_2;
2707 _nchars = tmp4_3;
2708 _aind = tmp4_5;
2709 /* Pattern matching succeeded */
2710#line 1684 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2711 _tsnchars = omc_Tpl_tokensFile(threadData, _file, _toks, _nchars, 0, _nchars + _w ,&_isstart, NULL((void*)0));
2712#line 2712 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2713
2714#line 1686 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2715 _nchars = (_isstart?_aind:_tsnchars);
2716#line 2716 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2717#line 1687 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2718 tmp1_c0 = _nchars;
2719#line 1687 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2720 tmp1_c1 = _isstart;
2721#line 1687 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2722 tmp1_c2 = _aind;
2723#line 2723 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2724 goto tmp3_done;
2725 }
2726 case 9: {
2727 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,5,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((5 +3) & 255) << 2)))
== 0) goto tmp3_end;
2728 if (!listEmpty(tmp4_2)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
2729
2730 _nchars = tmp4_3;
2731 _isstart = tmp4_4;
2732 _aind = tmp4_5;
2733 /* Pattern matching succeeded */
2734#line 1693 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2735 tmp1_c0 = _nchars;
2736#line 1693 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2737 tmp1_c1 = _isstart;
2738#line 1693 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2739 tmp1_c2 = _aind;
2740#line 2740 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2741 goto tmp3_done;
2742 }
2743 case 10: {
2744 modelica_integer tmp14;
2745 modelica_integer tmp15;
2746 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,5,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((5 +3) & 255) << 2)))
== 0) goto tmp3_end;
2747 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2748 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (4)))))
;
2749 if (!optionNone(tmpMeta[4])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[4]) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
2750 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (5)))))
;
2751 tmp14 = mmc_unbox_integer(tmpMeta[5])(((mmc_sint_t) (tmpMeta[5])) >> 1);
2752 if (0 != tmp14) goto tmp3_end;
2753 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (8)))))
;
2754 tmp15 = mmc_unbox_integer(tmpMeta[6])(((mmc_sint_t) (tmpMeta[6])) >> 1);
2755 if (0 != tmp15) goto tmp3_end;
2756
2757 _toks = tmp4_2;
2758 _nchars = tmp4_3;
2759 _isstart = tmp4_4;
2760 _aind = tmp4_5;
2761 /* Pattern matching succeeded */
2762#line 1702 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2763 tmp1_c0 = omc_Tpl_tokensFile(threadData, _file, _toks, _nchars, _isstart, _aind, &tmp1_c1, &tmp1_c2);
2764#line 2764 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2765 goto tmp3_done;
2766 }
2767 case 11: {
2768 modelica_integer tmp16;
2769 modelica_integer tmp17;
2770 if (listEmpty(tmp4_2)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
2771 tmpMeta[3] = MMC_CAR(tmp4_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
2772 tmpMeta[4] = MMC_CDR(tmp4_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(2)))))
;
2773 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,5,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((5 +3) & 255) << 2)))
== 0) goto tmp3_end;
2774 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2775 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (4)))))
;
2776 if (optionNone(tmpMeta[6])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[6]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[6])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[6]) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
2777 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[6]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[6]) - 3
))) + (1)))))
;
2778 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (5)))))
;
2779 tmp16 = mmc_unbox_integer(tmpMeta[8])(((mmc_sint_t) (tmpMeta[8])) >> 1);
2780 if (0 != tmp16) goto tmp3_end;
2781 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (8)))))
;
2782 tmp17 = mmc_unbox_integer(tmpMeta[9])(((mmc_sint_t) (tmpMeta[9])) >> 1);
2783 if (0 != tmp17) goto tmp3_end;
2784
2785 _tok = tmpMeta[3];
2786 _toks = tmpMeta[4];
2787 _septok = tmpMeta[7];
2788 _nchars = tmp4_3;
2789 _isstart = tmp4_4;
2790 _aind = tmp4_5;
2791 /* Pattern matching succeeded */
2792#line 1715 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2793 _nchars = omc_Tpl_tokFile(threadData, _file, _tok, _nchars, _isstart, _aind ,&_isstart ,&_aind);
2794#line 2794 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2795
2796#line 1716 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2797 _nchars = omc_Tpl_iterSeparatorFile(threadData, _file, _toks, _septok, _nchars, _isstart, _aind ,&_isstart);
2798#line 2798 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2799#line 1718 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2800 tmp1_c0 = _nchars;
2801#line 1718 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2802 tmp1_c1 = _isstart;
2803#line 1718 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2804 tmp1_c2 = _aind;
2805#line 2805 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2806 goto tmp3_done;
2807 }
2808 case 12: {
2809 modelica_integer tmp18;
2810 modelica_integer tmp19;
2811 modelica_integer tmp20;
2812 if (listEmpty(tmp4_2)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
2813 tmpMeta[3] = MMC_CAR(tmp4_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
2814 tmpMeta[4] = MMC_CDR(tmp4_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(2)))))
;
2815 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,5,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((5 +3) & 255) << 2)))
== 0) goto tmp3_end;
2816 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2817 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (4)))))
;
2818 if (optionNone(tmpMeta[6])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[6]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[6])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[6]) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
2819 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[6]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[6]) - 3
))) + (1)))))
;
2820 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (5)))))
;
2821 tmp18 = mmc_unbox_integer(tmpMeta[8])(((mmc_sint_t) (tmpMeta[8])) >> 1);
2822 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (6)))))
;
2823 tmp19 = mmc_unbox_integer(tmpMeta[9])(((mmc_sint_t) (tmpMeta[9])) >> 1);
2824 tmpMeta[10] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (7)))))
;
2825 tmpMeta[11] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (8)))))
;
2826 tmp20 = mmc_unbox_integer(tmpMeta[11])(((mmc_sint_t) (tmpMeta[11])) >> 1);
2827 tmpMeta[12] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 9))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (9)))))
;
2828
2829 _tok = tmpMeta[3];
2830 _toks = tmpMeta[4];
2831 _septok = tmpMeta[7];
2832 _anum = tmp18 /* pattern as ty=Integer */;
2833 _aoffset = tmp19 /* pattern as ty=Integer */;
2834 _asep = tmpMeta[10];
2835 _wwidth = tmp20 /* pattern as ty=Integer */;
2836 _wsep = tmpMeta[12];
2837 _nchars = tmp4_3;
2838 _isstart = tmp4_4;
2839 _aind = tmp4_5;
2840 /* Pattern matching succeeded */
2841#line 1731 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2842 _nchars = omc_Tpl_tokFile(threadData, _file, _tok, _nchars, _isstart, _aind ,&_isstart ,&_aind);
2843#line 2843 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2844
2845#line 1732 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2846 _nchars = omc_Tpl_iterSeparatorAlignWrapFile(threadData, _file, _toks, _septok, ((modelica_integer) 1) + _aoffset, _anum, _asep, _wwidth, _wsep, _nchars, _isstart, _aind ,&_isstart);
2847#line 2847 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2848#line 1734 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2849 tmp1_c0 = _nchars;
2850#line 1734 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2851 tmp1_c1 = _isstart;
2852#line 1734 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2853 tmp1_c2 = _aind;
2854#line 2854 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2855 goto tmp3_done;
2856 }
2857 case 13: {
2858 modelica_integer tmp21;
2859 modelica_integer tmp22;
2860 modelica_integer tmp23;
2861 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,5,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((5 +3) & 255) << 2)))
== 0) goto tmp3_end;
2862 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2863 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (4)))))
;
2864 if (!optionNone(tmpMeta[4])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[4]) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
2865 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (5)))))
;
2866 tmp21 = mmc_unbox_integer(tmpMeta[5])(((mmc_sint_t) (tmpMeta[5])) >> 1);
2867 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (6)))))
;
2868 tmp22 = mmc_unbox_integer(tmpMeta[6])(((mmc_sint_t) (tmpMeta[6])) >> 1);
2869 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (7)))))
;
2870 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (8)))))
;
2871 tmp23 = mmc_unbox_integer(tmpMeta[8])(((mmc_sint_t) (tmpMeta[8])) >> 1);
2872 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 9))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (9)))))
;
2873
2874 _anum = tmp21 /* pattern as ty=Integer */;
2875 _aoffset = tmp22 /* pattern as ty=Integer */;
2876 _asep = tmpMeta[7];
2877 _wwidth = tmp23 /* pattern as ty=Integer */;
2878 _wsep = tmpMeta[9];
2879 _toks = tmp4_2;
2880 _nchars = tmp4_3;
2881 _isstart = tmp4_4;
2882 _aind = tmp4_5;
2883 /* Pattern matching succeeded */
2884#line 1746 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2885 _nchars = omc_Tpl_iterAlignWrapFile(threadData, _file, _toks, _aoffset, _anum, _asep, _wwidth, _wsep, _nchars, _isstart, _aind ,&_isstart);
2886#line 2886 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2887#line 1748 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2888 tmp1_c0 = _nchars;
2889#line 1748 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2890 tmp1_c1 = _isstart;
2891#line 1748 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2892 tmp1_c2 = _aind;
2893#line 2893 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2894 goto tmp3_done;
2895 }
2896 case 14: {
2897 modelica_boolean tmp24;
2898
2899 /* Pattern matching succeeded */
2900#line 1755 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2901 /* Pattern-matching assignment */
2902#line 1755 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2903 tmp24 = omc_Flags_isSet(threadData, _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)));
2904#line 1755 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2905 if (1 != tmp24) goto goto_2;
2906#line 2906 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2907
2908#line 1755 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2909 omc_Debug_trace(threadData, _OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3)));
2910#line 2910 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2911#line 1756 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2912 goto goto_2;
2913#line 2913 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2914 goto tmp3_done;
2915 }
2916 }
2917 goto tmp3_end;
2918 tmp3_end: ;
2919 }
2920 goto goto_2;
2921 goto_2:;
2922 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2923 goto tmp3_done;
2924 tmp3_done:;
2925 }
2926 }
2927 _outActualPositionOnLine = tmp1_c0;
2928 _outAtStartOfLine = tmp1_c1;
2929 _outAfterNewLineIndent = tmp1_c2;
2930 _return: OMC_LABEL_UNUSED__attribute__((unused))
2931 if (out_outAtStartOfLine) { *out_outAtStartOfLine = _outAtStartOfLine; }
2932 if (out_outAfterNewLineIndent) { *out_outAfterNewLineIndent = _outAfterNewLineIndent; }
2933 return _outActualPositionOnLine;
2934}
2935PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_blockFile(threadData_t *threadData, modelica_metatype _file, modelica_metatype _inBlockType, modelica_metatype _inTokens, modelica_metatype _inActualPositionOnLine, modelica_metatype _inAtStartOfLine, modelica_metatype _inAfterNewLineIndent, modelica_metatype *out_outAtStartOfLine, modelica_metatype *out_outAfterNewLineIndent)
2936{
2937 modelica_integer tmp1;
2938 modelica_integer tmp2;
2939 modelica_integer tmp3;
2940 modelica_boolean _outAtStartOfLine;
2941 modelica_integer _outAfterNewLineIndent;
2942 modelica_integer _outActualPositionOnLine;
2943 modelica_metatype out_outActualPositionOnLine;
2944 tmp1 = mmc_unbox_integer(_inActualPositionOnLine)(((mmc_sint_t) (_inActualPositionOnLine)) >> 1);
2945 tmp2 = mmc_unbox_integer(_inAtStartOfLine)(((mmc_sint_t) (_inAtStartOfLine)) >> 1);
2946 tmp3 = mmc_unbox_integer(_inAfterNewLineIndent)(((mmc_sint_t) (_inAfterNewLineIndent)) >> 1);
2947 _outActualPositionOnLine = omc_Tpl_blockFile(threadData, _file, _inBlockType, _inTokens, tmp1, tmp2, tmp3, &_outAtStartOfLine, &_outAfterNewLineIndent);
2948 out_outActualPositionOnLine = mmc_mk_icon(_outActualPositionOnLine);
2949 if (out_outAtStartOfLine) { *out_outAtStartOfLine = mmc_mk_icon(_outAtStartOfLine); }
2950 if (out_outAfterNewLineIndent) { *out_outAfterNewLineIndent = mmc_mk_icon(_outAfterNewLineIndent); }
2951 return out_outActualPositionOnLine;
2952}
2953
2954PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_tryWrapString(threadData_t *threadData, modelica_integer _inWrapWidth, modelica_metatype _inWrapSeparator, modelica_integer _inActualPositionOnLine, modelica_boolean _inAtStartOfLine, modelica_integer _inAfterNewLineIndent, modelica_boolean *out_outAtStartOfLine, modelica_integer *out_outAfterNewLineIndent)
2955{
2956 modelica_integer _outActualPositionOnLine;
2957 modelica_boolean _outAtStartOfLine;
2958 modelica_integer _outAfterNewLineIndent;
2959 modelica_integer tmp1_c0 __attribute__((unused)) = 0;
2960 modelica_boolean tmp1_c1 __attribute__((unused)) = 0;
2961 modelica_integer tmp1_c2 __attribute__((unused)) = 0;
2962 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
2963 MMC_SO()mmc_check_stackoverflow(threadData);
2964 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2965 // _outActualPositionOnLine has no default value.
2966 // _outAtStartOfLine has no default value.
2967 // _outAfterNewLineIndent has no default value.
2968#line 1573 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2969
2970#line 1573 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2971
2972#line 1573 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
2973
2974#line 2974 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
2975 { /* match expression */
2976 modelica_integer tmp4_1;modelica_metatype tmp4_2;modelica_integer tmp4_3;modelica_boolean tmp4_4;modelica_integer tmp4_5;
2977 tmp4_1 = _inWrapWidth;
2978 tmp4_2 = _inWrapSeparator;
2979 tmp4_3 = _inActualPositionOnLine;
2980 tmp4_4 = _inAtStartOfLine;
2981 tmp4_5 = _inAfterNewLineIndent;
2982 {
2983 modelica_integer _pos;
2984 modelica_integer _aind;
2985 modelica_integer _wwidth;
2986 modelica_boolean _isstart;
2987 modelica_metatype _wsep = NULL((void*)0);
2988 volatile mmc_switch_type tmp4;
2989 int tmp5;
2990 // _pos has no default value.
2991 // _aind has no default value.
2992 // _wwidth has no default value.
2993 // _isstart has no default value.
2994 // _wsep has no default value.
2995 tmp4 = 0;
2996 for (; tmp4 < 2; tmp4++) {
2997 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2998 case 0: {
2999
3000 _wwidth = tmp4_1;
3001 _wsep = tmp4_2;
3002 _pos = tmp4_3;
3003 _isstart = tmp4_4;
3004 _aind = tmp4_5;
3005 /* Pattern matching succeeded */
3006 /* Check guard condition after assignments */
3007 if (!((_wwidth > ((modelica_integer) 0)) && (_pos >= _wwidth))) goto tmp3_end;
3008#line 1584 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3009 tmp1_c0 = omc_Tpl_tokString(threadData, _wsep, _pos, _isstart, _aind, &tmp1_c1, &tmp1_c2);
3010#line 3010 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3011 goto tmp3_done;
3012 }
3013 case 1: {
3014
3015 /* Pattern matching succeeded */
3016#line 1587 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3017 tmp1_c0 = _inActualPositionOnLine;
3018#line 1587 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3019 tmp1_c1 = _inAtStartOfLine;
3020#line 1587 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3021 tmp1_c2 = _inAfterNewLineIndent;
3022#line 3022 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3023 goto tmp3_done;
3024 }
3025 }
3026 goto tmp3_end;
3027 tmp3_end: ;
3028 }
3029 goto goto_2;
3030 goto_2:;
3031 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3032 goto tmp3_done;
3033 tmp3_done:;
3034 }
3035 }
3036 _outActualPositionOnLine = tmp1_c0;
3037 _outAtStartOfLine = tmp1_c1;
3038 _outAfterNewLineIndent = tmp1_c2;
3039 _return: OMC_LABEL_UNUSED__attribute__((unused))
3040 if (out_outAtStartOfLine) { *out_outAtStartOfLine = _outAtStartOfLine; }
3041 if (out_outAfterNewLineIndent) { *out_outAfterNewLineIndent = _outAfterNewLineIndent; }
3042 return _outActualPositionOnLine;
3043}
3044PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_tryWrapString(threadData_t *threadData, modelica_metatype _inWrapWidth, modelica_metatype _inWrapSeparator, modelica_metatype _inActualPositionOnLine, modelica_metatype _inAtStartOfLine, modelica_metatype _inAfterNewLineIndent, modelica_metatype *out_outAtStartOfLine, modelica_metatype *out_outAfterNewLineIndent)
3045{
3046 modelica_integer tmp1;
3047 modelica_integer tmp2;
3048 modelica_integer tmp3;
3049 modelica_integer tmp4;
3050 modelica_boolean _outAtStartOfLine;
3051 modelica_integer _outAfterNewLineIndent;
3052 modelica_integer _outActualPositionOnLine;
3053 modelica_metatype out_outActualPositionOnLine;
3054 tmp1 = mmc_unbox_integer(_inWrapWidth)(((mmc_sint_t) (_inWrapWidth)) >> 1);
3055 tmp2 = mmc_unbox_integer(_inActualPositionOnLine)(((mmc_sint_t) (_inActualPositionOnLine)) >> 1);
3056 tmp3 = mmc_unbox_integer(_inAtStartOfLine)(((mmc_sint_t) (_inAtStartOfLine)) >> 1);
3057 tmp4 = mmc_unbox_integer(_inAfterNewLineIndent)(((mmc_sint_t) (_inAfterNewLineIndent)) >> 1);
3058 _outActualPositionOnLine = omc_Tpl_tryWrapString(threadData, tmp1, _inWrapSeparator, tmp2, tmp3, tmp4, &_outAtStartOfLine, &_outAfterNewLineIndent);
3059 out_outActualPositionOnLine = mmc_mk_icon(_outActualPositionOnLine);
3060 if (out_outAtStartOfLine) { *out_outAtStartOfLine = mmc_mk_icon(_outAtStartOfLine); }
3061 if (out_outAfterNewLineIndent) { *out_outAfterNewLineIndent = mmc_mk_icon(_outAfterNewLineIndent); }
3062 return out_outActualPositionOnLine;
3063}
3064
3065PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_iterAlignWrapString(threadData_t *threadData, modelica_metatype _inTokens, modelica_integer _inActualIndex, modelica_integer _inAlignNum, modelica_metatype _inAlignSeparator, modelica_integer _inWrapWidth, modelica_metatype _inWrapSeparator, modelica_integer _inActualPositionOnLine, modelica_boolean _inAtStartOfLine, modelica_integer _inAfterNewLineIndent, modelica_boolean *out_outAtStartOfLine)
3066{
3067 modelica_integer _outActualPositionOnLine;
3068 modelica_boolean _outAtStartOfLine;
3069 modelica_integer tmp1_c0 __attribute__((unused)) = 0;
3070 modelica_boolean tmp1_c1 __attribute__((unused)) = 0;
3071 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
3072 MMC_SO()mmc_check_stackoverflow(threadData);
3073 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3074 // _outActualPositionOnLine has no default value.
3075 // _outAtStartOfLine has no default value.
3076#line 1501 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3077
3078#line 1501 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3079
3080#line 3080 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3081 { /* match expression */
3082 modelica_metatype tmp4_1;modelica_integer tmp4_2;modelica_integer tmp4_3;modelica_metatype tmp4_4;modelica_integer tmp4_5;modelica_metatype tmp4_6;modelica_integer tmp4_7;modelica_boolean tmp4_8;modelica_integer tmp4_9;
3083 tmp4_1 = _inTokens;
3084 tmp4_2 = _inActualIndex;
3085 tmp4_3 = _inAlignNum;
3086 tmp4_4 = _inAlignSeparator;
3087 tmp4_5 = _inWrapWidth;
3088 tmp4_6 = _inWrapSeparator;
3089 tmp4_7 = _inActualPositionOnLine;
3090 tmp4_8 = _inAtStartOfLine;
3091 tmp4_9 = _inAfterNewLineIndent;
3092 {
3093 modelica_metatype _toks = NULL((void*)0);
3094 modelica_metatype _tok = NULL((void*)0);
3095 modelica_metatype _asep = NULL((void*)0);
3096 modelica_metatype _wsep = NULL((void*)0);
3097 modelica_integer _pos;
3098 modelica_integer _aind;
3099 modelica_integer _idx;
3100 modelica_integer _anum;
3101 modelica_integer _wwidth;
3102 modelica_boolean _isstart;
3103 volatile mmc_switch_type tmp4;
3104 int tmp5;
3105 // _toks has no default value.
3106 // _tok has no default value.
3107 // _asep has no default value.
3108 // _wsep has no default value.
3109 // _pos has no default value.
3110 // _aind has no default value.
3111 // _idx has no default value.
3112 // _anum has no default value.
3113 // _wwidth has no default value.
3114 // _isstart has no default value.
3115 tmp4 = 0;
3116 for (; tmp4 < 5; tmp4++) {
3117 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
3118 case 0: {
3119 if (!listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
3120
3121 _pos = tmp4_7;
3122 _isstart = tmp4_8;
3123 /* Pattern matching succeeded */
3124#line 1510 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3125 tmp1_c0 = _pos;
3126#line 1510 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3127 tmp1_c1 = _isstart;
3128#line 3128 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3129 goto tmp3_done;
3130 }
3131 case 1: {
3132 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
3133 tmpMeta[2] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
3134 tmpMeta[3] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3135
3136 _tok = tmpMeta[2];
3137 _toks = tmpMeta[3];
3138 _idx = tmp4_2;
3139 _anum = tmp4_3;
3140 _asep = tmp4_4;
3141 _wwidth = tmp4_5;
3142 _wsep = tmp4_6;
3143 _pos = tmp4_7;
3144 _isstart = tmp4_8;
3145 _aind = tmp4_9;
3146 /* Pattern matching succeeded */
3147 /* Check guard condition after assignments */
3148 if (!((_idx > ((modelica_integer) 0)) && (modelica_integer_mod(_idx, _anum) == ((modelica_integer) 0)))) goto tmp3_end;
3149#line 1518 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3150 _pos = omc_Tpl_tokString(threadData, _asep, _pos, _isstart, _aind ,&_isstart ,&_aind);
3151#line 3151 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3152
3153#line 1519 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3154 _pos = omc_Tpl_tryWrapString(threadData, _wwidth, _wsep, _pos, _isstart, _aind ,&_isstart ,&_aind);
3155#line 3155 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3156
3157#line 1520 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3158 _pos = omc_Tpl_tokString(threadData, _tok, _pos, _isstart, _aind ,&_isstart ,&_aind);
3159#line 3159 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3160#line 1521 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3161 /* Tail recursive call */
3162#line 1521 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3163 _inTokens = _toks;
3164#line 1521 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3165 _inActualIndex = ((modelica_integer) 1) + _idx;
3166#line 1521 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3167 _inAlignNum = _anum;
3168#line 1521 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3169 _inAlignSeparator = _asep;
3170#line 1521 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3171 _inWrapWidth = _wwidth;
3172#line 1521 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3173 _inWrapSeparator = _wsep;
3174#line 1521 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3175 _inActualPositionOnLine = _pos;
3176#line 1521 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3177 _inAtStartOfLine = _isstart;
3178#line 1521 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3179 _inAfterNewLineIndent = _aind;
3180#line 1521 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3181 goto _tailrecursive;
3182#line 1521 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3183 /* TODO: Make sure any eventual dead code below is never generated */
3184#line 3184 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3185 goto tmp3_done;
3186 }
3187 case 2: {
3188 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
3189 tmpMeta[2] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
3190 tmpMeta[3] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3191
3192 _tok = tmpMeta[2];
3193 _toks = tmpMeta[3];
3194 _idx = tmp4_2;
3195 _anum = tmp4_3;
3196 _asep = tmp4_4;
3197 _wwidth = tmp4_5;
3198 _wsep = tmp4_6;
3199 _pos = tmp4_7;
3200 _isstart = tmp4_8;
3201 _aind = tmp4_9;
3202 /* Pattern matching succeeded */
3203 /* Check guard condition after assignments */
3204 if (!((_wwidth > ((modelica_integer) 0)) && (_pos >= _wwidth))) goto tmp3_end;
3205#line 1532 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3206 _pos = omc_Tpl_tokString(threadData, _wsep, _pos, _isstart, _aind ,&_isstart ,&_aind);
3207#line 3207 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3208
3209#line 1533 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3210 _pos = omc_Tpl_tokString(threadData, _tok, _pos, _isstart, _aind ,&_isstart ,&_aind);
3211#line 3211 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3212#line 1534 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3213 /* Tail recursive call */
3214#line 1534 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3215 _inTokens = _toks;
3216#line 1534 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3217 _inActualIndex = ((modelica_integer) 1) + _idx;
3218#line 1534 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3219 _inAlignNum = _anum;
3220#line 1534 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3221 _inAlignSeparator = _asep;
3222#line 1534 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3223 _inWrapWidth = _wwidth;
3224#line 1534 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3225 _inWrapSeparator = _wsep;
3226#line 1534 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3227 _inActualPositionOnLine = _pos;
3228#line 1534 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3229 _inAtStartOfLine = _isstart;
3230#line 1534 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3231 _inAfterNewLineIndent = _aind;
3232#line 1534 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3233 goto _tailrecursive;
3234#line 1534 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3235 /* TODO: Make sure any eventual dead code below is never generated */
3236#line 3236 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3237 goto tmp3_done;
3238 }
3239 case 3: {
3240 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
3241 tmpMeta[2] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
3242 tmpMeta[3] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3243
3244 _tok = tmpMeta[2];
3245 _toks = tmpMeta[3];
3246 _idx = tmp4_2;
3247 _anum = tmp4_3;
3248 _asep = tmp4_4;
3249 _wwidth = tmp4_5;
3250 _wsep = tmp4_6;
3251 _pos = tmp4_7;
3252 _isstart = tmp4_8;
3253 _aind = tmp4_9;
3254 /* Pattern matching succeeded */
3255#line 1545 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3256 _pos = omc_Tpl_tokString(threadData, _tok, _pos, _isstart, _aind ,&_isstart ,&_aind);
3257#line 3257 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3258#line 1546 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3259 /* Tail recursive call */
3260#line 1546 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3261 _inTokens = _toks;
3262#line 1546 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3263 _inActualIndex = ((modelica_integer) 1) + _idx;
3264#line 1546 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3265 _inAlignNum = _anum;
3266#line 1546 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3267 _inAlignSeparator = _asep;
3268#line 1546 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3269 _inWrapWidth = _wwidth;
3270#line 1546 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3271 _inWrapSeparator = _wsep;
3272#line 1546 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3273 _inActualPositionOnLine = _pos;
3274#line 1546 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3275 _inAtStartOfLine = _isstart;
3276#line 1546 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3277 _inAfterNewLineIndent = _aind;
3278#line 1546 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3279 goto _tailrecursive;
3280#line 1546 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3281 /* TODO: Make sure any eventual dead code below is never generated */
3282#line 3282 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3283 goto tmp3_done;
3284 }
3285 case 4: {
3286 modelica_boolean tmp6;
3287
3288 /* Pattern matching succeeded */
3289#line 1555 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3290 /* Pattern-matching assignment */
3291#line 1555 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3292 tmp6 = omc_Flags_isSet(threadData, _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)));
3293#line 1555 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3294 if (1 != tmp6) goto goto_2;
3295#line 3295 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3296
3297#line 1555 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3298 omc_Debug_trace(threadData, _OMC_LIT42((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3)));
3299#line 3299 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3300#line 1556 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3301 goto goto_2;
3302#line 3302 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3303 goto tmp3_done;
3304 }
3305 }
3306 goto tmp3_end;
3307 tmp3_end: ;
3308 }
3309 goto goto_2;
3310 goto_2:;
3311 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3312 goto tmp3_done;
3313 tmp3_done:;
3314 }
3315 }
3316 _outActualPositionOnLine = tmp1_c0;
3317 _outAtStartOfLine = tmp1_c1;
3318 _return: OMC_LABEL_UNUSED__attribute__((unused))
3319 if (out_outAtStartOfLine) { *out_outAtStartOfLine = _outAtStartOfLine; }
3320 return _outActualPositionOnLine;
3321}
3322PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_iterAlignWrapString(threadData_t *threadData, modelica_metatype _inTokens, modelica_metatype _inActualIndex, modelica_metatype _inAlignNum, modelica_metatype _inAlignSeparator, modelica_metatype _inWrapWidth, modelica_metatype _inWrapSeparator, modelica_metatype _inActualPositionOnLine, modelica_metatype _inAtStartOfLine, modelica_metatype _inAfterNewLineIndent, modelica_metatype *out_outAtStartOfLine)
3323{
3324 modelica_integer tmp1;
3325 modelica_integer tmp2;
3326 modelica_integer tmp3;
3327 modelica_integer tmp4;
3328 modelica_integer tmp5;
3329 modelica_integer tmp6;
3330 modelica_boolean _outAtStartOfLine;
3331 modelica_integer _outActualPositionOnLine;
3332 modelica_metatype out_outActualPositionOnLine;
3333 tmp1 = mmc_unbox_integer(_inActualIndex)(((mmc_sint_t) (_inActualIndex)) >> 1);
3334 tmp2 = mmc_unbox_integer(_inAlignNum)(((mmc_sint_t) (_inAlignNum)) >> 1);
3335 tmp3 = mmc_unbox_integer(_inWrapWidth)(((mmc_sint_t) (_inWrapWidth)) >> 1);
3336 tmp4 = mmc_unbox_integer(_inActualPositionOnLine)(((mmc_sint_t) (_inActualPositionOnLine)) >> 1);
3337 tmp5 = mmc_unbox_integer(_inAtStartOfLine)(((mmc_sint_t) (_inAtStartOfLine)) >> 1);
3338 tmp6 = mmc_unbox_integer(_inAfterNewLineIndent)(((mmc_sint_t) (_inAfterNewLineIndent)) >> 1);
3339 _outActualPositionOnLine = omc_Tpl_iterAlignWrapString(threadData, _inTokens, tmp1, tmp2, _inAlignSeparator, tmp3, _inWrapSeparator, tmp4, tmp5, tmp6, &_outAtStartOfLine);
3340 out_outActualPositionOnLine = mmc_mk_icon(_outActualPositionOnLine);
3341 if (out_outAtStartOfLine) { *out_outAtStartOfLine = mmc_mk_icon(_outAtStartOfLine); }
3342 return out_outActualPositionOnLine;
3343}
3344
3345PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_iterSeparatorAlignWrapString(threadData_t *threadData, modelica_metatype _inTokens, modelica_metatype _inSeparator, modelica_integer _inActualIndex, modelica_integer _inAlignNum, modelica_metatype _inAlignSeparator, modelica_integer _inWrapWidth, modelica_metatype _inWrapSeparator, modelica_integer _inActualPositionOnLine, modelica_boolean _inAtStartOfLine, modelica_integer _inAfterNewLineIndent, modelica_boolean *out_outAtStartOfLine)
3346{
3347 modelica_integer _outActualPositionOnLine;
3348 modelica_boolean _outAtStartOfLine;
3349 modelica_metatype _toks = NULL((void*)0);
3350 modelica_metatype _tok = NULL((void*)0);
3351 modelica_metatype _septok = NULL((void*)0);
3352 modelica_integer _idx;
3353 modelica_integer _anum;
3354 modelica_metatype _asep = NULL((void*)0);
3355 modelica_integer _wwidth;
3356 modelica_metatype _wsep = NULL((void*)0);
3357 modelica_integer _pos;
3358 modelica_boolean _isstart;
3359 modelica_integer _aind;
3360 modelica_integer tmp1;
3361 modelica_integer tmp2;
3362 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
3363 MMC_SO()mmc_check_stackoverflow(threadData);
3364 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3365 // _outActualPositionOnLine has no default value.
3366 // _outAtStartOfLine has no default value.
3367 _toks = _inTokens;
3368 // _tok has no default value.
3369 _septok = _inSeparator;
3370 _idx = _inActualIndex;
3371 _anum = _inAlignNum;
3372 _asep = _inAlignSeparator;
3373 _wwidth = _inWrapWidth;
3374 _wsep = _inWrapSeparator;
3375 _pos = _inActualPositionOnLine;
3376 _isstart = _inAtStartOfLine;
3377 _aind = _inAfterNewLineIndent;
3378#line 1472 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3379 while(1)
3380#line 1472 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3381 {
3382#line 1472 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3383 if(!(!listEmpty(_toks)((*(mmc_uint_t*)((void*)((char*)(_toks) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
)) break;
3384#line 1473 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3385 /* Pattern-matching assignment */
3386#line 1473 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3387 tmpMeta[0] = _toks;
3388#line 1473 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3389 if (listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3390#line 1473 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3391 tmpMeta[1] = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
3392#line 1473 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3393 tmpMeta[2] = MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
3394#line 1473 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3395 _tok = tmpMeta[1];
3396#line 1473 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3397 _toks = tmpMeta[2];
3398#line 3398 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3399
3400#line 1474 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3401 if(((_idx > ((modelica_integer) 0)) && (modelica_integer_mod(_idx, _anum) == ((modelica_integer) 0))))
3402#line 1474 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3403 {
3404#line 1475 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3405 _pos = omc_Tpl_tokString(threadData, _asep, _pos, _isstart, _aind ,&_isstart ,&_aind);
3406#line 3406 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3407 }
3408 else
3409 {
3410#line 1477 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3411 _pos = omc_Tpl_tokString(threadData, _septok, _pos, _isstart, _aind ,&_isstart ,&_aind);
3412#line 3412 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3413 }
3414
3415#line 1479 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3416 _pos = omc_Tpl_tryWrapString(threadData, _wwidth, _wsep, _pos, _isstart, _aind ,&_isstart ,&_aind);
3417#line 3417 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3418
3419#line 1480 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3420 _pos = omc_Tpl_tokString(threadData, _tok, _pos, _isstart, _aind ,&_isstart ,&_aind);
3421#line 3421 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3422
3423#line 1481 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3424 _idx = ((modelica_integer) 1) + _idx;
3425#line 3425 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3426 }
3427
3428#line 1483 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3429 /* Pattern-matching assignment */
3430#line 1483 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3431 tmpMeta[0] = mmc_mk_box2(0, mmc_mk_integermmc_mk_icon(_pos), mmc_mk_boolean(_isstart)((_isstart) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))));
3432#line 1483 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3433 tmpMeta[1] = tmpMeta[0];
3434#line 1483 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3435 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
3436#line 1483 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3437 tmp1 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
3438#line 1483 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3439 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
3440#line 1483 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3441 tmp2 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
3442#line 1483 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3443 _outActualPositionOnLine = tmp1 /* pattern as ty=Integer */;
3444#line 1483 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3445 _outAtStartOfLine = tmp2 /* pattern as ty=Boolean */;
3446#line 3446 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3447 _return: OMC_LABEL_UNUSED__attribute__((unused))
3448 if (out_outAtStartOfLine) { *out_outAtStartOfLine = _outAtStartOfLine; }
3449 return _outActualPositionOnLine;
3450}
3451PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_iterSeparatorAlignWrapString(threadData_t *threadData, modelica_metatype _inTokens, modelica_metatype _inSeparator, modelica_metatype _inActualIndex, modelica_metatype _inAlignNum, modelica_metatype _inAlignSeparator, modelica_metatype _inWrapWidth, modelica_metatype _inWrapSeparator, modelica_metatype _inActualPositionOnLine, modelica_metatype _inAtStartOfLine, modelica_metatype _inAfterNewLineIndent, modelica_metatype *out_outAtStartOfLine)
3452{
3453 modelica_integer tmp1;
3454 modelica_integer tmp2;
3455 modelica_integer tmp3;
3456 modelica_integer tmp4;
3457 modelica_integer tmp5;
3458 modelica_integer tmp6;
3459 modelica_boolean _outAtStartOfLine;
3460 modelica_integer _outActualPositionOnLine;
3461 modelica_metatype out_outActualPositionOnLine;
3462 tmp1 = mmc_unbox_integer(_inActualIndex)(((mmc_sint_t) (_inActualIndex)) >> 1);
3463 tmp2 = mmc_unbox_integer(_inAlignNum)(((mmc_sint_t) (_inAlignNum)) >> 1);
3464 tmp3 = mmc_unbox_integer(_inWrapWidth)(((mmc_sint_t) (_inWrapWidth)) >> 1);
3465 tmp4 = mmc_unbox_integer(_inActualPositionOnLine)(((mmc_sint_t) (_inActualPositionOnLine)) >> 1);
3466 tmp5 = mmc_unbox_integer(_inAtStartOfLine)(((mmc_sint_t) (_inAtStartOfLine)) >> 1);
3467 tmp6 = mmc_unbox_integer(_inAfterNewLineIndent)(((mmc_sint_t) (_inAfterNewLineIndent)) >> 1);
3468 _outActualPositionOnLine = omc_Tpl_iterSeparatorAlignWrapString(threadData, _inTokens, _inSeparator, tmp1, tmp2, _inAlignSeparator, tmp3, _inWrapSeparator, tmp4, tmp5, tmp6, &_outAtStartOfLine);
3469 out_outActualPositionOnLine = mmc_mk_icon(_outActualPositionOnLine);
3470 if (out_outAtStartOfLine) { *out_outAtStartOfLine = mmc_mk_icon(_outAtStartOfLine); }
3471 return out_outActualPositionOnLine;
3472}
3473
3474PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_iterSeparatorString(threadData_t *threadData, modelica_metatype _inTokens, modelica_metatype _inSeparator, modelica_integer _inActualPositionOnLine, modelica_boolean _inAtStartOfLine, modelica_integer _inAfterNewLineIndent, modelica_boolean *out_outAtStartOfLine)
3475{
3476 modelica_integer _outActualPositionOnLine;
3477 modelica_boolean _outAtStartOfLine;
3478 modelica_integer tmp1_c0 __attribute__((unused)) = 0;
3479 modelica_boolean tmp1_c1 __attribute__((unused)) = 0;
3480 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
3481 MMC_SO()mmc_check_stackoverflow(threadData);
3482 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3483 // _outActualPositionOnLine has no default value.
3484 // _outAtStartOfLine has no default value.
3485#line 1422 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3486
3487#line 1422 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3488
3489#line 3489 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3490 { /* match expression */
3491 modelica_metatype tmp4_1;modelica_metatype tmp4_2;modelica_integer tmp4_3;modelica_boolean tmp4_4;modelica_integer tmp4_5;
3492 tmp4_1 = _inTokens;
3493 tmp4_2 = _inSeparator;
3494 tmp4_3 = _inActualPositionOnLine;
3495 tmp4_4 = _inAtStartOfLine;
3496 tmp4_5 = _inAfterNewLineIndent;
3497 {
3498 modelica_metatype _toks = NULL((void*)0);
3499 modelica_metatype _tok = NULL((void*)0);
3500 modelica_metatype _septok = NULL((void*)0);
3501 modelica_integer _pos;
3502 modelica_integer _aind;
3503 modelica_boolean _isstart;
3504 volatile mmc_switch_type tmp4;
3505 int tmp5;
3506 // _toks has no default value.
3507 // _tok has no default value.
3508 // _septok has no default value.
3509 // _pos has no default value.
3510 // _aind has no default value.
3511 // _isstart has no default value.
3512 tmp4 = 0;
3513 for (; tmp4 < 2; tmp4++) {
3514 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
3515 case 0: {
3516 if (!listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
3517
3518 _pos = tmp4_3;
3519 _isstart = tmp4_4;
3520 /* Pattern matching succeeded */
3521#line 1430 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3522 tmp1_c0 = _pos;
3523#line 1430 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3524 tmp1_c1 = _isstart;
3525#line 3525 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3526 goto tmp3_done;
3527 }
3528 case 1: {
3529 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
3530 tmpMeta[2] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
3531 tmpMeta[3] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3532
3533 _tok = tmpMeta[2];
3534 _toks = tmpMeta[3];
3535 _septok = tmp4_2;
3536 _pos = tmp4_3;
3537 _isstart = tmp4_4;
3538 _aind = tmp4_5;
3539 /* Pattern matching succeeded */
3540#line 1435 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3541 _pos = omc_Tpl_tokString(threadData, _septok, _pos, _isstart, _aind ,&_isstart ,&_aind);
3542#line 3542 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3543
3544#line 1436 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3545 _pos = omc_Tpl_tokString(threadData, _tok, _pos, _isstart, _aind ,&_isstart ,&_aind);
3546#line 3546 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3547#line 1437 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3548 /* Tail recursive call */
3549#line 1437 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3550 _inTokens = _toks;
3551#line 1437 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3552 _inSeparator = _septok;
3553#line 1437 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3554 _inActualPositionOnLine = _pos;
3555#line 1437 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3556 _inAtStartOfLine = _isstart;
3557#line 1437 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3558 _inAfterNewLineIndent = _aind;
3559#line 1437 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3560 goto _tailrecursive;
3561#line 1437 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3562 /* TODO: Make sure any eventual dead code below is never generated */
3563#line 3563 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3564 goto tmp3_done;
3565 }
3566 }
3567 goto tmp3_end;
3568 tmp3_end: ;
3569 }
3570 goto goto_2;
3571 goto_2:;
3572 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3573 goto tmp3_done;
3574 tmp3_done:;
3575 }
3576 }
3577 _outActualPositionOnLine = tmp1_c0;
3578 _outAtStartOfLine = tmp1_c1;
3579 _return: OMC_LABEL_UNUSED__attribute__((unused))
3580 if (out_outAtStartOfLine) { *out_outAtStartOfLine = _outAtStartOfLine; }
3581 return _outActualPositionOnLine;
3582}
3583PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_iterSeparatorString(threadData_t *threadData, modelica_metatype _inTokens, modelica_metatype _inSeparator, modelica_metatype _inActualPositionOnLine, modelica_metatype _inAtStartOfLine, modelica_metatype _inAfterNewLineIndent, modelica_metatype *out_outAtStartOfLine)
3584{
3585 modelica_integer tmp1;
3586 modelica_integer tmp2;
3587 modelica_integer tmp3;
3588 modelica_boolean _outAtStartOfLine;
3589 modelica_integer _outActualPositionOnLine;
3590 modelica_metatype out_outActualPositionOnLine;
3591 tmp1 = mmc_unbox_integer(_inActualPositionOnLine)(((mmc_sint_t) (_inActualPositionOnLine)) >> 1);
3592 tmp2 = mmc_unbox_integer(_inAtStartOfLine)(((mmc_sint_t) (_inAtStartOfLine)) >> 1);
3593 tmp3 = mmc_unbox_integer(_inAfterNewLineIndent)(((mmc_sint_t) (_inAfterNewLineIndent)) >> 1);
3594 _outActualPositionOnLine = omc_Tpl_iterSeparatorString(threadData, _inTokens, _inSeparator, tmp1, tmp2, tmp3, &_outAtStartOfLine);
3595 out_outActualPositionOnLine = mmc_mk_icon(_outActualPositionOnLine);
3596 if (out_outAtStartOfLine) { *out_outAtStartOfLine = mmc_mk_icon(_outAtStartOfLine); }
3597 return out_outActualPositionOnLine;
3598}
3599
3600PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_blockString(threadData_t *threadData, modelica_metatype _inBlockType, modelica_metatype _inTokens, modelica_integer _inActualPositionOnLine, modelica_boolean _inAtStartOfLine, modelica_integer _inAfterNewLineIndent, modelica_boolean *out_outAtStartOfLine, modelica_integer *out_outAfterNewLineIndent)
3601{
3602 modelica_integer _outActualPositionOnLine;
3603 modelica_boolean _outAtStartOfLine;
3604 modelica_integer _outAfterNewLineIndent;
3605 modelica_integer tmp1_c0 __attribute__((unused)) = 0;
3606 modelica_boolean tmp1_c1 __attribute__((unused)) = 0;
3607 modelica_integer tmp1_c2 __attribute__((unused)) = 0;
3608 modelica_metatype tmpMeta[13] __attribute__((unused)) = {0};
3609 MMC_SO()mmc_check_stackoverflow(threadData);
3610 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3611 // _outActualPositionOnLine has no default value.
3612 // _outAtStartOfLine has no default value.
3613 // _outAfterNewLineIndent has no default value.
3614#line 1254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3615
3616#line 1254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3617
3618#line 1254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3619
3620#line 3620 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3621 { /* match expression */
3622 modelica_metatype tmp4_1;modelica_metatype tmp4_2;modelica_integer tmp4_3;modelica_boolean tmp4_4;modelica_integer tmp4_5;
3623 tmp4_1 = _inBlockType;
3624 tmp4_2 = _inTokens;
3625 tmp4_3 = _inActualPositionOnLine;
3626 tmp4_4 = _inAtStartOfLine;
3627 tmp4_5 = _inAfterNewLineIndent;
3628 {
3629 modelica_metatype _toks = NULL((void*)0);
3630 modelica_metatype _septok = NULL((void*)0);
3631 modelica_metatype _tok = NULL((void*)0);
3632 modelica_metatype _asep = NULL((void*)0);
3633 modelica_metatype _wsep = NULL((void*)0);
3634 modelica_integer _nchars;
3635 modelica_integer _tsnchars;
3636 modelica_integer _aind;
3637 modelica_integer _w;
3638 modelica_integer _aoffset;
3639 modelica_integer _anum;
3640 modelica_integer _wwidth;
3641 modelica_integer _blen;
3642 modelica_boolean _isstart;
3643 volatile mmc_switch_type tmp4;
3644 int tmp5;
3645 // _toks has no default value.
3646 // _septok has no default value.
3647 // _tok has no default value.
3648 // _asep has no default value.
3649 // _wsep has no default value.
3650 // _nchars has no default value.
3651 // _tsnchars has no default value.
3652 // _aind has no default value.
3653 // _w has no default value.
3654 // _aoffset has no default value.
3655 // _anum has no default value.
3656 // _wwidth has no default value.
3657 // _blen has no default value.
3658 // _isstart has no default value.
3659 tmp4 = 0;
3660 for (; tmp4 < 15; tmp4++) {
3661 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
3662 case 0: {
3663 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((0 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
3664
3665 _toks = tmp4_2;
3666 _nchars = tmp4_3;
3667 _isstart = tmp4_4;
3668 _aind = tmp4_5;
3669 /* Pattern matching succeeded */
3670#line 1264 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3671 tmp1_c0 = omc_Tpl_tokensString(threadData, _toks, _nchars, _isstart, _aind, &tmp1_c1, &tmp1_c2);
3672#line 3672 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3673 goto tmp3_done;
3674 }
3675 case 1: {
3676 modelica_integer tmp6;
3677 if (1 != tmp4_4) goto tmp3_end;
3678 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
3679 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3680 tmp6 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
3681
3682 _w = tmp6 /* pattern as ty=Integer */;
3683 _toks = tmp4_2;
3684 _nchars = tmp4_3;
3685 _aind = tmp4_5;
3686 /* Pattern matching succeeded */
3687#line 1271 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3688 _tsnchars = omc_Tpl_tokensString(threadData, _toks, _w + _nchars, 1, _w + _aind ,&_isstart, NULL((void*)0));
3689#line 3689 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3690
3691#line 1273 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3692 _nchars = (_isstart?_nchars:_tsnchars);
3693#line 3693 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3694#line 1274 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3695 tmp1_c0 = _nchars;
3696#line 1274 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3697 tmp1_c1 = _isstart;
3698#line 1274 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3699 tmp1_c2 = _aind;
3700#line 3700 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3701 goto tmp3_done;
3702 }
3703 case 2: {
3704 modelica_integer tmp7;
3705 if (0 != tmp4_4) goto tmp3_end;
3706 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
3707 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3708 tmp7 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
3709
3710 _w = tmp7 /* pattern as ty=Integer */;
3711 _toks = tmp4_2;
3712 _nchars = tmp4_3;
3713 _aind = tmp4_5;
3714 /* Pattern matching succeeded */
3715#line 1279 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3716 omc_Print_printBufSpace(threadData, _w);
3717#line 3717 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3718
3719#line 1280 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3720 _tsnchars = omc_Tpl_tokensString(threadData, _toks, _w + _nchars, 0, _w + _aind ,&_isstart, NULL((void*)0));
3721#line 3721 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3722
3723#line 1282 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3724 _nchars = (_isstart?_aind:_tsnchars);
3725#line 3725 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3726#line 1283 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3727 tmp1_c0 = _nchars;
3728#line 1283 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3729 tmp1_c1 = _isstart;
3730#line 1283 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3731 tmp1_c2 = _aind;
3732#line 3732 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3733 goto tmp3_done;
3734 }
3735 case 3: {
3736 modelica_integer tmp8;
3737 if (1 != tmp4_4) goto tmp3_end;
3738 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
3739 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3740 tmp8 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
3741
3742 _w = tmp8 /* pattern as ty=Integer */;
3743 _toks = tmp4_2;
3744 _nchars = tmp4_3;
3745 _aind = tmp4_5;
3746 /* Pattern matching succeeded */
3747#line 1288 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3748 _blen = omc_Print_getBufLength(threadData);
3749#line 3749 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3750
3751#line 1289 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3752 _tsnchars = omc_Tpl_tokensString(threadData, _toks, ((modelica_integer) 0), 1, _w ,&_isstart, NULL((void*)0));
3753#line 3753 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3754
3755#line 1291 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3756 _blen = omc_Print_getBufLength(threadData) - _blen;
3757#line 3757 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3758
3759#line 1292 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3760 _nchars = ((_blen == ((modelica_integer) 0))?_nchars:(_isstart?_aind:_tsnchars));
3761#line 3761 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3762#line 1293 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3763 tmp1_c0 = _nchars;
3764#line 1293 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3765 tmp1_c1 = _isstart;
3766#line 1293 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3767 tmp1_c2 = _aind;
3768#line 3768 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3769 goto tmp3_done;
3770 }
3771 case 4: {
3772 modelica_integer tmp9;
3773 if (0 != tmp4_4) goto tmp3_end;
3774 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
3775 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3776 tmp9 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
3777
3778 _w = tmp9 /* pattern as ty=Integer */;
3779 _toks = tmp4_2;
3780 _nchars = tmp4_3;
3781 _aind = tmp4_5;
3782 /* Pattern matching succeeded */
3783#line 1298 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3784 _tsnchars = omc_Tpl_tokensString(threadData, _toks, _nchars, 0, _w ,&_isstart, NULL((void*)0));
3785#line 3785 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3786
3787#line 1300 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3788 _nchars = (_isstart?_aind:_tsnchars);
3789#line 3789 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3790#line 1301 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3791 tmp1_c0 = _nchars;
3792#line 1301 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3793 tmp1_c1 = _isstart;
3794#line 1301 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3795 tmp1_c2 = _aind;
3796#line 3796 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3797 goto tmp3_done;
3798 }
3799 case 5: {
3800 modelica_integer tmp10;
3801 if (1 != tmp4_4) goto tmp3_end;
3802 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,3,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((3 +3) & 255) << 2)))
== 0) goto tmp3_end;
3803 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3804 tmp10 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
3805
3806 _w = tmp10 /* pattern as ty=Integer */;
3807 _toks = tmp4_2;
3808 _nchars = tmp4_3;
3809 _aind = tmp4_5;
3810 /* Pattern matching succeeded */
3811#line 1306 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3812 _blen = omc_Print_getBufLength(threadData);
3813#line 3813 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3814
3815#line 1307 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3816 _tsnchars = omc_Tpl_tokensString(threadData, _toks, _nchars, 1, _aind + _w ,&_isstart, NULL((void*)0));
3817#line 3817 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3818
3819#line 1309 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3820 _blen = omc_Print_getBufLength(threadData) - _blen;
3821#line 3821 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3822
3823#line 1310 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3824 _nchars = ((_blen == ((modelica_integer) 0))?_nchars:(_isstart?_aind:_tsnchars));
3825#line 3825 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3826#line 1311 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3827 tmp1_c0 = _nchars;
3828#line 1311 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3829 tmp1_c1 = _isstart;
3830#line 1311 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3831 tmp1_c2 = _aind;
3832#line 3832 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3833 goto tmp3_done;
3834 }
3835 case 6: {
3836 modelica_integer tmp11;
3837 if (0 != tmp4_4) goto tmp3_end;
3838 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,3,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((3 +3) & 255) << 2)))
== 0) goto tmp3_end;
3839 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3840 tmp11 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
3841
3842 _w = tmp11 /* pattern as ty=Integer */;
3843 _toks = tmp4_2;
3844 _nchars = tmp4_3;
3845 _aind = tmp4_5;
3846 /* Pattern matching succeeded */
3847#line 1316 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3848 _tsnchars = omc_Tpl_tokensString(threadData, _toks, _nchars, 0, _aind + _w ,&_isstart, NULL((void*)0));
3849#line 3849 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3850
3851#line 1318 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3852 _nchars = (_isstart?_aind:_tsnchars);
3853#line 3853 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3854#line 1319 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3855 tmp1_c0 = _nchars;
3856#line 1319 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3857 tmp1_c1 = _isstart;
3858#line 1319 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3859 tmp1_c2 = _aind;
3860#line 3860 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3861 goto tmp3_done;
3862 }
3863 case 7: {
3864 modelica_integer tmp12;
3865 if (1 != tmp4_4) goto tmp3_end;
3866 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,4,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((4 +3) & 255) << 2)))
== 0) goto tmp3_end;
3867 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3868 tmp12 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
3869
3870 _w = tmp12 /* pattern as ty=Integer */;
3871 _toks = tmp4_2;
3872 _nchars = tmp4_3;
3873 _aind = tmp4_5;
3874 /* Pattern matching succeeded */
3875#line 1324 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3876 _blen = omc_Print_getBufLength(threadData);
3877#line 3877 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3878
3879#line 1325 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3880 _tsnchars = omc_Tpl_tokensString(threadData, _toks, _nchars, 1, _nchars + _w ,&_isstart, NULL((void*)0));
3881#line 3881 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3882
3883#line 1327 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3884 _blen = omc_Print_getBufLength(threadData) - _blen;
3885#line 3885 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3886
3887#line 1328 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3888 _nchars = ((_blen == ((modelica_integer) 0))?_nchars:(_isstart?_aind:_tsnchars));
3889#line 3889 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3890#line 1329 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3891 tmp1_c0 = _nchars;
3892#line 1329 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3893 tmp1_c1 = _isstart;
3894#line 1329 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3895 tmp1_c2 = _aind;
3896#line 3896 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3897 goto tmp3_done;
3898 }
3899 case 8: {
3900 modelica_integer tmp13;
3901 if (0 != tmp4_4) goto tmp3_end;
3902 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,4,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((4 +3) & 255) << 2)))
== 0) goto tmp3_end;
3903 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3904 tmp13 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
3905
3906 _w = tmp13 /* pattern as ty=Integer */;
3907 _toks = tmp4_2;
3908 _nchars = tmp4_3;
3909 _aind = tmp4_5;
3910 /* Pattern matching succeeded */
3911#line 1334 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3912 _tsnchars = omc_Tpl_tokensString(threadData, _toks, _nchars, 0, _nchars + _w ,&_isstart, NULL((void*)0));
3913#line 3913 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3914
3915#line 1336 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3916 _nchars = (_isstart?_aind:_tsnchars);
3917#line 3917 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3918#line 1337 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3919 tmp1_c0 = _nchars;
3920#line 1337 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3921 tmp1_c1 = _isstart;
3922#line 1337 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3923 tmp1_c2 = _aind;
3924#line 3924 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3925 goto tmp3_done;
3926 }
3927 case 9: {
3928 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,5,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((5 +3) & 255) << 2)))
== 0) goto tmp3_end;
3929 if (!listEmpty(tmp4_2)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
3930
3931 _nchars = tmp4_3;
3932 _isstart = tmp4_4;
3933 _aind = tmp4_5;
3934 /* Pattern matching succeeded */
3935#line 1343 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3936 tmp1_c0 = _nchars;
3937#line 1343 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3938 tmp1_c1 = _isstart;
3939#line 1343 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3940 tmp1_c2 = _aind;
3941#line 3941 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3942 goto tmp3_done;
3943 }
3944 case 10: {
3945 modelica_integer tmp14;
3946 modelica_integer tmp15;
3947 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,5,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((5 +3) & 255) << 2)))
== 0) goto tmp3_end;
3948 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3949 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (4)))))
;
3950 if (!optionNone(tmpMeta[4])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[4]) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
3951 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (5)))))
;
3952 tmp14 = mmc_unbox_integer(tmpMeta[5])(((mmc_sint_t) (tmpMeta[5])) >> 1);
3953 if (0 != tmp14) goto tmp3_end;
3954 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (8)))))
;
3955 tmp15 = mmc_unbox_integer(tmpMeta[6])(((mmc_sint_t) (tmpMeta[6])) >> 1);
3956 if (0 != tmp15) goto tmp3_end;
3957
3958 _toks = tmp4_2;
3959 _nchars = tmp4_3;
3960 _isstart = tmp4_4;
3961 _aind = tmp4_5;
3962 /* Pattern matching succeeded */
3963#line 1352 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3964 tmp1_c0 = omc_Tpl_tokensString(threadData, _toks, _nchars, _isstart, _aind, &tmp1_c1, &tmp1_c2);
3965#line 3965 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3966 goto tmp3_done;
3967 }
3968 case 11: {
3969 modelica_integer tmp16;
3970 modelica_integer tmp17;
3971 if (listEmpty(tmp4_2)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
3972 tmpMeta[3] = MMC_CAR(tmp4_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
3973 tmpMeta[4] = MMC_CDR(tmp4_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(2)))))
;
3974 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,5,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((5 +3) & 255) << 2)))
== 0) goto tmp3_end;
3975 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3976 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (4)))))
;
3977 if (optionNone(tmpMeta[6])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[6]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[6])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[6]) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
3978 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[6]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[6]) - 3
))) + (1)))))
;
3979 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (5)))))
;
3980 tmp16 = mmc_unbox_integer(tmpMeta[8])(((mmc_sint_t) (tmpMeta[8])) >> 1);
3981 if (0 != tmp16) goto tmp3_end;
3982 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (8)))))
;
3983 tmp17 = mmc_unbox_integer(tmpMeta[9])(((mmc_sint_t) (tmpMeta[9])) >> 1);
3984 if (0 != tmp17) goto tmp3_end;
3985
3986 _tok = tmpMeta[3];
3987 _toks = tmpMeta[4];
3988 _septok = tmpMeta[7];
3989 _nchars = tmp4_3;
3990 _isstart = tmp4_4;
3991 _aind = tmp4_5;
3992 /* Pattern matching succeeded */
3993#line 1365 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3994 _nchars = omc_Tpl_tokString(threadData, _tok, _nchars, _isstart, _aind ,&_isstart ,&_aind);
3995#line 3995 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
3996
3997#line 1366 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
3998 _nchars = omc_Tpl_iterSeparatorString(threadData, _toks, _septok, _nchars, _isstart, _aind ,&_isstart);
3999#line 3999 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4000#line 1368 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4001 tmp1_c0 = _nchars;
4002#line 1368 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4003 tmp1_c1 = _isstart;
4004#line 1368 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4005 tmp1_c2 = _aind;
4006#line 4006 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4007 goto tmp3_done;
4008 }
4009 case 12: {
4010 modelica_integer tmp18;
4011 modelica_integer tmp19;
4012 modelica_integer tmp20;
4013 if (listEmpty(tmp4_2)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4014 tmpMeta[3] = MMC_CAR(tmp4_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
4015 tmpMeta[4] = MMC_CDR(tmp4_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(2)))))
;
4016 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,5,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((5 +3) & 255) << 2)))
== 0) goto tmp3_end;
4017 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4018 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (4)))))
;
4019 if (optionNone(tmpMeta[6])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[6]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[6])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[6]) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
4020 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[6]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[6]) - 3
))) + (1)))))
;
4021 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (5)))))
;
4022 tmp18 = mmc_unbox_integer(tmpMeta[8])(((mmc_sint_t) (tmpMeta[8])) >> 1);
4023 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (6)))))
;
4024 tmp19 = mmc_unbox_integer(tmpMeta[9])(((mmc_sint_t) (tmpMeta[9])) >> 1);
4025 tmpMeta[10] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (7)))))
;
4026 tmpMeta[11] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (8)))))
;
4027 tmp20 = mmc_unbox_integer(tmpMeta[11])(((mmc_sint_t) (tmpMeta[11])) >> 1);
4028 tmpMeta[12] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 9))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (9)))))
;
4029
4030 _tok = tmpMeta[3];
4031 _toks = tmpMeta[4];
4032 _septok = tmpMeta[7];
4033 _anum = tmp18 /* pattern as ty=Integer */;
4034 _aoffset = tmp19 /* pattern as ty=Integer */;
4035 _asep = tmpMeta[10];
4036 _wwidth = tmp20 /* pattern as ty=Integer */;
4037 _wsep = tmpMeta[12];
4038 _nchars = tmp4_3;
4039 _isstart = tmp4_4;
4040 _aind = tmp4_5;
4041 /* Pattern matching succeeded */
4042#line 1381 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4043 _nchars = omc_Tpl_tokString(threadData, _tok, _nchars, _isstart, _aind ,&_isstart ,&_aind);
4044#line 4044 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4045
4046#line 1382 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4047 _nchars = omc_Tpl_iterSeparatorAlignWrapString(threadData, _toks, _septok, ((modelica_integer) 1) + _aoffset, _anum, _asep, _wwidth, _wsep, _nchars, _isstart, _aind ,&_isstart);
4048#line 4048 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4049#line 1384 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4050 tmp1_c0 = _nchars;
4051#line 1384 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4052 tmp1_c1 = _isstart;
4053#line 1384 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4054 tmp1_c2 = _aind;
4055#line 4055 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4056 goto tmp3_done;
4057 }
4058 case 13: {
4059 modelica_integer tmp21;
4060 modelica_integer tmp22;
4061 modelica_integer tmp23;
4062 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,5,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((5 +3) & 255) << 2)))
== 0) goto tmp3_end;
4063 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4064 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (4)))))
;
4065 if (!optionNone(tmpMeta[4])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[4]) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
4066 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (5)))))
;
4067 tmp21 = mmc_unbox_integer(tmpMeta[5])(((mmc_sint_t) (tmpMeta[5])) >> 1);
4068 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (6)))))
;
4069 tmp22 = mmc_unbox_integer(tmpMeta[6])(((mmc_sint_t) (tmpMeta[6])) >> 1);
4070 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (7)))))
;
4071 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (8)))))
;
4072 tmp23 = mmc_unbox_integer(tmpMeta[8])(((mmc_sint_t) (tmpMeta[8])) >> 1);
4073 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 9))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (9)))))
;
4074
4075 _anum = tmp21 /* pattern as ty=Integer */;
4076 _aoffset = tmp22 /* pattern as ty=Integer */;
4077 _asep = tmpMeta[7];
4078 _wwidth = tmp23 /* pattern as ty=Integer */;
4079 _wsep = tmpMeta[9];
4080 _toks = tmp4_2;
4081 _nchars = tmp4_3;
4082 _isstart = tmp4_4;
4083 _aind = tmp4_5;
4084 /* Pattern matching succeeded */
4085#line 1396 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4086 _nchars = omc_Tpl_iterAlignWrapString(threadData, _toks, _aoffset, _anum, _asep, _wwidth, _wsep, _nchars, _isstart, _aind ,&_isstart);
4087#line 4087 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4088#line 1398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4089 tmp1_c0 = _nchars;
4090#line 1398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4091 tmp1_c1 = _isstart;
4092#line 1398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4093 tmp1_c2 = _aind;
4094#line 4094 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4095 goto tmp3_done;
4096 }
4097 case 14: {
4098 modelica_boolean tmp24;
4099
4100 /* Pattern matching succeeded */
4101#line 1405 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4102 /* Pattern-matching assignment */
4103#line 1405 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4104 tmp24 = omc_Flags_isSet(threadData, _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)));
4105#line 1405 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4106 if (1 != tmp24) goto goto_2;
4107#line 4107 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4108
4109#line 1405 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4110 omc_Debug_trace(threadData, _OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3)));
4111#line 4111 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4112#line 1406 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4113 goto goto_2;
4114#line 4114 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4115 goto tmp3_done;
4116 }
4117 }
4118 goto tmp3_end;
4119 tmp3_end: ;
4120 }
4121 goto goto_2;
4122 goto_2:;
4123 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4124 goto tmp3_done;
4125 tmp3_done:;
4126 }
4127 }
4128 _outActualPositionOnLine = tmp1_c0;
4129 _outAtStartOfLine = tmp1_c1;
4130 _outAfterNewLineIndent = tmp1_c2;
4131 _return: OMC_LABEL_UNUSED__attribute__((unused))
4132 if (out_outAtStartOfLine) { *out_outAtStartOfLine = _outAtStartOfLine; }
4133 if (out_outAfterNewLineIndent) { *out_outAfterNewLineIndent = _outAfterNewLineIndent; }
4134 return _outActualPositionOnLine;
4135}
4136PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_blockString(threadData_t *threadData, modelica_metatype _inBlockType, modelica_metatype _inTokens, modelica_metatype _inActualPositionOnLine, modelica_metatype _inAtStartOfLine, modelica_metatype _inAfterNewLineIndent, modelica_metatype *out_outAtStartOfLine, modelica_metatype *out_outAfterNewLineIndent)
4137{
4138 modelica_integer tmp1;
4139 modelica_integer tmp2;
4140 modelica_integer tmp3;
4141 modelica_boolean _outAtStartOfLine;
4142 modelica_integer _outAfterNewLineIndent;
4143 modelica_integer _outActualPositionOnLine;
4144 modelica_metatype out_outActualPositionOnLine;
4145 tmp1 = mmc_unbox_integer(_inActualPositionOnLine)(((mmc_sint_t) (_inActualPositionOnLine)) >> 1);
4146 tmp2 = mmc_unbox_integer(_inAtStartOfLine)(((mmc_sint_t) (_inAtStartOfLine)) >> 1);
4147 tmp3 = mmc_unbox_integer(_inAfterNewLineIndent)(((mmc_sint_t) (_inAfterNewLineIndent)) >> 1);
4148 _outActualPositionOnLine = omc_Tpl_blockString(threadData, _inBlockType, _inTokens, tmp1, tmp2, tmp3, &_outAtStartOfLine, &_outAfterNewLineIndent);
4149 out_outActualPositionOnLine = mmc_mk_icon(_outActualPositionOnLine);
4150 if (out_outAtStartOfLine) { *out_outAtStartOfLine = mmc_mk_icon(_outAtStartOfLine); }
4151 if (out_outAfterNewLineIndent) { *out_outAfterNewLineIndent = mmc_mk_icon(_outAfterNewLineIndent); }
4152 return out_outActualPositionOnLine;
4153}
4154
4155PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_stringListFile(threadData_t *threadData, modelica_complex _file, modelica_metatype _inStringList, modelica_integer _D_24in_nchars, modelica_boolean _D_24in_isstart, modelica_integer _D_24in_aind, modelica_boolean *out_isstart, modelica_integer *out_aind)
4156{
4157 modelica_integer _nchars;
4158 modelica_boolean _isstart;
4159 modelica_integer _aind;
4160 modelica_integer tmp1_c0 __attribute__((unused)) = 0;
4161 modelica_boolean tmp1_c1 __attribute__((unused)) = 0;
4162 modelica_integer tmp1_c2 __attribute__((unused)) = 0;
4163 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
4164 MMC_SO()mmc_check_stackoverflow(threadData);
4165 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4166 _nchars = _D_24in_nchars;
4167 _isstart = _D_24in_isstart;
4168 _aind = _D_24in_aind;
4169#line 1193 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4170
4171#line 1193 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4172
4173#line 1193 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4174
4175#line 4175 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4176 { /* match expression */
4177 modelica_metatype tmp4_1;modelica_integer tmp4_2;modelica_boolean tmp4_3;modelica_integer tmp4_4;
4178 tmp4_1 = _inStringList;
4179 tmp4_2 = _nchars;
4180 tmp4_3 = _isstart;
4181 tmp4_4 = _aind;
4182 {
4183 modelica_string _str = NULL((void*)0);
4184 modelica_metatype _strLst = NULL((void*)0);
4185 modelica_boolean _hasNL;
4186 volatile mmc_switch_type tmp4;
4187 int tmp5;
4188 // _str has no default value.
4189 // _strLst has no default value.
4190 // _hasNL has no default value.
4191 tmp4 = 0;
4192 for (; tmp4 < 5; tmp4++) {
4193 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4194 case 0: {
4195 if (!listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4196
4197 _isstart = tmp4_3;
4198 _aind = tmp4_4;
4199 /* Pattern matching succeeded */
4200#line 1201 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4201 tmp1_c0 = _aind;
4202#line 1201 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4203 tmp1_c1 = _isstart;
4204#line 1201 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4205 tmp1_c2 = _aind;
4206#line 4206 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4207 goto tmp3_done;
4208 }
4209 case 1: {
4210 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4211 tmpMeta[3] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
4212 tmpMeta[4] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4213 if (0 != MMC_STRLEN(tmpMeta[3])(((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))) >>
(3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT20)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT20).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmpMeta[3])(((struct mmc_string*)((void*)((char*)(tmpMeta[3]) - 3)))->
data)
) != 0) goto tmp3_end;
4214
4215 _strLst = tmpMeta[4];
4216 _nchars = tmp4_2;
4217 _isstart = tmp4_3;
4218 _aind = tmp4_4;
4219 /* Pattern matching succeeded */
4220#line 1207 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4221 /* Tail recursive call */
4222#line 1207 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4223 _inStringList = _strLst;
4224#line 1207 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4225 _D_24in_nchars = _nchars;
4226#line 1207 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4227 _D_24in_isstart = _isstart;
4228#line 1207 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4229 _D_24in_aind = _aind;
4230#line 1207 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4231 goto _tailrecursive;
4232#line 1207 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4233 /* TODO: Make sure any eventual dead code below is never generated */
4234#line 4234 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4235 goto tmp3_done;
4236 }
4237 case 2: {
4238 if (1 != tmp4_3) goto tmp3_end;
4239 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4240 tmpMeta[3] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
4241 tmpMeta[4] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4242
4243 _str = tmpMeta[3];
4244 _strLst = tmpMeta[4];
4245 _nchars = tmp4_2;
4246 _aind = tmp4_4;
4247 /* Pattern matching succeeded */
4248#line 1216 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4249 omc_File_writeSpace(threadData, _file, _nchars);
4250#line 4250 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4251
4252#line 1217 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4253 omc_File_write(threadData, _file, _str);
4254#line 4254 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4255
4256#line 1218 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4257 _hasNL = omc_StringUtil_endsWithNewline(threadData, _str);
4258#line 4258 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4259
4260#line 1219 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4261 _nchars = (_hasNL?_aind:_nchars + stringLength(_str)(((((*(mmc_uint_t*)((void*)((char*)(_str) - 3)))) >> (3
)) - 8))
);
4262#line 4262 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4263#line 1220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4264 /* Tail recursive call */
4265#line 1220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4266 _inStringList = _strLst;
4267#line 1220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4268 _D_24in_nchars = _nchars;
4269#line 1220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4270 _D_24in_isstart = _hasNL;
4271#line 1220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4272 _D_24in_aind = _aind;
4273#line 1220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4274 goto _tailrecursive;
4275#line 1220 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4276 /* TODO: Make sure any eventual dead code below is never generated */
4277#line 4277 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4278 goto tmp3_done;
4279 }
4280 case 3: {
4281 if (0 != tmp4_3) goto tmp3_end;
4282 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4283 tmpMeta[3] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
4284 tmpMeta[4] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4285
4286 _str = tmpMeta[3];
4287 _strLst = tmpMeta[4];
4288 _nchars = tmp4_2;
4289 _aind = tmp4_4;
4290 /* Pattern matching succeeded */
4291#line 1227 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4292 omc_File_write(threadData, _file, _str);
4293#line 4293 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4294
4295#line 1228 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4296 _hasNL = omc_StringUtil_endsWithNewline(threadData, _str);
4297#line 4297 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4298
4299#line 1229 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4300 _nchars = (_hasNL?_aind:_nchars + stringLength(_str)(((((*(mmc_uint_t*)((void*)((char*)(_str) - 3)))) >> (3
)) - 8))
);
4301#line 4301 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4302#line 1230 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4303 /* Tail recursive call */
4304#line 1230 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4305 _inStringList = _strLst;
4306#line 1230 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4307 _D_24in_nchars = _nchars;
4308#line 1230 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4309 _D_24in_isstart = _hasNL;
4310#line 1230 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4311 _D_24in_aind = _aind;
4312#line 1230 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4313 goto _tailrecursive;
4314#line 1230 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4315 /* TODO: Make sure any eventual dead code below is never generated */
4316#line 4316 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4317 goto tmp3_done;
4318 }
4319 case 4: {
4320 modelica_boolean tmp6;
4321
4322 /* Pattern matching succeeded */
4323#line 1237 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4324 /* Pattern-matching assignment */
4325#line 1237 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4326 tmp6 = omc_Flags_isSet(threadData, _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)));
4327#line 1237 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4328 if (1 != tmp6) goto goto_2;
4329#line 4329 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4330
4331#line 1237 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4332 omc_Debug_trace(threadData, _OMC_LIT44((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3)));
4333#line 4333 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4334#line 1238 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4335 goto goto_2;
4336#line 4336 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4337 goto tmp3_done;
4338 }
4339 }
4340 goto tmp3_end;
4341 tmp3_end: ;
4342 }
4343 goto goto_2;
4344 goto_2:;
4345 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4346 goto tmp3_done;
4347 tmp3_done:;
4348 }
4349 }
4350 _nchars = tmp1_c0;
4351 _isstart = tmp1_c1;
4352 _aind = tmp1_c2;
4353 _return: OMC_LABEL_UNUSED__attribute__((unused))
4354 if (out_isstart) { *out_isstart = _isstart; }
4355 if (out_aind) { *out_aind = _aind; }
4356 return _nchars;
4357}
4358PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_stringListFile(threadData_t *threadData, modelica_metatype _file, modelica_metatype _inStringList, modelica_metatype _D_24in_nchars, modelica_metatype _D_24in_isstart, modelica_metatype _D_24in_aind, modelica_metatype *out_isstart, modelica_metatype *out_aind)
4359{
4360 modelica_integer tmp1;
4361 modelica_integer tmp2;
4362 modelica_integer tmp3;
4363 modelica_boolean _isstart;
4364 modelica_integer _aind;
4365 modelica_integer _nchars;
4366 modelica_metatype out_nchars;
4367 tmp1 = mmc_unbox_integer(_D_24in_nchars)(((mmc_sint_t) (_D_24in_nchars)) >> 1);
4368 tmp2 = mmc_unbox_integer(_D_24in_isstart)(((mmc_sint_t) (_D_24in_isstart)) >> 1);
4369 tmp3 = mmc_unbox_integer(_D_24in_aind)(((mmc_sint_t) (_D_24in_aind)) >> 1);
4370 _nchars = omc_Tpl_stringListFile(threadData, _file, _inStringList, tmp1, tmp2, tmp3, &_isstart, &_aind);
4371 out_nchars = mmc_mk_icon(_nchars);
4372 if (out_isstart) { *out_isstart = mmc_mk_icon(_isstart); }
4373 if (out_aind) { *out_aind = mmc_mk_icon(_aind); }
4374 return out_nchars;
4375}
4376
4377PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_stringListString(threadData_t *threadData, modelica_metatype _inStringList, modelica_integer _inActualPositionOnLine, modelica_boolean _inAtStartOfLine, modelica_integer _inAfterNewLineIndent, modelica_boolean *out_outAtStartOfLine, modelica_integer *out_outAfterNewLineIndent)
4378{
4379 modelica_integer _outActualPositionOnLine;
4380 modelica_boolean _outAtStartOfLine;
4381 modelica_integer _outAfterNewLineIndent;
4382 modelica_integer tmp1_c0 __attribute__((unused)) = 0;
4383 modelica_boolean tmp1_c1 __attribute__((unused)) = 0;
4384 modelica_integer tmp1_c2 __attribute__((unused)) = 0;
4385 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
4386 MMC_SO()mmc_check_stackoverflow(threadData);
4387 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4388 // _outActualPositionOnLine has no default value.
4389 // _outAtStartOfLine has no default value.
4390 // _outAfterNewLineIndent has no default value.
4391#line 1131 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4392
4393#line 1131 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4394
4395#line 1131 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4396
4397#line 4397 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4398 { /* match expression */
4399 modelica_metatype tmp4_1;modelica_integer tmp4_2;modelica_boolean tmp4_3;modelica_integer tmp4_4;
4400 tmp4_1 = _inStringList;
4401 tmp4_2 = _inActualPositionOnLine;
4402 tmp4_3 = _inAtStartOfLine;
4403 tmp4_4 = _inAfterNewLineIndent;
4404 {
4405 modelica_string _str = NULL((void*)0);
4406 modelica_metatype _strLst = NULL((void*)0);
4407 modelica_integer _nchars;
4408 modelica_integer _aind;
4409 modelica_integer _blen;
4410 modelica_boolean _isstart;
4411 modelica_boolean _hasNL;
4412 volatile mmc_switch_type tmp4;
4413 int tmp5;
4414 // _str has no default value.
4415 // _strLst has no default value.
4416 // _nchars has no default value.
4417 // _aind has no default value.
4418 // _blen has no default value.
4419 // _isstart has no default value.
4420 // _hasNL has no default value.
4421 tmp4 = 0;
4422 for (; tmp4 < 5; tmp4++) {
4423 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4424 case 0: {
4425 if (!listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4426
4427 _isstart = tmp4_3;
4428 _aind = tmp4_4;
4429 /* Pattern matching succeeded */
4430#line 1140 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4431 tmp1_c0 = _aind;
4432#line 1140 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4433 tmp1_c1 = _isstart;
4434#line 1140 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4435 tmp1_c2 = _aind;
4436#line 4436 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4437 goto tmp3_done;
4438 }
4439 case 1: {
4440 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4441 tmpMeta[3] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
4442 tmpMeta[4] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4443 if (0 != MMC_STRLEN(tmpMeta[3])(((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))) >>
(3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT20)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT20).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmpMeta[3])(((struct mmc_string*)((void*)((char*)(tmpMeta[3]) - 3)))->
data)
) != 0) goto tmp3_end;
4444
4445 _strLst = tmpMeta[4];
4446 _nchars = tmp4_2;
4447 _isstart = tmp4_3;
4448 _aind = tmp4_4;
4449 /* Pattern matching succeeded */
4450#line 1146 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4451 /* Tail recursive call */
4452#line 1146 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4453 _inStringList = _strLst;
4454#line 1146 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4455 _inActualPositionOnLine = _nchars;
4456#line 1146 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4457 _inAtStartOfLine = _isstart;
4458#line 1146 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4459 _inAfterNewLineIndent = _aind;
4460#line 1146 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4461 goto _tailrecursive;
4462#line 1146 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4463 /* TODO: Make sure any eventual dead code below is never generated */
4464#line 4464 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4465 goto tmp3_done;
4466 }
4467 case 2: {
4468 if (1 != tmp4_3) goto tmp3_end;
4469 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4470 tmpMeta[3] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
4471 tmpMeta[4] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4472
4473 _str = tmpMeta[3];
4474 _strLst = tmpMeta[4];
4475 _nchars = tmp4_2;
4476 _aind = tmp4_4;
4477 /* Pattern matching succeeded */
4478#line 1155 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4479 _blen = omc_Print_getBufLength(threadData);
4480#line 4480 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4481
4482#line 1156 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4483 omc_Print_printBufSpace(threadData, _nchars);
4484#line 4484 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4485
4486#line 1157 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4487 omc_Print_printBuf(threadData, _str);
4488#line 4488 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4489
4490#line 1158 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4491 _blen = omc_Print_getBufLength(threadData) - _blen;
4492#line 4492 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4493
4494#line 1159 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4495 _hasNL = omc_Print_hasBufNewLineAtEnd(threadData);
4496#line 4496 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4497
4498#line 1160 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4499 _nchars = (_hasNL?_aind:_blen);
4500#line 4500 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4501#line 1161 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4502 /* Tail recursive call */
4503#line 1161 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4504 _inStringList = _strLst;
4505#line 1161 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4506 _inActualPositionOnLine = _nchars;
4507#line 1161 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4508 _inAtStartOfLine = _hasNL;
4509#line 1161 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4510 _inAfterNewLineIndent = _aind;
4511#line 1161 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4512 goto _tailrecursive;
4513#line 1161 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4514 /* TODO: Make sure any eventual dead code below is never generated */
4515#line 4515 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4516 goto tmp3_done;
4517 }
4518 case 3: {
4519 if (0 != tmp4_3) goto tmp3_end;
4520 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4521 tmpMeta[3] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
4522 tmpMeta[4] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4523
4524 _str = tmpMeta[3];
4525 _strLst = tmpMeta[4];
4526 _nchars = tmp4_2;
4527 _aind = tmp4_4;
4528 /* Pattern matching succeeded */
4529#line 1168 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4530 _blen = omc_Print_getBufLength(threadData);
4531#line 4531 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4532
4533#line 1169 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4534 omc_Print_printBuf(threadData, _str);
4535#line 4535 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4536
4537#line 1170 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4538 _blen = omc_Print_getBufLength(threadData) - _blen;
4539#line 4539 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4540
4541#line 1171 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4542 _hasNL = omc_Print_hasBufNewLineAtEnd(threadData);
4543#line 4543 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4544
4545#line 1172 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4546 _nchars = (_hasNL?_aind:_nchars + _blen);
4547#line 4547 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4548#line 1173 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4549 /* Tail recursive call */
4550#line 1173 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4551 _inStringList = _strLst;
4552#line 1173 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4553 _inActualPositionOnLine = _nchars;
4554#line 1173 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4555 _inAtStartOfLine = _hasNL;
4556#line 1173 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4557 _inAfterNewLineIndent = _aind;
4558#line 1173 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4559 goto _tailrecursive;
4560#line 1173 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4561 /* TODO: Make sure any eventual dead code below is never generated */
4562#line 4562 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4563 goto tmp3_done;
4564 }
4565 case 4: {
4566 modelica_boolean tmp6;
4567
4568 /* Pattern matching succeeded */
4569#line 1180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4570 /* Pattern-matching assignment */
4571#line 1180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4572 tmp6 = omc_Flags_isSet(threadData, _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)));
4573#line 1180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4574 if (1 != tmp6) goto goto_2;
4575#line 4575 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4576
4577#line 1180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4578 omc_Debug_trace(threadData, _OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3)));
4579#line 4579 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4580#line 1181 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4581 goto goto_2;
4582#line 4582 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4583 goto tmp3_done;
4584 }
4585 }
4586 goto tmp3_end;
4587 tmp3_end: ;
4588 }
4589 goto goto_2;
4590 goto_2:;
4591 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4592 goto tmp3_done;
4593 tmp3_done:;
4594 }
4595 }
4596 _outActualPositionOnLine = tmp1_c0;
4597 _outAtStartOfLine = tmp1_c1;
4598 _outAfterNewLineIndent = tmp1_c2;
4599 _return: OMC_LABEL_UNUSED__attribute__((unused))
4600 if (out_outAtStartOfLine) { *out_outAtStartOfLine = _outAtStartOfLine; }
4601 if (out_outAfterNewLineIndent) { *out_outAfterNewLineIndent = _outAfterNewLineIndent; }
4602 return _outActualPositionOnLine;
4603}
4604PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_stringListString(threadData_t *threadData, modelica_metatype _inStringList, modelica_metatype _inActualPositionOnLine, modelica_metatype _inAtStartOfLine, modelica_metatype _inAfterNewLineIndent, modelica_metatype *out_outAtStartOfLine, modelica_metatype *out_outAfterNewLineIndent)
4605{
4606 modelica_integer tmp1;
4607 modelica_integer tmp2;
4608 modelica_integer tmp3;
4609 modelica_boolean _outAtStartOfLine;
4610 modelica_integer _outAfterNewLineIndent;
4611 modelica_integer _outActualPositionOnLine;
4612 modelica_metatype out_outActualPositionOnLine;
4613 tmp1 = mmc_unbox_integer(_inActualPositionOnLine)(((mmc_sint_t) (_inActualPositionOnLine)) >> 1);
4614 tmp2 = mmc_unbox_integer(_inAtStartOfLine)(((mmc_sint_t) (_inAtStartOfLine)) >> 1);
4615 tmp3 = mmc_unbox_integer(_inAfterNewLineIndent)(((mmc_sint_t) (_inAfterNewLineIndent)) >> 1);
4616 _outActualPositionOnLine = omc_Tpl_stringListString(threadData, _inStringList, tmp1, tmp2, tmp3, &_outAtStartOfLine, &_outAfterNewLineIndent);
4617 out_outActualPositionOnLine = mmc_mk_icon(_outActualPositionOnLine);
4618 if (out_outAtStartOfLine) { *out_outAtStartOfLine = mmc_mk_icon(_outAtStartOfLine); }
4619 if (out_outAfterNewLineIndent) { *out_outAfterNewLineIndent = mmc_mk_icon(_outAfterNewLineIndent); }
4620 return out_outActualPositionOnLine;
4621}
4622
4623PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_tokFile(threadData_t *threadData, modelica_complex _file, modelica_metatype _inStringToken, modelica_integer _D_24in_nchars, modelica_boolean _D_24in_isstart, modelica_integer _D_24in_aind, modelica_boolean *out_isstart, modelica_integer *out_aind)
4624{
4625 modelica_integer _nchars;
4626 modelica_boolean _isstart;
4627 modelica_integer _aind;
4628 modelica_integer tmp1_c0 __attribute__((unused)) = 0;
4629 modelica_boolean tmp1_c1 __attribute__((unused)) = 0;
4630 modelica_integer tmp1_c2 __attribute__((unused)) = 0;
4631 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
4632 MMC_SO()mmc_check_stackoverflow(threadData);
4633 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4634 _nchars = _D_24in_nchars;
4635 _isstart = _D_24in_isstart;
4636 _aind = _D_24in_aind;
4637#line 1065 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4638
4639#line 1065 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4640
4641#line 1065 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4642
4643#line 4643 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4644 { /* match expression */
4645 modelica_metatype tmp4_1;modelica_integer tmp4_2;modelica_boolean tmp4_3;modelica_integer tmp4_4;
4646 tmp4_1 = _inStringToken;
4647 tmp4_2 = _nchars;
4648 tmp4_3 = _isstart;
4649 tmp4_4 = _aind;
4650 {
4651 modelica_metatype _toks = NULL((void*)0);
4652 modelica_metatype _bt = NULL((void*)0);
4653 modelica_string _str = NULL((void*)0);
4654 modelica_metatype _strLst = NULL((void*)0);
4655 volatile mmc_switch_type tmp4;
4656 int tmp5;
4657 // _toks has no default value.
4658 // _bt has no default value.
4659 // _str has no default value.
4660 // _strLst has no default value.
4661 tmp4 = 0;
4662 for (; tmp4 < 7; tmp4++) {
4663 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4664 case 0: {
4665 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((0 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
4666
4667 _aind = tmp4_4;
4668 /* Pattern matching succeeded */
4669#line 1074 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4670 omc_File_write(threadData, _file, _OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)));
4671#line 4671 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4672#line 1075 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4673 tmp1_c0 = _aind;
4674#line 1075 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4675 tmp1_c1 = 1;
4676#line 1075 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4677 tmp1_c2 = _aind;
4678#line 4678 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4679 goto tmp3_done;
4680 }
4681 case 1: {
4682 if (1 != tmp4_3) goto tmp3_end;
4683 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
4684 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4685
4686 _str = tmpMeta[3];
4687 _nchars = tmp4_2;
4688 _aind = tmp4_4;
4689 /* Pattern matching succeeded */
4690#line 1079 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4691 omc_File_writeSpace(threadData, _file, _nchars);
4692#line 4692 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4693
4694#line 1080 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4695 omc_File_write(threadData, _file, _str);
4696#line 4696 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4697#line 1081 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4698 tmp1_c0 = _nchars + stringLength(_str)(((((*(mmc_uint_t*)((void*)((char*)(_str) - 3)))) >> (3
)) - 8))
;
4699#line 1081 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4700 tmp1_c1 = 0;
4701#line 1081 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4702 tmp1_c2 = _aind;
4703#line 4703 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4704 goto tmp3_done;
4705 }
4706 case 2: {
4707 if (0 != tmp4_3) goto tmp3_end;
4708 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
4709 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4710
4711 _str = tmpMeta[3];
4712 _nchars = tmp4_2;
4713 _aind = tmp4_4;
4714 /* Pattern matching succeeded */
4715#line 1086 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4716 omc_File_write(threadData, _file, _str);
4717#line 4717 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4718#line 1087 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4719 tmp1_c0 = _nchars + stringLength(_str)(((((*(mmc_uint_t*)((void*)((char*)(_str) - 3)))) >> (3
)) - 8))
;
4720#line 1087 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4721 tmp1_c1 = 0;
4722#line 1087 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4723 tmp1_c2 = _aind;
4724#line 4724 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4725 goto tmp3_done;
4726 }
4727 case 3: {
4728 if (1 != tmp4_3) goto tmp3_end;
4729 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
4730 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4731
4732 _str = tmpMeta[3];
4733 _nchars = tmp4_2;
4734 _aind = tmp4_4;
4735 /* Pattern matching succeeded */
4736#line 1092 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4737 omc_File_writeSpace(threadData, _file, _nchars);
4738#line 4738 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4739
4740#line 1093 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4741 omc_File_write(threadData, _file, _str);
4742#line 4742 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4743#line 1094 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4744 tmp1_c0 = _aind;
4745#line 1094 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4746 tmp1_c1 = 1;
4747#line 1094 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4748 tmp1_c2 = _aind;
4749#line 4749 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4750 goto tmp3_done;
4751 }
4752 case 4: {
4753 if (0 != tmp4_3) goto tmp3_end;
4754 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
4755 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4756
4757 _str = tmpMeta[3];
4758 _aind = tmp4_4;
4759 /* Pattern matching succeeded */
4760#line 1099 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4761 omc_File_write(threadData, _file, _str);
4762#line 4762 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4763#line 1100 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4764 tmp1_c0 = _aind;
4765#line 1100 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4766 tmp1_c1 = 1;
4767#line 1100 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4768 tmp1_c2 = _aind;
4769#line 4769 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4770 goto tmp3_done;
4771 }
4772 case 5: {
4773 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,3,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((3 +3) & 255) << 2)))
== 0) goto tmp3_end;
4774 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4775
4776 _strLst = tmpMeta[3];
4777 _nchars = tmp4_2;
4778 _isstart = tmp4_3;
4779 _aind = tmp4_4;
4780 /* Pattern matching succeeded */
4781#line 1105 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4782 tmp1_c0 = omc_Tpl_stringListFile(threadData, _file, _strLst, _nchars, _isstart, _aind, &tmp1_c1, &tmp1_c2);
4783#line 4783 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4784 goto tmp3_done;
4785 }
4786 case 6: {
4787 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,4,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((4 +3) & 255) << 2)))
== 0) goto tmp3_end;
4788 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4789 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
4790
4791 _toks = tmpMeta[3];
4792 _bt = tmpMeta[4];
4793 _nchars = tmp4_2;
4794 _isstart = tmp4_3;
4795 _aind = tmp4_4;
4796 /* Pattern matching succeeded */
4797#line 1114 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4798 tmp1_c0 = omc_Tpl_blockFile(threadData, _file, _bt, listReverse(_toks), _nchars, _isstart, _aind, &tmp1_c1, &tmp1_c2);
4799#line 4799 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4800 goto tmp3_done;
4801 }
4802 }
4803 goto tmp3_end;
4804 tmp3_end: ;
4805 }
4806 goto goto_2;
4807 goto_2:;
4808 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4809 goto tmp3_done;
4810 tmp3_done:;
4811 }
4812 }
4813 _nchars = tmp1_c0;
4814 _isstart = tmp1_c1;
4815 _aind = tmp1_c2;
4816 _return: OMC_LABEL_UNUSED__attribute__((unused))
4817 if (out_isstart) { *out_isstart = _isstart; }
4818 if (out_aind) { *out_aind = _aind; }
4819 return _nchars;
4820}
4821PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_tokFile(threadData_t *threadData, modelica_metatype _file, modelica_metatype _inStringToken, modelica_metatype _D_24in_nchars, modelica_metatype _D_24in_isstart, modelica_metatype _D_24in_aind, modelica_metatype *out_isstart, modelica_metatype *out_aind)
4822{
4823 modelica_integer tmp1;
4824 modelica_integer tmp2;
4825 modelica_integer tmp3;
4826 modelica_boolean _isstart;
4827 modelica_integer _aind;
4828 modelica_integer _nchars;
4829 modelica_metatype out_nchars;
4830 tmp1 = mmc_unbox_integer(_D_24in_nchars)(((mmc_sint_t) (_D_24in_nchars)) >> 1);
4831 tmp2 = mmc_unbox_integer(_D_24in_isstart)(((mmc_sint_t) (_D_24in_isstart)) >> 1);
4832 tmp3 = mmc_unbox_integer(_D_24in_aind)(((mmc_sint_t) (_D_24in_aind)) >> 1);
4833 _nchars = omc_Tpl_tokFile(threadData, _file, _inStringToken, tmp1, tmp2, tmp3, &_isstart, &_aind);
4834 out_nchars = mmc_mk_icon(_nchars);
4835 if (out_isstart) { *out_isstart = mmc_mk_icon(_isstart); }
4836 if (out_aind) { *out_aind = mmc_mk_icon(_aind); }
4837 return out_nchars;
4838}
4839
4840PROTECTED_FUNCTION_STATIC void omc_Tpl_tokFileText(threadData_t *threadData, modelica_metatype _inText, modelica_metatype _inStringToken, modelica_boolean _doHandleTok)
4841{
4842 modelica_complex _file;
4843 modelica_integer _nchars;
4844 modelica_integer _aind;
4845 modelica_boolean _isstart;
4846 MMC_SO()mmc_check_stackoverflow(threadData);
4847 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4848 _file = omc_File_File_constructor(threadData, omc_Tpl_getTextOpaqueFile(threadData, _inText));
4849 // _nchars has no default value.
4850 // _aind has no default value.
4851 // _isstart has no default value.
4852#line 1041 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4853 if(_doHandleTok)
4854#line 1041 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4855 {
4856#line 1042 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4857 omc_Tpl_handleTok(threadData, _inText);
4858#line 4858 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4859 }
4860
4861#line 4861 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4862 { /* match expression */
4863 modelica_metatype tmp3_1;
4864 tmp3_1 = _inText;
4865 {
4866 volatile mmc_switch_type tmp3;
4867 int tmp4;
4868 tmp3 = 0;
4869 for (; tmp3 < 1; tmp3++) {
4870 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
4871 case 0: {
4872 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,5)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((5 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
4873
4874 /* Pattern matching succeeded */
4875#line 1047 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4876 _nchars = mmc_unbox_integer(arrayGet((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inText), 3))), ((modelica_integer) 1)))(((mmc_sint_t) (nobox_arrayGet(threadData,((*(void**)(((void*
)((void**)(((void*)((char*)(_inText) - 3))) + (3)))))),((modelica_integer
) 1)))) >> 1)
;
4877#line 4877 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4878
4879#line 1048 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4880 _aind = mmc_unbox_integer(arrayGet((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inText), 4))), ((modelica_integer) 1)))(((mmc_sint_t) (nobox_arrayGet(threadData,((*(void**)(((void*
)((void**)(((void*)((char*)(_inText) - 3))) + (4)))))),((modelica_integer
) 1)))) >> 1)
;
4881#line 4881 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4882
4883#line 1049 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4884 _isstart = mmc_unbox_boolean(arrayGet((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inText), 5))), ((modelica_integer) 1)))(((mmc_sint_t) (nobox_arrayGet(threadData,((*(void**)(((void*
)((void**)(((void*)((char*)(_inText) - 3))) + (5)))))),((modelica_integer
) 1)))) >> 1)
;
4885#line 4885 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4886
4887#line 1050 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4888 _nchars = omc_Tpl_tokFile(threadData, _file, _inStringToken, _nchars, _isstart, _aind ,&_isstart ,&_aind);
4889#line 4889 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4890
4891#line 1051 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4892 arrayUpdate((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inText), 3))), ((modelica_integer) 1), mmc_mk_integer(_nchars))boxptr_arrayUpdate(threadData,((*(void**)(((void*)((void**)((
(void*)((char*)(_inText) - 3))) + (3)))))),mmc_mk_icon(((modelica_integer
) 1)),mmc_mk_icon(_nchars))
;
4893#line 4893 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4894
4895#line 1052 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4896 arrayUpdate((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inText), 4))), ((modelica_integer) 1), mmc_mk_integer(_aind))boxptr_arrayUpdate(threadData,((*(void**)(((void*)((void**)((
(void*)((char*)(_inText) - 3))) + (4)))))),mmc_mk_icon(((modelica_integer
) 1)),mmc_mk_icon(_aind))
;
4897#line 4897 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4898
4899#line 1053 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4900 arrayUpdate((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inText), 5))), ((modelica_integer) 1), mmc_mk_boolean(_isstart))boxptr_arrayUpdate(threadData,((*(void**)(((void*)((void**)((
(void*)((char*)(_inText) - 3))) + (5)))))),mmc_mk_icon(((modelica_integer
) 1)),((_isstart) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0)))
)
;
4901#line 4901 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4902#line 4902 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4903 goto tmp2_done;
4904 }
4905 }
4906 goto tmp2_end;
4907 tmp2_end: ;
4908 }
4909 goto goto_1;
4910 goto_1:;
4911 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4912 goto tmp2_done;
4913 tmp2_done:;
4914 }
4915 }
4916 ;
4917 _return: OMC_LABEL_UNUSED__attribute__((unused))
4918 omc_File_File_destructor(threadData,_file);
4919 return;
4920}
4921PROTECTED_FUNCTION_STATIC void boxptr_Tpl_tokFileText(threadData_t *threadData, modelica_metatype _inText, modelica_metatype _inStringToken, modelica_metatype _doHandleTok)
4922{
4923 modelica_integer tmp1;
4924 tmp1 = mmc_unbox_integer(_doHandleTok)(((mmc_sint_t) (_doHandleTok)) >> 1);
4925 omc_Tpl_tokFileText(threadData, _inText, _inStringToken, tmp1);
4926 return;
4927}
4928
4929PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_tokString(threadData_t *threadData, modelica_metatype _inStringToken, modelica_integer _inActualPositionOnLine, modelica_boolean _inAtStartOfLine, modelica_integer _inAfterNewLineIndent, modelica_boolean *out_outAtStartOfLine, modelica_integer *out_outAfterNewLineIndent)
4930{
4931 modelica_integer _outActualPositionOnLine;
4932 modelica_boolean _outAtStartOfLine;
4933 modelica_integer _outAfterNewLineIndent;
4934 modelica_integer tmp1_c0 __attribute__((unused)) = 0;
4935 modelica_boolean tmp1_c1 __attribute__((unused)) = 0;
4936 modelica_integer tmp1_c2 __attribute__((unused)) = 0;
4937 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
4938 MMC_SO()mmc_check_stackoverflow(threadData);
4939 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4940 // _outActualPositionOnLine has no default value.
4941 // _outAtStartOfLine has no default value.
4942 // _outAfterNewLineIndent has no default value.
4943#line 959 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4944
4945#line 959 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4946
4947#line 959 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4948
4949#line 4949 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4950 { /* match expression */
4951 modelica_metatype tmp4_1;modelica_integer tmp4_2;modelica_boolean tmp4_3;modelica_integer tmp4_4;
4952 tmp4_1 = _inStringToken;
4953 tmp4_2 = _inActualPositionOnLine;
4954 tmp4_3 = _inAtStartOfLine;
4955 tmp4_4 = _inAfterNewLineIndent;
4956 {
4957 modelica_metatype _toks = NULL((void*)0);
4958 modelica_metatype _bt = NULL((void*)0);
4959 modelica_string _str = NULL((void*)0);
4960 modelica_metatype _strLst = NULL((void*)0);
4961 modelica_integer _nchars;
4962 modelica_integer _aind;
4963 modelica_integer _blen;
4964 modelica_boolean _isstart;
4965 volatile mmc_switch_type tmp4;
4966 int tmp5;
4967 // _toks has no default value.
4968 // _bt has no default value.
4969 // _str has no default value.
4970 // _strLst has no default value.
4971 // _nchars has no default value.
4972 // _aind has no default value.
4973 // _blen has no default value.
4974 // _isstart has no default value.
4975 tmp4 = 0;
4976 for (; tmp4 < 8; tmp4++) {
4977 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4978 case 0: {
4979 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((0 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
4980
4981 _aind = tmp4_4;
4982 /* Pattern matching succeeded */
4983#line 971 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4984 omc_Print_printBufNewLine(threadData);
4985#line 4985 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4986#line 972 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4987 tmp1_c0 = _aind;
4988#line 972 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4989 tmp1_c1 = 1;
4990#line 972 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
4991 tmp1_c2 = _aind;
4992#line 4992 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
4993 goto tmp3_done;
4994 }
4995 case 1: {
4996 if (1 != tmp4_3) goto tmp3_end;
4997 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
4998 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4999
5000 _str = tmpMeta[3];
5001 _nchars = tmp4_2;
5002 _aind = tmp4_4;
5003 /* Pattern matching succeeded */
5004#line 977 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5005 _blen = omc_Print_getBufLength(threadData);
5006#line 5006 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5007
5008#line 978 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5009 omc_Print_printBufSpace(threadData, _nchars);
5010#line 5010 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5011
5012#line 979 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5013 omc_Print_printBuf(threadData, _str);
5014#line 5014 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5015
5016#line 980 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5017 _blen = omc_Print_getBufLength(threadData) - _blen;
5018#line 5018 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5019#line 982 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5020 tmp1_c0 = _blen;
5021#line 982 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5022 tmp1_c1 = 0;
5023#line 982 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5024 tmp1_c2 = _aind;
5025#line 5025 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5026 goto tmp3_done;
5027 }
5028 case 2: {
5029 if (0 != tmp4_3) goto tmp3_end;
5030 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
5031 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
5032
5033 _str = tmpMeta[3];
5034 _nchars = tmp4_2;
5035 _aind = tmp4_4;
5036 /* Pattern matching succeeded */
5037#line 987 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5038 _blen = omc_Print_getBufLength(threadData);
5039#line 5039 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5040
5041#line 988 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5042 omc_Print_printBuf(threadData, _str);
5043#line 5043 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5044
5045#line 989 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5046 _blen = omc_Print_getBufLength(threadData) - _blen;
5047#line 5047 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5048#line 990 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5049 tmp1_c0 = _nchars + _blen;
5050#line 990 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5051 tmp1_c1 = 0;
5052#line 990 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5053 tmp1_c2 = _aind;
5054#line 5054 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5055 goto tmp3_done;
5056 }
5057 case 3: {
5058 if (1 != tmp4_3) goto tmp3_end;
5059 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
5060 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
5061
5062 _str = tmpMeta[3];
5063 _nchars = tmp4_2;
5064 _aind = tmp4_4;
5065 /* Pattern matching succeeded */
5066#line 995 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5067 omc_Print_printBufSpace(threadData, _nchars);
5068#line 5068 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5069
5070#line 996 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5071 omc_Print_printBuf(threadData, _str);
5072#line 5072 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5073#line 998 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5074 tmp1_c0 = _aind;
5075#line 998 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5076 tmp1_c1 = 1;
5077#line 998 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5078 tmp1_c2 = _aind;
5079#line 5079 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5080 goto tmp3_done;
5081 }
5082 case 4: {
5083 if (0 != tmp4_3) goto tmp3_end;
5084 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
5085 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
5086
5087 _str = tmpMeta[3];
5088 _aind = tmp4_4;
5089 /* Pattern matching succeeded */
5090#line 1003 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5091 omc_Print_printBuf(threadData, _str);
5092#line 5092 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5093#line 1004 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5094 tmp1_c0 = _aind;
5095#line 1004 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5096 tmp1_c1 = 1;
5097#line 1004 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5098 tmp1_c2 = _aind;
5099#line 5099 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5100 goto tmp3_done;
5101 }
5102 case 5: {
5103 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,3,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((3 +3) & 255) << 2)))
== 0) goto tmp3_end;
5104 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
5105
5106 _strLst = tmpMeta[3];
5107 _nchars = tmp4_2;
5108 _isstart = tmp4_3;
5109 _aind = tmp4_4;
5110 /* Pattern matching succeeded */
5111#line 1009 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5112 tmp1_c0 = omc_Tpl_stringListString(threadData, _strLst, _nchars, _isstart, _aind, &tmp1_c1, &tmp1_c2);
5113#line 5113 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5114 goto tmp3_done;
5115 }
5116 case 6: {
5117 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,4,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((4 +3) & 255) << 2)))
== 0) goto tmp3_end;
5118 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
5119 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
5120
5121 _toks = tmpMeta[3];
5122 _bt = tmpMeta[4];
5123 _nchars = tmp4_2;
5124 _isstart = tmp4_3;
5125 _aind = tmp4_4;
5126 /* Pattern matching succeeded */
5127#line 1018 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5128 tmp1_c0 = omc_Tpl_blockString(threadData, _bt, listReverse(_toks), _nchars, _isstart, _aind, &tmp1_c1, &tmp1_c2);
5129#line 5129 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5130 goto tmp3_done;
5131 }
5132 case 7: {
5133 modelica_boolean tmp6;
5134
5135 /* Pattern matching succeeded */
5136#line 1026 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5137 /* Pattern-matching assignment */
5138#line 1026 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5139 tmp6 = omc_Flags_isSet(threadData, _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)));
5140#line 1026 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5141 if (1 != tmp6) goto goto_2;
5142#line 5142 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5143
5144#line 1026 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5145 omc_Debug_trace(threadData, _OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3)));
5146#line 5146 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5147#line 1027 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5148 goto goto_2;
5149#line 5149 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5150 goto tmp3_done;
5151 }
5152 }
5153 goto tmp3_end;
5154 tmp3_end: ;
5155 }
5156 goto goto_2;
5157 goto_2:;
5158 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5159 goto tmp3_done;
5160 tmp3_done:;
5161 }
5162 }
5163 _outActualPositionOnLine = tmp1_c0;
5164 _outAtStartOfLine = tmp1_c1;
5165 _outAfterNewLineIndent = tmp1_c2;
5166 _return: OMC_LABEL_UNUSED__attribute__((unused))
5167 if (out_outAtStartOfLine) { *out_outAtStartOfLine = _outAtStartOfLine; }
5168 if (out_outAfterNewLineIndent) { *out_outAfterNewLineIndent = _outAfterNewLineIndent; }
5169 return _outActualPositionOnLine;
5170}
5171PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_tokString(threadData_t *threadData, modelica_metatype _inStringToken, modelica_metatype _inActualPositionOnLine, modelica_metatype _inAtStartOfLine, modelica_metatype _inAfterNewLineIndent, modelica_metatype *out_outAtStartOfLine, modelica_metatype *out_outAfterNewLineIndent)
5172{
5173 modelica_integer tmp1;
5174 modelica_integer tmp2;
5175 modelica_integer tmp3;
5176 modelica_boolean _outAtStartOfLine;
5177 modelica_integer _outAfterNewLineIndent;
5178 modelica_integer _outActualPositionOnLine;
5179 modelica_metatype out_outActualPositionOnLine;
5180 tmp1 = mmc_unbox_integer(_inActualPositionOnLine)(((mmc_sint_t) (_inActualPositionOnLine)) >> 1);
5181 tmp2 = mmc_unbox_integer(_inAtStartOfLine)(((mmc_sint_t) (_inAtStartOfLine)) >> 1);
5182 tmp3 = mmc_unbox_integer(_inAfterNewLineIndent)(((mmc_sint_t) (_inAfterNewLineIndent)) >> 1);
5183 _outActualPositionOnLine = omc_Tpl_tokString(threadData, _inStringToken, tmp1, tmp2, tmp3, &_outAtStartOfLine, &_outAfterNewLineIndent);
5184 out_outActualPositionOnLine = mmc_mk_icon(_outActualPositionOnLine);
5185 if (out_outAtStartOfLine) { *out_outAtStartOfLine = mmc_mk_icon(_outAtStartOfLine); }
5186 if (out_outAfterNewLineIndent) { *out_outAfterNewLineIndent = mmc_mk_icon(_outAfterNewLineIndent); }
5187 return out_outActualPositionOnLine;
5188}
5189
5190PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_tokensFile(threadData_t *threadData, modelica_complex _file, modelica_metatype _inTokens, modelica_integer _D_24in_actualPositionOnLine, modelica_boolean _D_24in_atStartOfLine, modelica_integer _D_24in_afterNewLineIndent, modelica_boolean *out_atStartOfLine, modelica_integer *out_afterNewLineIndent)
5191{
5192 modelica_integer _actualPositionOnLine;
5193 modelica_boolean _atStartOfLine;
5194 modelica_integer _afterNewLineIndent;
5195 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
5196 MMC_SO()mmc_check_stackoverflow(threadData);
5197 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5198 _actualPositionOnLine = _D_24in_actualPositionOnLine;
5199 _atStartOfLine = _D_24in_atStartOfLine;
5200 _afterNewLineIndent = _D_24in_afterNewLineIndent;
5201#line 944 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5202 {
5203#line 944 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5204 modelica_metatype _tok;
5205#line 944 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5206 for (tmpMeta[0] = _inTokens; !listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[0]=MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
)
5207#line 944 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5208 {
5209#line 944 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5210 _tok = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
5211#line 945 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5212 _actualPositionOnLine = omc_Tpl_tokFile(threadData, _file, _tok, _actualPositionOnLine, _atStartOfLine, _afterNewLineIndent ,&_atStartOfLine ,&_afterNewLineIndent);
5213#line 5213 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5214 }
5215 }
5216 _return: OMC_LABEL_UNUSED__attribute__((unused))
5217 if (out_atStartOfLine) { *out_atStartOfLine = _atStartOfLine; }
5218 if (out_afterNewLineIndent) { *out_afterNewLineIndent = _afterNewLineIndent; }
5219 return _actualPositionOnLine;
5220}
5221PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_tokensFile(threadData_t *threadData, modelica_metatype _file, modelica_metatype _inTokens, modelica_metatype _D_24in_actualPositionOnLine, modelica_metatype _D_24in_atStartOfLine, modelica_metatype _D_24in_afterNewLineIndent, modelica_metatype *out_atStartOfLine, modelica_metatype *out_afterNewLineIndent)
5222{
5223 modelica_integer tmp1;
5224 modelica_integer tmp2;
5225 modelica_integer tmp3;
5226 modelica_boolean _atStartOfLine;
5227 modelica_integer _afterNewLineIndent;
5228 modelica_integer _actualPositionOnLine;
5229 modelica_metatype out_actualPositionOnLine;
5230 tmp1 = mmc_unbox_integer(_D_24in_actualPositionOnLine)(((mmc_sint_t) (_D_24in_actualPositionOnLine)) >> 1);
5231 tmp2 = mmc_unbox_integer(_D_24in_atStartOfLine)(((mmc_sint_t) (_D_24in_atStartOfLine)) >> 1);
5232 tmp3 = mmc_unbox_integer(_D_24in_afterNewLineIndent)(((mmc_sint_t) (_D_24in_afterNewLineIndent)) >> 1);
5233 _actualPositionOnLine = omc_Tpl_tokensFile(threadData, _file, _inTokens, tmp1, tmp2, tmp3, &_atStartOfLine, &_afterNewLineIndent);
5234 out_actualPositionOnLine = mmc_mk_icon(_actualPositionOnLine);
5235 if (out_atStartOfLine) { *out_atStartOfLine = mmc_mk_icon(_atStartOfLine); }
5236 if (out_afterNewLineIndent) { *out_afterNewLineIndent = mmc_mk_icon(_afterNewLineIndent); }
5237 return out_actualPositionOnLine;
5238}
5239
5240PROTECTED_FUNCTION_STATIC modelica_integer omc_Tpl_tokensString(threadData_t *threadData, modelica_metatype _inTokens, modelica_integer _D_24in_actualPositionOnLine, modelica_boolean _D_24in_atStartOfLine, modelica_integer _D_24in_afterNewLineIndent, modelica_boolean *out_atStartOfLine, modelica_integer *out_afterNewLineIndent)
5241{
5242 modelica_integer _actualPositionOnLine;
5243 modelica_boolean _atStartOfLine;
5244 modelica_integer _afterNewLineIndent;
5245 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
5246 MMC_SO()mmc_check_stackoverflow(threadData);
5247 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5248 _actualPositionOnLine = _D_24in_actualPositionOnLine;
5249 _atStartOfLine = _D_24in_atStartOfLine;
5250 _afterNewLineIndent = _D_24in_afterNewLineIndent;
5251#line 932 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5252 {
5253#line 932 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5254 modelica_metatype _tok;
5255#line 932 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5256 for (tmpMeta[0] = _inTokens; !listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[0]=MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
)
5257#line 932 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5258 {
5259#line 932 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5260 _tok = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
5261#line 933 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5262 _actualPositionOnLine = omc_Tpl_tokString(threadData, _tok, _actualPositionOnLine, _atStartOfLine, _afterNewLineIndent ,&_atStartOfLine ,&_afterNewLineIndent);
5263#line 5263 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5264 }
5265 }
5266 _return: OMC_LABEL_UNUSED__attribute__((unused))
5267 if (out_atStartOfLine) { *out_atStartOfLine = _atStartOfLine; }
5268 if (out_afterNewLineIndent) { *out_afterNewLineIndent = _afterNewLineIndent; }
5269 return _actualPositionOnLine;
5270}
5271PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Tpl_tokensString(threadData_t *threadData, modelica_metatype _inTokens, modelica_metatype _D_24in_actualPositionOnLine, modelica_metatype _D_24in_atStartOfLine, modelica_metatype _D_24in_afterNewLineIndent, modelica_metatype *out_atStartOfLine, modelica_metatype *out_afterNewLineIndent)
5272{
5273 modelica_integer tmp1;
5274 modelica_integer tmp2;
5275 modelica_integer tmp3;
5276 modelica_boolean _atStartOfLine;
5277 modelica_integer _afterNewLineIndent;
5278 modelica_integer _actualPositionOnLine;
5279 modelica_metatype out_actualPositionOnLine;
5280 tmp1 = mmc_unbox_integer(_D_24in_actualPositionOnLine)(((mmc_sint_t) (_D_24in_actualPositionOnLine)) >> 1);
5281 tmp2 = mmc_unbox_integer(_D_24in_atStartOfLine)(((mmc_sint_t) (_D_24in_atStartOfLine)) >> 1);
5282 tmp3 = mmc_unbox_integer(_D_24in_afterNewLineIndent)(((mmc_sint_t) (_D_24in_afterNewLineIndent)) >> 1);
5283 _actualPositionOnLine = omc_Tpl_tokensString(threadData, _inTokens, tmp1, tmp2, tmp3, &_atStartOfLine, &_afterNewLineIndent);
5284 out_actualPositionOnLine = mmc_mk_icon(_actualPositionOnLine);
5285 if (out_atStartOfLine) { *out_atStartOfLine = mmc_mk_icon(_atStartOfLine); }
5286 if (out_afterNewLineIndent) { *out_afterNewLineIndent = mmc_mk_icon(_afterNewLineIndent); }
5287 return out_actualPositionOnLine;
5288}
5289
5290DLLExport
5291void omc_Tpl_textStringBuf(threadData_t *threadData, modelica_metatype _inText)
5292{
5293 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
5294 MMC_SO()mmc_check_stackoverflow(threadData);
5295 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5296#line 5296 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5297 { /* match expression */
5298 modelica_metatype tmp3_1;
5299 tmp3_1 = _inText;
5300 {
5301 modelica_metatype _toks = NULL((void*)0);
5302 volatile mmc_switch_type tmp3;
5303 int tmp4;
5304 // _toks has no default value.
5305 tmp3 = 0;
5306 for (; tmp3 < 3; tmp3++) {
5307 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
5308 case 0: {
5309 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
5310 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
5311 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
5312 if (!listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
5313 _toks = tmpMeta[0];
5314 /* Pattern matching succeeded */
5315#line 905 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5316 omc_Tpl_tokensString(threadData, listReverse(_toks), ((modelica_integer) 0), 1, ((modelica_integer) 0), NULL((void*)0), NULL((void*)0));
5317#line 5317 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5318#line 5318 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5319 goto tmp2_done;
5320 }
5321 case 1: {
5322 modelica_boolean tmp5;
5323 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
5324 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
5325 if (listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
5326 tmpMeta[1] = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
5327 tmpMeta[2] = MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
5328 /* Pattern matching succeeded */
5329#line 913 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5330 /* Pattern-matching assignment */
5331#line 913 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5332 tmp5 = omc_Flags_isSet(threadData, _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)));
5333#line 913 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5334 if (1 != tmp5) goto goto_1;
5335#line 5335 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5336
5337#line 913 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5338 omc_Debug_trace(threadData, _OMC_LIT46((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3)));
5339#line 5339 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5340#line 914 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5341 goto goto_1;
5342#line 5342 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5343 goto tmp2_done;
5344 }
5345 case 2: {
5346 modelica_boolean tmp6;
5347
5348 /* Pattern matching succeeded */
5349#line 920 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5350 /* Pattern-matching assignment */
5351#line 920 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5352 tmp6 = omc_Flags_isSet(threadData, _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)));
5353#line 920 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5354 if (1 != tmp6) goto goto_1;
5355#line 5355 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5356
5357#line 920 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5358 omc_Debug_trace(threadData, _OMC_LIT47((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3)));
5359#line 5359 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5360#line 921 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5361 goto goto_1;
5362#line 5362 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5363 goto tmp2_done;
5364 }
5365 }
5366 goto tmp2_end;
5367 tmp2_end: ;
5368 }
5369 goto goto_1;
5370 goto_1:;
5371 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5372 goto tmp2_done;
5373 tmp2_done:;
5374 }
5375 }
5376 ;
5377 _return: OMC_LABEL_UNUSED__attribute__((unused))
5378 return;
5379}
5380
5381DLLExport
5382modelica_string omc_Tpl_textString(threadData_t *threadData, modelica_metatype _inText)
5383{
5384 modelica_string _outString = NULL((void*)0);
5385 modelica_string tmp1 = 0;
5386 MMC_SO()mmc_check_stackoverflow(threadData);
5387 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5388 // _outString has no default value.
5389#line 5389 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5390 { /* match expression */
5391 modelica_metatype tmp4_1;
5392 tmp4_1 = _inText;
5393 {
5394 modelica_metatype _txt = NULL((void*)0);
5395 modelica_string _str = NULL((void*)0);
5396 modelica_integer _handle;
5397 volatile mmc_switch_type tmp4;
5398 int tmp5;
5399 // _txt has no default value.
5400 // _str has no default value.
5401 // _handle has no default value.
5402 tmp4 = 0;
5403 for (; tmp4 < 2; tmp4++) {
5404 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
5405 case 0: {
5406
5407 _txt = tmp4_1;
5408 /* Pattern matching succeeded */
5409#line 876 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5410 _handle = omc_Print_saveAndClearBuf(threadData);
5411#line 5411 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5412
5413#line 877 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5414 omc_Tpl_textStringBuf(threadData, _txt);
5415#line 5415 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5416
5417#line 878 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5418 _str = omc_Print_getString(threadData);
5419#line 5419 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5420
5421#line 879 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5422 omc_Print_restoreBuf(threadData, _handle);
5423#line 5423 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5424#line 880 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5425 tmp1 = _str;
5426#line 5426 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5427 goto tmp3_done;
5428 }
5429 case 1: {
5430 modelica_boolean tmp6;
5431
5432 /* Pattern matching succeeded */
5433#line 886 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5434 /* Pattern-matching assignment */
5435#line 886 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5436 tmp6 = omc_Flags_isSet(threadData, _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)));
5437#line 886 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5438 if (1 != tmp6) goto goto_2;
5439#line 5439 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5440
5441#line 886 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5442 omc_Debug_trace(threadData, _OMC_LIT47((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3)));
5443#line 5443 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5444#line 887 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5445 goto goto_2;
5446#line 5446 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5447 goto tmp3_done;
5448 }
5449 }
5450 goto tmp3_end;
5451 tmp3_end: ;
5452 }
5453 goto goto_2;
5454 goto_2:;
5455 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5456 goto tmp3_done;
5457 tmp3_done:;
5458 }
5459 }
5460 _outString = tmp1;
5461 _return: OMC_LABEL_UNUSED__attribute__((unused))
5462 return _outString;
5463}
5464
5465DLLExport
5466modelica_integer omc_Tpl_getIteri__i0(threadData_t *threadData, modelica_metatype _inText)
5467{
5468 modelica_integer _outI0;
5469 modelica_integer tmp1 = 0;
5470 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
5471 MMC_SO()mmc_check_stackoverflow(threadData);
5472 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5473 // _outI0 has no default value.
5474#line 5474 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5475 { /* match expression */
5476 modelica_metatype tmp4_1;
5477 tmp4_1 = _inText;
5478 {
5479 modelica_metatype _i0 = NULL((void*)0);
5480 volatile mmc_switch_type tmp4;
5481 int tmp5;
5482 // _i0 has no default value.
5483 tmp4 = 0;
5484 for (; tmp4 < 3; tmp4++) {
5485 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
5486 case 0: {
5487 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
5488 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
5489 if (listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
5490 tmpMeta[1] = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
5491 tmpMeta[2] = MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
5492 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
5493 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],5,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((2 +1)
<< 10) + (((5 +3) & 255) << 2)))
== 0) goto tmp3_end;
5494 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
5495 _i0 = tmpMeta[4];
5496 /* Pattern matching succeeded */
5497#line 849 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5498 tmp1 = mmc_unbox_integer(arrayGet(_i0, ((modelica_integer) 1)))(((mmc_sint_t) (nobox_arrayGet(threadData,_i0,((modelica_integer
) 1)))) >> 1)
;
5499#line 5499 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5500 goto tmp3_done;
5501 }
5502 case 1: {
5503 modelica_integer tmp6 = 0;
5504 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,5)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((5 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
5505
5506 /* Pattern matching succeeded */
5507#line 5507 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5508 { /* match expression */
5509 modelica_metatype tmp9_1;
5510 tmp9_1 = listGet(arrayGet((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inText), 6))), ((modelica_integer) 1)), ((modelica_integer) 1))boxptr_listGet(threadData,nobox_arrayGet(threadData,((*(void*
*)(((void*)((void**)(((void*)((char*)(_inText) - 3))) + (6)))
))),((modelica_integer) 1)),mmc_mk_icon(((modelica_integer) 1
)))
;
5511 {
5512 volatile mmc_switch_type tmp9;
5513 int tmp10;
5514 tmp9 = 0;
5515 for (; tmp9 < 1; tmp9++) {
5516 switch (MMC_SWITCH_CAST(tmp9)(tmp9)) {
5517 case 0: {
5518 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp9_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp9_1) - 3))) +
(2)))))
;
5519 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],5,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((2 +1)
<< 10) + (((5 +3) & 255) << 2)))
== 0) goto tmp8_end;
5520 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
5521
5522 _i0 = tmpMeta[1];
5523 /* Pattern matching succeeded */
5524#line 853 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5525 tmp6 = mmc_unbox_integer(arrayGet(_i0, ((modelica_integer) 1)))(((mmc_sint_t) (nobox_arrayGet(threadData,_i0,((modelica_integer
) 1)))) >> 1)
;
5526#line 5526 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5527 goto tmp8_done;
5528 }
5529 }
5530 goto tmp8_end;
5531 tmp8_end: ;
5532 }
5533 goto goto_7;
5534 goto_7:;
5535 goto goto_2;
5536 goto tmp8_done;
5537 tmp8_done:;
5538 }
5539 }tmp1 = tmp6;
5540 goto tmp3_done;
5541 }
5542 case 2: {
5543 modelica_boolean tmp11;
5544
5545 /* Pattern matching succeeded */
5546#line 858 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5547 /* Pattern-matching assignment */
5548#line 858 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5549 tmp11 = omc_Flags_isSet(threadData, _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)));
5550#line 858 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5551 if (1 != tmp11) goto goto_2;
5552#line 5552 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5553
5554#line 858 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5555 omc_Debug_trace(threadData, _OMC_LIT48((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3)));
5556#line 5556 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5557#line 859 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5558 goto goto_2;
5559#line 5559 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5560 goto tmp3_done;
5561 }
5562 }
5563 goto tmp3_end;
5564 tmp3_end: ;
5565 }
5566 goto goto_2;
5567 goto_2:;
5568 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5569 goto tmp3_done;
5570 tmp3_done:;
5571 }
5572 }
5573 _outI0 = tmp1;
5574 _return: OMC_LABEL_UNUSED__attribute__((unused))
5575 return _outI0;
5576}
5577modelica_metatype boxptr_Tpl_getIteri__i0(threadData_t *threadData, modelica_metatype _inText)
5578{
5579 modelica_integer _outI0;
5580 modelica_metatype out_outI0;
5581 _outI0 = omc_Tpl_getIteri__i0(threadData, _inText);
5582 out_outI0 = mmc_mk_icon(_outI0);
5583 return out_outI0;
5584}
5585
5586DLLExport
5587modelica_metatype omc_Tpl_nextIter(threadData_t *threadData, modelica_metatype _D_24in_txt)
5588{
5589 modelica_metatype _txt = NULL((void*)0);
5590 modelica_metatype tmpMeta[11] __attribute__((unused)) = {0};
5591 MMC_SO()mmc_check_stackoverflow(threadData);
5592 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5593 _txt = _D_24in_txt;
5594#line 5594 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5595 { /* match expression */
5596 modelica_metatype tmp3_1;
5597 tmp3_1 = _txt;
5598 {
5599 modelica_metatype _toks = NULL((void*)0);
5600 modelica_metatype _itertoks = NULL((void*)0);
5601 modelica_metatype _tok = NULL((void*)0);
5602 modelica_metatype _emptok = NULL((void*)0);
5603 modelica_metatype _blstack = NULL((void*)0);
5604 modelica_metatype _iopts = NULL((void*)0);
5605 modelica_metatype _i0 = NULL((void*)0);
5606 modelica_metatype _tell = NULL((void*)0);
5607 modelica_metatype _bt = NULL((void*)0);
5608 modelica_integer _tellpos;
5609 modelica_integer _curIndex;
5610 modelica_metatype _txt2 = NULL((void*)0);
5611 modelica_boolean _haveToken;
5612 modelica_metatype _septok = NULL((void*)0);
5613 volatile mmc_switch_type tmp3;
5614 int tmp4;
5615 // _toks has no default value.
5616 // _itertoks has no default value.
5617 // _tok has no default value.
5618 // _emptok has no default value.
5619 // _blstack has no default value.
5620 // _iopts has no default value.
5621 // _i0 has no default value.
5622 // _tell has no default value.
5623 // _bt has no default value.
5624 // _tellpos has no default value.
5625 // _curIndex has no default value.
5626 // _txt2 has no default value.
5627 // _haveToken has no default value.
5628 // _septok has no default value.
5629 tmp3 = 0;
5630 for (; tmp3 < 6; tmp3++) {
5631 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
5632 case 0: {
5633 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
5634 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
5635 if (!listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
5636 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
5637 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
5638 tmpMeta[3] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
5639 tmpMeta[4] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
5640 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (2)))))
;
5641 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[5],5,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5]) - 3)))==(((2 +1)
<< 10) + (((5 +3) & 255) << 2)))
== 0) goto tmp2_end;
5642 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (2)))))
;
5643 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[6]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[6]) - 3
))) + (3)))))
;
5644 if (!optionNone(tmpMeta[7])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[7]) - 3)))) >> 10)) ? 1 : 0)
) goto tmp2_end;
5645
5646 _txt = tmp3_1;
5647 /* Pattern matching succeeded */
5648#line 746 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5649 tmpMeta[0] = _txt;
5650#line 5650 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5651 goto tmp2_done;
5652 }
5653 case 1: {
5654 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
5655 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
5656 if (!listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
5657 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
5658 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
5659 tmpMeta[3] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
5660 tmpMeta[4] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
5661 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (1)))))
;
5662 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (2)))))
;
5663 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[6],5,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[6]) - 3)))==(((2 +1)
<< 10) + (((5 +3) & 255) << 2)))
== 0) goto tmp2_end;
5664 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[6]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[6]) - 3
))) + (2)))))
;
5665 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[7]) - 3
))) + (3)))))
;
5666 if (optionNone(tmpMeta[8])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[8]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[8])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[8]) - 3)))) >> 10)) ? 1 : 0)
) goto tmp2_end;
5667 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[8]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[8]) - 3
))) + (1)))))
;
5668 tmpMeta[10] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[6]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[6]) - 3
))) + (3)))))
;
5669 _itertoks = tmpMeta[5];
5670 _bt = tmpMeta[6];
5671 _emptok = tmpMeta[9];
5672 _i0 = tmpMeta[10];
5673 _blstack = tmpMeta[4];
5674 /* Pattern matching succeeded */
5675#line 758 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5676 arrayUpdate(_i0, ((modelica_integer) 1), mmc_mk_integer(((modelica_integer) 1) + mmc_unbox_integer(arrayGet(_i0, ((modelica_integer) 1)))))boxptr_arrayUpdate(threadData,_i0,mmc_mk_icon(((modelica_integer
) 1)),mmc_mk_icon(((modelica_integer) 1) + (((mmc_sint_t) (nobox_arrayGet
(threadData,_i0,((modelica_integer) 1)))) >> 1)))
;
5677#line 5677 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5678#line 759 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5679 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
5680#line 759 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5681 tmpMeta[3] = mmc_mk_cons(_emptok, _itertoks);
5682#line 759 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5683 tmpMeta[4] = mmc_mk_box2(0, tmpMeta[3], _bt);
5684#line 759 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5685 tmpMeta[2] = mmc_mk_cons(tmpMeta[4], _blstack);
5686#line 759 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5687 tmpMeta[5] = mmc_mk_box3(3, &Tpl_Text_MEM__TEXT__desc, tmpMeta[1], tmpMeta[2]);
5688#line 759 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5689 tmpMeta[0] = tmpMeta[5];
5690#line 5690 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5691 goto tmp2_done;
5692 }
5693 case 2: {
5694 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
5695 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
5696 if (listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
5697 tmpMeta[2] = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
5698 tmpMeta[3] = MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
5699 if (!listEmpty(tmpMeta[3])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
5700 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
5701 if (listEmpty(tmpMeta[4])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
5702 tmpMeta[5] = MMC_CAR(tmpMeta[4])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (1)))))
;
5703 tmpMeta[6] = MMC_CDR(tmpMeta[4])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (2)))))
;
5704 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (1)))))
;
5705 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (2)))))
;
5706 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[8],5,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[8]) - 3)))==(((2 +1)
<< 10) + (((5 +3) & 255) << 2)))
== 0) goto tmp2_end;
5707 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[8]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[8]) - 3
))) + (3)))))
;
5708 _tok = tmpMeta[2];
5709 _itertoks = tmpMeta[7];
5710 _bt = tmpMeta[8];
5711 _i0 = tmpMeta[9];
5712 _blstack = tmpMeta[6];
5713 /* Pattern matching succeeded */
5714#line 772 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5715 arrayUpdate(_i0, ((modelica_integer) 1), mmc_mk_integer(((modelica_integer) 1) + mmc_unbox_integer(arrayGet(_i0, ((modelica_integer) 1)))))boxptr_arrayUpdate(threadData,_i0,mmc_mk_icon(((modelica_integer
) 1)),mmc_mk_icon(((modelica_integer) 1) + (((mmc_sint_t) (nobox_arrayGet
(threadData,_i0,((modelica_integer) 1)))) >> 1)))
;
5716#line 5716 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5717#line 773 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5718 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
5719#line 773 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5720 tmpMeta[3] = mmc_mk_cons(_tok, _itertoks);
5721#line 773 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5722 tmpMeta[4] = mmc_mk_box2(0, tmpMeta[3], _bt);
5723#line 773 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5724 tmpMeta[2] = mmc_mk_cons(tmpMeta[4], _blstack);
5725#line 773 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5726 tmpMeta[5] = mmc_mk_box3(3, &Tpl_Text_MEM__TEXT__desc, tmpMeta[1], tmpMeta[2]);
5727#line 773 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5728 tmpMeta[0] = tmpMeta[5];
5729#line 5729 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5730 goto tmp2_done;
5731 }
5732 case 3: {
5733 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
5734 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
5735 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
5736 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
5737 tmpMeta[3] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
5738 tmpMeta[4] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
5739 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (1)))))
;
5740 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (2)))))
;
5741 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[6],5,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[6]) - 3)))==(((2 +1)
<< 10) + (((5 +3) & 255) << 2)))
== 0) goto tmp2_end;
5742 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[6]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[6]) - 3
))) + (3)))))
;
5743 _toks = tmpMeta[1];
5744 _itertoks = tmpMeta[5];
5745 _bt = tmpMeta[6];
5746 _i0 = tmpMeta[7];
5747 _blstack = tmpMeta[4];
5748 /* Pattern matching succeeded */
5749#line 785 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5750 arrayUpdate(_i0, ((modelica_integer) 1), mmc_mk_integer(((modelica_integer) 1) + mmc_unbox_integer(arrayGet(_i0, ((modelica_integer) 1)))))boxptr_arrayUpdate(threadData,_i0,mmc_mk_icon(((modelica_integer
) 1)),mmc_mk_icon(((modelica_integer) 1) + (((mmc_sint_t) (nobox_arrayGet
(threadData,_i0,((modelica_integer) 1)))) >> 1)))
;
5751#line 5751 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5752#line 786 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5753 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
5754#line 786 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5755 tmpMeta[4] = mmc_mk_box3(7, &Tpl_StringToken_ST__BLOCK__desc, _toks, _OMC_LIT40((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3)));
5756#line 786 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5757 tmpMeta[3] = mmc_mk_cons(tmpMeta[4], _itertoks);
5758#line 786 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5759 tmpMeta[5] = mmc_mk_box2(0, tmpMeta[3], _bt);
5760#line 786 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5761 tmpMeta[2] = mmc_mk_cons(tmpMeta[5], _blstack);
5762#line 786 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5763 tmpMeta[6] = mmc_mk_box3(3, &Tpl_Text_MEM__TEXT__desc, tmpMeta[1], tmpMeta[2]);
5764#line 786 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5765 tmpMeta[0] = tmpMeta[6];
5766#line 5766 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5767 goto tmp2_done;
5768 }
5769 case 4: {
5770 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,5)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((5 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
5771
5772 /* Pattern matching succeeded */
5773#line 5773 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5774 { /* match expression */
5775 modelica_metatype tmp7_1;
5776 tmp7_1 = listGet(arrayGet((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_txt), 6))), ((modelica_integer) 1)), ((modelica_integer) 1))boxptr_listGet(threadData,nobox_arrayGet(threadData,((*(void*
*)(((void*)((void**)(((void*)((char*)(_txt) - 3))) + (6))))))
,((modelica_integer) 1)),mmc_mk_icon(((modelica_integer) 1)))
;
5777 {
5778 volatile mmc_switch_type tmp7;
5779 int tmp8;
5780 tmp7 = 0;
5781 for (; tmp7 < 1; tmp7++) {
5782 switch (MMC_SWITCH_CAST(tmp7)(tmp7)) {
5783 case 0: {
5784 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp7_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp7_1) - 3))) +
(2)))))
;
5785 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],5,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((2 +1)
<< 10) + (((5 +3) & 255) << 2)))
== 0) goto tmp6_end;
5786 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
5787 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
5788 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp7_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp7_1) - 3))) +
(6)))))
;
5789 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp7_1), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmp7_1) - 3))) +
(7)))))
;
5790 _iopts = tmpMeta[2];
5791 _i0 = tmpMeta[3];
5792 _tell = tmpMeta[4];
5793 _septok = tmpMeta[5];
5794 /* Pattern matching succeeded */
5795#line 798 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5796 _tellpos = omc_Tpl_textFileTell(threadData, _txt);
5797#line 5797 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5798
5799#line 799 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5800 if((mmc_unbox_integer(arrayGet(_tell, ((modelica_integer) 1)))(((mmc_sint_t) (nobox_arrayGet(threadData,_tell,((modelica_integer
) 1)))) >> 1)
!= _tellpos))
5801#line 799 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5802 {
5803#line 801 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5804 arrayUpdate(_tell, ((modelica_integer) 1), mmc_mk_integer(_tellpos))boxptr_arrayUpdate(threadData,_tell,mmc_mk_icon(((modelica_integer
) 1)),mmc_mk_icon(_tellpos))
;
5805#line 5805 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5806
5807#line 802 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5808 _txt2 = _txt;
5809#line 5809 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5810
5811#line 803 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5812 _haveToken = 1;
5813#line 5813 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5814 }
5815 else
5816 {
5817#line 5817 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5818 { /* match expression */
5819 modelica_metatype tmp11_1;
5820 tmp11_1 = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_iopts), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_iopts) - 3))) +
(3)))))
);
5821 {
5822 volatile mmc_switch_type tmp11;
5823 int tmp12;
5824 tmp11 = 0;
5825 for (; tmp11 < 2; tmp11++) {
5826 switch (MMC_SWITCH_CAST(tmp11)(tmp11)) {
5827 case 0: {
5828 if (!optionNone(tmp11_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp11_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp11_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp11_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp10_end;
5829 /* Pattern matching succeeded */
5830#line 809 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5831 _haveToken = 0;
5832#line 5832 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5833#line 810 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5834 tmpMeta[1] = _txt;
5835#line 5835 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5836 goto tmp10_done;
5837 }
5838 case 1: {
5839 if (optionNone(tmp11_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp11_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp11_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp11_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp10_end;
5840 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp11_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp11_1) - 3)))
+ (1)))))
;
5841 _emptok = tmpMeta[2];
5842 /* Pattern matching succeeded */
5843#line 813 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5844 arrayUpdate(_i0, ((modelica_integer) 1), mmc_mk_integer(((modelica_integer) 1) + mmc_unbox_integer(arrayGet(_i0, ((modelica_integer) 1)))))boxptr_arrayUpdate(threadData,_i0,mmc_mk_icon(((modelica_integer
) 1)),mmc_mk_icon(((modelica_integer) 1) + (((mmc_sint_t) (nobox_arrayGet
(threadData,_i0,((modelica_integer) 1)))) >> 1)))
;
5845#line 5845 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5846
5847#line 814 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5848 _haveToken = 1;
5849#line 5849 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5850#line 815 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5851 tmpMeta[1] = omc_Tpl_writeTok(threadData, _txt, _emptok);
5852#line 5852 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5853 goto tmp10_done;
5854 }
5855 }
5856 goto tmp10_end;
5857 tmp10_end: ;
5858 }
5859 goto goto_9;
5860 goto_9:;
5861 goto goto_5;
5862 goto tmp10_done;
5863 tmp10_done:;
5864 }
5865 }
5866 _txt2 = tmpMeta[1];
5867 }
5868
5869#line 818 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5870 if(_haveToken)
5871#line 818 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5872 {
5873#line 820 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5874 _curIndex = mmc_unbox_integer(arrayGet(_i0, ((modelica_integer) 1)))(((mmc_sint_t) (nobox_arrayGet(threadData,_i0,((modelica_integer
) 1)))) >> 1)
;
5875#line 5875 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5876
5877#line 821 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5878 arrayUpdate(_septok, ((modelica_integer) 1), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_iopts), 4))))boxptr_arrayUpdate(threadData,_septok,mmc_mk_icon(((modelica_integer
) 1)),((*(void**)(((void*)((void**)(((void*)((char*)(_iopts) -
3))) + (4)))))))
;
5879#line 5879 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5880
5881#line 822 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5882 arrayUpdate(_i0, ((modelica_integer) 1), mmc_mk_integer(((modelica_integer) 1) + _curIndex))boxptr_arrayUpdate(threadData,_i0,mmc_mk_icon(((modelica_integer
) 1)),mmc_mk_icon(((modelica_integer) 1) + _curIndex))
;
5883#line 5883 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5884 }
5885#line 5885 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5886 goto tmp6_done;
5887 }
5888 }
5889 goto tmp6_end;
5890 tmp6_end: ;
5891 }
5892 goto goto_5;
5893 goto_5:;
5894 goto goto_1;
5895 goto tmp6_done;
5896 tmp6_done:;
5897 }
5898 }
5899 ;
5900#line 826 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5901 tmpMeta[0] = _txt2;
5902#line 5902 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5903 goto tmp2_done;
5904 }
5905 case 5: {
5906
5907 /* Pattern matching succeeded */
5908#line 831 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5909 omc_Error_addInternalError(threadData, _OMC_LIT49((void*)((char*)(&(_OMC_LIT_STRUCT49).header) + 3)), _OMC_LIT50((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3)));
5910#line 5910 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5911#line 832 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5912 goto goto_1;
5913#line 5913 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5914 goto tmp2_done;
5915 }
5916 }
5917 goto tmp2_end;
5918 tmp2_end: ;
5919 }
5920 goto goto_1;
5921 goto_1:;
5922 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5923 goto tmp2_done;
5924 tmp2_done:;
5925 }
5926 }
5927 _txt = tmpMeta[0];
5928 _return: OMC_LABEL_UNUSED__attribute__((unused))
5929 return _txt;
5930}
5931
5932DLLExport
5933modelica_metatype omc_Tpl_popIter(threadData_t *threadData, modelica_metatype _D_24in_txt)
5934{
5935 modelica_metatype _txt = NULL((void*)0);
5936 modelica_metatype tmpMeta[10] __attribute__((unused)) = {0};
5937 MMC_SO()mmc_check_stackoverflow(threadData);
5938 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5939 _txt = _D_24in_txt;
5940#line 5940 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5941 { /* match expression */
5942 modelica_metatype tmp3_1;
5943 tmp3_1 = _txt;
5944 {
5945 modelica_metatype _stacktoks = NULL((void*)0);
5946 modelica_metatype _itertoks = NULL((void*)0);
5947 modelica_metatype _blstack = NULL((void*)0);
5948 modelica_metatype _blType = NULL((void*)0);
5949 volatile mmc_switch_type tmp3;
5950 int tmp4;
5951 // _stacktoks has no default value.
5952 // _itertoks has no default value.
5953 // _blstack has no default value.
5954 // _blType has no default value.
5955 tmp3 = 0;
5956 for (; tmp3 < 4; tmp3++) {
5957 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
5958 case 0: {
5959 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
5960 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
5961 if (!listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
5962 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
5963 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
5964 tmpMeta[3] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
5965 tmpMeta[4] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
5966 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (1)))))
;
5967 if (!listEmpty(tmpMeta[5])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
5968 if (listEmpty(tmpMeta[4])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
5969 tmpMeta[6] = MMC_CAR(tmpMeta[4])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (1)))))
;
5970 tmpMeta[7] = MMC_CDR(tmpMeta[4])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (2)))))
;
5971 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[6]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[6]) - 3
))) + (1)))))
;
5972
5973 _stacktoks = tmpMeta[8];
5974 _blstack = tmpMeta[7];
5975 /* Pattern matching succeeded */
5976#line 697 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5977 tmpMeta[1] = mmc_mk_box3(3, &Tpl_Text_MEM__TEXT__desc, _stacktoks, _blstack);
5978#line 697 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
5979 tmpMeta[0] = tmpMeta[1];
5980#line 5980 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
5981 goto tmp2_done;
5982 }
5983 case 1: {
5984 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
5985 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
5986 if (!listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
5987 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
5988 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
5989 tmpMeta[3] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
5990 tmpMeta[4] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
5991 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (1)))))
;
5992 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (2)))))
;
5993 if (listEmpty(tmpMeta[4])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
5994 tmpMeta[7] = MMC_CAR(tmpMeta[4])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (1)))))
;
5995 tmpMeta[8] = MMC_CDR(tmpMeta[4])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (2)))))
;
5996 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[7]) - 3
))) + (1)))))
;
5997
5998 _itertoks = tmpMeta[5];
5999 _blType = tmpMeta[6];
6000 _stacktoks = tmpMeta[9];
6001 _blstack = tmpMeta[8];
6002 /* Pattern matching succeeded */
6003#line 704 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
6004 tmpMeta[2] = mmc_mk_box3(7, &Tpl_StringToken_ST__BLOCK__desc, _itertoks, _blType);
6005#line 704 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
6006 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _stacktoks);
6007#line 704 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
6008 tmpMeta[3] = mmc_mk_box3(3, &Tpl_Text_MEM__TEXT__desc, tmpMeta[1], _blstack);
6009#line 704 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
6010 tmpMeta[0] = tmpMeta[3];
6011#line 6011 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
6012 goto tmp2_done;
6013 }
6014 case 2: {
6015 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,5)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((5 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
6016
6017 /* Pattern matching succeeded */
6018#line 711 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
6019 arrayUpdate((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_txt), 6))), ((modelica_integer) 1), listRest(arrayGet((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_txt), 6))), ((modelica_integer) 1))))boxptr_arrayUpdate(threadData,((*(void**)(((void*)((void**)((
(void*)((char*)(_txt) - 3))) + (6)))))),mmc_mk_icon(((modelica_integer
) 1)),boxptr_listRest(threadData,nobox_arrayGet(threadData,((
*(void**)(((void*)((void**)(((void*)((char*)(_txt) - 3))) + (
6)))))),((modelica_integer) 1))))
;
6020#line 6020 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
6021#line 712 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
6022 tmpMeta[0] = _txt;
6023#line 6023 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
6024 goto tmp2_done;
6025 }
6026 case 3: {
6027 modelica_boolean tmp5;
6028
6029 /* Pattern matching succeeded */
6030#line 718 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
6031 /* Pattern-matching assignment */
6032#line 718 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
6033 tmp5 = omc_Flags_isSet(threadData, _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)));
6034#line 718 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
6035 if (1 != tmp5) goto goto_1;
6036#line 6036 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
6037
6038#line 718 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
6039 omc_Debug_trace(threadData, _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)));
6040#line 6040 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
6041#line 719 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Template/Tpl.mo"
6042 goto goto_1;
6043#line 6043 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
6044 goto tmp2_done;
6045 }
6046 }
6047 goto tmp2_end;
6048 tmp2_end: ;
6049 }
6050 goto goto_1;
6051 goto_1:;
6052 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
6053 goto tmp2_done;
6054 tmp2_done:;
6055 }
6056 }
6057 _txt = tmpMeta[0];
6058 _return: OMC_LABEL_UNUSED__attribute__((unused))
6059 return _txt;
6060}
6061
6062DLLExport
6063modelica_metatype omc_Tpl_pushIter(threadData_t *threadData, modelica_metatype _D_24in_txt, modelica_metatype _inIterOptions)
6064{
6065 modelica_metatype _txt = NULL((void*)0);
6066 modelica_metatype tmpMeta[9] __attribute__((unused)) = {0};
6067 MMC_SO()mmc_check_stackoverflow(threadData);
6068 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
6069 _txt = _D_24in_txt;
6070#line 6070 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/Tpl.c"
6071 { /* match expression */
6072 modelica_metatype tmp3_1;modelica_metatype tmp3_2;
6073 tmp3_1 = _txt;
6074 tmp3_2 = _inIterOptions;
6075 {
6076 modelica_metatype _toks = NULL((void*)0);
6077 modelica_metatype _blstack = NULL((void*)0);
6078 modelica_metatype _iopts = NULL((void*)0);
6079 modelica_integer _