#ifdef OMC_BASE_FILE
#define OMC_FILE OMC_BASE_FILE
#else
#define OMC_FILE "DAEDump.c"
#endif
#include "omc_simulation_settings.h"
#include "DAEDump.h"
#define _OMC_LIT0_data "VAR:  "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT0,6,_OMC_LIT0_data);
#define _OMC_LIT0 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT0)
#define _OMC_LIT1_data ";\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT1,2,_OMC_LIT1_data);
#define _OMC_LIT1 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT1)
#define _OMC_LIT2_data "  "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT2,2,_OMC_LIT2_data);
#define _OMC_LIT2 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT2)
#define _OMC_LIT3_data " = "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT3,3,_OMC_LIT3_data);
#define _OMC_LIT3 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT3)
#define _OMC_LIT4_data "EQUEQUATION  "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT4,13,_OMC_LIT4_data);
#define _OMC_LIT4 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT4)
#define _OMC_LIT5_data "ARRAY_EQUATION  "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT5,16,_OMC_LIT5_data);
#define _OMC_LIT5 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT5)
#define _OMC_LIT6_data "INITIAL_ARRAY_EQUATION  "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT6,24,_OMC_LIT6_data);
#define _OMC_LIT6 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT6)
#define _OMC_LIT7_data "COMPLEX_EQUATION  "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT7,18,_OMC_LIT7_data);
#define _OMC_LIT7 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT7)
#define _OMC_LIT8_data "INITIAL_COMPLEX_EQUATION  "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT8,26,_OMC_LIT8_data);
#define _OMC_LIT8 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT8)
#define _OMC_LIT9_data "WHEN_EQUATION:  "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT9,16,_OMC_LIT9_data);
#define _OMC_LIT9 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT9)
#define _OMC_LIT10_data "IF_EQUATION:  "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT10,14,_OMC_LIT10_data);
#define _OMC_LIT10 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT10)
#define _OMC_LIT11_data "INITIAL_IF_EQUATION:  "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT11,22,_OMC_LIT11_data);
#define _OMC_LIT11 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT11)
#define _OMC_LIT12_data "INITIALEQUATION  "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT12,17,_OMC_LIT12_data);
#define _OMC_LIT12 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT12)
#define _OMC_LIT13_data "ALGO  "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT13,6,_OMC_LIT13_data);
#define _OMC_LIT13 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT13)
#define _OMC_LIT14_data "INITIALALGORITHM  "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT14,18,_OMC_LIT14_data);
#define _OMC_LIT14 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT14)
#define _OMC_LIT15_data "\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT15,1,_OMC_LIT15_data);
#define _OMC_LIT15 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT15)
#define _OMC_LIT16_data "COMP  "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT16,6,_OMC_LIT16_data);
#define _OMC_LIT16 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT16)
#define _OMC_LIT17_data "."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT17,1,_OMC_LIT17_data);
#define _OMC_LIT17 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT17)
#define _OMC_LIT18_data "EXTOBJ  "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT18,8,_OMC_LIT18_data);
#define _OMC_LIT18 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT18)
#define _OMC_LIT19_data "  assert("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT19,9,_OMC_LIT19_data);
#define _OMC_LIT19 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT19)
#define _OMC_LIT20_data ","
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT20,1,_OMC_LIT20_data);
#define _OMC_LIT20 MMC_REFSTRINGLIT(_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)
#define _OMC_LIT22_data "  /* initial */ assert("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT22,23,_OMC_LIT22_data);
#define _OMC_LIT22 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT22)
#define _OMC_LIT23_data "  terminate("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT23,12,_OMC_LIT23_data);
#define _OMC_LIT23 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT23)
#define _OMC_LIT24_data "  /* initial */ terminate("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT24,26,_OMC_LIT24_data);
#define _OMC_LIT24 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT24)
#define _OMC_LIT25_data "  reinit() "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT25,11,_OMC_LIT25_data);
#define _OMC_LIT25 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT25)
#define _OMC_LIT26_data "#UNKNOWN_EQUATION#"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT26,18,_OMC_LIT26_data);
#define _OMC_LIT26 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT26)
#define _OMC_LIT27_data "Inferred Clock"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT27,14,_OMC_LIT27_data);
#define _OMC_LIT27 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT27)
#define _OMC_LIT28_data "Rational Clock("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT28,15,_OMC_LIT28_data);
#define _OMC_LIT28 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT28)
#define _OMC_LIT29_data "; "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT29,2,_OMC_LIT29_data);
#define _OMC_LIT29 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT29)
#define _OMC_LIT30_data ")"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT30,1,_OMC_LIT30_data);
#define _OMC_LIT30 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT30)
#define _OMC_LIT31_data "Real Clock("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT31,11,_OMC_LIT31_data);
#define _OMC_LIT31 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT31)
#define _OMC_LIT32_data "Event Clock("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT32,12,_OMC_LIT32_data);
#define _OMC_LIT32 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT32)
#define _OMC_LIT33_data "Solver Clock("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT33,13,_OMC_LIT33_data);
#define _OMC_LIT33 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT33)
#define _OMC_LIT34_data ""
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT34,0,_OMC_LIT34_data);
#define _OMC_LIT34 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT34)
#define _OMC_LIT35_data " "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT35,1,_OMC_LIT35_data);
#define _OMC_LIT35 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT35)
#define _OMC_LIT36_data "TOP"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT36,3,_OMC_LIT36_data);
#define _OMC_LIT36 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT36)
#define _OMC_LIT37_data "connect("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT37,8,_OMC_LIT37_data);
#define _OMC_LIT37 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT37)
#define _OMC_LIT38_data "showEquationSource"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT38,18,_OMC_LIT38_data);
#define _OMC_LIT38 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT38)
#define _OMC_LIT39_data "Display the element source information in the dumped DAE for easier debugging."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT39,78,_OMC_LIT39_data);
#define _OMC_LIT39 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT39)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT40,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT39}};
#define _OMC_LIT40 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT40)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT41,5,3) {&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(81)),_OMC_LIT38,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),_OMC_LIT40}};
#define _OMC_LIT41 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT41)
#define _OMC_LIT42_data " /* models: {"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT42,13,_OMC_LIT42_data);
#define _OMC_LIT42 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT42)
#define _OMC_LIT43_data ", "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT43,2,_OMC_LIT43_data);
#define _OMC_LIT43 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT43)
#define _OMC_LIT44_data "}"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT44,1,_OMC_LIT44_data);
#define _OMC_LIT44 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT44)
#define _OMC_LIT45_data " connects: {"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT45,12,_OMC_LIT45_data);
#define _OMC_LIT45 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT45)
#define _OMC_LIT46_data "} */"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT46,4,_OMC_LIT46_data);
#define _OMC_LIT46 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT46)
#define _OMC_LIT47_data "inner"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT47,5,_OMC_LIT47_data);
#define _OMC_LIT47 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT47)
#define _OMC_LIT48_data "outer"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT48,5,_OMC_LIT48_data);
#define _OMC_LIT48 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT48)
#define _OMC_LIT49_data "inner outer"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT49,11,_OMC_LIT49_data);
#define _OMC_LIT49 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT49)
#define _OMC_LIT50_data "input"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT50,5,_OMC_LIT50_data);
#define _OMC_LIT50 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT50)
#define _OMC_LIT51_data "output"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT51,6,_OMC_LIT51_data);
#define _OMC_LIT51 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT51)
#define _OMC_LIT52_data "parameter"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT52,9,_OMC_LIT52_data);
#define _OMC_LIT52 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT52)
#define _OMC_LIT53_data "const"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT53,5,_OMC_LIT53_data);
#define _OMC_LIT53 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT53)
#define _OMC_LIT54_data "discrete"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT54,8,_OMC_LIT54_data);
#define _OMC_LIT54 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT54)
#define _OMC_LIT55_data "impure "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT55,7,_OMC_LIT55_data);
#define _OMC_LIT55 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT55)
#define _OMC_LIT56_data "function "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT56,9,_OMC_LIT56_data);
#define _OMC_LIT56 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT56)
#define _OMC_LIT57_data "end "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT57,4,_OMC_LIT57_data);
#define _OMC_LIT57 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT57)
#define _OMC_LIT58_data ";\n\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT58,3,_OMC_LIT58_data);
#define _OMC_LIT58 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT58)
#define _OMC_LIT59_data "\n  "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT59,3,_OMC_LIT59_data);
#define _OMC_LIT59 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT59)
#define _OMC_LIT60_data "disableRecordConstructorOutput"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT60,30,_OMC_LIT60_data);
#define _OMC_LIT60 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT60)
#define _OMC_LIT61_data "Disables output of record constructors in the flat code."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT61,56,_OMC_LIT61_data);
#define _OMC_LIT61 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT61)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT62,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT61}};
#define _OMC_LIT62 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT62)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT63,5,3) {&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(97)),_OMC_LIT60,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),_OMC_LIT62}};
#define _OMC_LIT63 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT63)
#define _OMC_LIT64_data " \"Automatically generated record constructor for "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT64,49,_OMC_LIT64_data);
#define _OMC_LIT64 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT64)
#define _OMC_LIT65_data "\"\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT65,2,_OMC_LIT65_data);
#define _OMC_LIT65 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT65)
#define _OMC_LIT66_data "  output "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT66,9,_OMC_LIT66_data);
#define _OMC_LIT66 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT66)
#define _OMC_LIT67_data " res;\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT67,6,_OMC_LIT67_data);
#define _OMC_LIT67 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT67)
#define _OMC_LIT68_data "printRecordTypes"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT68,16,_OMC_LIT68_data);
#define _OMC_LIT68 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT68)
#define _OMC_LIT69_data "Prints out record types as part of the flat code."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT69,49,_OMC_LIT69_data);
#define _OMC_LIT69 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT69)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT70,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT69}};
#define _OMC_LIT70 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT70)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT71,5,3) {&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(186)),_OMC_LIT68,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),_OMC_LIT70}};
#define _OMC_LIT71 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT71)
#define _OMC_LIT72_data "builtin"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT72,7,_OMC_LIT72_data);
#define _OMC_LIT72 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT72)
#define _OMC_LIT73_data "\n========================================\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT73,42,_OMC_LIT73_data);
#define _OMC_LIT73 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT73)
#define _OMC_LIT74_data "initial algorithm\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT74,18,_OMC_LIT74_data);
#define _OMC_LIT74 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT74)
#define _OMC_LIT75_data "algorithm\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT75,10,_OMC_LIT75_data);
#define _OMC_LIT75 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT75)
#define _OMC_LIT76_data "final "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT76,6,_OMC_LIT76_data);
#define _OMC_LIT76 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT76)
#define _OMC_LIT77_data "Call attributes: \n----------------------\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT77,41,_OMC_LIT77_data);
#define _OMC_LIT77 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT77)
#define _OMC_LIT78_data "DAE-type: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT78,10,_OMC_LIT78_data);
#define _OMC_LIT78 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT78)
#define _OMC_LIT79_data "DAE-type attributes :"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT79,21,_OMC_LIT79_data);
#define _OMC_LIT79 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT79)
#define _OMC_LIT80_data "tuple_: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT80,8,_OMC_LIT80_data);
#define _OMC_LIT80 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT80)
#define _OMC_LIT81_data "true"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT81,4,_OMC_LIT81_data);
#define _OMC_LIT81 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT81)
#define _OMC_LIT82_data "false"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT82,5,_OMC_LIT82_data);
#define _OMC_LIT82 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT82)
#define _OMC_LIT83_data " builtin: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT83,10,_OMC_LIT83_data);
#define _OMC_LIT83 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT83)
#define _OMC_LIT84_data " impure: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT84,9,_OMC_LIT84_data);
#define _OMC_LIT84 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT84)
#define _OMC_LIT85_data " isFunctionPointerCall: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT85,24,_OMC_LIT85_data);
#define _OMC_LIT85 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT85)
#define _OMC_LIT86_data "\n\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT86,2,_OMC_LIT86_data);
#define _OMC_LIT86 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT86)
#define _OMC_LIT87_data "("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT87,1,_OMC_LIT87_data);
#define _OMC_LIT87 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT87)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT88,1,4) {&IOStream_IOStreamType_LIST__desc,}};
#define _OMC_LIT88 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT88)
#define _OMC_LIT89_data ";\n  "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT89,4,_OMC_LIT89_data);
#define _OMC_LIT89 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT89)
#define _OMC_LIT90_data "  for "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT90,6,_OMC_LIT90_data);
#define _OMC_LIT90 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT90)
#define _OMC_LIT91_data " in "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT91,4,_OMC_LIT91_data);
#define _OMC_LIT91 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT91)
#define _OMC_LIT92_data " loop\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT92,6,_OMC_LIT92_data);
#define _OMC_LIT92 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT92)
#define _OMC_LIT93_data "  end for;\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT93,11,_OMC_LIT93_data);
#define _OMC_LIT93 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT93)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT94,2,1) {_OMC_LIT93,MMC_REFSTRUCTLIT(mmc_nil)}};
#define _OMC_LIT94 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT94)
#define _OMC_LIT95_data "  if "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT95,5,_OMC_LIT95_data);
#define _OMC_LIT95 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT95)
#define _OMC_LIT96_data " then\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT96,6,_OMC_LIT96_data);
#define _OMC_LIT96 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT96)
#define _OMC_LIT97_data "  else\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT97,7,_OMC_LIT97_data);
#define _OMC_LIT97 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT97)
#define _OMC_LIT98_data "  end if;\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT98,10,_OMC_LIT98_data);
#define _OMC_LIT98 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT98)
#define _OMC_LIT99_data "  elseif "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT99,9,_OMC_LIT99_data);
#define _OMC_LIT99 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT99)
#define _OMC_LIT100_data " /* array equation ["
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT100,20,_OMC_LIT100_data);
#define _OMC_LIT100 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT100)
#define _OMC_LIT101_data "] */"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT101,4,_OMC_LIT101_data);
#define _OMC_LIT101 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT101)
#define _OMC_LIT102_data "  end if"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT102,8,_OMC_LIT102_data);
#define _OMC_LIT102 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT102)
#define _OMC_LIT103_data "when "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT103,5,_OMC_LIT103_data);
#define _OMC_LIT103 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT103)
#define _OMC_LIT104_data " else"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT104,5,_OMC_LIT104_data);
#define _OMC_LIT104 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT104)
#define _OMC_LIT105_data "  when "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT105,7,_OMC_LIT105_data);
#define _OMC_LIT105 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT105)
#define _OMC_LIT106_data "  end when"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT106,10,_OMC_LIT106_data);
#define _OMC_LIT106 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT106)
#define _OMC_LIT107_data "  reinit("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT107,9,_OMC_LIT107_data);
#define _OMC_LIT107 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT107)
#define _OMC_LIT108_data "  /* unhandled equation in DAEDump.dumpEquationsStream FIXME! */\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT108,65,_OMC_LIT108_data);
#define _OMC_LIT108 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT108)
#define _OMC_LIT109_data " \""
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT109,2,_OMC_LIT109_data);
#define _OMC_LIT109 MMC_REFSTRINGLIT(_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)
#define _OMC_LIT111_data "initial equation\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT111,17,_OMC_LIT111_data);
#define _OMC_LIT111 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT111)
#define _OMC_LIT112_data "equation\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT112,9,_OMC_LIT112_data);
#define _OMC_LIT112 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT112)
#define _OMC_LIT113_data "constraint\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT113,11,_OMC_LIT113_data);
#define _OMC_LIT113 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT113)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT114,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_LIT114 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT114)
#define _OMC_LIT115_data "class "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT115,6,_OMC_LIT115_data);
#define _OMC_LIT115 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT115)
#define _OMC_LIT116_data "__OpenModelica_builtin"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT116,22,_OMC_LIT116_data);
#define _OMC_LIT116 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT116)
#define _OMC_LIT117_data "OpenModelica"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT117,12,_OMC_LIT117_data);
#define _OMC_LIT117 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT117)
#define _OMC_LIT118_data "inlineFunctions"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT118,15,_OMC_LIT118_data);
#define _OMC_LIT118 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT118)
#define _OMC_LIT119_data "Controls if function inlining should be performed."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT119,50,_OMC_LIT119_data);
#define _OMC_LIT119 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT119)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT120,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT119}};
#define _OMC_LIT120 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT120)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT121,5,3) {&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(87)),_OMC_LIT118,MMC_IMMEDIATE(MMC_TAGFIXNUM(1)),_OMC_LIT120}};
#define _OMC_LIT121 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT121)
#define _OMC_LIT122_data "constrs"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT122,7,_OMC_LIT122_data);
#define _OMC_LIT122 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT122)
#define _OMC_LIT123_data "algs"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT123,4,_OMC_LIT123_data);
#define _OMC_LIT123 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT123)
#define _OMC_LIT124_data "dae"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT124,3,_OMC_LIT124_data);
#define _OMC_LIT124 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT124)
#define _OMC_LIT125_data "["
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT125,1,_OMC_LIT125_data);
#define _OMC_LIT125 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT125)
#define _OMC_LIT126_data "]"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT126,1,_OMC_LIT126_data);
#define _OMC_LIT126 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT126)
#define _OMC_LIT127_data "VAR"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT127,3,_OMC_LIT127_data);
#define _OMC_LIT127 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT127)
#define _OMC_LIT128_data "= "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT128,2,_OMC_LIT128_data);
#define _OMC_LIT128 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT128)
#define _OMC_LIT129_data "DEFINE"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT129,6,_OMC_LIT129_data);
#define _OMC_LIT129 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT129)
#define _OMC_LIT130_data "EQUATION"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT130,8,_OMC_LIT130_data);
#define _OMC_LIT130 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT130)
#define _OMC_LIT131_data "="
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT131,1,_OMC_LIT131_data);
#define _OMC_LIT131 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT131)
#define _OMC_LIT132_data "EQUEQUATION"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT132,11,_OMC_LIT132_data);
#define _OMC_LIT132 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT132)
#define _OMC_LIT133_data "ALGORITHM"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT133,9,_OMC_LIT133_data);
#define _OMC_LIT133 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT133)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT134,4,3) {&Graphviz_Node_NODE__desc,_OMC_LIT133,MMC_REFSTRUCTLIT(mmc_nil),MMC_REFSTRUCTLIT(mmc_nil)}};
#define _OMC_LIT134 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT134)
#define _OMC_LIT135_data "INITIALDEFINE"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT135,13,_OMC_LIT135_data);
#define _OMC_LIT135 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT135)
#define _OMC_LIT136_data "INITIALEQUATION"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT136,15,_OMC_LIT136_data);
#define _OMC_LIT136 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT136)
#define _OMC_LIT137_data "INITIALALGORITHM"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT137,16,_OMC_LIT137_data);
#define _OMC_LIT137 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT137)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT138,4,3) {&Graphviz_Node_NODE__desc,_OMC_LIT137,MMC_REFSTRUCTLIT(mmc_nil),MMC_REFSTRUCTLIT(mmc_nil)}};
#define _OMC_LIT138 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT138)
#define _OMC_LIT139_data "COMP"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT139,4,_OMC_LIT139_data);
#define _OMC_LIT139 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT139)
#define _OMC_LIT140_data "\\\""
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT140,2,_OMC_LIT140_data);
#define _OMC_LIT140 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT140)
#define _OMC_LIT141_data "..."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT141,3,_OMC_LIT141_data);
#define _OMC_LIT141 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT141)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT142,2,1) {_OMC_LIT141,MMC_REFSTRUCTLIT(mmc_nil)}};
#define _OMC_LIT142 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT142)
#define _OMC_LIT143_data "VARS"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT143,4,_OMC_LIT143_data);
#define _OMC_LIT143 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT143)
#define _OMC_LIT144_data "shape"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT144,5,_OMC_LIT144_data);
#define _OMC_LIT144 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT144)
#define _OMC_LIT145_data "box"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT145,3,_OMC_LIT145_data);
#define _OMC_LIT145 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT145)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT146,3,3) {&Graphviz_Attribute_ATTR__desc,_OMC_LIT144,_OMC_LIT145}};
#define _OMC_LIT146 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT146)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT147,2,1) {_OMC_LIT146,MMC_REFSTRUCTLIT(mmc_nil)}};
#define _OMC_LIT147 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT147)
#define _OMC_LIT148_data "DAE"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT148,3,_OMC_LIT148_data);
#define _OMC_LIT148 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT148)
#define _OMC_LIT149_data "flow"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT149,4,_OMC_LIT149_data);
#define _OMC_LIT149 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT149)
#define _OMC_LIT150_data "stream"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT150,6,_OMC_LIT150_data);
#define _OMC_LIT150 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT150)
#define _OMC_LIT151_data "effort"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT151,6,_OMC_LIT151_data);
#define _OMC_LIT151 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT151)
#define _OMC_LIT152_data "non_connector"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT152,13,_OMC_LIT152_data);
#define _OMC_LIT152 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT152)
#define _OMC_LIT153_data "VAR("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT153,4,_OMC_LIT153_data);
#define _OMC_LIT153 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT153)
#define _OMC_LIT154_data "  comment:"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT154,10,_OMC_LIT154_data);
#define _OMC_LIT154 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT154)
#define _OMC_LIT155_data ", binding: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT155,11,_OMC_LIT155_data);
#define _OMC_LIT155 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT155)
#define _OMC_LIT156_data "DEFINE("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT156,7,_OMC_LIT156_data);
#define _OMC_LIT156 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT156)
#define _OMC_LIT157_data "INITIALDEFINE("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT157,14,_OMC_LIT157_data);
#define _OMC_LIT157 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT157)
#define _OMC_LIT158_data "EQUATION("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT158,9,_OMC_LIT158_data);
#define _OMC_LIT158 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT158)
#define _OMC_LIT159_data "INITIALEQUATION("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT159,16,_OMC_LIT159_data);
#define _OMC_LIT159 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT159)
#define _OMC_LIT160_data "ALGORITHM()"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT160,11,_OMC_LIT160_data);
#define _OMC_LIT160 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT160)
#define _OMC_LIT161_data "INITIALALGORITHM()"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT161,18,_OMC_LIT161_data);
#define _OMC_LIT161 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT161)
#define _OMC_LIT162_data "COMP("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT162,5,_OMC_LIT162_data);
#define _OMC_LIT162 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT162)
#define _OMC_LIT163_data "ARRAY_EQUATION("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT163,15,_OMC_LIT163_data);
#define _OMC_LIT163 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT163)
#define _OMC_LIT164_data "INITIAL_ARRAY_EQUATION("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT164,23,_OMC_LIT164_data);
#define _OMC_LIT164 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT164)
#define _OMC_LIT165_data "COMPLEX_EQUATION("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT165,17,_OMC_LIT165_data);
#define _OMC_LIT165 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT165)
#define _OMC_LIT166_data "INITIAL_COMPLEX_EQUATION("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT166,25,_OMC_LIT166_data);
#define _OMC_LIT166 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT166)
#define _OMC_LIT167_data "IF_EQUATION()"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT167,13,_OMC_LIT167_data);
#define _OMC_LIT167 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT167)
#define _OMC_LIT168_data "INITIAL_IF_EQUATION()"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT168,21,_OMC_LIT168_data);
#define _OMC_LIT168 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT168)
#define _OMC_LIT169_data "WHEN_EQUATION()"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT169,15,_OMC_LIT169_data);
#define _OMC_LIT169 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT169)
#define _OMC_LIT170_data "EXTOBJECTCLASS()"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT170,16,_OMC_LIT170_data);
#define _OMC_LIT170 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT170)
#define _OMC_LIT171_data "ASSERT("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT171,7,_OMC_LIT171_data);
#define _OMC_LIT171 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT171)
#define _OMC_LIT172_data "INITIAL_ASSERT("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT172,15,_OMC_LIT172_data);
#define _OMC_LIT172 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT172)
#define _OMC_LIT173_data "TERMINATE("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT173,10,_OMC_LIT173_data);
#define _OMC_LIT173 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT173)
#define _OMC_LIT174_data "INITIAL_TERMINATE("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT174,18,_OMC_LIT174_data);
#define _OMC_LIT174 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT174)
#define _OMC_LIT175_data "REINIT()"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT175,8,_OMC_LIT175_data);
#define _OMC_LIT175 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT175)
#define _OMC_LIT176_data "NORETCALL()"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT176,11,_OMC_LIT176_data);
#define _OMC_LIT176 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT176)
#define _OMC_LIT177_data "SM_COMP("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT177,8,_OMC_LIT177_data);
#define _OMC_LIT177 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT177)
#define _OMC_LIT178_data "FLAT_SM("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT178,8,_OMC_LIT178_data);
#define _OMC_LIT178 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT178)
#define _OMC_LIT179_data "UNKNOWN "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT179,8,_OMC_LIT179_data);
#define _OMC_LIT179 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT179)
#define _OMC_LIT180_data "DAE("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT180,4,_OMC_LIT180_data);
#define _OMC_LIT180 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT180)
#define _OMC_LIT181_data "elseif "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT181,7,_OMC_LIT181_data);
#define _OMC_LIT181 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT181)
#define _OMC_LIT182_data "else\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT182,5,_OMC_LIT182_data);
#define _OMC_LIT182 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT182)
#define _OMC_LIT183_data " := "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT183,4,_OMC_LIT183_data);
#define _OMC_LIT183 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT183)
#define _OMC_LIT184_data ") := "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT184,5,_OMC_LIT184_data);
#define _OMC_LIT184 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT184)
#define _OMC_LIT185_data "if "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT185,3,_OMC_LIT185_data);
#define _OMC_LIT185 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT185)
#define _OMC_LIT186_data "end if;\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT186,8,_OMC_LIT186_data);
#define _OMC_LIT186 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT186)
#define _OMC_LIT187_data "for "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT187,4,_OMC_LIT187_data);
#define _OMC_LIT187 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT187)
#define _OMC_LIT188_data "end for;\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT188,9,_OMC_LIT188_data);
#define _OMC_LIT188 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT188)
#define _OMC_LIT189_data "parfor "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT189,7,_OMC_LIT189_data);
#define _OMC_LIT189 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT189)
#define _OMC_LIT190_data "while "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT190,6,_OMC_LIT190_data);
#define _OMC_LIT190 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT190)
#define _OMC_LIT191_data "end while;\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT191,11,_OMC_LIT191_data);
#define _OMC_LIT191 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT191)
#define _OMC_LIT192_data "assert("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT192,7,_OMC_LIT192_data);
#define _OMC_LIT192 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT192)
#define _OMC_LIT193_data ");\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT193,3,_OMC_LIT193_data);
#define _OMC_LIT193 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT193)
#define _OMC_LIT194_data "terminate("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT194,10,_OMC_LIT194_data);
#define _OMC_LIT194 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT194)
#define _OMC_LIT195_data "return "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT195,7,_OMC_LIT195_data);
#define _OMC_LIT195 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT195)
#define _OMC_LIT196_data "return;\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT196,8,_OMC_LIT196_data);
#define _OMC_LIT196 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT196)
#define _OMC_LIT197_data "break;\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT197,7,_OMC_LIT197_data);
#define _OMC_LIT197 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT197)
#define _OMC_LIT198_data "reinit("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT198,7,_OMC_LIT198_data);
#define _OMC_LIT198 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT198)
#define _OMC_LIT199_data "failure(\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT199,9,_OMC_LIT199_data);
#define _OMC_LIT199 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT199)
#define _OMC_LIT200_data "arrayInit(\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT200,11,_OMC_LIT200_data);
#define _OMC_LIT200 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT200)
#define _OMC_LIT201_data "**ALGORITHM COULD NOT BE GENERATED(DAE.mo)**;\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT201,46,_OMC_LIT201_data);
#define _OMC_LIT201 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT201)
#define _OMC_LIT202_data "end when;\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT202,10,_OMC_LIT202_data);
#define _OMC_LIT202 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT202)
#define _OMC_LIT203_data "else"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT203,4,_OMC_LIT203_data);
#define _OMC_LIT203 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT203)
#define _OMC_LIT204_data " /* "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT204,4,_OMC_LIT204_data);
#define _OMC_LIT204 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT204)
#define _OMC_LIT205_data " */"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT205,3,_OMC_LIT205_data);
#define _OMC_LIT205 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT205)
#define _OMC_LIT206_data "end parfor;\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT206,12,_OMC_LIT206_data);
#define _OMC_LIT206 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT206)
#define _OMC_LIT207_data "begin failure\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT207,14,_OMC_LIT207_data);
#define _OMC_LIT207 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT207)
#define _OMC_LIT208_data "end try;\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT208,9,_OMC_LIT208_data);
#define _OMC_LIT208 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT208)
#define _OMC_LIT209_data "/* "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT209,3,_OMC_LIT209_data);
#define _OMC_LIT209 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT209)
#define _OMC_LIT210_data " := array_alloc("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT210,16,_OMC_LIT210_data);
#define _OMC_LIT210 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT210)
#define _OMC_LIT211_data ") */;\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT211,6,_OMC_LIT211_data);
#define _OMC_LIT211 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT211)
#define _OMC_LIT212_data "**ALGORITHM**;\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT212,15,_OMC_LIT212_data);
#define _OMC_LIT212 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT212)
#define _OMC_LIT213_data "protected "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT213,10,_OMC_LIT213_data);
#define _OMC_LIT213 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT213)
#define _OMC_LIT214_data "constant "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT214,9,_OMC_LIT214_data);
#define _OMC_LIT214 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT214)
#define _OMC_LIT215_data "input "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT215,6,_OMC_LIT215_data);
#define _OMC_LIT215 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT215)
#define _OMC_LIT216_data "\"Inline never\""
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT216,14,_OMC_LIT216_data);
#define _OMC_LIT216 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT216)
#define _OMC_LIT217_data " \"Inline after index reduction\""
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT217,31,_OMC_LIT217_data);
#define _OMC_LIT217 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT217)
#define _OMC_LIT218_data " \"Inline before index reduction\""
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT218,32,_OMC_LIT218_data);
#define _OMC_LIT218 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT218)
#define _OMC_LIT219_data "\"Inline if necessary\""
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT219,21,_OMC_LIT219_data);
#define _OMC_LIT219 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT219)
#define _OMC_LIT220_data "\"unknown\""
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT220,9,_OMC_LIT220_data);
#define _OMC_LIT220 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT220)
#define _OMC_LIT221_data "parallel "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT221,9,_OMC_LIT221_data);
#define _OMC_LIT221 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT221)
#define _OMC_LIT222_data "kernel "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT222,7,_OMC_LIT222_data);
#define _OMC_LIT222 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT222)
#define _OMC_LIT223_data "#dumpParallelismStr failed#"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT223,27,_OMC_LIT223_data);
#define _OMC_LIT223 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT223)
#define _OMC_LIT224_data "noDerivative("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT224,13,_OMC_LIT224_data);
#define _OMC_LIT224 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT224)
#define _OMC_LIT225_data "zeroDerivative"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT225,14,_OMC_LIT225_data);
#define _OMC_LIT225 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT225)
#define _OMC_LIT226_data "\n extends ExternalObject;\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT226,26,_OMC_LIT226_data);
#define _OMC_LIT226 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT226)
#define _OMC_LIT227_data " ::= "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT227,5,_OMC_LIT227_data);
#define _OMC_LIT227 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT227)
#define _OMC_LIT228_data "emptyStreamOfTypeList"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT228,21,_OMC_LIT228_data);
#define _OMC_LIT228 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT228)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT229,2,4) {&IOStream_IOStreamData_LIST__DATA__desc,MMC_REFSTRUCTLIT(mmc_nil)}};
#define _OMC_LIT229 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT229)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT230,4,3) {&IOStream_IOStream_IOSTREAM__desc,_OMC_LIT228,_OMC_LIT88,_OMC_LIT229}};
#define _OMC_LIT230 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT230)
#define _OMC_LIT231_data "/* FIXME: UNHANDLED_EQUATION in DAEDump.dumpEquation */;\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT231,57,_OMC_LIT231_data);
#define _OMC_LIT231 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT231)
#define _OMC_LIT232_data "Evaluate"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT232,8,_OMC_LIT232_data);
#define _OMC_LIT232 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT232)
#define _OMC_LIT233_data "Inline"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT233,6,_OMC_LIT233_data);
#define _OMC_LIT233 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT233)
#define _OMC_LIT234_data "LateInline"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT234,10,_OMC_LIT234_data);
#define _OMC_LIT234 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT234)
#define _OMC_LIT235_data "derivative"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT235,10,_OMC_LIT235_data);
#define _OMC_LIT235 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT235)
#define _OMC_LIT236_data "inverse"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT236,7,_OMC_LIT236_data);
#define _OMC_LIT236 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT236)
#define _OMC_LIT237_data "smoothOrder"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT237,11,_OMC_LIT237_data);
#define _OMC_LIT237 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT237)
#define _OMC_LIT238_data "InlineAfterIndexReduction"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT238,25,_OMC_LIT238_data);
#define _OMC_LIT238 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT238)
#define _OMC_LIT239_data "GenerateEvents"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT239,14,_OMC_LIT239_data);
#define _OMC_LIT239 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT239)
#define _OMC_LIT240_data "annotation"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT240,10,_OMC_LIT240_data);
#define _OMC_LIT240 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT240)
#define _OMC_LIT241_data "parglobal "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT241,10,_OMC_LIT241_data);
#define _OMC_LIT241 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT241)
#define _OMC_LIT242_data "parlocal "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT242,9,_OMC_LIT242_data);
#define _OMC_LIT242 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT242)
#define _OMC_LIT243_data "startOrigin = "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT243,14,_OMC_LIT243_data);
#define _OMC_LIT243 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT243)
#define _OMC_LIT244_data "showStartOrigin"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT244,15,_OMC_LIT244_data);
#define _OMC_LIT244 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT244)
#define _OMC_LIT245_data "Enables dumping of the DAE startOrigin attribute of the variables."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT245,66,_OMC_LIT245_data);
#define _OMC_LIT245 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT245)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT246,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT245}};
#define _OMC_LIT246 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT246)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT247,5,3) {&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(74)),_OMC_LIT244,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),_OMC_LIT246}};
#define _OMC_LIT247 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT247)
#define _OMC_LIT248_data "quantity = "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT248,11,_OMC_LIT248_data);
#define _OMC_LIT248 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT248)
#define _OMC_LIT249_data "unit = "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT249,7,_OMC_LIT249_data);
#define _OMC_LIT249 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT249)
#define _OMC_LIT250_data "displayUnit = "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT250,14,_OMC_LIT250_data);
#define _OMC_LIT250 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT250)
#define _OMC_LIT251_data "stateSelect = "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT251,14,_OMC_LIT251_data);
#define _OMC_LIT251 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT251)
#define _OMC_LIT252_data "min = "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT252,6,_OMC_LIT252_data);
#define _OMC_LIT252 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT252)
#define _OMC_LIT253_data "max = "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT253,6,_OMC_LIT253_data);
#define _OMC_LIT253 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT253)
#define _OMC_LIT254_data "nominal = "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT254,10,_OMC_LIT254_data);
#define _OMC_LIT254 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT254)
#define _OMC_LIT255_data "start = "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT255,8,_OMC_LIT255_data);
#define _OMC_LIT255 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT255)
#define _OMC_LIT256_data "fixed = "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT256,8,_OMC_LIT256_data);
#define _OMC_LIT256 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT256)
#define _OMC_LIT257_data "uncertainty = "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT257,14,_OMC_LIT257_data);
#define _OMC_LIT257 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT257)
#define _OMC_LIT258_data "distribution = "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT258,15,_OMC_LIT258_data);
#define _OMC_LIT258 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT258)
#define _OMC_LIT259_data "(unknown VariableAttributes)"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT259,28,_OMC_LIT259_data);
#define _OMC_LIT259 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT259)
#define _OMC_LIT260_data "Distribution(name = "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT260,20,_OMC_LIT260_data);
#define _OMC_LIT260 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT260)
#define _OMC_LIT261_data ", params = "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT261,11,_OMC_LIT261_data);
#define _OMC_LIT261 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT261)
#define _OMC_LIT262_data ", paramNames= "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT262,14,_OMC_LIT262_data);
#define _OMC_LIT262 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT262)
#define _OMC_LIT263_data "Uncertainty.given"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT263,17,_OMC_LIT263_data);
#define _OMC_LIT263 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT263)
#define _OMC_LIT264_data "Uncertainty.sought"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT264,18,_OMC_LIT264_data);
#define _OMC_LIT264 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT264)
#define _OMC_LIT265_data "Uncertainty.refine"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT265,18,_OMC_LIT265_data);
#define _OMC_LIT265 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT265)
#define _OMC_LIT266_data "StateSelect.never"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT266,17,_OMC_LIT266_data);
#define _OMC_LIT266 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT266)
#define _OMC_LIT267_data "StateSelect.avoid"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT267,17,_OMC_LIT267_data);
#define _OMC_LIT267 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT267)
#define _OMC_LIT268_data "StateSelect.prefer"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT268,18,_OMC_LIT268_data);
#define _OMC_LIT268 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT268)
#define _OMC_LIT269_data "StateSelect.always"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT269,18,_OMC_LIT269_data);
#define _OMC_LIT269 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT269)
#define _OMC_LIT270_data "StateSelect.default"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT270,19,_OMC_LIT270_data);
#define _OMC_LIT270 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT270)
#define _OMC_LIT271_data "output "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT271,7,_OMC_LIT271_data);
#define _OMC_LIT271 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT271)
#define _OMC_LIT272_data "        "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT272,8,_OMC_LIT272_data);
#define _OMC_LIT272 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT272)
#define _OMC_LIT273_data " parglobal "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT273,11,_OMC_LIT273_data);
#define _OMC_LIT273 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT273)
#define _OMC_LIT274_data " parlocal "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT274,10,_OMC_LIT274_data);
#define _OMC_LIT274 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT274)
#define _OMC_LIT275_data " input  "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT275,8,_OMC_LIT275_data);
#define _OMC_LIT275 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT275)
#define _OMC_LIT276_data " output "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT276,8,_OMC_LIT276_data);
#define _OMC_LIT276 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT276)
#define _OMC_LIT277_data "parameter "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT277,10,_OMC_LIT277_data);
#define _OMC_LIT277 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT277)
#define _OMC_LIT278_data "discrete "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT278,9,_OMC_LIT278_data);
#define _OMC_LIT278 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT278)
#define _OMC_LIT279_data " constant  "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT279,11,_OMC_LIT279_data);
#define _OMC_LIT279 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT279)
#define _OMC_LIT280_data " parameter "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT280,11,_OMC_LIT280_data);
#define _OMC_LIT280 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT280)
#define _OMC_LIT281_data " discrete  "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT281,11,_OMC_LIT281_data);
#define _OMC_LIT281 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT281)
#define _OMC_LIT282_data "           "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT282,11,_OMC_LIT282_data);
#define _OMC_LIT282 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT282)
#define _OMC_LIT283_data "size("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT283,5,_OMC_LIT283_data);
#define _OMC_LIT283 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT283)
#define _OMC_LIT284_data "external \""
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT284,10,_OMC_LIT284_data);
#define _OMC_LIT284 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT284)
#define _OMC_LIT285_data "\" "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT285,2,_OMC_LIT285_data);
#define _OMC_LIT285 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT285)
#define _OMC_LIT286_data ");"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT286,2,_OMC_LIT286_data);
#define _OMC_LIT286 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT286)
#define _OMC_LIT287_data "(start="
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT287,7,_OMC_LIT287_data);
#define _OMC_LIT287 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT287)
#define _OMC_LIT288_data " + "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT288,3,_OMC_LIT288_data);
#define _OMC_LIT288 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT288)
#define _OMC_LIT289_data " - "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT289,3,_OMC_LIT289_data);
#define _OMC_LIT289 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT289)
#define _OMC_LIT290_data " .* "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT290,4,_OMC_LIT290_data);
#define _OMC_LIT290 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT290)
#define _OMC_LIT291_data " / "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT291,3,_OMC_LIT291_data);
#define _OMC_LIT291 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT291)
#define _OMC_LIT292_data " ^ "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT292,3,_OMC_LIT292_data);
#define _OMC_LIT292 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT292)
#define _OMC_LIT293_data " ./ "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT293,4,_OMC_LIT293_data);
#define _OMC_LIT293 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT293)
#define _OMC_LIT294_data " * "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT294,3,_OMC_LIT294_data);
#define _OMC_LIT294 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT294)
#define _OMC_LIT295_data " .+ "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT295,4,_OMC_LIT295_data);
#define _OMC_LIT295 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT295)
#define _OMC_LIT296_data " .- "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT296,4,_OMC_LIT296_data);
#define _OMC_LIT296 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT296)
#define _OMC_LIT297_data " .^ "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT297,4,_OMC_LIT297_data);
#define _OMC_LIT297 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT297)
#define _OMC_LIT298_data " or "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT298,4,_OMC_LIT298_data);
#define _OMC_LIT298 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT298)
#define _OMC_LIT299_data " and "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT299,5,_OMC_LIT299_data);
#define _OMC_LIT299 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT299)
#define _OMC_LIT300_data " not "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT300,5,_OMC_LIT300_data);
#define _OMC_LIT300 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT300)
#define _OMC_LIT301_data " <= "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT301,4,_OMC_LIT301_data);
#define _OMC_LIT301 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT301)
#define _OMC_LIT302_data " > "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT302,3,_OMC_LIT302_data);
#define _OMC_LIT302 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT302)
#define _OMC_LIT303_data " >= "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT303,4,_OMC_LIT303_data);
#define _OMC_LIT303 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT303)
#define _OMC_LIT304_data " < "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT304,3,_OMC_LIT304_data);
#define _OMC_LIT304 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT304)
#define _OMC_LIT305_data " == "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT305,4,_OMC_LIT305_data);
#define _OMC_LIT305 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT305)
#define _OMC_LIT306_data " <> "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT306,4,_OMC_LIT306_data);
#define _OMC_LIT306 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT306)
#define _OMC_LIT307_data " Userdefined:"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT307,13,_OMC_LIT307_data);
#define _OMC_LIT307 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT307)
#define _OMC_LIT308_data " --UNDEFINED-- "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT308,15,_OMC_LIT308_data);
#define _OMC_LIT308 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT308)
#define _OMC_LIT309_data " ADD "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT309,5,_OMC_LIT309_data);
#define _OMC_LIT309 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT309)
#define _OMC_LIT310_data " SUB "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT310,5,_OMC_LIT310_data);
#define _OMC_LIT310 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT310)
#define _OMC_LIT311_data " MUL "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT311,5,_OMC_LIT311_data);
#define _OMC_LIT311 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT311)
#define _OMC_LIT312_data " DIV "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT312,5,_OMC_LIT312_data);
#define _OMC_LIT312 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT312)
#define _OMC_LIT313_data " POW "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT313,5,_OMC_LIT313_data);
#define _OMC_LIT313 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT313)
#define _OMC_LIT314_data " UMINUS "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT314,8,_OMC_LIT314_data);
#define _OMC_LIT314 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT314)
#define _OMC_LIT315_data " UMINUS_ARR "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT315,12,_OMC_LIT315_data);
#define _OMC_LIT315 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT315)
#define _OMC_LIT316_data " ADD_ARR "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT316,9,_OMC_LIT316_data);
#define _OMC_LIT316 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT316)
#define _OMC_LIT317_data " SUB_ARR "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT317,9,_OMC_LIT317_data);
#define _OMC_LIT317 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT317)
#define _OMC_LIT318_data " MUL_ARR "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT318,9,_OMC_LIT318_data);
#define _OMC_LIT318 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT318)
#define _OMC_LIT319_data " DIV_ARR "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT319,9,_OMC_LIT319_data);
#define _OMC_LIT319 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT319)
#define _OMC_LIT320_data " MUL_ARRAY_SCALAR "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT320,18,_OMC_LIT320_data);
#define _OMC_LIT320 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT320)
#define _OMC_LIT321_data " ADD_ARRAY_SCALAR "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT321,18,_OMC_LIT321_data);
#define _OMC_LIT321 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT321)
#define _OMC_LIT322_data " SUB_SCALAR_ARRAY "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT322,18,_OMC_LIT322_data);
#define _OMC_LIT322 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT322)
#define _OMC_LIT323_data " MUL_SCALAR_PRODUCT "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT323,20,_OMC_LIT323_data);
#define _OMC_LIT323 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT323)
#define _OMC_LIT324_data " MUL_MATRIX_PRODUCT "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT324,20,_OMC_LIT324_data);
#define _OMC_LIT324 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT324)
#define _OMC_LIT325_data " DIV_ARRAY_SCALAR "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT325,18,_OMC_LIT325_data);
#define _OMC_LIT325 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT325)
#define _OMC_LIT326_data " DIV_SCALAR_ARRAY "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT326,18,_OMC_LIT326_data);
#define _OMC_LIT326 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT326)
#define _OMC_LIT327_data " POW_ARRAY_SCALAR "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT327,18,_OMC_LIT327_data);
#define _OMC_LIT327 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT327)
#define _OMC_LIT328_data " POW_SCALAR_ARRAY "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT328,18,_OMC_LIT328_data);
#define _OMC_LIT328 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT328)
#define _OMC_LIT329_data " POW_ARR "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT329,9,_OMC_LIT329_data);
#define _OMC_LIT329 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT329)
#define _OMC_LIT330_data " POW_ARR2 "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT330,10,_OMC_LIT330_data);
#define _OMC_LIT330 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT330)
#define _OMC_LIT331_data " OR "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT331,4,_OMC_LIT331_data);
#define _OMC_LIT331 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT331)
#define _OMC_LIT332_data " AND "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT332,5,_OMC_LIT332_data);
#define _OMC_LIT332 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT332)
#define _OMC_LIT333_data " NOT "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT333,5,_OMC_LIT333_data);
#define _OMC_LIT333 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT333)
#define _OMC_LIT334_data " LESSEQ "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT334,8,_OMC_LIT334_data);
#define _OMC_LIT334 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT334)
#define _OMC_LIT335_data " GREATER "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT335,9,_OMC_LIT335_data);
#define _OMC_LIT335 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT335)
#define _OMC_LIT336_data " GREATEREQ "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT336,11,_OMC_LIT336_data);
#define _OMC_LIT336 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT336)
#define _OMC_LIT337_data " LESS "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT337,6,_OMC_LIT337_data);
#define _OMC_LIT337 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT337)
#define _OMC_LIT338_data " EQUAL "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT338,7,_OMC_LIT338_data);
#define _OMC_LIT338 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT338)
#define _OMC_LIT339_data " NEQUAL "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT339,8,_OMC_LIT339_data);
#define _OMC_LIT339 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT339)
#include "util/modelica.h"
#include "DAEDump_includes.h"
#if !defined(PROTECTED_FUNCTION_STATIC)
#define PROTECTED_FUNCTION_STATIC
#endif
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_withinString(threadData_t *threadData, modelica_metatype _w);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_withinString,2,0) {(void*) boxptr_DAEDump_withinString,0}};
#define boxvar_DAEDump_withinString MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_withinString)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDump_connectsStr(threadData_t *threadData, modelica_metatype _inLst);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_connectsStr,2,0) {(void*) boxptr_DAEDump_connectsStr,0}};
#define boxvar_DAEDump_connectsStr MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_connectsStr)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDump_dumpFunctionStream(threadData_t *threadData, modelica_metatype _inElement, modelica_metatype _inStream);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpFunctionStream,2,0) {(void*) boxptr_DAEDump_dumpFunctionStream,0}};
#define boxvar_DAEDump_dumpFunctionStream MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpFunctionStream)
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_dumpExtObjClassStr(threadData_t *threadData, modelica_metatype _inElement);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpExtObjClassStr,2,0) {(void*) boxptr_DAEDump_dumpExtObjClassStr,0}};
#define boxvar_DAEDump_dumpExtObjClassStr MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpExtObjClassStr)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDump_dumpVarStream(threadData_t *threadData, modelica_metatype _inElement, modelica_boolean _printTypeDimension, modelica_metatype _inStream);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDump_dumpVarStream(threadData_t *threadData, modelica_metatype _inElement, modelica_metatype _printTypeDimension, modelica_metatype _inStream);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpVarStream,2,0) {(void*) boxptr_DAEDump_dumpVarStream,0}};
#define boxvar_DAEDump_dumpVarStream MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpVarStream)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDump_dumpInitialEquationsStream(threadData_t *threadData, modelica_metatype _inElementLst, modelica_metatype _inStream);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpInitialEquationsStream,2,0) {(void*) boxptr_DAEDump_dumpInitialEquationsStream,0}};
#define boxvar_DAEDump_dumpInitialEquationsStream MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpInitialEquationsStream)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDump_dumpIfEquationsStream(threadData_t *threadData, modelica_metatype _iconds, modelica_metatype _itbs, modelica_metatype _inStream);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpIfEquationsStream,2,0) {(void*) boxptr_DAEDump_dumpIfEquationsStream,0}};
#define boxvar_DAEDump_dumpIfEquationsStream MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpIfEquationsStream)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDump_dumpEquationsStream(threadData_t *threadData, modelica_metatype _inElementLst, modelica_metatype _inStream);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpEquationsStream,2,0) {(void*) boxptr_DAEDump_dumpEquationsStream,0}};
#define boxvar_DAEDump_dumpEquationsStream MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpEquationsStream)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDump_dumpInitialAlgorithmsStream(threadData_t *threadData, modelica_metatype _inElementLst, modelica_metatype _inStream);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpInitialAlgorithmsStream,2,0) {(void*) boxptr_DAEDump_dumpInitialAlgorithmsStream,0}};
#define boxvar_DAEDump_dumpInitialAlgorithmsStream MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpInitialAlgorithmsStream)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDump_dumpCompElementStream(threadData_t *threadData, modelica_metatype _inElement, modelica_metatype _inStream);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpCompElementStream,2,0) {(void*) boxptr_DAEDump_dumpCompElementStream,0}};
#define boxvar_DAEDump_dumpCompElementStream MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpCompElementStream)
PROTECTED_FUNCTION_STATIC modelica_boolean omc_DAEDump_isVisibleFunction(threadData_t *threadData, modelica_metatype _inFunc, modelica_boolean _inHideRecordCons, modelica_boolean _inInliningEnabled);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDump_isVisibleFunction(threadData_t *threadData, modelica_metatype _inFunc, modelica_metatype _inHideRecordCons, modelica_metatype _inInliningEnabled);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_isVisibleFunction,2,0) {(void*) boxptr_DAEDump_isVisibleFunction,0}};
#define boxvar_DAEDump_isVisibleFunction MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_isVisibleFunction)
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_unparseType(threadData_t *threadData, modelica_metatype _tp);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_unparseType,2,0) {(void*) boxptr_DAEDump_unparseType,0}};
#define boxvar_DAEDump_unparseType MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_unparseType)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDump_buildGrElement(threadData_t *threadData, modelica_metatype _inElement);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_buildGrElement,2,0) {(void*) boxptr_DAEDump_buildGrElement,0}};
#define boxvar_DAEDump_buildGrElement MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_buildGrElement)
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_printExpStrSpecial(threadData_t *threadData, modelica_metatype _inExp);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_printExpStrSpecial,2,0) {(void*) boxptr_DAEDump_printExpStrSpecial,0}};
#define boxvar_DAEDump_printExpStrSpecial MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_printExpStrSpecial)
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_buildGrVarStr(threadData_t *threadData, modelica_metatype _inElement);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_buildGrVarStr,2,0) {(void*) boxptr_DAEDump_buildGrVarStr,0}};
#define boxvar_DAEDump_buildGrVarStr MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_buildGrVarStr)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDump_buildGrVars(threadData_t *threadData, modelica_metatype _inElementLst);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_buildGrVars,2,0) {(void*) boxptr_DAEDump_buildGrVars,0}};
#define boxvar_DAEDump_buildGrVars MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_buildGrVars)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDump_buildGrList(threadData_t *threadData, modelica_metatype _inElementLst);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_buildGrList,2,0) {(void*) boxptr_DAEDump_buildGrList,0}};
#define boxvar_DAEDump_buildGrList MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_buildGrList)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDump_buildGraphviz(threadData_t *threadData, modelica_metatype _inDAElist);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_buildGraphviz,2,0) {(void*) boxptr_DAEDump_buildGraphviz,0}};
#define boxvar_DAEDump_buildGraphviz MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_buildGraphviz)
PROTECTED_FUNCTION_STATIC void omc_DAEDump_dumpDebugElist(threadData_t *threadData, modelica_metatype _inElementLst);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpDebugElist,2,0) {(void*) boxptr_DAEDump_dumpDebugElist,0}};
#define boxvar_DAEDump_dumpDebugElist MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpDebugElist)
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_indentStr(threadData_t *threadData, modelica_integer _inInteger);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDump_indentStr(threadData_t *threadData, modelica_metatype _inInteger);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_indentStr,2,0) {(void*) boxptr_DAEDump_indentStr,0}};
#define boxvar_DAEDump_indentStr MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_indentStr)
PROTECTED_FUNCTION_STATIC void omc_DAEDump_indent(threadData_t *threadData, modelica_integer _inInteger);
PROTECTED_FUNCTION_STATIC void boxptr_DAEDump_indent(threadData_t *threadData, modelica_metatype _inInteger);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_indent,2,0) {(void*) boxptr_DAEDump_indent,0}};
#define boxvar_DAEDump_indent MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_indent)
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_ppElseStr(threadData_t *threadData, modelica_metatype _inElse, modelica_integer _inInteger);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDump_ppElseStr(threadData_t *threadData, modelica_metatype _inElse, modelica_metatype _inInteger);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_ppElseStr,2,0) {(void*) boxptr_DAEDump_ppElseStr,0}};
#define boxvar_DAEDump_ppElseStr MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_ppElseStr)
PROTECTED_FUNCTION_STATIC void omc_DAEDump_ppElse(threadData_t *threadData, modelica_metatype _inElse, modelica_integer _inInteger);
PROTECTED_FUNCTION_STATIC void boxptr_DAEDump_ppElse(threadData_t *threadData, modelica_metatype _inElse, modelica_metatype _inInteger);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_ppElse,2,0) {(void*) boxptr_DAEDump_ppElse,0}};
#define boxvar_DAEDump_ppElse MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_ppElse)
PROTECTED_FUNCTION_STATIC void omc_DAEDump_ppStmtList(threadData_t *threadData, modelica_metatype _inAlgorithmStatementLst, modelica_integer _inInteger);
PROTECTED_FUNCTION_STATIC void boxptr_DAEDump_ppStmtList(threadData_t *threadData, modelica_metatype _inAlgorithmStatementLst, modelica_metatype _inInteger);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_ppStmtList,2,0) {(void*) boxptr_DAEDump_ppStmtList,0}};
#define boxvar_DAEDump_ppStmtList MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_ppStmtList)
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_ppWhenStmtStr(threadData_t *threadData, modelica_metatype _inStatement, modelica_integer _inInteger);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDump_ppWhenStmtStr(threadData_t *threadData, modelica_metatype _inStatement, modelica_metatype _inInteger);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_ppWhenStmtStr,2,0) {(void*) boxptr_DAEDump_ppWhenStmtStr,0}};
#define boxvar_DAEDump_ppWhenStmtStr MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_ppWhenStmtStr)
PROTECTED_FUNCTION_STATIC void omc_DAEDump_ppStmt(threadData_t *threadData, modelica_metatype _inStatement, modelica_integer _inInteger);
PROTECTED_FUNCTION_STATIC void boxptr_DAEDump_ppStmt(threadData_t *threadData, modelica_metatype _inStatement, modelica_metatype _inInteger);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_ppStmt,2,0) {(void*) boxptr_DAEDump_ppStmt,0}};
#define boxvar_DAEDump_ppStmt MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_ppStmt)
PROTECTED_FUNCTION_STATIC void omc_DAEDump_ppStatement(threadData_t *threadData, modelica_metatype _alg);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_ppStatement,2,0) {(void*) boxptr_DAEDump_ppStatement,0}};
#define boxvar_DAEDump_ppStatement MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_ppStatement)
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_printRecordConstructorBinding(threadData_t *threadData, modelica_metatype _binding);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_printRecordConstructorBinding,2,0) {(void*) boxptr_DAEDump_printRecordConstructorBinding,0}};
#define boxvar_DAEDump_printRecordConstructorBinding MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_printRecordConstructorBinding)
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_printRecordConstructorInputAttrStr(threadData_t *threadData, modelica_metatype _inAttributes);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_printRecordConstructorInputAttrStr,2,0) {(void*) boxptr_DAEDump_printRecordConstructorInputAttrStr,0}};
#define boxvar_DAEDump_printRecordConstructorInputAttrStr MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_printRecordConstructorInputAttrStr)
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_printRecordConstructorInputStr(threadData_t *threadData, modelica_metatype _inVar);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_printRecordConstructorInputStr,2,0) {(void*) boxptr_DAEDump_printRecordConstructorInputStr,0}};
#define boxvar_DAEDump_printRecordConstructorInputStr MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_printRecordConstructorInputStr)
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_printRecordConstructorInputsStr(threadData_t *threadData, modelica_metatype _itp);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_printRecordConstructorInputsStr,2,0) {(void*) boxptr_DAEDump_printRecordConstructorInputsStr,0}};
#define boxvar_DAEDump_printRecordConstructorInputsStr MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_printRecordConstructorInputsStr)
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_dumpParallelismStr(threadData_t *threadData, modelica_metatype _inType);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpParallelismStr,2,0) {(void*) boxptr_DAEDump_dumpParallelismStr,0}};
#define boxvar_DAEDump_dumpParallelismStr MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpParallelismStr)
PROTECTED_FUNCTION_STATIC void omc_DAEDump_dumpFunction(threadData_t *threadData, modelica_metatype _inElement);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpFunction,2,0) {(void*) boxptr_DAEDump_dumpFunction,0}};
#define boxvar_DAEDump_dumpFunction MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpFunction)
PROTECTED_FUNCTION_STATIC void omc_DAEDump_dumpExtObjectClass(threadData_t *threadData, modelica_metatype _inElement);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpExtObjectClass,2,0) {(void*) boxptr_DAEDump_dumpExtObjectClass,0}};
#define boxvar_DAEDump_dumpExtObjectClass MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpExtObjectClass)
PROTECTED_FUNCTION_STATIC void omc_DAEDump_dumpInitialAlgorithm(threadData_t *threadData, modelica_metatype _inElement);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpInitialAlgorithm,2,0) {(void*) boxptr_DAEDump_dumpInitialAlgorithm,0}};
#define boxvar_DAEDump_dumpInitialAlgorithm MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpInitialAlgorithm)
PROTECTED_FUNCTION_STATIC void omc_DAEDump_dumpInitialEquation(threadData_t *threadData, modelica_metatype _inElement);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpInitialEquation,2,0) {(void*) boxptr_DAEDump_dumpInitialEquation,0}};
#define boxvar_DAEDump_dumpInitialEquation MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpInitialEquation)
PROTECTED_FUNCTION_STATIC void omc_DAEDump_dumpEquation(threadData_t *threadData, modelica_metatype _inElement);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpEquation,2,0) {(void*) boxptr_DAEDump_dumpEquation,0}};
#define boxvar_DAEDump_dumpEquation MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpEquation)
PROTECTED_FUNCTION_STATIC void omc_DAEDump_dumpCommentOption(threadData_t *threadData, modelica_metatype _comment);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpCommentOption,2,0) {(void*) boxptr_DAEDump_dumpCommentOption,0}};
#define boxvar_DAEDump_dumpCommentOption MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpCommentOption)
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_dumpAnnotationStr(threadData_t *threadData, modelica_metatype _inComment, modelica_string _inPrefix, modelica_string _inSuffix);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpAnnotationStr,2,0) {(void*) boxptr_DAEDump_dumpAnnotationStr,0}};
#define boxvar_DAEDump_dumpAnnotationStr MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpAnnotationStr)
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_dumpCompAnnotationStr(threadData_t *threadData, modelica_metatype _inComment);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpCompAnnotationStr,2,0) {(void*) boxptr_DAEDump_dumpCompAnnotationStr,0}};
#define boxvar_DAEDump_dumpCompAnnotationStr MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpCompAnnotationStr)
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_dumpClassAnnotationStr(threadData_t *threadData, modelica_metatype _inComment);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpClassAnnotationStr,2,0) {(void*) boxptr_DAEDump_dumpClassAnnotationStr,0}};
#define boxvar_DAEDump_dumpClassAnnotationStr MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpClassAnnotationStr)
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_dumpCommentStr(threadData_t *threadData, modelica_metatype _inComment);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpCommentStr,2,0) {(void*) boxptr_DAEDump_dumpCommentStr,0}};
#define boxvar_DAEDump_dumpCommentStr MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpCommentStr)
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_dumpVarVisibilityStr(threadData_t *threadData, modelica_metatype _prot);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpVarVisibilityStr,2,0) {(void*) boxptr_DAEDump_dumpVarVisibilityStr,0}};
#define boxvar_DAEDump_dumpVarVisibilityStr MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpVarVisibilityStr)
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_getStartOrigin(threadData_t *threadData, modelica_metatype _inStartOrigin);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_getStartOrigin,2,0) {(void*) boxptr_DAEDump_getStartOrigin,0}};
#define boxvar_DAEDump_getStartOrigin MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_getStartOrigin)
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_dumpDistributionStr(threadData_t *threadData, modelica_metatype _distribution);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpDistributionStr,2,0) {(void*) boxptr_DAEDump_dumpDistributionStr,0}};
#define boxvar_DAEDump_dumpDistributionStr MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpDistributionStr)
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_dumpUncertaintyStr(threadData_t *threadData, modelica_metatype _uncertainty);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpUncertaintyStr,2,0) {(void*) boxptr_DAEDump_dumpUncertaintyStr,0}};
#define boxvar_DAEDump_dumpUncertaintyStr MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpUncertaintyStr)
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_dumpStateSelectStr(threadData_t *threadData, modelica_metatype _inStateSelect);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpStateSelectStr,2,0) {(void*) boxptr_DAEDump_dumpStateSelectStr,0}};
#define boxvar_DAEDump_dumpStateSelectStr MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpStateSelectStr)
PROTECTED_FUNCTION_STATIC void omc_DAEDump_dumpParallelism(threadData_t *threadData, modelica_metatype _inVarParallelism);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpParallelism,2,0) {(void*) boxptr_DAEDump_dumpParallelism,0}};
#define boxvar_DAEDump_dumpParallelism MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpParallelism)
PROTECTED_FUNCTION_STATIC void omc_DAEDump_dumpDirection(threadData_t *threadData, modelica_metatype _inVarDirection);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpDirection,2,0) {(void*) boxptr_DAEDump_dumpDirection,0}};
#define boxvar_DAEDump_dumpDirection MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpDirection)
PROTECTED_FUNCTION_STATIC void omc_DAEDump_dumpKind(threadData_t *threadData, modelica_metatype _inVarKind);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpKind,2,0) {(void*) boxptr_DAEDump_dumpKind,0}};
#define boxvar_DAEDump_dumpKind MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpKind)
PROTECTED_FUNCTION_STATIC void omc_DAEDump_dumpVars(threadData_t *threadData, modelica_metatype _lst, modelica_boolean _printTypeDimension);
PROTECTED_FUNCTION_STATIC void boxptr_DAEDump_dumpVars(threadData_t *threadData, modelica_metatype _lst, modelica_metatype _printTypeDimension);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpVars,2,0) {(void*) boxptr_DAEDump_dumpVars,0}};
#define boxvar_DAEDump_dumpVars MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpVars)
PROTECTED_FUNCTION_STATIC void omc_DAEDump_dumpCompElement(threadData_t *threadData, modelica_metatype _inElement);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpCompElement,2,0) {(void*) boxptr_DAEDump_dumpCompElement,0}};
#define boxvar_DAEDump_dumpCompElement MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpCompElement)
PROTECTED_FUNCTION_STATIC void omc_DAEDump_dumpStartValue(threadData_t *threadData, modelica_metatype _inStartValue);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_dumpStartValue,2,0) {(void*) boxptr_DAEDump_dumpStartValue,0}};
#define boxvar_DAEDump_dumpStartValue MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_dumpStartValue)
PROTECTED_FUNCTION_STATIC modelica_boolean omc_DAEDump_funcGreaterThan(threadData_t *threadData, modelica_metatype _func1, modelica_metatype _func2);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDump_funcGreaterThan(threadData_t *threadData, modelica_metatype _func1, modelica_metatype _func2);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_funcGreaterThan,2,0) {(void*) boxptr_DAEDump_funcGreaterThan,0}};
#define boxvar_DAEDump_funcGreaterThan MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_funcGreaterThan)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDump_sortFunctions(threadData_t *threadData, modelica_metatype _funcs);
static const MMC_DEFSTRUCTLIT(boxvar_lit_DAEDump_sortFunctions,2,0) {(void*) boxptr_DAEDump_sortFunctions,0}};
#define boxvar_DAEDump_sortFunctions MMC_REFSTRUCTLIT(boxvar_lit_DAEDump_sortFunctions)
DLLExport
modelica_string omc_DAEDump_dumpDebugElementStr(threadData_t *threadData, modelica_metatype _inElement)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;
tmp4_1 = _inElement;
{
modelica_metatype _path = NULL;
modelica_string _s1 = NULL;
modelica_string _s2 = NULL;
modelica_string _sourceStr = NULL;
modelica_metatype _e1 = NULL;
modelica_metatype _e2 = NULL;
modelica_metatype _c = NULL;
modelica_metatype _cr1 = NULL;
modelica_metatype _cr2 = NULL;
modelica_metatype _elst = NULL;
modelica_metatype _src = NULL;
modelica_metatype _cmt = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp4 < 24; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,13) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
_c = tmpMeta6;
tmp4 += 22;
_s1 = omc_ComponentReference_printComponentRefStr(threadData, _c);
tmpMeta7 = mmc_mk_cons(_OMC_LIT0, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))));
tmp1 = stringAppendList(tmpMeta7);
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,3) == 0) goto tmp3_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
_c = tmpMeta8;
_src = tmpMeta9;
tmp4 += 21;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
_s1 = omc_ComponentReference_printComponentRefStr(threadData, _c);
tmpMeta10 = stringAppend(_sourceStr,_OMC_LIT1);
tmpMeta11 = stringAppend(_s1,tmpMeta10);
tmp1 = tmpMeta11;
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,3) == 0) goto tmp3_end;
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
_c = tmpMeta12;
_src = tmpMeta13;
tmp4 += 20;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
_s1 = omc_ComponentReference_printComponentRefStr(threadData, _c);
tmpMeta14 = stringAppend(_sourceStr,_OMC_LIT1);
tmpMeta15 = stringAppend(_s1,tmpMeta14);
tmp1 = tmpMeta15;
goto tmp3_done;
}
case 3: {
modelica_metatype tmpMeta16;
modelica_metatype tmpMeta17;
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,3,3) == 0) goto tmp3_end;
tmpMeta16 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta17 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta18 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
_e1 = tmpMeta16;
_e2 = tmpMeta17;
_src = tmpMeta18;
tmp4 += 19;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
_s2 = omc_ExpressionDump_printExpStr(threadData, _e2);
tmpMeta19 = mmc_mk_cons(_OMC_LIT2, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT3, mmc_mk_cons(_s2, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil)))))));
tmp1 = stringAppendList(tmpMeta19);
goto tmp3_done;
}
case 4: {
modelica_metatype tmpMeta20;
modelica_metatype tmpMeta21;
modelica_metatype tmpMeta22;
modelica_metatype tmpMeta23;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,4,3) == 0) goto tmp3_end;
tmpMeta20 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta21 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta22 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
_cr1 = tmpMeta20;
_cr2 = tmpMeta21;
_src = tmpMeta22;
tmp4 += 18;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
_s1 = omc_ComponentReference_printComponentRefStr(threadData, _cr1);
_s2 = omc_ComponentReference_printComponentRefStr(threadData, _cr2);
tmpMeta23 = mmc_mk_cons(_OMC_LIT4, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT3, mmc_mk_cons(_s2, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil)))))));
tmp1 = stringAppendList(tmpMeta23);
goto tmp3_done;
}
case 5: {
modelica_metatype tmpMeta24;
modelica_metatype tmpMeta25;
modelica_metatype tmpMeta26;
modelica_metatype tmpMeta27;
modelica_metatype tmpMeta28;
modelica_metatype tmpMeta29;
modelica_metatype tmpMeta30;
modelica_metatype tmpMeta31;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,5,4) == 0) goto tmp3_end;
tmpMeta24 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta25 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
tmpMeta26 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5));
_e1 = tmpMeta24;
_e2 = tmpMeta25;
_src = tmpMeta26;
tmp4 += 17;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
_s2 = omc_ExpressionDump_printExpStr(threadData, _e2);
tmpMeta27 = stringAppend(_OMC_LIT5,_s1);
tmpMeta28 = stringAppend(tmpMeta27,_OMC_LIT3);
tmpMeta29 = stringAppend(tmpMeta28,_s2);
tmpMeta30 = stringAppend(tmpMeta29,_sourceStr);
tmpMeta31 = stringAppend(tmpMeta30,_OMC_LIT1);
tmp1 = tmpMeta31;
goto tmp3_done;
}
case 6: {
modelica_metatype tmpMeta32;
modelica_metatype tmpMeta33;
modelica_metatype tmpMeta34;
modelica_metatype tmpMeta35;
modelica_metatype tmpMeta36;
modelica_metatype tmpMeta37;
modelica_metatype tmpMeta38;
modelica_metatype tmpMeta39;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,6,4) == 0) goto tmp3_end;
tmpMeta32 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta33 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
tmpMeta34 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5));
_e1 = tmpMeta32;
_e2 = tmpMeta33;
_src = tmpMeta34;
tmp4 += 16;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
_s2 = omc_ExpressionDump_printExpStr(threadData, _e2);
tmpMeta35 = stringAppend(_OMC_LIT6,_s1);
tmpMeta36 = stringAppend(tmpMeta35,_OMC_LIT3);
tmpMeta37 = stringAppend(tmpMeta36,_s2);
tmpMeta38 = stringAppend(tmpMeta37,_sourceStr);
tmpMeta39 = stringAppend(tmpMeta38,_OMC_LIT1);
tmp1 = tmpMeta39;
goto tmp3_done;
}
case 7: {
modelica_metatype tmpMeta40;
modelica_metatype tmpMeta41;
modelica_metatype tmpMeta42;
modelica_metatype tmpMeta43;
modelica_metatype tmpMeta44;
modelica_metatype tmpMeta45;
modelica_metatype tmpMeta46;
modelica_metatype tmpMeta47;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,8,3) == 0) goto tmp3_end;
tmpMeta40 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta41 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta42 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
_e1 = tmpMeta40;
_e2 = tmpMeta41;
_src = tmpMeta42;
tmp4 += 15;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
_s2 = omc_ExpressionDump_printExpStr(threadData, _e2);
tmpMeta43 = stringAppend(_OMC_LIT7,_s1);
tmpMeta44 = stringAppend(tmpMeta43,_OMC_LIT3);
tmpMeta45 = stringAppend(tmpMeta44,_s2);
tmpMeta46 = stringAppend(tmpMeta45,_sourceStr);
tmpMeta47 = stringAppend(tmpMeta46,_OMC_LIT1);
tmp1 = tmpMeta47;
goto tmp3_done;
}
case 8: {
modelica_metatype tmpMeta48;
modelica_metatype tmpMeta49;
modelica_metatype tmpMeta50;
modelica_metatype tmpMeta51;
modelica_metatype tmpMeta52;
modelica_metatype tmpMeta53;
modelica_metatype tmpMeta54;
modelica_metatype tmpMeta55;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,9,3) == 0) goto tmp3_end;
tmpMeta48 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta49 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta50 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
_e1 = tmpMeta48;
_e2 = tmpMeta49;
_src = tmpMeta50;
tmp4 += 14;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
_s2 = omc_ExpressionDump_printExpStr(threadData, _e2);
tmpMeta51 = stringAppend(_OMC_LIT8,_s1);
tmpMeta52 = stringAppend(tmpMeta51,_OMC_LIT3);
tmpMeta53 = stringAppend(tmpMeta52,_s2);
tmpMeta54 = stringAppend(tmpMeta53,_sourceStr);
tmpMeta55 = stringAppend(tmpMeta54,_OMC_LIT1);
tmp1 = tmpMeta55;
goto tmp3_done;
}
case 9: {
modelica_metatype tmpMeta56;
modelica_metatype tmpMeta57;
modelica_metatype tmpMeta58;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,10,4) == 0) goto tmp3_end;
tmpMeta56 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta57 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5));
_e1 = tmpMeta56;
_src = tmpMeta57;
tmp4 += 13;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
tmpMeta58 = mmc_mk_cons(_OMC_LIT9, mmc_mk_cons(_s1, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil)))));
tmp1 = stringAppendList(tmpMeta58);
goto tmp3_done;
}
case 10: {
modelica_metatype tmpMeta59;
modelica_metatype tmpMeta60;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,13,4) == 0) goto tmp3_end;
tmpMeta59 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5));
_src = tmpMeta59;
tmp4 += 12;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
tmpMeta60 = mmc_mk_cons(_OMC_LIT10, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))));
tmp1 = stringAppendList(tmpMeta60);
goto tmp3_done;
}
case 11: {
modelica_metatype tmpMeta61;
modelica_metatype tmpMeta62;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,14,4) == 0) goto tmp3_end;
tmpMeta61 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5));
_src = tmpMeta61;
tmp4 += 11;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
tmpMeta62 = mmc_mk_cons(_OMC_LIT11, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))));
tmp1 = stringAppendList(tmpMeta62);
goto tmp3_done;
}
case 12: {
modelica_metatype tmpMeta63;
modelica_metatype tmpMeta64;
modelica_metatype tmpMeta65;
modelica_metatype tmpMeta66;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,3) == 0) goto tmp3_end;
tmpMeta63 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta64 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta65 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
_e1 = tmpMeta63;
_e2 = tmpMeta64;
_src = tmpMeta65;
tmp4 += 10;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
_s2 = omc_ExpressionDump_printExpStr(threadData, _e2);
tmpMeta66 = mmc_mk_cons(_OMC_LIT12, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT3, mmc_mk_cons(_s2, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil)))))));
tmp1 = stringAppendList(tmpMeta66);
goto tmp3_done;
}
case 13: {
modelica_metatype tmpMeta67;
modelica_metatype tmpMeta68;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,16,2) == 0) goto tmp3_end;
tmpMeta67 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
_src = tmpMeta67;
tmp4 += 9;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
tmpMeta68 = mmc_mk_cons(_OMC_LIT13, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))));
tmp1 = stringAppendList(tmpMeta68);
goto tmp3_done;
}
case 14: {
modelica_metatype tmpMeta69;
modelica_metatype tmpMeta70;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,17,2) == 0) goto tmp3_end;
tmpMeta69 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
_src = tmpMeta69;
tmp4 += 8;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
tmpMeta70 = mmc_mk_cons(_OMC_LIT14, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))));
tmp1 = stringAppendList(tmpMeta70);
goto tmp3_done;
}
case 15: {
modelica_metatype tmpMeta71;
modelica_metatype tmpMeta72;
modelica_metatype tmpMeta73;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,18,4) == 0) goto tmp3_end;
tmpMeta71 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta72 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
_elst = tmpMeta71;
_src = tmpMeta72;
tmp4 += 7;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
_s1 = stringDelimitList(omc_List_map(threadData, _elst, boxvar_DAEDump_dumpDebugElementStr), _OMC_LIT15);
tmpMeta73 = mmc_mk_cons(_OMC_LIT16, mmc_mk_cons(_s1, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil)))));
tmp1 = stringAppendList(tmpMeta73);
goto tmp3_done;
}
case 16: {
modelica_metatype tmpMeta74;
modelica_metatype tmpMeta75;
modelica_metatype tmpMeta76;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,19,2) == 0) goto tmp3_end;
tmpMeta74 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta75 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
_path = tmpMeta74;
_src = tmpMeta75;
tmp4 += 6;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
_s1 = omc_AbsynUtil_pathString(threadData, _path, _OMC_LIT17, 1, 0);
tmpMeta76 = mmc_mk_cons(_OMC_LIT18, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT2, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))))));
tmp1 = stringAppendList(tmpMeta76);
goto tmp3_done;
}
case 17: {
modelica_metatype tmpMeta77;
modelica_metatype tmpMeta78;
modelica_metatype tmpMeta79;
modelica_metatype tmpMeta80;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,20,4) == 0) goto tmp3_end;
tmpMeta77 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta78 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta79 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5));
_e1 = tmpMeta77;
_e2 = tmpMeta78;
_src = tmpMeta79;
tmp4 += 5;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
_s2 = omc_ExpressionDump_printExpStr(threadData, _e2);
tmpMeta80 = mmc_mk_cons(_OMC_LIT19, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT20, mmc_mk_cons(_s2, mmc_mk_cons(_OMC_LIT21, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))))))));
tmp1 = stringAppendList(tmpMeta80);
goto tmp3_done;
}
case 18: {
modelica_metatype tmpMeta81;
modelica_metatype tmpMeta82;
modelica_metatype tmpMeta83;
modelica_metatype tmpMeta84;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,21,4) == 0) goto tmp3_end;
tmpMeta81 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta82 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta83 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5));
_e1 = tmpMeta81;
_e2 = tmpMeta82;
_src = tmpMeta83;
tmp4 += 4;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
_s2 = omc_ExpressionDump_printExpStr(threadData, _e2);
tmpMeta84 = mmc_mk_cons(_OMC_LIT22, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT20, mmc_mk_cons(_s2, mmc_mk_cons(_OMC_LIT21, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))))))));
tmp1 = stringAppendList(tmpMeta84);
goto tmp3_done;
}
case 19: {
modelica_metatype tmpMeta85;
modelica_metatype tmpMeta86;
modelica_metatype tmpMeta87;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,22,2) == 0) goto tmp3_end;
tmpMeta85 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta86 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
_e1 = tmpMeta85;
_src = tmpMeta86;
tmp4 += 3;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
tmpMeta87 = mmc_mk_cons(_OMC_LIT23, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT21, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))))));
tmp1 = stringAppendList(tmpMeta87);
goto tmp3_done;
}
case 20: {
modelica_metatype tmpMeta88;
modelica_metatype tmpMeta89;
modelica_metatype tmpMeta90;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,23,2) == 0) goto tmp3_end;
tmpMeta88 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta89 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
_e1 = tmpMeta88;
_src = tmpMeta89;
tmp4 += 2;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
tmpMeta90 = mmc_mk_cons(_OMC_LIT24, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT21, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))))));
tmp1 = stringAppendList(tmpMeta90);
goto tmp3_done;
}
case 21: {
modelica_metatype tmpMeta91;
modelica_metatype tmpMeta92;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,24,3) == 0) goto tmp3_end;
tmpMeta91 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
_src = tmpMeta91;
tmp4 += 1;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
tmpMeta92 = mmc_mk_cons(_OMC_LIT25, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))));
tmp1 = stringAppendList(tmpMeta92);
goto tmp3_done;
}
case 22: {
modelica_metatype tmpMeta93;
modelica_metatype tmpMeta94;
modelica_metatype tmpMeta95;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,25,2) == 0) goto tmp3_end;
tmpMeta93 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta94 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
_e1 = tmpMeta93;
_src = tmpMeta94;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
tmpMeta95 = mmc_mk_cons(_OMC_LIT2, mmc_mk_cons(_s1, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil)))));
tmp1 = stringAppendList(tmpMeta95);
goto tmp3_done;
}
case 23: {
tmp1 = _OMC_LIT26;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
tmp3_done:
(void)tmp4;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp3_done2;
goto_2:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp4 < 24) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
DLLExport
modelica_string omc_DAEDump_clockKindString(threadData_t *threadData, modelica_metatype _cK)
{
modelica_string _sOut = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _cK;
{
modelica_metatype _e1 = NULL;
modelica_metatype _e2 = NULL;
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))) {
case 3: {
tmp1 = _OMC_LIT27;
goto tmp3_done;
}
case 4: {
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,2) == 0) goto tmp3_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
_e1 = tmpMeta5;
_e2 = tmpMeta6;
tmpMeta7 = stringAppend(_OMC_LIT28,omc_ExpressionDump_printExpStr(threadData, _e1));
tmpMeta8 = stringAppend(tmpMeta7,_OMC_LIT29);
tmpMeta9 = stringAppend(tmpMeta8,omc_ExpressionDump_printExpStr(threadData, _e2));
tmpMeta10 = stringAppend(tmpMeta9,_OMC_LIT30);
tmp1 = tmpMeta10;
goto tmp3_done;
}
case 5: {
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,1) == 0) goto tmp3_end;
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
_e1 = tmpMeta11;
tmpMeta12 = stringAppend(_OMC_LIT31,omc_ExpressionDump_printExpStr(threadData, _e1));
tmpMeta13 = stringAppend(tmpMeta12,_OMC_LIT30);
tmp1 = tmpMeta13;
goto tmp3_done;
}
case 6: {
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
modelica_metatype tmpMeta16;
modelica_metatype tmpMeta17;
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,3,2) == 0) goto tmp3_end;
tmpMeta14 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta15 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
_e1 = tmpMeta14;
_e2 = tmpMeta15;
tmpMeta16 = stringAppend(_OMC_LIT32,omc_ExpressionDump_printExpStr(threadData, _e1));
tmpMeta17 = stringAppend(tmpMeta16,_OMC_LIT29);
tmpMeta18 = stringAppend(tmpMeta17,omc_ExpressionDump_printExpStr(threadData, _e2));
tmpMeta19 = stringAppend(tmpMeta18,_OMC_LIT30);
tmp1 = tmpMeta19;
goto tmp3_done;
}
case 7: {
modelica_metatype tmpMeta20;
modelica_metatype tmpMeta21;
modelica_metatype tmpMeta22;
modelica_metatype tmpMeta23;
modelica_metatype tmpMeta24;
modelica_metatype tmpMeta25;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,4,2) == 0) goto tmp3_end;
tmpMeta20 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta21 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
_e1 = tmpMeta20;
_e2 = tmpMeta21;
tmpMeta22 = stringAppend(_OMC_LIT33,omc_ExpressionDump_printExpStr(threadData, _e1));
tmpMeta23 = stringAppend(tmpMeta22,_OMC_LIT29);
tmpMeta24 = stringAppend(tmpMeta23,omc_ExpressionDump_printExpStr(threadData, _e2));
tmpMeta25 = stringAppend(tmpMeta24,_OMC_LIT30);
tmp1 = tmpMeta25;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_sOut = tmp1;
_return: OMC_LABEL_UNUSED
return _sOut;
}
DLLExport
modelica_string omc_DAEDump_cmtListToString(threadData_t *threadData, modelica_metatype _inCmtLst)
{
modelica_string _outStr = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;
tmp4_1 = _inCmtLst;
{
modelica_metatype _c = NULL;
modelica_metatype _rest = NULL;
modelica_string _str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp4 < 4; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_1)) goto tmp3_end;
tmp4 += 2;
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_1);
tmpMeta7 = MMC_CDR(tmp4_1);
if (!listEmpty(tmpMeta7)) goto tmp3_end;
_c = tmpMeta6;
tmp1 = omc_DAEDump_dumpCommentAnnotationStr(threadData, mmc_mk_some(_c));
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta8 = MMC_CAR(tmp4_1);
tmpMeta9 = MMC_CDR(tmp4_1);
_c = tmpMeta8;
_rest = tmpMeta9;
_str = omc_DAEDump_dumpCommentAnnotationStr(threadData, mmc_mk_some(_c));
tmpMeta10 = stringAppend(_str,_OMC_LIT35);
tmpMeta11 = stringAppend(tmpMeta10,omc_DAEDump_cmtListToString(threadData, _rest));
tmp1 = tmpMeta11;
goto tmp3_done;
}
case 3: {
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
tmp3_done:
(void)tmp4;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp3_done2;
goto_2:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp4 < 4) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_outStr = tmp1;
_return: OMC_LABEL_UNUSED
return _outStr;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_withinString(threadData_t *threadData, modelica_metatype _w)
{
modelica_string _str = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _w;
{
modelica_metatype _p1 = 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_1,1,0) == 0) goto tmp3_end;
tmp1 = _OMC_LIT36;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,1) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
_p1 = tmpMeta6;
tmp1 = omc_AbsynUtil_pathString(threadData, _p1, _OMC_LIT17, 1, 0);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_str = tmp1;
_return: OMC_LABEL_UNUSED
return _str;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDump_connectsStr(threadData_t *threadData, modelica_metatype _inLst)
{
modelica_metatype _outStr = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;
tmp4_1 = _inLst;
{
modelica_metatype _rest = NULL;
modelica_metatype _slst = NULL;
modelica_string _str = NULL;
modelica_metatype _c1 = NULL;
modelica_metatype _c2 = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp4 < 3; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (!listEmpty(tmp4_1)) goto tmp3_end;
tmp4 += 2;
tmpMeta6 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta1 = tmpMeta6;
goto tmp3_done;
}
case 1: {
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 (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta7 = MMC_CAR(tmp4_1);
tmpMeta8 = MMC_CDR(tmp4_1);
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta7), 1));
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta7), 2));
if (!listEmpty(tmpMeta8)) goto tmp3_end;
_c1 = tmpMeta9;
_c2 = tmpMeta10;
tmpMeta11 = stringAppend(omc_ComponentReference_printComponentRefStr(threadData, _c1),_OMC_LIT20);
tmpMeta12 = stringAppend(tmpMeta11,omc_ComponentReference_printComponentRefStr(threadData, _c2));
_str = tmpMeta12;
tmpMeta13 = stringAppend(_OMC_LIT37,_str);
tmpMeta14 = stringAppend(tmpMeta13,_OMC_LIT30);
_str = tmpMeta14;
tmpMeta15 = mmc_mk_cons(_str, MMC_REFSTRUCTLIT(mmc_nil));
tmpMeta1 = tmpMeta15;
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta16;
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 (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta16 = MMC_CAR(tmp4_1);
tmpMeta17 = MMC_CDR(tmp4_1);
tmpMeta18 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta16), 1));
tmpMeta19 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta16), 2));
_c1 = tmpMeta18;
_c2 = tmpMeta19;
_rest = tmpMeta17;
tmpMeta20 = stringAppend(omc_ComponentReference_printComponentRefStr(threadData, _c1),_OMC_LIT20);
tmpMeta21 = stringAppend(tmpMeta20,omc_ComponentReference_printComponentRefStr(threadData, _c2));
_str = tmpMeta21;
tmpMeta22 = stringAppend(_OMC_LIT37,_str);
tmpMeta23 = stringAppend(tmpMeta22,_OMC_LIT30);
_str = tmpMeta23;
_slst = omc_DAEDump_connectsStr(threadData, _rest);
tmpMeta24 = mmc_mk_cons(_str, _slst);
tmpMeta1 = tmpMeta24;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
tmp3_done:
(void)tmp4;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp3_done2;
goto_2:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp4 < 3) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_outStr = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _outStr;
}
DLLExport
modelica_string omc_DAEDump_getSourceInformationStr(threadData_t *threadData, modelica_metatype _inSource)
{
modelica_string _outStr = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;
tmp4_1 = _inSource;
{
modelica_metatype _po = NULL;
modelica_metatype _ceol = NULL;
modelica_metatype _cmt = NULL;
modelica_string _str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_boolean tmp6;
tmp6 = omc_Flags_isSet(threadData, _OMC_LIT41);
if (0 != tmp6) goto goto_2;
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
case 1: {
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;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5));
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 8));
_po = tmpMeta7;
_ceol = tmpMeta8;
_cmt = tmpMeta9;
_str = omc_DAEDump_cmtListToString(threadData, _cmt);
tmpMeta10 = stringAppend(_str,_OMC_LIT42);
tmpMeta11 = stringAppend(tmpMeta10,stringDelimitList(omc_List_map(threadData, _po, boxvar_DAEDump_withinString), _OMC_LIT43));
tmpMeta12 = stringAppend(tmpMeta11,_OMC_LIT44);
tmpMeta13 = stringAppend(tmpMeta12,_OMC_LIT45);
tmpMeta14 = stringAppend(tmpMeta13,stringDelimitList(omc_DAEDump_connectsStr(threadData, _ceol), _OMC_LIT43));
tmpMeta15 = stringAppend(tmpMeta14,_OMC_LIT46);
tmp1 = tmpMeta15;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
tmp3_done:
(void)tmp4;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp3_done2;
goto_2:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp4 < 2) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_outStr = tmp1;
_return: OMC_LABEL_UNUSED
return _outStr;
}
DLLExport
modelica_string omc_DAEDump_unparseVarInnerOuter(threadData_t *threadData, modelica_metatype _io)
{
modelica_string _str = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _io;
{
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))) {
case 3: {
tmp1 = _OMC_LIT47;
goto tmp3_done;
}
case 4: {
tmp1 = _OMC_LIT48;
goto tmp3_done;
}
case 5: {
tmp1 = _OMC_LIT49;
goto tmp3_done;
}
default:
tmp3_default: OMC_LABEL_UNUSED; {
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_str = tmp1;
_return: OMC_LABEL_UNUSED
return _str;
}
DLLExport
modelica_string omc_DAEDump_unparseVarDirection(threadData_t *threadData, modelica_metatype _inVarDirection)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _inVarDirection;
{
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))) {
case 5: {
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
case 3: {
tmp1 = _OMC_LIT50;
goto tmp3_done;
}
case 4: {
tmp1 = _OMC_LIT51;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
DLLExport
modelica_string omc_DAEDump_unparseVarKind(threadData_t *threadData, modelica_metatype _inVarKind)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _inVarKind;
{
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))) {
case 3: {
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
case 5: {
tmp1 = _OMC_LIT52;
goto tmp3_done;
}
case 6: {
tmp1 = _OMC_LIT53;
goto tmp3_done;
}
case 4: {
tmp1 = _OMC_LIT54;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
DLLExport
modelica_metatype omc_DAEDump_dumpFunctionElementsStream(threadData_t *threadData, modelica_metatype _l, modelica_metatype _inStream)
{
modelica_metatype _outStream = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_outStream = omc_DAEDump_dumpVarsStream(threadData, _l, 1, _inStream);
_outStream = omc_List_fold(threadData, _l, boxvar_DAEDump_dumpAlgorithmStream, _outStream);
_return: OMC_LABEL_UNUSED
return _outStream;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDump_dumpFunctionStream(threadData_t *threadData, modelica_metatype _inElement, modelica_metatype _inStream)
{
modelica_metatype _outStream = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;volatile modelica_metatype tmp4_2;
tmp4_1 = _inElement;
tmp4_2 = _inStream;
{
modelica_string _fstr = NULL;
modelica_string _ext_decl_str = NULL;
modelica_string _impureStr = NULL;
modelica_string _ann_str = NULL;
modelica_metatype _fpath = NULL;
modelica_metatype _daeElts = NULL;
modelica_metatype _t = NULL;
modelica_metatype _tp = NULL;
modelica_metatype _str = NULL;
modelica_metatype _c = NULL;
modelica_metatype _ext_decl = NULL;
modelica_boolean _isImpure;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp4 < 5; 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_integer tmp13;
modelica_metatype tmpMeta14;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,10) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
if (listEmpty(tmpMeta7)) goto tmp3_end;
tmpMeta8 = MMC_CAR(tmpMeta7);
tmpMeta9 = MMC_CDR(tmpMeta7);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta8,0,1) == 0) goto tmp3_end;
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta8), 2));
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 7));
tmp13 = mmc_unbox_integer(tmpMeta12);
tmpMeta14 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 11));
_fpath = tmpMeta6;
_daeElts = tmpMeta10;
_t = tmpMeta11;
_isImpure = tmp13;
_c = tmpMeta14;
_str = tmp4_2;
tmp4 += 3;
_str = omc_IOStream_append(threadData, _str, omc_DAEDump_dumpParallelismStr(threadData, _t));
_fstr = omc_AbsynUtil_pathStringNoQual(threadData, _fpath, _OMC_LIT17, 0, 0);
_impureStr = (_isImpure?_OMC_LIT55:_OMC_LIT34);
_str = omc_IOStream_append(threadData, _str, _impureStr);
_str = omc_IOStream_append(threadData, _str, _OMC_LIT56);
_str = omc_IOStream_append(threadData, _str, _fstr);
_str = omc_IOStream_append(threadData, _str, omc_DAEDump_dumpCommentStr(threadData, _c));
_str = omc_IOStream_append(threadData, _str, _OMC_LIT15);
_str = omc_DAEDump_dumpFunctionElementsStream(threadData, _daeElts, _str);
_str = omc_IOStream_append(threadData, _str, omc_DAEDump_dumpClassAnnotationStr(threadData, _c));
_str = omc_IOStream_append(threadData, _str, _OMC_LIT57);
_str = omc_IOStream_append(threadData, _str, _fstr);
tmpMeta1 = omc_IOStream_append(threadData, _str, _OMC_LIT58);
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta15;
modelica_metatype tmpMeta16;
modelica_metatype tmpMeta17;
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,10) == 0) goto tmp3_end;
tmpMeta15 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
if (listEmpty(tmpMeta15)) goto tmp3_end;
tmpMeta16 = MMC_CAR(tmpMeta15);
tmpMeta17 = MMC_CDR(tmpMeta15);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta16,1,2) == 0) goto tmp3_end;
tmpMeta18 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta16), 3));
tmpMeta19 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta18), 5));
if (7 != MMC_STRLEN(tmpMeta19) || strcmp(MMC_STRINGDATA(_OMC_LIT72), MMC_STRINGDATA(tmpMeta19)) != 0) goto tmp3_end;
_str = tmp4_2;
tmpMeta1 = _str;
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta20;
modelica_metatype tmpMeta21;
modelica_metatype tmpMeta22;
modelica_metatype tmpMeta23;
modelica_metatype tmpMeta24;
modelica_metatype tmpMeta25;
modelica_metatype tmpMeta26;
modelica_integer tmp27;
modelica_metatype tmpMeta28;
modelica_metatype tmpMeta29;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,10) == 0) goto tmp3_end;
tmpMeta20 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta21 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
if (listEmpty(tmpMeta21)) goto tmp3_end;
tmpMeta22 = MMC_CAR(tmpMeta21);
tmpMeta23 = MMC_CDR(tmpMeta21);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta22,1,2) == 0) goto tmp3_end;
tmpMeta24 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta22), 2));
tmpMeta25 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta22), 3));
tmpMeta26 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 7));
tmp27 = mmc_unbox_integer(tmpMeta26);
tmpMeta28 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 11));
_fpath = tmpMeta20;
_daeElts = tmpMeta24;
_ext_decl = tmpMeta25;
_isImpure = tmp27;
_c = tmpMeta28;
_str = tmp4_2;
tmp4 += 1;
_fstr = omc_AbsynUtil_pathStringNoQual(threadData, _fpath, _OMC_LIT17, 0, 0);
_impureStr = (_isImpure?_OMC_LIT55:_OMC_LIT34);
_str = omc_IOStream_append(threadData, _str, _impureStr);
_str = omc_IOStream_append(threadData, _str, _OMC_LIT56);
_str = omc_IOStream_append(threadData, _str, _fstr);
_str = omc_IOStream_append(threadData, _str, omc_DAEDump_dumpCommentStr(threadData, _c));
_str = omc_IOStream_append(threadData, _str, _OMC_LIT15);
_str = omc_DAEDump_dumpFunctionElementsStream(threadData, _daeElts, _str);
_ext_decl_str = omc_DAEDump_dumpExtDeclStr(threadData, _ext_decl);
_ann_str = omc_DAEDump_dumpClassAnnotationStr(threadData, _c);
tmpMeta29 = mmc_mk_cons(_OMC_LIT59, mmc_mk_cons(_ext_decl_str, mmc_mk_cons(_OMC_LIT15, mmc_mk_cons(_ann_str, mmc_mk_cons(_OMC_LIT57, mmc_mk_cons(_fstr, mmc_mk_cons(_OMC_LIT58, MMC_REFSTRUCTLIT(mmc_nil))))))));
tmpMeta1 = omc_IOStream_appendList(threadData, _str, tmpMeta29);
goto tmp3_done;
}
case 3: {
modelica_metatype tmpMeta30;
modelica_metatype tmpMeta31;
modelica_boolean tmp32;
modelica_metatype tmpMeta33;
modelica_metatype tmpMeta34;
modelica_metatype tmpMeta35;
modelica_metatype tmpMeta36;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,3) == 0) goto tmp3_end;
tmpMeta30 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta31 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
_fpath = tmpMeta30;
_tp = tmpMeta31;
_str = tmp4_2;
tmp32 = omc_Flags_isSet(threadData, _OMC_LIT63);
if (0 != tmp32) goto goto_2;
if(omc_Flags_isSet(threadData, _OMC_LIT71))
{
_str = omc_IOStream_append(threadData, _str, omc_Types_unparseType(threadData, _tp));
_str = omc_IOStream_append(threadData, _str, _OMC_LIT15);
}
else
{
_fstr = omc_AbsynUtil_pathStringNoQual(threadData, _fpath, _OMC_LIT17, 0, 0);
_str = omc_IOStream_append(threadData, _str, _OMC_LIT56);
_str = omc_IOStream_append(threadData, _str, _fstr);
tmpMeta33 = stringAppend(_OMC_LIT64,_fstr);
tmpMeta34 = stringAppend(tmpMeta33,_OMC_LIT65);
_str = omc_IOStream_append(threadData, _str, tmpMeta34);
_str = omc_IOStream_append(threadData, _str, omc_DAEDump_printRecordConstructorInputsStr(threadData, _tp));
tmpMeta35 = stringAppend(_OMC_LIT66,omc_AbsynUtil_pathLastIdent(threadData, _fpath));
tmpMeta36 = stringAppend(tmpMeta35,_OMC_LIT67);
_str = omc_IOStream_append(threadData, _str, tmpMeta36);
_str = omc_IOStream_append(threadData, _str, _OMC_LIT57);
_str = omc_IOStream_append(threadData, _str, _fstr);
_str = omc_IOStream_append(threadData, _str, _OMC_LIT58);
}
tmpMeta1 = _str;
goto tmp3_done;
}
case 4: {
_str = tmp4_2;
tmpMeta1 = _str;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
tmp3_done:
(void)tmp4;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp3_done2;
goto_2:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp4 < 5) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_outStream = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _outStream;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_dumpExtObjClassStr(threadData_t *threadData, modelica_metatype _inElement)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;
tmp4_1 = _inElement;
{
modelica_string _s = NULL;
modelica_integer _hnd;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,19,2) == 0) goto tmp3_end;
_hnd = omc_Print_saveAndClearBuf(threadData);
omc_DAEDump_dumpExtObjectClass(threadData, _inElement);
_s = omc_Print_getString(threadData);
omc_Print_restoreBuf(threadData, _hnd);
tmp1 = _s;
goto tmp3_done;
}
case 1: {
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
tmp3_done:
(void)tmp4;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp3_done2;
goto_2:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp4 < 2) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
DLLExport
modelica_string omc_DAEDump_dumpFunctionStr(threadData_t *threadData, modelica_metatype _inElement)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
{
modelica_string _s = NULL;
modelica_integer _hnd;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_hnd = omc_Print_saveAndClearBuf(threadData);
omc_DAEDump_dumpFunction(threadData, _inElement);
_s = omc_Print_getString(threadData);
omc_Print_restoreBuf(threadData, _hnd);
tmp1 = _s;
goto tmp3_done;
}
case 1: {
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
tmp3_done:
(void)tmp4;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp3_done2;
goto_2:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp4 < 2) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
DLLExport
void omc_DAEDump_dumpFunctionTree(threadData_t *threadData, modelica_metatype _inFunctionTree, modelica_string _inHeading)
{
modelica_metatype tmpMeta1;
modelica_metatype tmpMeta2;
modelica_metatype tmpMeta3;
modelica_metatype tmpMeta4;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta1 = stringAppend(_OMC_LIT15,_inHeading);
tmpMeta2 = stringAppend(tmpMeta1,_OMC_LIT73);
fputs(MMC_STRINGDATA(tmpMeta2),stdout);
{
modelica_metatype _fnc;
for (tmpMeta3 = omc_DAEDump_sortFunctions(threadData, omc_DAEUtil_getFunctionList(threadData, _inFunctionTree, 0)); !listEmpty(tmpMeta3); tmpMeta3=MMC_CDR(tmpMeta3))
{
_fnc = MMC_CAR(tmpMeta3);
fputs(MMC_STRINGDATA(omc_DAEDump_dumpFunctionStr(threadData, _fnc)),stdout);
}
}
_return: OMC_LABEL_UNUSED
return;
}
DLLExport
modelica_metatype omc_DAEDump_ppStatementStream(threadData_t *threadData, modelica_metatype _alg, modelica_metatype _inStream)
{
modelica_metatype _outStream = NULL;
modelica_string _tmp = NULL;
modelica_integer _hnd;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_hnd = omc_Print_saveAndClearBuf(threadData);
omc_DAEDump_ppStatement(threadData, _alg);
_outStream = omc_IOStream_append(threadData, _inStream, omc_Print_getString(threadData));
omc_Print_restoreBuf(threadData, _hnd);
_return: OMC_LABEL_UNUSED
return _outStream;
}
DLLExport
modelica_metatype omc_DAEDump_dumpInitialAlgorithmStream(threadData_t *threadData, modelica_metatype _inElement, modelica_metatype _inStream)
{
modelica_metatype _outStream = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;volatile modelica_metatype tmp4_2;
tmp4_1 = _inElement;
tmp4_2 = _inStream;
{
modelica_metatype _str = NULL;
modelica_metatype _stmts = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,17,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 2));
_stmts = tmpMeta7;
_str = tmp4_2;
_str = omc_IOStream_append(threadData, _str, _OMC_LIT74);
tmpMeta1 = omc_List_fold(threadData, _stmts, boxvar_DAEDump_ppStatementStream, _str);
goto tmp3_done;
}
case 1: {
_str = tmp4_2;
tmpMeta1 = _str;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
tmp3_done:
(void)tmp4;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp3_done2;
goto_2:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp4 < 2) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_outStream = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _outStream;
}
DLLExport
modelica_metatype omc_DAEDump_dumpAlgorithmStream(threadData_t *threadData, modelica_metatype _inElement, modelica_metatype _inStream)
{
modelica_metatype _outStream = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;volatile modelica_metatype tmp4_2;
tmp4_1 = _inElement;
tmp4_2 = _inStream;
{
modelica_metatype _str = NULL;
modelica_metatype _stmts = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,16,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 2));
_stmts = tmpMeta7;
_str = tmp4_2;
_str = omc_IOStream_append(threadData, _str, _OMC_LIT75);
tmpMeta1 = omc_List_fold(threadData, _stmts, boxvar_DAEDump_ppStatementStream, _str);
goto tmp3_done;
}
case 1: {
_str = tmp4_2;
tmpMeta1 = _str;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
tmp3_done:
(void)tmp4;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp3_done2;
goto_2:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp4 < 2) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_outStream = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _outStream;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDump_dumpVarStream(threadData_t *threadData, modelica_metatype _inElement, modelica_boolean _printTypeDimension, modelica_metatype _inStream)
{
modelica_metatype _outStream = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;volatile modelica_metatype tmp4_2;
tmp4_1 = _inElement;
tmp4_2 = _inStream;
{
modelica_string _final_str = NULL;
modelica_string _kind_str = NULL;
modelica_string _dir_str = NULL;
modelica_string _ty_str = NULL;
modelica_string _ty_vars_str = NULL;
modelica_string _dim_str = NULL;
modelica_string _name_str = NULL;
modelica_string _vis_str = NULL;
modelica_string _par_str = NULL;
modelica_string _cmt_str = NULL;
modelica_string _attr_str = NULL;
modelica_string _binding_str = NULL;
modelica_metatype _id = NULL;
modelica_metatype _kind = NULL;
modelica_metatype _dir = NULL;
modelica_metatype _prl = NULL;
modelica_metatype _vis = NULL;
modelica_metatype _ty = NULL;
modelica_metatype _attr = NULL;
modelica_metatype _cmt = NULL;
modelica_metatype _binding = NULL;
modelica_metatype _dims = NULL;
modelica_metatype _str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
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;
modelica_metatype tmpMeta16;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,13) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5));
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6));
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 7));
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 8));
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 9));
tmpMeta14 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 12));
tmpMeta15 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 13));
_id = tmpMeta6;
_kind = tmpMeta7;
_dir = tmpMeta8;
_prl = tmpMeta9;
_vis = tmpMeta10;
_ty = tmpMeta11;
_binding = tmpMeta12;
_dims = tmpMeta13;
_attr = tmpMeta14;
_cmt = tmpMeta15;
_str = tmp4_2;
_final_str = (omc_DAEUtil_getFinalAttr(threadData, _attr)?_OMC_LIT76:_OMC_LIT34);
_kind_str = omc_DAEDump_dumpKindStr(threadData, _kind);
_dir_str = omc_DAEDump_dumpDirectionStr(threadData, _dir);
_ty_str = omc_DAEDump_printTypeStr(threadData, _ty ,&_ty_vars_str);
_dim_str = omc_DAEDump_unparseDimensions(threadData, _dims, _printTypeDimension);
_name_str = omc_ComponentReference_printComponentRefStr(threadData, _id);
_vis_str = omc_DAEDump_dumpVarVisibilityStr(threadData, _vis);
_par_str = omc_DAEDump_dumpVarParallelismStr(threadData, _prl);
_cmt_str = omc_DAEDump_dumpCommentAnnotationStr(threadData, _cmt);
_attr_str = omc_DAEDump_dumpVariableAttributesStr(threadData, _attr);
_binding_str = omc_DAEDump_dumpVarBindingStr(threadData, _binding);
tmpMeta16 = mmc_mk_cons(_OMC_LIT2, mmc_mk_cons(_vis_str, mmc_mk_cons(_final_str, mmc_mk_cons(_par_str, mmc_mk_cons(_kind_str, mmc_mk_cons(_dir_str, mmc_mk_cons(_ty_str, mmc_mk_cons(_dim_str, mmc_mk_cons(_OMC_LIT35, mmc_mk_cons(_name_str, mmc_mk_cons(_ty_vars_str, mmc_mk_cons(_attr_str, mmc_mk_cons(_binding_str, mmc_mk_cons(_cmt_str, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))))))))))))))));
tmpMeta1 = omc_IOStream_appendList(threadData, _str, tmpMeta16);
goto tmp3_done;
}
case 1: {
tmpMeta1 = _inStream;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
tmp3_done:
(void)tmp4;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp3_done2;
goto_2:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp4 < 2) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_outStream = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _outStream;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDump_dumpVarStream(threadData_t *threadData, modelica_metatype _inElement, modelica_metatype _printTypeDimension, modelica_metatype _inStream)
{
modelica_integer tmp1;
modelica_metatype _outStream = NULL;
tmp1 = mmc_unbox_integer(_printTypeDimension);
_outStream = omc_DAEDump_dumpVarStream(threadData, _inElement, tmp1, _inStream);
return _outStream;
}
DLLExport
modelica_string omc_DAEDump_dumpVarBindingStr(threadData_t *threadData, modelica_metatype _inBinding)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _inBinding;
{
modelica_metatype _exp = NULL;
modelica_string _bind_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 (optionNone(tmp4_1)) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1));
_exp = tmpMeta6;
_bind_str = omc_ExpressionDump_printExpStr(threadData, _exp);
tmpMeta7 = stringAppend(_OMC_LIT3,_bind_str);
tmp1 = tmpMeta7;
goto tmp3_done;
}
case 1: {
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
DLLExport
void omc_DAEDump_dumpCallAttr(threadData_t *threadData, modelica_metatype _ca)
{
modelica_boolean _tpl;
modelica_boolean _bi;
modelica_boolean _impure_;
modelica_boolean _isFunc;
modelica_metatype _iType = NULL;
modelica_metatype _ty = NULL;
modelica_metatype _tailCall = NULL;
modelica_string _s1 = NULL;
modelica_string _s2 = NULL;
modelica_metatype tmpMeta1;
modelica_metatype tmpMeta2;
modelica_metatype tmpMeta3;
modelica_integer tmp4;
modelica_metatype tmpMeta5;
modelica_integer tmp6;
modelica_metatype tmpMeta7;
modelica_integer tmp8;
modelica_metatype tmpMeta9;
modelica_integer tmp10;
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
modelica_metatype tmpMeta16;
modelica_metatype tmpMeta17;
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
modelica_metatype tmpMeta20;
modelica_metatype tmpMeta21;
modelica_metatype tmpMeta22;
modelica_metatype tmpMeta23;
modelica_metatype tmpMeta24;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta1 = _ca;
tmpMeta2 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta1), 2));
tmpMeta3 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta1), 3));
tmp4 = mmc_unbox_integer(tmpMeta3);
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta1), 4));
tmp6 = mmc_unbox_integer(tmpMeta5);
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta1), 5));
tmp8 = mmc_unbox_integer(tmpMeta7);
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta1), 6));
tmp10 = mmc_unbox_integer(tmpMeta9);
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta1), 7));
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta1), 8));
_ty = tmpMeta2;
_tpl = tmp4;
_bi = tmp6;
_impure_ = tmp8;
_isFunc = tmp10;
_iType = tmpMeta11;
_tailCall = tmpMeta12;
fputs(MMC_STRINGDATA(_OMC_LIT77),stdout);
_s1 = omc_DAEDump_printTypeStr(threadData, _ty ,&_s2);
tmpMeta13 = stringAppend(_OMC_LIT78,_s1);
tmpMeta14 = stringAppend(tmpMeta13,_OMC_LIT15);
fputs(MMC_STRINGDATA(tmpMeta14),stdout);
tmpMeta15 = stringAppend(_OMC_LIT79,_s2);
tmpMeta16 = stringAppend(tmpMeta15,_OMC_LIT15);
fputs(MMC_STRINGDATA(tmpMeta16),stdout);
tmpMeta17 = stringAppend(_OMC_LIT80,(_tpl?_OMC_LIT81:_OMC_LIT82));
tmpMeta18 = stringAppend(tmpMeta17,_OMC_LIT83);
tmpMeta19 = stringAppend(tmpMeta18,(_bi?_OMC_LIT81:_OMC_LIT82));
tmpMeta20 = stringAppend(tmpMeta19,_OMC_LIT84);
tmpMeta21 = stringAppend(tmpMeta20,(_impure_?_OMC_LIT81:_OMC_LIT82));
tmpMeta22 = stringAppend(tmpMeta21,_OMC_LIT85);
tmpMeta23 = stringAppend(tmpMeta22,(_isFunc?_OMC_LIT81:_OMC_LIT82));
tmpMeta24 = stringAppend(tmpMeta23,_OMC_LIT86);
fputs(MMC_STRINGDATA(tmpMeta24),stdout);
_return: OMC_LABEL_UNUSED
return;
}
DLLExport
modelica_string omc_DAEDump_printTypeStr(threadData_t *threadData, modelica_metatype _inType, modelica_string *out_outTypeAttrStr)
{
modelica_string _outTypeStr = NULL;
modelica_string _outTypeAttrStr = NULL;
modelica_metatype _ty = NULL;
modelica_metatype _ty_vars = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_ty = omc_Types_stripTypeVars(threadData, _inType ,&_ty_vars);
_outTypeStr = omc_DAEDump_unparseType(threadData, _ty);
_outTypeAttrStr = omc_List_toString(threadData, _ty_vars, boxvar_Types_unparseVarAttr, _OMC_LIT34, _OMC_LIT87, _OMC_LIT43, _OMC_LIT30, 0, ((modelica_integer) 0));
_return: OMC_LABEL_UNUSED
if (out_outTypeAttrStr) { *out_outTypeAttrStr = _outTypeAttrStr; }
return _outTypeStr;
}
DLLExport
modelica_string omc_DAEDump_daeTypeStr(threadData_t *threadData, modelica_metatype _inType)
{
modelica_string _outTypeStr = NULL;
modelica_string _typeAttrStr = NULL;
modelica_metatype tmpMeta1;
modelica_metatype tmpMeta2;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_outTypeStr = omc_DAEDump_printTypeStr(threadData, _inType ,&_typeAttrStr);
if((!stringEqual(_typeAttrStr, _OMC_LIT34)))
{
tmpMeta1 = stringAppend(_outTypeStr,_OMC_LIT35);
tmpMeta2 = stringAppend(tmpMeta1,_typeAttrStr);
_outTypeStr = tmpMeta2;
}
_return: OMC_LABEL_UNUSED
return _outTypeStr;
}
DLLExport
modelica_metatype omc_DAEDump_dumpVarsStream(threadData_t *threadData, modelica_metatype _inElementLst, modelica_boolean _printTypeDimension, modelica_metatype _inStream)
{
modelica_metatype _outStream = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _inElementLst;
tmp4_2 = _inStream;
{
modelica_metatype _str = NULL;
modelica_metatype _first = NULL;
modelica_metatype _rest = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta1 = _inStream;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_1);
tmpMeta7 = MMC_CDR(tmp4_1);
_first = tmpMeta6;
_rest = tmpMeta7;
_str = tmp4_2;
_str = omc_DAEDump_dumpVarStream(threadData, _first, _printTypeDimension, _str);
_inElementLst = _rest;
_inStream = _str;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outStream = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _outStream;
}
modelica_metatype boxptr_DAEDump_dumpVarsStream(threadData_t *threadData, modelica_metatype _inElementLst, modelica_metatype _printTypeDimension, modelica_metatype _inStream)
{
modelica_integer tmp1;
modelica_metatype _outStream = NULL;
tmp1 = mmc_unbox_integer(_printTypeDimension);
_outStream = omc_DAEDump_dumpVarsStream(threadData, _inElementLst, tmp1, _inStream);
return _outStream;
}
DLLExport
modelica_string omc_DAEDump_dumpDAEElementsStr(threadData_t *threadData, modelica_metatype _d)
{
modelica_string _str = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _d;
{
modelica_metatype _l = NULL;
modelica_metatype _myStream = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
_l = tmpMeta6;
_myStream = omc_IOStream_create(threadData, _OMC_LIT34, _OMC_LIT88);
_myStream = omc_DAEDump_dumpElementsStream(threadData, _l, _myStream);
tmp1 = omc_IOStream_string(threadData, _myStream);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_str = tmp1;
_return: OMC_LABEL_UNUSED
return _str;
}
DLLExport
modelica_metatype omc_DAEDump_dumpConstraintStream(threadData_t *threadData, modelica_metatype _inElementLst, modelica_metatype _inStream)
{
modelica_metatype _outStream = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;volatile modelica_metatype tmp4_2;
tmp4_1 = _inElementLst;
tmp4_2 = _inStream;
{
modelica_metatype _str = NULL;
modelica_metatype _exps = NULL;
modelica_metatype _xs = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp4 < 3; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_1)) goto tmp3_end;
_str = tmp4_2;
tmp4 += 2;
tmpMeta1 = _str;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_1);
tmpMeta7 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,27,2) == 0) goto tmp3_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta8,0,1) == 0) goto tmp3_end;
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta8), 2));
_exps = tmpMeta9;
_xs = tmpMeta7;
_str = tmp4_2;
_str = omc_IOStream_append(threadData, _str, _OMC_LIT2);
_str = omc_IOStream_append(threadData, _str, stringDelimitList(omc_List_map(threadData, _exps, boxvar_ExpressionDump_printExpStr), _OMC_LIT89));
_str = omc_IOStream_append(threadData, _str, _OMC_LIT1);
tmpMeta1 = omc_DAEDump_dumpConstraintStream(threadData, _xs, _str);
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta10 = MMC_CAR(tmp4_1);
tmpMeta11 = MMC_CDR(tmp4_1);
_xs = tmpMeta11;
_str = tmp4_2;
tmpMeta1 = omc_DAEDump_dumpConstraintStream(threadData, _xs, _str);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
tmp3_done:
(void)tmp4;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp3_done2;
goto_2:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp4 < 3) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_outStream = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _outStream;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDump_dumpInitialEquationsStream(threadData_t *threadData, modelica_metatype _inElementLst, modelica_metatype _inStream)
{
modelica_metatype _outStream = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;volatile modelica_metatype tmp4_2;
tmp4_1 = _inElementLst;
tmp4_2 = _inStream;
{
modelica_string _s1 = NULL;
modelica_string _s2 = NULL;
modelica_string _sourceStr = NULL;
modelica_metatype _e1 = NULL;
modelica_metatype _e2 = NULL;
modelica_metatype _e = NULL;
modelica_metatype _xs = NULL;
modelica_metatype _xs1 = NULL;
modelica_metatype _xs2 = NULL;
modelica_metatype _trueBranches = NULL;
modelica_metatype _c = NULL;
modelica_metatype _str = NULL;
modelica_metatype _conds = NULL;
modelica_metatype _src = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp4 < 11; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_1)) goto tmp3_end;
_str = tmp4_2;
tmp4 += 10;
tmpMeta1 = _str;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_1);
tmpMeta7 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,15,3) == 0) goto tmp3_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 2));
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 3));
_e1 = tmpMeta8;
_e2 = tmpMeta9;
_xs = tmpMeta7;
_str = tmp4_2;
tmp4 += 8;
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
_s2 = omc_ExpressionDump_printExpStr(threadData, _e2);
tmpMeta10 = mmc_mk_cons(_OMC_LIT2, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT3, mmc_mk_cons(_s2, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))))));
_str = omc_IOStream_appendList(threadData, _str, tmpMeta10);
tmpMeta1 = omc_DAEDump_dumpInitialEquationsStream(threadData, _xs, _str);
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta11 = MMC_CAR(tmp4_1);
tmpMeta12 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta11,6,4) == 0) goto tmp3_end;
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta11), 3));
tmpMeta14 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta11), 4));
_e1 = tmpMeta13;
_e2 = tmpMeta14;
_xs = tmpMeta12;
_str = tmp4_2;
tmp4 += 7;
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
_s2 = omc_ExpressionDump_printExpStr(threadData, _e2);
tmpMeta15 = mmc_mk_cons(_OMC_LIT2, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT3, mmc_mk_cons(_s2, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))))));
_str = omc_IOStream_appendList(threadData, _str, tmpMeta15);
tmpMeta1 = omc_DAEDump_dumpInitialEquationsStream(threadData, _xs, _str);
goto tmp3_done;
}
case 3: {
modelica_metatype tmpMeta16;
modelica_metatype tmpMeta17;
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
modelica_metatype tmpMeta20;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta16 = MMC_CAR(tmp4_1);
tmpMeta17 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta16,9,3) == 0) goto tmp3_end;
tmpMeta18 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta16), 2));
tmpMeta19 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta16), 3));
_e1 = tmpMeta18;
_e2 = tmpMeta19;
_xs = tmpMeta17;
_str = tmp4_2;
tmp4 += 6;
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
_s2 = omc_ExpressionDump_printExpStr(threadData, _e2);
tmpMeta20 = mmc_mk_cons(_OMC_LIT2, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT3, mmc_mk_cons(_s2, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))))));
_str = omc_IOStream_appendList(threadData, _str, tmpMeta20);
tmpMeta1 = omc_DAEDump_dumpInitialEquationsStream(threadData, _xs, _str);
goto tmp3_done;
}
case 4: {
modelica_metatype tmpMeta21;
modelica_metatype tmpMeta22;
modelica_metatype tmpMeta23;
modelica_metatype tmpMeta24;
modelica_metatype tmpMeta25;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta21 = MMC_CAR(tmp4_1);
tmpMeta22 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta21,2,3) == 0) goto tmp3_end;
tmpMeta23 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta21), 2));
tmpMeta24 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta21), 3));
_c = tmpMeta23;
_e = tmpMeta24;
_xs = tmpMeta22;
_str = tmp4_2;
tmp4 += 5;
_s1 = omc_ComponentReference_printComponentRefStr(threadData, _c);
_s2 = omc_ExpressionDump_printExpStr(threadData, _e);
tmpMeta25 = mmc_mk_cons(_OMC_LIT2, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT3, mmc_mk_cons(_s2, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))))));
_str = omc_IOStream_appendList(threadData, _str, tmpMeta25);
tmpMeta1 = omc_DAEDump_dumpInitialEquationsStream(threadData, _xs, _str);
goto tmp3_done;
}
case 5: {
modelica_metatype tmpMeta26;
modelica_metatype tmpMeta27;
modelica_metatype tmpMeta28;
modelica_metatype tmpMeta29;
modelica_metatype tmpMeta30;
modelica_metatype tmpMeta31;
modelica_metatype tmpMeta32;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta26 = MMC_CAR(tmp4_1);
tmpMeta27 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta26,11,7) == 0) goto tmp3_end;
tmpMeta28 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta26), 4));
tmpMeta29 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta26), 6));
tmpMeta30 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta26), 7));
tmpMeta31 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta26), 8));
_s2 = tmpMeta28;
_e1 = tmpMeta29;
_xs1 = tmpMeta30;
_src = tmpMeta31;
_xs = tmpMeta27;
_str = tmp4_2;
tmp4 += 4;
omc_DAEDump_getSourceInformationStr(threadData, _src);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
tmpMeta32 = mmc_mk_cons(_OMC_LIT90, mmc_mk_cons(_s2, mmc_mk_cons(_OMC_LIT91, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT92, MMC_REFSTRUCTLIT(mmc_nil))))));
_str = omc_IOStream_appendList(threadData, _str, tmpMeta32);
_str = omc_DAEDump_dumpEquationsStream(threadData, _xs1, _str);
_str = omc_IOStream_appendList(threadData, _str, _OMC_LIT94);
tmpMeta1 = omc_DAEDump_dumpEquationsStream(threadData, _xs, _str);
goto tmp3_done;
}
case 6: {
modelica_metatype tmpMeta33;
modelica_metatype tmpMeta34;
modelica_metatype tmpMeta35;
modelica_metatype tmpMeta36;
modelica_metatype tmpMeta37;
modelica_metatype tmpMeta38;
modelica_metatype tmpMeta39;
modelica_metatype tmpMeta40;
modelica_metatype tmpMeta41;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta33 = MMC_CAR(tmp4_1);
tmpMeta34 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta33,14,4) == 0) goto tmp3_end;
tmpMeta35 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta33), 2));
if (listEmpty(tmpMeta35)) goto tmp3_end;
tmpMeta36 = MMC_CAR(tmpMeta35);
tmpMeta37 = MMC_CDR(tmpMeta35);
tmpMeta38 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta33), 3));
if (listEmpty(tmpMeta38)) goto tmp3_end;
tmpMeta39 = MMC_CAR(tmpMeta38);
tmpMeta40 = MMC_CDR(tmpMeta38);
tmpMeta41 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta33), 4));
_e = tmpMeta36;
_conds = tmpMeta37;
_xs1 = tmpMeta39;
_trueBranches = tmpMeta40;
_xs2 = tmpMeta41;
_xs = tmpMeta34;
_str = tmp4_2;
tmp4 += 3;
_str = omc_IOStream_append(threadData, _str, _OMC_LIT95);
_str = omc_IOStream_append(threadData, _str, omc_ExpressionDump_printExpStr(threadData, _e));
_str = omc_IOStream_append(threadData, _str, _OMC_LIT96);
_str = omc_DAEDump_dumpInitialEquationsStream(threadData, _xs1, _str);
_str = omc_DAEDump_dumpIfEquationsStream(threadData, _conds, _trueBranches, _str);
_str = omc_IOStream_append(threadData, _str, _OMC_LIT97);
_str = omc_DAEDump_dumpInitialEquationsStream(threadData, _xs2, _str);
_str = omc_IOStream_append(threadData, _str, _OMC_LIT98);
tmpMeta1 = omc_DAEDump_dumpInitialEquationsStream(threadData, _xs, _str);
goto tmp3_done;
}
case 7: {
modelica_metatype tmpMeta42;
modelica_metatype tmpMeta43;
modelica_metatype tmpMeta44;
modelica_metatype tmpMeta45;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta42 = MMC_CAR(tmp4_1);
tmpMeta43 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta42,26,2) == 0) goto tmp3_end;
tmpMeta44 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta42), 2));
_e = tmpMeta44;
_xs = tmpMeta43;
_str = tmp4_2;
tmp4 += 2;
_s1 = omc_ExpressionDump_printExpStr(threadData, _e);
tmpMeta45 = mmc_mk_cons(_OMC_LIT2, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))));
_str = omc_IOStream_appendList(threadData, _str, tmpMeta45);
tmpMeta1 = omc_DAEDump_dumpInitialEquationsStream(threadData, _xs, _str);
goto tmp3_done;
}
case 8: {
modelica_metatype tmpMeta46;
modelica_metatype tmpMeta47;
modelica_metatype tmpMeta48;
modelica_metatype tmpMeta49;
modelica_metatype tmpMeta50;
modelica_metatype tmpMeta51;
modelica_integer tmp52;
modelica_metatype tmpMeta53;
modelica_metatype tmpMeta54;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta46 = MMC_CAR(tmp4_1);
tmpMeta47 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta46,21,4) == 0) goto tmp3_end;
tmpMeta48 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta46), 2));
tmpMeta49 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta46), 3));
tmpMeta50 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta46), 4));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta50,5,2) == 0) goto tmp3_end;
tmpMeta51 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta50), 3));
tmp52 = mmc_unbox_integer(tmpMeta51);
if (1 != tmp52) goto tmp3_end;
tmpMeta53 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta46), 5));
_e1 = tmpMeta48;
_e2 = tmpMeta49;
_src = tmpMeta53;
_xs = tmpMeta47;
_str = tmp4_2;
tmp4 += 1;
_sourceStr = omc_DAEDump_getSourceInformationStr(threadData, _src);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
_s2 = omc_ExpressionDump_printExpStr(threadData, _e2);
tmpMeta54 = mmc_mk_cons(_OMC_LIT19, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT20, mmc_mk_cons(_s2, mmc_mk_cons(_OMC_LIT30, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))))))));
_str = omc_IOStream_appendList(threadData, _str, tmpMeta54);
tmpMeta1 = omc_DAEDump_dumpEquationsStream(threadData, _xs, _str);
goto tmp3_done;
}
case 9: {
modelica_metatype tmpMeta55;
modelica_metatype tmpMeta56;
modelica_metatype tmpMeta57;
modelica_metatype tmpMeta58;
modelica_metatype tmpMeta59;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta55 = MMC_CAR(tmp4_1);
tmpMeta56 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta55,23,2) == 0) goto tmp3_end;
tmpMeta57 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta55), 2));
tmpMeta58 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta55), 3));
_e1 = tmpMeta57;
_src = tmpMeta58;
_xs = tmpMeta56;
_str = tmp4_2;
_sourceStr = omc_DAEDump_getSourceInformationStr(threadData, _src);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
tmpMeta59 = mmc_mk_cons(_OMC_LIT23, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT30, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))))));
_str = omc_IOStream_appendList(threadData, _str, tmpMeta59);
tmpMeta1 = omc_DAEDump_dumpEquationsStream(threadData, _xs, _str);
goto tmp3_done;
}
case 10: {
modelica_metatype tmpMeta60;
modelica_metatype tmpMeta61;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta60 = MMC_CAR(tmp4_1);
tmpMeta61 = MMC_CDR(tmp4_1);
_xs = tmpMeta61;
_str = tmp4_2;
tmpMeta1 = omc_DAEDump_dumpInitialEquationsStream(threadData, _xs, _str);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
tmp3_done:
(void)tmp4;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp3_done2;
goto_2:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp4 < 11) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_outStream = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _outStream;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDump_dumpIfEquationsStream(threadData_t *threadData, modelica_metatype _iconds, modelica_metatype _itbs, modelica_metatype _inStream)
{
modelica_metatype _outStream = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;modelica_metatype tmp4_3;
tmp4_1 = _iconds;
tmp4_2 = _itbs;
tmp4_3 = _inStream;
{
modelica_metatype _c = NULL;
modelica_metatype _tb = NULL;
modelica_metatype _str = NULL;
modelica_metatype _conds = NULL;
modelica_metatype _tbs = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_1)) goto tmp3_end;
if (!listEmpty(tmp4_2)) goto tmp3_end;
_str = tmp4_3;
tmpMeta1 = _str;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_1);
tmpMeta7 = MMC_CDR(tmp4_1);
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta8 = MMC_CAR(tmp4_2);
tmpMeta9 = MMC_CDR(tmp4_2);
_c = tmpMeta6;
_conds = tmpMeta7;
_tb = tmpMeta8;
_tbs = tmpMeta9;
_str = tmp4_3;
_str = omc_IOStream_append(threadData, _str, _OMC_LIT99);
_str = omc_IOStream_append(threadData, _str, omc_ExpressionDump_printExpStr(threadData, _c));
_str = omc_IOStream_append(threadData, _str, _OMC_LIT96);
_str = omc_DAEDump_dumpEquationsStream(threadData, _tb, _str);
_iconds = _conds;
_itbs = _tbs;
_inStream = _str;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outStream = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _outStream;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDump_dumpEquationsStream(threadData_t *threadData, modelica_metatype _inElementLst, modelica_metatype _inStream)
{
modelica_metatype _outStream = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _inElementLst;
tmp4_2 = _inStream;
{
modelica_string _s1 = NULL;
modelica_string _s2 = NULL;
modelica_string _s3 = NULL;
modelica_string _s = NULL;
modelica_string _sourceStr = NULL;
modelica_metatype _e1 = NULL;
modelica_metatype _e2 = NULL;
modelica_metatype _e = NULL;
modelica_metatype _conds = NULL;
modelica_metatype _xs = NULL;
modelica_metatype _xs1 = NULL;
modelica_metatype _xs2 = NULL;
modelica_metatype _tb = NULL;
modelica_metatype _c = NULL;
modelica_metatype _cr = NULL;
modelica_metatype _cr1 = NULL;
modelica_metatype _cr2 = NULL;
modelica_metatype _str = NULL;
modelica_metatype _el = NULL;
modelica_metatype _dims = NULL;
modelica_metatype _src = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 17; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_1)) goto tmp3_end;
_str = tmp4_2;
tmpMeta1 = _str;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_1);
tmpMeta7 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,3,3) == 0) goto tmp3_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 2));
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 3));
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 4));
_e1 = tmpMeta8;
_e2 = tmpMeta9;
_src = tmpMeta10;
_xs = tmpMeta7;
_str = tmp4_2;
_sourceStr = omc_DAEDump_getSourceInformationStr(threadData, _src);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
_s2 = omc_ExpressionDump_printExpStr(threadData, _e2);
tmpMeta11 = mmc_mk_cons(_OMC_LIT2, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT3, mmc_mk_cons(_s2, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil)))))));
_str = omc_IOStream_appendList(threadData, _str, tmpMeta11);
_inElementLst = _xs;
_inStream = _str;
goto _tailrecursive;
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
modelica_metatype tmpMeta16;
modelica_metatype tmpMeta17;
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
modelica_metatype tmpMeta20;
modelica_metatype tmpMeta21;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta12 = MMC_CAR(tmp4_1);
tmpMeta13 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta12,4,3) == 0) goto tmp3_end;
tmpMeta14 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta12), 2));
tmpMeta15 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta12), 3));
tmpMeta16 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta12), 4));
_cr1 = tmpMeta14;
_cr2 = tmpMeta15;
_src = tmpMeta16;
_xs = tmpMeta13;
_str = tmp4_2;
_sourceStr = omc_DAEDump_getSourceInformationStr(threadData, _src);
tmpMeta17 = stringAppend(_OMC_LIT2,omc_ComponentReference_printComponentRefStr(threadData, _cr1));
tmpMeta18 = stringAppend(tmpMeta17,_OMC_LIT3);
tmpMeta19 = stringAppend(tmpMeta18,omc_ComponentReference_printComponentRefStr(threadData, _cr2));
tmpMeta20 = stringAppend(tmpMeta19,_sourceStr);
tmpMeta21 = stringAppend(tmpMeta20,_OMC_LIT1);
_str = omc_IOStream_append(threadData, _str, tmpMeta21);
_inElementLst = _xs;
_inStream = _str;
goto _tailrecursive;
goto tmp3_done;
}
case 3: {
modelica_metatype tmpMeta22;
modelica_metatype tmpMeta23;
modelica_metatype tmpMeta24;
modelica_metatype tmpMeta25;
modelica_metatype tmpMeta26;
modelica_metatype tmpMeta27;
modelica_metatype tmpMeta28;
modelica_metatype tmpMeta29;
modelica_boolean tmp30;
modelica_string tmp31;
modelica_metatype tmpMeta32;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta22 = MMC_CAR(tmp4_1);
tmpMeta23 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta22,5,4) == 0) goto tmp3_end;
tmpMeta24 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta22), 2));
tmpMeta25 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta22), 3));
tmpMeta26 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta22), 4));
tmpMeta27 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta22), 5));
_dims = tmpMeta24;
_e1 = tmpMeta25;
_e2 = tmpMeta26;
_src = tmpMeta27;
_xs = tmpMeta23;
_str = tmp4_2;
_sourceStr = omc_DAEDump_getSourceInformationStr(threadData, _src);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
_s2 = omc_ExpressionDump_printExpStr(threadData, _e2);
_s3 = (omc_Config_typeinfo(threadData)?omc_Types_printDimensionsStr(threadData, _dims):_OMC_LIT34);
tmp30 = (modelica_boolean)omc_Config_typeinfo(threadData);
if(tmp30)
{
tmpMeta28 = stringAppend(_OMC_LIT100,_s3);
tmpMeta29 = stringAppend(tmpMeta28,_OMC_LIT101);
tmp31 = tmpMeta29;
}
else
{
tmp31 = _OMC_LIT34;
}
_s3 = tmp31;
tmpMeta32 = mmc_mk_cons(_OMC_LIT2, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT3, mmc_mk_cons(_s2, mmc_mk_cons(_s3, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))))))));
_str = omc_IOStream_appendList(threadData, _str, tmpMeta32);
_inElementLst = _xs;
_inStream = _str;
goto _tailrecursive;
goto tmp3_done;
}
case 4: {
modelica_metatype tmpMeta33;
modelica_metatype tmpMeta34;
modelica_metatype tmpMeta35;
modelica_metatype tmpMeta36;
modelica_metatype tmpMeta37;
modelica_metatype tmpMeta38;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta33 = MMC_CAR(tmp4_1);
tmpMeta34 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta33,8,3) == 0) goto tmp3_end;
tmpMeta35 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta33), 2));
tmpMeta36 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta33), 3));
tmpMeta37 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta33), 4));
_e1 = tmpMeta35;
_e2 = tmpMeta36;
_src = tmpMeta37;
_xs = tmpMeta34;
_str = tmp4_2;
_sourceStr = omc_DAEDump_getSourceInformationStr(threadData, _src);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
_s2 = omc_ExpressionDump_printExpStr(threadData, _e2);
tmpMeta38 = mmc_mk_cons(_OMC_LIT2, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT3, mmc_mk_cons(_s2, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil)))))));
_str = omc_IOStream_appendList(threadData, _str, tmpMeta38);
_inElementLst = _xs;
_inStream = _str;
goto _tailrecursive;
goto tmp3_done;
}
case 5: {
modelica_metatype tmpMeta39;
modelica_metatype tmpMeta40;
modelica_metatype tmpMeta41;
modelica_metatype tmpMeta42;
modelica_metatype tmpMeta43;
modelica_metatype tmpMeta44;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta39 = MMC_CAR(tmp4_1);
tmpMeta40 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta39,1,3) == 0) goto tmp3_end;
tmpMeta41 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta39), 2));
tmpMeta42 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta39), 3));
tmpMeta43 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta39), 4));
_c = tmpMeta41;
_e = tmpMeta42;
_src = tmpMeta43;
_xs = tmpMeta40;
_str = tmp4_2;
_sourceStr = omc_DAEDump_getSourceInformationStr(threadData, _src);
_s1 = omc_ComponentReference_printComponentRefStr(threadData, _c);
_s2 = omc_ExpressionDump_printExpStr(threadData, _e);
tmpMeta44 = mmc_mk_cons(_OMC_LIT2, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT3, mmc_mk_cons(_s2, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil)))))));
_str = omc_IOStream_appendList(threadData, _str, tmpMeta44);
_inElementLst = _xs;
_inStream = _str;
goto _tailrecursive;
goto tmp3_done;
}
case 6: {
modelica_metatype tmpMeta45;
modelica_metatype tmpMeta46;
modelica_metatype tmpMeta47;
modelica_metatype tmpMeta48;
modelica_metatype tmpMeta49;
modelica_metatype tmpMeta50;
modelica_integer tmp51;
modelica_metatype tmpMeta52;
modelica_metatype tmpMeta53;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta45 = MMC_CAR(tmp4_1);
tmpMeta46 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta45,20,4) == 0) goto tmp3_end;
tmpMeta47 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta45), 2));
tmpMeta48 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta45), 3));
tmpMeta49 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta45), 4));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta49,5,2) == 0) goto tmp3_end;
tmpMeta50 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta49), 3));
tmp51 = mmc_unbox_integer(tmpMeta50);
if (1 != tmp51) goto tmp3_end;
tmpMeta52 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta45), 5));
_e1 = tmpMeta47;
_e2 = tmpMeta48;
_src = tmpMeta52;
_xs = tmpMeta46;
_str = tmp4_2;
_sourceStr = omc_DAEDump_getSourceInformationStr(threadData, _src);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
_s2 = omc_ExpressionDump_printExpStr(threadData, _e2);
tmpMeta53 = mmc_mk_cons(_OMC_LIT19, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT20, mmc_mk_cons(_s2, mmc_mk_cons(_OMC_LIT30, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))))))));
_str = omc_IOStream_appendList(threadData, _str, tmpMeta53);
_inElementLst = _xs;
_inStream = _str;
goto _tailrecursive;
goto tmp3_done;
}
case 7: {
modelica_metatype tmpMeta54;
modelica_metatype tmpMeta55;
modelica_metatype tmpMeta56;
modelica_metatype tmpMeta57;
modelica_metatype tmpMeta58;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta54 = MMC_CAR(tmp4_1);
tmpMeta55 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta54,22,2) == 0) goto tmp3_end;
tmpMeta56 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta54), 2));
tmpMeta57 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta54), 3));
_e1 = tmpMeta56;
_src = tmpMeta57;
_xs = tmpMeta55;
_str = tmp4_2;
_sourceStr = omc_DAEDump_getSourceInformationStr(threadData, _src);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
tmpMeta58 = mmc_mk_cons(_OMC_LIT23, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT30, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))))));
_str = omc_IOStream_appendList(threadData, _str, tmpMeta58);
_inElementLst = _xs;
_inStream = _str;
goto _tailrecursive;
goto tmp3_done;
}
case 8: {
modelica_metatype tmpMeta59;
modelica_metatype tmpMeta60;
modelica_metatype tmpMeta61;
modelica_metatype tmpMeta62;
modelica_metatype tmpMeta63;
modelica_metatype tmpMeta64;
modelica_metatype tmpMeta65;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta59 = MMC_CAR(tmp4_1);
tmpMeta60 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta59,12,7) == 0) goto tmp3_end;
tmpMeta61 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta59), 4));
tmpMeta62 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta59), 6));
tmpMeta63 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta59), 7));
tmpMeta64 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta59), 8));
_s = tmpMeta61;
_e1 = tmpMeta62;
_xs1 = tmpMeta63;
_src = tmpMeta64;
_xs = tmpMeta60;
_str = tmp4_2;
omc_DAEDump_getSourceInformationStr(threadData, _src);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
tmpMeta65 = mmc_mk_cons(_OMC_LIT90, mmc_mk_cons(_s, mmc_mk_cons(_OMC_LIT91, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT92, MMC_REFSTRUCTLIT(mmc_nil))))));
_str = omc_IOStream_appendList(threadData, _str, tmpMeta65);
_str = omc_DAEDump_dumpEquationsStream(threadData, _xs1, _str);
_str = omc_IOStream_appendList(threadData, _str, _OMC_LIT94);
_inElementLst = _xs;
_inStream = _str;
goto _tailrecursive;
goto tmp3_done;
}
case 9: {
modelica_metatype tmpMeta66;
modelica_metatype tmpMeta67;
modelica_metatype tmpMeta68;
modelica_metatype tmpMeta69;
modelica_metatype tmpMeta70;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta66 = MMC_CAR(tmp4_1);
tmpMeta67 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta66,13,4) == 0) goto tmp3_end;
tmpMeta68 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta66), 2));
if (!listEmpty(tmpMeta68)) goto tmp3_end;
tmpMeta69 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta66), 3));
if (!listEmpty(tmpMeta69)) goto tmp3_end;
tmpMeta70 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta66), 4));
if (!listEmpty(tmpMeta70)) goto tmp3_end;
_str = tmp4_2;
tmpMeta1 = _str;
goto tmp3_done;
}
case 10: {
modelica_metatype tmpMeta71;
modelica_metatype tmpMeta72;
modelica_metatype tmpMeta73;
modelica_metatype tmpMeta74;
modelica_metatype tmpMeta75;
modelica_metatype tmpMeta76;
modelica_metatype tmpMeta77;
modelica_metatype tmpMeta78;
modelica_metatype tmpMeta79;
modelica_metatype tmpMeta80;
modelica_metatype tmpMeta81;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta71 = MMC_CAR(tmp4_1);
tmpMeta72 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta71,13,4) == 0) goto tmp3_end;
tmpMeta73 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta71), 2));
if (listEmpty(tmpMeta73)) goto tmp3_end;
tmpMeta74 = MMC_CAR(tmpMeta73);
tmpMeta75 = MMC_CDR(tmpMeta73);
tmpMeta76 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta71), 3));
if (listEmpty(tmpMeta76)) goto tmp3_end;
tmpMeta77 = MMC_CAR(tmpMeta76);
tmpMeta78 = MMC_CDR(tmpMeta76);
tmpMeta79 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta71), 4));
if (!listEmpty(tmpMeta79)) goto tmp3_end;
tmpMeta80 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta71), 5));
_e = tmpMeta74;
_conds = tmpMeta75;
_xs1 = tmpMeta77;
_tb = tmpMeta78;
_src = tmpMeta80;
_xs = tmpMeta72;
_str = tmp4_2;
_sourceStr = omc_DAEDump_getSourceInformationStr(threadData, _src);
_str = omc_IOStream_append(threadData, _str, _OMC_LIT95);
_str = omc_IOStream_append(threadData, _str, omc_ExpressionDump_printExpStr(threadData, _e));
_str = omc_IOStream_append(threadData, _str, _OMC_LIT96);
_str = omc_DAEDump_dumpEquationsStream(threadData, _xs1, _str);
_str = omc_DAEDump_dumpIfEquationsStream(threadData, _conds, _tb, _str);
_str = omc_IOStream_append(threadData, _str, _OMC_LIT102);
tmpMeta81 = stringAppend(_sourceStr,_OMC_LIT1);
_str = omc_IOStream_append(threadData, _str, tmpMeta81);
_inElementLst = _xs;
_inStream = _str;
goto _tailrecursive;
goto tmp3_done;
}
case 11: {
modelica_metatype tmpMeta82;
modelica_metatype tmpMeta83;
modelica_metatype tmpMeta84;
modelica_metatype tmpMeta85;
modelica_metatype tmpMeta86;
modelica_metatype tmpMeta87;
modelica_metatype tmpMeta88;
modelica_metatype tmpMeta89;
modelica_metatype tmpMeta90;
modelica_metatype tmpMeta91;
modelica_metatype tmpMeta92;
modelica_metatype tmpMeta93;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta82 = MMC_CAR(tmp4_1);
tmpMeta83 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta82,13,4) == 0) goto tmp3_end;
tmpMeta84 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta82), 2));
if (listEmpty(tmpMeta84)) goto tmp3_end;
tmpMeta85 = MMC_CAR(tmpMeta84);
tmpMeta86 = MMC_CDR(tmpMeta84);
tmpMeta87 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta82), 3));
if (listEmpty(tmpMeta87)) goto tmp3_end;
tmpMeta88 = MMC_CAR(tmpMeta87);
tmpMeta89 = MMC_CDR(tmpMeta87);
tmpMeta90 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta82), 4));
tmpMeta91 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta82), 5));
_e = tmpMeta85;
_conds = tmpMeta86;
_xs1 = tmpMeta88;
_tb = tmpMeta89;
_xs2 = tmpMeta90;
_src = tmpMeta91;
_xs = tmpMeta83;
_str = tmp4_2;
_sourceStr = omc_DAEDump_getSourceInformationStr(threadData, _src);
_str = omc_IOStream_append(threadData, _str, _OMC_LIT95);
_str = omc_IOStream_append(threadData, _str, omc_ExpressionDump_printExpStr(threadData, _e));
_str = omc_IOStream_append(threadData, _str, _OMC_LIT96);
_str = omc_DAEDump_dumpEquationsStream(threadData, _xs1, _str);
_str = omc_DAEDump_dumpIfEquationsStream(threadData, _conds, _tb, _str);
_str = omc_IOStream_append(threadData, _str, _OMC_LIT97);
_str = omc_DAEDump_dumpEquationsStream(threadData, _xs2, _str);
tmpMeta92 = stringAppend(_OMC_LIT102,_sourceStr);
tmpMeta93 = stringAppend(tmpMeta92,_OMC_LIT1);
_str = omc_IOStream_append(threadData, _str, tmpMeta93);
_inElementLst = _xs;
_inStream = _str;
goto _tailrecursive;
goto tmp3_done;
}
case 12: {
modelica_metatype tmpMeta94;
modelica_metatype tmpMeta95;
modelica_metatype tmpMeta96;
modelica_metatype tmpMeta97;
modelica_metatype tmpMeta98;
modelica_metatype tmpMeta99;
modelica_metatype tmpMeta100;
modelica_metatype tmpMeta101;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta94 = MMC_CAR(tmp4_1);
tmpMeta95 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta94,10,4) == 0) goto tmp3_end;
tmpMeta96 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta94), 2));
tmpMeta97 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta94), 3));
tmpMeta98 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta94), 4));
if (optionNone(tmpMeta98)) goto tmp3_end;
tmpMeta99 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta98), 1));
tmpMeta100 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta94), 5));
_e = tmpMeta96;
_xs1 = tmpMeta97;
_el = tmpMeta99;
_src = tmpMeta100;
_xs = tmpMeta95;
_str = tmp4_2;
omc_DAEDump_getSourceInformationStr(threadData, _src);
_str = omc_IOStream_append(threadData, _str, _OMC_LIT103);
_str = omc_IOStream_append(threadData, _str, omc_ExpressionDump_printExpStr(threadData, _e));
_str = omc_IOStream_append(threadData, _str, _OMC_LIT96);
_str = omc_DAEDump_dumpEquationsStream(threadData, _xs1, _str);
_str = omc_IOStream_append(threadData, _str, _OMC_LIT104);
tmpMeta101 = mmc_mk_cons(_el, _xs);
_inElementLst = tmpMeta101;
_inStream = _str;
goto _tailrecursive;
goto tmp3_done;
}
case 13: {
modelica_metatype tmpMeta102;
modelica_metatype tmpMeta103;
modelica_metatype tmpMeta104;
modelica_metatype tmpMeta105;
modelica_metatype tmpMeta106;
modelica_metatype tmpMeta107;
modelica_metatype tmpMeta108;
modelica_metatype tmpMeta109;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta102 = MMC_CAR(tmp4_1);
tmpMeta103 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta102,10,4) == 0) goto tmp3_end;
tmpMeta104 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta102), 2));
tmpMeta105 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta102), 3));
tmpMeta106 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta102), 4));
if (!optionNone(tmpMeta106)) goto tmp3_end;
tmpMeta107 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta102), 5));
_e = tmpMeta104;
_xs1 = tmpMeta105;
_src = tmpMeta107;
_xs = tmpMeta103;
_str = tmp4_2;
_sourceStr = omc_DAEDump_getSourceInformationStr(threadData, _src);
_str = omc_IOStream_append(threadData, _str, _OMC_LIT105);
_str = omc_IOStream_append(threadData, _str, omc_ExpressionDump_printExpStr(threadData, _e));
_str = omc_IOStream_append(threadData, _str, _OMC_LIT96);
_str = omc_DAEDump_dumpEquationsStream(threadData, _xs1, _str);
tmpMeta108 = stringAppend(_OMC_LIT106,_sourceStr);
tmpMeta109 = stringAppend(tmpMeta108,_OMC_LIT1);
_str = omc_IOStream_append(threadData, _str, tmpMeta109);
_inElementLst = _xs;
_inStream = _str;
goto _tailrecursive;
goto tmp3_done;
}
case 14: {
modelica_metatype tmpMeta110;
modelica_metatype tmpMeta111;
modelica_metatype tmpMeta112;
modelica_metatype tmpMeta113;
modelica_metatype tmpMeta114;
modelica_metatype tmpMeta115;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta110 = MMC_CAR(tmp4_1);
tmpMeta111 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta110,24,3) == 0) goto tmp3_end;
tmpMeta112 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta110), 2));
tmpMeta113 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta110), 3));
tmpMeta114 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta110), 4));
_cr = tmpMeta112;
_e = tmpMeta113;
_src = tmpMeta114;
_xs = tmpMeta111;
_str = tmp4_2;
_sourceStr = omc_DAEDump_getSourceInformationStr(threadData, _src);
_s = omc_ComponentReference_printComponentRefStr(threadData, _cr);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e);
tmpMeta115 = mmc_mk_cons(_OMC_LIT107, mmc_mk_cons(_s, mmc_mk_cons(_OMC_LIT20, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT30, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))))))));
_str = omc_IOStream_appendList(threadData, _str, tmpMeta115);
_inElementLst = _xs;
_inStream = _str;
goto _tailrecursive;
goto tmp3_done;
}
case 15: {
modelica_metatype tmpMeta116;
modelica_metatype tmpMeta117;
modelica_metatype tmpMeta118;
modelica_metatype tmpMeta119;
modelica_metatype tmpMeta120;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta116 = MMC_CAR(tmp4_1);
tmpMeta117 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta116,25,2) == 0) goto tmp3_end;
tmpMeta118 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta116), 2));
tmpMeta119 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta116), 3));
_e = tmpMeta118;
_src = tmpMeta119;
_xs = tmpMeta117;
_str = tmp4_2;
_sourceStr = omc_DAEDump_getSourceInformationStr(threadData, _src);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e);
tmpMeta120 = mmc_mk_cons(_OMC_LIT2, mmc_mk_cons(_s1, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil)))));
_str = omc_IOStream_appendList(threadData, _str, tmpMeta120);
_inElementLst = _xs;
_inStream = _str;
goto _tailrecursive;
goto tmp3_done;
}
case 16: {
modelica_metatype tmpMeta121;
modelica_metatype tmpMeta122;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta121 = MMC_CAR(tmp4_1);
tmpMeta122 = MMC_CDR(tmp4_1);
_xs = tmpMeta122;
_str = tmp4_2;
_str = omc_IOStream_append(threadData, _str, _OMC_LIT108);
_inElementLst = _xs;
_inStream = _str;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outStream = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _outStream;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDump_dumpInitialAlgorithmsStream(threadData_t *threadData, modelica_metatype _inElementLst, modelica_metatype _inStream)
{
modelica_metatype _outStream = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;volatile modelica_metatype tmp4_2;
tmp4_1 = _inElementLst;
tmp4_2 = _inStream;
{
modelica_metatype _str = NULL;
modelica_metatype _stmts = NULL;
modelica_metatype _xs = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp4 < 3; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_1)) goto tmp3_end;
_str = tmp4_2;
tmp4 += 2;
tmpMeta1 = _str;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_1);
tmpMeta7 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,17,2) == 0) goto tmp3_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 2));
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta8), 2));
_stmts = tmpMeta9;
_xs = tmpMeta7;
_str = tmp4_2;
_str = omc_IOStream_append(threadData, _str, _OMC_LIT74);
_str = omc_IOStream_appendList(threadData, _str, omc_List_map(threadData, _stmts, boxvar_DAEDump_ppStatementStr));
tmpMeta1 = omc_DAEDump_dumpInitialAlgorithmsStream(threadData, _xs, _str);
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta10 = MMC_CAR(tmp4_1);
tmpMeta11 = MMC_CDR(tmp4_1);
_xs = tmpMeta11;
_str = tmp4_2;
tmpMeta1 = omc_DAEDump_dumpInitialAlgorithmsStream(threadData, _xs, _str);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
tmp3_done:
(void)tmp4;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp3_done2;
goto_2:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp4 < 3) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_outStream = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _outStream;
}
DLLExport
modelica_metatype omc_DAEDump_dumpAlgorithmsStream(threadData_t *threadData, modelica_metatype _inElementLst, modelica_metatype _inStream)
{
modelica_metatype _outStream = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;volatile modelica_metatype tmp4_2;
tmp4_1 = _inElementLst;
tmp4_2 = _inStream;
{
modelica_metatype _str = NULL;
modelica_metatype _stmts = NULL;
modelica_metatype _xs = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp4 < 3; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_1)) goto tmp3_end;
_str = tmp4_2;
tmp4 += 2;
tmpMeta1 = _str;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_1);
tmpMeta7 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,16,2) == 0) goto tmp3_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 2));
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta8), 2));
_stmts = tmpMeta9;
_xs = tmpMeta7;
_str = tmp4_2;
_str = omc_IOStream_append(threadData, _str, _OMC_LIT75);
_str = omc_IOStream_appendList(threadData, _str, omc_List_map(threadData, _stmts, boxvar_DAEDump_ppStatementStr));
tmpMeta1 = omc_DAEDump_dumpAlgorithmsStream(threadData, _xs, _str);
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta10 = MMC_CAR(tmp4_1);
tmpMeta11 = MMC_CDR(tmp4_1);
_xs = tmpMeta11;
_str = tmp4_2;
tmpMeta1 = omc_DAEDump_dumpAlgorithmsStream(threadData, _xs, _str);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
tmp3_done:
(void)tmp4;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp3_done2;
goto_2:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp4 < 3) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_outStream = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _outStream;
}
DLLExport
modelica_metatype omc_DAEDump_dumpCompWithSplitElementsStream(threadData_t *threadData, modelica_metatype _inCompLst, modelica_metatype _inStream)
{
modelica_metatype _outStream = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _inCompLst;
tmp4_2 = _inStream;
{
modelica_string _name = NULL;
modelica_metatype _spltElems = NULL;
modelica_metatype _comment = NULL;
modelica_string _cstr = NULL;
modelica_metatype _str = NULL;
modelica_metatype _xs = NULL;
modelica_metatype _v = NULL;
modelica_metatype _ie = NULL;
modelica_metatype _ia = NULL;
modelica_metatype _e = NULL;
modelica_metatype _a = NULL;
modelica_metatype _co = NULL;
modelica_metatype _sm = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_1)) goto tmp3_end;
_str = tmp4_2;
tmpMeta1 = _str;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta21;
modelica_metatype tmpMeta22;
modelica_metatype tmpMeta23;
modelica_metatype tmpMeta24;
modelica_metatype tmpMeta25;
modelica_metatype tmpMeta26;
modelica_metatype tmpMeta27;
modelica_metatype tmpMeta28;
modelica_metatype tmpMeta29;
modelica_metatype tmpMeta30;
modelica_metatype tmpMeta31;
modelica_metatype tmpMeta32;
modelica_metatype tmpMeta33;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_1);
tmpMeta7 = MMC_CDR(tmp4_1);
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 2));
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 3));
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 4));
_name = tmpMeta8;
_spltElems = tmpMeta9;
_comment = tmpMeta10;
_xs = tmpMeta7;
_str = tmp4_2;
{
{
volatile mmc_switch_type tmp13;
int tmp14;
tmp13 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp12_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp13 < 2; tmp13++) {
switch (MMC_SWITCH_CAST(tmp13)) {
case 0: {
modelica_metatype tmpMeta15;
modelica_metatype tmpMeta16;
modelica_metatype tmpMeta17;
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
modelica_metatype tmpMeta20;
tmpMeta15 = _comment;
if (optionNone(tmpMeta15)) goto goto_11;
tmpMeta16 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta15), 1));
tmpMeta17 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta16), 3));
if (optionNone(tmpMeta17)) goto goto_11;
tmpMeta18 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta17), 1));
_cstr = tmpMeta18;
tmpMeta19 = stringAppend(_OMC_LIT109,_cstr);
tmpMeta20 = stringAppend(tmpMeta19,_OMC_LIT110);
_cstr = tmpMeta20;
goto tmp12_done;
}
case 1: {
_cstr = _OMC_LIT34;
goto tmp12_done;
}
}
goto tmp12_end;
tmp12_end: ;
}
goto goto_11;
tmp12_done:
(void)tmp13;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp12_done2;
goto_11:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp13 < 2) {
goto tmp12_top;
}
goto goto_2;
tmp12_done2:;
}
}
;
tmpMeta21 = _spltElems;
tmpMeta22 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta21), 2));
tmpMeta23 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta21), 3));
tmpMeta24 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta21), 4));
tmpMeta25 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta21), 5));
tmpMeta26 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta21), 6));
tmpMeta27 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta21), 7));
tmpMeta28 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta21), 10));
_v = tmpMeta22;
_ie = tmpMeta23;
_ia = tmpMeta24;
_e = tmpMeta25;
_a = tmpMeta26;
_co = tmpMeta27;
_sm = tmpMeta28;
tmpMeta29 = stringAppend(_name,_cstr);
tmpMeta30 = stringAppend(tmpMeta29,_OMC_LIT15);
_str = omc_IOStream_append(threadData, _str, tmpMeta30);
_str = omc_DAEDump_dumpCompWithSplitElementsStream(threadData, _sm, _str);
_str = omc_DAEDump_dumpVarsStream(threadData, _v, 0, _str);
_str = omc_IOStream_append(threadData, _str, (listEmpty(_ie)?_OMC_LIT34:_OMC_LIT111));
_str = omc_DAEDump_dumpInitialEquationsStream(threadData, _ie, _str);
_str = omc_DAEDump_dumpInitialAlgorithmsStream(threadData, _ia, _str);
_str = omc_IOStream_append(threadData, _str, (listEmpty(_e)?_OMC_LIT34:_OMC_LIT112));
_str = omc_DAEDump_dumpEquationsStream(threadData, _e, _str);
_str = omc_DAEDump_dumpAlgorithmsStream(threadData, _a, _str);
_str = omc_IOStream_append(threadData, _str, (listEmpty(_co)?_OMC_LIT34:_OMC_LIT113));
_str = omc_DAEDump_dumpConstraintStream(threadData, _co, _str);
tmpMeta31 = stringAppend(_OMC_LIT57,_name);
tmpMeta32 = stringAppend(tmpMeta31,_cstr);
tmpMeta33 = stringAppend(tmpMeta32,_OMC_LIT1);
_str = omc_IOStream_append(threadData, _str, tmpMeta33);
_inCompLst = _xs;
_inStream = _str;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outStream = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _outStream;
}
DLLExport
modelica_metatype omc_DAEDump_dumpElementsStream(threadData_t *threadData, modelica_metatype _l, modelica_metatype _inStream)
{
modelica_metatype _outStream = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _inStream;
{
modelica_metatype _str = NULL;
modelica_metatype _v = NULL;
modelica_metatype _ie = NULL;
modelica_metatype _ia = NULL;
modelica_metatype _e = NULL;
modelica_metatype _a = NULL;
modelica_metatype _co = NULL;
modelica_metatype _sm = NULL;
modelica_metatype _comments = NULL;
modelica_metatype _ann = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
_str = tmp4_1;
_v = omc_DAEUtil_splitElements(threadData, _l ,&_ie ,&_ia ,&_e ,&_a ,NULL ,&_co ,NULL ,&_sm ,&_comments);
_str = omc_DAEDump_dumpCompWithSplitElementsStream(threadData, _sm, _str);
_str = omc_DAEDump_dumpVarsStream(threadData, _v, 0, _str);
_str = omc_IOStream_append(threadData, _str, (listEmpty(_ie)?_OMC_LIT34:_OMC_LIT111));
_str = omc_DAEDump_dumpInitialEquationsStream(threadData, _ie, _str);
_str = omc_DAEDump_dumpInitialAlgorithmsStream(threadData, _ia, _str);
_str = omc_IOStream_append(threadData, _str, (listEmpty(_e)?_OMC_LIT34:_OMC_LIT112));
_str = omc_DAEDump_dumpEquationsStream(threadData, _e, _str);
_str = omc_DAEDump_dumpAlgorithmsStream(threadData, _a, _str);
_str = omc_IOStream_append(threadData, _str, (listEmpty(_co)?_OMC_LIT34:_OMC_LIT113));
_str = omc_DAEDump_dumpConstraintStream(threadData, _co, _str);
{
modelica_metatype __omcQ_24tmpVar1;
modelica_metatype* tmp7;
modelica_metatype tmpMeta8;
modelica_string tmp9 = 0;
modelica_string __omcQ_24tmpVar0;
modelica_integer tmp17;
modelica_metatype _cmt_loopVar = 0;
modelica_metatype _cmt;
_cmt_loopVar = _comments;
tmpMeta8 = MMC_REFSTRUCTLIT(mmc_nil);
__omcQ_24tmpVar1 = tmpMeta8;
tmp7 = &__omcQ_24tmpVar1;
while(1) {
tmp17 = 1;
if (!listEmpty(_cmt_loopVar)) {
_cmt = MMC_CAR(_cmt_loopVar);
_cmt_loopVar = MMC_CDR(_cmt_loopVar);
tmp17--;
}
if (tmp17 == 0) {
{
modelica_metatype tmp12_1;
tmp12_1 = _cmt;
{
volatile mmc_switch_type tmp12;
int tmp13;
tmp12 = 0;
for (; tmp12 < 2; tmp12++) {
switch (MMC_SWITCH_CAST(tmp12)) {
case 0: {
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
modelica_metatype tmpMeta16;
tmpMeta14 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp12_1), 2));
if (optionNone(tmpMeta14)) goto tmp11_end;
tmpMeta15 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta14), 1));
_ann = tmpMeta14;
tmpMeta16 = mmc_mk_box3(3, &SCode_Comment_COMMENT__desc, _ann, mmc_mk_none());
tmp9 = omc_SCodeDump_printCommentStr(threadData, tmpMeta16, _OMC_LIT114);
goto tmp11_done;
}
case 1: {
tmp9 = _OMC_LIT34;
goto tmp11_done;
}
}
goto tmp11_end;
tmp11_end: ;
}
goto goto_10;
goto_10:;
goto goto_2;
goto tmp11_done;
tmp11_done:;
}
}__omcQ_24tmpVar0 = tmp9;
*tmp7 = mmc_mk_cons(__omcQ_24tmpVar0,0);
tmp7 = &MMC_CDR(*tmp7);
} else if (tmp17 == 1) {
break;
} else {
goto goto_2;
}
}
*tmp7 = mmc_mk_nil();
tmpMeta6 = __omcQ_24tmpVar1;
}
tmpMeta1 = omc_IOStream_append(threadData, _str, stringAppendList(tmpMeta6));
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outStream = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _outStream;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDump_dumpCompElementStream(threadData_t *threadData, modelica_metatype _inElement, modelica_metatype _inStream)
{
modelica_metatype _outStream = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;volatile modelica_metatype tmp4_2;
tmp4_1 = _inElement;
tmp4_2 = _inStream;
{
modelica_string _n = NULL;
modelica_metatype _l = NULL;
modelica_metatype _c = NULL;
modelica_metatype _str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
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_1,18,4) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5));
_n = tmpMeta6;
_l = tmpMeta7;
_c = tmpMeta8;
_str = tmp4_2;
_str = omc_IOStream_append(threadData, _str, _OMC_LIT115);
_str = omc_IOStream_append(threadData, _str, _n);
_str = omc_IOStream_append(threadData, _str, omc_DAEDump_dumpCommentStr(threadData, _c));
_str = omc_IOStream_append(threadData, _str, _OMC_LIT15);
_str = omc_DAEDump_dumpElementsStream(threadData, _l, _str);
_str = omc_IOStream_append(threadData, _str, omc_DAEDump_dumpClassAnnotationStr(threadData, _c));
_str = omc_IOStream_append(threadData, _str, _OMC_LIT57);
_str = omc_IOStream_append(threadData, _str, _n);
tmpMeta1 = omc_IOStream_append(threadData, _str, _OMC_LIT1);
goto tmp3_done;
}
case 1: {
_str = tmp4_2;
tmpMeta1 = _str;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
tmp3_done:
(void)tmp4;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp3_done2;
goto_2:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp4 < 2) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_outStream = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _outStream;
}
PROTECTED_FUNCTION_STATIC modelica_boolean omc_DAEDump_isVisibleFunction(threadData_t *threadData, modelica_metatype _inFunc, modelica_boolean _inHideRecordCons, modelica_boolean _inInliningEnabled)
{
modelica_boolean _outIsVisible;
modelica_boolean tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_boolean tmp4_2;modelica_boolean tmp4_3;
tmp4_1 = _inFunc;
tmp4_2 = _inHideRecordCons;
tmp4_3 = _inInliningEnabled;
{
modelica_metatype _cmt = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 7; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,10) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
if (listEmpty(tmpMeta6)) goto tmp3_end;
tmpMeta7 = MMC_CAR(tmpMeta6);
tmpMeta8 = MMC_CDR(tmpMeta6);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta7,1,2) == 0) goto tmp3_end;
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta7), 3));
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta9), 5));
if (7 != MMC_STRLEN(tmpMeta10) || strcmp(MMC_STRINGDATA(_OMC_LIT72), MMC_STRINGDATA(tmpMeta10)) != 0) goto tmp3_end;
tmp1 = 0;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,10) == 0) goto tmp3_end;
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta11,2,1) == 0) goto tmp3_end;
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta11), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta12,0,2) == 0) goto tmp3_end;
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta12), 2));
if (12 != MMC_STRLEN(tmpMeta13) || strcmp(MMC_STRINGDATA(_OMC_LIT117), MMC_STRINGDATA(tmpMeta13)) != 0) goto tmp3_end;
tmp1 = 0;
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta14;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,10) == 0) goto tmp3_end;
tmpMeta14 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 8));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta14,1,0) == 0) goto tmp3_end;
tmp1 = 0;
goto tmp3_done;
}
case 3: {
modelica_metatype tmpMeta15;
if (1 != tmp4_3) goto tmp3_end;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,10) == 0) goto tmp3_end;
tmpMeta15 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 8));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta15,2,0) == 0) goto tmp3_end;
tmp1 = 0;
goto tmp3_done;
}
case 4: {
modelica_metatype tmpMeta16;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,10) == 0) goto tmp3_end;
tmpMeta16 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 11));
_cmt = tmpMeta16;
tmp1 = (!omc_SCodeUtil_optCommentHasBooleanNamedAnnotation(threadData, _cmt, _OMC_LIT116));
goto tmp3_done;
}
case 5: {
if (1 != tmp4_2) goto tmp3_end;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,3) == 0) goto tmp3_end;
tmp1 = 0;
goto tmp3_done;
}
case 6: {
tmp1 = 1;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outIsVisible = tmp1;
_return: OMC_LABEL_UNUSED
return _outIsVisible;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDump_isVisibleFunction(threadData_t *threadData, modelica_metatype _inFunc, modelica_metatype _inHideRecordCons, modelica_metatype _inInliningEnabled)
{
modelica_integer tmp1;
modelica_integer tmp2;
modelica_boolean _outIsVisible;
modelica_metatype out_outIsVisible;
tmp1 = mmc_unbox_integer(_inHideRecordCons);
tmp2 = mmc_unbox_integer(_inInliningEnabled);
_outIsVisible = omc_DAEDump_isVisibleFunction(threadData, _inFunc, tmp1, tmp2);
out_outIsVisible = mmc_mk_icon(_outIsVisible);
return out_outIsVisible;
}
DLLExport
modelica_metatype omc_DAEDump_dumpFunctionList(threadData_t *threadData, modelica_metatype _functionTree)
{
modelica_metatype _funList = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
{
modelica_metatype _funcs = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
_funcs = omc_DAEUtil_getFunctionList(threadData, _functionTree, 0);
_funcs = omc_List_filter2OnTrue(threadData, _funcs, boxvar_DAEDump_isVisibleFunction, mmc_mk_boolean(omc_Flags_isSet(threadData, _OMC_LIT63)), mmc_mk_boolean(omc_Flags_isSet(threadData, _OMC_LIT121)));
_funcs = omc_DAEDump_sortFunctions(threadData, _funcs);
tmpMeta6 = mmc_mk_box2(3, &DAEDump_functionList_FUNCTION__LIST__desc, _funcs);
tmpMeta1 = tmpMeta6;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_funList = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _funList;
}
DLLExport
modelica_metatype omc_DAEDump_dumpStream(threadData_t *threadData, modelica_metatype _dae, modelica_metatype _functionTree, modelica_metatype _inStream)
{
modelica_metatype _outStream = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _dae;
tmp4_2 = _inStream;
{
modelica_metatype _daelist = NULL;
modelica_metatype _funcs = NULL;
modelica_metatype _str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
_daelist = tmpMeta6;
_str = tmp4_2;
_funcs = omc_DAEUtil_getFunctionList(threadData, _functionTree, 0);
_funcs = omc_DAEDump_sortFunctions(threadData, _funcs);
_str = omc_List_fold(threadData, _funcs, boxvar_DAEDump_dumpFunctionStream, _str);
_str = omc_IOStream_appendList(threadData, _str, omc_List_map(threadData, _daelist, boxvar_DAEDump_dumpExtObjClassStr));
tmpMeta1 = omc_List_fold(threadData, _daelist, boxvar_DAEDump_dumpCompElementStream, _str);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outStream = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _outStream;
}
DLLExport
modelica_string omc_DAEDump_dumpConstraintsStr(threadData_t *threadData, modelica_metatype _constrs)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
{
modelica_metatype _myStream = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_myStream = omc_IOStream_create(threadData, _OMC_LIT122, _OMC_LIT88);
_myStream = omc_DAEDump_dumpConstraintStream(threadData, _constrs, _myStream);
tmp1 = omc_IOStream_string(threadData, _myStream);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
DLLExport
modelica_string omc_DAEDump_dumpAlgorithmsStr(threadData_t *threadData, modelica_metatype _algs)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
{
modelica_metatype _myStream = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_myStream = omc_IOStream_create(threadData, _OMC_LIT123, _OMC_LIT88);
_myStream = omc_DAEDump_dumpAlgorithmsStream(threadData, _algs, _myStream);
tmp1 = omc_IOStream_string(threadData, _myStream);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
DLLExport
modelica_string omc_DAEDump_dumpElementsStr(threadData_t *threadData, modelica_metatype _els)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
{
modelica_metatype _myStream = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
_myStream = omc_IOStream_create(threadData, _OMC_LIT124, _OMC_LIT88);
_myStream = omc_DAEDump_dumpElementsStream(threadData, _els, _myStream);
tmp1 = omc_IOStream_string(threadData, _myStream);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
DLLExport
modelica_string omc_DAEDump_dumpStr(threadData_t *threadData, modelica_metatype _inDAElist, modelica_metatype _functionTree)
{
modelica_string _outString = NULL;
modelica_metatype _daelist = NULL;
modelica_metatype _funList = NULL;
modelica_metatype _fixedDae = NULL;
modelica_metatype tmpMeta1;
modelica_metatype tmpMeta2;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta1 = _inDAElist;
tmpMeta2 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta1), 2));
_daelist = tmpMeta2;
_funList = omc_DAEDump_dumpFunctionList(threadData, _functionTree);
_fixedDae = omc_List_map(threadData, _daelist, boxvar_DAEUtil_splitComponent);
_outString = omc_Tpl_tplString2(threadData, boxvar_DAEDumpTpl_dumpDAE, _fixedDae, _funList);
_return: OMC_LABEL_UNUSED
return _outString;
}
DLLExport
modelica_string omc_DAEDump_unparseDimensions(threadData_t *threadData, modelica_metatype _dims, modelica_boolean _printTypeDimension)
{
modelica_string _dimsStr = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;volatile modelica_boolean tmp4_2;
tmp4_1 = _dims;
tmp4_2 = _printTypeDimension;
{
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp4 < 3; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (0 != tmp4_2) goto tmp3_end;
tmp4 += 2;
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
case 1: {
if (1 != tmp4_2) goto tmp3_end;
if (!listEmpty(tmp4_1)) goto tmp3_end;
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (1 != tmp4_2) goto tmp3_end;
tmpMeta6 = stringAppend(_OMC_LIT125,stringDelimitList(omc_List_map(threadData, _dims, boxvar_ExpressionDump_dimensionString), _OMC_LIT43));
tmpMeta7 = stringAppend(tmpMeta6,_OMC_LIT126);
tmp1 = tmpMeta7;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
tmp3_done:
(void)tmp4;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp3_done2;
goto_2:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp4 < 3) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_dimsStr = tmp1;
_return: OMC_LABEL_UNUSED
return _dimsStr;
}
modelica_metatype boxptr_DAEDump_unparseDimensions(threadData_t *threadData, modelica_metatype _dims, modelica_metatype _printTypeDimension)
{
modelica_integer tmp1;
modelica_string _dimsStr = NULL;
tmp1 = mmc_unbox_integer(_printTypeDimension);
_dimsStr = omc_DAEDump_unparseDimensions(threadData, _dims, tmp1);
return _dimsStr;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_unparseType(threadData_t *threadData, modelica_metatype _tp)
{
modelica_string _str = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;
tmp4_1 = _tp;
{
modelica_string _name = NULL;
modelica_string _dim_str = NULL;
modelica_metatype _path = NULL;
modelica_metatype _bc_tp = NULL;
modelica_metatype _ty = NULL;
modelica_metatype _dims = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp4 < 5; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,9,3) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,3,1) == 0) goto tmp3_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 2));
_path = tmpMeta7;
tmp4 += 3;
tmp1 = omc_AbsynUtil_pathStringNoQual(threadData, _path, _OMC_LIT17, 0, 0);
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,6,2) == 0) goto tmp3_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
_ty = tmpMeta8;
tmp4 += 2;
tmpMeta9 = omc_Types_arrayElementType(threadData, _ty);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta9,9,3) == 0) goto goto_2;
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta9), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta10,3,1) == 0) goto goto_2;
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta10), 2));
_path = tmpMeta11;
_dims = omc_Types_getDimensions(threadData, _tp);
_name = omc_AbsynUtil_pathStringNoQual(threadData, _path, _OMC_LIT17, 0, 0);
_dim_str = omc_List_toString(threadData, _dims, boxvar_ExpressionDump_dimensionString, _OMC_LIT34, _OMC_LIT125, _OMC_LIT43, _OMC_LIT126, 0, ((modelica_integer) 0));
tmpMeta12 = stringAppend(_name,_dim_str);
tmp1 = tmpMeta12;
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta13;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,10,4) == 0) goto tmp3_end;
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta13,10,4) == 0) goto tmp3_end;
_ty = tmpMeta13;
tmp1 = omc_DAEDump_unparseType(threadData, _ty);
goto tmp3_done;
}
case 3: {
modelica_metatype tmpMeta14;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,10,4) == 0) goto tmp3_end;
tmpMeta14 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
_bc_tp = tmpMeta14;
tmp1 = omc_Types_unparseType(threadData, _bc_tp);
goto tmp3_done;
}
case 4: {
tmp1 = omc_Types_unparseType(threadData, _tp);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
tmp3_done:
(void)tmp4;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp3_done2;
goto_2:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp4 < 5) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_str = tmp1;
_return: OMC_LABEL_UNUSED
return _str;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDump_buildGrElement(threadData_t *threadData, modelica_metatype _inElement)
{
modelica_metatype _outNode = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _inElement;
{
modelica_string _crstr = NULL;
modelica_string _vkstr = NULL;
modelica_string _expstr = NULL;
modelica_string _expstr_1 = NULL;
modelica_string _e1str = NULL;
modelica_string _e2str = NULL;
modelica_string _n = NULL;
modelica_metatype _cr = NULL;
modelica_metatype _cr1 = NULL;
modelica_metatype _cr2 = NULL;
modelica_metatype _vk = NULL;
modelica_metatype _exp = NULL;
modelica_metatype _e1 = NULL;
modelica_metatype _e2 = NULL;
modelica_metatype _nodes = NULL;
modelica_metatype _elts = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 10; 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;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,13) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 8));
if (!optionNone(tmpMeta8)) goto tmp3_end;
_cr = tmpMeta6;
_vk = tmpMeta7;
_crstr = omc_ComponentReference_printComponentRefStr(threadData, _cr);
_vkstr = omc_DAEDump_dumpKindStr(threadData, _vk);
tmpMeta9 = mmc_mk_cons(_crstr, mmc_mk_cons(_vkstr, MMC_REFSTRUCTLIT(mmc_nil)));
tmpMeta10 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta11 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta12 = mmc_mk_box5(4, &Graphviz_Node_LNODE__desc, _OMC_LIT127, tmpMeta9, tmpMeta10, tmpMeta11);
tmpMeta1 = tmpMeta12;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta13;
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
modelica_metatype tmpMeta16;
modelica_metatype tmpMeta17;
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
modelica_metatype tmpMeta20;
modelica_metatype tmpMeta21;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,13) == 0) goto tmp3_end;
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta14 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta15 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 8));
if (optionNone(tmpMeta15)) goto tmp3_end;
tmpMeta16 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta15), 1));
_cr = tmpMeta13;
_vk = tmpMeta14;
_exp = tmpMeta16;
_crstr = omc_ComponentReference_printComponentRefStr(threadData, _cr);
_vkstr = omc_DAEDump_dumpKindStr(threadData, _vk);
_expstr = omc_DAEDump_printExpStrSpecial(threadData, _exp);
tmpMeta17 = stringAppend(_OMC_LIT128,_expstr);
_expstr_1 = tmpMeta17;
tmpMeta18 = mmc_mk_cons(_crstr, mmc_mk_cons(_vkstr, mmc_mk_cons(_expstr_1, MMC_REFSTRUCTLIT(mmc_nil))));
tmpMeta19 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta20 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta21 = mmc_mk_box5(4, &Graphviz_Node_LNODE__desc, _OMC_LIT127, tmpMeta18, tmpMeta19, tmpMeta20);
tmpMeta1 = tmpMeta21;
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta22;
modelica_metatype tmpMeta23;
modelica_metatype tmpMeta24;
modelica_metatype tmpMeta25;
modelica_metatype tmpMeta26;
modelica_metatype tmpMeta27;
modelica_metatype tmpMeta28;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,3) == 0) goto tmp3_end;
tmpMeta22 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta23 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
_cr = tmpMeta22;
_exp = tmpMeta23;
_crstr = omc_ComponentReference_printComponentRefStr(threadData, _cr);
_expstr = omc_DAEDump_printExpStrSpecial(threadData, _exp);
tmpMeta24 = stringAppend(_OMC_LIT128,_expstr);
_expstr_1 = tmpMeta24;
tmpMeta25 = mmc_mk_cons(_crstr, mmc_mk_cons(_expstr_1, MMC_REFSTRUCTLIT(mmc_nil)));
tmpMeta26 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta27 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta28 = mmc_mk_box5(4, &Graphviz_Node_LNODE__desc, _OMC_LIT129, tmpMeta25, tmpMeta26, tmpMeta27);
tmpMeta1 = tmpMeta28;
goto tmp3_done;
}
case 3: {
modelica_metatype tmpMeta29;
modelica_metatype tmpMeta30;
modelica_metatype tmpMeta31;
modelica_metatype tmpMeta32;
modelica_metatype tmpMeta33;
modelica_metatype tmpMeta34;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,3,3) == 0) goto tmp3_end;
tmpMeta29 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta30 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
_e1 = tmpMeta29;
_e2 = tmpMeta30;
_e1str = omc_DAEDump_printExpStrSpecial(threadData, _e1);
_e2str = omc_DAEDump_printExpStrSpecial(threadData, _e2);
tmpMeta31 = mmc_mk_cons(_e1str, mmc_mk_cons(_OMC_LIT131, mmc_mk_cons(_e2str, MMC_REFSTRUCTLIT(mmc_nil))));
tmpMeta32 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta33 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta34 = mmc_mk_box5(4, &Graphviz_Node_LNODE__desc, _OMC_LIT130, tmpMeta31, tmpMeta32, tmpMeta33);
tmpMeta1 = tmpMeta34;
goto tmp3_done;
}
case 4: {
modelica_metatype tmpMeta35;
modelica_metatype tmpMeta36;
modelica_metatype tmpMeta37;
modelica_metatype tmpMeta38;
modelica_metatype tmpMeta39;
modelica_metatype tmpMeta40;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,4,3) == 0) goto tmp3_end;
tmpMeta35 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta36 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
_cr1 = tmpMeta35;
_cr2 = tmpMeta36;
_e1str = omc_DAEDump_printExpStrSpecial(threadData, omc_Expression_crefExp(threadData, _cr1));
_e2str = omc_DAEDump_printExpStrSpecial(threadData, omc_Expression_crefExp(threadData, _cr2));
tmpMeta37 = mmc_mk_cons(_e1str, mmc_mk_cons(_OMC_LIT131, mmc_mk_cons(_e2str, MMC_REFSTRUCTLIT(mmc_nil))));
tmpMeta38 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta39 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta40 = mmc_mk_box5(4, &Graphviz_Node_LNODE__desc, _OMC_LIT132, tmpMeta37, tmpMeta38, tmpMeta39);
tmpMeta1 = tmpMeta40;
goto tmp3_done;
}
case 5: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,16,2) == 0) goto tmp3_end;
tmpMeta1 = _OMC_LIT134;
goto tmp3_done;
}
case 6: {
modelica_metatype tmpMeta41;
modelica_metatype tmpMeta42;
modelica_metatype tmpMeta43;
modelica_metatype tmpMeta44;
modelica_metatype tmpMeta45;
modelica_metatype tmpMeta46;
modelica_metatype tmpMeta47;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,3) == 0) goto tmp3_end;
tmpMeta41 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta42 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
_cr = tmpMeta41;
_exp = tmpMeta42;
_crstr = omc_ComponentReference_printComponentRefStr(threadData, _cr);
_expstr = omc_DAEDump_printExpStrSpecial(threadData, _exp);
tmpMeta43 = stringAppend(_OMC_LIT128,_expstr);
_expstr_1 = tmpMeta43;
tmpMeta44 = mmc_mk_cons(_crstr, mmc_mk_cons(_expstr_1, MMC_REFSTRUCTLIT(mmc_nil)));
tmpMeta45 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta46 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta47 = mmc_mk_box5(4, &Graphviz_Node_LNODE__desc, _OMC_LIT135, tmpMeta44, tmpMeta45, tmpMeta46);
tmpMeta1 = tmpMeta47;
goto tmp3_done;
}
case 7: {
modelica_metatype tmpMeta48;
modelica_metatype tmpMeta49;
modelica_metatype tmpMeta50;
modelica_metatype tmpMeta51;
modelica_metatype tmpMeta52;
modelica_metatype tmpMeta53;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,3) == 0) goto tmp3_end;
tmpMeta48 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta49 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
_e1 = tmpMeta48;
_e2 = tmpMeta49;
_e1str = omc_DAEDump_printExpStrSpecial(threadData, _e1);
_e2str = omc_DAEDump_printExpStrSpecial(threadData, _e2);
tmpMeta50 = mmc_mk_cons(_e1str, mmc_mk_cons(_OMC_LIT131, mmc_mk_cons(_e2str, MMC_REFSTRUCTLIT(mmc_nil))));
tmpMeta51 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta52 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta53 = mmc_mk_box5(4, &Graphviz_Node_LNODE__desc, _OMC_LIT136, tmpMeta50, tmpMeta51, tmpMeta52);
tmpMeta1 = tmpMeta53;
goto tmp3_done;
}
case 8: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,17,2) == 0) goto tmp3_end;
tmpMeta1 = _OMC_LIT138;
goto tmp3_done;
}
case 9: {
modelica_metatype tmpMeta54;
modelica_metatype tmpMeta55;
modelica_metatype tmpMeta56;
modelica_metatype tmpMeta57;
modelica_metatype tmpMeta58;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,18,4) == 0) goto tmp3_end;
tmpMeta54 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta55 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
_n = tmpMeta54;
_elts = tmpMeta55;
_nodes = omc_DAEDump_buildGrList(threadData, _elts);
tmpMeta56 = mmc_mk_cons(_n, MMC_REFSTRUCTLIT(mmc_nil));
tmpMeta57 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta58 = mmc_mk_box5(4, &Graphviz_Node_LNODE__desc, _OMC_LIT139, tmpMeta56, tmpMeta57, _nodes);
tmpMeta1 = tmpMeta58;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outNode = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _outNode;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_printExpStrSpecial(threadData_t *threadData, modelica_metatype _inExp)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;
tmp4_1 = _inExp;
{
modelica_string _s_1 = NULL;
modelica_string _s = NULL;
modelica_metatype _exp = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
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_1,2,1) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
_s = tmpMeta6;
tmpMeta7 = stringAppend(_OMC_LIT140,_s);
_s_1 = tmpMeta7;
tmpMeta8 = stringAppend(_s_1,_OMC_LIT140);
tmp1 = tmpMeta8;
goto tmp3_done;
}
case 1: {
_exp = tmp4_1;
tmp1 = omc_ExpressionDump_printExpStr(threadData, _exp);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
tmp3_done:
(void)tmp4;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp3_done2;
goto_2:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp4 < 2) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_buildGrVarStr(threadData_t *threadData, modelica_metatype _inElement)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _inElement;
{
modelica_string _str = NULL;
modelica_string _expstr = NULL;
modelica_string _str_1 = NULL;
modelica_metatype _cr = NULL;
modelica_metatype _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;
modelica_metatype tmpMeta7;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,13) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 8));
if (!optionNone(tmpMeta7)) goto tmp3_end;
_cr = tmpMeta6;
tmp1 = omc_ComponentReference_printComponentRefStr(threadData, _cr);
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,13) == 0) goto tmp3_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 8));
if (optionNone(tmpMeta9)) goto tmp3_end;
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta9), 1));
_cr = tmpMeta8;
_exp = tmpMeta10;
_str = omc_ComponentReference_printComponentRefStr(threadData, _cr);
_expstr = omc_DAEDump_printExpStrSpecial(threadData, _exp);
tmpMeta11 = stringAppend(_str,_OMC_LIT3);
_str_1 = tmpMeta11;
tmpMeta12 = stringAppend(_str_1,_expstr);
tmp1 = tmpMeta12;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
DLLExport
modelica_metatype omc_DAEDump_buildGrStrlist(threadData_t *threadData, modelica_metatype _inTypeALst, modelica_fnptr _inFuncTypeTypeAToString, modelica_integer _inInteger, modelica_metatype *out_outTypeALst)
{
modelica_metatype _outStringLst = NULL;
modelica_metatype _outTypeALst = NULL;
modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;volatile modelica_fnptr tmp4_2;volatile modelica_integer tmp4_3;
tmp4_1 = _inTypeALst;
tmp4_2 = ((modelica_fnptr) _inFuncTypeTypeAToString);
tmp4_3 = _inInteger;
{
modelica_metatype _ignored = NULL;
modelica_metatype _rest = NULL;
modelica_fnptr _printer;
modelica_integer _count;
modelica_integer _count_1;
modelica_metatype _strlist = NULL;
modelica_string _str = NULL;
modelica_metatype _var = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp4 < 3; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (!listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta6 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta7 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta[0+0] = tmpMeta6;
tmpMeta[0+1] = tmpMeta7;
goto tmp3_done;
}
case 1: {
_ignored = tmp4_1;
_count = tmp4_3;
if((!(_count <= ((modelica_integer) 0))))
{
goto goto_2;
}
tmpMeta[0+0] = _OMC_LIT142;
tmpMeta[0+1] = _ignored;
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta8 = MMC_CAR(tmp4_1);
tmpMeta9 = MMC_CDR(tmp4_1);
_var = tmpMeta8;
_rest = tmpMeta9;
_printer = tmp4_2;
_count = tmp4_3;
if((!(_count > ((modelica_integer) 0))))
{
goto goto_2;
}
_count_1 = ((modelica_integer) -1) + _count;
_strlist = omc_DAEDump_buildGrStrlist(threadData, _rest, ((modelica_fnptr) _printer), _count_1 ,&_ignored);
_str = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_printer), 2))) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_printer), 1)))) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_printer), 2))), _var) : ((modelica_metatype(*)(threadData_t*, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_printer), 1)))) (threadData, _var);
tmpMeta10 = mmc_mk_cons(_str, _strlist);
tmpMeta[0+0] = tmpMeta10;
tmpMeta[0+1] = _ignored;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
tmp3_done:
(void)tmp4;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp3_done2;
goto_2:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp4 < 3) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_outStringLst = tmpMeta[0+0];
_outTypeALst = tmpMeta[0+1];
_return: OMC_LABEL_UNUSED
if (out_outTypeALst) { *out_outTypeALst = _outTypeALst; }
return _outStringLst;
}
modelica_metatype boxptr_DAEDump_buildGrStrlist(threadData_t *threadData, modelica_metatype _inTypeALst, modelica_fnptr _inFuncTypeTypeAToString, modelica_metatype _inInteger, modelica_metatype *out_outTypeALst)
{
modelica_integer tmp1;
modelica_metatype _outStringLst = NULL;
tmp1 = mmc_unbox_integer(_inInteger);
_outStringLst = omc_DAEDump_buildGrStrlist(threadData, _inTypeALst, _inFuncTypeTypeAToString, tmp1, out_outTypeALst);
return _outStringLst;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDump_buildGrVars(threadData_t *threadData, modelica_metatype _inElementLst)
{
modelica_metatype _outGraphvizNodeLst = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;
tmp4_1 = _inElementLst;
{
modelica_metatype _strlist = NULL;
modelica_metatype _vars = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (!listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta6 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta1 = tmpMeta6;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
_vars = tmp4_1;
_strlist = omc_DAEDump_buildGrStrlist(threadData, _vars, boxvar_DAEDump_buildGrVarStr, ((modelica_integer) 10), NULL);
tmpMeta8 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta9 = mmc_mk_box5(4, &Graphviz_Node_LNODE__desc, _OMC_LIT143, _strlist, _OMC_LIT147, tmpMeta8);
tmpMeta7 = mmc_mk_cons(tmpMeta9, MMC_REFSTRUCTLIT(mmc_nil));
tmpMeta1 = tmpMeta7;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
tmp3_done:
(void)tmp4;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp3_done2;
goto_2:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp4 < 2) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_outGraphvizNodeLst = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _outGraphvizNodeLst;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDump_buildGrList(threadData_t *threadData, modelica_metatype _inElementLst)
{
modelica_metatype _outGraphvizNodeLst = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _inElementLst;
{
modelica_metatype _node = NULL;
modelica_metatype _nodelist = NULL;
modelica_metatype _el = NULL;
modelica_metatype _rest = 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 (!listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta6 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta1 = tmpMeta6;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta7 = MMC_CAR(tmp4_1);
tmpMeta8 = MMC_CDR(tmp4_1);
_el = tmpMeta7;
_rest = tmpMeta8;
_node = omc_DAEDump_buildGrElement(threadData, _el);
_nodelist = omc_DAEDump_buildGrList(threadData, _rest);
tmpMeta9 = mmc_mk_cons(_node, _nodelist);
tmpMeta1 = tmpMeta9;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outGraphvizNodeLst = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _outGraphvizNodeLst;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDump_buildGraphviz(threadData_t *threadData, modelica_metatype _inDAElist)
{
modelica_metatype _outNode = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _inDAElist;
{
modelica_metatype _vars = NULL;
modelica_metatype _nonvars = NULL;
modelica_metatype _els = NULL;
modelica_metatype _nonvarnodes = NULL;
modelica_metatype _varnodes = NULL;
modelica_metatype _nodelist = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; 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_1), 2));
_els = tmpMeta6;
_vars = omc_DAEUtil_getMatchingElements(threadData, _els, boxvar_DAEUtil_isVar);
_nonvars = omc_DAEUtil_getMatchingElements(threadData, _els, boxvar_DAEUtil_isNotVar);
_nonvarnodes = omc_DAEDump_buildGrList(threadData, _nonvars);
_varnodes = omc_DAEDump_buildGrVars(threadData, _vars);
_nodelist = listAppend(_nonvarnodes, _varnodes);
tmpMeta7 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta8 = mmc_mk_box4(3, &Graphviz_Node_NODE__desc, _OMC_LIT148, tmpMeta7, _nodelist);
tmpMeta1 = tmpMeta8;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outNode = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _outNode;
}
DLLExport
void omc_DAEDump_dumpGraphviz(threadData_t *threadData, modelica_metatype _dae)
{
modelica_metatype _r = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_r = omc_DAEDump_buildGraphviz(threadData, _dae);
omc_Graphviz_dump(threadData, _r);
_return: OMC_LABEL_UNUSED
return;
}
DLLExport
modelica_string omc_DAEDump_dumpConnectorType(threadData_t *threadData, modelica_metatype _inConnectorType)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _inConnectorType;
{
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))) {
case 4: {
tmp1 = _OMC_LIT149;
goto tmp3_done;
}
case 5: {
tmp1 = _OMC_LIT150;
goto tmp3_done;
}
default:
tmp3_default: OMC_LABEL_UNUSED; {
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
DLLExport
modelica_string omc_DAEDump_dumpFlow(threadData_t *threadData, modelica_metatype _var)
{
modelica_string _flowString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _var;
{
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))) {
case 4: {
tmp1 = _OMC_LIT149;
goto tmp3_done;
}
case 3: {
tmp1 = _OMC_LIT151;
goto tmp3_done;
}
case 6: {
tmp1 = _OMC_LIT152;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_flowString = tmp1;
_return: OMC_LABEL_UNUSED
return _flowString;
}
DLLExport
void omc_DAEDump_dumpDebugElement(threadData_t *threadData, modelica_metatype _inElement)
{
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp3_1;
tmp3_1 = _inElement;
{
modelica_string _comment_str = NULL;
modelica_string _tmp_str = NULL;
modelica_string _n = NULL;
modelica_metatype _cr = NULL;
modelica_metatype _cr1 = NULL;
modelica_metatype _cr2 = NULL;
modelica_metatype _vk = NULL;
modelica_metatype _dae_var_attr = NULL;
modelica_metatype _comment = NULL;
modelica_metatype _e = NULL;
modelica_metatype _exp = NULL;
modelica_metatype _e1 = NULL;
modelica_metatype _e2 = NULL;
modelica_metatype _l = NULL;
volatile mmc_switch_type tmp3;
int tmp4;
tmp3 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp2_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp3 < 27; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,13) == 0) goto tmp2_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 8));
if (!optionNone(tmpMeta7)) goto tmp2_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 12));
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 13));
_cr = tmpMeta5;
_vk = tmpMeta6;
_dae_var_attr = tmpMeta8;
_comment = tmpMeta9;
tmp3 += 25;
omc_Print_printBuf(threadData, _OMC_LIT153);
omc_ComponentReference_printComponentRef(threadData, _cr);
omc_Print_printBuf(threadData, _OMC_LIT43);
omc_DAEDump_dumpKind(threadData, _vk);
_comment_str = omc_DAEDump_dumpCommentAnnotationStr(threadData, _comment);
omc_Print_printBuf(threadData, _OMC_LIT154);
omc_Print_printBuf(threadData, _comment_str);
_tmp_str = omc_DAEDump_dumpVariableAttributesStr(threadData, _dae_var_attr);
omc_Print_printBuf(threadData, _tmp_str);
omc_Print_printBuf(threadData, _OMC_LIT30);
goto tmp2_done;
}
case 1: {
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,13) == 0) goto tmp2_end;
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 8));
if (optionNone(tmpMeta12)) goto tmp2_end;
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta12), 1));
tmpMeta14 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 12));
tmpMeta15 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 13));
_cr = tmpMeta10;
_vk = tmpMeta11;
_e = tmpMeta13;
_dae_var_attr = tmpMeta14;
_comment = tmpMeta15;
tmp3 += 24;
omc_Print_printBuf(threadData, _OMC_LIT153);
omc_ComponentReference_printComponentRef(threadData, _cr);
omc_Print_printBuf(threadData, _OMC_LIT43);
omc_DAEDump_dumpKind(threadData, _vk);
omc_Print_printBuf(threadData, _OMC_LIT155);
omc_ExpressionDump_printExp(threadData, _e);
_comment_str = omc_DAEDump_dumpCommentAnnotationStr(threadData, _comment);
omc_Print_printBuf(threadData, _OMC_LIT154);
omc_Print_printBuf(threadData, _comment_str);
_tmp_str = omc_DAEDump_dumpVariableAttributesStr(threadData, _dae_var_attr);
omc_Print_printBuf(threadData, _tmp_str);
omc_Print_printBuf(threadData, _OMC_LIT30);
goto tmp2_done;
}
case 2: {
modelica_metatype tmpMeta16;
modelica_metatype tmpMeta17;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,3) == 0) goto tmp2_end;
tmpMeta16 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta17 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
_cr = tmpMeta16;
_exp = tmpMeta17;
tmp3 += 23;
omc_Print_printBuf(threadData, _OMC_LIT156);
omc_ComponentReference_printComponentRef(threadData, _cr);
omc_Print_printBuf(threadData, _OMC_LIT43);
omc_ExpressionDump_printExp(threadData, _exp);
omc_Print_printBuf(threadData, _OMC_LIT30);
goto tmp2_done;
}
case 3: {
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,3) == 0) goto tmp2_end;
tmpMeta18 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta19 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
_cr = tmpMeta18;
_exp = tmpMeta19;
tmp3 += 22;
omc_Print_printBuf(threadData, _OMC_LIT157);
omc_ComponentReference_printComponentRef(threadData, _cr);
omc_Print_printBuf(threadData, _OMC_LIT43);
omc_ExpressionDump_printExp(threadData, _exp);
omc_Print_printBuf(threadData, _OMC_LIT30);
goto tmp2_done;
}
case 4: {
modelica_metatype tmpMeta20;
modelica_metatype tmpMeta21;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,3,3) == 0) goto tmp2_end;
tmpMeta20 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta21 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
_e1 = tmpMeta20;
_e2 = tmpMeta21;
tmp3 += 21;
omc_Print_printBuf(threadData, _OMC_LIT158);
omc_ExpressionDump_printExp(threadData, _e1);
omc_Print_printBuf(threadData, _OMC_LIT20);
omc_ExpressionDump_printExp(threadData, _e2);
omc_Print_printBuf(threadData, _OMC_LIT30);
goto tmp2_done;
}
case 5: {
modelica_metatype tmpMeta22;
modelica_metatype tmpMeta23;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,4,3) == 0) goto tmp2_end;
tmpMeta22 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta23 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
_cr1 = tmpMeta22;
_cr2 = tmpMeta23;
tmp3 += 20;
omc_Print_printBuf(threadData, _OMC_LIT158);
omc_ComponentReference_printComponentRef(threadData, _cr1);
omc_Print_printBuf(threadData, _OMC_LIT20);
omc_ComponentReference_printComponentRef(threadData, _cr2);
omc_Print_printBuf(threadData, _OMC_LIT30);
goto tmp2_done;
}
case 6: {
modelica_metatype tmpMeta24;
modelica_metatype tmpMeta25;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,15,3) == 0) goto tmp2_end;
tmpMeta24 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta25 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
_e1 = tmpMeta24;
_e2 = tmpMeta25;
tmp3 += 19;
omc_Print_printBuf(threadData, _OMC_LIT159);
omc_ExpressionDump_printExp(threadData, _e1);
omc_Print_printBuf(threadData, _OMC_LIT20);
omc_ExpressionDump_printExp(threadData, _e2);
omc_Print_printBuf(threadData, _OMC_LIT30);
goto tmp2_done;
}
case 7: {
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,16,2) == 0) goto tmp2_end;
tmp3 += 18;
omc_Print_printBuf(threadData, _OMC_LIT160);
goto tmp2_done;
}
case 8: {
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,17,2) == 0) goto tmp2_end;
tmp3 += 17;
omc_Print_printBuf(threadData, _OMC_LIT161);
goto tmp2_done;
}
case 9: {
modelica_metatype tmpMeta26;
modelica_metatype tmpMeta27;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,18,4) == 0) goto tmp2_end;
tmpMeta26 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta27 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
_n = tmpMeta26;
_l = tmpMeta27;
tmp3 += 16;
omc_Print_printBuf(threadData, _OMC_LIT162);
omc_Print_printBuf(threadData, _n);
omc_Print_printBuf(threadData, _OMC_LIT20);
omc_DAEDump_dumpDebugElist(threadData, _l);
omc_Print_printBuf(threadData, _OMC_LIT30);
goto tmp2_done;
}
case 10: {
modelica_metatype tmpMeta28;
modelica_metatype tmpMeta29;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,5,4) == 0) goto tmp2_end;
tmpMeta28 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
tmpMeta29 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4));
_e1 = tmpMeta28;
_e2 = tmpMeta29;
tmp3 += 15;
omc_Print_printBuf(threadData, _OMC_LIT163);
omc_ExpressionDump_printExp(threadData, _e1);
omc_Print_printBuf(threadData, _OMC_LIT20);
omc_ExpressionDump_printExp(threadData, _e2);
omc_Print_printBuf(threadData, _OMC_LIT30);
goto tmp2_done;
}
case 11: {
modelica_metatype tmpMeta30;
modelica_metatype tmpMeta31;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,6,4) == 0) goto tmp2_end;
tmpMeta30 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
tmpMeta31 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4));
_e1 = tmpMeta30;
_e2 = tmpMeta31;
tmp3 += 14;
omc_Print_printBuf(threadData, _OMC_LIT164);
omc_ExpressionDump_printExp(threadData, _e1);
omc_Print_printBuf(threadData, _OMC_LIT20);
omc_ExpressionDump_printExp(threadData, _e2);
omc_Print_printBuf(threadData, _OMC_LIT30);
goto tmp2_done;
}
case 12: {
modelica_metatype tmpMeta32;
modelica_metatype tmpMeta33;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,8,3) == 0) goto tmp2_end;
tmpMeta32 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta33 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
_e1 = tmpMeta32;
_e2 = tmpMeta33;
tmp3 += 13;
omc_Print_printBuf(threadData, _OMC_LIT165);
omc_ExpressionDump_printExp(threadData, _e1);
omc_Print_printBuf(threadData, _OMC_LIT20);
omc_ExpressionDump_printExp(threadData, _e2);
omc_Print_printBuf(threadData, _OMC_LIT30);
goto tmp2_done;
}
case 13: {
modelica_metatype tmpMeta34;
modelica_metatype tmpMeta35;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,9,3) == 0) goto tmp2_end;
tmpMeta34 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta35 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
_e1 = tmpMeta34;
_e2 = tmpMeta35;
tmp3 += 12;
omc_Print_printBuf(threadData, _OMC_LIT166);
omc_ExpressionDump_printExp(threadData, _e1);
omc_Print_printBuf(threadData, _OMC_LIT20);
omc_ExpressionDump_printExp(threadData, _e2);
omc_Print_printBuf(threadData, _OMC_LIT30);
goto tmp2_done;
}
case 14: {
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,13,4) == 0) goto tmp2_end;
tmp3 += 11;
omc_Print_printBuf(threadData, _OMC_LIT167);
goto tmp2_done;
}
case 15: {
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,14,4) == 0) goto tmp2_end;
tmp3 += 10;
omc_Print_printBuf(threadData, _OMC_LIT168);
goto tmp2_done;
}
case 16: {
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,10,4) == 0) goto tmp2_end;
tmp3 += 9;
omc_Print_printBuf(threadData, _OMC_LIT169);
goto tmp2_done;
}
case 17: {
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,19,2) == 0) goto tmp2_end;
tmp3 += 8;
omc_Print_printBuf(threadData, _OMC_LIT170);
goto tmp2_done;
}
case 18: {
modelica_metatype tmpMeta36;
modelica_metatype tmpMeta37;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,20,4) == 0) goto tmp2_end;
tmpMeta36 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta37 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
_e1 = tmpMeta36;
_e2 = tmpMeta37;
tmp3 += 7;
omc_Print_printBuf(threadData, _OMC_LIT171);
omc_ExpressionDump_printExp(threadData, _e1);
omc_Print_printBuf(threadData, _OMC_LIT20);
omc_ExpressionDump_printExp(threadData, _e2);
omc_Print_printBuf(threadData, _OMC_LIT30);
goto tmp2_done;
}
case 19: {
modelica_metatype tmpMeta38;
modelica_metatype tmpMeta39;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,21,4) == 0) goto tmp2_end;
tmpMeta38 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta39 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
_e1 = tmpMeta38;
_e2 = tmpMeta39;
tmp3 += 6;
omc_Print_printBuf(threadData, _OMC_LIT172);
omc_ExpressionDump_printExp(threadData, _e1);
omc_Print_printBuf(threadData, _OMC_LIT20);
omc_ExpressionDump_printExp(threadData, _e2);
omc_Print_printBuf(threadData, _OMC_LIT30);
goto tmp2_done;
}
case 20: {
modelica_metatype tmpMeta40;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,22,2) == 0) goto tmp2_end;
tmpMeta40 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
_e1 = tmpMeta40;
tmp3 += 5;
omc_Print_printBuf(threadData, _OMC_LIT173);
omc_ExpressionDump_printExp(threadData, _e1);
omc_Print_printBuf(threadData, _OMC_LIT30);
goto tmp2_done;
}
case 21: {
modelica_metatype tmpMeta41;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,23,2) == 0) goto tmp2_end;
tmpMeta41 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
_e1 = tmpMeta41;
tmp3 += 4;
omc_Print_printBuf(threadData, _OMC_LIT174);
omc_ExpressionDump_printExp(threadData, _e1);
omc_Print_printBuf(threadData, _OMC_LIT30);
goto tmp2_done;
}
case 22: {
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,24,3) == 0) goto tmp2_end;
tmp3 += 3;
omc_Print_printBuf(threadData, _OMC_LIT175);
goto tmp2_done;
}
case 23: {
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,25,2) == 0) goto tmp2_end;
tmp3 += 2;
omc_Print_printBuf(threadData, _OMC_LIT176);
goto tmp2_done;
}
case 24: {
modelica_metatype tmpMeta42;
modelica_metatype tmpMeta43;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,30,2) == 0) goto tmp2_end;
tmpMeta42 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta43 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
_cr = tmpMeta42;
_l = tmpMeta43;
tmp3 += 1;
omc_Print_printBuf(threadData, _OMC_LIT177);
omc_ComponentReference_printComponentRef(threadData, _cr);
omc_Print_printBuf(threadData, _OMC_LIT20);
omc_DAEDump_dumpDebugElist(threadData, _l);
omc_Print_printBuf(threadData, _OMC_LIT30);
goto tmp2_done;
}
case 25: {
modelica_metatype tmpMeta44;
modelica_metatype tmpMeta45;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,29,2) == 0) goto tmp2_end;
tmpMeta44 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta45 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
_n = tmpMeta44;
_l = tmpMeta45;
omc_Print_printBuf(threadData, _OMC_LIT178);
omc_Print_printBuf(threadData, _n);
omc_Print_printBuf(threadData, _OMC_LIT20);
omc_DAEDump_dumpDebugElist(threadData, _l);
omc_Print_printBuf(threadData, _OMC_LIT30);
goto tmp2_done;
}
case 26: {
omc_Print_printBuf(threadData, _OMC_LIT179);
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
tmp2_done:
(void)tmp3;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp2_done2;
goto_1:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp3 < 27) {
goto tmp2_top;
}
MMC_THROW_INTERNAL();
tmp2_done2:;
}
}
;
_return: OMC_LABEL_UNUSED
return;
}
DLLExport
modelica_string omc_DAEDump_dumpDebugDAE(threadData_t *threadData, modelica_metatype _dae)
{
modelica_string _str = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _dae;
{
modelica_metatype _elems = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
_elems = tmpMeta6;
omc_Print_clearBuf(threadData);
omc_DAEDump_dumpDebugElist(threadData, _elems);
tmp1 = omc_Print_getString(threadData);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_str = tmp1;
_return: OMC_LABEL_UNUSED
return _str;
}
PROTECTED_FUNCTION_STATIC void omc_DAEDump_dumpDebugElist(threadData_t *threadData, modelica_metatype _inElementLst)
{
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp3_1;
tmp3_1 = _inElementLst;
{
modelica_metatype _first = NULL;
modelica_metatype _rest = NULL;
volatile mmc_switch_type tmp3;
int tmp4;
tmp3 = 0;
for (; tmp3 < 2; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
if (!listEmpty(tmp3_1)) goto tmp2_end;
goto tmp2_done;
}
case 1: {
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
if (listEmpty(tmp3_1)) goto tmp2_end;
tmpMeta5 = MMC_CAR(tmp3_1);
tmpMeta6 = MMC_CDR(tmp3_1);
_first = tmpMeta5;
_rest = tmpMeta6;
omc_DAEDump_dumpDebugElement(threadData, _first);
omc_Print_printBuf(threadData, _OMC_LIT15);
_inElementLst = _rest;
goto _tailrecursive;
;
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
goto_1:;
MMC_THROW_INTERNAL();
goto tmp2_done;
tmp2_done:;
}
}
;
_return: OMC_LABEL_UNUSED
return;
}
DLLExport
void omc_DAEDump_dumpDebug(threadData_t *threadData, modelica_metatype _inDAElist)
{
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp3_1;
tmp3_1 = _inDAElist;
{
modelica_metatype _elist = NULL;
volatile mmc_switch_type tmp3;
int tmp4;
tmp3 = 0;
for (; tmp3 < 1; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
modelica_metatype tmpMeta5;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
_elist = tmpMeta5;
omc_Print_printBuf(threadData, _OMC_LIT180);
omc_DAEDump_dumpDebugElist(threadData, _elist);
omc_Print_printBuf(threadData, _OMC_LIT30);
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
goto_1:;
MMC_THROW_INTERNAL();
goto tmp2_done;
tmp2_done:;
}
}
;
_return: OMC_LABEL_UNUSED
return;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_indentStr(threadData_t *threadData, modelica_integer _inInteger)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_integer tmp4_1;
tmp4_1 = _inInteger;
{
modelica_integer _i_1;
modelica_integer _i;
modelica_string _s1 = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (0 != tmp4_1) goto tmp3_end;
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
_i = tmp4_1;
_i_1 = ((modelica_integer) -1) + _i;
_s1 = omc_DAEDump_indentStr(threadData, _i_1);
tmpMeta6 = stringAppend(_OMC_LIT35,_s1);
tmp1 = tmpMeta6;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
tmp3_done:
(void)tmp4;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp3_done2;
goto_2:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp4 < 2) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDump_indentStr(threadData_t *threadData, modelica_metatype _inInteger)
{
modelica_integer tmp1;
modelica_string _outString = NULL;
tmp1 = mmc_unbox_integer(_inInteger);
_outString = omc_DAEDump_indentStr(threadData, tmp1);
return _outString;
}
PROTECTED_FUNCTION_STATIC void omc_DAEDump_indent(threadData_t *threadData, modelica_integer _inInteger)
{
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_integer tmp3_1;
tmp3_1 = _inInteger;
{
modelica_integer _i_1;
modelica_integer _i;
volatile mmc_switch_type tmp3;
int tmp4;
tmp3 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp2_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp3 < 2; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
if (0 != tmp3_1) goto tmp2_end;
goto tmp2_done;
}
case 1: {
_i = tmp3_1;
omc_Print_printBuf(threadData, _OMC_LIT35);
_i_1 = ((modelica_integer) -1) + _i;
omc_DAEDump_indent(threadData, _i_1);
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
tmp2_done:
(void)tmp3;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp2_done2;
goto_1:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp3 < 2) {
goto tmp2_top;
}
MMC_THROW_INTERNAL();
tmp2_done2:;
}
}
;
_return: OMC_LABEL_UNUSED
return;
}
PROTECTED_FUNCTION_STATIC void boxptr_DAEDump_indent(threadData_t *threadData, modelica_metatype _inInteger)
{
modelica_integer tmp1;
tmp1 = mmc_unbox_integer(_inInteger);
omc_DAEDump_indent(threadData, tmp1);
return;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_ppElseStr(threadData_t *threadData, modelica_metatype _inElse, modelica_integer _inInteger)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_integer tmp4_2;
tmp4_1 = _inElse;
tmp4_2 = _inInteger;
{
modelica_string _s1 = NULL;
modelica_string _s2 = NULL;
modelica_string _s3 = NULL;
modelica_string _s4 = NULL;
modelica_string _s5 = NULL;
modelica_string _s6 = NULL;
modelica_string _s7 = NULL;
modelica_string _s8 = NULL;
modelica_integer _i_1;
modelica_integer _i;
modelica_metatype _e = NULL;
modelica_metatype _then_ = NULL;
modelica_metatype _stmts = NULL;
modelica_metatype _else_ = NULL;
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))) {
case 3: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,0) == 0) goto tmp3_end;
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
case 4: {
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,3) == 0) goto tmp3_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
_e = tmpMeta5;
_then_ = tmpMeta6;
_else_ = tmpMeta7;
_i = tmp4_2;
_s1 = omc_DAEDump_indentStr(threadData, _i);
tmpMeta8 = stringAppend(_s1,_OMC_LIT181);
_s2 = tmpMeta8;
_s3 = omc_ExpressionDump_printExpStr(threadData, _e);
tmpMeta9 = stringAppend(_s2,_s3);
_s4 = tmpMeta9;
tmpMeta10 = stringAppend(_s4,_OMC_LIT96);
_s5 = tmpMeta10;
_i_1 = ((modelica_integer) 2) + _i;
_s6 = omc_DAEDump_ppStmtListStr(threadData, _then_, _i_1);
tmpMeta11 = stringAppend(_s5,_s6);
_s7 = tmpMeta11;
_s8 = omc_DAEDump_ppElseStr(threadData, _else_, _i);
tmpMeta12 = stringAppend(_s7,_s8);
tmp1 = tmpMeta12;
goto tmp3_done;
}
case 5: {
modelica_metatype tmpMeta13;
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,1) == 0) goto tmp3_end;
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
_stmts = tmpMeta13;
_i = tmp4_2;
_s1 = omc_DAEDump_indentStr(threadData, _i);
tmpMeta14 = stringAppend(_s1,_OMC_LIT182);
_s2 = tmpMeta14;
_i_1 = ((modelica_integer) 2) + _i;
_s3 = omc_DAEDump_ppStmtListStr(threadData, _stmts, _i_1);
tmpMeta15 = stringAppend(_s2,_s3);
tmp1 = tmpMeta15;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDump_ppElseStr(threadData_t *threadData, modelica_metatype _inElse, modelica_metatype _inInteger)
{
modelica_integer tmp1;
modelica_string _outString = NULL;
tmp1 = mmc_unbox_integer(_inInteger);
_outString = omc_DAEDump_ppElseStr(threadData, _inElse, tmp1);
return _outString;
}
PROTECTED_FUNCTION_STATIC void omc_DAEDump_ppElse(threadData_t *threadData, modelica_metatype _inElse, modelica_integer _inInteger)
{
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp3_1;modelica_integer tmp3_2;
tmp3_1 = _inElse;
tmp3_2 = _inInteger;
{
modelica_integer _i_1;
modelica_integer _i;
modelica_metatype _e = NULL;
modelica_metatype _then_ = NULL;
modelica_metatype _stmts = NULL;
modelica_metatype _else_ = NULL;
int tmp3;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))) {
case 3: {
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,0) == 0) goto tmp2_end;
goto tmp2_done;
}
case 4: {
modelica_metatype tmpMeta4;
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,3) == 0) goto tmp2_end;
tmpMeta4 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4));
_e = tmpMeta4;
_then_ = tmpMeta5;
_else_ = tmpMeta6;
_i = tmp3_2;
omc_DAEDump_indent(threadData, _i);
omc_Print_printBuf(threadData, _OMC_LIT181);
omc_ExpressionDump_printExp(threadData, _e);
omc_Print_printBuf(threadData, _OMC_LIT96);
_i_1 = ((modelica_integer) 2) + _i;
omc_DAEDump_ppStmtList(threadData, _then_, _i_1);
_inElse = _else_;
_inInteger = _i;
goto _tailrecursive;
;
goto tmp2_done;
}
case 5: {
modelica_metatype tmpMeta7;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,1) == 0) goto tmp2_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
_stmts = tmpMeta7;
_i = tmp3_2;
omc_DAEDump_indent(threadData, _i);
omc_Print_printBuf(threadData, _OMC_LIT182);
_i_1 = ((modelica_integer) 2) + _i;
omc_DAEDump_ppStmtList(threadData, _stmts, _i_1);
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
goto_1:;
MMC_THROW_INTERNAL();
goto tmp2_done;
tmp2_done:;
}
}
;
_return: OMC_LABEL_UNUSED
return;
}
PROTECTED_FUNCTION_STATIC void boxptr_DAEDump_ppElse(threadData_t *threadData, modelica_metatype _inElse, modelica_metatype _inInteger)
{
modelica_integer tmp1;
tmp1 = mmc_unbox_integer(_inInteger);
omc_DAEDump_ppElse(threadData, _inElse, tmp1);
return;
}
DLLExport
modelica_string omc_DAEDump_ppStmtListStr(threadData_t *threadData, modelica_metatype _inAlgorithmStatementLst, modelica_integer _inInteger)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_integer tmp4_2;
tmp4_1 = _inAlgorithmStatementLst;
tmp4_2 = _inInteger;
{
modelica_string _s1 = NULL;
modelica_string _s2 = NULL;
modelica_metatype _stmt = NULL;
modelica_metatype _stmts = NULL;
modelica_integer _i;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_1)) goto tmp3_end;
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_1);
tmpMeta7 = MMC_CDR(tmp4_1);
_stmt = tmpMeta6;
_stmts = tmpMeta7;
_i = tmp4_2;
_s1 = omc_DAEDump_ppStmtStr(threadData, _stmt, _i);
_s2 = omc_DAEDump_ppStmtListStr(threadData, _stmts, _i);
tmpMeta8 = stringAppend(_s1,_s2);
tmp1 = tmpMeta8;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
modelica_metatype boxptr_DAEDump_ppStmtListStr(threadData_t *threadData, modelica_metatype _inAlgorithmStatementLst, modelica_metatype _inInteger)
{
modelica_integer tmp1;
modelica_string _outString = NULL;
tmp1 = mmc_unbox_integer(_inInteger);
_outString = omc_DAEDump_ppStmtListStr(threadData, _inAlgorithmStatementLst, tmp1);
return _outString;
}
PROTECTED_FUNCTION_STATIC void omc_DAEDump_ppStmtList(threadData_t *threadData, modelica_metatype _inAlgorithmStatementLst, modelica_integer _inInteger)
{
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp3_1;modelica_integer tmp3_2;
tmp3_1 = _inAlgorithmStatementLst;
tmp3_2 = _inInteger;
{
modelica_metatype _stmt = NULL;
modelica_metatype _stmts = NULL;
modelica_integer _i;
volatile mmc_switch_type tmp3;
int tmp4;
tmp3 = 0;
for (; tmp3 < 2; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
if (!listEmpty(tmp3_1)) goto tmp2_end;
goto tmp2_done;
}
case 1: {
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
if (listEmpty(tmp3_1)) goto tmp2_end;
tmpMeta5 = MMC_CAR(tmp3_1);
tmpMeta6 = MMC_CDR(tmp3_1);
_stmt = tmpMeta5;
_stmts = tmpMeta6;
_i = tmp3_2;
omc_DAEDump_ppStmt(threadData, _stmt, _i);
_inAlgorithmStatementLst = _stmts;
_inInteger = _i;
goto _tailrecursive;
;
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
goto_1:;
MMC_THROW_INTERNAL();
goto tmp2_done;
tmp2_done:;
}
}
;
_return: OMC_LABEL_UNUSED
return;
}
PROTECTED_FUNCTION_STATIC void boxptr_DAEDump_ppStmtList(threadData_t *threadData, modelica_metatype _inAlgorithmStatementLst, modelica_metatype _inInteger)
{
modelica_integer tmp1;
tmp1 = mmc_unbox_integer(_inInteger);
omc_DAEDump_ppStmtList(threadData, _inAlgorithmStatementLst, tmp1);
return;
}
DLLExport
modelica_string omc_DAEDump_ppStmtStr(threadData_t *threadData, modelica_metatype _inStatement, modelica_integer _inInteger)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;volatile modelica_integer tmp4_2;
tmp4_1 = _inStatement;
tmp4_2 = _inInteger;
{
modelica_string _s1 = NULL;
modelica_string _s2 = NULL;
modelica_string _s3 = NULL;
modelica_string _s4 = NULL;
modelica_string _s5 = NULL;
modelica_string _s6 = NULL;
modelica_string _s7 = NULL;
modelica_string _s8 = NULL;
modelica_string _s9 = NULL;
modelica_string _s10 = NULL;
modelica_string _s11 = NULL;
modelica_string _id = NULL;
modelica_string _cond_str = NULL;
modelica_string _msg_str = NULL;
modelica_string _e1_str = NULL;
modelica_string _e2_str = NULL;
modelica_metatype _e = NULL;
modelica_metatype _cond = NULL;
modelica_metatype _msg = NULL;
modelica_metatype _e1 = NULL;
modelica_metatype _e2 = NULL;
modelica_integer _i;
modelica_integer _i_1;
modelica_metatype _es = NULL;
modelica_metatype _expl = NULL;
modelica_metatype _then_ = NULL;
modelica_metatype _stmts = NULL;
modelica_metatype _stmt = NULL;
modelica_metatype _else_ = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
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_1,0,4) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
_e2 = tmpMeta6;
_e = tmpMeta7;
_i = tmp4_2;
tmp4 += 15;
_s1 = omc_DAEDump_indentStr(threadData, _i);
_s2 = omc_ExpressionDump_printExpStr(threadData, _e2);
_s3 = omc_ExpressionDump_printExpStr(threadData, _e);
tmpMeta8 = mmc_mk_cons(_s1, mmc_mk_cons(_s2, mmc_mk_cons(_OMC_LIT183, mmc_mk_cons(_s3, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))))));
tmp1 = stringAppendList(tmpMeta8);
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,4) == 0) goto tmp3_end;
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
_e2 = tmpMeta9;
_e = tmpMeta10;
_i = tmp4_2;
tmp4 += 14;
_s1 = omc_DAEDump_indentStr(threadData, _i);
_s2 = omc_ExpressionDump_printExpStr(threadData, _e2);
_s3 = omc_ExpressionDump_printExpStr(threadData, _e);
tmpMeta11 = mmc_mk_cons(_s1, mmc_mk_cons(_s2, mmc_mk_cons(_OMC_LIT183, mmc_mk_cons(_s3, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))))));
tmp1 = stringAppendList(tmpMeta11);
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
modelica_metatype tmpMeta14;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,4) == 0) goto tmp3_end;
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
_expl = tmpMeta12;
_e = tmpMeta13;
_i = tmp4_2;
tmp4 += 13;
_s1 = omc_DAEDump_indentStr(threadData, _i);
_s2 = omc_ExpressionDump_printExpStr(threadData, _e);
_es = omc_List_map(threadData, _expl, boxvar_ExpressionDump_printExpStr);
_s3 = stringDelimitList(_es, _OMC_LIT43);
tmpMeta14 = mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT87, mmc_mk_cons(_s3, mmc_mk_cons(_OMC_LIT184, mmc_mk_cons(_s2, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil)))))));
tmp1 = stringAppendList(tmpMeta14);
goto tmp3_done;
}
case 3: {
modelica_metatype tmpMeta15;
modelica_metatype tmpMeta16;
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_1,3,4) == 0) goto tmp3_end;
tmpMeta15 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta16 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta17 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
_e = tmpMeta15;
_then_ = tmpMeta16;
_else_ = tmpMeta17;
_i = tmp4_2;
tmp4 += 12;
_s1 = omc_DAEDump_indentStr(threadData, _i);
tmpMeta18 = stringAppend(_s1,_OMC_LIT185);
_s2 = tmpMeta18;
_s3 = omc_ExpressionDump_printExpStr(threadData, _e);
tmpMeta19 = stringAppend(_s2,_s3);
_s4 = tmpMeta19;
tmpMeta20 = stringAppend(_s4,_OMC_LIT96);
_s5 = tmpMeta20;
_i_1 = ((modelica_integer) 2) + _i;
_s6 = omc_DAEDump_ppStmtListStr(threadData, _then_, _i_1);
tmpMeta21 = stringAppend(_s5,_s6);
_s7 = tmpMeta21;
_s8 = omc_DAEDump_ppElseStr(threadData, _else_, _i);
tmpMeta22 = stringAppend(_s7,_s8);
_s9 = tmpMeta22;
_s10 = omc_DAEDump_indentStr(threadData, _i);
tmpMeta23 = stringAppend(_s9,_s10);
_s11 = tmpMeta23;
tmpMeta24 = stringAppend(_s11,_OMC_LIT186);
tmp1 = tmpMeta24;
goto tmp3_done;
}
case 4: {
modelica_metatype tmpMeta25;
modelica_metatype tmpMeta26;
modelica_metatype tmpMeta27;
modelica_metatype tmpMeta28;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,4,6) == 0) goto tmp3_end;
tmpMeta25 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
tmpMeta26 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5));
tmpMeta27 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6));
_id = tmpMeta25;
_e = tmpMeta26;
_stmts = tmpMeta27;
_i = tmp4_2;
tmp4 += 11;
_s1 = omc_DAEDump_indentStr(threadData, _i);
_s3 = omc_ExpressionDump_printExpStr(threadData, _e);
_i_1 = ((modelica_integer) 2) + _i;
_s4 = omc_DAEDump_ppStmtListStr(threadData, _stmts, _i_1);
_s5 = omc_DAEDump_indentStr(threadData, _i);
tmpMeta28 = mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT187, mmc_mk_cons(_id, mmc_mk_cons(_OMC_LIT91, mmc_mk_cons(_s3, mmc_mk_cons(_OMC_LIT92, mmc_mk_cons(_s4, mmc_mk_cons(_s5, mmc_mk_cons(_OMC_LIT188, MMC_REFSTRUCTLIT(mmc_nil))))))))));
tmp1 = stringAppendList(tmpMeta28);
goto tmp3_done;
}
case 5: {
modelica_metatype tmpMeta29;
modelica_metatype tmpMeta30;
modelica_metatype tmpMeta31;
modelica_metatype tmpMeta32;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,5,7) == 0) goto tmp3_end;
tmpMeta29 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
tmpMeta30 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5));
tmpMeta31 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6));
_id = tmpMeta29;
_e = tmpMeta30;
_stmts = tmpMeta31;
_i = tmp4_2;
tmp4 += 10;
_s1 = omc_DAEDump_indentStr(threadData, _i);
_s3 = omc_ExpressionDump_printExpStr(threadData, _e);
_i_1 = ((modelica_integer) 2) + _i;
_s4 = omc_DAEDump_ppStmtListStr(threadData, _stmts, _i_1);
_s5 = omc_DAEDump_indentStr(threadData, _i);
tmpMeta32 = mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT189, mmc_mk_cons(_id, mmc_mk_cons(_OMC_LIT91, mmc_mk_cons(_s3, mmc_mk_cons(_OMC_LIT92, mmc_mk_cons(_s4, mmc_mk_cons(_s5, mmc_mk_cons(_OMC_LIT188, MMC_REFSTRUCTLIT(mmc_nil))))))))));
tmp1 = stringAppendList(tmpMeta32);
goto tmp3_done;
}
case 6: {
modelica_metatype tmpMeta33;
modelica_metatype tmpMeta34;
modelica_metatype tmpMeta35;
modelica_metatype tmpMeta36;
modelica_metatype tmpMeta37;
modelica_metatype tmpMeta38;
modelica_metatype tmpMeta39;
modelica_metatype tmpMeta40;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,6,3) == 0) goto tmp3_end;
tmpMeta33 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta34 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
_e = tmpMeta33;
_stmts = tmpMeta34;
_i = tmp4_2;
tmp4 += 9;
_s1 = omc_DAEDump_indentStr(threadData, _i);
tmpMeta35 = stringAppend(_s1,_OMC_LIT190);
_s2 = tmpMeta35;
_s3 = omc_ExpressionDump_printExpStr(threadData, _e);
tmpMeta36 = stringAppend(_s2,_s3);
_s4 = tmpMeta36;
tmpMeta37 = stringAppend(_s4,_OMC_LIT92);
_s5 = tmpMeta37;
_i_1 = ((modelica_integer) 2) + _i;
_s6 = omc_DAEDump_ppStmtListStr(threadData, _stmts, _i_1);
tmpMeta38 = stringAppend(_s5,_s6);
_s7 = tmpMeta38;
_s8 = omc_DAEDump_indentStr(threadData, _i);
tmpMeta39 = stringAppend(_s7,_s8);
_s9 = tmpMeta39;
tmpMeta40 = stringAppend(_s9,_OMC_LIT191);
tmp1 = tmpMeta40;
goto tmp3_done;
}
case 7: {
modelica_metatype tmpMeta41;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,7,6) == 0) goto tmp3_end;
_stmt = tmp4_1;
_i = tmp4_2;
tmp4 += 8;
_s1 = omc_DAEDump_indentStr(threadData, _i);
_s2 = omc_DAEDump_ppWhenStmtStr(threadData, _stmt, _i);
tmpMeta41 = stringAppend(_s1,_s2);
tmp1 = tmpMeta41;
goto tmp3_done;
}
case 8: {
modelica_metatype tmpMeta42;
modelica_metatype tmpMeta43;
modelica_metatype tmpMeta44;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,8,4) == 0) goto tmp3_end;
tmpMeta42 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta43 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
_cond = tmpMeta42;
_msg = tmpMeta43;
_i = tmp4_2;
tmp4 += 7;
_s1 = omc_DAEDump_indentStr(threadData, _i);
_cond_str = omc_ExpressionDump_printExpStr(threadData, _cond);
_msg_str = omc_ExpressionDump_printExpStr(threadData, _msg);
tmpMeta44 = mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT192, mmc_mk_cons(_cond_str, mmc_mk_cons(_OMC_LIT43, mmc_mk_cons(_msg_str, mmc_mk_cons(_OMC_LIT193, MMC_REFSTRUCTLIT(mmc_nil)))))));
tmp1 = stringAppendList(tmpMeta44);
goto tmp3_done;
}
case 9: {
modelica_metatype tmpMeta45;
modelica_metatype tmpMeta46;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,9,2) == 0) goto tmp3_end;
tmpMeta45 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
_msg = tmpMeta45;
_i = tmp4_2;
tmp4 += 6;
_s1 = omc_DAEDump_indentStr(threadData, _i);
_msg_str = omc_ExpressionDump_printExpStr(threadData, _msg);
tmpMeta46 = mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT194, mmc_mk_cons(_msg_str, mmc_mk_cons(_OMC_LIT193, MMC_REFSTRUCTLIT(mmc_nil)))));
tmp1 = stringAppendList(tmpMeta46);
goto tmp3_done;
}
case 10: {
modelica_metatype tmpMeta47;
modelica_string tmp48 = 0;
modelica_metatype tmpMeta55;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,11,2) == 0) goto tmp3_end;
tmpMeta47 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
_e = tmpMeta47;
_i = tmp4_2;
tmp4 += 5;
_s1 = omc_DAEDump_indentStr(threadData, _i);
{
modelica_metatype tmp51_1;
tmp51_1 = _e;
{
volatile mmc_switch_type tmp51;
int tmp52;
tmp51 = 0;
for (; tmp51 < 2; tmp51++) {
switch (MMC_SWITCH_CAST(tmp51)) {
case 0: {
modelica_metatype tmpMeta53;
modelica_metatype tmpMeta54;
if (mmc__uniontype__metarecord__typedef__equal(tmp51_1,13,3) == 0) goto tmp50_end;
tmpMeta53 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp51_1), 4));
tmpMeta54 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta53), 8));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta54,1,2) == 0) goto tmp50_end;
tmp48 = _OMC_LIT195;
goto tmp50_done;
}
case 1: {
tmp48 = _OMC_LIT34;
goto tmp50_done;
}
}
goto tmp50_end;
tmp50_end: ;
}
goto goto_49;
goto_49:;
goto goto_2;
goto tmp50_done;
tmp50_done:;
}
}
_s2 = tmp48;
_s3 = omc_ExpressionDump_printExpStr(threadData, _e);
tmpMeta55 = mmc_mk_cons(_s1, mmc_mk_cons(_s2, mmc_mk_cons(_s3, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil)))));
tmp1 = stringAppendList(tmpMeta55);
goto tmp3_done;
}
case 11: {
modelica_metatype tmpMeta56;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,12,1) == 0) goto tmp3_end;
_i = tmp4_2;
tmp4 += 4;
_s1 = omc_DAEDump_indentStr(threadData, _i);
tmpMeta56 = stringAppend(_s1,_OMC_LIT196);
tmp1 = tmpMeta56;
goto tmp3_done;
}
case 12: {
modelica_metatype tmpMeta57;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,13,1) == 0) goto tmp3_end;
_i = tmp4_2;
tmp4 += 3;
_s1 = omc_DAEDump_indentStr(threadData, _i);
tmpMeta57 = stringAppend(_s1,_OMC_LIT197);
tmp1 = tmpMeta57;
goto tmp3_done;
}
case 13: {
modelica_metatype tmpMeta58;
modelica_metatype tmpMeta59;
modelica_metatype tmpMeta60;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,10,3) == 0) goto tmp3_end;
tmpMeta58 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta59 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
_e1 = tmpMeta58;
_e2 = tmpMeta59;
_i = tmp4_2;
tmp4 += 2;
_s1 = omc_DAEDump_indentStr(threadData, _i);
_e1_str = omc_ExpressionDump_printExpStr(threadData, _e1);
_e2_str = omc_ExpressionDump_printExpStr(threadData, _e2);
tmpMeta60 = mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT198, mmc_mk_cons(_e1_str, mmc_mk_cons(_OMC_LIT43, mmc_mk_cons(_e2_str, mmc_mk_cons(_OMC_LIT193, MMC_REFSTRUCTLIT(mmc_nil)))))));
tmp1 = stringAppendList(tmpMeta60);
goto tmp3_done;
}
case 14: {
modelica_metatype tmpMeta61;
modelica_metatype tmpMeta62;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,16,2) == 0) goto tmp3_end;
tmpMeta61 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
_stmts = tmpMeta61;
_i = tmp4_2;
tmp4 += 1;
_s1 = omc_DAEDump_indentStr(threadData, _i);
_s2 = omc_DAEDump_ppStmtListStr(threadData, _stmts, ((modelica_integer) 2) + _i);
tmpMeta62 = mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT199, mmc_mk_cons(_s2, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT193, MMC_REFSTRUCTLIT(mmc_nil))))));
tmp1 = stringAppendList(tmpMeta62);
goto tmp3_done;
}
case 15: {
modelica_metatype tmpMeta63;
modelica_metatype tmpMeta64;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,3) == 0) goto tmp3_end;
tmpMeta63 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
_s2 = tmpMeta63;
_i = tmp4_2;
_s1 = omc_DAEDump_indentStr(threadData, _i);
tmpMeta64 = mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT200, mmc_mk_cons(_s2, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT193, MMC_REFSTRUCTLIT(mmc_nil))))));
tmp1 = stringAppendList(tmpMeta64);
goto tmp3_done;
}
case 16: {
modelica_metatype tmpMeta65;
_i = tmp4_2;
_s1 = omc_DAEDump_indentStr(threadData, _i);
tmpMeta65 = stringAppend(_s1,_OMC_LIT201);
tmp1 = tmpMeta65;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
tmp3_done:
(void)tmp4;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp3_done2;
goto_2:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp4 < 17) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
modelica_metatype boxptr_DAEDump_ppStmtStr(threadData_t *threadData, modelica_metatype _inStatement, modelica_metatype _inInteger)
{
modelica_integer tmp1;
modelica_string _outString = NULL;
tmp1 = mmc_unbox_integer(_inInteger);
_outString = omc_DAEDump_ppStmtStr(threadData, _inStatement, tmp1);
return _outString;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_ppWhenStmtStr(threadData_t *threadData, modelica_metatype _inStatement, modelica_integer _inInteger)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_integer tmp4_2;
tmp4_1 = _inStatement;
tmp4_2 = _inInteger;
{
modelica_string _s3 = NULL;
modelica_string _s4 = NULL;
modelica_string _s5 = NULL;
modelica_string _s6 = NULL;
modelica_string _s7 = NULL;
modelica_string _s8 = NULL;
modelica_string _s9 = NULL;
modelica_string _s10 = NULL;
modelica_metatype _e = NULL;
modelica_integer _i;
modelica_integer _i_1;
modelica_metatype _stmts = NULL;
modelica_metatype _stmt = 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;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,7,6) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6));
if (!optionNone(tmpMeta8)) goto tmp3_end;
_e = tmpMeta6;
_stmts = tmpMeta7;
_i = tmp4_2;
tmpMeta9 = stringAppend(_OMC_LIT103,omc_ExpressionDump_printExpStr(threadData, _e));
_s3 = tmpMeta9;
tmpMeta10 = stringAppend(_s3,_OMC_LIT96);
_s5 = tmpMeta10;
_i_1 = ((modelica_integer) 2) + _i;
_s6 = omc_DAEDump_ppStmtListStr(threadData, _stmts, _i_1);
tmpMeta11 = stringAppend(_s5,_s6);
_s7 = tmpMeta11;
_s8 = omc_DAEDump_indentStr(threadData, _i);
tmpMeta12 = stringAppend(_s7,_s8);
_s9 = tmpMeta12;
tmpMeta13 = stringAppend(_s9,_OMC_LIT202);
tmp1 = tmpMeta13;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
modelica_metatype tmpMeta16;
modelica_metatype tmpMeta17;
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
modelica_metatype tmpMeta20;
modelica_metatype tmpMeta21;
modelica_metatype tmpMeta22;
modelica_metatype tmpMeta23;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,7,6) == 0) goto tmp3_end;
tmpMeta14 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta15 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5));
tmpMeta16 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6));
if (optionNone(tmpMeta16)) goto tmp3_end;
tmpMeta17 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta16), 1));
_e = tmpMeta14;
_stmts = tmpMeta15;
_stmt = tmpMeta17;
_i = tmp4_2;
_s3 = omc_ExpressionDump_printExpStr(threadData, _e);
tmpMeta18 = stringAppend(_OMC_LIT103,_s3);
_s4 = tmpMeta18;
tmpMeta19 = stringAppend(_s4,_OMC_LIT96);
_s5 = tmpMeta19;
_i_1 = ((modelica_integer) 2) + _i;
_s6 = omc_DAEDump_ppStmtListStr(threadData, _stmts, _i_1);
tmpMeta20 = stringAppend(_s5,_s6);
_s7 = tmpMeta20;
_s8 = omc_DAEDump_ppWhenStmtStr(threadData, _stmt, _i);
tmpMeta21 = stringAppend(omc_DAEDump_indentStr(threadData, _i),_OMC_LIT203);
_s9 = tmpMeta21;
tmpMeta22 = stringAppend(_s7,_s9);
_s10 = tmpMeta22;
tmpMeta23 = stringAppend(_s10,_s8);
tmp1 = tmpMeta23;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDump_ppWhenStmtStr(threadData_t *threadData, modelica_metatype _inStatement, modelica_metatype _inInteger)
{
modelica_integer tmp1;
modelica_string _outString = NULL;
tmp1 = mmc_unbox_integer(_inInteger);
_outString = omc_DAEDump_ppWhenStmtStr(threadData, _inStatement, tmp1);
return _outString;
}
PROTECTED_FUNCTION_STATIC void omc_DAEDump_ppStmt(threadData_t *threadData, modelica_metatype _inStatement, modelica_integer _inInteger)
{
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp3_1;volatile modelica_integer tmp3_2;
tmp3_1 = _inStatement;
tmp3_2 = _inInteger;
{
modelica_metatype _e = NULL;
modelica_metatype _cond = NULL;
modelica_metatype _msg = NULL;
modelica_metatype _e1 = NULL;
modelica_metatype _e2 = NULL;
modelica_integer _i;
modelica_integer _i_1;
modelica_string _s1 = NULL;
modelica_string _s2 = NULL;
modelica_string _s3 = NULL;
modelica_string _str = NULL;
modelica_string _id = NULL;
modelica_string _name = NULL;
modelica_metatype _es = NULL;
modelica_metatype _expl = NULL;
modelica_metatype _then_ = NULL;
modelica_metatype _stmts = NULL;
modelica_metatype _stmt = NULL;
modelica_metatype _ty = NULL;
modelica_metatype _else_ = NULL;
modelica_metatype _source = NULL;
volatile mmc_switch_type tmp3;
int tmp4;
tmp3 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp2_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp3 < 16; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,4) == 0) goto tmp2_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5));
_e2 = tmpMeta5;
_e = tmpMeta6;
_source = tmpMeta7;
_i = tmp3_2;
tmp3 += 14;
omc_DAEDump_indent(threadData, _i);
omc_ExpressionDump_printExp(threadData, _e2);
omc_Print_printBuf(threadData, _OMC_LIT183);
omc_ExpressionDump_printExp(threadData, _e);
if(omc_Config_typeinfo(threadData))
{
tmpMeta8 = stringAppend(_OMC_LIT204,omc_Error_infoStr(threadData, omc_ElementSource_getElementSourceFileInfo(threadData, _source)));
tmpMeta9 = stringAppend(tmpMeta8,_OMC_LIT205);
omc_Print_printBuf(threadData, tmpMeta9);
}
omc_Print_printBuf(threadData, _OMC_LIT1);
goto tmp2_done;
}
case 1: {
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,4) == 0) goto tmp2_end;
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4));
_e2 = tmpMeta10;
_e = tmpMeta11;
_i = tmp3_2;
tmp3 += 13;
omc_DAEDump_indent(threadData, _i);
omc_ExpressionDump_printExp(threadData, _e2);
omc_Print_printBuf(threadData, _OMC_LIT183);
omc_ExpressionDump_printExp(threadData, _e);
omc_Print_printBuf(threadData, _OMC_LIT1);
goto tmp2_done;
}
case 2: {
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
modelica_metatype tmpMeta14;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,4) == 0) goto tmp2_end;
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4));
_expl = tmpMeta12;
_e = tmpMeta13;
_i = tmp3_2;
tmp3 += 12;
_s1 = omc_DAEDump_indentStr(threadData, _i);
_s2 = omc_ExpressionDump_printExpStr(threadData, _e);
_es = omc_List_map(threadData, _expl, boxvar_ExpressionDump_printExpStr);
_s3 = stringDelimitList(_es, _OMC_LIT43);
tmpMeta14 = mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT87, mmc_mk_cons(_s3, mmc_mk_cons(_OMC_LIT184, mmc_mk_cons(_s2, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil)))))));
_str = stringAppendList(tmpMeta14);
omc_Print_printBuf(threadData, _str);
goto tmp2_done;
}
case 3: {
modelica_metatype tmpMeta15;
modelica_metatype tmpMeta16;
modelica_metatype tmpMeta17;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,3,4) == 0) goto tmp2_end;
tmpMeta15 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta16 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
tmpMeta17 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4));
_e = tmpMeta15;
_then_ = tmpMeta16;
_else_ = tmpMeta17;
_i = tmp3_2;
tmp3 += 11;
omc_DAEDump_indent(threadData, _i);
omc_Print_printBuf(threadData, _OMC_LIT185);
omc_ExpressionDump_printExp(threadData, _e);
omc_Print_printBuf(threadData, _OMC_LIT96);
_i_1 = ((modelica_integer) 2) + _i;
omc_DAEDump_ppStmtList(threadData, _then_, _i_1);
omc_DAEDump_ppElse(threadData, _else_, _i);
omc_DAEDump_indent(threadData, _i);
omc_Print_printBuf(threadData, _OMC_LIT186);
goto tmp2_done;
}
case 4: {
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
modelica_metatype tmpMeta20;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,4,6) == 0) goto tmp2_end;
tmpMeta18 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4));
tmpMeta19 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5));
tmpMeta20 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6));
_id = tmpMeta18;
_e = tmpMeta19;
_stmts = tmpMeta20;
_i = tmp3_2;
tmp3 += 10;
omc_DAEDump_indent(threadData, _i);
omc_Print_printBuf(threadData, _OMC_LIT187);
omc_Print_printBuf(threadData, _id);
omc_Print_printBuf(threadData, _OMC_LIT91);
omc_ExpressionDump_printExp(threadData, _e);
omc_Print_printBuf(threadData, _OMC_LIT92);
_i_1 = ((modelica_integer) 2) + _i;
omc_DAEDump_ppStmtList(threadData, _stmts, _i_1);
omc_DAEDump_indent(threadData, _i);
omc_Print_printBuf(threadData, _OMC_LIT188);
goto tmp2_done;
}
case 5: {
modelica_metatype tmpMeta21;
modelica_metatype tmpMeta22;
modelica_metatype tmpMeta23;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,5,7) == 0) goto tmp2_end;
tmpMeta21 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4));
tmpMeta22 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5));
tmpMeta23 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6));
_id = tmpMeta21;
_e = tmpMeta22;
_stmts = tmpMeta23;
_i = tmp3_2;
tmp3 += 9;
omc_DAEDump_indent(threadData, _i);
omc_Print_printBuf(threadData, _OMC_LIT189);
omc_Print_printBuf(threadData, _id);
omc_Print_printBuf(threadData, _OMC_LIT91);
omc_ExpressionDump_printExp(threadData, _e);
omc_Print_printBuf(threadData, _OMC_LIT92);
_i_1 = ((modelica_integer) 2) + _i;
omc_DAEDump_ppStmtList(threadData, _stmts, _i_1);
omc_DAEDump_indent(threadData, _i);
omc_Print_printBuf(threadData, _OMC_LIT206);
goto tmp2_done;
}
case 6: {
modelica_metatype tmpMeta24;
modelica_metatype tmpMeta25;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,6,3) == 0) goto tmp2_end;
tmpMeta24 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta25 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
_e = tmpMeta24;
_stmts = tmpMeta25;
_i = tmp3_2;
tmp3 += 8;
omc_DAEDump_indent(threadData, _i);
omc_Print_printBuf(threadData, _OMC_LIT190);
omc_ExpressionDump_printExp(threadData, _e);
omc_Print_printBuf(threadData, _OMC_LIT92);
_i_1 = ((modelica_integer) 2) + _i;
omc_DAEDump_ppStmtList(threadData, _stmts, _i_1);
omc_DAEDump_indent(threadData, _i);
omc_Print_printBuf(threadData, _OMC_LIT191);
goto tmp2_done;
}
case 7: {
modelica_metatype tmpMeta26;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,11,2) == 0) goto tmp2_end;
tmpMeta26 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
_e1 = tmpMeta26;
_i = tmp3_2;
tmp3 += 7;
omc_DAEDump_indent(threadData, _i);
{
modelica_metatype tmp29_1;
tmp29_1 = _e1;
{
volatile mmc_switch_type tmp29;
int tmp30;
tmp29 = 0;
for (; tmp29 < 2; tmp29++) {
switch (MMC_SWITCH_CAST(tmp29)) {
case 0: {
modelica_metatype tmpMeta31;
modelica_metatype tmpMeta32;
if (mmc__uniontype__metarecord__typedef__equal(tmp29_1,13,3) == 0) goto tmp28_end;
tmpMeta31 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp29_1), 4));
tmpMeta32 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta31), 8));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta32,1,2) == 0) goto tmp28_end;
omc_Print_printBuf(threadData, _OMC_LIT195);
goto tmp28_done;
}
case 1: {
goto tmp28_done;
}
}
goto tmp28_end;
tmp28_end: ;
}
goto goto_27;
goto_27:;
goto goto_1;
goto tmp28_done;
tmp28_done:;
}
}
;
omc_ExpressionDump_printExp(threadData, _e1);
omc_Print_printBuf(threadData, _OMC_LIT1);
goto tmp2_done;
}
case 8: {
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,7,6) == 0) goto tmp2_end;
_stmt = tmp3_1;
_i = tmp3_2;
tmp3 += 6;
omc_DAEDump_indent(threadData, _i);
omc_Print_printBuf(threadData, omc_DAEDump_ppWhenStmtStr(threadData, _stmt, ((modelica_integer) 1)));
goto tmp2_done;
}
case 9: {
modelica_metatype tmpMeta33;
modelica_metatype tmpMeta34;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,8,4) == 0) goto tmp2_end;
tmpMeta33 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta34 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
_cond = tmpMeta33;
_msg = tmpMeta34;
_i = tmp3_2;
tmp3 += 5;
omc_DAEDump_indent(threadData, _i);
omc_Print_printBuf(threadData, _OMC_LIT192);
omc_ExpressionDump_printExp(threadData, _cond);
omc_Print_printBuf(threadData, _OMC_LIT43);
omc_ExpressionDump_printExp(threadData, _msg);
omc_Print_printBuf(threadData, _OMC_LIT193);
goto tmp2_done;
}
case 10: {
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,12,1) == 0) goto tmp2_end;
_i = tmp3_2;
tmp3 += 4;
omc_DAEDump_indent(threadData, _i);
omc_Print_printBuf(threadData, _OMC_LIT196);
goto tmp2_done;
}
case 11: {
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,13,1) == 0) goto tmp2_end;
_i = tmp3_2;
tmp3 += 3;
omc_DAEDump_indent(threadData, _i);
omc_Print_printBuf(threadData, _OMC_LIT197);
goto tmp2_done;
}
case 12: {
modelica_metatype tmpMeta35;
modelica_metatype tmpMeta36;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,10,3) == 0) goto tmp2_end;
tmpMeta35 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta36 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
_e1 = tmpMeta35;
_e2 = tmpMeta36;
_i = tmp3_2;
tmp3 += 2;
omc_DAEDump_indent(threadData, _i);
omc_Print_printBuf(threadData, _OMC_LIT198);
omc_ExpressionDump_printExp(threadData, _e1);
omc_Print_printBuf(threadData, _OMC_LIT20);
omc_ExpressionDump_printExp(threadData, _e2);
omc_Print_printBuf(threadData, _OMC_LIT193);
goto tmp2_done;
}
case 13: {
modelica_metatype tmpMeta37;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,16,2) == 0) goto tmp2_end;
tmpMeta37 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
_stmts = tmpMeta37;
_i = tmp3_2;
tmp3 += 1;
omc_DAEDump_indent(threadData, _i);
omc_Print_printBuf(threadData, _OMC_LIT207);
omc_DAEDump_ppStmtList(threadData, _stmts, ((modelica_integer) 2) + _i);
omc_Print_printBuf(threadData, _OMC_LIT208);
goto tmp2_done;
}
case 14: {
modelica_metatype tmpMeta38;
modelica_metatype tmpMeta39;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,15,3) == 0) goto tmp2_end;
tmpMeta38 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta39 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
_name = tmpMeta38;
_ty = tmpMeta39;
_i = tmp3_2;
omc_DAEDump_indent(threadData, _i);
omc_Print_printBuf(threadData, _OMC_LIT209);
omc_Print_printBuf(threadData, _name);
omc_Print_printBuf(threadData, _OMC_LIT210);
omc_Print_printBuf(threadData, omc_Types_unparseType(threadData, _ty));
omc_Print_printBuf(threadData, _OMC_LIT211);
goto tmp2_done;
}
case 15: {
_i = tmp3_2;
omc_DAEDump_indent(threadData, _i);
omc_Print_printBuf(threadData, _OMC_LIT212);
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
tmp2_done:
(void)tmp3;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp2_done2;
goto_1:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp3 < 16) {
goto tmp2_top;
}
MMC_THROW_INTERNAL();
tmp2_done2:;
}
}
;
_return: OMC_LABEL_UNUSED
return;
}
PROTECTED_FUNCTION_STATIC void boxptr_DAEDump_ppStmt(threadData_t *threadData, modelica_metatype _inStatement, modelica_metatype _inInteger)
{
modelica_integer tmp1;
tmp1 = mmc_unbox_integer(_inInteger);
omc_DAEDump_ppStmt(threadData, _inStatement, tmp1);
return;
}
DLLExport
modelica_string omc_DAEDump_ppStatementStr(threadData_t *threadData, modelica_metatype _alg)
{
modelica_string _str = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_str = omc_DAEDump_ppStmtStr(threadData, _alg, ((modelica_integer) 2));
_return: OMC_LABEL_UNUSED
return _str;
}
PROTECTED_FUNCTION_STATIC void omc_DAEDump_ppStatement(threadData_t *threadData, modelica_metatype _alg)
{
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
omc_DAEDump_ppStmt(threadData, _alg, ((modelica_integer) 2));
_return: OMC_LABEL_UNUSED
return;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_printRecordConstructorBinding(threadData_t *threadData, modelica_metatype _binding)
{
modelica_string _str = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _binding;
{
modelica_metatype _e = NULL;
modelica_metatype _v = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 4; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,0) == 0) goto tmp3_end;
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,4) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta7,0,0) == 0) goto tmp3_end;
_e = tmpMeta6;
tmpMeta8 = stringAppend(_OMC_LIT3,omc_ExpressionDump_printExpStr(threadData, _e));
tmp1 = tmpMeta8;
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,4) == 0) goto tmp3_end;
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta10,2,0) == 0) goto tmp3_end;
_e = tmpMeta9;
tmpMeta11 = stringAppend(_OMC_LIT3,omc_ExpressionDump_printExpStr(threadData, _e));
tmp1 = tmpMeta11;
goto tmp3_done;
}
case 3: {
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
modelica_metatype tmpMeta14;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,2) == 0) goto tmp3_end;
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta13,0,0) == 0) goto tmp3_end;
_v = tmpMeta12;
tmpMeta14 = stringAppend(_OMC_LIT3,omc_ValuesUtil_valString(threadData, _v));
tmp1 = tmpMeta14;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_str = tmp1;
_return: OMC_LABEL_UNUSED
return _str;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_printRecordConstructorInputAttrStr(threadData_t *threadData, modelica_metatype _inAttributes)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _inAttributes;
{
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 3; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,1,0) == 0) goto tmp3_end;
tmp1 = _OMC_LIT213;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta7;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta7,3,0) == 0) goto tmp3_end;
tmp1 = _OMC_LIT214;
goto tmp3_done;
}
case 2: {
tmp1 = _OMC_LIT215;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_printRecordConstructorInputStr(threadData_t *threadData, modelica_metatype _inVar)
{
modelica_string _outString = NULL;
modelica_string _name = NULL;
modelica_string _attr_str = NULL;
modelica_string _binding_str = NULL;
modelica_string _ty_str = NULL;
modelica_string _ty_vars_str = NULL;
modelica_metatype _attr = NULL;
modelica_metatype _ty = NULL;
modelica_metatype _binding = NULL;
modelica_metatype tmpMeta1;
modelica_metatype tmpMeta2;
modelica_metatype tmpMeta3;
modelica_metatype tmpMeta4;
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta1 = _inVar;
tmpMeta2 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta1), 2));
tmpMeta3 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta1), 3));
tmpMeta4 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta1), 4));
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta1), 5));
_name = tmpMeta2;
_attr = tmpMeta3;
_ty = tmpMeta4;
_binding = tmpMeta5;
_attr_str = omc_DAEDump_printRecordConstructorInputAttrStr(threadData, _attr);
_binding_str = omc_DAEDump_printRecordConstructorBinding(threadData, _binding);
_ty_str = omc_DAEDump_printTypeStr(threadData, _ty ,&_ty_vars_str);
tmpMeta6 = mmc_mk_cons(_OMC_LIT2, mmc_mk_cons(_attr_str, mmc_mk_cons(_ty_str, mmc_mk_cons(_OMC_LIT35, mmc_mk_cons(_name, mmc_mk_cons(_ty_vars_str, mmc_mk_cons(_binding_str, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil)))))))));
_outString = stringAppendList(tmpMeta6);
_return: OMC_LABEL_UNUSED
return _outString;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_printRecordConstructorInputsStr(threadData_t *threadData, modelica_metatype _itp)
{
modelica_string _str = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _itp;
{
modelica_metatype _var_strl = NULL;
modelica_metatype _vars = NULL;
modelica_metatype _tp = 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_1,9,3) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
_vars = tmpMeta6;
_var_strl = omc_List_map(threadData, _vars, boxvar_DAEDump_printRecordConstructorInputStr);
tmp1 = stringAppendList(_var_strl);
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta7;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,11,4) == 0) goto tmp3_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
_tp = tmpMeta7;
_itp = _tp;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_str = tmp1;
_return: OMC_LABEL_UNUSED
return _str;
}
DLLExport
modelica_string omc_DAEDump_dumpInlineTypeStr(threadData_t *threadData, modelica_metatype _inlineType)
{
modelica_string _str = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _inlineType;
{
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))) {
case 7: {
tmp1 = _OMC_LIT216;
goto tmp3_done;
}
case 8: {
tmp1 = _OMC_LIT217;
goto tmp3_done;
}
case 3: {
tmp1 = _OMC_LIT218;
goto tmp3_done;
}
case 6: {
tmp1 = _OMC_LIT219;
goto tmp3_done;
}
default:
tmp3_default: OMC_LABEL_UNUSED; {
tmp1 = _OMC_LIT220;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_str = tmp1;
_return: OMC_LABEL_UNUSED
return _str;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_dumpParallelismStr(threadData_t *threadData, modelica_metatype _inType)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _inType;
{
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;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,11,4) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta7,0,0) == 0) goto tmp3_end;
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,11,4) == 0) goto tmp3_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta8), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta9,1,0) == 0) goto tmp3_end;
tmp1 = _OMC_LIT221;
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,11,4) == 0) goto tmp3_end;
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta10), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta11,2,0) == 0) goto tmp3_end;
tmp1 = _OMC_LIT222;
goto tmp3_done;
}
case 3: {
tmp1 = _OMC_LIT223;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
PROTECTED_FUNCTION_STATIC void omc_DAEDump_dumpFunction(threadData_t *threadData, modelica_metatype _inElement)
{
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp3_1;
tmp3_1 = _inElement;
{
modelica_string _fstr = NULL;
modelica_string _ext_decl_str = NULL;
modelica_string _parallelism_str = NULL;
modelica_string _impureStr = NULL;
modelica_string _typeStr = NULL;
modelica_metatype _fpath = NULL;
modelica_metatype _daeElts = NULL;
modelica_metatype _t = NULL;
modelica_metatype _c = NULL;
modelica_metatype _ext_decl = NULL;
modelica_boolean _isImpure;
volatile mmc_switch_type tmp3;
int tmp4;
tmp3 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp2_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp3 < 5; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
modelica_integer tmp12;
modelica_metatype tmpMeta13;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,10) == 0) goto tmp2_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
if (listEmpty(tmpMeta6)) goto tmp2_end;
tmpMeta7 = MMC_CAR(tmpMeta6);
tmpMeta8 = MMC_CDR(tmpMeta6);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta7,0,1) == 0) goto tmp2_end;
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta7), 2));
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4));
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 7));
tmp12 = mmc_unbox_integer(tmpMeta11);
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 11));
_fpath = tmpMeta5;
_daeElts = tmpMeta9;
_t = tmpMeta10;
_isImpure = tmp12;
_c = tmpMeta13;
tmp3 += 3;
_typeStr = omc_Types_printTypeStr(threadData, _t);
omc_Print_printBuf(threadData, _typeStr);
_parallelism_str = omc_DAEDump_dumpParallelismStr(threadData, _t);
omc_Print_printBuf(threadData, _parallelism_str);
_impureStr = (_isImpure?_OMC_LIT55:_OMC_LIT34);
omc_Print_printBuf(threadData, _impureStr);
omc_Print_printBuf(threadData, _OMC_LIT56);
_fstr = omc_AbsynUtil_pathStringNoQual(threadData, _fpath, _OMC_LIT17, 0, 0);
omc_Print_printBuf(threadData, _fstr);
omc_Print_printBuf(threadData, omc_DAEDump_dumpCommentStr(threadData, _c));
omc_Print_printBuf(threadData, _OMC_LIT15);
omc_DAEDump_dumpFunctionElements(threadData, _daeElts);
omc_Print_printBuf(threadData, omc_DAEDump_dumpClassAnnotationStr(threadData, _c));
omc_Print_printBuf(threadData, _OMC_LIT57);
omc_Print_printBuf(threadData, _fstr);
omc_Print_printBuf(threadData, _OMC_LIT58);
goto tmp2_done;
}
case 1: {
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
modelica_metatype tmpMeta16;
modelica_metatype tmpMeta17;
modelica_metatype tmpMeta18;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,10) == 0) goto tmp2_end;
tmpMeta14 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
if (listEmpty(tmpMeta14)) goto tmp2_end;
tmpMeta15 = MMC_CAR(tmpMeta14);
tmpMeta16 = MMC_CDR(tmpMeta14);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta15,1,2) == 0) goto tmp2_end;
tmpMeta17 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta15), 3));
tmpMeta18 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta17), 5));
if (7 != MMC_STRLEN(tmpMeta18) || strcmp(MMC_STRINGDATA(_OMC_LIT72), MMC_STRINGDATA(tmpMeta18)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 2: {
modelica_metatype tmpMeta19;
modelica_metatype tmpMeta20;
modelica_metatype tmpMeta21;
modelica_metatype tmpMeta22;
modelica_metatype tmpMeta23;
modelica_metatype tmpMeta24;
modelica_metatype tmpMeta25;
modelica_integer tmp26;
modelica_metatype tmpMeta27;
modelica_metatype tmpMeta28;
modelica_metatype tmpMeta29;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,10) == 0) goto tmp2_end;
tmpMeta19 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta20 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
if (listEmpty(tmpMeta20)) goto tmp2_end;
tmpMeta21 = MMC_CAR(tmpMeta20);
tmpMeta22 = MMC_CDR(tmpMeta20);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta21,1,2) == 0) goto tmp2_end;
tmpMeta23 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta21), 2));
tmpMeta24 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta21), 3));
tmpMeta25 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 7));
tmp26 = mmc_unbox_integer(tmpMeta25);
tmpMeta27 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 11));
_fpath = tmpMeta19;
_daeElts = tmpMeta23;
_ext_decl = tmpMeta24;
_isImpure = tmp26;
_c = tmpMeta27;
tmp3 += 1;
_impureStr = (_isImpure?_OMC_LIT55:_OMC_LIT34);
omc_Print_printBuf(threadData, _impureStr);
omc_Print_printBuf(threadData, _OMC_LIT56);
_fstr = omc_AbsynUtil_pathStringNoQual(threadData, _fpath, _OMC_LIT17, 0, 0);
omc_Print_printBuf(threadData, _fstr);
omc_Print_printBuf(threadData, omc_DAEDump_dumpCommentStr(threadData, _c));
omc_Print_printBuf(threadData, _OMC_LIT15);
omc_DAEDump_dumpFunctionElements(threadData, _daeElts);
_ext_decl_str = omc_DAEDump_dumpExtDeclStr(threadData, _ext_decl);
tmpMeta28 = stringAppend(_OMC_LIT59,_ext_decl_str);
tmpMeta29 = stringAppend(tmpMeta28,_OMC_LIT15);
omc_Print_printBuf(threadData, tmpMeta29);
omc_Print_printBuf(threadData, omc_DAEDump_dumpClassAnnotationStr(threadData, _c));
omc_Print_printBuf(threadData, _OMC_LIT57);
omc_Print_printBuf(threadData, _fstr);
omc_Print_printBuf(threadData, _OMC_LIT58);
goto tmp2_done;
}
case 3: {
modelica_metatype tmpMeta30;
modelica_metatype tmpMeta31;
modelica_boolean tmp32;
modelica_metatype tmpMeta33;
modelica_metatype tmpMeta34;
modelica_metatype tmpMeta35;
modelica_metatype tmpMeta36;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,3) == 0) goto tmp2_end;
tmpMeta30 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta31 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
_fpath = tmpMeta30;
_t = tmpMeta31;
tmp32 = omc_Flags_isSet(threadData, _OMC_LIT63);
if (0 != tmp32) goto goto_1;
if(omc_Flags_isSet(threadData, _OMC_LIT71))
{
omc_Print_printBuf(threadData, omc_Types_unparseType(threadData, _t));
omc_Print_printBuf(threadData, _OMC_LIT15);
}
else
{
omc_Print_printBuf(threadData, _OMC_LIT56);
_fstr = omc_AbsynUtil_pathStringNoQual(threadData, _fpath, _OMC_LIT17, 0, 0);
omc_Print_printBuf(threadData, _fstr);
tmpMeta33 = stringAppend(_OMC_LIT64,_fstr);
tmpMeta34 = stringAppend(tmpMeta33,_OMC_LIT65);
omc_Print_printBuf(threadData, tmpMeta34);
omc_Print_printBuf(threadData, omc_DAEDump_printRecordConstructorInputsStr(threadData, _t));
tmpMeta35 = stringAppend(_OMC_LIT66,omc_AbsynUtil_pathLastIdent(threadData, _fpath));
tmpMeta36 = stringAppend(tmpMeta35,_OMC_LIT67);
omc_Print_printBuf(threadData, tmpMeta36);
omc_Print_printBuf(threadData, _OMC_LIT57);
omc_Print_printBuf(threadData, _fstr);
omc_Print_printBuf(threadData, _OMC_LIT58);
}
goto tmp2_done;
}
case 4: {
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
tmp2_done:
(void)tmp3;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp2_done2;
goto_1:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp3 < 5) {
goto tmp2_top;
}
MMC_THROW_INTERNAL();
tmp2_done2:;
}
}
;
_return: OMC_LABEL_UNUSED
return;
}
DLLExport
modelica_string omc_DAEDump_derivativeCondStr(threadData_t *threadData, modelica_metatype _dc)
{
modelica_string _str = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _dc;
{
modelica_metatype _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;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,1) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
_e = tmpMeta6;
tmpMeta7 = stringAppend(_OMC_LIT224,omc_ExpressionDump_printExpStr(threadData, _e));
tmpMeta8 = stringAppend(tmpMeta7,_OMC_LIT30);
tmp1 = tmpMeta8;
goto tmp3_done;
}
case 1: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,0) == 0) goto tmp3_end;
tmp1 = _OMC_LIT225;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_str = tmp1;
_return: OMC_LABEL_UNUSED
return _str;
}
PROTECTED_FUNCTION_STATIC void omc_DAEDump_dumpExtObjectClass(threadData_t *threadData, modelica_metatype _inElement)
{
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp3_1;
tmp3_1 = _inElement;
{
modelica_string _fstr = NULL;
modelica_metatype _fpath = NULL;
volatile mmc_switch_type tmp3;
int tmp4;
tmp3 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp2_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp3 < 2; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
modelica_metatype tmpMeta5;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,19,2) == 0) goto tmp2_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
_fpath = tmpMeta5;
omc_Print_printBuf(threadData, _OMC_LIT115);
_fstr = omc_AbsynUtil_pathString(threadData, _fpath, _OMC_LIT17, 1, 0);
omc_Print_printBuf(threadData, _fstr);
omc_Print_printBuf(threadData, _OMC_LIT226);
omc_Print_printBuf(threadData, _OMC_LIT57);
omc_Print_printBuf(threadData, _fstr);
omc_Print_printBuf(threadData, _OMC_LIT1);
goto tmp2_done;
}
case 1: {
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
tmp2_done:
(void)tmp3;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp2_done2;
goto_1:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp3 < 2) {
goto tmp2_top;
}
MMC_THROW_INTERNAL();
tmp2_done2:;
}
}
;
_return: OMC_LABEL_UNUSED
return;
}
PROTECTED_FUNCTION_STATIC void omc_DAEDump_dumpInitialAlgorithm(threadData_t *threadData, modelica_metatype _inElement)
{
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp3_1;
tmp3_1 = _inElement;
{
modelica_metatype _stmts = NULL;
volatile mmc_switch_type tmp3;
int tmp4;
tmp3 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp2_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp3 < 2; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,17,2) == 0) goto tmp2_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta5), 2));
_stmts = tmpMeta6;
omc_Print_printBuf(threadData, _OMC_LIT74);
omc_Dump_printList(threadData, _stmts, boxvar_DAEDump_ppStatement, _OMC_LIT34);
goto tmp2_done;
}
case 1: {
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
tmp2_done:
(void)tmp3;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp2_done2;
goto_1:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp3 < 2) {
goto tmp2_top;
}
MMC_THROW_INTERNAL();
tmp2_done2:;
}
}
;
_return: OMC_LABEL_UNUSED
return;
}
DLLExport
void omc_DAEDump_dumpAlgorithm(threadData_t *threadData, modelica_metatype _inElement)
{
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp3_1;
tmp3_1 = _inElement;
{
modelica_metatype _stmts = NULL;
volatile mmc_switch_type tmp3;
int tmp4;
tmp3 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp2_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp3 < 2; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,16,2) == 0) goto tmp2_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta5), 2));
_stmts = tmpMeta6;
omc_Print_printBuf(threadData, _OMC_LIT75);
omc_Dump_printList(threadData, _stmts, boxvar_DAEDump_ppStatement, _OMC_LIT34);
goto tmp2_done;
}
case 1: {
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
tmp2_done:
(void)tmp3;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp2_done2;
goto_1:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp3 < 2) {
goto tmp2_top;
}
MMC_THROW_INTERNAL();
tmp2_done2:;
}
}
;
_return: OMC_LABEL_UNUSED
return;
}
DLLExport
modelica_string omc_DAEDump_dumpEquationStr(threadData_t *threadData, modelica_metatype _inElement)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;
tmp4_1 = _inElement;
{
modelica_string _s1 = NULL;
modelica_string _s2 = NULL;
modelica_string _s3 = NULL;
modelica_string _s4 = NULL;
modelica_string _s5 = NULL;
modelica_string _sourceStr = NULL;
modelica_metatype _e1 = NULL;
modelica_metatype _e2 = NULL;
modelica_metatype _e = NULL;
modelica_metatype _c = NULL;
modelica_metatype _cr1 = NULL;
modelica_metatype _cr2 = NULL;
modelica_metatype _src = NULL;
modelica_metatype _cmt = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp4 < 9; 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_1,3,3) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
_e1 = tmpMeta6;
_e2 = tmpMeta7;
_src = tmpMeta8;
tmp4 += 7;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
_s2 = omc_ExpressionDump_printExpStr(threadData, _e2);
tmpMeta9 = mmc_mk_cons(_OMC_LIT2, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT3, mmc_mk_cons(_s2, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil)))))));
tmp1 = stringAppendList(tmpMeta9);
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,4,3) == 0) goto tmp3_end;
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
_cr1 = tmpMeta10;
_cr2 = tmpMeta11;
_src = tmpMeta12;
tmp4 += 6;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
_s1 = omc_ComponentReference_printComponentRefStr(threadData, _cr1);
_s2 = omc_ComponentReference_printComponentRefStr(threadData, _cr2);
tmpMeta13 = mmc_mk_cons(_OMC_LIT2, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT3, mmc_mk_cons(_s2, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil)))))));
tmp1 = stringAppendList(tmpMeta13);
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
modelica_metatype tmpMeta16;
modelica_metatype tmpMeta17;
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
modelica_metatype tmpMeta20;
modelica_metatype tmpMeta21;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,5,4) == 0) goto tmp3_end;
tmpMeta14 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta15 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
tmpMeta16 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5));
_e1 = tmpMeta14;
_e2 = tmpMeta15;
_src = tmpMeta16;
tmp4 += 5;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
_s2 = omc_ExpressionDump_printExpStr(threadData, _e2);
tmpMeta17 = stringAppend(_OMC_LIT2,_s1);
tmpMeta18 = stringAppend(tmpMeta17,_OMC_LIT3);
tmpMeta19 = stringAppend(tmpMeta18,_s2);
tmpMeta20 = stringAppend(tmpMeta19,_sourceStr);
tmpMeta21 = stringAppend(tmpMeta20,_OMC_LIT1);
tmp1 = tmpMeta21;
goto tmp3_done;
}
case 3: {
modelica_metatype tmpMeta22;
modelica_metatype tmpMeta23;
modelica_metatype tmpMeta24;
modelica_metatype tmpMeta25;
modelica_metatype tmpMeta26;
modelica_metatype tmpMeta27;
modelica_metatype tmpMeta28;
modelica_metatype tmpMeta29;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,8,3) == 0) goto tmp3_end;
tmpMeta22 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta23 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta24 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
_e1 = tmpMeta22;
_e2 = tmpMeta23;
_src = tmpMeta24;
tmp4 += 4;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
_s2 = omc_ExpressionDump_printExpStr(threadData, _e2);
tmpMeta25 = stringAppend(_OMC_LIT2,_s1);
tmpMeta26 = stringAppend(tmpMeta25,_OMC_LIT3);
tmpMeta27 = stringAppend(tmpMeta26,_s2);
tmpMeta28 = stringAppend(tmpMeta27,_sourceStr);
tmpMeta29 = stringAppend(tmpMeta28,_OMC_LIT1);
tmp1 = tmpMeta29;
goto tmp3_done;
}
case 4: {
modelica_metatype tmpMeta30;
modelica_metatype tmpMeta31;
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_1,1,3) == 0) goto tmp3_end;
tmpMeta30 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta31 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta32 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
_c = tmpMeta30;
_e = tmpMeta31;
_src = tmpMeta32;
tmp4 += 3;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
_s1 = omc_ComponentReference_printComponentRefStr(threadData, _c);
tmpMeta33 = stringAppend(_OMC_LIT2,_s1);
_s2 = tmpMeta33;
tmpMeta34 = stringAppend(_OMC_LIT227,_s2);
_s3 = tmpMeta34;
_s4 = omc_ExpressionDump_printExpStr(threadData, _e);
tmpMeta35 = stringAppend(_s3,_s4);
_s5 = tmpMeta35;
tmpMeta36 = stringAppend(_sourceStr,_OMC_LIT1);
tmpMeta37 = stringAppend(_s5,tmpMeta36);
tmp1 = tmpMeta37;
goto tmp3_done;
}
case 5: {
modelica_metatype tmpMeta38;
modelica_metatype tmpMeta39;
modelica_metatype tmpMeta40;
modelica_metatype tmpMeta41;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,20,4) == 0) goto tmp3_end;
tmpMeta38 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta39 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta40 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5));
_e1 = tmpMeta38;
_e2 = tmpMeta39;
_src = tmpMeta40;
tmp4 += 2;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
_s2 = omc_ExpressionDump_printExpStr(threadData, _e2);
tmpMeta41 = mmc_mk_cons(_OMC_LIT19, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT20, mmc_mk_cons(_s2, mmc_mk_cons(_OMC_LIT21, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))))))));
tmp1 = stringAppendList(tmpMeta41);
goto tmp3_done;
}
case 6: {
modelica_metatype tmpMeta42;
modelica_metatype tmpMeta43;
modelica_metatype tmpMeta44;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,22,2) == 0) goto tmp3_end;
tmpMeta42 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta43 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
_e1 = tmpMeta42;
_src = tmpMeta43;
tmp4 += 1;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
tmpMeta44 = mmc_mk_cons(_OMC_LIT23, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT21, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))))));
tmp1 = stringAppendList(tmpMeta44);
goto tmp3_done;
}
case 7: {
modelica_metatype tmpMeta45;
modelica_metatype tmpMeta46;
modelica_metatype tmpMeta47;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,25,2) == 0) goto tmp3_end;
tmpMeta45 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta46 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
_e1 = tmpMeta45;
_src = tmpMeta46;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
tmpMeta47 = mmc_mk_cons(_OMC_LIT2, mmc_mk_cons(_s1, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil)))));
tmp1 = stringAppendList(tmpMeta47);
goto tmp3_done;
}
case 8: {
tmp1 = _OMC_LIT26;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
tmp3_done:
(void)tmp4;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp3_done2;
goto_2:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp4 < 9) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
PROTECTED_FUNCTION_STATIC void omc_DAEDump_dumpInitialEquation(threadData_t *threadData, modelica_metatype _inElement)
{
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp3_1;
tmp3_1 = _inElement;
{
modelica_metatype _e1 = NULL;
modelica_metatype _e2 = NULL;
modelica_metatype _e = NULL;
modelica_metatype _c = NULL;
modelica_metatype _xs1 = NULL;
modelica_metatype _xs2 = NULL;
modelica_metatype _trueBranches = NULL;
modelica_metatype _conds = NULL;
modelica_string _s = NULL;
modelica_string _s1 = NULL;
modelica_string _s2 = NULL;
modelica_string _sourceStr = NULL;
modelica_metatype _str = NULL;
modelica_metatype _src = NULL;
modelica_metatype _cmt = NULL;
volatile mmc_switch_type tmp3;
int tmp4;
tmp3 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp2_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp3 < 9; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,15,3) == 0) goto tmp2_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
_e1 = tmpMeta5;
_e2 = tmpMeta6;
tmp3 += 7;
omc_Print_printBuf(threadData, _OMC_LIT2);
omc_ExpressionDump_printExp(threadData, _e1);
omc_Print_printBuf(threadData, _OMC_LIT3);
omc_ExpressionDump_printExp(threadData, _e2);
omc_Print_printBuf(threadData, _OMC_LIT1);
goto tmp2_done;
}
case 1: {
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,3) == 0) goto tmp2_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
_c = tmpMeta7;
_e = tmpMeta8;
tmp3 += 6;
omc_Print_printBuf(threadData, _OMC_LIT2);
omc_ComponentReference_printComponentRef(threadData, _c);
omc_Print_printBuf(threadData, _OMC_LIT227);
omc_ExpressionDump_printExp(threadData, _e);
omc_Print_printBuf(threadData, _OMC_LIT1);
goto tmp2_done;
}
case 2: {
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,6,4) == 0) goto tmp2_end;
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4));
_e1 = tmpMeta9;
_e2 = tmpMeta10;
tmp3 += 5;
omc_Print_printBuf(threadData, _OMC_LIT2);
omc_ExpressionDump_printExp(threadData, _e1);
omc_Print_printBuf(threadData, _OMC_LIT3);
omc_ExpressionDump_printExp(threadData, _e2);
omc_Print_printBuf(threadData, _OMC_LIT1);
goto tmp2_done;
}
case 3: {
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,9,3) == 0) goto tmp2_end;
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
_e1 = tmpMeta11;
_e2 = tmpMeta12;
tmp3 += 4;
omc_Print_printBuf(threadData, _OMC_LIT2);
omc_ExpressionDump_printExp(threadData, _e1);
omc_Print_printBuf(threadData, _OMC_LIT3);
omc_ExpressionDump_printExp(threadData, _e2);
omc_Print_printBuf(threadData, _OMC_LIT1);
goto tmp2_done;
}
case 4: {
modelica_metatype tmpMeta13;
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
modelica_metatype tmpMeta16;
modelica_metatype tmpMeta17;
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,14,4) == 0) goto tmp2_end;
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
if (listEmpty(tmpMeta13)) goto tmp2_end;
tmpMeta14 = MMC_CAR(tmpMeta13);
tmpMeta15 = MMC_CDR(tmpMeta13);
tmpMeta16 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
if (listEmpty(tmpMeta16)) goto tmp2_end;
tmpMeta17 = MMC_CAR(tmpMeta16);
tmpMeta18 = MMC_CDR(tmpMeta16);
tmpMeta19 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4));
_e = tmpMeta14;
_conds = tmpMeta15;
_xs1 = tmpMeta17;
_trueBranches = tmpMeta18;
_xs2 = tmpMeta19;
tmp3 += 3;
omc_Print_printBuf(threadData, _OMC_LIT95);
omc_ExpressionDump_printExp(threadData, _e);
omc_Print_printBuf(threadData, _OMC_LIT96);
omc_List_map__0(threadData, _xs1, boxvar_DAEDump_dumpInitialEquation);
_str = omc_DAEDump_dumpIfEquationsStream(threadData, _conds, _trueBranches, _OMC_LIT230);
_s = omc_IOStream_string(threadData, _str);
omc_Print_printBuf(threadData, _s);
omc_Print_printBuf(threadData, _OMC_LIT97);
omc_List_map__0(threadData, _xs2, boxvar_DAEDump_dumpInitialEquation);
omc_Print_printBuf(threadData, _OMC_LIT186);
goto tmp2_done;
}
case 5: {
modelica_metatype tmpMeta20;
modelica_metatype tmpMeta21;
modelica_metatype tmpMeta22;
modelica_metatype tmpMeta23;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,21,4) == 0) goto tmp2_end;
tmpMeta20 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta21 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
tmpMeta22 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5));
_e1 = tmpMeta20;
_e2 = tmpMeta21;
_src = tmpMeta22;
tmp3 += 2;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
_s2 = omc_ExpressionDump_printExpStr(threadData, _e2);
tmpMeta23 = mmc_mk_cons(_OMC_LIT19, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT20, mmc_mk_cons(_s2, mmc_mk_cons(_OMC_LIT21, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))))))));
_s = stringAppendList(tmpMeta23);
omc_Print_printBuf(threadData, _s);
goto tmp2_done;
}
case 6: {
modelica_metatype tmpMeta24;
modelica_metatype tmpMeta25;
modelica_metatype tmpMeta26;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,23,2) == 0) goto tmp2_end;
tmpMeta24 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta25 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
_e1 = tmpMeta24;
_src = tmpMeta25;
tmp3 += 1;
_cmt = omc_ElementSource_getComments(threadData, _src);
_sourceStr = omc_DAEDump_cmtListToString(threadData, _cmt);
_s1 = omc_ExpressionDump_printExpStr(threadData, _e1);
tmpMeta26 = mmc_mk_cons(_OMC_LIT23, mmc_mk_cons(_s1, mmc_mk_cons(_OMC_LIT21, mmc_mk_cons(_sourceStr, mmc_mk_cons(_OMC_LIT1, MMC_REFSTRUCTLIT(mmc_nil))))));
_s = stringAppendList(tmpMeta26);
omc_Print_printBuf(threadData, _s);
goto tmp2_done;
}
case 7: {
modelica_metatype tmpMeta27;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,26,2) == 0) goto tmp2_end;
tmpMeta27 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
_e1 = tmpMeta27;
omc_ExpressionDump_printExp(threadData, _e1);
omc_Print_printBuf(threadData, _OMC_LIT1);
goto tmp2_done;
}
case 8: {
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
tmp2_done:
(void)tmp3;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp2_done2;
goto_1:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp3 < 9) {
goto tmp2_top;
}
MMC_THROW_INTERNAL();
tmp2_done2:;
}
}
;
_return: OMC_LABEL_UNUSED
return;
}
PROTECTED_FUNCTION_STATIC void omc_DAEDump_dumpEquation(threadData_t *threadData, modelica_metatype _inElement)
{
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp3_1;
tmp3_1 = _inElement;
{
modelica_metatype _e1 = NULL;
modelica_metatype _e2 = NULL;
modelica_metatype _e = NULL;
modelica_metatype _c = NULL;
modelica_metatype _cr1 = NULL;
modelica_metatype _cr2 = NULL;
modelica_metatype _src = NULL;
modelica_string _sourceStr = NULL;
volatile mmc_switch_type tmp3;
int tmp4;
tmp3 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp2_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp3 < 8; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,3,3) == 0) goto tmp2_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4));
_e1 = tmpMeta5;
_e2 = tmpMeta6;
_src = tmpMeta7;
tmp3 += 6;
omc_Print_printBuf(threadData, _OMC_LIT2);
omc_ExpressionDump_printExp(threadData, _e1);
omc_Print_printBuf(threadData, _OMC_LIT3);
omc_ExpressionDump_printExp(threadData, _e2);
_sourceStr = omc_DAEDump_getSourceInformationStr(threadData, _src);
omc_Print_printBuf(threadData, _sourceStr);
omc_Print_printBuf(threadData, _OMC_LIT1);
goto tmp2_done;
}
case 1: {
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,4,3) == 0) goto tmp2_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4));
_cr1 = tmpMeta8;
_cr2 = tmpMeta9;
_src = tmpMeta10;
tmp3 += 5;
omc_Print_printBuf(threadData, _OMC_LIT2);
omc_ComponentReference_printComponentRef(threadData, _cr1);
omc_Print_printBuf(threadData, _OMC_LIT3);
omc_ComponentReference_printComponentRef(threadData, _cr2);
_sourceStr = omc_DAEDump_getSourceInformationStr(threadData, _src);
omc_Print_printBuf(threadData, _sourceStr);
omc_Print_printBuf(threadData, _OMC_LIT1);
goto tmp2_done;
}
case 2: {
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,5,4) == 0) goto tmp2_end;
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4));
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5));
_e1 = tmpMeta11;
_e2 = tmpMeta12;
_src = tmpMeta13;
tmp3 += 4;
omc_Print_printBuf(threadData, _OMC_LIT2);
omc_ExpressionDump_printExp(threadData, _e1);
omc_Print_printBuf(threadData, _OMC_LIT3);
omc_ExpressionDump_printExp(threadData, _e2);
_sourceStr = omc_DAEDump_getSourceInformationStr(threadData, _src);
omc_Print_printBuf(threadData, _sourceStr);
omc_Print_printBuf(threadData, _OMC_LIT1);
goto tmp2_done;
}
case 3: {
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
modelica_metatype tmpMeta16;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,8,3) == 0) goto tmp2_end;
tmpMeta14 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta15 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
tmpMeta16 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4));
_e1 = tmpMeta14;
_e2 = tmpMeta15;
_src = tmpMeta16;
tmp3 += 3;
omc_Print_printBuf(threadData, _OMC_LIT2);
omc_ExpressionDump_printExp(threadData, _e1);
omc_Print_printBuf(threadData, _OMC_LIT3);
omc_ExpressionDump_printExp(threadData, _e2);
_sourceStr = omc_DAEDump_getSourceInformationStr(threadData, _src);
omc_Print_printBuf(threadData, _sourceStr);
omc_Print_printBuf(threadData, _OMC_LIT1);
goto tmp2_done;
}
case 4: {
modelica_metatype tmpMeta17;
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,3) == 0) goto tmp2_end;
tmpMeta17 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta18 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
tmpMeta19 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4));
_c = tmpMeta17;
_e = tmpMeta18;
_src = tmpMeta19;
tmp3 += 2;
omc_Print_printBuf(threadData, _OMC_LIT2);
omc_ComponentReference_printComponentRef(threadData, _c);
omc_Print_printBuf(threadData, _OMC_LIT227);
omc_ExpressionDump_printExp(threadData, _e);
_sourceStr = omc_DAEDump_getSourceInformationStr(threadData, _src);
omc_Print_printBuf(threadData, _sourceStr);
omc_Print_printBuf(threadData, _OMC_LIT1);
goto tmp2_done;
}
case 5: {
modelica_metatype tmpMeta20;
modelica_metatype tmpMeta21;
modelica_metatype tmpMeta22;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,20,4) == 0) goto tmp2_end;
tmpMeta20 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta21 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
tmpMeta22 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5));
_e1 = tmpMeta20;
_e2 = tmpMeta21;
_src = tmpMeta22;
tmp3 += 1;
omc_Print_printBuf(threadData, _OMC_LIT192);
omc_ExpressionDump_printExp(threadData, _e1);
omc_Print_printBuf(threadData, _OMC_LIT20);
omc_ExpressionDump_printExp(threadData, _e2);
omc_Print_printBuf(threadData, _OMC_LIT21);
_sourceStr = omc_DAEDump_getSourceInformationStr(threadData, _src);
omc_Print_printBuf(threadData, _sourceStr);
omc_Print_printBuf(threadData, _OMC_LIT1);
goto tmp2_done;
}
case 6: {
modelica_metatype tmpMeta23;
modelica_metatype tmpMeta24;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,25,2) == 0) goto tmp2_end;
tmpMeta23 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta24 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
_e1 = tmpMeta23;
_src = tmpMeta24;
omc_ExpressionDump_printExp(threadData, _e1);
_sourceStr = omc_DAEDump_getSourceInformationStr(threadData, _src);
omc_Print_printBuf(threadData, _sourceStr);
omc_Print_printBuf(threadData, _OMC_LIT1);
goto tmp2_done;
}
case 7: {
omc_Print_printBuf(threadData, _OMC_LIT231);
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
tmp2_done:
(void)tmp3;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp2_done2;
goto_1:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp3 < 8) {
goto tmp2_top;
}
MMC_THROW_INTERNAL();
tmp2_done2:;
}
}
;
_return: OMC_LABEL_UNUSED
return;
}
PROTECTED_FUNCTION_STATIC void omc_DAEDump_dumpCommentOption(threadData_t *threadData, modelica_metatype _comment)
{
modelica_string _str = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_str = omc_DAEDump_dumpCommentAnnotationStr(threadData, _comment);
omc_Print_printBuf(threadData, _str);
_return: OMC_LABEL_UNUSED
return;
}
DLLExport
modelica_string omc_DAEDump_dumpCommentAnnotationStr(threadData_t *threadData, modelica_metatype _inComment)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _inComment;
{
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!optionNone(tmp4_1)) goto tmp3_end;
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
tmpMeta6 = stringAppend(omc_DAEDump_dumpCommentStr(threadData, _inComment),omc_DAEDump_dumpCompAnnotationStr(threadData, _inComment));
tmp1 = tmpMeta6;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
DLLExport
modelica_boolean omc_DAEDump_filterStructuralMod(threadData_t *threadData, modelica_metatype _mod)
{
modelica_boolean _keep;
modelica_boolean tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_mod), 2)));
{
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 9; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (8 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT232), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp1 = 1;
goto tmp3_done;
}
case 1: {
if (6 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT233), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp1 = 1;
goto tmp3_done;
}
case 2: {
if (10 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT234), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp1 = 1;
goto tmp3_done;
}
case 3: {
if (10 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT235), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp1 = 1;
goto tmp3_done;
}
case 4: {
if (7 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT236), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp1 = 1;
goto tmp3_done;
}
case 5: {
if (11 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT237), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp1 = 1;
goto tmp3_done;
}
case 6: {
if (25 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT238), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp1 = 1;
goto tmp3_done;
}
case 7: {
if (14 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT239), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp1 = 1;
goto tmp3_done;
}
case 8: {
tmp1 = 0;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_keep = tmp1;
_return: OMC_LABEL_UNUSED
return _keep;
}
modelica_metatype boxptr_DAEDump_filterStructuralMod(threadData_t *threadData, modelica_metatype _mod)
{
modelica_boolean _keep;
modelica_metatype out_keep;
_keep = omc_DAEDump_filterStructuralMod(threadData, _mod);
out_keep = mmc_mk_icon(_keep);
return out_keep;
}
DLLExport
modelica_metatype omc_DAEDump_filterStructuralMods(threadData_t *threadData, modelica_metatype __omcQ_24in_5Fmod)
{
modelica_metatype _mod = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_mod = __omcQ_24in_5Fmod;
_mod = omc_SCodeUtil_filterSubMods(threadData, _mod, boxvar_DAEDump_filterStructuralMod);
_return: OMC_LABEL_UNUSED
return _mod;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_dumpAnnotationStr(threadData_t *threadData, modelica_metatype _inComment, modelica_string _inPrefix, modelica_string _inSuffix)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;
tmp4_1 = _inComment;
{
modelica_string _ann = NULL;
modelica_metatype _ann_mod = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
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 (optionNone(tmp4_1)) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 2));
if (optionNone(tmpMeta7)) goto tmp3_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta7), 1));
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta8), 2));
_ann_mod = tmpMeta9;
if(omc_Config_showAnnotations(threadData))
{
tmpMeta10 = stringAppend(_inPrefix,_OMC_LIT240);
tmpMeta11 = stringAppend(tmpMeta10,omc_SCodeDump_printModStr(threadData, _ann_mod, _OMC_LIT114));
tmpMeta12 = stringAppend(tmpMeta11,_inSuffix);
_ann = tmpMeta12;
}
else
{
if(omc_Config_showStructuralAnnotations(threadData))
{
_ann_mod = omc_DAEDump_filterStructuralMods(threadData, _ann_mod);
if((!omc_SCodeUtil_isEmptyMod(threadData, _ann_mod)))
{
tmpMeta13 = stringAppend(_inPrefix,_OMC_LIT240);
tmpMeta14 = stringAppend(tmpMeta13,omc_SCodeDump_printModStr(threadData, _ann_mod, _OMC_LIT114));
tmpMeta15 = stringAppend(tmpMeta14,_inSuffix);
_ann = tmpMeta15;
}
else
{
_ann = _OMC_LIT34;
}
}
else
{
_ann = _OMC_LIT34;
}
}
tmp1 = _ann;
goto tmp3_done;
}
case 1: {
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
tmp3_done:
(void)tmp4;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp3_done2;
goto_2:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp4 < 2) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_dumpCompAnnotationStr(threadData_t *threadData, modelica_metatype _inComment)
{
modelica_string _outString = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_outString = omc_DAEDump_dumpAnnotationStr(threadData, _inComment, _OMC_LIT35, _OMC_LIT34);
_return: OMC_LABEL_UNUSED
return _outString;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_dumpClassAnnotationStr(threadData_t *threadData, modelica_metatype _inComment)
{
modelica_string _outString = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_outString = omc_DAEDump_dumpAnnotationStr(threadData, _inComment, _OMC_LIT2, _OMC_LIT1);
_return: OMC_LABEL_UNUSED
return _outString;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_dumpCommentStr(threadData_t *threadData, modelica_metatype _inComment)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _inComment;
{
modelica_string _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;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
if (optionNone(tmp4_1)) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 3));
if (optionNone(tmpMeta7)) goto tmp3_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta7), 1));
_cmt = tmpMeta8;
_cmt = omc_System_escapedString(threadData, _cmt, 0);
tmpMeta9 = mmc_mk_cons(_OMC_LIT109, mmc_mk_cons(_cmt, mmc_mk_cons(_OMC_LIT110, MMC_REFSTRUCTLIT(mmc_nil))));
tmp1 = stringAppendList(tmpMeta9);
goto tmp3_done;
}
case 1: {
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
DLLExport
modelica_string omc_DAEDump_dumpVarParallelismStr(threadData_t *threadData, modelica_metatype _inVarParallelism)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _inVarParallelism;
{
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))) {
case 5: {
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
case 3: {
tmp1 = _OMC_LIT241;
goto tmp3_done;
}
case 4: {
tmp1 = _OMC_LIT242;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_dumpVarVisibilityStr(threadData_t *threadData, modelica_metatype _prot)
{
modelica_string _str = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _prot;
{
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_1,0,0) == 0) goto tmp3_end;
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
case 1: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,0) == 0) goto tmp3_end;
tmp1 = _OMC_LIT213;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_str = tmp1;
_return: OMC_LABEL_UNUSED
return _str;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_getStartOrigin(threadData_t *threadData, modelica_metatype _inStartOrigin)
{
modelica_string _outStartOrigin = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _inStartOrigin;
{
modelica_string _str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!optionNone(tmp4_1)) goto tmp3_end;
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
case 1: {
if(omc_Flags_isSet(threadData, _OMC_LIT247))
{
_str = omc_Dump_getOptionWithConcatStr(threadData, _inStartOrigin, boxvar_ExpressionDump_printExpStr, _OMC_LIT243);
}
else
{
_str = _OMC_LIT34;
}
tmp1 = _str;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outStartOrigin = tmp1;
_return: OMC_LABEL_UNUSED
return _outStartOrigin;
}
DLLExport
modelica_string omc_DAEDump_dumpVariableAttributesStr(threadData_t *threadData, modelica_metatype _inVariableAttributesOption)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;
tmp4_1 = _inVariableAttributesOption;
{
modelica_string _quantity = NULL;
modelica_string _unit_str = NULL;
modelica_string _displayUnit_str = NULL;
modelica_string _stateSel_str = NULL;
modelica_string _min_str = NULL;
modelica_string _max_str = NULL;
modelica_string _nominal_str = NULL;
modelica_string _initial_str = NULL;
modelica_string _fixed_str = NULL;
modelica_string _uncertainty_str = NULL;
modelica_string _dist_str = NULL;
modelica_string _res_1 = NULL;
modelica_string _startOriginStr = NULL;
modelica_metatype _quant = NULL;
modelica_metatype _unit = NULL;
modelica_metatype _displayUnit = NULL;
modelica_metatype _min = NULL;
modelica_metatype _max = NULL;
modelica_metatype _initialExp = NULL;
modelica_metatype _nominal = NULL;
modelica_metatype _fixed = NULL;
modelica_metatype _startOrigin = NULL;
modelica_metatype _stateSel = NULL;
modelica_metatype _uncertainty = NULL;
modelica_metatype _dist = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp4 < 7; 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;
modelica_metatype tmpMeta16;
modelica_metatype tmpMeta17;
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
modelica_metatype tmpMeta20;
modelica_boolean tmp21;
modelica_string tmp22;
if (optionNone(tmp4_1)) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,0,15) == 0) goto tmp3_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 2));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 3));
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 4));
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 5));
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 6));
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 7));
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 8));
tmpMeta14 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 9));
tmpMeta15 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 10));
tmpMeta16 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 11));
tmpMeta17 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 12));
tmpMeta18 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 16));
_quant = tmpMeta7;
_unit = tmpMeta8;
_displayUnit = tmpMeta9;
_min = tmpMeta10;
_max = tmpMeta11;
_initialExp = tmpMeta12;
_fixed = tmpMeta13;
_nominal = tmpMeta14;
_stateSel = tmpMeta15;
_uncertainty = tmpMeta16;
_dist = tmpMeta17;
_startOrigin = tmpMeta18;
tmp4 += 5;
_quantity = omc_Dump_getOptionWithConcatStr(threadData, _quant, boxvar_ExpressionDump_printExpStr, _OMC_LIT248);
_unit_str = omc_Dump_getOptionWithConcatStr(threadData, _unit, boxvar_ExpressionDump_printExpStr, _OMC_LIT249);
_displayUnit_str = omc_Dump_getOptionWithConcatStr(threadData, _displayUnit, boxvar_ExpressionDump_printExpStr, _OMC_LIT250);
_stateSel_str = omc_Dump_getOptionWithConcatStr(threadData, _stateSel, boxvar_DAEDump_dumpStateSelectStr, _OMC_LIT251);
_min_str = omc_Dump_getOptionWithConcatStr(threadData, _min, boxvar_ExpressionDump_printExpStr, _OMC_LIT252);
_max_str = omc_Dump_getOptionWithConcatStr(threadData, _max, boxvar_ExpressionDump_printExpStr, _OMC_LIT253);
_nominal_str = omc_Dump_getOptionWithConcatStr(threadData, _nominal, boxvar_ExpressionDump_printExpStr, _OMC_LIT254);
_initial_str = omc_Dump_getOptionWithConcatStr(threadData, _initialExp, boxvar_ExpressionDump_printExpStr, _OMC_LIT255);
_fixed_str = omc_Dump_getOptionWithConcatStr(threadData, _fixed, boxvar_ExpressionDump_printExpStr, _OMC_LIT256);
_uncertainty_str = omc_Dump_getOptionWithConcatStr(threadData, _uncertainty, boxvar_DAEDump_dumpUncertaintyStr, _OMC_LIT257);
_dist_str = omc_Dump_getOptionWithConcatStr(threadData, _dist, boxvar_DAEDump_dumpDistributionStr, _OMC_LIT258);
_startOriginStr = omc_DAEDump_getStartOrigin(threadData, _startOrigin);
tmpMeta19 = mmc_mk_cons(_quantity, mmc_mk_cons(_unit_str, mmc_mk_cons(_displayUnit_str, mmc_mk_cons(_min_str, mmc_mk_cons(_max_str, mmc_mk_cons(_initial_str, mmc_mk_cons(_fixed_str, mmc_mk_cons(_nominal_str, mmc_mk_cons(_stateSel_str, mmc_mk_cons(_uncertainty_str, mmc_mk_cons(_dist_str, mmc_mk_cons(_startOriginStr, MMC_REFSTRUCTLIT(mmc_nil)))))))))))));
_res_1 = omc_Util_stringDelimitListNonEmptyElts(threadData, tmpMeta19, _OMC_LIT43);
tmp21 = (modelica_boolean)(stringLength(_res_1) == ((modelica_integer) 0));
if(tmp21)
{
tmp22 = _OMC_LIT34;
}
else
{
tmpMeta20 = mmc_mk_cons(_OMC_LIT87, mmc_mk_cons(_res_1, mmc_mk_cons(_OMC_LIT30, MMC_REFSTRUCTLIT(mmc_nil))));
tmp22 = stringAppendList(tmpMeta20);
}
tmp1 = tmp22;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta23;
modelica_metatype tmpMeta24;
modelica_metatype tmpMeta25;
modelica_metatype tmpMeta26;
modelica_metatype tmpMeta27;
modelica_metatype tmpMeta28;
modelica_metatype tmpMeta29;
modelica_metatype tmpMeta30;
modelica_metatype tmpMeta31;
modelica_metatype tmpMeta32;
modelica_metatype tmpMeta33;
modelica_boolean tmp34;
modelica_string tmp35;
if (optionNone(tmp4_1)) goto tmp3_end;
tmpMeta23 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta23,1,11) == 0) goto tmp3_end;
tmpMeta24 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta23), 2));
tmpMeta25 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta23), 3));
tmpMeta26 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta23), 4));
tmpMeta27 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta23), 5));
tmpMeta28 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta23), 6));
tmpMeta29 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta23), 7));
tmpMeta30 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta23), 8));
tmpMeta31 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta23), 12));
_quant = tmpMeta24;
_min = tmpMeta25;
_max = tmpMeta26;
_initialExp = tmpMeta27;
_fixed = tmpMeta28;
_uncertainty = tmpMeta29;
_dist = tmpMeta30;
_startOrigin = tmpMeta31;
tmp4 += 4;
_quantity = omc_Dump_getOptionWithConcatStr(threadData, _quant, boxvar_ExpressionDump_printExpStr, _OMC_LIT248);
_min_str = omc_Dump_getOptionWithConcatStr(threadData, _min, boxvar_ExpressionDump_printExpStr, _OMC_LIT252);
_max_str = omc_Dump_getOptionWithConcatStr(threadData, _max, boxvar_ExpressionDump_printExpStr, _OMC_LIT253);
_initial_str = omc_Dump_getOptionWithConcatStr(threadData, _initialExp, boxvar_ExpressionDump_printExpStr, _OMC_LIT255);
_fixed_str = omc_Dump_getOptionWithConcatStr(threadData, _fixed, boxvar_ExpressionDump_printExpStr, _OMC_LIT256);
_uncertainty_str = omc_Dump_getOptionWithConcatStr(threadData, _uncertainty, boxvar_DAEDump_dumpUncertaintyStr, _OMC_LIT257);
_dist_str = omc_Dump_getOptionWithConcatStr(threadData, _dist, boxvar_DAEDump_dumpDistributionStr, _OMC_LIT258);
_startOriginStr = omc_DAEDump_getStartOrigin(threadData, _startOrigin);
tmpMeta32 = mmc_mk_cons(_quantity, mmc_mk_cons(_min_str, mmc_mk_cons(_max_str, mmc_mk_cons(_initial_str, mmc_mk_cons(_fixed_str, mmc_mk_cons(_uncertainty_str, mmc_mk_cons(_dist_str, mmc_mk_cons(_startOriginStr, MMC_REFSTRUCTLIT(mmc_nil)))))))));
_res_1 = omc_Util_stringDelimitListNonEmptyElts(threadData, tmpMeta32, _OMC_LIT43);
tmp34 = (modelica_boolean)(stringLength(_res_1) == ((modelica_integer) 0));
if(tmp34)
{
tmp35 = _OMC_LIT34;
}
else
{
tmpMeta33 = mmc_mk_cons(_OMC_LIT87, mmc_mk_cons(_res_1, mmc_mk_cons(_OMC_LIT30, MMC_REFSTRUCTLIT(mmc_nil))));
tmp35 = stringAppendList(tmpMeta33);
}
tmp1 = tmp35;
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta36;
modelica_metatype tmpMeta37;
modelica_metatype tmpMeta38;
modelica_metatype tmpMeta39;
modelica_metatype tmpMeta40;
modelica_metatype tmpMeta41;
modelica_metatype tmpMeta42;
modelica_boolean tmp43;
modelica_string tmp44;
if (optionNone(tmp4_1)) goto tmp3_end;
tmpMeta36 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta36,2,7) == 0) goto tmp3_end;
tmpMeta37 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta36), 2));
tmpMeta38 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta36), 3));
tmpMeta39 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta36), 4));
tmpMeta40 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta36), 8));
_quant = tmpMeta37;
_initialExp = tmpMeta38;
_fixed = tmpMeta39;
_startOrigin = tmpMeta40;
tmp4 += 3;
_quantity = omc_Dump_getOptionWithConcatStr(threadData, _quant, boxvar_ExpressionDump_printExpStr, _OMC_LIT248);
_initial_str = omc_Dump_getOptionWithConcatStr(threadData, _initialExp, boxvar_ExpressionDump_printExpStr, _OMC_LIT255);
_fixed_str = omc_Dump_getOptionWithConcatStr(threadData, _fixed, boxvar_ExpressionDump_printExpStr, _OMC_LIT256);
_startOriginStr = omc_DAEDump_getStartOrigin(threadData, _startOrigin);
tmpMeta41 = mmc_mk_cons(_quantity, mmc_mk_cons(_initial_str, mmc_mk_cons(_fixed_str, mmc_mk_cons(_startOriginStr, MMC_REFSTRUCTLIT(mmc_nil)))));
_res_1 = omc_Util_stringDelimitListNonEmptyElts(threadData, tmpMeta41, _OMC_LIT43);
tmp43 = (modelica_boolean)(stringLength(_res_1) == ((modelica_integer) 0));
if(tmp43)
{
tmp44 = _OMC_LIT34;
}
else
{
tmpMeta42 = mmc_mk_cons(_OMC_LIT87, mmc_mk_cons(_res_1, mmc_mk_cons(_OMC_LIT30, MMC_REFSTRUCTLIT(mmc_nil))));
tmp44 = stringAppendList(tmpMeta42);
}
tmp1 = tmp44;
goto tmp3_done;
}
case 3: {
modelica_metatype tmpMeta45;
modelica_metatype tmpMeta46;
modelica_metatype tmpMeta47;
modelica_metatype tmpMeta48;
modelica_metatype tmpMeta49;
modelica_metatype tmpMeta50;
modelica_metatype tmpMeta51;
modelica_boolean tmp52;
modelica_string tmp53;
if (optionNone(tmp4_1)) goto tmp3_end;
tmpMeta45 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta45,4,7) == 0) goto tmp3_end;
tmpMeta46 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta45), 2));
tmpMeta47 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta45), 3));
tmpMeta48 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta45), 4));
tmpMeta49 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta45), 8));
_quant = tmpMeta46;
_initialExp = tmpMeta47;
_fixed = tmpMeta48;
_startOrigin = tmpMeta49;
tmp4 += 2;
_quantity = omc_Dump_getOptionWithConcatStr(threadData, _quant, boxvar_ExpressionDump_printExpStr, _OMC_LIT248);
_initial_str = omc_Dump_getOptionWithConcatStr(threadData, _initialExp, boxvar_ExpressionDump_printExpStr, _OMC_LIT255);
_fixed_str = omc_Dump_getOptionWithConcatStr(threadData, _fixed, boxvar_ExpressionDump_printExpStr, _OMC_LIT256);
_startOriginStr = omc_DAEDump_getStartOrigin(threadData, _startOrigin);
tmpMeta50 = mmc_mk_cons(_quantity, mmc_mk_cons(_initial_str, mmc_mk_cons(_fixed_str, mmc_mk_cons(_startOriginStr, MMC_REFSTRUCTLIT(mmc_nil)))));
_res_1 = omc_Util_stringDelimitListNonEmptyElts(threadData, tmpMeta50, _OMC_LIT43);
tmp52 = (modelica_boolean)(stringLength(_res_1) == ((modelica_integer) 0));
if(tmp52)
{
tmp53 = _OMC_LIT34;
}
else
{
tmpMeta51 = mmc_mk_cons(_OMC_LIT87, mmc_mk_cons(_res_1, mmc_mk_cons(_OMC_LIT30, MMC_REFSTRUCTLIT(mmc_nil))));
tmp53 = stringAppendList(tmpMeta51);
}
tmp1 = tmp53;
goto tmp3_done;
}
case 4: {
modelica_metatype tmpMeta54;
modelica_metatype tmpMeta55;
modelica_metatype tmpMeta56;
modelica_metatype tmpMeta57;
modelica_metatype tmpMeta58;
modelica_metatype tmpMeta59;
modelica_metatype tmpMeta60;
modelica_metatype tmpMeta61;
modelica_metatype tmpMeta62;
modelica_boolean tmp63;
modelica_string tmp64;
if (optionNone(tmp4_1)) goto tmp3_end;
tmpMeta54 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta54,5,9) == 0) goto tmp3_end;
tmpMeta55 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta54), 2));
tmpMeta56 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta54), 3));
tmpMeta57 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta54), 4));
tmpMeta58 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta54), 5));
tmpMeta59 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta54), 6));
tmpMeta60 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta54), 10));
_quant = tmpMeta55;
_min = tmpMeta56;
_max = tmpMeta57;
_initialExp = tmpMeta58;
_fixed = tmpMeta59;
_startOrigin = tmpMeta60;
tmp4 += 1;
_quantity = omc_Dump_getOptionWithConcatStr(threadData, _quant, boxvar_ExpressionDump_printExpStr, _OMC_LIT248);
_min_str = omc_Dump_getOptionWithConcatStr(threadData, _min, boxvar_ExpressionDump_printExpStr, _OMC_LIT252);
_max_str = omc_Dump_getOptionWithConcatStr(threadData, _max, boxvar_ExpressionDump_printExpStr, _OMC_LIT253);
_initial_str = omc_Dump_getOptionWithConcatStr(threadData, _initialExp, boxvar_ExpressionDump_printExpStr, _OMC_LIT255);
_fixed_str = omc_Dump_getOptionWithConcatStr(threadData, _fixed, boxvar_ExpressionDump_printExpStr, _OMC_LIT256);
_startOriginStr = omc_DAEDump_getStartOrigin(threadData, _startOrigin);
tmpMeta61 = mmc_mk_cons(_quantity, mmc_mk_cons(_min_str, mmc_mk_cons(_max_str, mmc_mk_cons(_initial_str, mmc_mk_cons(_fixed_str, mmc_mk_cons(_startOriginStr, MMC_REFSTRUCTLIT(mmc_nil)))))));
_res_1 = omc_Util_stringDelimitListNonEmptyElts(threadData, tmpMeta61, _OMC_LIT43);
tmp63 = (modelica_boolean)(stringLength(_res_1) == ((modelica_integer) 0));
if(tmp63)
{
tmp64 = _OMC_LIT34;
}
else
{
tmpMeta62 = mmc_mk_cons(_OMC_LIT87, mmc_mk_cons(_res_1, mmc_mk_cons(_OMC_LIT30, MMC_REFSTRUCTLIT(mmc_nil))));
tmp64 = stringAppendList(tmpMeta62);
}
tmp1 = tmp64;
goto tmp3_done;
}
case 5: {
if (!optionNone(tmp4_1)) goto tmp3_end;
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
case 6: {
tmp1 = _OMC_LIT259;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
tmp3_done:
(void)tmp4;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp3_done2;
goto_2:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp4 < 7) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
DLLExport
void omc_DAEDump_dumpVariableAttributes(threadData_t *threadData, modelica_metatype _attr)
{
modelica_string _res = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_res = omc_DAEDump_dumpVariableAttributesStr(threadData, _attr);
omc_Print_printBuf(threadData, _res);
_return: OMC_LABEL_UNUSED
return;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_dumpDistributionStr(threadData_t *threadData, modelica_metatype _distribution)
{
modelica_string _out = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _distribution;
{
modelica_metatype _name = NULL;
modelica_metatype _params = NULL;
modelica_metatype _paramNames = NULL;
modelica_string _name_str = NULL;
modelica_string _params_str = NULL;
modelica_string _paramNames_str = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; 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;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
_name = tmpMeta6;
_params = tmpMeta7;
_paramNames = tmpMeta8;
_name_str = omc_ExpressionDump_printExpStr(threadData, _name);
_params_str = omc_ExpressionDump_printExpStr(threadData, _params);
_paramNames_str = omc_ExpressionDump_printExpStr(threadData, _paramNames);
tmpMeta9 = stringAppend(_OMC_LIT260,_name_str);
tmpMeta10 = stringAppend(tmpMeta9,_OMC_LIT261);
tmpMeta11 = stringAppend(tmpMeta10,_params_str);
tmpMeta12 = stringAppend(tmpMeta11,_OMC_LIT262);
tmpMeta13 = stringAppend(tmpMeta12,_paramNames_str);
tmpMeta14 = stringAppend(tmpMeta13,_OMC_LIT30);
tmp1 = tmpMeta14;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out = tmp1;
_return: OMC_LABEL_UNUSED
return _out;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_dumpUncertaintyStr(threadData_t *threadData, modelica_metatype _uncertainty)
{
modelica_string _out = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _uncertainty;
{
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))) {
case 3: {
tmp1 = _OMC_LIT263;
goto tmp3_done;
}
case 4: {
tmp1 = _OMC_LIT264;
goto tmp3_done;
}
case 5: {
tmp1 = _OMC_LIT265;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_out = tmp1;
_return: OMC_LABEL_UNUSED
return _out;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_DAEDump_dumpStateSelectStr(threadData_t *threadData, modelica_metatype _inStateSelect)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _inStateSelect;
{
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))) {
case 3: {
tmp1 = _OMC_LIT266;
goto tmp3_done;
}
case 4: {
tmp1 = _OMC_LIT267;
goto tmp3_done;
}
case 6: {
tmp1 = _OMC_LIT268;
goto tmp3_done;
}
case 7: {
tmp1 = _OMC_LIT269;
goto tmp3_done;
}
case 5: {
tmp1 = _OMC_LIT270;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
DLLExport
modelica_string omc_DAEDump_dumpDirectionStr(threadData_t *threadData, modelica_metatype _inVarDirection)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _inVarDirection;
{
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))) {
case 3: {
tmp1 = _OMC_LIT215;
goto tmp3_done;
}
case 4: {
tmp1 = _OMC_LIT271;
goto tmp3_done;
}
case 5: {
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
PROTECTED_FUNCTION_STATIC void omc_DAEDump_dumpParallelism(threadData_t *threadData, modelica_metatype _inVarParallelism)
{
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp3_1;
tmp3_1 = _inVarParallelism;
{
int tmp3;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))) {
case 5: {
omc_Print_printBuf(threadData, _OMC_LIT272);
goto tmp2_done;
}
case 3: {
omc_Print_printBuf(threadData, _OMC_LIT273);
goto tmp2_done;
}
case 4: {
omc_Print_printBuf(threadData, _OMC_LIT274);
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
goto_1:;
MMC_THROW_INTERNAL();
goto tmp2_done;
tmp2_done:;
}
}
;
_return: OMC_LABEL_UNUSED
return;
}
PROTECTED_FUNCTION_STATIC void omc_DAEDump_dumpDirection(threadData_t *threadData, modelica_metatype _inVarDirection)
{
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp3_1;
tmp3_1 = _inVarDirection;
{
int tmp3;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))) {
case 3: {
omc_Print_printBuf(threadData, _OMC_LIT275);
goto tmp2_done;
}
case 4: {
omc_Print_printBuf(threadData, _OMC_LIT276);
goto tmp2_done;
}
case 5: {
omc_Print_printBuf(threadData, _OMC_LIT272);
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
goto_1:;
MMC_THROW_INTERNAL();
goto tmp2_done;
tmp2_done:;
}
}
;
_return: OMC_LABEL_UNUSED
return;
}
DLLExport
modelica_string omc_DAEDump_dumpKindStr(threadData_t *threadData, modelica_metatype _inVarKind)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _inVarKind;
{
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))) {
case 6: {
tmp1 = _OMC_LIT214;
goto tmp3_done;
}
case 5: {
tmp1 = _OMC_LIT277;
goto tmp3_done;
}
case 4: {
tmp1 = _OMC_LIT278;
goto tmp3_done;
}
case 3: {
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
PROTECTED_FUNCTION_STATIC void omc_DAEDump_dumpKind(threadData_t *threadData, modelica_metatype _inVarKind)
{
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp3_1;
tmp3_1 = _inVarKind;
{
int tmp3;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))) {
case 6: {
omc_Print_printBuf(threadData, _OMC_LIT279);
goto tmp2_done;
}
case 5: {
omc_Print_printBuf(threadData, _OMC_LIT280);
goto tmp2_done;
}
case 4: {
omc_Print_printBuf(threadData, _OMC_LIT281);
goto tmp2_done;
}
case 3: {
omc_Print_printBuf(threadData, _OMC_LIT282);
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
goto_1:;
MMC_THROW_INTERNAL();
goto tmp2_done;
tmp2_done:;
}
}
;
_return: OMC_LABEL_UNUSED
return;
}
PROTECTED_FUNCTION_STATIC void omc_DAEDump_dumpVars(threadData_t *threadData, modelica_metatype _lst, modelica_boolean _printTypeDimension)
{
modelica_string _str = NULL;
modelica_metatype _myStream = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_myStream = omc_IOStream_create(threadData, _OMC_LIT34, _OMC_LIT88);
_myStream = omc_DAEDump_dumpVarsStream(threadData, _lst, _printTypeDimension, _myStream);
_str = omc_IOStream_string(threadData, _myStream);
omc_Print_printBuf(threadData, _str);
_return: OMC_LABEL_UNUSED
return;
}
PROTECTED_FUNCTION_STATIC void boxptr_DAEDump_dumpVars(threadData_t *threadData, modelica_metatype _lst, modelica_metatype _printTypeDimension)
{
modelica_integer tmp1;
tmp1 = mmc_unbox_integer(_printTypeDimension);
omc_DAEDump_dumpVars(threadData, _lst, tmp1);
return;
}
DLLExport
void omc_DAEDump_dumpFunctionElements(threadData_t *threadData, modelica_metatype _l)
{
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
omc_DAEDump_dumpVars(threadData, _l, 1);
omc_List_map__0(threadData, _l, boxvar_DAEDump_dumpAlgorithm);
_return: OMC_LABEL_UNUSED
return;
}
DLLExport
void omc_DAEDump_dumpElements(threadData_t *threadData, modelica_metatype _l)
{
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
omc_DAEDump_dumpVars(threadData, _l, 0);
omc_List_map__0(threadData, _l, boxvar_DAEDump_dumpExtObjectClass);
omc_Print_printBuf(threadData, _OMC_LIT111);
omc_List_map__0(threadData, _l, boxvar_DAEDump_dumpInitialEquation);
omc_Print_printBuf(threadData, _OMC_LIT112);
omc_List_map__0(threadData, _l, boxvar_DAEDump_dumpEquation);
omc_List_map__0(threadData, _l, boxvar_DAEDump_dumpInitialAlgorithm);
omc_List_map__0(threadData, _l, boxvar_DAEDump_dumpAlgorithm);
omc_List_map__0(threadData, _l, boxvar_DAEDump_dumpCompElement);
_return: OMC_LABEL_UNUSED
return;
}
PROTECTED_FUNCTION_STATIC void omc_DAEDump_dumpCompElement(threadData_t *threadData, modelica_metatype _inElement)
{
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp3_1;
tmp3_1 = _inElement;
{
modelica_string _n = NULL;
modelica_metatype _l = NULL;
modelica_metatype _c = NULL;
volatile mmc_switch_type tmp3;
int tmp4;
tmp3 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp2_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp3 < 2; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,18,4) == 0) goto tmp2_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5));
_n = tmpMeta5;
_l = tmpMeta6;
_c = tmpMeta7;
omc_Print_printBuf(threadData, _OMC_LIT115);
omc_Print_printBuf(threadData, _n);
omc_DAEDump_dumpCommentOption(threadData, _c);
omc_Print_printBuf(threadData, _OMC_LIT15);
omc_DAEDump_dumpElements(threadData, _l);
omc_Print_printBuf(threadData, _OMC_LIT57);
omc_Print_printBuf(threadData, _n);
omc_Print_printBuf(threadData, _OMC_LIT1);
goto tmp2_done;
}
case 1: {
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
tmp2_done:
(void)tmp3;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp2_done2;
goto_1:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp3 < 2) {
goto tmp2_top;
}
MMC_THROW_INTERNAL();
tmp2_done2:;
}
}
;
_return: OMC_LABEL_UNUSED
return;
}
DLLExport
modelica_string omc_DAEDump_dumpExtArgStr(threadData_t *threadData, modelica_metatype _inExtArg)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _inExtArg;
{
modelica_string _crstr = NULL;
modelica_string _dimstr = NULL;
modelica_metatype _cr = NULL;
modelica_metatype _exp = NULL;
modelica_metatype _dim = NULL;
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))) {
case 6: {
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
case 3: {
modelica_metatype tmpMeta5;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,3) == 0) goto tmp3_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
_cr = tmpMeta5;
tmp1 = omc_ComponentReference_printComponentRefStr(threadData, _cr);
goto tmp3_done;
}
case 4: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
_exp = tmpMeta6;
tmp1 = omc_ExpressionDump_printExpStr(threadData, _exp);
goto tmp3_done;
}
case 5: {
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,3) == 0) goto tmp3_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
_cr = tmpMeta7;
_dim = tmpMeta8;
_crstr = omc_ComponentReference_printComponentRefStr(threadData, _cr);
_dimstr = omc_ExpressionDump_printExpStr(threadData, _dim);
tmpMeta9 = mmc_mk_cons(_OMC_LIT283, mmc_mk_cons(_crstr, mmc_mk_cons(_OMC_LIT43, mmc_mk_cons(_dimstr, mmc_mk_cons(_OMC_LIT30, MMC_REFSTRUCTLIT(mmc_nil))))));
tmp1 = stringAppendList(tmpMeta9);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
DLLExport
modelica_string omc_DAEDump_dumpExtDeclStr(threadData_t *threadData, modelica_metatype _inExternalDecl)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _inExternalDecl;
{
modelica_string _extargsstr = NULL;
modelica_string _rettystr = NULL;
modelica_string _id = NULL;
modelica_string _lang = NULL;
modelica_metatype _extargs = NULL;
modelica_metatype _retty = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 1; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
modelica_boolean tmp11;
modelica_string tmp12;
modelica_metatype tmpMeta13;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5));
_id = tmpMeta6;
_extargs = tmpMeta7;
_retty = tmpMeta8;
_lang = tmpMeta9;
_extargsstr = omc_Dump_getStringList(threadData, _extargs, boxvar_DAEDump_dumpExtArgStr, _OMC_LIT43);
_rettystr = omc_DAEDump_dumpExtArgStr(threadData, _retty);
tmp11 = (modelica_boolean)(stringEqual(_rettystr, _OMC_LIT34));
if(tmp11)
{
tmp12 = _rettystr;
}
else
{
tmpMeta10 = stringAppend(_rettystr,_OMC_LIT3);
tmp12 = tmpMeta10;
}
_rettystr = tmp12;
tmpMeta13 = mmc_mk_cons(_OMC_LIT284, mmc_mk_cons(_lang, mmc_mk_cons(_OMC_LIT285, mmc_mk_cons(_rettystr, mmc_mk_cons(_id, mmc_mk_cons(_OMC_LIT87, mmc_mk_cons(_extargsstr, mmc_mk_cons(_OMC_LIT286, MMC_REFSTRUCTLIT(mmc_nil)))))))));
tmp1 = stringAppendList(tmpMeta13);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
DLLExport
modelica_string omc_DAEDump_dumpStartValueStr(threadData_t *threadData, modelica_metatype _inStartValue)
{
modelica_string _outString = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;
tmp4_1 = _inStartValue;
{
modelica_string _s = NULL;
modelica_metatype _e = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (optionNone(tmp4_1)) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1));
_e = tmpMeta6;
_s = omc_ExpressionDump_printExpStr(threadData, _e);
tmpMeta7 = mmc_mk_cons(_OMC_LIT287, mmc_mk_cons(_s, mmc_mk_cons(_OMC_LIT30, MMC_REFSTRUCTLIT(mmc_nil))));
tmp1 = stringAppendList(tmpMeta7);
goto tmp3_done;
}
case 1: {
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
tmp3_done:
(void)tmp4;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp3_done2;
goto_2:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp4 < 2) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_outString = tmp1;
_return: OMC_LABEL_UNUSED
return _outString;
}
PROTECTED_FUNCTION_STATIC void omc_DAEDump_dumpStartValue(threadData_t *threadData, modelica_metatype _inStartValue)
{
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp3_1;
tmp3_1 = _inStartValue;
{
modelica_metatype _e = NULL;
volatile mmc_switch_type tmp3;
int tmp4;
tmp3 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp2_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp3 < 2; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
modelica_metatype tmpMeta5;
if (optionNone(tmp3_1)) goto tmp2_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 1));
_e = tmpMeta5;
omc_Print_printBuf(threadData, _OMC_LIT287);
omc_ExpressionDump_printExp(threadData, _e);
omc_Print_printBuf(threadData, _OMC_LIT30);
goto tmp2_done;
}
case 1: {
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
tmp2_done:
(void)tmp3;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp2_done2;
goto_1:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp3 < 2) {
goto tmp2_top;
}
MMC_THROW_INTERNAL();
tmp2_done2:;
}
}
;
_return: OMC_LABEL_UNUSED
return;
}
DLLExport
modelica_string omc_DAEDump_dumpOperatorSymbol(threadData_t *threadData, modelica_metatype _op)
{
modelica_string _str = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _op;
{
modelica_metatype _p = NULL;
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))) {
case 3: {
tmp1 = _OMC_LIT288;
goto tmp3_done;
}
case 4: {
tmp1 = _OMC_LIT289;
goto tmp3_done;
}
case 5: {
tmp1 = _OMC_LIT290;
goto tmp3_done;
}
case 6: {
tmp1 = _OMC_LIT291;
goto tmp3_done;
}
case 7: {
tmp1 = _OMC_LIT292;
goto tmp3_done;
}
case 8: {
tmp1 = _OMC_LIT289;
goto tmp3_done;
}
case 9: {
tmp1 = _OMC_LIT289;
goto tmp3_done;
}
case 10: {
tmp1 = _OMC_LIT288;
goto tmp3_done;
}
case 11: {
tmp1 = _OMC_LIT289;
goto tmp3_done;
}
case 12: {
tmp1 = _OMC_LIT290;
goto tmp3_done;
}
case 13: {
tmp1 = _OMC_LIT293;
goto tmp3_done;
}
case 14: {
tmp1 = _OMC_LIT294;
goto tmp3_done;
}
case 15: {
tmp1 = _OMC_LIT295;
goto tmp3_done;
}
case 16: {
tmp1 = _OMC_LIT296;
goto tmp3_done;
}
case 17: {
tmp1 = _OMC_LIT294;
goto tmp3_done;
}
case 18: {
tmp1 = _OMC_LIT294;
goto tmp3_done;
}
case 19: {
tmp1 = _OMC_LIT291;
goto tmp3_done;
}
case 20: {
tmp1 = _OMC_LIT293;
goto tmp3_done;
}
case 21: {
tmp1 = _OMC_LIT297;
goto tmp3_done;
}
case 22: {
tmp1 = _OMC_LIT297;
goto tmp3_done;
}
case 23: {
tmp1 = _OMC_LIT292;
goto tmp3_done;
}
case 24: {
tmp1 = _OMC_LIT297;
goto tmp3_done;
}
case 26: {
tmp1 = _OMC_LIT298;
goto tmp3_done;
}
case 25: {
tmp1 = _OMC_LIT299;
goto tmp3_done;
}
case 27: {
tmp1 = _OMC_LIT300;
goto tmp3_done;
}
case 29: {
tmp1 = _OMC_LIT301;
goto tmp3_done;
}
case 30: {
tmp1 = _OMC_LIT302;
goto tmp3_done;
}
case 31: {
tmp1 = _OMC_LIT303;
goto tmp3_done;
}
case 28: {
tmp1 = _OMC_LIT304;
goto tmp3_done;
}
case 32: {
tmp1 = _OMC_LIT305;
goto tmp3_done;
}
case 33: {
tmp1 = _OMC_LIT306;
goto tmp3_done;
}
case 34: {
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,31,1) == 0) goto tmp3_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
_p = tmpMeta5;
tmpMeta6 = stringAppend(_OMC_LIT307,omc_AbsynUtil_pathString(threadData, _p, _OMC_LIT17, 1, 0));
tmpMeta7 = stringAppend(tmpMeta6,_OMC_LIT35);
tmp1 = tmpMeta7;
goto tmp3_done;
}
default:
tmp3_default: OMC_LABEL_UNUSED; {
tmp1 = _OMC_LIT308;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_str = tmp1;
_return: OMC_LABEL_UNUSED
return _str;
}
DLLExport
modelica_string omc_DAEDump_dumpOperatorString(threadData_t *threadData, modelica_metatype _op)
{
modelica_string _str = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _op;
{
modelica_metatype _p = NULL;
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))) {
case 3: {
tmp1 = _OMC_LIT309;
goto tmp3_done;
}
case 4: {
tmp1 = _OMC_LIT310;
goto tmp3_done;
}
case 5: {
tmp1 = _OMC_LIT311;
goto tmp3_done;
}
case 6: {
tmp1 = _OMC_LIT312;
goto tmp3_done;
}
case 7: {
tmp1 = _OMC_LIT313;
goto tmp3_done;
}
case 8: {
tmp1 = _OMC_LIT314;
goto tmp3_done;
}
case 9: {
tmp1 = _OMC_LIT315;
goto tmp3_done;
}
case 10: {
tmp1 = _OMC_LIT316;
goto tmp3_done;
}
case 11: {
tmp1 = _OMC_LIT317;
goto tmp3_done;
}
case 12: {
tmp1 = _OMC_LIT318;
goto tmp3_done;
}
case 13: {
tmp1 = _OMC_LIT319;
goto tmp3_done;
}
case 14: {
tmp1 = _OMC_LIT320;
goto tmp3_done;
}
case 15: {
tmp1 = _OMC_LIT321;
goto tmp3_done;
}
case 16: {
tmp1 = _OMC_LIT322;
goto tmp3_done;
}
case 17: {
tmp1 = _OMC_LIT323;
goto tmp3_done;
}
case 18: {
tmp1 = _OMC_LIT324;
goto tmp3_done;
}
case 19: {
tmp1 = _OMC_LIT325;
goto tmp3_done;
}
case 20: {
tmp1 = _OMC_LIT326;
goto tmp3_done;
}
case 21: {
tmp1 = _OMC_LIT327;
goto tmp3_done;
}
case 22: {
tmp1 = _OMC_LIT328;
goto tmp3_done;
}
case 23: {
tmp1 = _OMC_LIT329;
goto tmp3_done;
}
case 24: {
tmp1 = _OMC_LIT330;
goto tmp3_done;
}
case 26: {
tmp1 = _OMC_LIT331;
goto tmp3_done;
}
case 25: {
tmp1 = _OMC_LIT332;
goto tmp3_done;
}
case 27: {
tmp1 = _OMC_LIT333;
goto tmp3_done;
}
case 29: {
tmp1 = _OMC_LIT334;
goto tmp3_done;
}
case 30: {
tmp1 = _OMC_LIT335;
goto tmp3_done;
}
case 31: {
tmp1 = _OMC_LIT336;
goto tmp3_done;
}
case 28: {
tmp1 = _OMC_LIT337;
goto tmp3_done;
}
case 32: {
tmp1 = _OMC_LIT338;
goto tmp3_done;
}
case 33: {
tmp1 = _OMC_LIT339;
goto tmp3_done;
}
case 34: {
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,31,1) == 0) goto tmp3_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
_p = tmpMeta5;
tmpMeta6 = stringAppend(_OMC_LIT307,omc_AbsynUtil_pathString(threadData, _p, _OMC_LIT17, 1, 0));
tmpMeta7 = stringAppend(tmpMeta6,_OMC_LIT35);
tmp1 = tmpMeta7;
goto tmp3_done;
}
default:
tmp3_default: OMC_LABEL_UNUSED; {
tmp1 = _OMC_LIT308;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_str = tmp1;
_return: OMC_LABEL_UNUSED
return _str;
}
PROTECTED_FUNCTION_STATIC modelica_boolean omc_DAEDump_funcGreaterThan(threadData_t *threadData, modelica_metatype _func1, modelica_metatype _func2)
{
modelica_boolean _res;
modelica_boolean tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
{
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
tmp1 = (stringCompare(omc_DAEDump_functionNameStr(threadData, _func1), omc_DAEDump_functionNameStr(threadData, _func2)) > ((modelica_integer) 0));
goto tmp3_done;
}
case 1: {
tmp1 = 1;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
tmp3_done:
(void)tmp4;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp3_done2;
goto_2:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp4 < 2) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_res = tmp1;
_return: OMC_LABEL_UNUSED
return _res;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_DAEDump_funcGreaterThan(threadData_t *threadData, modelica_metatype _func1, modelica_metatype _func2)
{
modelica_boolean _res;
modelica_metatype out_res;
_res = omc_DAEDump_funcGreaterThan(threadData, _func1, _func2);
out_res = mmc_mk_icon(_res);
return out_res;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_DAEDump_sortFunctions(threadData_t *threadData, modelica_metatype _funcs)
{
modelica_metatype _sortedFuncs = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_sortedFuncs = omc_List_sort(threadData, _funcs, boxvar_DAEDump_funcGreaterThan);
_return: OMC_LABEL_UNUSED
return _sortedFuncs;
}
DLLExport
modelica_string omc_DAEDump_functionNameStr(threadData_t *threadData, modelica_metatype _inElement)
{
modelica_string _res = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;
tmp4_1 = _inElement;
{
modelica_metatype _fpath = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp4 < 3; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,10) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
_fpath = tmpMeta6;
tmp4 += 1;
tmp1 = omc_AbsynUtil_pathStringNoQual(threadData, _fpath, _OMC_LIT17, 0, 0);
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta7;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,3) == 0) goto tmp3_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
_fpath = tmpMeta7;
tmp1 = omc_AbsynUtil_pathStringNoQual(threadData, _fpath, _OMC_LIT17, 0, 0);
goto tmp3_done;
}
case 2: {
tmp1 = _OMC_LIT34;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
tmp3_done:
(void)tmp4;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp3_done2;
goto_2:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp4 < 3) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_res = tmp1;
_return: OMC_LABEL_UNUSED
return _res;
}
DLLExport
modelica_string omc_DAEDump_dumpFunctionNamesStr(threadData_t *threadData, modelica_metatype _funcs)
{
modelica_string _str = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_str = stringDelimitList(omc_List_map(threadData, omc_DAEDump_sortFunctions(threadData, omc_DAEUtil_getFunctionList(threadData, _funcs, 0)), boxvar_DAEDump_functionNameStr), _OMC_LIT20);
_return: OMC_LABEL_UNUSED
return _str;
}
DLLExport
void omc_DAEDump_dump(threadData_t *threadData, modelica_metatype _dae, modelica_metatype _functionTree)
{
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp3_1;
tmp3_1 = _dae;
{
modelica_metatype _daelist = NULL;
volatile mmc_switch_type tmp3;
int tmp4;
tmp3 = 0;
for (; tmp3 < 1; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
modelica_metatype tmpMeta5;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
_daelist = tmpMeta5;
omc_List_map__0(threadData, omc_DAEDump_sortFunctions(threadData, omc_DAEUtil_getFunctionList(threadData, _functionTree, 0)), boxvar_DAEDump_dumpFunction);
omc_List_map__0(threadData, _daelist, boxvar_DAEDump_dumpExtObjectClass);
omc_List_map__0(threadData, _daelist, boxvar_DAEDump_dumpCompElement);
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
goto_1:;
MMC_THROW_INTERNAL();
goto tmp2_done;
tmp2_done:;
}
}
;
_return: OMC_LABEL_UNUSED
return;
}
