#ifdef OMC_BASE_FILE
#define OMC_FILE OMC_BASE_FILE
#else
#define OMC_FILE "DAEDumpTpl.c"
#endif
#include "omc_simulation_settings.h"
#include "DAEDumpTpl.h"
#define _OMC_LIT0_data " + "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT0,3,_OMC_LIT0_data);
#define _OMC_LIT0 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT0)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT1,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT0}};
#define _OMC_LIT1 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT1)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT2,1,1) {_OMC_LIT1}};
#define _OMC_LIT2 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT2)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT3,1,3) {&Tpl_StringToken_ST__NEW__LINE__desc,}};
#define _OMC_LIT3 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT3)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT4,9,3) {&Tpl_IterOptions_ITER__OPTIONS__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),MMC_REFSTRUCTLIT(mmc_none),_OMC_LIT2,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),_OMC_LIT3,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),_OMC_LIT3}};
#define _OMC_LIT4 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT4)
#define _OMC_LIT5_data "dumpPathLastIndent: Unknown path."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT5,33,_OMC_LIT5_data);
#define _OMC_LIT5 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT5)
#define _OMC_LIT6_data "annotation"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT6,10,_OMC_LIT6_data);
#define _OMC_LIT6 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT6)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT7,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT6}};
#define _OMC_LIT7 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT7)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT8,10,3) {&SCodeDump_SCodeDumpOptions_OPTIONS__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),MMC_IMMEDIATE(MMC_TAGFIXNUM(1)),MMC_IMMEDIATE(MMC_TAGFIXNUM(1)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))}};
#define _OMC_LIT8 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT8)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT9,3,3) {&Tpl_Text_MEM__TEXT__desc,MMC_REFSTRUCTLIT(mmc_nil),MMC_REFSTRUCTLIT(mmc_nil)}};
#define _OMC_LIT9 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT9)
#define _OMC_LIT10_data " "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT10,1,_OMC_LIT10_data);
#define _OMC_LIT10 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT10)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT11,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT10}};
#define _OMC_LIT11 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT11)
#define _OMC_LIT12_data "\""
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT12,1,_OMC_LIT12_data);
#define _OMC_LIT12 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT12)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT13,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT12}};
#define _OMC_LIT13 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT13)
#define _OMC_LIT14_data ";"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT14,1,_OMC_LIT14_data);
#define _OMC_LIT14 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT14)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT15,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT14}};
#define _OMC_LIT15 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT15)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT16,2,4) {&Tpl_BlockType_BT__INDENT__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(2))}};
#define _OMC_LIT16 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT16)
#define _OMC_LIT17_data "end "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT17,4,_OMC_LIT17_data);
#define _OMC_LIT17 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT17)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT18,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT17}};
#define _OMC_LIT18 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT18)
#define _OMC_LIT19_data "reinit("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT19,7,_OMC_LIT19_data);
#define _OMC_LIT19 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT19)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT20,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT19}};
#define _OMC_LIT20 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT20)
#define _OMC_LIT21_data ", "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT21,2,_OMC_LIT21_data);
#define _OMC_LIT21 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT21)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT22,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT21}};
#define _OMC_LIT22 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT22)
#define _OMC_LIT23_data ")"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT23,1,_OMC_LIT23_data);
#define _OMC_LIT23 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT23)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT24,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT23}};
#define _OMC_LIT24 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT24)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT25,1,1) {_OMC_LIT3}};
#define _OMC_LIT25 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT25)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT26,9,3) {&Tpl_IterOptions_ITER__OPTIONS__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),MMC_REFSTRUCTLIT(mmc_none),_OMC_LIT25,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),_OMC_LIT3,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),_OMC_LIT3}};
#define _OMC_LIT26 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT26)
#define _OMC_LIT27_data "when "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT27,5,_OMC_LIT27_data);
#define _OMC_LIT27 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT27)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT28,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT27}};
#define _OMC_LIT28 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT28)
#define _OMC_LIT29_data " then\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT29,6,_OMC_LIT29_data);
#define _OMC_LIT29 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT29)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT30,2,5) {&Tpl_StringToken_ST__LINE__desc,_OMC_LIT29}};
#define _OMC_LIT30 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT30)
#define _OMC_LIT31_data "end when"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT31,8,_OMC_LIT31_data);
#define _OMC_LIT31 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT31)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT32,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT31}};
#define _OMC_LIT32 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT32)
#define _OMC_LIT33_data "else"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT33,4,_OMC_LIT33_data);
#define _OMC_LIT33 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT33)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT34,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT33}};
#define _OMC_LIT34 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT34)
#define _OMC_LIT35_data "while "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT35,6,_OMC_LIT35_data);
#define _OMC_LIT35 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT35)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT36,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT35}};
#define _OMC_LIT36 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT36)
#define _OMC_LIT37_data " loop\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT37,6,_OMC_LIT37_data);
#define _OMC_LIT37 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT37)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT38,2,5) {&Tpl_StringToken_ST__LINE__desc,_OMC_LIT37}};
#define _OMC_LIT38 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT38)
#define _OMC_LIT39_data "end while"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT39,9,_OMC_LIT39_data);
#define _OMC_LIT39 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT39)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT40,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT39}};
#define _OMC_LIT40 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT40)
#define _OMC_LIT41_data "parfor "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT41,7,_OMC_LIT41_data);
#define _OMC_LIT41 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT41)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT42,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT41}};
#define _OMC_LIT42 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT42)
#define _OMC_LIT43_data " in "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT43,4,_OMC_LIT43_data);
#define _OMC_LIT43 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT43)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT44,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT43}};
#define _OMC_LIT44 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT44)
#define _OMC_LIT45_data "end for"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT45,7,_OMC_LIT45_data);
#define _OMC_LIT45 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT45)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT46,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT45}};
#define _OMC_LIT46 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT46)
#define _OMC_LIT47_data "for "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT47,4,_OMC_LIT47_data);
#define _OMC_LIT47 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT47)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT48,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT47}};
#define _OMC_LIT48 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT48)
#define _OMC_LIT49_data "elseif "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT49,7,_OMC_LIT49_data);
#define _OMC_LIT49 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT49)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT50,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT49}};
#define _OMC_LIT50 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT50)
#define _OMC_LIT51_data "else\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT51,5,_OMC_LIT51_data);
#define _OMC_LIT51 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT51)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT52,2,5) {&Tpl_StringToken_ST__LINE__desc,_OMC_LIT51}};
#define _OMC_LIT52 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT52)
#define _OMC_LIT53_data "if "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT53,3,_OMC_LIT53_data);
#define _OMC_LIT53 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT53)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT54,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT53}};
#define _OMC_LIT54 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT54)
#define _OMC_LIT55_data "end if"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT55,6,_OMC_LIT55_data);
#define _OMC_LIT55 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT55)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT56,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT55}};
#define _OMC_LIT56 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT56)
#define _OMC_LIT57_data " := "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT57,4,_OMC_LIT57_data);
#define _OMC_LIT57 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT57)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT58,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT57}};
#define _OMC_LIT58 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT58)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT59,1,1) {_OMC_LIT22}};
#define _OMC_LIT59 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT59)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT60,9,3) {&Tpl_IterOptions_ITER__OPTIONS__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),MMC_REFSTRUCTLIT(mmc_none),_OMC_LIT59,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),_OMC_LIT3,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),_OMC_LIT3}};
#define _OMC_LIT60 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT60)
#define _OMC_LIT61_data "("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT61,1,_OMC_LIT61_data);
#define _OMC_LIT61 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT61)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT62,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT61}};
#define _OMC_LIT62 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT62)
#define _OMC_LIT63_data ") := "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT63,5,_OMC_LIT63_data);
#define _OMC_LIT63 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT63)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT64,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT63}};
#define _OMC_LIT64 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT64)
#define _OMC_LIT65_data "return;"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT65,7,_OMC_LIT65_data);
#define _OMC_LIT65 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT65)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT66,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT65}};
#define _OMC_LIT66 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT66)
#define _OMC_LIT67_data "break;"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT67,6,_OMC_LIT67_data);
#define _OMC_LIT67 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT67)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT68,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT67}};
#define _OMC_LIT68 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT68)
#define _OMC_LIT69_data "continue;"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT69,9,_OMC_LIT69_data);
#define _OMC_LIT69 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT69)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT70,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT69}};
#define _OMC_LIT70 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT70)
#define _OMC_LIT71_data "fail();"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT71,7,_OMC_LIT71_data);
#define _OMC_LIT71 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT71)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT72,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT71}};
#define _OMC_LIT72 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT72)
#define _OMC_LIT73_data "DAEDump.dumpStatement: Unknown statement."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT73,41,_OMC_LIT73_data);
#define _OMC_LIT73 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT73)
#define _OMC_LIT74_data "algorithm"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT74,9,_OMC_LIT74_data);
#define _OMC_LIT74 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT74)
#define _OMC_LIT75_data "initial algorithm"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT75,17,_OMC_LIT75_data);
#define _OMC_LIT75 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT75)
#define _OMC_LIT76_data "return "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT76,7,_OMC_LIT76_data);
#define _OMC_LIT76 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT76)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT77,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT76}};
#define _OMC_LIT77 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT77)
#define _OMC_LIT78_data "terminate("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT78,10,_OMC_LIT78_data);
#define _OMC_LIT78 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT78)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT79,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT78}};
#define _OMC_LIT79 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT79)
#define _OMC_LIT80_data "assert("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT80,7,_OMC_LIT80_data);
#define _OMC_LIT80 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT80)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT81,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT80}};
#define _OMC_LIT81 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT81)
#define _OMC_LIT82_data ", AssertionLevel.warning"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT82,24,_OMC_LIT82_data);
#define _OMC_LIT82 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT82)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT83,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT82}};
#define _OMC_LIT83 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT83)
#define _OMC_LIT84_data " = "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT84,3,_OMC_LIT84_data);
#define _OMC_LIT84 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT84)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT85,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT84}};
#define _OMC_LIT85 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT85)
#define _OMC_LIT86_data "UNKNOWN EQUATION TYPE"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT86,21,_OMC_LIT86_data);
#define _OMC_LIT86 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT86)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT87,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT86}};
#define _OMC_LIT87 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT87)
#define _OMC_LIT88_data "equation\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT88,9,_OMC_LIT88_data);
#define _OMC_LIT88 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT88)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT89,2,5) {&Tpl_StringToken_ST__LINE__desc,_OMC_LIT88}};
#define _OMC_LIT89 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT89)
#define _OMC_LIT90_data "initial equation\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT90,17,_OMC_LIT90_data);
#define _OMC_LIT90 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT90)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT91,2,5) {&Tpl_StringToken_ST__LINE__desc,_OMC_LIT90}};
#define _OMC_LIT91 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT91)
#define _OMC_LIT92_data ":"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT92,1,_OMC_LIT92_data);
#define _OMC_LIT92 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT92)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT93,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT92}};
#define _OMC_LIT93 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT93)
#define _OMC_LIT94_data "1:"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT94,2,_OMC_LIT94_data);
#define _OMC_LIT94 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT94)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT95,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT94}};
#define _OMC_LIT95 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT95)
#define _OMC_LIT96_data "modelicaOutput"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT96,14,_OMC_LIT96_data);
#define _OMC_LIT96 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT96)
#define _OMC_LIT97_data "m"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT97,1,_OMC_LIT97_data);
#define _OMC_LIT97 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT97)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT98,1,1) {_OMC_LIT97}};
#define _OMC_LIT98 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT98)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT99,1,4) {&Flags_FlagVisibility_EXTERNAL__desc,}};
#define _OMC_LIT99 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT99)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT100,2,4) {&Flags_FlagData_BOOL__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(0))}};
#define _OMC_LIT100 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT100)
#define _OMC_LIT101_data "Enables valid modelica output for flat modelica."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT101,48,_OMC_LIT101_data);
#define _OMC_LIT101 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT101)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT102,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT101}};
#define _OMC_LIT102 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT102)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT103,8,3) {&Flags_ConfigFlag_CONFIG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(21)),_OMC_LIT96,_OMC_LIT98,_OMC_LIT99,_OMC_LIT100,MMC_REFSTRUCTLIT(mmc_none),_OMC_LIT102}};
#define _OMC_LIT103 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT103)
#define _OMC_LIT104_data ","
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT104,1,_OMC_LIT104_data);
#define _OMC_LIT104 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT104)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT105,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT104}};
#define _OMC_LIT105 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT105)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT106,1,1) {_OMC_LIT105}};
#define _OMC_LIT106 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT106)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT107,9,3) {&Tpl_IterOptions_ITER__OPTIONS__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),MMC_REFSTRUCTLIT(mmc_none),_OMC_LIT106,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),_OMC_LIT3,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),_OMC_LIT3}};
#define _OMC_LIT107 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT107)
#define _OMC_LIT108_data "["
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT108,1,_OMC_LIT108_data);
#define _OMC_LIT108 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT108)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT109,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT108}};
#define _OMC_LIT109 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT109)
#define _OMC_LIT110_data "]"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT110,1,_OMC_LIT110_data);
#define _OMC_LIT110 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT110)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT111,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT110}};
#define _OMC_LIT111 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT111)
#define _OMC_LIT112_data "_"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT112,1,_OMC_LIT112_data);
#define _OMC_LIT112 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT112)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT113,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT112}};
#define _OMC_LIT113 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT113)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT114,1,1) {_OMC_LIT113}};
#define _OMC_LIT114 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT114)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT115,9,3) {&Tpl_IterOptions_ITER__OPTIONS__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),MMC_REFSTRUCTLIT(mmc_none),_OMC_LIT114,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),_OMC_LIT3,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),_OMC_LIT3}};
#define _OMC_LIT115 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT115)
#define _OMC_LIT116_data "der("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT116,4,_OMC_LIT116_data);
#define _OMC_LIT116 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT116)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT117,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT116}};
#define _OMC_LIT117 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT117)
#define _OMC_LIT118_data "$DER"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT118,4,_OMC_LIT118_data);
#define _OMC_LIT118 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT118)
#define _OMC_LIT119_data "."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT119,1,_OMC_LIT119_data);
#define _OMC_LIT119 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT119)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT120,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT119}};
#define _OMC_LIT120 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT120)
#define _OMC_LIT121_data "__"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT121,2,_OMC_LIT121_data);
#define _OMC_LIT121 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT121)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT122,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT121}};
#define _OMC_LIT122 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT122)
#define _OMC_LIT123_data "startOrigin"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT123,11,_OMC_LIT123_data);
#define _OMC_LIT123 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT123)
#define _OMC_LIT124_data "Distribution(name = "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT124,20,_OMC_LIT124_data);
#define _OMC_LIT124 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT124)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT125,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT124}};
#define _OMC_LIT125 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT125)
#define _OMC_LIT126_data ", params = "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT126,11,_OMC_LIT126_data);
#define _OMC_LIT126 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT126)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT127,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT126}};
#define _OMC_LIT127 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT127)
#define _OMC_LIT128_data ", paramNames = "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT128,15,_OMC_LIT128_data);
#define _OMC_LIT128 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT128)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT129,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT128}};
#define _OMC_LIT129 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT129)
#define _OMC_LIT130_data "distribution = "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT130,15,_OMC_LIT130_data);
#define _OMC_LIT130 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT130)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT131,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT130}};
#define _OMC_LIT131 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT131)
#define _OMC_LIT132_data "Uncertainty.given"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT132,17,_OMC_LIT132_data);
#define _OMC_LIT132 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT132)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT133,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT132}};
#define _OMC_LIT133 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT133)
#define _OMC_LIT134_data "Uncertainty.sought"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT134,18,_OMC_LIT134_data);
#define _OMC_LIT134 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT134)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT135,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT134}};
#define _OMC_LIT135 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT135)
#define _OMC_LIT136_data "Uncertainty.refine"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT136,18,_OMC_LIT136_data);
#define _OMC_LIT136 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT136)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT137,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT136}};
#define _OMC_LIT137 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT137)
#define _OMC_LIT138_data "uncertainty = "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT138,14,_OMC_LIT138_data);
#define _OMC_LIT138 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT138)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT139,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT138}};
#define _OMC_LIT139 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT139)
#define _OMC_LIT140_data "StateSelect.never"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT140,17,_OMC_LIT140_data);
#define _OMC_LIT140 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT140)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT141,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT140}};
#define _OMC_LIT141 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT141)
#define _OMC_LIT142_data "StateSelect.avoid"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT142,17,_OMC_LIT142_data);
#define _OMC_LIT142 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT142)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT143,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT142}};
#define _OMC_LIT143 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT143)
#define _OMC_LIT144_data "StateSelect.default"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT144,19,_OMC_LIT144_data);
#define _OMC_LIT144 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT144)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT145,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT144}};
#define _OMC_LIT145 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT145)
#define _OMC_LIT146_data "StateSelect.prefer"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT146,18,_OMC_LIT146_data);
#define _OMC_LIT146 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT146)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT147,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT146}};
#define _OMC_LIT147 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT147)
#define _OMC_LIT148_data "StateSelect.always"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT148,18,_OMC_LIT148_data);
#define _OMC_LIT148 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT148)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT149,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT148}};
#define _OMC_LIT149 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT149)
#define _OMC_LIT150_data "stateSelect = "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT150,14,_OMC_LIT150_data);
#define _OMC_LIT150 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT150)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT151,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT150}};
#define _OMC_LIT151 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT151)
#define _OMC_LIT152_data "quantity"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT152,8,_OMC_LIT152_data);
#define _OMC_LIT152 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT152)
#define _OMC_LIT153_data "unit"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT153,4,_OMC_LIT153_data);
#define _OMC_LIT153 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT153)
#define _OMC_LIT154_data "displayUnit"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT154,11,_OMC_LIT154_data);
#define _OMC_LIT154 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT154)
#define _OMC_LIT155_data "min"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT155,3,_OMC_LIT155_data);
#define _OMC_LIT155 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT155)
#define _OMC_LIT156_data "max"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT156,3,_OMC_LIT156_data);
#define _OMC_LIT156 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT156)
#define _OMC_LIT157_data "start"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT157,5,_OMC_LIT157_data);
#define _OMC_LIT157 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT157)
#define _OMC_LIT158_data "fixed"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT158,5,_OMC_LIT158_data);
#define _OMC_LIT158 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT158)
#define _OMC_LIT159_data "nominal"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT159,7,_OMC_LIT159_data);
#define _OMC_LIT159 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT159)
#define _OMC_LIT160_data "parglobal "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT160,10,_OMC_LIT160_data);
#define _OMC_LIT160 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT160)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT161,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT160}};
#define _OMC_LIT161 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT161)
#define _OMC_LIT162_data "parlocal "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT162,9,_OMC_LIT162_data);
#define _OMC_LIT162 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT162)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT163,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT162}};
#define _OMC_LIT163 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT163)
#define _OMC_LIT164_data "parameter "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT164,10,_OMC_LIT164_data);
#define _OMC_LIT164 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT164)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT165,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT164}};
#define _OMC_LIT165 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT165)
#define _OMC_LIT166_data "constant "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT166,9,_OMC_LIT166_data);
#define _OMC_LIT166 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT166)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT167,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT166}};
#define _OMC_LIT167 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT167)
#define _OMC_LIT168_data "record "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT168,7,_OMC_LIT168_data);
#define _OMC_LIT168 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT168)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT169,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT168}};
#define _OMC_LIT169 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT169)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT170,2,4) {&Tpl_BlockType_BT__INDENT__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(1))}};
#define _OMC_LIT170 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT170)
#define _OMC_LIT171_data ":= "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT171,3,_OMC_LIT171_data);
#define _OMC_LIT171 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT171)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT172,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT171}};
#define _OMC_LIT172 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT172)
#define _OMC_LIT173_data "<function>("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT173,11,_OMC_LIT173_data);
#define _OMC_LIT173 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT173)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT174,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT173}};
#define _OMC_LIT174 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT174)
#define _OMC_LIT175_data ") => "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT175,5,_OMC_LIT175_data);
#define _OMC_LIT175 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT175)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT176,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT175}};
#define _OMC_LIT176 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT176)
#define _OMC_LIT177_data ""
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT177,0,_OMC_LIT177_data);
#define _OMC_LIT177 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT177)
#define _OMC_LIT178_data "Integer"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT178,7,_OMC_LIT178_data);
#define _OMC_LIT178 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT178)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT179,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT178}};
#define _OMC_LIT179 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT179)
#define _OMC_LIT180_data "Real"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT180,4,_OMC_LIT180_data);
#define _OMC_LIT180 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT180)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT181,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT180}};
#define _OMC_LIT181 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT181)
#define _OMC_LIT182_data "String"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT182,6,_OMC_LIT182_data);
#define _OMC_LIT182 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT182)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT183,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT182}};
#define _OMC_LIT183 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT183)
#define _OMC_LIT184_data "Boolean"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT184,7,_OMC_LIT184_data);
#define _OMC_LIT184 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT184)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT185,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT184}};
#define _OMC_LIT185 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT185)
#define _OMC_LIT186_data "Clock"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT186,5,_OMC_LIT186_data);
#define _OMC_LIT186 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT186)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT187,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT186}};
#define _OMC_LIT187 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT187)
#define _OMC_LIT188_data "enumeration("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT188,12,_OMC_LIT188_data);
#define _OMC_LIT188 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT188)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT189,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT188}};
#define _OMC_LIT189 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT189)
#define _OMC_LIT190_data "tuple<"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT190,6,_OMC_LIT190_data);
#define _OMC_LIT190 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT190)
#define _OMC_LIT191_data ">"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT191,1,_OMC_LIT191_data);
#define _OMC_LIT191 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT191)
#define _OMC_LIT192_data "list<"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT192,5,_OMC_LIT192_data);
#define _OMC_LIT192 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT192)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT193,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT192}};
#define _OMC_LIT193 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT193)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT194,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT191}};
#define _OMC_LIT194 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT194)
#define _OMC_LIT195_data "array<"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT195,6,_OMC_LIT195_data);
#define _OMC_LIT195 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT195)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT196,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT195}};
#define _OMC_LIT196 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT196)
#define _OMC_LIT197_data "polymorphic<"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT197,12,_OMC_LIT197_data);
#define _OMC_LIT197 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT197)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT198,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT197}};
#define _OMC_LIT198 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT198)
#define _OMC_LIT199_data "#"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT199,1,_OMC_LIT199_data);
#define _OMC_LIT199 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT199)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT200,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT199}};
#define _OMC_LIT200 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT200)
#define _OMC_LIT201_data "Option<Any>"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT201,11,_OMC_LIT201_data);
#define _OMC_LIT201 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT201)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT202,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT201}};
#define _OMC_LIT202 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT202)
#define _OMC_LIT203_data "Option<"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT203,7,_OMC_LIT203_data);
#define _OMC_LIT203 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT203)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT204,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT203}};
#define _OMC_LIT204 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT204)
#define _OMC_LIT205_data "#T_NORETCALL#"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT205,13,_OMC_LIT205_data);
#define _OMC_LIT205 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT205)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT206,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT205}};
#define _OMC_LIT206 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT206)
#define _OMC_LIT207_data "#T_UNKNOWN#"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT207,11,_OMC_LIT207_data);
#define _OMC_LIT207 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT207)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT208,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT207}};
#define _OMC_LIT208 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT208)
#define _OMC_LIT209_data "#T_ANYTYPE#"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT209,11,_OMC_LIT209_data);
#define _OMC_LIT209 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT209)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT210,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT209}};
#define _OMC_LIT210 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT210)
#define _OMC_LIT211_data "DAEDumpTpl.dumpType: Not yet implemented"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT211,40,_OMC_LIT211_data);
#define _OMC_LIT211 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT211)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT212,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT211}};
#define _OMC_LIT212 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT212)
#define _OMC_LIT213_data " input"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT213,6,_OMC_LIT213_data);
#define _OMC_LIT213 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT213)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT214,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT213}};
#define _OMC_LIT214 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT214)
#define _OMC_LIT215_data " output"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT215,7,_OMC_LIT215_data);
#define _OMC_LIT215 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT215)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT216,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT215}};
#define _OMC_LIT216 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT216)
#define _OMC_LIT217_data " constant"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT217,9,_OMC_LIT217_data);
#define _OMC_LIT217 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT217)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT218,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT217}};
#define _OMC_LIT218 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT218)
#define _OMC_LIT219_data " parameter"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT219,10,_OMC_LIT219_data);
#define _OMC_LIT219 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT219)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT220,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT219}};
#define _OMC_LIT220 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT220)
#define _OMC_LIT221_data " discrete"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT221,9,_OMC_LIT221_data);
#define _OMC_LIT221 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT221)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT222,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT221}};
#define _OMC_LIT222 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT222)
#define _OMC_LIT223_data " parglobal"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT223,10,_OMC_LIT223_data);
#define _OMC_LIT223 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT223)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT224,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT223}};
#define _OMC_LIT224 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT224)
#define _OMC_LIT225_data " parlocal"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT225,9,_OMC_LIT225_data);
#define _OMC_LIT225 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT225)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT226,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT225}};
#define _OMC_LIT226 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT226)
#define _OMC_LIT227_data " protected"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT227,10,_OMC_LIT227_data);
#define _OMC_LIT227 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT227)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT228,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT227}};
#define _OMC_LIT228 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT228)
#define _OMC_LIT229_data " final"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT229,6,_OMC_LIT229_data);
#define _OMC_LIT229 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT229)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT230,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT229}};
#define _OMC_LIT230 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT230)
#define _OMC_LIT231_data "= "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT231,2,_OMC_LIT231_data);
#define _OMC_LIT231 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT231)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT232,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT231}};
#define _OMC_LIT232 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT232)
#define _OMC_LIT233_data "Element not found"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT233,17,_OMC_LIT233_data);
#define _OMC_LIT233 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT233)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT234,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT233}};
#define _OMC_LIT234 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT234)
#define _OMC_LIT235_data "value bound***** check what to display"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT235,38,_OMC_LIT235_data);
#define _OMC_LIT235 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT235)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT236,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT235}};
#define _OMC_LIT236 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT236)
#define _OMC_LIT237_data "input "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT237,6,_OMC_LIT237_data);
#define _OMC_LIT237 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT237)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT238,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT237}};
#define _OMC_LIT238 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT238)
#define _OMC_LIT239_data "protected "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT239,10,_OMC_LIT239_data);
#define _OMC_LIT239 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT239)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT240,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT239}};
#define _OMC_LIT240 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT240)
#define _OMC_LIT241_data "size("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT241,5,_OMC_LIT241_data);
#define _OMC_LIT241 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT241)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT242,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT241}};
#define _OMC_LIT242 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT242)
#define _OMC_LIT243_data "external \""
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT243,10,_OMC_LIT243_data);
#define _OMC_LIT243 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT243)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT244,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT243}};
#define _OMC_LIT244 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT244)
#define _OMC_LIT245_data " ="
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT245,2,_OMC_LIT245_data);
#define _OMC_LIT245 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT245)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT246,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT245}};
#define _OMC_LIT246 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT246)
#define _OMC_LIT247_data "function "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT247,9,_OMC_LIT247_data);
#define _OMC_LIT247 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT247)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT248,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT247}};
#define _OMC_LIT248 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT248)
#define _OMC_LIT249_data "printRecordTypes"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT249,16,_OMC_LIT249_data);
#define _OMC_LIT249 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT249)
#define _OMC_LIT250_data "Prints out record types as part of the flat code."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT250,49,_OMC_LIT250_data);
#define _OMC_LIT250 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT250)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT251,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT250}};
#define _OMC_LIT251 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT251)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT252,5,3) {&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(186)),_OMC_LIT249,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),_OMC_LIT251}};
#define _OMC_LIT252 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT252)
#define _OMC_LIT253_data " \"Automatically generated record constructor for "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT253,49,_OMC_LIT253_data);
#define _OMC_LIT253 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT253)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT254,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT253}};
#define _OMC_LIT254 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT254)
#define _OMC_LIT255_data "\"\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT255,2,_OMC_LIT255_data);
#define _OMC_LIT255 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT255)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT256,2,5) {&Tpl_StringToken_ST__LINE__desc,_OMC_LIT255}};
#define _OMC_LIT256 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT256)
#define _OMC_LIT257_data "output "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT257,7,_OMC_LIT257_data);
#define _OMC_LIT257 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT257)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT258,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT257}};
#define _OMC_LIT258 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT258)
#define _OMC_LIT259_data " res;\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT259,6,_OMC_LIT259_data);
#define _OMC_LIT259 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT259)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT260,2,5) {&Tpl_StringToken_ST__LINE__desc,_OMC_LIT259}};
#define _OMC_LIT260 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT260)
#define _OMC_LIT261_data "  "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT261,2,_OMC_LIT261_data);
#define _OMC_LIT261 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT261)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT262,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT261}};
#define _OMC_LIT262 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT262)
#define _OMC_LIT263_data "impure "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT263,7,_OMC_LIT263_data);
#define _OMC_LIT263 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT263)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT264,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT263}};
#define _OMC_LIT264 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT264)
#define _OMC_LIT265_data "\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT265,1,_OMC_LIT265_data);
#define _OMC_LIT265 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT265)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT266,2,1) {_OMC_LIT265,MMC_REFSTRUCTLIT(mmc_nil)}};
#define _OMC_LIT266 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT266)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT267,2,1) {_OMC_LIT265,_OMC_LIT266}};
#define _OMC_LIT267 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT267)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT268,3,6) {&Tpl_StringToken_ST__STRING__LIST__desc,_OMC_LIT267,MMC_IMMEDIATE(MMC_TAGFIXNUM(1))}};
#define _OMC_LIT268 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT268)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT269,1,1) {_OMC_LIT268}};
#define _OMC_LIT269 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT269)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT270,9,3) {&Tpl_IterOptions_ITER__OPTIONS__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),MMC_REFSTRUCTLIT(mmc_none),_OMC_LIT269,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),_OMC_LIT3,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),_OMC_LIT3}};
#define _OMC_LIT270 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT270)
#define _OMC_LIT271_data "class "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT271,6,_OMC_LIT271_data);
#define _OMC_LIT271 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT271)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT272,2,4) {&Tpl_StringToken_ST__STRING__desc,_OMC_LIT271}};
#define _OMC_LIT272 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT272)
#include "util/modelica.h"
#include "DAEDumpTpl_includes.h"
#if !defined(PROTECTED_FUNCTION_STATIC)
#define PROTECTED_FUNCTION_STATIC
#endif
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__226(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__226,2,0) {(void*) boxptr_DAEDumpTpl_lm__226,0}};
#define boxvar_DAEDumpTpl_lm__226 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__226)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__223(threadData_t *threadData, modelica_metatype _in_txt, modelica_boolean _in_mArg, modelica_metatype _in_a_ann__mod);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDumpTpl_fun__223(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_mArg, modelica_metatype _in_a_ann__mod);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__223,2,0) {(void*) boxptr_DAEDumpTpl_fun__223,0}};
#define boxvar_DAEDumpTpl_fun__223 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__223)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__222(threadData_t *threadData, modelica_metatype _in_txt, modelica_boolean _in_mArg, modelica_metatype _in_a_ann__mod);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDumpTpl_fun__222(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_mArg, modelica_metatype _in_a_ann__mod);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__222,2,0) {(void*) boxptr_DAEDumpTpl_fun__222,0}};
#define boxvar_DAEDumpTpl_fun__222 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__222)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__221(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_ann__str);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__221,2,0) {(void*) boxptr_DAEDumpTpl_fun__221,0}};
#define boxvar_DAEDumpTpl_fun__221 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__221)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__213(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_cmt__str);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__213,2,0) {(void*) boxptr_DAEDumpTpl_fun__213,0}};
#define boxvar_DAEDumpTpl_fun__213 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__213)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__211(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_cmt__str);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__211,2,0) {(void*) boxptr_DAEDumpTpl_fun__211,0}};
#define boxvar_DAEDumpTpl_fun__211 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__211)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__208(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_comment);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__208,2,0) {(void*) boxptr_DAEDumpTpl_fun__208,0}};
#define boxvar_DAEDumpTpl_fun__208 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__208)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__206(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_comment);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__206,2,0) {(void*) boxptr_DAEDumpTpl_fun__206,0}};
#define boxvar_DAEDumpTpl_fun__206 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__206)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__203(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_elsewhen__str, modelica_metatype _in_a_src__str, modelica_metatype _in_a_body__str, modelica_metatype _in_a_when__cond__str);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__203,2,0) {(void*) boxptr_DAEDumpTpl_fun__203,0}};
#define boxvar_DAEDumpTpl_fun__203 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__203)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__202(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_elseWhen);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__202,2,0) {(void*) boxptr_DAEDumpTpl_fun__202,0}};
#define boxvar_DAEDumpTpl_fun__202 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__202)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__201(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__201,2,0) {(void*) boxptr_DAEDumpTpl_lm__201,0}};
#define boxvar_DAEDumpTpl_lm__201 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__201)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__199(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__199,2,0) {(void*) boxptr_DAEDumpTpl_lm__199,0}};
#define boxvar_DAEDumpTpl_lm__199 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__199)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__197(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__197,2,0) {(void*) boxptr_DAEDumpTpl_lm__197,0}};
#define boxvar_DAEDumpTpl_lm__197 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__197)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__195(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__195,2,0) {(void*) boxptr_DAEDumpTpl_lm__195,0}};
#define boxvar_DAEDumpTpl_lm__195 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__195)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__193(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__193,2,0) {(void*) boxptr_DAEDumpTpl_lm__193,0}};
#define boxvar_DAEDumpTpl_lm__193 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__193)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__192(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__192,2,0) {(void*) boxptr_DAEDumpTpl_lm__192,0}};
#define boxvar_DAEDumpTpl_lm__192 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__192)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__190(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__190,2,0) {(void*) boxptr_DAEDumpTpl_lm__190,0}};
#define boxvar_DAEDumpTpl_lm__190 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__190)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__187(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__187,2,0) {(void*) boxptr_DAEDumpTpl_lm__187,0}};
#define boxvar_DAEDumpTpl_lm__187 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__187)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__185(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_lhs);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__185,2,0) {(void*) boxptr_DAEDumpTpl_fun__185,0}};
#define boxvar_DAEDumpTpl_fun__185 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__185)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__182(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__182,2,0) {(void*) boxptr_DAEDumpTpl_lm__182,0}};
#define boxvar_DAEDumpTpl_lm__182 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__182)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__178(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__178,2,0) {(void*) boxptr_DAEDumpTpl_lm__178,0}};
#define boxvar_DAEDumpTpl_lm__178 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__178)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__175(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__175,2,0) {(void*) boxptr_DAEDumpTpl_lm__175,0}};
#define boxvar_DAEDumpTpl_lm__175 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__175)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__173(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_equations, modelica_metatype _in_a_rest__conds, modelica_metatype _in_a_cond);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__173,2,0) {(void*) boxptr_DAEDumpTpl_fun__173,0}};
#define boxvar_DAEDumpTpl_fun__173 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__173)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__172(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__172,2,0) {(void*) boxptr_DAEDumpTpl_lm__172,0}};
#define boxvar_DAEDumpTpl_lm__172 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__172)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__170(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_branches, modelica_metatype _in_a_src, modelica_metatype _in_a_else__branch, modelica_metatype _in_a_elseif__conds, modelica_metatype _in_a_if__cond);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__170,2,0) {(void*) boxptr_DAEDumpTpl_fun__170,0}};
#define boxvar_DAEDumpTpl_fun__170 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__170)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__169(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_else__branch);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__169,2,0) {(void*) boxptr_DAEDumpTpl_fun__169,0}};
#define boxvar_DAEDumpTpl_fun__169 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__169)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__168(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__168,2,0) {(void*) boxptr_DAEDumpTpl_lm__168,0}};
#define boxvar_DAEDumpTpl_lm__168 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__168)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__167(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__167,2,0) {(void*) boxptr_DAEDumpTpl_lm__167,0}};
#define boxvar_DAEDumpTpl_lm__167 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__167)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__165(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__165,2,0) {(void*) boxptr_DAEDumpTpl_lm__165,0}};
#define boxvar_DAEDumpTpl_lm__165 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__165)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__164(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__164,2,0) {(void*) boxptr_DAEDumpTpl_lm__164,0}};
#define boxvar_DAEDumpTpl_lm__164 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__164)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__162(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_elsewhen__str, modelica_metatype _in_a_src__str, modelica_metatype _in_a_body__str, modelica_metatype _in_a_when__cond__str);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__162,2,0) {(void*) boxptr_DAEDumpTpl_fun__162,0}};
#define boxvar_DAEDumpTpl_fun__162 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__162)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__161(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_elsewhen__);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__161,2,0) {(void*) boxptr_DAEDumpTpl_fun__161,0}};
#define boxvar_DAEDumpTpl_fun__161 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__161)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__160(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__160,2,0) {(void*) boxptr_DAEDumpTpl_lm__160,0}};
#define boxvar_DAEDumpTpl_lm__160 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__160)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__158(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_call__exp);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__158,2,0) {(void*) boxptr_DAEDumpTpl_fun__158,0}};
#define boxvar_DAEDumpTpl_fun__158 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__158)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__154(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_lvl);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__154,2,0) {(void*) boxptr_DAEDumpTpl_fun__154,0}};
#define boxvar_DAEDumpTpl_fun__154 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__154)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__150(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_lhs);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__150,2,0) {(void*) boxptr_DAEDumpTpl_fun__150,0}};
#define boxvar_DAEDumpTpl_fun__150 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__150)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__147(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__147,2,0) {(void*) boxptr_DAEDumpTpl_lm__147,0}};
#define boxvar_DAEDumpTpl_lm__147 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__147)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__145(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__145,2,0) {(void*) boxptr_DAEDumpTpl_lm__145,0}};
#define boxvar_DAEDumpTpl_lm__145 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__145)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__142(threadData_t *threadData, modelica_metatype _in_txt, modelica_boolean _in_mArg, modelica_metatype _in_a_subscriptLst);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDumpTpl_fun__142(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_mArg, modelica_metatype _in_a_subscriptLst);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__142,2,0) {(void*) boxptr_DAEDumpTpl_fun__142,0}};
#define boxvar_DAEDumpTpl_fun__142 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__142)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__141(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__141,2,0) {(void*) boxptr_DAEDumpTpl_lm__141,0}};
#define boxvar_DAEDumpTpl_lm__141 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__141)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__140(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__140,2,0) {(void*) boxptr_DAEDumpTpl_lm__140,0}};
#define boxvar_DAEDumpTpl_lm__140 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__140)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__138(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__138,2,0) {(void*) boxptr_DAEDumpTpl_lm__138,0}};
#define boxvar_DAEDumpTpl_lm__138 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__138)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__136(threadData_t *threadData, modelica_metatype _in_txt, modelica_boolean _in_mArg, modelica_metatype _in_a_componentRef, modelica_metatype _in_a_subscriptLst, modelica_string _in_a_ident);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDumpTpl_fun__136(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_mArg, modelica_metatype _in_a_componentRef, modelica_metatype _in_a_subscriptLst, modelica_metatype _in_a_ident);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__136,2,0) {(void*) boxptr_DAEDumpTpl_fun__136,0}};
#define boxvar_DAEDumpTpl_fun__136 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__136)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__134(threadData_t *threadData, modelica_metatype _in_txt, modelica_boolean _in_mArg, modelica_metatype _in_a_startOrigin);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDumpTpl_fun__134(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_mArg, modelica_metatype _in_a_startOrigin);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__134,2,0) {(void*) boxptr_DAEDumpTpl_fun__134,0}};
#define boxvar_DAEDumpTpl_fun__134 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__134)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__122(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_attrs__str);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__122,2,0) {(void*) boxptr_DAEDumpTpl_fun__122,0}};
#define boxvar_DAEDumpTpl_fun__122 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__122)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__121(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__121,2,0) {(void*) boxptr_DAEDumpTpl_smf__121,0}};
#define boxvar_DAEDumpTpl_smf__121 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__121)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__120(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__120,2,0) {(void*) boxptr_DAEDumpTpl_smf__120,0}};
#define boxvar_DAEDumpTpl_smf__120 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__120)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__119(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__119,2,0) {(void*) boxptr_DAEDumpTpl_smf__119,0}};
#define boxvar_DAEDumpTpl_smf__119 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__119)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__118(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__118,2,0) {(void*) boxptr_DAEDumpTpl_smf__118,0}};
#define boxvar_DAEDumpTpl_smf__118 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__118)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__117(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__117,2,0) {(void*) boxptr_DAEDumpTpl_smf__117,0}};
#define boxvar_DAEDumpTpl_smf__117 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__117)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__116(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__116,2,0) {(void*) boxptr_DAEDumpTpl_smf__116,0}};
#define boxvar_DAEDumpTpl_smf__116 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__116)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__115(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_attrs__str);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__115,2,0) {(void*) boxptr_DAEDumpTpl_fun__115,0}};
#define boxvar_DAEDumpTpl_fun__115 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__115)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__114(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__114,2,0) {(void*) boxptr_DAEDumpTpl_smf__114,0}};
#define boxvar_DAEDumpTpl_smf__114 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__114)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__113(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__113,2,0) {(void*) boxptr_DAEDumpTpl_smf__113,0}};
#define boxvar_DAEDumpTpl_smf__113 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__113)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__112(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__112,2,0) {(void*) boxptr_DAEDumpTpl_smf__112,0}};
#define boxvar_DAEDumpTpl_smf__112 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__112)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__111(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_attrs__str);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__111,2,0) {(void*) boxptr_DAEDumpTpl_fun__111,0}};
#define boxvar_DAEDumpTpl_fun__111 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__111)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__110(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__110,2,0) {(void*) boxptr_DAEDumpTpl_smf__110,0}};
#define boxvar_DAEDumpTpl_smf__110 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__110)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__109(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__109,2,0) {(void*) boxptr_DAEDumpTpl_smf__109,0}};
#define boxvar_DAEDumpTpl_smf__109 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__109)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__108(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__108,2,0) {(void*) boxptr_DAEDumpTpl_smf__108,0}};
#define boxvar_DAEDumpTpl_smf__108 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__108)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__107(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__107,2,0) {(void*) boxptr_DAEDumpTpl_smf__107,0}};
#define boxvar_DAEDumpTpl_smf__107 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__107)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__106(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_attrs__str);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__106,2,0) {(void*) boxptr_DAEDumpTpl_fun__106,0}};
#define boxvar_DAEDumpTpl_fun__106 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__106)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__105(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__105,2,0) {(void*) boxptr_DAEDumpTpl_smf__105,0}};
#define boxvar_DAEDumpTpl_smf__105 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__105)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__104(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__104,2,0) {(void*) boxptr_DAEDumpTpl_smf__104,0}};
#define boxvar_DAEDumpTpl_smf__104 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__104)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__103(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__103,2,0) {(void*) boxptr_DAEDumpTpl_smf__103,0}};
#define boxvar_DAEDumpTpl_smf__103 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__103)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__102(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__102,2,0) {(void*) boxptr_DAEDumpTpl_smf__102,0}};
#define boxvar_DAEDumpTpl_smf__102 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__102)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__101(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__101,2,0) {(void*) boxptr_DAEDumpTpl_smf__101,0}};
#define boxvar_DAEDumpTpl_smf__101 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__101)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__100(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__100,2,0) {(void*) boxptr_DAEDumpTpl_smf__100,0}};
#define boxvar_DAEDumpTpl_smf__100 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__100)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__99(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__99,2,0) {(void*) boxptr_DAEDumpTpl_smf__99,0}};
#define boxvar_DAEDumpTpl_smf__99 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__99)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__98(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__98,2,0) {(void*) boxptr_DAEDumpTpl_smf__98,0}};
#define boxvar_DAEDumpTpl_smf__98 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__98)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__97(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_attrs__str);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__97,2,0) {(void*) boxptr_DAEDumpTpl_fun__97,0}};
#define boxvar_DAEDumpTpl_fun__97 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__97)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__96(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__96,2,0) {(void*) boxptr_DAEDumpTpl_smf__96,0}};
#define boxvar_DAEDumpTpl_smf__96 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__96)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__95(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__95,2,0) {(void*) boxptr_DAEDumpTpl_smf__95,0}};
#define boxvar_DAEDumpTpl_smf__95 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__95)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__94(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__94,2,0) {(void*) boxptr_DAEDumpTpl_smf__94,0}};
#define boxvar_DAEDumpTpl_smf__94 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__94)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__93(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__93,2,0) {(void*) boxptr_DAEDumpTpl_smf__93,0}};
#define boxvar_DAEDumpTpl_smf__93 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__93)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__92(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__92,2,0) {(void*) boxptr_DAEDumpTpl_smf__92,0}};
#define boxvar_DAEDumpTpl_smf__92 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__92)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__91(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__91,2,0) {(void*) boxptr_DAEDumpTpl_smf__91,0}};
#define boxvar_DAEDumpTpl_smf__91 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__91)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__90(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__90,2,0) {(void*) boxptr_DAEDumpTpl_smf__90,0}};
#define boxvar_DAEDumpTpl_smf__90 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__90)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__89(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__89,2,0) {(void*) boxptr_DAEDumpTpl_smf__89,0}};
#define boxvar_DAEDumpTpl_smf__89 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__89)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__88(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__88,2,0) {(void*) boxptr_DAEDumpTpl_smf__88,0}};
#define boxvar_DAEDumpTpl_smf__88 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__88)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__87(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__87,2,0) {(void*) boxptr_DAEDumpTpl_smf__87,0}};
#define boxvar_DAEDumpTpl_smf__87 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__87)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__86(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__86,2,0) {(void*) boxptr_DAEDumpTpl_smf__86,0}};
#define boxvar_DAEDumpTpl_smf__86 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__86)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__85(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__85,2,0) {(void*) boxptr_DAEDumpTpl_smf__85,0}};
#define boxvar_DAEDumpTpl_smf__85 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_smf__85)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__82(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__82,2,0) {(void*) boxptr_DAEDumpTpl_lm__82,0}};
#define boxvar_DAEDumpTpl_lm__82 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__82)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__79(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__79,2,0) {(void*) boxptr_DAEDumpTpl_lm__79,0}};
#define boxvar_DAEDumpTpl_lm__79 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__79)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__74(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_defaultBinding);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__74,2,0) {(void*) boxptr_DAEDumpTpl_fun__74,0}};
#define boxvar_DAEDumpTpl_fun__74 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__74)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__72(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__72,2,0) {(void*) boxptr_DAEDumpTpl_lm__72,0}};
#define boxvar_DAEDumpTpl_lm__72 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__72)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__70(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items, modelica_metatype _in_a_attr, modelica_metatype *out_out_a_attr);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__70,2,0) {(void*) boxptr_DAEDumpTpl_lm__70,0}};
#define boxvar_DAEDumpTpl_lm__70 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__70)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__68(threadData_t *threadData, modelica_metatype _in_txt, modelica_string _in_a_dims__accum);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__68,2,0) {(void*) boxptr_DAEDumpTpl_fun__68,0}};
#define boxvar_DAEDumpTpl_fun__68 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__68)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__67(threadData_t *threadData, modelica_metatype _in_txt, modelica_string _in_a_dims__accum, modelica_metatype _in_a_dims__str);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__67,2,0) {(void*) boxptr_DAEDumpTpl_fun__67,0}};
#define boxvar_DAEDumpTpl_fun__67 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__67)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__65(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__65,2,0) {(void*) boxptr_DAEDumpTpl_lm__65,0}};
#define boxvar_DAEDumpTpl_lm__65 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__65)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__58(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_bindingExp);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__58,2,0) {(void*) boxptr_DAEDumpTpl_fun__58,0}};
#define boxvar_DAEDumpTpl_fun__58 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__58)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__57(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_variableAttributesOption);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__57,2,0) {(void*) boxptr_DAEDumpTpl_fun__57,0}};
#define boxvar_DAEDumpTpl_fun__57 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__57)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__56(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_binding);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__56,2,0) {(void*) boxptr_DAEDumpTpl_fun__56,0}};
#define boxvar_DAEDumpTpl_fun__56 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__56)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__55(threadData_t *threadData, modelica_metatype _in_txt, modelica_boolean _in_a_printTypeDimension, modelica_metatype _in_a_dims);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDumpTpl_fun__55(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_printTypeDimension, modelica_metatype _in_a_dims);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__55,2,0) {(void*) boxptr_DAEDumpTpl_fun__55,0}};
#define boxvar_DAEDumpTpl_fun__55 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__55)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__54(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_variableAttributesOption);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__54,2,0) {(void*) boxptr_DAEDumpTpl_fun__54,0}};
#define boxvar_DAEDumpTpl_fun__54 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__54)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__52(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__52,2,0) {(void*) boxptr_DAEDumpTpl_lm__52,0}};
#define boxvar_DAEDumpTpl_lm__52 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__52)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__49(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_x);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__49,2,0) {(void*) boxptr_DAEDumpTpl_fun__49,0}};
#define boxvar_DAEDumpTpl_fun__49 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__49)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__46(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__46,2,0) {(void*) boxptr_DAEDumpTpl_lm__46,0}};
#define boxvar_DAEDumpTpl_lm__46 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__46)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__45(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__45,2,0) {(void*) boxptr_DAEDumpTpl_lm__45,0}};
#define boxvar_DAEDumpTpl_lm__45 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__45)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__39(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__39,2,0) {(void*) boxptr_DAEDumpTpl_lm__39,0}};
#define boxvar_DAEDumpTpl_lm__39 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__39)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__35(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__35,2,0) {(void*) boxptr_DAEDumpTpl_lm__35,0}};
#define boxvar_DAEDumpTpl_lm__35 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__35)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__33(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_ann);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__33,2,0) {(void*) boxptr_DAEDumpTpl_fun__33,0}};
#define boxvar_DAEDumpTpl_fun__33 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__33)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__32(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_ext__output__str);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__32,2,0) {(void*) boxptr_DAEDumpTpl_fun__32,0}};
#define boxvar_DAEDumpTpl_fun__32 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__32)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__31(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_func__name__str, modelica_metatype _in_a_func__args__str);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__31,2,0) {(void*) boxptr_DAEDumpTpl_fun__31,0}};
#define boxvar_DAEDumpTpl_fun__31 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__31)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__28(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__28,2,0) {(void*) boxptr_DAEDumpTpl_lm__28,0}};
#define boxvar_DAEDumpTpl_lm__28 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__28)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__26(threadData_t *threadData, modelica_metatype _in_txt, modelica_boolean _in_mArg, modelica_metatype _in_a_type__, modelica_metatype _in_a_path);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDumpTpl_fun__26(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_mArg, modelica_metatype _in_a_type__, modelica_metatype _in_a_path);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__26,2,0) {(void*) boxptr_DAEDumpTpl_fun__26,0}};
#define boxvar_DAEDumpTpl_fun__26 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__26)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__25(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_ann__str);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__25,2,0) {(void*) boxptr_DAEDumpTpl_fun__25,0}};
#define boxvar_DAEDumpTpl_fun__25 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__25)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__24(threadData_t *threadData, modelica_metatype _in_txt, modelica_boolean _in_a_isImpure);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDumpTpl_fun__24(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_isImpure);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__24,2,0) {(void*) boxptr_DAEDumpTpl_fun__24,0}};
#define boxvar_DAEDumpTpl_fun__24 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__24)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__22(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__22,2,0) {(void*) boxptr_DAEDumpTpl_lm__22,0}};
#define boxvar_DAEDumpTpl_lm__22 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__22)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__20(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__20,2,0) {(void*) boxptr_DAEDumpTpl_lm__20,0}};
#define boxvar_DAEDumpTpl_lm__20 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__20)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__18(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_ann__str);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__18,2,0) {(void*) boxptr_DAEDumpTpl_fun__18,0}};
#define boxvar_DAEDumpTpl_fun__18 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__18)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__17(threadData_t *threadData, modelica_metatype _in_txt, modelica_boolean _in_mArg, modelica_string _in_a_name);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDumpTpl_fun__17(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_mArg, modelica_metatype _in_a_name);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__17,2,0) {(void*) boxptr_DAEDumpTpl_fun__17,0}};
#define boxvar_DAEDumpTpl_fun__17 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__17)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__15(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_fun__str, modelica_metatype _in_a_comp__str);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__15,2,0) {(void*) boxptr_DAEDumpTpl_fun__15,0}};
#define boxvar_DAEDumpTpl_fun__15 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__15)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__14(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_funLists);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__14,2,0) {(void*) boxptr_DAEDumpTpl_fun__14,0}};
#define boxvar_DAEDumpTpl_fun__14 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_fun__14)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__13(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__13,2,0) {(void*) boxptr_DAEDumpTpl_lm__13,0}};
#define boxvar_DAEDumpTpl_lm__13 MMC_REFSTRUCTLIT(boxvar_lit_DAEDumpTpl_lm__13)
DLLExport
modelica_metatype omc_DAEDumpTpl_errorMsg(threadData_t *threadData, modelica_metatype _txt, modelica_string _a_errMessage)
{
modelica_metatype _out_txt = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
omc_Tpl_addTemplateError(threadData, _a_errMessage);
_out_txt = omc_Tpl_writeStr(threadData, _txt, _a_errMessage);
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpSource(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_source)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_source;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_comment = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 8));
_txt = tmp4_1;
_i_comment = tmpMeta6;
_txt = omc_Tpl_pushIter(threadData, _txt, _OMC_LIT4);
_txt = omc_DAEDumpTpl_lm__226(threadData, _txt, _i_comment);
tmpMeta1 = omc_Tpl_popIter(threadData, _txt);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__226(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_c = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_c = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpComment(threadData, _txt, _i_c);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpPathLastIndent(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_path)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_path;
{
modelica_metatype _txt = NULL;
modelica_string _i_name = NULL;
modelica_metatype _i_path = NULL;
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_2))) {
case 5: {
modelica_metatype tmpMeta5;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,2,1) == 0) goto tmp3_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_path = tmpMeta5;
_txt = tmp4_1;
_in_txt = _txt;
_in_a_path = _i_path;
goto _tailrecursive;
goto tmp3_done;
}
case 3: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
_i_path = tmpMeta6;
_txt = tmp4_1;
_in_txt = _txt;
_in_a_path = _i_path;
goto _tailrecursive;
goto tmp3_done;
}
case 4: {
modelica_metatype tmpMeta7;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,1) == 0) goto tmp3_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_name = tmpMeta7;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeStr(threadData, _txt, _i_name);
goto tmp3_done;
}
default:
tmp3_default: OMC_LABEL_UNUSED; {
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_errorMsg(threadData, _txt, _OMC_LIT5);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpAnnotation(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_annotation)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_annotation;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_ann__mod = NULL;
modelica_boolean _ret_0;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_txt = tmp4_1;
_i_ann__mod = tmpMeta6;
_ret_0 = omc_Config_showAnnotations(threadData);
tmpMeta1 = omc_DAEDumpTpl_fun__223(threadData, _txt, _ret_0, _i_ann__mod);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__223(threadData_t *threadData, modelica_metatype _in_txt, modelica_boolean _in_mArg, modelica_metatype _in_a_ann__mod)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_boolean tmp4_2;modelica_metatype tmp4_3;
tmp4_1 = _in_txt;
tmp4_2 = _in_mArg;
tmp4_3 = _in_a_ann__mod;
{
modelica_metatype _txt = NULL;
modelica_metatype _a_ann__mod = NULL;
modelica_boolean _ret_0;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (0 != tmp4_2) goto tmp3_end;
_txt = tmp4_1;
_a_ann__mod = tmp4_3;
_ret_0 = omc_Config_showStructuralAnnotations(threadData);
tmpMeta1 = omc_DAEDumpTpl_fun__222(threadData, _txt, _ret_0, _a_ann__mod);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_a_ann__mod = tmp4_3;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT7);
tmpMeta1 = omc_SCodeDumpTpl_dumpModifier(threadData, _txt, _a_ann__mod, _OMC_LIT8);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDumpTpl_fun__223(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_mArg, modelica_metatype _in_a_ann__mod)
{
modelica_integer tmp1;
modelica_metatype _out_txt = NULL;
tmp1 = mmc_unbox_integer(_in_mArg);
_out_txt = omc_DAEDumpTpl_fun__223(threadData, _in_txt, tmp1, _in_a_ann__mod);
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__222(threadData_t *threadData, modelica_metatype _in_txt, modelica_boolean _in_mArg, modelica_metatype _in_a_ann__mod)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_boolean tmp4_2;modelica_metatype tmp4_3;
tmp4_1 = _in_txt;
tmp4_2 = _in_mArg;
tmp4_3 = _in_a_ann__mod;
{
modelica_metatype _txt = NULL;
modelica_metatype _a_ann__mod = NULL;
modelica_metatype _ret_1 = NULL;
modelica_metatype _l_ann__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (0 != tmp4_2) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_a_ann__mod = tmp4_3;
_ret_1 = omc_DAEDump_filterStructuralMods(threadData, _a_ann__mod);
_l_ann__str = omc_SCodeDumpTpl_dumpModifier(threadData, _OMC_LIT9, _ret_1, _OMC_LIT8);
tmpMeta1 = omc_DAEDumpTpl_fun__221(threadData, _txt, _l_ann__str);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDumpTpl_fun__222(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_mArg, modelica_metatype _in_a_ann__mod)
{
modelica_integer tmp1;
modelica_metatype _out_txt = NULL;
tmp1 = mmc_unbox_integer(_in_mArg);
_out_txt = omc_DAEDumpTpl_fun__222(threadData, _in_txt, tmp1, _in_a_ann__mod);
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__221(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_ann__str)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_ann__str;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_ann__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
if (!listEmpty(tmpMeta6)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_i_ann__str = tmp4_2;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT7);
tmpMeta1 = omc_Tpl_writeText(threadData, _txt, _i_ann__str);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpAnnotationOpt(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_annotation)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_annotation;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_ann = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (optionNone(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1));
_i_ann = tmpMeta6;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpAnnotation(threadData, _txt, _i_ann);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpCommentStr(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_comment)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_comment;
{
modelica_metatype _txt = NULL;
modelica_string _i_cmt = NULL;
modelica_string _ret_0 = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (optionNone(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1));
_i_cmt = tmpMeta6;
_txt = tmp4_1;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT11);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT13);
_ret_0 = omc_System_escapedString(threadData, _i_cmt, 0);
_txt = omc_Tpl_writeStr(threadData, _txt, _ret_0);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT13);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpComment(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_comment)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_comment;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_comment = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
_txt = tmp4_1;
_i_comment = tmpMeta6;
tmpMeta1 = omc_DAEDumpTpl_dumpCommentStr(threadData, _txt, _i_comment);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpCommentOpt(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_comment)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_comment;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_cmt = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (optionNone(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1));
_i_cmt = tmpMeta6;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpComment(threadData, _txt, _i_cmt);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpCommentAnnotationNoOpt(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_comment)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_comment;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_ann = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
if (optionNone(tmpMeta6)) goto tmp3_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 1));
_i_ann = tmpMeta7;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpAnnotation(threadData, _txt, _i_ann);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpCommentAnnotation(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_comment)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_comment;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_cmt = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (optionNone(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1));
_i_cmt = tmpMeta6;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpCommentAnnotationNoOpt(threadData, _txt, _i_cmt);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpCompAnnotation(threadData_t *threadData, modelica_metatype _txt, modelica_metatype _a_comment)
{
modelica_metatype _out_txt = NULL;
modelica_metatype _l_cmt__str = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_l_cmt__str = omc_DAEDumpTpl_dumpCommentAnnotation(threadData, _OMC_LIT9, _a_comment);
_out_txt = omc_DAEDumpTpl_fun__213(threadData, _txt, _l_cmt__str);
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__213(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_cmt__str)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_cmt__str;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_cmt__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
if (!listEmpty(tmpMeta6)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_i_cmt__str = tmp4_2;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT11);
tmpMeta1 = omc_Tpl_writeText(threadData, _txt, _i_cmt__str);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpClassAnnotation(threadData_t *threadData, modelica_metatype _txt, modelica_metatype _a_comment)
{
modelica_metatype _out_txt = NULL;
modelica_metatype _l_cmt__str = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_l_cmt__str = omc_DAEDumpTpl_dumpCommentAnnotation(threadData, _OMC_LIT9, _a_comment);
_out_txt = omc_DAEDumpTpl_fun__211(threadData, _txt, _l_cmt__str);
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__211(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_cmt__str)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_cmt__str;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_cmt__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
if (!listEmpty(tmpMeta6)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_i_cmt__str = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_cmt__str);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT15);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpExp(threadData_t *threadData, modelica_metatype _txt, modelica_metatype _a_exp)
{
modelica_metatype _out_txt = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_out_txt = omc_ExpressionDumpTpl_dumpExp(threadData, _txt, _a_exp, _OMC_LIT12);
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpStateMachineComment(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_cmt)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_cmt;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_comment = NULL;
modelica_metatype _l_kind__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
_txt = tmp4_1;
_i_comment = tmpMeta6;
_l_kind__str = omc_DAEDumpTpl_fun__208(threadData, _OMC_LIT9, _i_comment);
tmpMeta1 = omc_Tpl_writeText(threadData, _txt, _l_kind__str);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__208(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_comment)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_comment;
{
modelica_metatype _txt = NULL;
modelica_string _i_co = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (optionNone(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1));
_i_co = tmpMeta6;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeStr(threadData, _txt, _i_co);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpStateMachineSection(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_fixedDae)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_fixedDae;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_spltElems = NULL;
modelica_string _i_name = NULL;
modelica_metatype _i_comment = NULL;
modelica_metatype _l_kind = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
_txt = tmp4_1;
_i_name = tmpMeta6;
_i_spltElems = tmpMeta7;
_i_comment = tmpMeta8;
_l_kind = omc_DAEDumpTpl_fun__206(threadData, _OMC_LIT9, _i_comment);
_txt = omc_Tpl_writeText(threadData, _txt, _l_kind);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT11);
_txt = omc_Tpl_writeStr(threadData, _txt, _i_name);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT16);
_txt = omc_DAEDumpTpl_dumpCompStream(threadData, _txt, _i_spltElems);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_popBlock(threadData, _txt);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT18);
_txt = omc_Tpl_writeStr(threadData, _txt, _i_name);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT15);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT3);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__206(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_comment)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_comment;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_co = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (optionNone(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1));
_i_co = tmpMeta6;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpStateMachineComment(threadData, _txt, _i_co);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpReinitStatement(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_stmt)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_stmt;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_source = NULL;
modelica_metatype _i_value = NULL;
modelica_metatype _i_var = NULL;
modelica_metatype _l_src__str = NULL;
modelica_metatype _l_new__exp__str = NULL;
modelica_metatype _l_exp__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,10,3) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
_i_var = tmpMeta6;
_i_value = tmpMeta7;
_i_source = tmpMeta8;
_txt = tmp4_1;
_l_exp__str = omc_DAEDumpTpl_dumpExp(threadData, _OMC_LIT9, _i_var);
_l_new__exp__str = omc_DAEDumpTpl_dumpExp(threadData, _OMC_LIT9, _i_value);
_l_src__str = omc_DAEDumpTpl_dumpSource(threadData, _OMC_LIT9, _i_source);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT20);
_txt = omc_Tpl_writeText(threadData, _txt, _l_exp__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT22);
_txt = omc_Tpl_writeText(threadData, _txt, _l_new__exp__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT24);
_txt = omc_Tpl_writeText(threadData, _txt, _l_src__str);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT15);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpWhenStatement(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_stmt)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_stmt;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_source = NULL;
modelica_metatype _i_elseWhen = NULL;
modelica_metatype _i_statementLst = NULL;
modelica_metatype _i_exp = NULL;
modelica_metatype _l_src__str = NULL;
modelica_metatype _l_elsewhen__str = NULL;
modelica_metatype _l_body__str = NULL;
modelica_metatype _l_when__cond__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,7,6) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 6));
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 7));
_i_exp = tmpMeta6;
_i_statementLst = tmpMeta7;
_i_elseWhen = tmpMeta8;
_i_source = tmpMeta9;
_txt = tmp4_1;
_l_when__cond__str = omc_DAEDumpTpl_dumpExp(threadData, _OMC_LIT9, _i_exp);
_l_body__str = omc_Tpl_pushIter(threadData, _OMC_LIT9, _OMC_LIT26);
_l_body__str = omc_DAEDumpTpl_lm__201(threadData, _l_body__str, _i_statementLst);
_l_body__str = omc_Tpl_popIter(threadData, _l_body__str);
_l_elsewhen__str = omc_DAEDumpTpl_fun__202(threadData, _OMC_LIT9, _i_elseWhen);
_l_src__str = omc_DAEDumpTpl_dumpSource(threadData, _OMC_LIT9, _i_source);
tmpMeta1 = omc_DAEDumpTpl_fun__203(threadData, _txt, _l_elsewhen__str, _l_src__str, _l_body__str, _l_when__cond__str);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__203(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_elsewhen__str, modelica_metatype _in_a_src__str, modelica_metatype _in_a_body__str, modelica_metatype _in_a_when__cond__str)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;modelica_metatype tmp4_3;modelica_metatype tmp4_4;modelica_metatype tmp4_5;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_elsewhen__str;
tmp4_3 = _in_a_src__str;
tmp4_4 = _in_a_body__str;
tmp4_5 = _in_a_when__cond__str;
{
modelica_metatype _txt = NULL;
modelica_metatype _a_src__str = NULL;
modelica_metatype _a_body__str = NULL;
modelica_metatype _a_when__cond__str = NULL;
modelica_metatype _i_elsewhen__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
if (!listEmpty(tmpMeta6)) goto tmp3_end;
_txt = tmp4_1;
_a_src__str = tmp4_3;
_a_body__str = tmp4_4;
_a_when__cond__str = tmp4_5;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT28);
_txt = omc_Tpl_writeText(threadData, _txt, _a_when__cond__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT30);
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT16);
_txt = omc_Tpl_writeText(threadData, _txt, _a_body__str);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_popBlock(threadData, _txt);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT32);
_txt = omc_Tpl_writeText(threadData, _txt, _a_src__str);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT15);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_i_elsewhen__str = tmp4_2;
_a_body__str = tmp4_4;
_a_when__cond__str = tmp4_5;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT28);
_txt = omc_Tpl_writeText(threadData, _txt, _a_when__cond__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT30);
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT16);
_txt = omc_Tpl_writeText(threadData, _txt, _a_body__str);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_popBlock(threadData, _txt);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT34);
tmpMeta1 = omc_Tpl_writeText(threadData, _txt, _i_elsewhen__str);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__202(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_elseWhen)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_elseWhen;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_ew = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (optionNone(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1));
_i_ew = tmpMeta6;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpWhenStatement(threadData, _txt, _i_ew);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__201(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_e = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_e = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpStatement(threadData, _txt, _i_e);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpWhileStatement(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_stmt)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_stmt;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_source = NULL;
modelica_metatype _i_statementLst = NULL;
modelica_metatype _i_exp = NULL;
modelica_metatype _l_src__str = NULL;
modelica_metatype _l_body__str = NULL;
modelica_metatype _l_while__cond = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,6,3) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
_i_exp = tmpMeta6;
_i_statementLst = tmpMeta7;
_i_source = tmpMeta8;
_txt = tmp4_1;
_l_while__cond = omc_DAEDumpTpl_dumpExp(threadData, _OMC_LIT9, _i_exp);
_l_body__str = omc_Tpl_pushIter(threadData, _OMC_LIT9, _OMC_LIT26);
_l_body__str = omc_DAEDumpTpl_lm__199(threadData, _l_body__str, _i_statementLst);
_l_body__str = omc_Tpl_popIter(threadData, _l_body__str);
_l_src__str = omc_DAEDumpTpl_dumpSource(threadData, _OMC_LIT9, _i_source);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT36);
_txt = omc_Tpl_writeText(threadData, _txt, _l_while__cond);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT38);
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT16);
_txt = omc_Tpl_writeText(threadData, _txt, _l_body__str);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_popBlock(threadData, _txt);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT40);
_txt = omc_Tpl_writeText(threadData, _txt, _l_src__str);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT15);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__199(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_e = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_e = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpStatement(threadData, _txt, _i_e);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpParForStatement(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_stmt)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_stmt;
{
modelica_metatype _txt = NULL;
modelica_string _i_iter = NULL;
modelica_metatype _i_source = NULL;
modelica_metatype _i_statementLst = NULL;
modelica_metatype _i_range = NULL;
modelica_metatype _l_src__str = NULL;
modelica_metatype _l_alg__str = NULL;
modelica_metatype _l_range__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,5,7) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 6));
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 8));
_i_iter = tmpMeta6;
_i_range = tmpMeta7;
_i_statementLst = tmpMeta8;
_i_source = tmpMeta9;
_txt = tmp4_1;
_l_range__str = omc_DAEDumpTpl_dumpExp(threadData, _OMC_LIT9, _i_range);
_l_alg__str = omc_Tpl_pushIter(threadData, _OMC_LIT9, _OMC_LIT26);
_l_alg__str = omc_DAEDumpTpl_lm__197(threadData, _l_alg__str, _i_statementLst);
_l_alg__str = omc_Tpl_popIter(threadData, _l_alg__str);
_l_src__str = omc_DAEDumpTpl_dumpSource(threadData, _OMC_LIT9, _i_source);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT42);
_txt = omc_Tpl_writeStr(threadData, _txt, _i_iter);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT44);
_txt = omc_Tpl_writeText(threadData, _txt, _l_range__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT38);
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT16);
_txt = omc_Tpl_writeText(threadData, _txt, _l_alg__str);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_popBlock(threadData, _txt);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT46);
_txt = omc_Tpl_writeText(threadData, _txt, _l_src__str);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT15);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__197(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_e = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_e = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpStatement(threadData, _txt, _i_e);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpForStatement(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_stmt)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_stmt;
{
modelica_metatype _txt = NULL;
modelica_string _i_iter = NULL;
modelica_metatype _i_source = NULL;
modelica_metatype _i_statementLst = NULL;
modelica_metatype _i_range = NULL;
modelica_metatype _l_src__str = NULL;
modelica_metatype _l_alg__str = NULL;
modelica_metatype _l_range__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,4,6) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 6));
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 7));
_i_iter = tmpMeta6;
_i_range = tmpMeta7;
_i_statementLst = tmpMeta8;
_i_source = tmpMeta9;
_txt = tmp4_1;
_l_range__str = omc_DAEDumpTpl_dumpExp(threadData, _OMC_LIT9, _i_range);
_l_alg__str = omc_Tpl_pushIter(threadData, _OMC_LIT9, _OMC_LIT26);
_l_alg__str = omc_DAEDumpTpl_lm__195(threadData, _l_alg__str, _i_statementLst);
_l_alg__str = omc_Tpl_popIter(threadData, _l_alg__str);
_l_src__str = omc_DAEDumpTpl_dumpSource(threadData, _OMC_LIT9, _i_source);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT48);
_txt = omc_Tpl_writeStr(threadData, _txt, _i_iter);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT44);
_txt = omc_Tpl_writeText(threadData, _txt, _l_range__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT38);
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT16);
_txt = omc_Tpl_writeText(threadData, _txt, _l_alg__str);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_popBlock(threadData, _txt);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT46);
_txt = omc_Tpl_writeText(threadData, _txt, _l_src__str);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT15);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__195(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_e = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_e = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpStatement(threadData, _txt, _i_e);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpElseIfStatements(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_else__)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_else__;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_else__ = NULL;
modelica_metatype _i_statementLst = NULL;
modelica_metatype _i_exp = NULL;
modelica_metatype _l_else__body__str = NULL;
modelica_metatype _l_else__str = NULL;
modelica_metatype _l_elseif__body__str = NULL;
modelica_metatype _l_elseif__cond__str = NULL;
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_2))) {
case 4: {
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,3) == 0) goto tmp3_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
_i_exp = tmpMeta5;
_i_statementLst = tmpMeta6;
_i_else__ = tmpMeta7;
_txt = tmp4_1;
_l_elseif__cond__str = omc_DAEDumpTpl_dumpExp(threadData, _OMC_LIT9, _i_exp);
_l_elseif__body__str = omc_Tpl_pushIter(threadData, _OMC_LIT9, _OMC_LIT26);
_l_elseif__body__str = omc_DAEDumpTpl_lm__192(threadData, _l_elseif__body__str, _i_statementLst);
_l_elseif__body__str = omc_Tpl_popIter(threadData, _l_elseif__body__str);
_l_else__str = omc_DAEDumpTpl_dumpElseIfStatements(threadData, _OMC_LIT9, _i_else__);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT50);
_txt = omc_Tpl_writeText(threadData, _txt, _l_elseif__cond__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT30);
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT16);
_txt = omc_Tpl_writeText(threadData, _txt, _l_elseif__body__str);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_popBlock(threadData, _txt);
tmpMeta1 = omc_Tpl_writeText(threadData, _txt, _l_else__str);
goto tmp3_done;
}
case 5: {
modelica_metatype tmpMeta8;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,2,1) == 0) goto tmp3_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_statementLst = tmpMeta8;
_txt = tmp4_1;
_l_else__body__str = omc_Tpl_pushIter(threadData, _OMC_LIT9, _OMC_LIT26);
_l_else__body__str = omc_DAEDumpTpl_lm__193(threadData, _l_else__body__str, _i_statementLst);
_l_else__body__str = omc_Tpl_popIter(threadData, _l_else__body__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT52);
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT16);
_txt = omc_Tpl_writeText(threadData, _txt, _l_else__body__str);
tmpMeta1 = omc_Tpl_popBlock(threadData, _txt);
goto tmp3_done;
}
default:
tmp3_default: OMC_LABEL_UNUSED; {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__193(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_e = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_e = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpStatement(threadData, _txt, _i_e);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__192(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_e = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_e = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpStatement(threadData, _txt, _i_e);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpIfStatement(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_stmt)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_stmt;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_source = NULL;
modelica_metatype _i_else__ = NULL;
modelica_metatype _i_statementLst = NULL;
modelica_metatype _i_exp = NULL;
modelica_metatype _l_src__str = NULL;
modelica_metatype _l_else__if__str = NULL;
modelica_metatype _l_true__branch__str = NULL;
modelica_metatype _l_if__cond__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,3,4) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5));
_i_exp = tmpMeta6;
_i_statementLst = tmpMeta7;
_i_else__ = tmpMeta8;
_i_source = tmpMeta9;
_txt = tmp4_1;
_l_if__cond__str = omc_DAEDumpTpl_dumpExp(threadData, _OMC_LIT9, _i_exp);
_l_true__branch__str = omc_Tpl_pushIter(threadData, _OMC_LIT9, _OMC_LIT26);
_l_true__branch__str = omc_DAEDumpTpl_lm__190(threadData, _l_true__branch__str, _i_statementLst);
_l_true__branch__str = omc_Tpl_popIter(threadData, _l_true__branch__str);
_l_else__if__str = omc_DAEDumpTpl_dumpElseIfStatements(threadData, _OMC_LIT9, _i_else__);
_l_src__str = omc_DAEDumpTpl_dumpSource(threadData, _OMC_LIT9, _i_source);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT54);
_txt = omc_Tpl_writeText(threadData, _txt, _l_if__cond__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT30);
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT16);
_txt = omc_Tpl_writeText(threadData, _txt, _l_true__branch__str);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_popBlock(threadData, _txt);
_txt = omc_Tpl_writeText(threadData, _txt, _l_else__if__str);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT56);
_txt = omc_Tpl_writeText(threadData, _txt, _l_src__str);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT15);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__190(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_e = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_e = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpStatement(threadData, _txt, _i_e);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpArrayAssignStatement(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_stmt)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_stmt;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_source = NULL;
modelica_metatype _i_exp = NULL;
modelica_metatype _i_lhs = NULL;
modelica_metatype _l_src__str = NULL;
modelica_metatype _l_rhs__str = NULL;
modelica_metatype _l_lhs__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,2,4) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5));
_i_lhs = tmpMeta6;
_i_exp = tmpMeta7;
_i_source = tmpMeta8;
_txt = tmp4_1;
_l_lhs__str = omc_DAEDumpTpl_dumpExp(threadData, _OMC_LIT9, _i_lhs);
_l_rhs__str = omc_DAEDumpTpl_dumpExp(threadData, _OMC_LIT9, _i_exp);
_l_src__str = omc_DAEDumpTpl_dumpSource(threadData, _OMC_LIT9, _i_source);
_txt = omc_Tpl_writeText(threadData, _txt, _l_lhs__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT58);
_txt = omc_Tpl_writeText(threadData, _txt, _l_rhs__str);
_txt = omc_Tpl_writeText(threadData, _txt, _l_src__str);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT15);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpTupleAssignStatement(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_stmt)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_stmt;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_source = NULL;
modelica_metatype _i_exp = NULL;
modelica_metatype _i_expExpLst = NULL;
modelica_metatype _l_src__str = NULL;
modelica_metatype _l_rhs__str = NULL;
modelica_metatype _l_lhs__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,4) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5));
_i_expExpLst = tmpMeta6;
_i_exp = tmpMeta7;
_i_source = tmpMeta8;
_txt = tmp4_1;
_l_lhs__str = omc_Tpl_pushIter(threadData, _OMC_LIT9, _OMC_LIT60);
_l_lhs__str = omc_DAEDumpTpl_lm__187(threadData, _l_lhs__str, _i_expExpLst);
_l_lhs__str = omc_Tpl_popIter(threadData, _l_lhs__str);
_l_rhs__str = omc_DAEDumpTpl_dumpExp(threadData, _OMC_LIT9, _i_exp);
_l_src__str = omc_DAEDumpTpl_dumpSource(threadData, _OMC_LIT9, _i_source);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT62);
_txt = omc_Tpl_writeText(threadData, _txt, _l_lhs__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT64);
_txt = omc_Tpl_writeText(threadData, _txt, _l_rhs__str);
_txt = omc_Tpl_writeText(threadData, _txt, _l_src__str);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT15);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__187(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_e = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_e = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpExp(threadData, _txt, _i_e);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpAssignment(threadData_t *threadData, modelica_metatype _txt, modelica_metatype _a_lhs, modelica_metatype _a_rhs, modelica_metatype _a_src)
{
modelica_metatype _out_txt = NULL;
modelica_metatype _l_src__str = NULL;
modelica_metatype _l_rhs__str = NULL;
modelica_metatype _l_lhs__str = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_l_lhs__str = omc_DAEDumpTpl_fun__185(threadData, _OMC_LIT9, _a_lhs);
_l_rhs__str = omc_DAEDumpTpl_dumpExp(threadData, _OMC_LIT9, _a_rhs);
_l_src__str = omc_DAEDumpTpl_dumpSource(threadData, _OMC_LIT9, _a_src);
_out_txt = omc_Tpl_writeText(threadData, _txt, _l_lhs__str);
_out_txt = omc_Tpl_writeTok(threadData, _out_txt, _OMC_LIT58);
_out_txt = omc_Tpl_writeText(threadData, _out_txt, _l_rhs__str);
_out_txt = omc_Tpl_writeText(threadData, _out_txt, _l_src__str);
_out_txt = omc_Tpl_writeTok(threadData, _out_txt, _OMC_LIT15);
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__185(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_lhs)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_lhs;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_lhs = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,12,3) == 0) goto tmp3_end;
_i_lhs = tmp4_2;
_txt = tmp4_1;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT62);
_txt = omc_DAEDumpTpl_dumpExp(threadData, _txt, _i_lhs);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT24);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_i_lhs = tmp4_2;
tmpMeta1 = omc_DAEDumpTpl_dumpExp(threadData, _txt, _i_lhs);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpStatement(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_stmt)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_stmt;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_level = NULL;
modelica_metatype _i_msg = NULL;
modelica_metatype _i_cond = NULL;
modelica_metatype _i_stmt = NULL;
modelica_metatype _i_source = NULL;
modelica_metatype _i_exp = NULL;
modelica_metatype _i_exp1 = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 17; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,4) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5));
_i_exp1 = tmpMeta6;
_i_exp = tmpMeta7;
_i_source = tmpMeta8;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpAssignment(threadData, _txt, _i_exp1, _i_exp, _i_source);
goto tmp3_done;
}
case 1: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,4) == 0) goto tmp3_end;
_i_stmt = tmp4_2;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpTupleAssignStatement(threadData, _txt, _i_stmt);
goto tmp3_done;
}
case 2: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,2,4) == 0) goto tmp3_end;
_i_stmt = tmp4_2;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpArrayAssignStatement(threadData, _txt, _i_stmt);
goto tmp3_done;
}
case 3: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,3,4) == 0) goto tmp3_end;
_i_stmt = tmp4_2;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpIfStatement(threadData, _txt, _i_stmt);
goto tmp3_done;
}
case 4: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,4,6) == 0) goto tmp3_end;
_i_stmt = tmp4_2;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpForStatement(threadData, _txt, _i_stmt);
goto tmp3_done;
}
case 5: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,5,7) == 0) goto tmp3_end;
_i_stmt = tmp4_2;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpParForStatement(threadData, _txt, _i_stmt);
goto tmp3_done;
}
case 6: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,6,3) == 0) goto tmp3_end;
_i_stmt = tmp4_2;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpWhileStatement(threadData, _txt, _i_stmt);
goto tmp3_done;
}
case 7: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,7,6) == 0) goto tmp3_end;
_i_stmt = tmp4_2;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpWhenStatement(threadData, _txt, _i_stmt);
goto tmp3_done;
}
case 8: {
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,8,4) == 0) goto tmp3_end;
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5));
_i_cond = tmpMeta9;
_i_msg = tmpMeta10;
_i_level = tmpMeta11;
_i_source = tmpMeta12;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpAssert(threadData, _txt, _i_cond, _i_msg, _i_level, _i_source);
goto tmp3_done;
}
case 9: {
modelica_metatype tmpMeta13;
modelica_metatype tmpMeta14;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,9,2) == 0) goto tmp3_end;
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta14 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
_i_msg = tmpMeta13;
_i_source = tmpMeta14;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpTerminate(threadData, _txt, _i_msg, _i_source);
goto tmp3_done;
}
case 10: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,10,3) == 0) goto tmp3_end;
_i_stmt = tmp4_2;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpReinitStatement(threadData, _txt, _i_stmt);
goto tmp3_done;
}
case 11: {
modelica_metatype tmpMeta15;
modelica_metatype tmpMeta16;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,11,2) == 0) goto tmp3_end;
tmpMeta15 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta16 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
_i_exp = tmpMeta15;
_i_source = tmpMeta16;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpNoRetCall(threadData, _txt, _i_exp, _i_source);
goto tmp3_done;
}
case 12: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,12,1) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT66);
goto tmp3_done;
}
case 13: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,13,1) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT68);
goto tmp3_done;
}
case 14: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,14,1) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT70);
goto tmp3_done;
}
case 15: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,16,2) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT72);
goto tmp3_done;
}
case 16: {
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_errorMsg(threadData, _txt, _OMC_LIT73);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpStatements(threadData_t *threadData, modelica_metatype _txt, modelica_metatype _a_stmts)
{
modelica_metatype _out_txt = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_out_txt = omc_Tpl_pushIter(threadData, _txt, _OMC_LIT26);
_out_txt = omc_DAEDumpTpl_lm__182(threadData, _out_txt, _a_stmts);
_out_txt = omc_Tpl_popIter(threadData, _out_txt);
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__182(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_stmt = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_stmt = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpStatement(threadData, _txt, _i_stmt);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpAlgorithm(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_algorithm__, modelica_string _in_a_header)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;modelica_string tmp4_3;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_algorithm__;
tmp4_3 = _in_a_header;
{
modelica_metatype _txt = NULL;
modelica_string _a_header = NULL;
modelica_metatype _i_statementLst = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_txt = tmp4_1;
_i_statementLst = tmpMeta6;
_a_header = tmp4_3;
_txt = omc_Tpl_writeStr(threadData, _txt, _a_header);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT16);
_txt = omc_DAEDumpTpl_dumpStatements(threadData, _txt, _i_statementLst);
tmpMeta1 = omc_Tpl_popBlock(threadData, _txt);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpAlgorithmElement(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_alg)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_alg;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_algorithm__ = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,16,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_algorithm__ = tmpMeta6;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpAlgorithm(threadData, _txt, _i_algorithm__, _OMC_LIT74);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpAlgorithmSection(threadData_t *threadData, modelica_metatype _txt, modelica_metatype _a_a)
{
modelica_metatype _out_txt = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_out_txt = omc_Tpl_pushIter(threadData, _txt, _OMC_LIT26);
_out_txt = omc_DAEDumpTpl_lm__178(threadData, _out_txt, _a_a);
_out_txt = omc_Tpl_popIter(threadData, _out_txt);
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__178(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_alg = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_alg = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpAlgorithmElement(threadData, _txt, _i_alg);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpInitialAlgorithm(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_alg)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_alg;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_algorithm__ = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,17,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_algorithm__ = tmpMeta6;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpAlgorithm(threadData, _txt, _i_algorithm__, _OMC_LIT75);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpInitialAlgorithmSection(threadData_t *threadData, modelica_metatype _txt, modelica_metatype _a_ia)
{
modelica_metatype _out_txt = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_out_txt = omc_Tpl_pushIter(threadData, _txt, _OMC_LIT26);
_out_txt = omc_DAEDumpTpl_lm__175(threadData, _out_txt, _a_ia);
_out_txt = omc_Tpl_popIter(threadData, _out_txt);
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__175(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_alg = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_alg = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpInitialAlgorithm(threadData, _txt, _i_alg);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpElseIfEquation(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_condition1, modelica_metatype _in_a_equations)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;modelica_metatype tmp4_3;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_condition1;
tmp4_3 = _in_a_equations;
{
modelica_metatype _txt = NULL;
modelica_metatype _a_equations = NULL;
modelica_metatype _i_rest__conds = NULL;
modelica_metatype _i_cond = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_cond = tmpMeta6;
_i_rest__conds = tmpMeta7;
_txt = tmp4_1;
_a_equations = tmp4_3;
tmpMeta1 = omc_DAEDumpTpl_fun__173(threadData, _txt, _a_equations, _i_rest__conds, _i_cond);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__173(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_equations, modelica_metatype _in_a_rest__conds, modelica_metatype _in_a_cond)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;modelica_metatype tmp4_3;modelica_metatype tmp4_4;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_equations;
tmp4_3 = _in_a_rest__conds;
tmp4_4 = _in_a_cond;
{
modelica_metatype _txt = NULL;
modelica_metatype _a_rest__conds = NULL;
modelica_metatype _a_cond = NULL;
modelica_metatype _i_rest__branches = NULL;
modelica_metatype _i_branch = NULL;
modelica_metatype _l_rest__str = NULL;
modelica_metatype _l_branch__str = NULL;
modelica_metatype _l_cond__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_branch = tmpMeta6;
_i_rest__branches = tmpMeta7;
_txt = tmp4_1;
_a_rest__conds = tmp4_3;
_a_cond = tmp4_4;
_l_cond__str = omc_DAEDumpTpl_dumpExp(threadData, _OMC_LIT9, _a_cond);
_l_branch__str = omc_Tpl_pushIter(threadData, _OMC_LIT9, _OMC_LIT26);
_l_branch__str = omc_DAEDumpTpl_lm__172(threadData, _l_branch__str, _i_branch);
_l_branch__str = omc_Tpl_popIter(threadData, _l_branch__str);
_l_rest__str = omc_DAEDumpTpl_dumpElseIfEquation(threadData, _OMC_LIT9, _a_rest__conds, _i_rest__branches);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT50);
_txt = omc_Tpl_writeText(threadData, _txt, _l_cond__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT30);
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT16);
_txt = omc_Tpl_writeText(threadData, _txt, _l_branch__str);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_popBlock(threadData, _txt);
tmpMeta1 = omc_Tpl_writeText(threadData, _txt, _l_rest__str);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__172(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_e = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_e = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpEquationElement(threadData, _txt, _i_e);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpIfEquation(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_conds, modelica_metatype _in_a_branches, modelica_metatype _in_a_else__branch, modelica_metatype _in_a_src)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;modelica_metatype tmp4_3;modelica_metatype tmp4_4;modelica_metatype tmp4_5;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_conds;
tmp4_3 = _in_a_branches;
tmp4_4 = _in_a_else__branch;
tmp4_5 = _in_a_src;
{
modelica_metatype _txt = NULL;
modelica_metatype _a_branches = NULL;
modelica_metatype _a_else__branch = NULL;
modelica_metatype _a_src = NULL;
modelica_metatype _i_elseif__conds = NULL;
modelica_metatype _i_if__cond = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_if__cond = tmpMeta6;
_i_elseif__conds = tmpMeta7;
_txt = tmp4_1;
_a_branches = tmp4_3;
_a_else__branch = tmp4_4;
_a_src = tmp4_5;
tmpMeta1 = omc_DAEDumpTpl_fun__170(threadData, _txt, _a_branches, _a_src, _a_else__branch, _i_elseif__conds, _i_if__cond);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__170(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_branches, modelica_metatype _in_a_src, modelica_metatype _in_a_else__branch, modelica_metatype _in_a_elseif__conds, modelica_metatype _in_a_if__cond)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;modelica_metatype tmp4_3;modelica_metatype tmp4_4;modelica_metatype tmp4_5;modelica_metatype tmp4_6;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_branches;
tmp4_3 = _in_a_src;
tmp4_4 = _in_a_else__branch;
tmp4_5 = _in_a_elseif__conds;
tmp4_6 = _in_a_if__cond;
{
modelica_metatype _txt = NULL;
modelica_metatype _a_src = NULL;
modelica_metatype _a_else__branch = NULL;
modelica_metatype _a_elseif__conds = NULL;
modelica_metatype _a_if__cond = NULL;
modelica_metatype _i_elseif__branches = NULL;
modelica_metatype _i_if__branch = NULL;
modelica_metatype _l_src__str = NULL;
modelica_metatype _l_else__str = NULL;
modelica_metatype _l_elseif__str = NULL;
modelica_metatype _l_if__branch__str = NULL;
modelica_metatype _l_if__cond__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_if__branch = tmpMeta6;
_i_elseif__branches = tmpMeta7;
_txt = tmp4_1;
_a_src = tmp4_3;
_a_else__branch = tmp4_4;
_a_elseif__conds = tmp4_5;
_a_if__cond = tmp4_6;
_l_if__cond__str = omc_DAEDumpTpl_dumpExp(threadData, _OMC_LIT9, _a_if__cond);
_l_if__branch__str = omc_Tpl_pushIter(threadData, _OMC_LIT9, _OMC_LIT26);
_l_if__branch__str = omc_DAEDumpTpl_lm__167(threadData, _l_if__branch__str, _i_if__branch);
_l_if__branch__str = omc_Tpl_popIter(threadData, _l_if__branch__str);
_l_elseif__str = omc_DAEDumpTpl_dumpElseIfEquation(threadData, _OMC_LIT9, _a_elseif__conds, _i_elseif__branches);
_l_else__str = omc_DAEDumpTpl_fun__169(threadData, _OMC_LIT9, _a_else__branch);
_l_src__str = omc_DAEDumpTpl_dumpSource(threadData, _OMC_LIT9, _a_src);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT54);
_txt = omc_Tpl_writeText(threadData, _txt, _l_if__cond__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT30);
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT16);
_txt = omc_Tpl_writeText(threadData, _txt, _l_if__branch__str);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_popBlock(threadData, _txt);
_txt = omc_Tpl_writeText(threadData, _txt, _l_elseif__str);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_writeText(threadData, _txt, _l_else__str);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT56);
_txt = omc_Tpl_writeText(threadData, _txt, _l_src__str);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT15);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__169(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_else__branch)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_else__branch;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_else__branch = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_i_else__branch = tmp4_2;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT52);
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT16);
_txt = omc_Tpl_pushIter(threadData, _txt, _OMC_LIT26);
_txt = omc_DAEDumpTpl_lm__168(threadData, _txt, _i_else__branch);
_txt = omc_Tpl_popIter(threadData, _txt);
tmpMeta1 = omc_Tpl_popBlock(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__168(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_e = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_e = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpEquationElement(threadData, _txt, _i_e);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__167(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_e = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_e = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpEquationElement(threadData, _txt, _i_e);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpForEquation(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_lst)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_lst;
{
modelica_metatype _txt = NULL;
modelica_string _i_iter = NULL;
modelica_metatype _i_source = NULL;
modelica_metatype _i_equations = NULL;
modelica_metatype _i_range = NULL;
modelica_metatype _l_src__str = NULL;
modelica_metatype _l_body__str = NULL;
modelica_metatype _l_range__str = NULL;
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_2))) {
case 15: {
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,12,7) == 0) goto tmp3_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 6));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 7));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 8));
_i_iter = tmpMeta5;
_i_range = tmpMeta6;
_i_equations = tmpMeta7;
_i_source = tmpMeta8;
_txt = tmp4_1;
_l_range__str = omc_DAEDumpTpl_dumpExp(threadData, _OMC_LIT9, _i_range);
_l_body__str = omc_Tpl_pushIter(threadData, _OMC_LIT9, _OMC_LIT26);
_l_body__str = omc_DAEDumpTpl_lm__164(threadData, _l_body__str, _i_equations);
_l_body__str = omc_Tpl_popIter(threadData, _l_body__str);
_l_src__str = omc_DAEDumpTpl_dumpSource(threadData, _OMC_LIT9, _i_source);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT48);
_txt = omc_Tpl_writeStr(threadData, _txt, _i_iter);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT44);
_txt = omc_Tpl_writeText(threadData, _txt, _l_range__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT38);
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT16);
_txt = omc_Tpl_writeText(threadData, _txt, _l_body__str);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_popBlock(threadData, _txt);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT46);
_txt = omc_Tpl_writeText(threadData, _txt, _l_src__str);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT15);
goto tmp3_done;
}
case 14: {
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,11,7) == 0) goto tmp3_end;
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 6));
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 7));
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 8));
_i_iter = tmpMeta9;
_i_range = tmpMeta10;
_i_equations = tmpMeta11;
_i_source = tmpMeta12;
_txt = tmp4_1;
_l_range__str = omc_DAEDumpTpl_dumpExp(threadData, _OMC_LIT9, _i_range);
_l_body__str = omc_Tpl_pushIter(threadData, _OMC_LIT9, _OMC_LIT26);
_l_body__str = omc_DAEDumpTpl_lm__165(threadData, _l_body__str, _i_equations);
_l_body__str = omc_Tpl_popIter(threadData, _l_body__str);
_l_src__str = omc_DAEDumpTpl_dumpSource(threadData, _OMC_LIT9, _i_source);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT48);
_txt = omc_Tpl_writeStr(threadData, _txt, _i_iter);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT44);
_txt = omc_Tpl_writeText(threadData, _txt, _l_range__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT38);
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT16);
_txt = omc_Tpl_writeText(threadData, _txt, _l_body__str);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_popBlock(threadData, _txt);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT46);
_txt = omc_Tpl_writeText(threadData, _txt, _l_src__str);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT15);
goto tmp3_done;
}
default:
tmp3_default: OMC_LABEL_UNUSED; {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__165(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_e = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_e = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpEquationElement(threadData, _txt, _i_e);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__164(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_e = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_e = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpEquationElement(threadData, _txt, _i_e);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpWhenEquation(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_lst)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_lst;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_source = NULL;
modelica_metatype _i_elsewhen__ = NULL;
modelica_metatype _i_equations = NULL;
modelica_metatype _i_condition = NULL;
modelica_metatype _l_src__str = NULL;
modelica_metatype _l_elsewhen__str = NULL;
modelica_metatype _l_body__str = NULL;
modelica_metatype _l_when__cond__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,10,4) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5));
_i_condition = tmpMeta6;
_i_equations = tmpMeta7;
_i_elsewhen__ = tmpMeta8;
_i_source = tmpMeta9;
_txt = tmp4_1;
_l_when__cond__str = omc_DAEDumpTpl_dumpExp(threadData, _OMC_LIT9, _i_condition);
_l_body__str = omc_Tpl_pushIter(threadData, _OMC_LIT9, _OMC_LIT26);
_l_body__str = omc_DAEDumpTpl_lm__160(threadData, _l_body__str, _i_equations);
_l_body__str = omc_Tpl_popIter(threadData, _l_body__str);
_l_elsewhen__str = omc_DAEDumpTpl_fun__161(threadData, _OMC_LIT9, _i_elsewhen__);
_l_src__str = omc_DAEDumpTpl_dumpSource(threadData, _OMC_LIT9, _i_source);
tmpMeta1 = omc_DAEDumpTpl_fun__162(threadData, _txt, _l_elsewhen__str, _l_src__str, _l_body__str, _l_when__cond__str);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__162(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_elsewhen__str, modelica_metatype _in_a_src__str, modelica_metatype _in_a_body__str, modelica_metatype _in_a_when__cond__str)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;modelica_metatype tmp4_3;modelica_metatype tmp4_4;modelica_metatype tmp4_5;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_elsewhen__str;
tmp4_3 = _in_a_src__str;
tmp4_4 = _in_a_body__str;
tmp4_5 = _in_a_when__cond__str;
{
modelica_metatype _txt = NULL;
modelica_metatype _a_src__str = NULL;
modelica_metatype _a_body__str = NULL;
modelica_metatype _a_when__cond__str = NULL;
modelica_metatype _i_elsewhen__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
if (!listEmpty(tmpMeta6)) goto tmp3_end;
_txt = tmp4_1;
_a_src__str = tmp4_3;
_a_body__str = tmp4_4;
_a_when__cond__str = tmp4_5;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT28);
_txt = omc_Tpl_writeText(threadData, _txt, _a_when__cond__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT30);
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT16);
_txt = omc_Tpl_writeText(threadData, _txt, _a_body__str);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_popBlock(threadData, _txt);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT32);
_txt = omc_Tpl_writeText(threadData, _txt, _a_src__str);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT15);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_i_elsewhen__str = tmp4_2;
_a_body__str = tmp4_4;
_a_when__cond__str = tmp4_5;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT28);
_txt = omc_Tpl_writeText(threadData, _txt, _a_when__cond__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT30);
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT16);
_txt = omc_Tpl_writeText(threadData, _txt, _a_body__str);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_popBlock(threadData, _txt);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT34);
tmpMeta1 = omc_Tpl_writeText(threadData, _txt, _i_elsewhen__str);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__161(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_elsewhen__)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_elsewhen__;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_el = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (optionNone(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1));
_i_el = tmpMeta6;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpWhenEquation(threadData, _txt, _i_el);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__160(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_e = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_e = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpEquationElement(threadData, _txt, _i_e);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpNoRetCall(threadData_t *threadData, modelica_metatype _txt, modelica_metatype _a_call__exp, modelica_metatype _a_src)
{
modelica_metatype _out_txt = NULL;
modelica_metatype _l_tail__str = NULL;
modelica_metatype _l_src__str = NULL;
modelica_metatype _l_call__str = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_l_call__str = omc_DAEDumpTpl_dumpExp(threadData, _OMC_LIT9, _a_call__exp);
_l_src__str = omc_DAEDumpTpl_dumpSource(threadData, _OMC_LIT9, _a_src);
_l_tail__str = omc_DAEDumpTpl_fun__158(threadData, _OMC_LIT9, _a_call__exp);
_out_txt = omc_Tpl_writeText(threadData, _txt, _l_tail__str);
_out_txt = omc_Tpl_writeText(threadData, _out_txt, _l_call__str);
_out_txt = omc_Tpl_writeText(threadData, _out_txt, _l_src__str);
_out_txt = omc_Tpl_writeTok(threadData, _out_txt, _OMC_LIT15);
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__158(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_call__exp)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_call__exp;
{
modelica_metatype _txt = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,13,3) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 8));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta7,1,2) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT77);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpReinit(threadData_t *threadData, modelica_metatype _txt, modelica_metatype _a_cref, modelica_metatype _a_exp, modelica_metatype _a_src)
{
modelica_metatype _out_txt = NULL;
modelica_metatype _l_src__str = NULL;
modelica_metatype _l_exp__str = NULL;
modelica_metatype _l_cref__str = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_l_cref__str = omc_DAEDumpTpl_dumpCref(threadData, _OMC_LIT9, _a_cref);
_l_exp__str = omc_DAEDumpTpl_dumpExp(threadData, _OMC_LIT9, _a_exp);
_l_src__str = omc_DAEDumpTpl_dumpSource(threadData, _OMC_LIT9, _a_src);
_out_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT20);
_out_txt = omc_Tpl_writeText(threadData, _out_txt, _l_cref__str);
_out_txt = omc_Tpl_writeTok(threadData, _out_txt, _OMC_LIT22);
_out_txt = omc_Tpl_writeText(threadData, _out_txt, _l_exp__str);
_out_txt = omc_Tpl_writeTok(threadData, _out_txt, _OMC_LIT24);
_out_txt = omc_Tpl_writeText(threadData, _out_txt, _l_src__str);
_out_txt = omc_Tpl_writeTok(threadData, _out_txt, _OMC_LIT15);
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpTerminate(threadData_t *threadData, modelica_metatype _txt, modelica_metatype _a_msg, modelica_metatype _a_src)
{
modelica_metatype _out_txt = NULL;
modelica_metatype _l_src__str = NULL;
modelica_metatype _l_msg__str = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_l_msg__str = omc_DAEDumpTpl_dumpExp(threadData, _OMC_LIT9, _a_msg);
_l_src__str = omc_DAEDumpTpl_dumpSource(threadData, _OMC_LIT9, _a_src);
_out_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT79);
_out_txt = omc_Tpl_writeText(threadData, _out_txt, _l_msg__str);
_out_txt = omc_Tpl_writeTok(threadData, _out_txt, _OMC_LIT24);
_out_txt = omc_Tpl_writeText(threadData, _out_txt, _l_src__str);
_out_txt = omc_Tpl_writeTok(threadData, _out_txt, _OMC_LIT15);
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpAssert(threadData_t *threadData, modelica_metatype _txt, modelica_metatype _a_cond, modelica_metatype _a_msg, modelica_metatype _a_lvl, modelica_metatype _a_src)
{
modelica_metatype _out_txt = NULL;
modelica_metatype _l_src__str = NULL;
modelica_metatype _l_lvl__str = NULL;
modelica_metatype _l_msg__str = NULL;
modelica_metatype _l_cond__str = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_l_cond__str = omc_DAEDumpTpl_dumpExp(threadData, _OMC_LIT9, _a_cond);
_l_msg__str = omc_DAEDumpTpl_dumpExp(threadData, _OMC_LIT9, _a_msg);
_l_lvl__str = omc_DAEDumpTpl_fun__154(threadData, _OMC_LIT9, _a_lvl);
_l_src__str = omc_DAEDumpTpl_dumpSource(threadData, _OMC_LIT9, _a_src);
_out_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT81);
_out_txt = omc_Tpl_writeText(threadData, _out_txt, _l_cond__str);
_out_txt = omc_Tpl_writeTok(threadData, _out_txt, _OMC_LIT22);
_out_txt = omc_Tpl_writeText(threadData, _out_txt, _l_msg__str);
_out_txt = omc_Tpl_writeText(threadData, _out_txt, _l_lvl__str);
_out_txt = omc_Tpl_writeTok(threadData, _out_txt, _OMC_LIT24);
_out_txt = omc_Tpl_writeText(threadData, _out_txt, _l_src__str);
_out_txt = omc_Tpl_writeTok(threadData, _out_txt, _OMC_LIT15);
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__154(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_lvl)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_lvl;
{
modelica_metatype _txt = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_integer tmp7;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,5,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmp7 = mmc_unbox_integer(tmpMeta6);
if (1 != tmp7) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT83);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpDefine(threadData_t *threadData, modelica_metatype _txt, modelica_metatype _a_lhs, modelica_metatype _a_rhs, modelica_metatype _a_src)
{
modelica_metatype _out_txt = NULL;
modelica_metatype _l_src__str = NULL;
modelica_metatype _l_rhs__str = NULL;
modelica_metatype _l_lhs__str = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_l_lhs__str = omc_DAEDumpTpl_dumpCref(threadData, _OMC_LIT9, _a_lhs);
_l_rhs__str = omc_DAEDumpTpl_dumpExp(threadData, _OMC_LIT9, _a_rhs);
_l_src__str = omc_DAEDumpTpl_dumpSource(threadData, _OMC_LIT9, _a_src);
_out_txt = omc_Tpl_writeText(threadData, _txt, _l_lhs__str);
_out_txt = omc_Tpl_writeTok(threadData, _out_txt, _OMC_LIT85);
_out_txt = omc_Tpl_writeText(threadData, _out_txt, _l_rhs__str);
_out_txt = omc_Tpl_writeText(threadData, _out_txt, _l_src__str);
_out_txt = omc_Tpl_writeTok(threadData, _out_txt, _OMC_LIT15);
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpEquEquation(threadData_t *threadData, modelica_metatype _txt, modelica_metatype _a_lhs, modelica_metatype _a_rhs, modelica_metatype _a_src)
{
modelica_metatype _out_txt = NULL;
modelica_metatype _l_src__str = NULL;
modelica_metatype _l_rhs__str = NULL;
modelica_metatype _l_lhs__str = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_l_lhs__str = omc_DAEDumpTpl_dumpCref(threadData, _OMC_LIT9, _a_lhs);
_l_rhs__str = omc_DAEDumpTpl_dumpCref(threadData, _OMC_LIT9, _a_rhs);
_l_src__str = omc_DAEDumpTpl_dumpSource(threadData, _OMC_LIT9, _a_src);
_out_txt = omc_Tpl_writeText(threadData, _txt, _l_lhs__str);
_out_txt = omc_Tpl_writeTok(threadData, _out_txt, _OMC_LIT85);
_out_txt = omc_Tpl_writeText(threadData, _out_txt, _l_rhs__str);
_out_txt = omc_Tpl_writeText(threadData, _out_txt, _l_src__str);
_out_txt = omc_Tpl_writeTok(threadData, _out_txt, _OMC_LIT15);
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpEquation(threadData_t *threadData, modelica_metatype _txt, modelica_metatype _a_lhs, modelica_metatype _a_rhs, modelica_metatype _a_src)
{
modelica_metatype _out_txt = NULL;
modelica_metatype _l_src__str = NULL;
modelica_metatype _l_rhs__str = NULL;
modelica_metatype _l_lhs__str = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_l_lhs__str = omc_DAEDumpTpl_fun__150(threadData, _OMC_LIT9, _a_lhs);
_l_rhs__str = omc_DAEDumpTpl_dumpExp(threadData, _OMC_LIT9, _a_rhs);
_l_src__str = omc_DAEDumpTpl_dumpSource(threadData, _OMC_LIT9, _a_src);
_out_txt = omc_Tpl_writeText(threadData, _txt, _l_lhs__str);
_out_txt = omc_Tpl_writeTok(threadData, _out_txt, _OMC_LIT85);
_out_txt = omc_Tpl_writeText(threadData, _out_txt, _l_rhs__str);
_out_txt = omc_Tpl_writeText(threadData, _out_txt, _l_src__str);
_out_txt = omc_Tpl_writeTok(threadData, _out_txt, _OMC_LIT15);
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__150(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_lhs)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_lhs;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_lhs = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,12,3) == 0) goto tmp3_end;
_i_lhs = tmp4_2;
_txt = tmp4_1;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT62);
_txt = omc_DAEDumpTpl_dumpExp(threadData, _txt, _i_lhs);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT24);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_i_lhs = tmp4_2;
tmpMeta1 = omc_DAEDumpTpl_dumpExp(threadData, _txt, _i_lhs);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpEquationElement(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_lst)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_lst;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_exp2 = NULL;
modelica_metatype _i_exp1 = NULL;
modelica_metatype _i_level = NULL;
modelica_metatype _i_message = NULL;
modelica_metatype _i_condition = NULL;
modelica_metatype _i_equations3 = NULL;
modelica_metatype _i_equations2 = NULL;
modelica_metatype _i_condition1 = NULL;
modelica_metatype _i_lst = NULL;
modelica_metatype _i_componentRef = NULL;
modelica_metatype _i_rhs = NULL;
modelica_metatype _i_lhs = NULL;
modelica_metatype _i_array = NULL;
modelica_metatype _i_cr2 = NULL;
modelica_metatype _i_cr1 = NULL;
modelica_metatype _i_source = NULL;
modelica_metatype _i_scalar = NULL;
modelica_metatype _i_exp = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 22; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,3,3) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
_i_exp = tmpMeta6;
_i_scalar = tmpMeta7;
_i_source = tmpMeta8;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpEquation(threadData, _txt, _i_exp, _i_scalar, _i_source);
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,4,3) == 0) goto tmp3_end;
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
_i_cr1 = tmpMeta9;
_i_cr2 = tmpMeta10;
_i_source = tmpMeta11;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpEquEquation(threadData, _txt, _i_cr1, _i_cr2, _i_source);
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
modelica_metatype tmpMeta14;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,5,4) == 0) goto tmp3_end;
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
tmpMeta14 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5));
_i_exp = tmpMeta12;
_i_array = tmpMeta13;
_i_source = tmpMeta14;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpEquation(threadData, _txt, _i_exp, _i_array, _i_source);
goto tmp3_done;
}
case 3: {
modelica_metatype tmpMeta15;
modelica_metatype tmpMeta16;
modelica_metatype tmpMeta17;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,8,3) == 0) goto tmp3_end;
tmpMeta15 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta16 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta17 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
_i_lhs = tmpMeta15;
_i_rhs = tmpMeta16;
_i_source = tmpMeta17;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpEquation(threadData, _txt, _i_lhs, _i_rhs, _i_source);
goto tmp3_done;
}
case 4: {
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
modelica_metatype tmpMeta20;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,3) == 0) goto tmp3_end;
tmpMeta18 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta19 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta20 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
_i_componentRef = tmpMeta18;
_i_exp = tmpMeta19;
_i_source = tmpMeta20;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpDefine(threadData, _txt, _i_componentRef, _i_exp, _i_source);
goto tmp3_done;
}
case 5: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,10,4) == 0) goto tmp3_end;
_i_lst = tmp4_2;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpWhenEquation(threadData, _txt, _i_lst);
goto tmp3_done;
}
case 6: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,12,7) == 0) goto tmp3_end;
_i_lst = tmp4_2;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpForEquation(threadData, _txt, _i_lst);
goto tmp3_done;
}
case 7: {
modelica_metatype tmpMeta21;
modelica_metatype tmpMeta22;
modelica_metatype tmpMeta23;
modelica_metatype tmpMeta24;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,13,4) == 0) goto tmp3_end;
tmpMeta21 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta22 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta23 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
tmpMeta24 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5));
_i_condition1 = tmpMeta21;
_i_equations2 = tmpMeta22;
_i_equations3 = tmpMeta23;
_i_source = tmpMeta24;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpIfEquation(threadData, _txt, _i_condition1, _i_equations2, _i_equations3, _i_source);
goto tmp3_done;
}
case 8: {
modelica_metatype tmpMeta25;
modelica_metatype tmpMeta26;
modelica_metatype tmpMeta27;
modelica_metatype tmpMeta28;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,20,4) == 0) goto tmp3_end;
tmpMeta25 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta26 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta27 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
tmpMeta28 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5));
_i_condition = tmpMeta25;
_i_message = tmpMeta26;
_i_level = tmpMeta27;
_i_source = tmpMeta28;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpAssert(threadData, _txt, _i_condition, _i_message, _i_level, _i_source);
goto tmp3_done;
}
case 9: {
modelica_metatype tmpMeta29;
modelica_metatype tmpMeta30;
modelica_metatype tmpMeta31;
modelica_metatype tmpMeta32;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,21,4) == 0) goto tmp3_end;
tmpMeta29 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta30 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta31 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
tmpMeta32 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5));
_i_condition = tmpMeta29;
_i_message = tmpMeta30;
_i_level = tmpMeta31;
_i_source = tmpMeta32;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpAssert(threadData, _txt, _i_condition, _i_message, _i_level, _i_source);
goto tmp3_done;
}
case 10: {
modelica_metatype tmpMeta33;
modelica_metatype tmpMeta34;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,22,2) == 0) goto tmp3_end;
tmpMeta33 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta34 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
_i_message = tmpMeta33;
_i_source = tmpMeta34;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpTerminate(threadData, _txt, _i_message, _i_source);
goto tmp3_done;
}
case 11: {
modelica_metatype tmpMeta35;
modelica_metatype tmpMeta36;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,23,2) == 0) goto tmp3_end;
tmpMeta35 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta36 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
_i_message = tmpMeta35;
_i_source = tmpMeta36;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpTerminate(threadData, _txt, _i_message, _i_source);
goto tmp3_done;
}
case 12: {
modelica_metatype tmpMeta37;
modelica_metatype tmpMeta38;
modelica_metatype tmpMeta39;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,24,3) == 0) goto tmp3_end;
tmpMeta37 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta38 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta39 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
_i_componentRef = tmpMeta37;
_i_exp = tmpMeta38;
_i_source = tmpMeta39;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpReinit(threadData, _txt, _i_componentRef, _i_exp, _i_source);
goto tmp3_done;
}
case 13: {
modelica_metatype tmpMeta40;
modelica_metatype tmpMeta41;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,25,2) == 0) goto tmp3_end;
tmpMeta40 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta41 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
_i_exp = tmpMeta40;
_i_source = tmpMeta41;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpNoRetCall(threadData, _txt, _i_exp, _i_source);
goto tmp3_done;
}
case 14: {
modelica_metatype tmpMeta42;
modelica_metatype tmpMeta43;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,26,2) == 0) goto tmp3_end;
tmpMeta42 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta43 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
_i_exp = tmpMeta42;
_i_source = tmpMeta43;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpNoRetCall(threadData, _txt, _i_exp, _i_source);
goto tmp3_done;
}
case 15: {
modelica_metatype tmpMeta44;
modelica_metatype tmpMeta45;
modelica_metatype tmpMeta46;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,2,3) == 0) goto tmp3_end;
tmpMeta44 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta45 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta46 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
_i_componentRef = tmpMeta44;
_i_exp = tmpMeta45;
_i_source = tmpMeta46;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpDefine(threadData, _txt, _i_componentRef, _i_exp, _i_source);
goto tmp3_done;
}
case 16: {
modelica_metatype tmpMeta47;
modelica_metatype tmpMeta48;
modelica_metatype tmpMeta49;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,6,4) == 0) goto tmp3_end;
tmpMeta47 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta48 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
tmpMeta49 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5));
_i_exp = tmpMeta47;
_i_array = tmpMeta48;
_i_source = tmpMeta49;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpEquation(threadData, _txt, _i_exp, _i_array, _i_source);
goto tmp3_done;
}
case 17: {
modelica_metatype tmpMeta50;
modelica_metatype tmpMeta51;
modelica_metatype tmpMeta52;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,9,3) == 0) goto tmp3_end;
tmpMeta50 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta51 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta52 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
_i_lhs = tmpMeta50;
_i_rhs = tmpMeta51;
_i_source = tmpMeta52;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpEquation(threadData, _txt, _i_lhs, _i_rhs, _i_source);
goto tmp3_done;
}
case 18: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,11,7) == 0) goto tmp3_end;
_i_lst = tmp4_2;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpForEquation(threadData, _txt, _i_lst);
goto tmp3_done;
}
case 19: {
modelica_metatype tmpMeta53;
modelica_metatype tmpMeta54;
modelica_metatype tmpMeta55;
modelica_metatype tmpMeta56;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,14,4) == 0) goto tmp3_end;
tmpMeta53 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta54 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta55 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
tmpMeta56 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5));
_i_condition1 = tmpMeta53;
_i_equations2 = tmpMeta54;
_i_equations3 = tmpMeta55;
_i_source = tmpMeta56;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpIfEquation(threadData, _txt, _i_condition1, _i_equations2, _i_equations3, _i_source);
goto tmp3_done;
}
case 20: {
modelica_metatype tmpMeta57;
modelica_metatype tmpMeta58;
modelica_metatype tmpMeta59;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,15,3) == 0) goto tmp3_end;
tmpMeta57 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta58 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta59 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
_i_exp1 = tmpMeta57;
_i_exp2 = tmpMeta58;
_i_source = tmpMeta59;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpEquation(threadData, _txt, _i_exp1, _i_exp2, _i_source);
goto tmp3_done;
}
case 21: {
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT87);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpEquationSection(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_e)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_e;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_e = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_i_e = tmp4_2;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT89);
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT16);
_txt = omc_Tpl_pushIter(threadData, _txt, _OMC_LIT26);
_txt = omc_DAEDumpTpl_lm__147(threadData, _txt, _i_e);
_txt = omc_Tpl_popIter(threadData, _txt);
tmpMeta1 = omc_Tpl_popBlock(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__147(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_eq = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_eq = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpEquationElement(threadData, _txt, _i_eq);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpInitialEquationSection(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_ie)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_ie;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_ie = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_i_ie = tmp4_2;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT91);
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT16);
_txt = omc_Tpl_pushIter(threadData, _txt, _OMC_LIT26);
_txt = omc_DAEDumpTpl_lm__145(threadData, _txt, _i_ie);
_txt = omc_Tpl_popIter(threadData, _txt);
tmpMeta1 = omc_Tpl_popBlock(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__145(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_ineq = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_ineq = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpEquationElement(threadData, _txt, _i_ineq);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpSubscript(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_subscript)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_subscript;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_exp = NULL;
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_2))) {
case 3: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,0) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT93);
goto tmp3_done;
}
case 4: {
modelica_metatype tmpMeta5;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,1) == 0) goto tmp3_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_exp = tmpMeta5;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpExp(threadData, _txt, _i_exp);
goto tmp3_done;
}
case 5: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,2,1) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_exp = tmpMeta6;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpExp(threadData, _txt, _i_exp);
goto tmp3_done;
}
case 6: {
modelica_metatype tmpMeta7;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,3,1) == 0) goto tmp3_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_exp = tmpMeta7;
_txt = tmp4_1;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT95);
tmpMeta1 = omc_DAEDumpTpl_dumpExp(threadData, _txt, _i_exp);
goto tmp3_done;
}
default:
tmp3_default: OMC_LABEL_UNUSED; {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpSubscripts(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_subscriptLst)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_subscriptLst;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_subscriptLst = NULL;
modelica_boolean _ret_0;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_i_subscriptLst = tmp4_2;
_ret_0 = omc_Flags_getConfigBool(threadData, _OMC_LIT103);
tmpMeta1 = omc_DAEDumpTpl_fun__142(threadData, _txt, _ret_0, _i_subscriptLst);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__142(threadData_t *threadData, modelica_metatype _in_txt, modelica_boolean _in_mArg, modelica_metatype _in_a_subscriptLst)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_boolean tmp4_2;modelica_metatype tmp4_3;
tmp4_1 = _in_txt;
tmp4_2 = _in_mArg;
tmp4_3 = _in_a_subscriptLst;
{
modelica_metatype _txt = NULL;
modelica_metatype _a_subscriptLst = NULL;
modelica_metatype _l_sub__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (0 != tmp4_2) goto tmp3_end;
_txt = tmp4_1;
_a_subscriptLst = tmp4_3;
_l_sub__str = omc_Tpl_pushIter(threadData, _OMC_LIT9, _OMC_LIT107);
_l_sub__str = omc_DAEDumpTpl_lm__140(threadData, _l_sub__str, _a_subscriptLst);
_l_sub__str = omc_Tpl_popIter(threadData, _l_sub__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT109);
_txt = omc_Tpl_writeText(threadData, _txt, _l_sub__str);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT111);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_a_subscriptLst = tmp4_3;
_l_sub__str = omc_Tpl_pushIter(threadData, _OMC_LIT9, _OMC_LIT115);
_l_sub__str = omc_DAEDumpTpl_lm__141(threadData, _l_sub__str, _a_subscriptLst);
_l_sub__str = omc_Tpl_popIter(threadData, _l_sub__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT113);
tmpMeta1 = omc_Tpl_writeText(threadData, _txt, _l_sub__str);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDumpTpl_fun__142(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_mArg, modelica_metatype _in_a_subscriptLst)
{
modelica_integer tmp1;
modelica_metatype _out_txt = NULL;
tmp1 = mmc_unbox_integer(_in_mArg);
_out_txt = omc_DAEDumpTpl_fun__142(threadData, _in_txt, tmp1, _in_a_subscriptLst);
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__141(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_s = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_s = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpSubscript(threadData, _txt, _i_s);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__140(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_s = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_s = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpSubscript(threadData, _txt, _i_s);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpTypeDimensions(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_dimensionLst)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_dimensionLst;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_dimensionLst = NULL;
modelica_metatype _l_sub__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_i_dimensionLst = tmp4_2;
_l_sub__str = omc_Tpl_pushIter(threadData, _OMC_LIT9, _OMC_LIT60);
_l_sub__str = omc_DAEDumpTpl_lm__138(threadData, _l_sub__str, _i_dimensionLst);
_l_sub__str = omc_Tpl_popIter(threadData, _l_sub__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT109);
_txt = omc_Tpl_writeText(threadData, _txt, _l_sub__str);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT111);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__138(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_s = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_s = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpDimension(threadData, _txt, _i_s);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpCref(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_c)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_c;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_componentRef = NULL;
modelica_metatype _i_subscriptLst = NULL;
modelica_string _i_ident = NULL;
modelica_boolean _ret_0;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 4; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,4) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5));
_i_ident = tmpMeta6;
_i_subscriptLst = tmpMeta7;
_i_componentRef = tmpMeta8;
_txt = tmp4_1;
_ret_0 = omc_Flags_getConfigBool(threadData, _OMC_LIT103);
tmpMeta1 = omc_DAEDumpTpl_fun__136(threadData, _txt, _ret_0, _i_componentRef, _i_subscriptLst, _i_ident);
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,3) == 0) goto tmp3_end;
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
if (4 != MMC_STRLEN(tmpMeta9) || strcmp(MMC_STRINGDATA(_OMC_LIT118), MMC_STRINGDATA(tmpMeta9)) != 0) goto tmp3_end;
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
_i_ident = tmpMeta9;
_i_subscriptLst = tmpMeta10;
_txt = tmp4_1;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT117);
_txt = omc_Tpl_writeStr(threadData, _txt, _i_ident);
_txt = omc_DAEDumpTpl_dumpSubscripts(threadData, _txt, _i_subscriptLst);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT24);
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,3) == 0) goto tmp3_end;
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
_i_ident = tmpMeta11;
_i_subscriptLst = tmpMeta12;
_txt = tmp4_1;
_txt = omc_Tpl_writeStr(threadData, _txt, _i_ident);
tmpMeta1 = omc_DAEDumpTpl_dumpSubscripts(threadData, _txt, _i_subscriptLst);
goto tmp3_done;
}
case 3: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__136(threadData_t *threadData, modelica_metatype _in_txt, modelica_boolean _in_mArg, modelica_metatype _in_a_componentRef, modelica_metatype _in_a_subscriptLst, modelica_string _in_a_ident)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_boolean tmp4_2;modelica_metatype tmp4_3;modelica_metatype tmp4_4;modelica_string tmp4_5;
tmp4_1 = _in_txt;
tmp4_2 = _in_mArg;
tmp4_3 = _in_a_componentRef;
tmp4_4 = _in_a_subscriptLst;
tmp4_5 = _in_a_ident;
{
modelica_metatype _txt = NULL;
modelica_metatype _a_componentRef = NULL;
modelica_metatype _a_subscriptLst = NULL;
modelica_string _a_ident = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (0 != tmp4_2) goto tmp3_end;
_txt = tmp4_1;
_a_componentRef = tmp4_3;
_a_subscriptLst = tmp4_4;
_a_ident = tmp4_5;
_txt = omc_Tpl_writeStr(threadData, _txt, _a_ident);
_txt = omc_DAEDumpTpl_dumpSubscripts(threadData, _txt, _a_subscriptLst);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT120);
tmpMeta1 = omc_DAEDumpTpl_dumpCref(threadData, _txt, _a_componentRef);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_a_componentRef = tmp4_3;
_a_subscriptLst = tmp4_4;
_a_ident = tmp4_5;
_txt = omc_Tpl_writeStr(threadData, _txt, _a_ident);
_txt = omc_DAEDumpTpl_dumpSubscripts(threadData, _txt, _a_subscriptLst);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT122);
tmpMeta1 = omc_DAEDumpTpl_dumpCref(threadData, _txt, _a_componentRef);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDumpTpl_fun__136(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_mArg, modelica_metatype _in_a_componentRef, modelica_metatype _in_a_subscriptLst, modelica_metatype _in_a_ident)
{
modelica_integer tmp1;
modelica_metatype _out_txt = NULL;
tmp1 = mmc_unbox_integer(_in_mArg);
_out_txt = omc_DAEDumpTpl_fun__136(threadData, _in_txt, tmp1, _in_a_componentRef, _in_a_subscriptLst, _in_a_ident);
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpStartOriginAttrOpt(threadData_t *threadData, modelica_metatype _txt, modelica_metatype _a_startOrigin)
{
modelica_metatype _out_txt = NULL;
modelica_boolean _ret_0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_ret_0 = omc_Config_showStartOrigin(threadData);
_out_txt = omc_DAEDumpTpl_fun__134(threadData, _txt, _ret_0, _a_startOrigin);
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__134(threadData_t *threadData, modelica_metatype _in_txt, modelica_boolean _in_mArg, modelica_metatype _in_a_startOrigin)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_boolean tmp4_2;modelica_metatype tmp4_3;
tmp4_1 = _in_txt;
tmp4_2 = _in_mArg;
tmp4_3 = _in_a_startOrigin;
{
modelica_metatype _txt = NULL;
modelica_metatype _a_startOrigin = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (0 != tmp4_2) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_a_startOrigin = tmp4_3;
tmpMeta1 = omc_DAEDumpTpl_dumpExpAttrOpt(threadData, _txt, _a_startOrigin, _OMC_LIT123);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDumpTpl_fun__134(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_mArg, modelica_metatype _in_a_startOrigin)
{
modelica_integer tmp1;
modelica_metatype _out_txt = NULL;
tmp1 = mmc_unbox_integer(_in_mArg);
_out_txt = omc_DAEDumpTpl_fun__134(threadData, _in_txt, tmp1, _in_a_startOrigin);
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpDistribution(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_distribution)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_distribution;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_paramNames = NULL;
modelica_metatype _i_params = NULL;
modelica_metatype _i_name = NULL;
modelica_metatype _l_paramnames__str = NULL;
modelica_metatype _l_params__str = NULL;
modelica_metatype _l_name__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
_txt = tmp4_1;
_i_name = tmpMeta6;
_i_params = tmpMeta7;
_i_paramNames = tmpMeta8;
_l_name__str = omc_DAEDumpTpl_dumpExp(threadData, _OMC_LIT9, _i_name);
_l_params__str = omc_DAEDumpTpl_dumpExp(threadData, _OMC_LIT9, _i_params);
_l_paramnames__str = omc_DAEDumpTpl_dumpExp(threadData, _OMC_LIT9, _i_paramNames);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT125);
_txt = omc_Tpl_writeText(threadData, _txt, _l_name__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT127);
_txt = omc_Tpl_writeText(threadData, _txt, _l_params__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT129);
_txt = omc_Tpl_writeText(threadData, _txt, _l_paramnames__str);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT24);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpDistributionAttr(threadData_t *threadData, modelica_metatype _txt, modelica_metatype _a_distribution)
{
modelica_metatype _out_txt = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_out_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT131);
_out_txt = omc_DAEDumpTpl_dumpDistribution(threadData, _out_txt, _a_distribution);
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpDistributionAttrOpt(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_distribution)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_distribution;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_d = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (optionNone(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1));
_i_d = tmpMeta6;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpDistributionAttr(threadData, _txt, _i_d);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpUncertainty(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_uncertainty)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_uncertainty;
{
modelica_metatype _txt = NULL;
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_2))) {
case 3: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,0) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT133);
goto tmp3_done;
}
case 4: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,0) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT135);
goto tmp3_done;
}
case 5: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,2,0) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT137);
goto tmp3_done;
}
default:
tmp3_default: OMC_LABEL_UNUSED; {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpUncertaintyAttr(threadData_t *threadData, modelica_metatype _txt, modelica_metatype _a_uncertainty)
{
modelica_metatype _out_txt = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_out_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT139);
_out_txt = omc_DAEDumpTpl_dumpUncertainty(threadData, _out_txt, _a_uncertainty);
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpUncertaintyAttrOpt(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_uncertainty)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_uncertainty;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_u = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (optionNone(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1));
_i_u = tmpMeta6;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpUncertaintyAttr(threadData, _txt, _i_u);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpStateSelect(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_stateSelect)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_stateSelect;
{
modelica_metatype _txt = NULL;
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_2))) {
case 3: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,0) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT141);
goto tmp3_done;
}
case 4: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,0) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT143);
goto tmp3_done;
}
case 5: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,2,0) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT145);
goto tmp3_done;
}
case 6: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,3,0) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT147);
goto tmp3_done;
}
case 7: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,4,0) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT149);
goto tmp3_done;
}
default:
tmp3_default: OMC_LABEL_UNUSED; {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpStateSelectAttr(threadData_t *threadData, modelica_metatype _txt, modelica_metatype _a_stateSelect)
{
modelica_metatype _out_txt = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_out_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT151);
_out_txt = omc_DAEDumpTpl_dumpStateSelect(threadData, _out_txt, _a_stateSelect);
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpStateSelectAttrOpt(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_stateSelect)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_stateSelect;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_ss = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (optionNone(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1));
_i_ss = tmpMeta6;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpStateSelectAttr(threadData, _txt, _i_ss);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpExpAttrOpt(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_exp, modelica_string _in_a_attr)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;modelica_string tmp4_3;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_exp;
tmp4_3 = _in_a_attr;
{
modelica_metatype _txt = NULL;
modelica_string _a_attr = NULL;
modelica_metatype _i_e = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (optionNone(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1));
_i_e = tmpMeta6;
_txt = tmp4_1;
_a_attr = tmp4_3;
_txt = omc_Tpl_writeStr(threadData, _txt, _a_attr);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT85);
tmpMeta1 = omc_DAEDumpTpl_dumpExp(threadData, _txt, _i_e);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpVariableAttributes(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_variableAttributesOption)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_variableAttributesOption;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_startOrigin = NULL;
modelica_metatype _i_distributionOption = NULL;
modelica_metatype _i_uncertainOption = NULL;
modelica_metatype _i_stateSelectOption = NULL;
modelica_metatype _i_nominal = NULL;
modelica_metatype _i_fixed = NULL;
modelica_metatype _i_start = NULL;
modelica_metatype _i_max = NULL;
modelica_metatype _i_min = NULL;
modelica_metatype _i_displayUnit = NULL;
modelica_metatype _i_unit = NULL;
modelica_metatype _i_quantity = NULL;
modelica_metatype _l_attrs__str = NULL;
modelica_metatype _l_so__str = NULL;
modelica_metatype _l_dist__str = NULL;
modelica_metatype _l_uncert__str = NULL;
modelica_metatype _l_statesel__str = NULL;
modelica_metatype _l_nominal__str = NULL;
modelica_metatype _l_fixed__str = NULL;
modelica_metatype _l_start__str = NULL;
modelica_metatype _l_max__str = NULL;
modelica_metatype _l_min__str = NULL;
modelica_metatype _l_displayunit__str = NULL;
modelica_metatype _l_unit__str = NULL;
modelica_metatype _l_quantity__str = NULL;
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_2))) {
case 3: {
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
modelica_metatype tmpMeta16;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,15) == 0) goto tmp3_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5));
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 6));
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 7));
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 8));
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 9));
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 10));
tmpMeta14 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 11));
tmpMeta15 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 12));
tmpMeta16 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 16));
_i_quantity = tmpMeta5;
_i_unit = tmpMeta6;
_i_displayUnit = tmpMeta7;
_i_min = tmpMeta8;
_i_max = tmpMeta9;
_i_start = tmpMeta10;
_i_fixed = tmpMeta11;
_i_nominal = tmpMeta12;
_i_stateSelectOption = tmpMeta13;
_i_uncertainOption = tmpMeta14;
_i_distributionOption = tmpMeta15;
_i_startOrigin = tmpMeta16;
_txt = tmp4_1;
_l_quantity__str = omc_DAEDumpTpl_dumpExpAttrOpt(threadData, _OMC_LIT9, _i_quantity, _OMC_LIT152);
_l_unit__str = omc_DAEDumpTpl_dumpExpAttrOpt(threadData, _OMC_LIT9, _i_unit, _OMC_LIT153);
_l_displayunit__str = omc_DAEDumpTpl_dumpExpAttrOpt(threadData, _OMC_LIT9, _i_displayUnit, _OMC_LIT154);
_l_min__str = omc_DAEDumpTpl_dumpExpAttrOpt(threadData, _OMC_LIT9, _i_min, _OMC_LIT155);
_l_max__str = omc_DAEDumpTpl_dumpExpAttrOpt(threadData, _OMC_LIT9, _i_max, _OMC_LIT156);
_l_start__str = omc_DAEDumpTpl_dumpExpAttrOpt(threadData, _OMC_LIT9, _i_start, _OMC_LIT157);
_l_fixed__str = omc_DAEDumpTpl_dumpExpAttrOpt(threadData, _OMC_LIT9, _i_fixed, _OMC_LIT158);
_l_nominal__str = omc_DAEDumpTpl_dumpExpAttrOpt(threadData, _OMC_LIT9, _i_nominal, _OMC_LIT159);
_l_statesel__str = omc_DAEDumpTpl_dumpStateSelectAttrOpt(threadData, _OMC_LIT9, _i_stateSelectOption);
_l_uncert__str = omc_DAEDumpTpl_dumpUncertaintyAttrOpt(threadData, _OMC_LIT9, _i_uncertainOption);
_l_dist__str = omc_DAEDumpTpl_dumpDistributionAttrOpt(threadData, _OMC_LIT9, _i_distributionOption);
_l_so__str = omc_DAEDumpTpl_dumpStartOriginAttrOpt(threadData, _OMC_LIT9, _i_startOrigin);
_l_attrs__str = omc_Tpl_pushIter(threadData, _OMC_LIT9, _OMC_LIT60);
_l_attrs__str = omc_DAEDumpTpl_smf__85(threadData, _l_attrs__str, _l_quantity__str);
_l_attrs__str = omc_DAEDumpTpl_smf__86(threadData, _l_attrs__str, _l_unit__str);
_l_attrs__str = omc_DAEDumpTpl_smf__87(threadData, _l_attrs__str, _l_displayunit__str);
_l_attrs__str = omc_DAEDumpTpl_smf__88(threadData, _l_attrs__str, _l_min__str);
_l_attrs__str = omc_DAEDumpTpl_smf__89(threadData, _l_attrs__str, _l_max__str);
_l_attrs__str = omc_DAEDumpTpl_smf__90(threadData, _l_attrs__str, _l_start__str);
_l_attrs__str = omc_DAEDumpTpl_smf__91(threadData, _l_attrs__str, _l_fixed__str);
_l_attrs__str = omc_DAEDumpTpl_smf__92(threadData, _l_attrs__str, _l_nominal__str);
_l_attrs__str = omc_DAEDumpTpl_smf__93(threadData, _l_attrs__str, _l_statesel__str);
_l_attrs__str = omc_DAEDumpTpl_smf__94(threadData, _l_attrs__str, _l_uncert__str);
_l_attrs__str = omc_DAEDumpTpl_smf__95(threadData, _l_attrs__str, _l_dist__str);
_l_attrs__str = omc_DAEDumpTpl_smf__96(threadData, _l_attrs__str, _l_so__str);
_l_attrs__str = omc_Tpl_popIter(threadData, _l_attrs__str);
tmpMeta1 = omc_DAEDumpTpl_fun__97(threadData, _txt, _l_attrs__str);
goto tmp3_done;
}
case 4: {
modelica_metatype tmpMeta17;
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
modelica_metatype tmpMeta20;
modelica_metatype tmpMeta21;
modelica_metatype tmpMeta22;
modelica_metatype tmpMeta23;
modelica_metatype tmpMeta24;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,11) == 0) goto tmp3_end;
tmpMeta17 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta18 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta19 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
tmpMeta20 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5));
tmpMeta21 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 6));
tmpMeta22 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 7));
tmpMeta23 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 8));
tmpMeta24 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 12));
_i_quantity = tmpMeta17;
_i_min = tmpMeta18;
_i_max = tmpMeta19;
_i_start = tmpMeta20;
_i_fixed = tmpMeta21;
_i_uncertainOption = tmpMeta22;
_i_distributionOption = tmpMeta23;
_i_startOrigin = tmpMeta24;
_txt = tmp4_1;
_l_quantity__str = omc_DAEDumpTpl_dumpExpAttrOpt(threadData, _OMC_LIT9, _i_quantity, _OMC_LIT152);
_l_min__str = omc_DAEDumpTpl_dumpExpAttrOpt(threadData, _OMC_LIT9, _i_min, _OMC_LIT155);
_l_max__str = omc_DAEDumpTpl_dumpExpAttrOpt(threadData, _OMC_LIT9, _i_max, _OMC_LIT156);
_l_start__str = omc_DAEDumpTpl_dumpExpAttrOpt(threadData, _OMC_LIT9, _i_start, _OMC_LIT157);
_l_fixed__str = omc_DAEDumpTpl_dumpExpAttrOpt(threadData, _OMC_LIT9, _i_fixed, _OMC_LIT158);
_l_uncert__str = omc_DAEDumpTpl_dumpUncertaintyAttrOpt(threadData, _OMC_LIT9, _i_uncertainOption);
_l_dist__str = omc_DAEDumpTpl_dumpDistributionAttrOpt(threadData, _OMC_LIT9, _i_distributionOption);
_l_so__str = omc_DAEDumpTpl_dumpStartOriginAttrOpt(threadData, _OMC_LIT9, _i_startOrigin);
_l_attrs__str = omc_Tpl_pushIter(threadData, _OMC_LIT9, _OMC_LIT60);
_l_attrs__str = omc_DAEDumpTpl_smf__98(threadData, _l_attrs__str, _l_quantity__str);
_l_attrs__str = omc_DAEDumpTpl_smf__99(threadData, _l_attrs__str, _l_min__str);
_l_attrs__str = omc_DAEDumpTpl_smf__100(threadData, _l_attrs__str, _l_max__str);
_l_attrs__str = omc_DAEDumpTpl_smf__101(threadData, _l_attrs__str, _l_start__str);
_l_attrs__str = omc_DAEDumpTpl_smf__102(threadData, _l_attrs__str, _l_fixed__str);
_l_attrs__str = omc_DAEDumpTpl_smf__103(threadData, _l_attrs__str, _l_uncert__str);
_l_attrs__str = omc_DAEDumpTpl_smf__104(threadData, _l_attrs__str, _l_dist__str);
_l_attrs__str = omc_DAEDumpTpl_smf__105(threadData, _l_attrs__str, _l_so__str);
_l_attrs__str = omc_Tpl_popIter(threadData, _l_attrs__str);
tmpMeta1 = omc_DAEDumpTpl_fun__106(threadData, _txt, _l_attrs__str);
goto tmp3_done;
}
case 5: {
modelica_metatype tmpMeta25;
modelica_metatype tmpMeta26;
modelica_metatype tmpMeta27;
modelica_metatype tmpMeta28;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,2,7) == 0) goto tmp3_end;
tmpMeta25 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta26 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta27 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
tmpMeta28 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 8));
_i_quantity = tmpMeta25;
_i_start = tmpMeta26;
_i_fixed = tmpMeta27;
_i_startOrigin = tmpMeta28;
_txt = tmp4_1;
_l_quantity__str = omc_DAEDumpTpl_dumpExpAttrOpt(threadData, _OMC_LIT9, _i_quantity, _OMC_LIT152);
_l_start__str = omc_DAEDumpTpl_dumpExpAttrOpt(threadData, _OMC_LIT9, _i_start, _OMC_LIT157);
_l_fixed__str = omc_DAEDumpTpl_dumpExpAttrOpt(threadData, _OMC_LIT9, _i_fixed, _OMC_LIT158);
_l_so__str = omc_DAEDumpTpl_dumpStartOriginAttrOpt(threadData, _OMC_LIT9, _i_startOrigin);
_l_attrs__str = omc_Tpl_pushIter(threadData, _OMC_LIT9, _OMC_LIT60);
_l_attrs__str = omc_DAEDumpTpl_smf__107(threadData, _l_attrs__str, _l_quantity__str);
_l_attrs__str = omc_DAEDumpTpl_smf__108(threadData, _l_attrs__str, _l_start__str);
_l_attrs__str = omc_DAEDumpTpl_smf__109(threadData, _l_attrs__str, _l_fixed__str);
_l_attrs__str = omc_DAEDumpTpl_smf__110(threadData, _l_attrs__str, _l_so__str);
_l_attrs__str = omc_Tpl_popIter(threadData, _l_attrs__str);
tmpMeta1 = omc_DAEDumpTpl_fun__111(threadData, _txt, _l_attrs__str);
goto tmp3_done;
}
case 7: {
modelica_metatype tmpMeta29;
modelica_metatype tmpMeta30;
modelica_metatype tmpMeta31;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,4,7) == 0) goto tmp3_end;
tmpMeta29 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta30 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta31 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 8));
_i_quantity = tmpMeta29;
_i_start = tmpMeta30;
_i_startOrigin = tmpMeta31;
_txt = tmp4_1;
_l_quantity__str = omc_DAEDumpTpl_dumpExpAttrOpt(threadData, _OMC_LIT9, _i_quantity, _OMC_LIT152);
_l_start__str = omc_DAEDumpTpl_dumpExpAttrOpt(threadData, _OMC_LIT9, _i_start, _OMC_LIT157);
_l_so__str = omc_DAEDumpTpl_dumpStartOriginAttrOpt(threadData, _OMC_LIT9, _i_startOrigin);
_l_attrs__str = omc_Tpl_pushIter(threadData, _OMC_LIT9, _OMC_LIT60);
_l_attrs__str = omc_DAEDumpTpl_smf__112(threadData, _l_attrs__str, _l_quantity__str);
_l_attrs__str = omc_DAEDumpTpl_smf__113(threadData, _l_attrs__str, _l_start__str);
_l_attrs__str = omc_DAEDumpTpl_smf__114(threadData, _l_attrs__str, _l_so__str);
_l_attrs__str = omc_Tpl_popIter(threadData, _l_attrs__str);
tmpMeta1 = omc_DAEDumpTpl_fun__115(threadData, _txt, _l_attrs__str);
goto tmp3_done;
}
case 8: {
modelica_metatype tmpMeta32;
modelica_metatype tmpMeta33;
modelica_metatype tmpMeta34;
modelica_metatype tmpMeta35;
modelica_metatype tmpMeta36;
modelica_metatype tmpMeta37;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,5,9) == 0) goto tmp3_end;
tmpMeta32 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta33 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta34 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
tmpMeta35 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5));
tmpMeta36 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 6));
tmpMeta37 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 10));
_i_quantity = tmpMeta32;
_i_min = tmpMeta33;
_i_max = tmpMeta34;
_i_start = tmpMeta35;
_i_fixed = tmpMeta36;
_i_startOrigin = tmpMeta37;
_txt = tmp4_1;
_l_quantity__str = omc_DAEDumpTpl_dumpExpAttrOpt(threadData, _OMC_LIT9, _i_quantity, _OMC_LIT152);
_l_min__str = omc_DAEDumpTpl_dumpExpAttrOpt(threadData, _OMC_LIT9, _i_min, _OMC_LIT155);
_l_max__str = omc_DAEDumpTpl_dumpExpAttrOpt(threadData, _OMC_LIT9, _i_max, _OMC_LIT156);
_l_start__str = omc_DAEDumpTpl_dumpExpAttrOpt(threadData, _OMC_LIT9, _i_start, _OMC_LIT157);
_l_fixed__str = omc_DAEDumpTpl_dumpExpAttrOpt(threadData, _OMC_LIT9, _i_fixed, _OMC_LIT158);
_l_so__str = omc_DAEDumpTpl_dumpStartOriginAttrOpt(threadData, _OMC_LIT9, _i_startOrigin);
_l_attrs__str = omc_Tpl_pushIter(threadData, _OMC_LIT9, _OMC_LIT60);
_l_attrs__str = omc_DAEDumpTpl_smf__116(threadData, _l_attrs__str, _l_quantity__str);
_l_attrs__str = omc_DAEDumpTpl_smf__117(threadData, _l_attrs__str, _l_min__str);
_l_attrs__str = omc_DAEDumpTpl_smf__118(threadData, _l_attrs__str, _l_max__str);
_l_attrs__str = omc_DAEDumpTpl_smf__119(threadData, _l_attrs__str, _l_start__str);
_l_attrs__str = omc_DAEDumpTpl_smf__120(threadData, _l_attrs__str, _l_fixed__str);
_l_attrs__str = omc_DAEDumpTpl_smf__121(threadData, _l_attrs__str, _l_so__str);
_l_attrs__str = omc_Tpl_popIter(threadData, _l_attrs__str);
tmpMeta1 = omc_DAEDumpTpl_fun__122(threadData, _txt, _l_attrs__str);
goto tmp3_done;
}
default:
tmp3_default: OMC_LABEL_UNUSED; {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__122(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_attrs__str)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_attrs__str;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_attrs__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
if (!listEmpty(tmpMeta6)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_i_attrs__str = tmp4_2;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT62);
_txt = omc_Tpl_writeText(threadData, _txt, _i_attrs__str);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT24);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__121(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__120(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__119(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__118(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__117(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__116(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__115(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_attrs__str)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_attrs__str;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_attrs__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
if (!listEmpty(tmpMeta6)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_i_attrs__str = tmp4_2;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT62);
_txt = omc_Tpl_writeText(threadData, _txt, _i_attrs__str);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT24);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__114(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__113(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__112(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__111(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_attrs__str)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_attrs__str;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_attrs__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
if (!listEmpty(tmpMeta6)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_i_attrs__str = tmp4_2;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT62);
_txt = omc_Tpl_writeText(threadData, _txt, _i_attrs__str);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT24);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__110(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__109(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__108(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__107(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__106(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_attrs__str)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_attrs__str;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_attrs__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
if (!listEmpty(tmpMeta6)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_i_attrs__str = tmp4_2;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT62);
_txt = omc_Tpl_writeText(threadData, _txt, _i_attrs__str);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT24);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__105(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__104(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__103(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__102(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__101(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__100(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__99(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__98(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__97(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_attrs__str)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_attrs__str;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_attrs__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
if (!listEmpty(tmpMeta6)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_i_attrs__str = tmp4_2;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT62);
_txt = omc_Tpl_writeText(threadData, _txt, _i_attrs__str);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT24);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__96(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__95(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__94(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__93(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__92(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__91(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__90(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__89(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__88(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__87(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__86(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_smf__85(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_it)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_it;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_txt = tmp4_1;
_i_it = tmp4_2;
_txt = omc_Tpl_writeText(threadData, _txt, _i_it);
tmpMeta1 = omc_Tpl_nextIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpDimension(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_dim)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_dim;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_exp = NULL;
modelica_metatype _i_enumTypeName = NULL;
modelica_integer _i_integer;
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_2))) {
case 3: {
modelica_metatype tmpMeta5;
modelica_integer tmp6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,1) == 0) goto tmp3_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmp6 = mmc_unbox_integer(tmpMeta5);
_i_integer = tmp6;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeStr(threadData, _txt, intString(_i_integer));
goto tmp3_done;
}
case 5: {
modelica_metatype tmpMeta7;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,2,3) == 0) goto tmp3_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_enumTypeName = tmpMeta7;
_txt = tmp4_1;
tmpMeta1 = omc_AbsynDumpTpl_dumpPath(threadData, _txt, _i_enumTypeName);
goto tmp3_done;
}
case 6: {
modelica_metatype tmpMeta8;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,3,1) == 0) goto tmp3_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_exp = tmpMeta8;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpExp(threadData, _txt, _i_exp);
goto tmp3_done;
}
case 7: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,4,0) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT93);
goto tmp3_done;
}
default:
tmp3_default: OMC_LABEL_UNUSED; {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpDimensions(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_dims)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_dims;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_dims = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_i_dims = tmp4_2;
_txt = omc_Tpl_pushIter(threadData, _txt, _OMC_LIT60);
_txt = omc_DAEDumpTpl_lm__82(threadData, _txt, _i_dims);
tmpMeta1 = omc_Tpl_popIter(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__82(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_dim = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_dim = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpDimension(threadData, _txt, _i_dim);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpVarAttribute(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_var)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_var;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_e = NULL;
modelica_string _i_name = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta7,1,4) == 0) goto tmp3_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta7), 2));
_i_name = tmpMeta6;
_i_e = tmpMeta8;
_txt = tmp4_1;
_txt = omc_Tpl_writeStr(threadData, _txt, _i_name);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT85);
tmpMeta1 = omc_DAEDumpTpl_dumpExp(threadData, _txt, _i_e);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpVarAttributes(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_literalVarLst)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_literalVarLst;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_literalVarLst = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_i_literalVarLst = tmp4_2;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT62);
_txt = omc_Tpl_pushIter(threadData, _txt, _OMC_LIT60);
_txt = omc_DAEDumpTpl_lm__79(threadData, _txt, _i_literalVarLst);
_txt = omc_Tpl_popIter(threadData, _txt);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT24);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__79(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_var = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_var = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpVarAttribute(threadData, _txt, _i_var);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpParallelism(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_p)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_p;
{
modelica_metatype _txt = NULL;
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_2))) {
case 3: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,0) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT161);
goto tmp3_done;
}
case 4: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,0) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT163);
goto tmp3_done;
}
default:
tmp3_default: OMC_LABEL_UNUSED; {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpConst(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_c)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_c;
{
modelica_metatype _txt = NULL;
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_2))) {
case 4: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,0) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT165);
goto tmp3_done;
}
case 3: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,0) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT167);
goto tmp3_done;
}
default:
tmp3_default: OMC_LABEL_UNUSED; {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpRecordType(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_ty)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_ty;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_funcResultType = NULL;
modelica_metatype _i_varLst = NULL;
modelica_metatype _i_complexClassType = NULL;
modelica_metatype _l_vars = NULL;
modelica_metatype _ret_1 = NULL;
modelica_metatype _l_name = NULL;
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_2))) {
case 12: {
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,9,3) == 0) goto tmp3_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
_i_complexClassType = tmpMeta5;
_i_varLst = tmpMeta6;
_txt = tmp4_1;
_ret_1 = omc_ClassInf_getStateName(threadData, _i_complexClassType);
_l_name = omc_AbsynDumpTpl_dumpPath(threadData, _OMC_LIT9, _ret_1);
_l_vars = omc_DAEDumpTpl_dumpRecordVars(threadData, _OMC_LIT9, _i_varLst);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT169);
_txt = omc_Tpl_writeText(threadData, _txt, _l_name);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT16);
_txt = omc_Tpl_writeText(threadData, _txt, _l_vars);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_popBlock(threadData, _txt);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT18);
_txt = omc_Tpl_writeText(threadData, _txt, _l_name);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT15);
goto tmp3_done;
}
case 14: {
modelica_metatype tmpMeta7;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,11,4) == 0) goto tmp3_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
_i_funcResultType = tmpMeta7;
_txt = tmp4_1;
_in_txt = _txt;
_in_a_ty = _i_funcResultType;
goto _tailrecursive;
goto tmp3_done;
}
default:
tmp3_default: OMC_LABEL_UNUSED; {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpFuncArg(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_arg)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_arg;
{
modelica_metatype _txt = NULL;
modelica_string _i_name = NULL;
modelica_metatype _i_defaultBinding = NULL;
modelica_metatype _i_par = NULL;
modelica_metatype _i_const = NULL;
modelica_metatype _i_ty = NULL;
modelica_metatype _l_binding__str = NULL;
modelica_metatype _l_p__str = NULL;
modelica_metatype _l_c__str = NULL;
modelica_metatype _l_ty__str = NULL;
modelica_metatype _l_attr = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5));
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 6));
_txt = tmp4_1;
_i_name = tmpMeta6;
_i_ty = tmpMeta7;
_i_const = tmpMeta8;
_i_par = tmpMeta9;
_i_defaultBinding = tmpMeta10;
_l_attr = _OMC_LIT9;
_l_ty__str = omc_DAEDumpTpl_dumpType(threadData, _OMC_LIT9, _i_ty, _l_attr ,&_l_attr);
_l_c__str = omc_DAEDumpTpl_dumpConst(threadData, _OMC_LIT9, _i_const);
_l_p__str = omc_DAEDumpTpl_dumpParallelism(threadData, _OMC_LIT9, _i_par);
_l_binding__str = omc_DAEDumpTpl_fun__74(threadData, _OMC_LIT9, _i_defaultBinding);
_txt = omc_Tpl_writeText(threadData, _txt, _l_ty__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT11);
_txt = omc_Tpl_writeText(threadData, _txt, _l_c__str);
_txt = omc_Tpl_writeText(threadData, _txt, _l_p__str);
_txt = omc_Tpl_writeStr(threadData, _txt, _i_name);
tmpMeta1 = omc_Tpl_writeText(threadData, _txt, _l_binding__str);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__74(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_defaultBinding)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_defaultBinding;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_bexp = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (optionNone(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1));
_i_bexp = tmpMeta6;
_txt = tmp4_1;
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT170);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT172);
_txt = omc_DAEDumpTpl_dumpExp(threadData, _txt, _i_bexp);
tmpMeta1 = omc_Tpl_popBlock(threadData, _txt);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpFunctionType(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_ty)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_ty;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_funcResultType = NULL;
modelica_metatype _i_path = NULL;
modelica_metatype _i_funcArg = NULL;
modelica_metatype _l_res__str = NULL;
modelica_metatype _l_attr = NULL;
modelica_metatype _l_src__str = NULL;
modelica_metatype _l_args__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,11,4) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5));
_i_funcArg = tmpMeta6;
_i_funcResultType = tmpMeta7;
_i_path = tmpMeta8;
_txt = tmp4_1;
_l_args__str = omc_Tpl_pushIter(threadData, _OMC_LIT9, _OMC_LIT60);
_l_args__str = omc_DAEDumpTpl_lm__72(threadData, _l_args__str, _i_funcArg);
_l_args__str = omc_Tpl_popIter(threadData, _l_args__str);
_l_src__str = omc_AbsynDumpTpl_dumpPath(threadData, _OMC_LIT9, _i_path);
_l_attr = _OMC_LIT9;
_l_res__str = omc_DAEDumpTpl_dumpType(threadData, _OMC_LIT9, _i_funcResultType, _l_attr ,&_l_attr);
_txt = omc_Tpl_writeText(threadData, _txt, _l_src__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT174);
_txt = omc_Tpl_writeText(threadData, _txt, _l_args__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT176);
tmpMeta1 = omc_Tpl_writeText(threadData, _txt, _l_res__str);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__72(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_arg = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_arg = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpFuncArg(threadData, _txt, _i_arg);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpTupleType(threadData_t *threadData, modelica_metatype _txt, modelica_metatype _a_tys, modelica_string _a_ty__begin, modelica_string _a_ty__end)
{
modelica_metatype _out_txt = NULL;
modelica_metatype _l_attr = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_l_attr = _OMC_LIT9;
_out_txt = omc_Tpl_writeStr(threadData, _txt, _a_ty__begin);
_out_txt = omc_Tpl_pushIter(threadData, _out_txt, _OMC_LIT60);
_out_txt = omc_DAEDumpTpl_lm__70(threadData, _out_txt, _a_tys, _l_attr ,&_l_attr);
_out_txt = omc_Tpl_popIter(threadData, _out_txt);
_out_txt = omc_Tpl_writeStr(threadData, _out_txt, _a_ty__end);
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__70(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items, modelica_metatype _in_a_attr, modelica_metatype *out_out_a_attr)
{
modelica_metatype _out_txt = NULL;
modelica_metatype _out_a_attr = NULL;
modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;modelica_metatype tmp4_3;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
tmp4_3 = _in_a_attr;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _a_attr = NULL;
modelica_metatype _i_ty = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
_a_attr = tmp4_3;
tmpMeta[0+0] = _txt;
tmpMeta[0+1] = _a_attr;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_ty = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_a_attr = tmp4_3;
_txt = omc_DAEDumpTpl_dumpType(threadData, _txt, _i_ty, _a_attr ,&_a_attr);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
_in_a_attr = _a_attr;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta[0+0];
_out_a_attr = tmpMeta[0+1];
_return: OMC_LABEL_UNUSED
if (out_out_a_attr) { *out_out_a_attr = _out_a_attr; }
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpArrayType(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_ty, modelica_string _in_a_dims__accum, modelica_metatype _in_a_attributes, modelica_metatype *out_out_a_attributes)
{
modelica_metatype _out_txt = NULL;
modelica_metatype _out_a_attributes = NULL;
modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;modelica_string tmp4_3;modelica_metatype tmp4_4;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_ty;
tmp4_3 = _in_a_dims__accum;
tmp4_4 = _in_a_attributes;
{
modelica_metatype _txt = NULL;
modelica_string _a_dims__accum = NULL;
modelica_metatype _a_attributes = NULL;
modelica_metatype _i_ty = NULL;
modelica_metatype _i_dims = NULL;
modelica_metatype _l_ty__str = NULL;
modelica_metatype _l_dims__accum__str = NULL;
modelica_metatype _l_dims__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,6,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
_i_ty = tmpMeta6;
_i_dims = tmpMeta7;
_txt = tmp4_1;
_a_dims__accum = tmp4_3;
_a_attributes = tmp4_4;
_l_dims__str = omc_DAEDumpTpl_dumpDimensions(threadData, _OMC_LIT9, _i_dims);
_l_dims__accum__str = omc_DAEDumpTpl_fun__67(threadData, _OMC_LIT9, _a_dims__accum, _l_dims__str);
_in_txt = _txt;
_in_a_ty = _i_ty;
_in_a_dims__accum = omc_Tpl_textString(threadData, _l_dims__accum__str);
_in_a_attributes = _a_attributes;
goto _tailrecursive;
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_i_ty = tmp4_2;
_a_dims__accum = tmp4_3;
_a_attributes = tmp4_4;
_l_ty__str = omc_DAEDumpTpl_dumpType(threadData, _OMC_LIT9, _i_ty, _a_attributes ,&_a_attributes);
_l_dims__str = omc_DAEDumpTpl_fun__68(threadData, _OMC_LIT9, _a_dims__accum);
_txt = omc_Tpl_writeText(threadData, _txt, _l_ty__str);
_txt = omc_Tpl_writeText(threadData, _txt, _l_dims__str);
tmpMeta[0+0] = _txt;
tmpMeta[0+1] = _a_attributes;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta[0+0];
_out_a_attributes = tmpMeta[0+1];
_return: OMC_LABEL_UNUSED
if (out_out_a_attributes) { *out_out_a_attributes = _out_a_attributes; }
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__68(threadData_t *threadData, modelica_metatype _in_txt, modelica_string _in_a_dims__accum)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_string tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_dims__accum;
{
modelica_metatype _txt = NULL;
modelica_string _i_dims__accum = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (0 != MMC_STRLEN(tmp4_2) || strcmp(MMC_STRINGDATA(_OMC_LIT177), MMC_STRINGDATA(tmp4_2)) != 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_i_dims__accum = tmp4_2;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT109);
_txt = omc_Tpl_writeStr(threadData, _txt, _i_dims__accum);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT111);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__67(threadData_t *threadData, modelica_metatype _in_txt, modelica_string _in_a_dims__accum, modelica_metatype _in_a_dims__str)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_string tmp4_2;modelica_metatype tmp4_3;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_dims__accum;
tmp4_3 = _in_a_dims__str;
{
modelica_metatype _txt = NULL;
modelica_metatype _a_dims__str = NULL;
modelica_string _i_dims__accum = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (0 != MMC_STRLEN(tmp4_2) || strcmp(MMC_STRINGDATA(_OMC_LIT177), MMC_STRINGDATA(tmp4_2)) != 0) goto tmp3_end;
_txt = tmp4_1;
_a_dims__str = tmp4_3;
tmpMeta1 = omc_Tpl_writeText(threadData, _txt, _a_dims__str);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_i_dims__accum = tmp4_2;
_a_dims__str = tmp4_3;
_txt = omc_Tpl_writeStr(threadData, _txt, _i_dims__accum);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT22);
tmpMeta1 = omc_Tpl_writeText(threadData, _txt, _a_dims__str);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpType(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_ty, modelica_metatype _in_a_attributes, modelica_metatype *out_out_a_attributes)
{
modelica_metatype _out_txt = NULL;
modelica_metatype _out_a_attributes = NULL;
modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;modelica_metatype tmp4_3;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_ty;
tmp4_3 = _in_a_attributes;
{
modelica_metatype _txt = NULL;
modelica_metatype _a_attributes = NULL;
modelica_metatype _i_path = NULL;
modelica_string _i_name = NULL;
modelica_metatype _i_types = NULL;
modelica_metatype _i_complexType = NULL;
modelica_metatype _i_complexClassType = NULL;
modelica_metatype _i_rname = NULL;
modelica_metatype _i_dims = NULL;
modelica_metatype _i_ty = NULL;
modelica_metatype _i_names = NULL;
modelica_metatype _i_varLst = NULL;
modelica_metatype _ret_2 = NULL;
modelica_metatype _txt_1 = NULL;
modelica_metatype _l_lit__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 26; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,1) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_varLst = tmpMeta6;
_txt = tmp4_1;
_a_attributes = tmp4_3;
_a_attributes = omc_DAEDumpTpl_dumpVarAttributes(threadData, _a_attributes, _i_varLst);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT179);
tmpMeta[0+0] = _txt;
tmpMeta[0+1] = _a_attributes;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta7;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,1) == 0) goto tmp3_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_varLst = tmpMeta7;
_txt = tmp4_1;
_a_attributes = tmp4_3;
_a_attributes = omc_DAEDumpTpl_dumpVarAttributes(threadData, _a_attributes, _i_varLst);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT181);
tmpMeta[0+0] = _txt;
tmpMeta[0+1] = _a_attributes;
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta8;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,2,1) == 0) goto tmp3_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_varLst = tmpMeta8;
_txt = tmp4_1;
_a_attributes = tmp4_3;
_a_attributes = omc_DAEDumpTpl_dumpVarAttributes(threadData, _a_attributes, _i_varLst);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT183);
tmpMeta[0+0] = _txt;
tmpMeta[0+1] = _a_attributes;
goto tmp3_done;
}
case 3: {
modelica_metatype tmpMeta9;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,3,1) == 0) goto tmp3_end;
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_varLst = tmpMeta9;
_txt = tmp4_1;
_a_attributes = tmp4_3;
_a_attributes = omc_DAEDumpTpl_dumpVarAttributes(threadData, _a_attributes, _i_varLst);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT185);
tmpMeta[0+0] = _txt;
tmpMeta[0+1] = _a_attributes;
goto tmp3_done;
}
case 4: {
modelica_metatype tmpMeta10;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,4,1) == 0) goto tmp3_end;
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_varLst = tmpMeta10;
_txt = tmp4_1;
_a_attributes = tmp4_3;
_a_attributes = omc_DAEDumpTpl_dumpVarAttributes(threadData, _a_attributes, _i_varLst);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT187);
tmpMeta[0+0] = _txt;
tmpMeta[0+1] = _a_attributes;
goto tmp3_done;
}
case 5: {
modelica_metatype tmpMeta11;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,5,5) == 0) goto tmp3_end;
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
_i_names = tmpMeta11;
_txt = tmp4_1;
_a_attributes = tmp4_3;
_l_lit__str = omc_Tpl_pushIter(threadData, _OMC_LIT9, _OMC_LIT60);
_l_lit__str = omc_DAEDumpTpl_lm__65(threadData, _l_lit__str, _i_names);
_l_lit__str = omc_Tpl_popIter(threadData, _l_lit__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT189);
_txt = omc_Tpl_writeText(threadData, _txt, _l_lit__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT24);
tmpMeta[0+0] = _txt;
tmpMeta[0+1] = _a_attributes;
goto tmp3_done;
}
case 6: {
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,6,2) == 0) goto tmp3_end;
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
_i_ty = tmpMeta12;
_i_dims = tmpMeta13;
_txt = tmp4_1;
_a_attributes = tmp4_3;
_txt_1 = omc_DAEDumpTpl_dumpDimensions(threadData, _OMC_LIT9, _i_dims);
tmpMeta[0+0] = omc_DAEDumpTpl_dumpArrayType(threadData, _txt, _i_ty, omc_Tpl_textString(threadData, _txt_1), _a_attributes, &tmpMeta[0+1]);
goto tmp3_done;
}
case 7: {
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,9,3) == 0) goto tmp3_end;
tmpMeta14 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta14,3,1) == 0) goto tmp3_end;
tmpMeta15 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta14), 2));
_i_rname = tmpMeta15;
_txt = tmp4_1;
_a_attributes = tmp4_3;
_txt = omc_AbsynDumpTpl_dumpPathNoQual(threadData, _txt, _i_rname);
tmpMeta[0+0] = _txt;
tmpMeta[0+1] = _a_attributes;
goto tmp3_done;
}
case 8: {
modelica_metatype tmpMeta16;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,9,3) == 0) goto tmp3_end;
tmpMeta16 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_complexClassType = tmpMeta16;
_txt = tmp4_1;
_a_attributes = tmp4_3;
_ret_2 = omc_ClassInf_getStateName(threadData, _i_complexClassType);
_txt = omc_AbsynDumpTpl_dumpPath(threadData, _txt, _ret_2);
tmpMeta[0+0] = _txt;
tmpMeta[0+1] = _a_attributes;
goto tmp3_done;
}
case 9: {
modelica_metatype tmpMeta17;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,10,4) == 0) goto tmp3_end;
tmpMeta17 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
_i_complexType = tmpMeta17;
_txt = tmp4_1;
_a_attributes = tmp4_3;
_in_txt = _txt;
_in_a_ty = _i_complexType;
_in_a_attributes = _a_attributes;
goto _tailrecursive;
goto tmp3_done;
}
case 10: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,11,4) == 0) goto tmp3_end;
_i_ty = tmp4_2;
_txt = tmp4_1;
_a_attributes = tmp4_3;
_txt = omc_DAEDumpTpl_dumpFunctionType(threadData, _txt, _i_ty);
tmpMeta[0+0] = _txt;
tmpMeta[0+1] = _a_attributes;
goto tmp3_done;
}
case 11: {
modelica_metatype tmpMeta18;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,14,2) == 0) goto tmp3_end;
tmpMeta18 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_types = tmpMeta18;
_txt = tmp4_1;
_a_attributes = tmp4_3;
_txt = omc_DAEDumpTpl_dumpTupleType(threadData, _txt, _i_types, _OMC_LIT61, _OMC_LIT23);
tmpMeta[0+0] = _txt;
tmpMeta[0+1] = _a_attributes;
goto tmp3_done;
}
case 12: {
modelica_metatype tmpMeta19;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,18,1) == 0) goto tmp3_end;
tmpMeta19 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_types = tmpMeta19;
_txt = tmp4_1;
_a_attributes = tmp4_3;
_txt = omc_DAEDumpTpl_dumpTupleType(threadData, _txt, _i_types, _OMC_LIT190, _OMC_LIT191);
tmpMeta[0+0] = _txt;
tmpMeta[0+1] = _a_attributes;
goto tmp3_done;
}
case 13: {
modelica_metatype tmpMeta20;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,17,1) == 0) goto tmp3_end;
tmpMeta20 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_ty = tmpMeta20;
_txt = tmp4_1;
_a_attributes = tmp4_3;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT193);
_txt = omc_DAEDumpTpl_dumpType(threadData, _txt, _i_ty, _a_attributes ,&_a_attributes);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT194);
tmpMeta[0+0] = _txt;
tmpMeta[0+1] = _a_attributes;
goto tmp3_done;
}
case 14: {
modelica_metatype tmpMeta21;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,22,1) == 0) goto tmp3_end;
tmpMeta21 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_ty = tmpMeta21;
_txt = tmp4_1;
_a_attributes = tmp4_3;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT196);
_txt = omc_DAEDumpTpl_dumpType(threadData, _txt, _i_ty, _a_attributes ,&_a_attributes);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT194);
tmpMeta[0+0] = _txt;
tmpMeta[0+1] = _a_attributes;
goto tmp3_done;
}
case 15: {
modelica_metatype tmpMeta22;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,24,1) == 0) goto tmp3_end;
tmpMeta22 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_name = tmpMeta22;
_txt = tmp4_1;
_a_attributes = tmp4_3;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT198);
_txt = omc_Tpl_writeStr(threadData, _txt, _i_name);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT194);
tmpMeta[0+0] = _txt;
tmpMeta[0+1] = _a_attributes;
goto tmp3_done;
}
case 16: {
modelica_metatype tmpMeta23;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,20,5) == 0) goto tmp3_end;
tmpMeta23 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 6));
_i_path = tmpMeta23;
_txt = tmp4_1;
_a_attributes = tmp4_3;
_txt = omc_AbsynDumpTpl_dumpPathNoQual(threadData, _txt, _i_path);
tmpMeta[0+0] = _txt;
tmpMeta[0+1] = _a_attributes;
goto tmp3_done;
}
case 17: {
modelica_metatype tmpMeta24;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,21,6) == 0) goto tmp3_end;
tmpMeta24 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_path = tmpMeta24;
_txt = tmp4_1;
_a_attributes = tmp4_3;
_txt = omc_AbsynDumpTpl_dumpPathNoQual(threadData, _txt, _i_path);
tmpMeta[0+0] = _txt;
tmpMeta[0+1] = _a_attributes;
goto tmp3_done;
}
case 18: {
modelica_metatype tmpMeta25;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,23,1) == 0) goto tmp3_end;
tmpMeta25 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_ty = tmpMeta25;
_txt = tmp4_1;
_a_attributes = tmp4_3;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT200);
_in_txt = _txt;
_in_a_ty = _i_ty;
_in_a_attributes = _a_attributes;
goto _tailrecursive;
goto tmp3_done;
}
case 19: {
modelica_metatype tmpMeta26;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,19,1) == 0) goto tmp3_end;
tmpMeta26 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta26,8,0) == 0) goto tmp3_end;
_txt = tmp4_1;
_a_attributes = tmp4_3;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT202);
tmpMeta[0+0] = _txt;
tmpMeta[0+1] = _a_attributes;
goto tmp3_done;
}
case 20: {
modelica_metatype tmpMeta27;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,19,1) == 0) goto tmp3_end;
tmpMeta27 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_ty = tmpMeta27;
_txt = tmp4_1;
_a_attributes = tmp4_3;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT204);
_txt = omc_DAEDumpTpl_dumpType(threadData, _txt, _i_ty, _a_attributes ,&_a_attributes);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT194);
tmpMeta[0+0] = _txt;
tmpMeta[0+1] = _a_attributes;
goto tmp3_done;
}
case 21: {
modelica_metatype tmpMeta28;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,25,1) == 0) goto tmp3_end;
tmpMeta28 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_ty = tmpMeta28;
_txt = tmp4_1;
_a_attributes = tmp4_3;
_in_txt = _txt;
_in_a_ty = _i_ty;
_in_a_attributes = _a_attributes;
goto _tailrecursive;
goto tmp3_done;
}
case 22: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,7,0) == 0) goto tmp3_end;
_txt = tmp4_1;
_a_attributes = tmp4_3;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT206);
tmpMeta[0+0] = _txt;
tmpMeta[0+1] = _a_attributes;
goto tmp3_done;
}
case 23: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,8,0) == 0) goto tmp3_end;
_txt = tmp4_1;
_a_attributes = tmp4_3;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT208);
tmpMeta[0+0] = _txt;
tmpMeta[0+1] = _a_attributes;
goto tmp3_done;
}
case 24: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,16,1) == 0) goto tmp3_end;
_txt = tmp4_1;
_a_attributes = tmp4_3;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT210);
tmpMeta[0+0] = _txt;
tmpMeta[0+1] = _a_attributes;
goto tmp3_done;
}
case 25: {
_txt = tmp4_1;
_a_attributes = tmp4_3;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT212);
tmpMeta[0+0] = _txt;
tmpMeta[0+1] = _a_attributes;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta[0+0];
_out_a_attributes = tmpMeta[0+1];
_return: OMC_LABEL_UNUSED
if (out_out_a_attributes) { *out_out_a_attributes = _out_a_attributes; }
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__65(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_string _i_it = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_it = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_Tpl_writeStr(threadData, _txt, _i_it);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpVarDirection(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_direction)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_direction;
{
modelica_metatype _txt = NULL;
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_2))) {
case 3: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,0) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT214);
goto tmp3_done;
}
case 4: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,0) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT216);
goto tmp3_done;
}
default:
tmp3_default: OMC_LABEL_UNUSED; {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpVarKind(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_kind)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_kind;
{
modelica_metatype _txt = NULL;
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_2))) {
case 6: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,3,0) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT218);
goto tmp3_done;
}
case 5: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,2,0) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT220);
goto tmp3_done;
}
case 4: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,0) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT222);
goto tmp3_done;
}
default:
tmp3_default: OMC_LABEL_UNUSED; {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpVarParallelism(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_parallelism)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_parallelism;
{
modelica_metatype _txt = NULL;
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_2))) {
case 3: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,0) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT224);
goto tmp3_done;
}
case 4: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,0) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT226);
goto tmp3_done;
}
default:
tmp3_default: OMC_LABEL_UNUSED; {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpVarVisibility(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_protection)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_protection;
{
modelica_metatype _txt = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,0) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT228);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpFinalPrefix(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_varAttr)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_varAttr;
{
modelica_metatype _txt = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 6; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_integer tmp8;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,15) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 15));
if (optionNone(tmpMeta6)) goto tmp3_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 1));
tmp8 = mmc_unbox_integer(tmpMeta7);
if (1 != tmp8) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT230);
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
modelica_integer tmp11;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,11) == 0) goto tmp3_end;
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 11));
if (optionNone(tmpMeta9)) goto tmp3_end;
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta9), 1));
tmp11 = mmc_unbox_integer(tmpMeta10);
if (1 != tmp11) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT230);
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
modelica_integer tmp14;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,2,7) == 0) goto tmp3_end;
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 7));
if (optionNone(tmpMeta12)) goto tmp3_end;
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta12), 1));
tmp14 = mmc_unbox_integer(tmpMeta13);
if (1 != tmp14) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT230);
goto tmp3_done;
}
case 3: {
modelica_metatype tmpMeta15;
modelica_metatype tmpMeta16;
modelica_integer tmp17;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,4,7) == 0) goto tmp3_end;
tmpMeta15 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 7));
if (optionNone(tmpMeta15)) goto tmp3_end;
tmpMeta16 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta15), 1));
tmp17 = mmc_unbox_integer(tmpMeta16);
if (1 != tmp17) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT230);
goto tmp3_done;
}
case 4: {
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
modelica_integer tmp20;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,5,9) == 0) goto tmp3_end;
tmpMeta18 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 9));
if (optionNone(tmpMeta18)) goto tmp3_end;
tmpMeta19 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta18), 1));
tmp20 = mmc_unbox_integer(tmpMeta19);
if (1 != tmp20) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT230);
goto tmp3_done;
}
case 5: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpVar(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_lst, modelica_boolean _in_a_printTypeDimension)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;modelica_boolean tmp4_3;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_lst;
tmp4_3 = _in_a_printTypeDimension;
{
modelica_metatype _txt = NULL;
modelica_boolean _a_printTypeDimension;
modelica_metatype _i_comment = NULL;
modelica_metatype _i_binding = NULL;
modelica_metatype _i_componentRef = NULL;
modelica_metatype _i_dims = NULL;
modelica_metatype _i_ty = NULL;
modelica_metatype _i_direction = NULL;
modelica_metatype _i_kind = NULL;
modelica_metatype _i_parallelism = NULL;
modelica_metatype _i_protection = NULL;
modelica_metatype _i_variableAttributesOption = NULL;
modelica_metatype _l_binding__str = NULL;
modelica_metatype _l_ann__str = NULL;
modelica_metatype _l_cmt__str = NULL;
modelica_metatype _l_varAttr = NULL;
modelica_metatype _l_bindingExp = NULL;
modelica_metatype _l_varName = NULL;
modelica_metatype _l_dim__str = NULL;
modelica_metatype _l_varType = NULL;
modelica_metatype _l_attr = NULL;
modelica_metatype _l_varDirection = NULL;
modelica_metatype _l_varKind = NULL;
modelica_metatype _l_varParallelism = NULL;
modelica_metatype _l_varVisibility = NULL;
modelica_metatype _l_final = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,13) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5));
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 6));
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 7));
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 8));
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 9));
tmpMeta14 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 12));
tmpMeta15 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 13));
_i_componentRef = tmpMeta6;
_i_kind = tmpMeta7;
_i_direction = tmpMeta8;
_i_parallelism = tmpMeta9;
_i_protection = tmpMeta10;
_i_ty = tmpMeta11;
_i_binding = tmpMeta12;
_i_dims = tmpMeta13;
_i_variableAttributesOption = tmpMeta14;
_i_comment = tmpMeta15;
_txt = tmp4_1;
_a_printTypeDimension = tmp4_3;
_l_final = omc_DAEDumpTpl_fun__54(threadData, _OMC_LIT9, _i_variableAttributesOption);
_l_varVisibility = omc_DAEDumpTpl_dumpVarVisibility(threadData, _OMC_LIT9, _i_protection);
_l_varParallelism = omc_DAEDumpTpl_dumpVarParallelism(threadData, _OMC_LIT9, _i_parallelism);
_l_varKind = omc_DAEDumpTpl_dumpVarKind(threadData, _OMC_LIT9, _i_kind);
_l_varDirection = omc_DAEDumpTpl_dumpVarDirection(threadData, _OMC_LIT9, _i_direction);
_l_attr = _OMC_LIT9;
_l_varType = omc_DAEDumpTpl_dumpType(threadData, _OMC_LIT9, _i_ty, _l_attr ,&_l_attr);
_l_dim__str = omc_DAEDumpTpl_fun__55(threadData, _OMC_LIT9, _a_printTypeDimension, _i_dims);
_l_varName = omc_DAEDumpTpl_dumpCref(threadData, _OMC_LIT9, _i_componentRef);
_l_bindingExp = omc_DAEDumpTpl_fun__56(threadData, _OMC_LIT9, _i_binding);
_l_varAttr = omc_DAEDumpTpl_fun__57(threadData, _OMC_LIT9, _i_variableAttributesOption);
_l_cmt__str = omc_DAEDumpTpl_dumpCommentOpt(threadData, _OMC_LIT9, _i_comment);
_l_ann__str = omc_DAEDumpTpl_dumpCompAnnotation(threadData, _OMC_LIT9, _i_comment);
_l_binding__str = omc_DAEDumpTpl_fun__58(threadData, _OMC_LIT9, _l_bindingExp);
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT170);
_txt = omc_Tpl_writeText(threadData, _txt, _l_varVisibility);
_txt = omc_Tpl_writeText(threadData, _txt, _l_final);
_txt = omc_Tpl_writeText(threadData, _txt, _l_varParallelism);
_txt = omc_Tpl_writeText(threadData, _txt, _l_varKind);
_txt = omc_Tpl_writeText(threadData, _txt, _l_varDirection);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT11);
_txt = omc_Tpl_writeText(threadData, _txt, _l_varType);
_txt = omc_Tpl_writeText(threadData, _txt, _l_dim__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT11);
_txt = omc_Tpl_writeText(threadData, _txt, _l_varName);
_txt = omc_Tpl_writeText(threadData, _txt, _l_attr);
_txt = omc_Tpl_writeText(threadData, _txt, _l_varAttr);
_txt = omc_Tpl_writeText(threadData, _txt, _l_binding__str);
_txt = omc_Tpl_writeText(threadData, _txt, _l_cmt__str);
_txt = omc_Tpl_writeText(threadData, _txt, _l_ann__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT15);
tmpMeta1 = omc_Tpl_popBlock(threadData, _txt);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
modelica_metatype boxptr_DAEDumpTpl_dumpVar(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_lst, modelica_metatype _in_a_printTypeDimension)
{
modelica_integer tmp1;
modelica_metatype _out_txt = NULL;
tmp1 = mmc_unbox_integer(_in_a_printTypeDimension);
_out_txt = omc_DAEDumpTpl_dumpVar(threadData, _in_txt, _in_a_lst, tmp1);
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__58(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_bindingExp)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_bindingExp;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_bindingExp = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
if (!listEmpty(tmpMeta6)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_i_bindingExp = tmp4_2;
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT170);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT232);
_txt = omc_Tpl_writeText(threadData, _txt, _i_bindingExp);
tmpMeta1 = omc_Tpl_popBlock(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__57(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_variableAttributesOption)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_variableAttributesOption;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_VariableAttributes = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (optionNone(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1));
_i_VariableAttributes = tmpMeta6;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpVariableAttributes(threadData, _txt, _i_VariableAttributes);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__56(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_binding)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_binding;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_exp = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (optionNone(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1));
_i_exp = tmpMeta6;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpExp(threadData, _txt, _i_exp);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__55(threadData_t *threadData, modelica_metatype _in_txt, modelica_boolean _in_a_printTypeDimension, modelica_metatype _in_a_dims)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_boolean tmp4_2;modelica_metatype tmp4_3;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_printTypeDimension;
tmp4_3 = _in_a_dims;
{
modelica_metatype _txt = NULL;
modelica_metatype _a_dims = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (0 != tmp4_2) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_a_dims = tmp4_3;
tmpMeta1 = omc_DAEDumpTpl_dumpTypeDimensions(threadData, _txt, _a_dims);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDumpTpl_fun__55(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_printTypeDimension, modelica_metatype _in_a_dims)
{
modelica_integer tmp1;
modelica_metatype _out_txt = NULL;
tmp1 = mmc_unbox_integer(_in_a_printTypeDimension);
_out_txt = omc_DAEDumpTpl_fun__55(threadData, _in_txt, tmp1, _in_a_dims);
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__54(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_variableAttributesOption)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_variableAttributesOption;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_VariableAttributes = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (optionNone(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1));
_i_VariableAttributes = tmpMeta6;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpFinalPrefix(threadData, _txt, _i_VariableAttributes);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpVars(threadData_t *threadData, modelica_metatype _txt, modelica_metatype _a_v)
{
modelica_metatype _out_txt = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_out_txt = omc_Tpl_pushIter(threadData, _txt, _OMC_LIT26);
_out_txt = omc_DAEDumpTpl_lm__52(threadData, _out_txt, _a_v);
_out_txt = omc_Tpl_popIter(threadData, _out_txt);
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__52(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_var = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_var = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpVar(threadData, _txt, _i_var, 0);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpFunctionAlgorithm(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_algorithm__, modelica_string _in_a_label)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;modelica_string tmp4_3;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_algorithm__;
tmp4_3 = _in_a_label;
{
modelica_metatype _txt = NULL;
modelica_string _a_label = NULL;
modelica_metatype _i_statementLst = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_txt = tmp4_1;
_i_statementLst = tmpMeta6;
_a_label = tmp4_3;
_txt = omc_Tpl_writeStr(threadData, _txt, _a_label);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT16);
_txt = omc_DAEDumpTpl_dumpStatements(threadData, _txt, _i_statementLst);
tmpMeta1 = omc_Tpl_popBlock(threadData, _txt);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpFunctionAnnotation(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_lst)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_lst;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_cmt = NULL;
modelica_metatype _l_x = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,31,1) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_cmt = tmpMeta6;
_txt = tmp4_1;
_l_x = omc_DAEDumpTpl_dumpCommentAnnotationNoOpt(threadData, _OMC_LIT9, _i_cmt);
tmpMeta1 = omc_DAEDumpTpl_fun__49(threadData, _txt, _l_x);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__49(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_x)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_x;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_x = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
if (!listEmpty(tmpMeta6)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_i_x = tmp4_2;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT3);
tmpMeta1 = omc_Tpl_writeText(threadData, _txt, _i_x);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpFunctionElement(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_lst)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_lst;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_algorithm__ = NULL;
modelica_metatype _i_lst = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 5; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,13) == 0) goto tmp3_end;
_i_lst = tmp4_2;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpVar(threadData, _txt, _i_lst, 1);
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,17,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_algorithm__ = tmpMeta6;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpFunctionAlgorithm(threadData, _txt, _i_algorithm__, _OMC_LIT75);
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta7;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,16,2) == 0) goto tmp3_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_algorithm__ = tmpMeta7;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpFunctionAlgorithm(threadData, _txt, _i_algorithm__, _OMC_LIT74);
goto tmp3_done;
}
case 3: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,31,1) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 4: {
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT234);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpFunctionBody(threadData_t *threadData, modelica_metatype _txt, modelica_metatype _a_dAElist)
{
modelica_metatype _out_txt = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_out_txt = omc_Tpl_pushIter(threadData, _txt, _OMC_LIT26);
_out_txt = omc_DAEDumpTpl_lm__45(threadData, _out_txt, _a_dAElist);
_out_txt = omc_Tpl_popIter(threadData, _out_txt);
_out_txt = omc_DAEDumpTpl_lm__46(threadData, _out_txt, _a_dAElist);
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__46(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_lst = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_lst = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpFunctionAnnotation(threadData, _txt, _i_lst);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__45(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_lst = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_lst = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpFunctionElement(threadData, _txt, _i_lst);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpRecordVarBinding(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_binding)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_binding;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_exp = NULL;
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_2))) {
case 3: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,0) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 4: {
modelica_metatype tmpMeta5;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,4) == 0) goto tmp3_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_exp = tmpMeta5;
_txt = tmp4_1;
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT170);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT232);
_txt = omc_DAEDumpTpl_dumpExp(threadData, _txt, _i_exp);
tmpMeta1 = omc_Tpl_popBlock(threadData, _txt);
goto tmp3_done;
}
case 5: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,2,2) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT236);
goto tmp3_done;
}
default:
tmp3_default: OMC_LABEL_UNUSED; {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpRecordConstructorBinding(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_binding)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_binding;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_exp = NULL;
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_2))) {
case 3: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,0) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 4: {
modelica_metatype tmpMeta5;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,4) == 0) goto tmp3_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_exp = tmpMeta5;
_txt = tmp4_1;
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT170);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT232);
_txt = omc_DAEDumpTpl_dumpExp(threadData, _txt, _i_exp);
tmpMeta1 = omc_Tpl_popBlock(threadData, _txt);
goto tmp3_done;
}
default:
tmp3_default: OMC_LABEL_UNUSED; {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpRecordConstructorInputAttr(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_attr)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_attr;
{
modelica_metatype _txt = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 4; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,0,0) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT238);
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta7;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta7,1,0) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT240);
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta8;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta8,3,0) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT167);
goto tmp3_done;
}
case 3: {
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT238);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpRecordVar(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_v)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_v;
{
modelica_metatype _txt = NULL;
modelica_string _i_name = NULL;
modelica_metatype _i_ty = NULL;
modelica_metatype _i_binding = NULL;
modelica_metatype _i_attributes = NULL;
modelica_metatype _l_ty__str = NULL;
modelica_metatype _l_attr = NULL;
modelica_metatype _l_binding__str = NULL;
modelica_metatype _l_attr__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5));
_txt = tmp4_1;
_i_name = tmpMeta6;
_i_attributes = tmpMeta7;
_i_ty = tmpMeta8;
_i_binding = tmpMeta9;
_l_attr__str = omc_DAEDumpTpl_dumpRecordConstructorInputAttr(threadData, _OMC_LIT9, _i_attributes);
_l_binding__str = omc_DAEDumpTpl_dumpRecordConstructorBinding(threadData, _OMC_LIT9, _i_binding);
_l_attr = _OMC_LIT9;
_l_ty__str = omc_DAEDumpTpl_dumpType(threadData, _OMC_LIT9, _i_ty, _l_attr ,&_l_attr);
_txt = omc_Tpl_writeText(threadData, _txt, _l_attr__str);
_txt = omc_Tpl_writeText(threadData, _txt, _l_ty__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT11);
_txt = omc_Tpl_writeStr(threadData, _txt, _i_name);
_txt = omc_Tpl_writeText(threadData, _txt, _l_attr);
_txt = omc_Tpl_writeText(threadData, _txt, _l_binding__str);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT15);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpRecordVars(threadData_t *threadData, modelica_metatype _txt, modelica_metatype _a_varLst)
{
modelica_metatype _out_txt = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_out_txt = omc_Tpl_pushIter(threadData, _txt, _OMC_LIT26);
_out_txt = omc_DAEDumpTpl_lm__39(threadData, _out_txt, _a_varLst);
_out_txt = omc_Tpl_popIter(threadData, _out_txt);
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__39(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_v = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_v = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpRecordVar(threadData, _txt, _i_v);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpRecordInputVarStr(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_type__)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_type__;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_funcResultType = NULL;
modelica_metatype _i_varLst = NULL;
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_2))) {
case 12: {
modelica_metatype tmpMeta5;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,9,3) == 0) goto tmp3_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
_i_varLst = tmpMeta5;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpRecordVars(threadData, _txt, _i_varLst);
goto tmp3_done;
}
case 14: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,11,4) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
_i_funcResultType = tmpMeta6;
_txt = tmp4_1;
_in_txt = _txt;
_in_a_type__ = _i_funcResultType;
goto _tailrecursive;
goto tmp3_done;
}
default:
tmp3_default: OMC_LABEL_UNUSED; {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpExtArg(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_arg)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_arg;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_exp = NULL;
modelica_metatype _i_componentRef = NULL;
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_2))) {
case 3: {
modelica_metatype tmpMeta5;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,3) == 0) goto tmp3_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_componentRef = tmpMeta5;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpCref(threadData, _txt, _i_componentRef);
goto tmp3_done;
}
case 4: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_exp = tmpMeta6;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpExp(threadData, _txt, _i_exp);
goto tmp3_done;
}
case 5: {
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,2,3) == 0) goto tmp3_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
_i_componentRef = tmpMeta7;
_i_exp = tmpMeta8;
_txt = tmp4_1;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT242);
_txt = omc_DAEDumpTpl_dumpCref(threadData, _txt, _i_componentRef);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT22);
_txt = omc_DAEDumpTpl_dumpExp(threadData, _txt, _i_exp);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT24);
goto tmp3_done;
}
default:
tmp3_default: OMC_LABEL_UNUSED; {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpExtArgs(threadData_t *threadData, modelica_metatype _txt, modelica_metatype _a_args)
{
modelica_metatype _out_txt = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_out_txt = omc_Tpl_pushIter(threadData, _txt, _OMC_LIT60);
_out_txt = omc_DAEDumpTpl_lm__35(threadData, _out_txt, _a_args);
_out_txt = omc_Tpl_popIter(threadData, _out_txt);
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__35(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_arg = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_arg = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpExtArg(threadData, _txt, _i_arg);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpExternalDecl(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_externalDecl)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_externalDecl;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_ann = NULL;
modelica_string _i_language = NULL;
modelica_metatype _i_returnArg = NULL;
modelica_metatype _i_args = NULL;
modelica_string _i_name = NULL;
modelica_metatype _l_ann__str = NULL;
modelica_metatype _l_lang__str = NULL;
modelica_metatype _l_output__str = NULL;
modelica_metatype _l_ext__output__str = NULL;
modelica_metatype _l_func__str = NULL;
modelica_metatype _l_func__args__str = NULL;
modelica_metatype _l_func__name__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5));
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 6));
_txt = tmp4_1;
_i_name = tmpMeta6;
_i_args = tmpMeta7;
_i_returnArg = tmpMeta8;
_i_language = tmpMeta9;
_i_ann = tmpMeta10;
_l_func__name__str = omc_Tpl_writeStr(threadData, _OMC_LIT9, _i_name);
_l_func__args__str = omc_DAEDumpTpl_dumpExtArgs(threadData, _OMC_LIT9, _i_args);
_l_func__str = omc_DAEDumpTpl_fun__31(threadData, _OMC_LIT9, _l_func__name__str, _l_func__args__str);
_l_ext__output__str = omc_DAEDumpTpl_dumpExtArg(threadData, _OMC_LIT9, _i_returnArg);
_l_output__str = omc_DAEDumpTpl_fun__32(threadData, _OMC_LIT9, _l_ext__output__str);
_l_lang__str = omc_Tpl_writeStr(threadData, _OMC_LIT9, _i_language);
_l_ann__str = omc_DAEDumpTpl_fun__33(threadData, _OMC_LIT9, _i_ann);
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT16);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT244);
_txt = omc_Tpl_writeText(threadData, _txt, _l_lang__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT13);
_txt = omc_Tpl_writeText(threadData, _txt, _l_output__str);
_txt = omc_Tpl_writeText(threadData, _txt, _l_func__str);
_txt = omc_Tpl_writeText(threadData, _txt, _l_ann__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT15);
tmpMeta1 = omc_Tpl_popBlock(threadData, _txt);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__33(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_ann)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_ann;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_annotation = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (optionNone(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1));
_i_annotation = tmpMeta6;
_txt = tmp4_1;
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT170);
_txt = omc_DAEDumpTpl_dumpAnnotation(threadData, _txt, _i_annotation);
tmpMeta1 = omc_Tpl_popBlock(threadData, _txt);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__32(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_ext__output__str)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_ext__output__str;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_ext__output__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
if (!listEmpty(tmpMeta6)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_i_ext__output__str = tmp4_2;
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT170);
_txt = omc_Tpl_writeText(threadData, _txt, _i_ext__output__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT246);
tmpMeta1 = omc_Tpl_popBlock(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__31(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_func__name__str, modelica_metatype _in_a_func__args__str)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;modelica_metatype tmp4_3;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_func__name__str;
tmp4_3 = _in_a_func__args__str;
{
modelica_metatype _txt = NULL;
modelica_metatype _a_func__args__str = NULL;
modelica_metatype _i_func__name__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
if (!listEmpty(tmpMeta6)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_i_func__name__str = tmp4_2;
_a_func__args__str = tmp4_3;
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT170);
_txt = omc_Tpl_writeText(threadData, _txt, _i_func__name__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT62);
_txt = omc_Tpl_writeText(threadData, _txt, _a_func__args__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT24);
tmpMeta1 = omc_Tpl_popBlock(threadData, _txt);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpFunctionDefinition(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_functions)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_functions;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_externalDecl = NULL;
modelica_metatype _i_body = NULL;
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_2))) {
case 3: {
modelica_metatype tmpMeta5;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,1) == 0) goto tmp3_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_i_body = tmpMeta5;
_txt = tmp4_1;
tmpMeta1 = omc_DAEDumpTpl_dumpFunctionBody(threadData, _txt, _i_body);
goto tmp3_done;
}
case 4: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
_i_body = tmpMeta6;
_i_externalDecl = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpFunctionBody(threadData, _txt, _i_body);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT3);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT3);
tmpMeta1 = omc_DAEDumpTpl_dumpExternalDecl(threadData, _txt, _i_externalDecl);
goto tmp3_done;
}
case 5: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,2,6) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 6: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,3,2) == 0) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
default:
tmp3_default: OMC_LABEL_UNUSED; {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpFunctionDefinitions(threadData_t *threadData, modelica_metatype _txt, modelica_metatype _a_functions)
{
modelica_metatype _out_txt = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_out_txt = omc_Tpl_pushIter(threadData, _txt, _OMC_LIT26);
_out_txt = omc_DAEDumpTpl_lm__28(threadData, _out_txt, _a_functions);
_out_txt = omc_Tpl_popIter(threadData, _out_txt);
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__28(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_func = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_func = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpFunctionDefinition(threadData, _txt, _i_func);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpFunction(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_function)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_function;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_type__ = NULL;
modelica_metatype _i_functions = NULL;
modelica_metatype _i_path = NULL;
modelica_boolean _i_isImpure;
modelica_metatype _i_comment = NULL;
modelica_boolean _ret_3;
modelica_metatype _l_impure__str = NULL;
modelica_metatype _l_ann__str = NULL;
modelica_metatype _l_cmt__str = NULL;
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_2))) {
case 3: {
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_integer tmp8;
modelica_metatype tmpMeta9;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,10) == 0) goto tmp3_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 7));
tmp8 = mmc_unbox_integer(tmpMeta7);
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 11));
_i_path = tmpMeta5;
_i_functions = tmpMeta6;
_i_isImpure = tmp8;
_i_comment = tmpMeta9;
_txt = tmp4_1;
_l_cmt__str = omc_DAEDumpTpl_dumpCommentOpt(threadData, _OMC_LIT9, _i_comment);
_l_ann__str = omc_DAEDumpTpl_dumpClassAnnotation(threadData, _OMC_LIT9, _i_comment);
_l_impure__str = omc_DAEDumpTpl_fun__24(threadData, _OMC_LIT9, _i_isImpure);
_txt = omc_Tpl_writeText(threadData, _txt, _l_impure__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT248);
_txt = omc_AbsynDumpTpl_dumpPathNoQual(threadData, _txt, _i_path);
_txt = omc_Tpl_writeText(threadData, _txt, _l_cmt__str);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_DAEDumpTpl_dumpFunctionDefinitions(threadData, _txt, _i_functions);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_DAEDumpTpl_fun__25(threadData, _txt, _l_ann__str);
_txt = omc_Tpl_writeText(threadData, _txt, _l_ann__str);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT18);
_txt = omc_AbsynDumpTpl_dumpPathNoQual(threadData, _txt, _i_path);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT15);
goto tmp3_done;
}
case 4: {
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,3) == 0) goto tmp3_end;
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
_i_path = tmpMeta10;
_i_type__ = tmpMeta11;
_txt = tmp4_1;
_ret_3 = omc_Flags_isSet(threadData, _OMC_LIT252);
tmpMeta1 = omc_DAEDumpTpl_fun__26(threadData, _txt, _ret_3, _i_type__, _i_path);
goto tmp3_done;
}
default:
tmp3_default: OMC_LABEL_UNUSED; {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__26(threadData_t *threadData, modelica_metatype _in_txt, modelica_boolean _in_mArg, modelica_metatype _in_a_type__, modelica_metatype _in_a_path)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_boolean tmp4_2;modelica_metatype tmp4_3;modelica_metatype tmp4_4;
tmp4_1 = _in_txt;
tmp4_2 = _in_mArg;
tmp4_3 = _in_a_type__;
tmp4_4 = _in_a_path;
{
modelica_metatype _txt = NULL;
modelica_metatype _a_type__ = NULL;
modelica_metatype _a_path = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (0 != tmp4_2) goto tmp3_end;
_txt = tmp4_1;
_a_type__ = tmp4_3;
_a_path = tmp4_4;
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT248);
_txt = omc_AbsynDumpTpl_dumpPathNoQual(threadData, _txt, _a_path);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT254);
_txt = omc_AbsynDumpTpl_dumpPathNoQual(threadData, _txt, _a_path);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT256);
_txt = omc_Tpl_pushBlock(threadData, _txt, _OMC_LIT16);
_txt = omc_DAEDumpTpl_dumpRecordInputVarStr(threadData, _txt, _a_type__);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT258);
_txt = omc_DAEDumpTpl_dumpPathLastIndent(threadData, _txt, _a_path);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT260);
_txt = omc_Tpl_popBlock(threadData, _txt);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT18);
_txt = omc_AbsynDumpTpl_dumpPathNoQual(threadData, _txt, _a_path);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT15);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_a_type__ = tmp4_3;
tmpMeta1 = omc_DAEDumpTpl_dumpRecordType(threadData, _txt, _a_type__);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDumpTpl_fun__26(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_mArg, modelica_metatype _in_a_type__, modelica_metatype _in_a_path)
{
modelica_integer tmp1;
modelica_metatype _out_txt = NULL;
tmp1 = mmc_unbox_integer(_in_mArg);
_out_txt = omc_DAEDumpTpl_fun__26(threadData, _in_txt, tmp1, _in_a_type__, _in_a_path);
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__25(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_ann__str)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_ann__str;
{
modelica_metatype _txt = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
if (!listEmpty(tmpMeta6)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT262);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__24(threadData_t *threadData, modelica_metatype _in_txt, modelica_boolean _in_a_isImpure)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_boolean tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_isImpure;
{
modelica_metatype _txt = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (0 != tmp4_2) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT264);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDumpTpl_fun__24(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_isImpure)
{
modelica_integer tmp1;
modelica_metatype _out_txt = NULL;
tmp1 = mmc_unbox_integer(_in_a_isImpure);
_out_txt = omc_DAEDumpTpl_fun__24(threadData, _in_txt, tmp1);
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpFunctions(threadData_t *threadData, modelica_metatype _txt, modelica_metatype _a_funcs)
{
modelica_metatype _out_txt = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_out_txt = omc_Tpl_pushIter(threadData, _txt, _OMC_LIT270);
_out_txt = omc_DAEDumpTpl_lm__22(threadData, _out_txt, _a_funcs);
_out_txt = omc_Tpl_popIter(threadData, _out_txt);
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__22(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_func = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_func = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpFunction(threadData, _txt, _i_func);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpCompStream(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_elems)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_elems;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_sm = NULL;
modelica_metatype _i_a = NULL;
modelica_metatype _i_e = NULL;
modelica_metatype _i_ia = NULL;
modelica_metatype _i_ie = NULL;
modelica_metatype _i_v = NULL;
modelica_metatype _l_sm__str = NULL;
modelica_metatype _l_al__str = NULL;
modelica_metatype _l_eq__str = NULL;
modelica_metatype _l_ial__str = NULL;
modelica_metatype _l_ieq__str = NULL;
modelica_metatype _l_var__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5));
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 6));
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 10));
_txt = tmp4_1;
_i_v = tmpMeta6;
_i_ie = tmpMeta7;
_i_ia = tmpMeta8;
_i_e = tmpMeta9;
_i_a = tmpMeta10;
_i_sm = tmpMeta11;
_l_var__str = omc_DAEDumpTpl_dumpVars(threadData, _OMC_LIT9, _i_v);
_l_ieq__str = omc_DAEDumpTpl_dumpInitialEquationSection(threadData, _OMC_LIT9, _i_ie);
_l_ial__str = omc_DAEDumpTpl_dumpInitialAlgorithmSection(threadData, _OMC_LIT9, _i_ia);
_l_eq__str = omc_DAEDumpTpl_dumpEquationSection(threadData, _OMC_LIT9, _i_e);
_l_al__str = omc_DAEDumpTpl_dumpAlgorithmSection(threadData, _OMC_LIT9, _i_a);
_l_sm__str = omc_Tpl_pushIter(threadData, _OMC_LIT9, _OMC_LIT26);
_l_sm__str = omc_DAEDumpTpl_lm__20(threadData, _l_sm__str, _i_sm);
_l_sm__str = omc_Tpl_popIter(threadData, _l_sm__str);
_txt = omc_Tpl_writeText(threadData, _txt, _l_var__str);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_writeText(threadData, _txt, _l_sm__str);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_writeText(threadData, _txt, _l_ieq__str);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_writeText(threadData, _txt, _l_ial__str);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_writeText(threadData, _txt, _l_eq__str);
_txt = omc_Tpl_softNewLine(threadData, _txt);
tmpMeta1 = omc_Tpl_writeText(threadData, _txt, _l_al__str);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__20(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_flatSM = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_flatSM = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpStateMachineSection(threadData, _txt, _i_flatSM);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpComp(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_fixedDae)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_fixedDae;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_spltElems = NULL;
modelica_string _i_name = NULL;
modelica_metatype _i_comment = NULL;
modelica_boolean _ret_3;
modelica_metatype _l_name__rep = NULL;
modelica_metatype _l_ann__str = NULL;
modelica_metatype _l_cmt__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4));
_txt = tmp4_1;
_i_name = tmpMeta6;
_i_spltElems = tmpMeta7;
_i_comment = tmpMeta8;
_l_cmt__str = omc_DAEDumpTpl_dumpCommentOpt(threadData, _OMC_LIT9, _i_comment);
_l_ann__str = omc_DAEDumpTpl_dumpClassAnnotation(threadData, _OMC_LIT9, _i_comment);
_ret_3 = omc_Flags_getConfigBool(threadData, _OMC_LIT103);
_l_name__rep = omc_DAEDumpTpl_fun__17(threadData, _OMC_LIT9, _ret_3, _i_name);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT272);
_txt = omc_Tpl_writeText(threadData, _txt, _l_name__rep);
_txt = omc_Tpl_writeText(threadData, _txt, _l_cmt__str);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_DAEDumpTpl_dumpCompStream(threadData, _txt, _i_spltElems);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_DAEDumpTpl_fun__18(threadData, _txt, _l_ann__str);
_txt = omc_Tpl_writeText(threadData, _txt, _l_ann__str);
_txt = omc_Tpl_softNewLine(threadData, _txt);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT18);
_txt = omc_Tpl_writeText(threadData, _txt, _l_name__rep);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT15);
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT3);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__18(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_ann__str)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_ann__str;
{
modelica_metatype _txt = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
if (!listEmpty(tmpMeta6)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT262);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__17(threadData_t *threadData, modelica_metatype _in_txt, modelica_boolean _in_mArg, modelica_string _in_a_name)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_boolean tmp4_2;modelica_string tmp4_3;
tmp4_1 = _in_txt;
tmp4_2 = _in_mArg;
tmp4_3 = _in_a_name;
{
modelica_metatype _txt = NULL;
modelica_string _a_name = NULL;
modelica_string _ret_0 = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (0 != tmp4_2) goto tmp3_end;
_txt = tmp4_1;
_a_name = tmp4_3;
tmpMeta1 = omc_Tpl_writeStr(threadData, _txt, _a_name);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_a_name = tmp4_3;
_ret_0 = omc_System_stringReplace(threadData, _a_name, _OMC_LIT119, _OMC_LIT121);
tmpMeta1 = omc_Tpl_writeStr(threadData, _txt, _ret_0);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDumpTpl_fun__17(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_mArg, modelica_metatype _in_a_name)
{
modelica_integer tmp1;
modelica_metatype _out_txt = NULL;
tmp1 = mmc_unbox_integer(_in_mArg);
_out_txt = omc_DAEDumpTpl_fun__17(threadData, _in_txt, tmp1, _in_a_name);
return _out_txt;
}
DLLExport
modelica_metatype omc_DAEDumpTpl_dumpDAE(threadData_t *threadData, modelica_metatype _txt, modelica_metatype _a_fixedDaeList, modelica_metatype _a_funLists)
{
modelica_metatype _out_txt = NULL;
modelica_metatype _l_fun__str = NULL;
modelica_metatype _l_comp__str = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_l_comp__str = omc_Tpl_pushIter(threadData, _OMC_LIT9, _OMC_LIT26);
_l_comp__str = omc_DAEDumpTpl_lm__13(threadData, _l_comp__str, _a_fixedDaeList);
_l_comp__str = omc_Tpl_popIter(threadData, _l_comp__str);
_l_fun__str = omc_DAEDumpTpl_fun__14(threadData, _OMC_LIT9, _a_funLists);
_out_txt = omc_DAEDumpTpl_fun__15(threadData, _txt, _l_fun__str, _l_comp__str);
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__15(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_fun__str, modelica_metatype _in_a_comp__str)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;modelica_metatype tmp4_3;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_fun__str;
tmp4_3 = _in_a_comp__str;
{
modelica_metatype _txt = NULL;
modelica_metatype _a_comp__str = NULL;
modelica_metatype _i_fun__str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
if (!listEmpty(tmpMeta6)) goto tmp3_end;
_txt = tmp4_1;
_a_comp__str = tmp4_3;
tmpMeta1 = omc_Tpl_writeText(threadData, _txt, _a_comp__str);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
_i_fun__str = tmp4_2;
_a_comp__str = tmp4_3;
_txt = omc_Tpl_writeText(threadData, _txt, _i_fun__str);
_txt = omc_Tpl_writeTok(threadData, _txt, _OMC_LIT268);
_txt = omc_Tpl_softNewLine(threadData, _txt);
tmpMeta1 = omc_Tpl_writeText(threadData, _txt, _a_comp__str);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_fun__14(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_a_funLists)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_a_funLists;
{
modelica_metatype _txt = NULL;
modelica_metatype _i_funcs = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2));
_txt = tmp4_1;
_i_funcs = tmpMeta6;
tmpMeta1 = omc_DAEDumpTpl_dumpFunctions(threadData, _txt, _i_funcs);
goto tmp3_done;
}
case 1: {
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDumpTpl_lm__13(threadData_t *threadData, modelica_metatype _in_txt, modelica_metatype _in_items)
{
modelica_metatype _out_txt = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _in_txt;
tmp4_2 = _in_items;
{
modelica_metatype _txt = NULL;
modelica_metatype _rest = NULL;
modelica_metatype _i_dae = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_2)) goto tmp3_end;
_txt = tmp4_1;
tmpMeta1 = _txt;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
_i_dae = tmpMeta6;
_rest = tmpMeta7;
_txt = tmp4_1;
_txt = omc_DAEDumpTpl_dumpComp(threadData, _txt, _i_dae);
_txt = omc_Tpl_nextIter(threadData, _txt);
_in_txt = _txt;
_in_items = _rest;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out_txt = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _out_txt;
}
