#ifdef OMC_BASE_FILE
#define OMC_FILE OMC_BASE_FILE
#else
#define OMC_FILE "CevalScript.c"
#endif
#include "omc_simulation_settings.h"
#include "CevalScript.h"
#define _OMC_LIT0_data "/"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT0,1,_OMC_LIT0_data);
#define _OMC_LIT0 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT0)
#define _OMC_LIT1_data ".public.imports"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT1,15,_OMC_LIT1_data);
#define _OMC_LIT1 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT1)
#define _OMC_LIT2_data ";"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT2,1,_OMC_LIT2_data);
#define _OMC_LIT2 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT2)
#define _OMC_LIT3_data "MetaModelica"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT3,12,_OMC_LIT3_data);
#define _OMC_LIT3 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT3)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT4,1,1) {MMC_IMMEDIATE(MMC_TAGFIXNUM(1))}};
#define _OMC_LIT4 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT4)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT5,2,6) {&Values_Value_BOOL__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(1))}};
#define _OMC_LIT5 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT5)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT6,1,5) {&ErrorTypes_MessageType_TRANSLATION__desc,}};
#define _OMC_LIT6 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT6)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT7,1,4) {&ErrorTypes_Severity_ERROR__desc,}};
#define _OMC_LIT7 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT7)
#define _OMC_LIT8_data "Class %s not found in scope %s."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT8,31,_OMC_LIT8_data);
#define _OMC_LIT8 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT8)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT9,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT8}};
#define _OMC_LIT9 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT9)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT10,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(3)),_OMC_LIT6,_OMC_LIT7,_OMC_LIT9}};
#define _OMC_LIT10 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT10)
#define _OMC_LIT11_data "<TOP>"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT11,5,_OMC_LIT11_data);
#define _OMC_LIT11 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT11)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT12,2,6) {&Values_Value_BOOL__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(0))}};
#define _OMC_LIT12 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT12)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT13,1,18) {&Values_Value_META__FAIL__desc,}};
#define _OMC_LIT13 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT13)
#define _OMC_LIT14_data "\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT14,1,_OMC_LIT14_data);
#define _OMC_LIT14 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT14)
#define _OMC_LIT15_data "OPENMODELICAHOME"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT15,16,_OMC_LIT15_data);
#define _OMC_LIT15 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT15)
#define _OMC_LIT16_data "OPENMODELICALIBRARY"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT16,19,_OMC_LIT16_data);
#define _OMC_LIT16 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT16)
#define _OMC_LIT17_data "OMC_PATH"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT17,8,_OMC_LIT17_data);
#define _OMC_LIT17 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT17)
#define _OMC_LIT18_data "SYSTEM_PATH"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT18,11,_OMC_LIT18_data);
#define _OMC_LIT18 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT18)
#define _OMC_LIT19_data "OMDEV_PATH"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT19,10,_OMC_LIT19_data);
#define _OMC_LIT19 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT19)
#define _OMC_LIT20_data "OMC_FOUND"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT20,9,_OMC_LIT20_data);
#define _OMC_LIT20 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT20)
#define _OMC_LIT21_data "MODELICAUSERCFLAGS"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT21,18,_OMC_LIT21_data);
#define _OMC_LIT21 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT21)
#define _OMC_LIT22_data "WORKING_DIRECTORY"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT22,17,_OMC_LIT22_data);
#define _OMC_LIT22 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT22)
#define _OMC_LIT23_data "CREATE_FILE_WORKS"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT23,17,_OMC_LIT23_data);
#define _OMC_LIT23 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT23)
#define _OMC_LIT24_data "REMOVE_FILE_WORKS"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT24,17,_OMC_LIT24_data);
#define _OMC_LIT24 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT24)
#define _OMC_LIT25_data "OS"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT25,2,_OMC_LIT25_data);
#define _OMC_LIT25 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT25)
#define _OMC_LIT26_data "SYSTEM_INFO"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT26,11,_OMC_LIT26_data);
#define _OMC_LIT26 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT26)
#define _OMC_LIT27_data "RTLIBS"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT27,6,_OMC_LIT27_data);
#define _OMC_LIT27 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT27)
#define _OMC_LIT28_data "C_COMPILER"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT28,10,_OMC_LIT28_data);
#define _OMC_LIT28 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT28)
#define _OMC_LIT29_data "C_COMPILER_VERSION"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT29,18,_OMC_LIT29_data);
#define _OMC_LIT29 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT29)
#define _OMC_LIT30_data "C_COMPILER_RESPONDING"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT30,21,_OMC_LIT30_data);
#define _OMC_LIT30 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT30)
#define _OMC_LIT31_data "HAVE_CORBA"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT31,10,_OMC_LIT31_data);
#define _OMC_LIT31 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT31)
#define _OMC_LIT32_data "CONFIGURE_CMDLINE"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT32,17,_OMC_LIT32_data);
#define _OMC_LIT32 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT32)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT33,2,1) {_OMC_LIT32,MMC_REFSTRUCTLIT(mmc_nil)}};
#define _OMC_LIT33 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT33)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT34,2,1) {_OMC_LIT31,_OMC_LIT33}};
#define _OMC_LIT34 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT34)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT35,2,1) {_OMC_LIT30,_OMC_LIT34}};
#define _OMC_LIT35 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT35)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT36,2,1) {_OMC_LIT29,_OMC_LIT35}};
#define _OMC_LIT36 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT36)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT37,2,1) {_OMC_LIT28,_OMC_LIT36}};
#define _OMC_LIT37 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT37)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT38,2,1) {_OMC_LIT27,_OMC_LIT37}};
#define _OMC_LIT38 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT38)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT39,2,1) {_OMC_LIT26,_OMC_LIT38}};
#define _OMC_LIT39 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT39)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT40,2,1) {_OMC_LIT25,_OMC_LIT39}};
#define _OMC_LIT40 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT40)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT41,2,1) {_OMC_LIT24,_OMC_LIT40}};
#define _OMC_LIT41 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT41)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT42,2,1) {_OMC_LIT23,_OMC_LIT41}};
#define _OMC_LIT42 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT42)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT43,2,1) {_OMC_LIT22,_OMC_LIT42}};
#define _OMC_LIT43 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT43)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT44,2,1) {_OMC_LIT21,_OMC_LIT43}};
#define _OMC_LIT44 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT44)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT45,2,1) {_OMC_LIT20,_OMC_LIT44}};
#define _OMC_LIT45 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT45)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT46,2,1) {_OMC_LIT19,_OMC_LIT45}};
#define _OMC_LIT46 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT46)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT47,2,1) {_OMC_LIT18,_OMC_LIT46}};
#define _OMC_LIT47 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT47)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT48,2,1) {_OMC_LIT17,_OMC_LIT47}};
#define _OMC_LIT48 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT48)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT49,2,1) {_OMC_LIT16,_OMC_LIT48}};
#define _OMC_LIT49 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT49)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT50,2,1) {_OMC_LIT15,_OMC_LIT49}};
#define _OMC_LIT50 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT50)
#define _OMC_LIT51_data "/bin/omc"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT51,8,_OMC_LIT51_data);
#define _OMC_LIT51 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT51)
#define _OMC_LIT52_data ""
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT52,0,_OMC_LIT52_data);
#define _OMC_LIT52 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT52)
#define _OMC_LIT53_data "PATH"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT53,4,_OMC_LIT53_data);
#define _OMC_LIT53 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT53)
#define _OMC_LIT54_data "OMDEV"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT54,5,_OMC_LIT54_data);
#define _OMC_LIT54 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT54)
#define _OMC_LIT55_data "omc.checksettings.create_file_test"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT55,34,_OMC_LIT55_data);
#define _OMC_LIT55 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT55)
#define _OMC_LIT56_data "touch "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT56,6,_OMC_LIT56_data);
#define _OMC_LIT56 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT56)
#define _OMC_LIT57_data "uname -a"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT57,8,_OMC_LIT57_data);
#define _OMC_LIT57 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT57)
#define _OMC_LIT58_data "rm "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT58,3,_OMC_LIT58_data);
#define _OMC_LIT58 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT58)
#define _OMC_LIT59_data "rm -f "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT59,6,_OMC_LIT59_data);
#define _OMC_LIT59 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT59)
#define _OMC_LIT60_data " --version"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT60,10,_OMC_LIT60_data);
#define _OMC_LIT60 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT60)
#define _OMC_LIT61_data "Manually created Makefiles for bootstrapping"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT61,44,_OMC_LIT61_data);
#define _OMC_LIT61 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT61)
#define _OMC_LIT62_data "OpenModelica.Scripting.CheckSettingsResult"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT62,42,_OMC_LIT62_data);
#define _OMC_LIT62 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT62)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT63,2,4) {&Absyn_Path_IDENT__desc,_OMC_LIT62}};
#define _OMC_LIT63 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT63)
#define _OMC_LIT64_data "AllLoadedClasses"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT64,16,_OMC_LIT64_data);
#define _OMC_LIT64 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT64)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT65,2,4) {&Absyn_Path_IDENT__desc,_OMC_LIT64}};
#define _OMC_LIT65 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT65)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT66,1,8) {&ErrorTypes_MessageType_SCRIPTING__desc,}};
#define _OMC_LIT66 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT66)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT67,1,6) {&ErrorTypes_Severity_NOTIFICATION__desc,}};
#define _OMC_LIT67 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT67)
#define _OMC_LIT68_data "Cannot access encrypted and protected class contents."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT68,53,_OMC_LIT68_data);
#define _OMC_LIT68 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT68)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT69,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT68}};
#define _OMC_LIT69 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT69)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT70,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(7023)),_OMC_LIT66,_OMC_LIT67,_OMC_LIT69}};
#define _OMC_LIT70 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT70)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT71,1,4) {&Absyn_Within_TOP__desc,}};
#define _OMC_LIT71 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT71)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT72,10,3) {&SCodeDump_SCodeDumpOptions_OPTIONS__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(1)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),MMC_IMMEDIATE(MMC_TAGFIXNUM(1)),MMC_IMMEDIATE(MMC_TAGFIXNUM(1)),MMC_IMMEDIATE(MMC_TAGFIXNUM(1)),MMC_IMMEDIATE(MMC_TAGFIXNUM(1)),MMC_IMMEDIATE(MMC_TAGFIXNUM(1)),MMC_IMMEDIATE(MMC_TAGFIXNUM(1)),MMC_IMMEDIATE(MMC_TAGFIXNUM(1))}};
#define _OMC_LIT72 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT72)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT73,2,3) {&Dump_DumpOptions_DUMPOPTIONS__desc,_OMC_LIT52}};
#define _OMC_LIT73 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT73)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT74,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_LIT74 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT74)
#define _OMC_LIT75_data "Absyn"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT75,5,_OMC_LIT75_data);
#define _OMC_LIT75 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT75)
#define _OMC_LIT76_data "SCode"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT76,5,_OMC_LIT76_data);
#define _OMC_LIT76 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT76)
#define _OMC_LIT77_data "MetaModelicaInterface"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT77,21,_OMC_LIT77_data);
#define _OMC_LIT77 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT77)
#define _OMC_LIT78_data "Internal"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT78,8,_OMC_LIT78_data);
#define _OMC_LIT78 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT78)
#define _OMC_LIT79_data "File not Found: %s."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT79,19,_OMC_LIT79_data);
#define _OMC_LIT79 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT79)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT80,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT79}};
#define _OMC_LIT80 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT80)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT81,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(7007)),_OMC_LIT66,_OMC_LIT7,_OMC_LIT80}};
#define _OMC_LIT81 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT81)
#define _OMC_LIT82_data "Expected encrypted package with .mol extension got: %s."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT82,55,_OMC_LIT82_data);
#define _OMC_LIT82 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT82)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT83,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT82}};
#define _OMC_LIT83 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT83)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT84,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(7021)),_OMC_LIT66,_OMC_LIT7,_OMC_LIT83}};
#define _OMC_LIT84 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT84)
#define _OMC_LIT85_data "Unable to unzip the file: %s."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT85,29,_OMC_LIT85_data);
#define _OMC_LIT85 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT85)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT86,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT85}};
#define _OMC_LIT86 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT86)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT87,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(7020)),_OMC_LIT66,_OMC_LIT7,_OMC_LIT86}};
#define _OMC_LIT87 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT87)
#define _OMC_LIT88_data " "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT88,1,_OMC_LIT88_data);
#define _OMC_LIT88 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT88)
#define _OMC_LIT89_data "/package.moc"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT89,12,_OMC_LIT89_data);
#define _OMC_LIT89 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT89)
#define _OMC_LIT90_data ".moc"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT90,4,_OMC_LIT90_data);
#define _OMC_LIT90 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT90)
#define _OMC_LIT91_data "/package.mo"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT91,11,_OMC_LIT91_data);
#define _OMC_LIT91 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT91)
#define _OMC_LIT92_data ".mo"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT92,3,_OMC_LIT92_data);
#define _OMC_LIT92 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT92)
#define _OMC_LIT93_data "Unable to find the package definition file. Looked for \"%s\", \"%s\", \"%s\", \"%s\", \"%s\", \"%s\", \"%s\" and \"%s\"."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT93,105,_OMC_LIT93_data);
#define _OMC_LIT93 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT93)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT94,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT93}};
#define _OMC_LIT94 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT94)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT95,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(7019)),_OMC_LIT66,_OMC_LIT7,_OMC_LIT94}};
#define _OMC_LIT95 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT95)
#define _OMC_LIT96_data "unzip -q -o -d \""
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT96,16,_OMC_LIT96_data);
#define _OMC_LIT96 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT96)
#define _OMC_LIT97_data "\" \""
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT97,3,_OMC_LIT97_data);
#define _OMC_LIT97 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT97)
#define _OMC_LIT98_data "\""
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT98,1,_OMC_LIT98_data);
#define _OMC_LIT98 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT98)
#define _OMC_LIT99_data ".mol"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT99,4,_OMC_LIT99_data);
#define _OMC_LIT99 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT99)
#define _OMC_LIT100_data "."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT100,1,_OMC_LIT100_data);
#define _OMC_LIT100 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT100)
#define _OMC_LIT101_data "default"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT101,7,_OMC_LIT101_data);
#define _OMC_LIT101 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT101)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT102,2,1) {_OMC_LIT101,MMC_REFSTRUCTLIT(mmc_nil)}};
#define _OMC_LIT102 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT102)
#define _OMC_LIT103_data "Could not resolve modelica://"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT103,29,_OMC_LIT103_data);
#define _OMC_LIT103 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT103)
#define _OMC_LIT104_data " with MODELICAPATH: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT104,20,_OMC_LIT104_data);
#define _OMC_LIT104 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT104)
#define _OMC_LIT105_data "%s"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT105,2,_OMC_LIT105_data);
#define _OMC_LIT105 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT105)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT106,2,4) {&Gettext_TranslatableContent_notrans__desc,_OMC_LIT105}};
#define _OMC_LIT106 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT106)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT107,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(5999)),_OMC_LIT6,_OMC_LIT7,_OMC_LIT106}};
#define _OMC_LIT107 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT107)
#define _OMC_LIT108_data "modelica://"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT108,11,_OMC_LIT108_data);
#define _OMC_LIT108 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT108)
#define _OMC_LIT109_data "file://"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT109,7,_OMC_LIT109_data);
#define _OMC_LIT109 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT109)
#define _OMC_LIT110_data ".interface.mo"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT110,13,_OMC_LIT110_data);
#define _OMC_LIT110 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT110)
#define _OMC_LIT111_data ": $(RELPATH_"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT111,12,_OMC_LIT111_data);
#define _OMC_LIT111 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT111)
#define _OMC_LIT112_data ") "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT112,2,_OMC_LIT112_data);
#define _OMC_LIT112 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT112)
#define _OMC_LIT113_data "Failed to get dependencies for package %s. %s contains an import to non-existing package %s."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT113,92,_OMC_LIT113_data);
#define _OMC_LIT113 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT113)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT114,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT113}};
#define _OMC_LIT114 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT114)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT115,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(284)),_OMC_LIT66,_OMC_LIT7,_OMC_LIT114}};
#define _OMC_LIT115 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT115)
#define _OMC_LIT116_data "Failed to get dependencies for package %s. Perhaps there is an import to a non-existing package."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT116,96,_OMC_LIT116_data);
#define _OMC_LIT116 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT116)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT117,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT116}};
#define _OMC_LIT117 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT117)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT118,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(266)),_OMC_LIT66,_OMC_LIT7,_OMC_LIT117}};
#define _OMC_LIT118 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT118)
#define _OMC_LIT119_data ": "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT119,2,_OMC_LIT119_data);
#define _OMC_LIT119 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT119)
#define _OMC_LIT120_data "true"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT120,4,_OMC_LIT120_data);
#define _OMC_LIT120 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT120)
#define _OMC_LIT121_data "false"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT121,5,_OMC_LIT121_data);
#define _OMC_LIT121 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT121)
#define _OMC_LIT122_data "CevalScript.containsPublicInterface failed: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT122,44,_OMC_LIT122_data);
#define _OMC_LIT122 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT122)
#define _OMC_LIT123_data "Internal error %s"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT123,17,_OMC_LIT123_data);
#define _OMC_LIT123 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT123)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT124,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT123}};
#define _OMC_LIT124 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT124)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT125,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(63)),_OMC_LIT6,_OMC_LIT7,_OMC_LIT124}};
#define _OMC_LIT125 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT125)
#define _OMC_LIT126_data ": ("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT126,3,_OMC_LIT126_data);
#define _OMC_LIT126 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT126)
#define _OMC_LIT127_data ","
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT127,1,_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 "): "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT129,3,_OMC_LIT129_data);
#define _OMC_LIT129 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT129)
#define _OMC_LIT130_data "CevalScript.importDepenency could not handle:"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT130,45,_OMC_LIT130_data);
#define _OMC_LIT130 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT130)
#define _OMC_LIT131_data "CevalScript.buildTransitiveDependencyGraph failed: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT131,51,_OMC_LIT131_data);
#define _OMC_LIT131 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT131)
#define _OMC_LIT132_data "Annotation __OpenModelica_Interface is missing or the string is not in the input list."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT132,86,_OMC_LIT132_data);
#define _OMC_LIT132 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT132)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT133,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT132}};
#define _OMC_LIT133 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT133)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT134,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(554)),_OMC_LIT66,_OMC_LIT7,_OMC_LIT133}};
#define _OMC_LIT134 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT134)
#define _OMC_LIT135_data "__OpenModelica_Interface"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT135,24,_OMC_LIT135_data);
#define _OMC_LIT135 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT135)
#define _OMC_LIT136_data "__OpenModelica_Interface types are incompatible. Got interface type '%s', expected something compatible with '%s'."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT136,114,_OMC_LIT136_data);
#define _OMC_LIT136 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT136)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT137,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT136}};
#define _OMC_LIT137 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT137)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT138,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(553)),_OMC_LIT66,_OMC_LIT7,_OMC_LIT137}};
#define _OMC_LIT138 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT138)
#define _OMC_LIT139_data "dgbsv"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT139,5,_OMC_LIT139_data);
#define _OMC_LIT139 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT139)
#define _OMC_LIT140_data "dgeev"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT140,5,_OMC_LIT140_data);
#define _OMC_LIT140 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT140)
#define _OMC_LIT141_data "dgegv"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT141,5,_OMC_LIT141_data);
#define _OMC_LIT141 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT141)
#define _OMC_LIT142_data "dgels"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT142,5,_OMC_LIT142_data);
#define _OMC_LIT142 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT142)
#define _OMC_LIT143_data "dgelsx"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT143,6,_OMC_LIT143_data);
#define _OMC_LIT143 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT143)
#define _OMC_LIT144_data "dgelsy"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT144,6,_OMC_LIT144_data);
#define _OMC_LIT144 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT144)
#define _OMC_LIT145_data "dgeqpf"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT145,6,_OMC_LIT145_data);
#define _OMC_LIT145 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT145)
#define _OMC_LIT146_data "dgesv"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT146,5,_OMC_LIT146_data);
#define _OMC_LIT146 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT146)
#define _OMC_LIT147_data "dgesvd"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT147,6,_OMC_LIT147_data);
#define _OMC_LIT147 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT147)
#define _OMC_LIT148_data "dgetrf"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT148,6,_OMC_LIT148_data);
#define _OMC_LIT148 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT148)
#define _OMC_LIT149_data "dgetri"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT149,6,_OMC_LIT149_data);
#define _OMC_LIT149 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT149)
#define _OMC_LIT150_data "dgetrs"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT150,6,_OMC_LIT150_data);
#define _OMC_LIT150 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT150)
#define _OMC_LIT151_data "dgglse"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT151,6,_OMC_LIT151_data);
#define _OMC_LIT151 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT151)
#define _OMC_LIT152_data "dgtsv"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT152,5,_OMC_LIT152_data);
#define _OMC_LIT152 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT152)
#define _OMC_LIT153_data "dorgqr"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT153,6,_OMC_LIT153_data);
#define _OMC_LIT153 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT153)
#define _OMC_LIT154_data "Library"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT154,7,_OMC_LIT154_data);
#define _OMC_LIT154 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT154)
#define _OMC_LIT155_data "Lapack"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT155,6,_OMC_LIT155_data);
#define _OMC_LIT155 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT155)
#define _OMC_LIT156_data "lapack"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT156,6,_OMC_LIT156_data);
#define _OMC_LIT156 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT156)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT157,1,4) {&Absyn_Msg_NO__MSG__desc,}};
#define _OMC_LIT157 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT157)
static const MMC_DEFREALLIT(_OMC_LIT_STRUCT158,0.0);
#define _OMC_LIT158 MMC_REFREALLIT(_OMC_LIT_STRUCT158)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT159,8,3) {&SourceInfo_SOURCEINFO__desc,_OMC_LIT52,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),_OMC_LIT158}};
#define _OMC_LIT159 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT159)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT160,1,1) {_OMC_LIT159}};
#define _OMC_LIT160 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT160)
#define _OMC_LIT161_data "evalfunc"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT161,8,_OMC_LIT161_data);
#define _OMC_LIT161 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT161)
#define _OMC_LIT162_data "Turns on/off symbolic function evaluation."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT162,42,_OMC_LIT162_data);
#define _OMC_LIT162 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT162)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT163,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT162}};
#define _OMC_LIT163 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT163)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT164,5,3) {&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(7)),_OMC_LIT161,MMC_IMMEDIATE(MMC_TAGFIXNUM(1)),_OMC_LIT163}};
#define _OMC_LIT164 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT164)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT165,1,5) {&DAE_Mod_NOMOD__desc,}};
#define _OMC_LIT165 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT165)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT166,1,3) {&DAE_Prefix_NOPRE__desc,}};
#define _OMC_LIT166 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT166)
#define _OMC_LIT167_data "[dynload]: [SOME SYMTAB] not in in CF list: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT167,44,_OMC_LIT167_data);
#define _OMC_LIT167 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT167)
#define _OMC_LIT168_data "dynload"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT168,7,_OMC_LIT168_data);
#define _OMC_LIT168 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT168)
#define _OMC_LIT169_data "Display debug information about dynamic loading of compiled functions."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT169,70,_OMC_LIT169_data);
#define _OMC_LIT169 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT169)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT170,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT169}};
#define _OMC_LIT170 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT170)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT171,5,3) {&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(9)),_OMC_LIT168,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),_OMC_LIT170}};
#define _OMC_LIT171 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT171)
#define _OMC_LIT172_data "in_"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT172,3,_OMC_LIT172_data);
#define _OMC_LIT172 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT172)
#define _OMC_LIT173_data "executeFunction("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT173,16,_OMC_LIT173_data);
#define _OMC_LIT173 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT173)
#define _OMC_LIT174_data ")"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT174,1,_OMC_LIT174_data);
#define _OMC_LIT174 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT174)
#define _OMC_LIT175_data "[dynload]: Updating build time for function path: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT175,50,_OMC_LIT175_data);
#define _OMC_LIT175 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT175)
#define _OMC_LIT176_data " within: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT176,9,_OMC_LIT176_data);
#define _OMC_LIT176 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT176)
#define _OMC_LIT177_data "[dynload]: [SOME SYMTAB] not in in CF list [finished]: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT177,55,_OMC_LIT177_data);
#define _OMC_LIT177 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT177)
#define _OMC_LIT178_data "gen"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT178,3,_OMC_LIT178_data);
#define _OMC_LIT178 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT178)
#define _OMC_LIT179_data "Turns on/off dynamic loading of functions that are compiled during translation. Only enable this if external functions are needed to calculate structural parameters or constants."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT179,178,_OMC_LIT179_data);
#define _OMC_LIT179 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT179)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT180,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT179}};
#define _OMC_LIT180 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT180)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT181,5,3) {&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(8)),_OMC_LIT178,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),_OMC_LIT180}};
#define _OMC_LIT181 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT181)
#define _OMC_LIT182_data "[dynload]: FAILED to constant evaluate function: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT182,49,_OMC_LIT182_data);
#define _OMC_LIT182 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT182)
#define _OMC_LIT183_data "failtrace"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT183,9,_OMC_LIT183_data);
#define _OMC_LIT183 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT183)
#define _OMC_LIT184_data "Sets whether to print a failtrace or not."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT184,41,_OMC_LIT184_data);
#define _OMC_LIT184 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT184)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT185,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT184}};
#define _OMC_LIT185 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT185)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT186,5,3) {&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(1)),_OMC_LIT183,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),_OMC_LIT185}};
#define _OMC_LIT186 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT186)
#define _OMC_LIT187_data "- codegeneration is turned off. switch \"nogen\" flag off\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT187,56,_OMC_LIT187_data);
#define _OMC_LIT187 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT187)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT188,1,1) {MMC_IMMEDIATE(MMC_TAGFIXNUM(1))}};
#define _OMC_LIT188 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT188)
#define _OMC_LIT189_data "Stack overflow when evaluating function call: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT189,46,_OMC_LIT189_data);
#define _OMC_LIT189 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT189)
#define _OMC_LIT190_data "...\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT190,4,_OMC_LIT190_data);
#define _OMC_LIT190 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT190)
#define _OMC_LIT191_data "CevalScript.mo"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT191,14,_OMC_LIT191_data);
#define _OMC_LIT191 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT191)
static const MMC_DEFREALLIT(_OMC_LIT_STRUCT192_6,0.0);
#define _OMC_LIT192_6 MMC_REFREALLIT(_OMC_LIT_STRUCT192_6)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT192,8,3) {&SourceInfo_SOURCEINFO__desc,_OMC_LIT191,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),MMC_IMMEDIATE(MMC_TAGFIXNUM(2138)),MMC_IMMEDIATE(MMC_TAGFIXNUM(257)),MMC_IMMEDIATE(MMC_TAGFIXNUM(2138)),MMC_IMMEDIATE(MMC_TAGFIXNUM(276)),_OMC_LIT192_6}};
#define _OMC_LIT192 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT192)
#define _OMC_LIT193_data "CALL: record constructor: func: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT193,32,_OMC_LIT193_data);
#define _OMC_LIT193 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT193)
#define _OMC_LIT194_data " type path: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT194,12,_OMC_LIT194_data);
#define _OMC_LIT194 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT194)
#define _OMC_LIT195_data "CALL: try to evaluate or generate function: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT195,44,_OMC_LIT195_data);
#define _OMC_LIT195 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT195)
#define _OMC_LIT196_data "CALL: is complete function: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT196,28,_OMC_LIT196_data);
#define _OMC_LIT196 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT196)
#define _OMC_LIT197_data "[true]"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT197,6,_OMC_LIT197_data);
#define _OMC_LIT197 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT197)
#define _OMC_LIT198_data "[false]"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT198,7,_OMC_LIT198_data);
#define _OMC_LIT198 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT198)
#define _OMC_LIT199_data "CALL: constant evaluation failed (not complete function): "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT199,58,_OMC_LIT199_data);
#define _OMC_LIT199 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT199)
#define _OMC_LIT200_data "getNonPartialElementsForInstantiatedClass"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT200,41,_OMC_LIT200_data);
#define _OMC_LIT200 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT200)
#define _OMC_LIT201_data "ModelicaBuiltin.mo$"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT201,19,_OMC_LIT201_data);
#define _OMC_LIT201 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT201)
#define _OMC_LIT202_data ".h"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT202,2,_OMC_LIT202_data);
#define _OMC_LIT202 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT202)
#define _OMC_LIT203_data "$(GEN_DIR)"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT203,10,_OMC_LIT203_data);
#define _OMC_LIT203 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT203)
#define _OMC_LIT204_data ".deps"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT204,5,_OMC_LIT204_data);
#define _OMC_LIT204 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT204)
#define _OMC_LIT205_data ".o: $(GEN_DIR)"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT205,14,_OMC_LIT205_data);
#define _OMC_LIT205 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT205)
#define _OMC_LIT206_data ".c"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT206,2,_OMC_LIT206_data);
#define _OMC_LIT206 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT206)
#define _OMC_LIT207_data "#include \""
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT207,10,_OMC_LIT207_data);
#define _OMC_LIT207 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT207)
#define _OMC_LIT208_data "_records.c"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT208,10,_OMC_LIT208_data);
#define _OMC_LIT208 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT208)
#define _OMC_LIT209_data "#include <meta/meta_modelica.h>\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT209,32,_OMC_LIT209_data);
#define _OMC_LIT209 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT209)
#define _OMC_LIT210_data "Failed to compile all functions in package %s."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT210,46,_OMC_LIT210_data);
#define _OMC_LIT210 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT210)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT211,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT210}};
#define _OMC_LIT211 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT211)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT212,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(537)),_OMC_LIT66,_OMC_LIT7,_OMC_LIT211}};
#define _OMC_LIT212 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT212)
#define _OMC_LIT213_data "Only package and uniontype is supported as top-level classes in OpenModelica."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT213,77,_OMC_LIT213_data);
#define _OMC_LIT213 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT213)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT214,2,1) {_OMC_LIT213,MMC_REFSTRUCTLIT(mmc_nil)}};
#define _OMC_LIT214 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT214)
#define _OMC_LIT215_data "Not an encapsulated class (required for separate compilation): "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT215,63,_OMC_LIT215_data);
#define _OMC_LIT215 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT215)
#define _OMC_LIT216_data "generateCodeCheat"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT216,17,_OMC_LIT216_data);
#define _OMC_LIT216 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT216)
#define _OMC_LIT217_data "Used to generate code for the bootstrapped compiler."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT217,52,_OMC_LIT217_data);
#define _OMC_LIT217 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT217)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT218,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT217}};
#define _OMC_LIT218 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT218)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT219,5,3) {&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(10)),_OMC_LIT216,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),_OMC_LIT218}};
#define _OMC_LIT219 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT219)
#define _OMC_LIT220_data "CevalScript.cevalGenerateFunction failed:\nfunction: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT220,52,_OMC_LIT220_data);
#define _OMC_LIT220 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT220)
#define _OMC_LIT221_data "\nfile: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT221,7,_OMC_LIT221_data);
#define _OMC_LIT221 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT221)
#define _OMC_LIT222_data "_"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT222,1,_OMC_LIT222_data);
#define _OMC_LIT222 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT222)
#define _OMC_LIT223_data "ErrorLevel"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT223,10,_OMC_LIT223_data);
#define _OMC_LIT223 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT223)
#define _OMC_LIT224_data "internal"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT224,8,_OMC_LIT224_data);
#define _OMC_LIT224 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT224)
#define _OMC_LIT225_data "error"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT225,5,_OMC_LIT225_data);
#define _OMC_LIT225 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT225)
#define _OMC_LIT226_data "warning"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT226,7,_OMC_LIT226_data);
#define _OMC_LIT226 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT226)
#define _OMC_LIT227_data "notification"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT227,12,_OMC_LIT227_data);
#define _OMC_LIT227 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT227)
#define _OMC_LIT228_data "errorLevelToValue failed\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT228,25,_OMC_LIT228_data);
#define _OMC_LIT228 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT228)
#define _OMC_LIT229_data "ErrorKind"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT229,9,_OMC_LIT229_data);
#define _OMC_LIT229 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT229)
#define _OMC_LIT230_data "syntax"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT230,6,_OMC_LIT230_data);
#define _OMC_LIT230 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT230)
#define _OMC_LIT231_data "grammar"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT231,7,_OMC_LIT231_data);
#define _OMC_LIT231 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT231)
#define _OMC_LIT232_data "translation"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT232,11,_OMC_LIT232_data);
#define _OMC_LIT232 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT232)
#define _OMC_LIT233_data "symbolic"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT233,8,_OMC_LIT233_data);
#define _OMC_LIT233 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT233)
#define _OMC_LIT234_data "runtime"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT234,7,_OMC_LIT234_data);
#define _OMC_LIT234 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT234)
#define _OMC_LIT235_data "scripting"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT235,9,_OMC_LIT235_data);
#define _OMC_LIT235 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT235)
#define _OMC_LIT236_data "errorTypeToValue failed\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT236,24,_OMC_LIT236_data);
#define _OMC_LIT236 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT236)
#define _OMC_LIT237_data "OpenModelica"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT237,12,_OMC_LIT237_data);
#define _OMC_LIT237 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT237)
#define _OMC_LIT238_data "Scripting"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT238,9,_OMC_LIT238_data);
#define _OMC_LIT238 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT238)
#define _OMC_LIT239_data "SourceInfo"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT239,10,_OMC_LIT239_data);
#define _OMC_LIT239 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT239)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT240,2,4) {&Absyn_Path_IDENT__desc,_OMC_LIT239}};
#define _OMC_LIT240 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT240)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT241,3,3) {&Absyn_Path_QUALIFIED__desc,_OMC_LIT238,_OMC_LIT240}};
#define _OMC_LIT241 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT241)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT242,3,3) {&Absyn_Path_QUALIFIED__desc,_OMC_LIT237,_OMC_LIT241}};
#define _OMC_LIT242 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT242)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT243,2,5) {&Absyn_Path_FULLYQUALIFIED__desc,_OMC_LIT242}};
#define _OMC_LIT243 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT243)
#define _OMC_LIT244_data "filename"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT244,8,_OMC_LIT244_data);
#define _OMC_LIT244 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT244)
#define _OMC_LIT245_data "readonly"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT245,8,_OMC_LIT245_data);
#define _OMC_LIT245 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT245)
#define _OMC_LIT246_data "lineStart"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT246,9,_OMC_LIT246_data);
#define _OMC_LIT246 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT246)
#define _OMC_LIT247_data "columnStart"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT247,11,_OMC_LIT247_data);
#define _OMC_LIT247 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT247)
#define _OMC_LIT248_data "lineEnd"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT248,7,_OMC_LIT248_data);
#define _OMC_LIT248 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT248)
#define _OMC_LIT249_data "columnEnd"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT249,9,_OMC_LIT249_data);
#define _OMC_LIT249 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT249)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT250,2,1) {_OMC_LIT249,MMC_REFSTRUCTLIT(mmc_nil)}};
#define _OMC_LIT250 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT250)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT251,2,1) {_OMC_LIT248,_OMC_LIT250}};
#define _OMC_LIT251 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT251)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT252,2,1) {_OMC_LIT247,_OMC_LIT251}};
#define _OMC_LIT252 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT252)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT253,2,1) {_OMC_LIT246,_OMC_LIT252}};
#define _OMC_LIT253 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT253)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT254,2,1) {_OMC_LIT245,_OMC_LIT253}};
#define _OMC_LIT254 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT254)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT255,2,1) {_OMC_LIT244,_OMC_LIT254}};
#define _OMC_LIT255 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT255)
#define _OMC_LIT256_data "ErrorMessage"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT256,12,_OMC_LIT256_data);
#define _OMC_LIT256 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT256)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT257,2,4) {&Absyn_Path_IDENT__desc,_OMC_LIT256}};
#define _OMC_LIT257 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT257)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT258,3,3) {&Absyn_Path_QUALIFIED__desc,_OMC_LIT238,_OMC_LIT257}};
#define _OMC_LIT258 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT258)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT259,3,3) {&Absyn_Path_QUALIFIED__desc,_OMC_LIT237,_OMC_LIT258}};
#define _OMC_LIT259 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT259)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT260,2,5) {&Absyn_Path_FULLYQUALIFIED__desc,_OMC_LIT259}};
#define _OMC_LIT260 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT260)
#define _OMC_LIT261_data "info"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT261,4,_OMC_LIT261_data);
#define _OMC_LIT261 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT261)
#define _OMC_LIT262_data "message"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT262,7,_OMC_LIT262_data);
#define _OMC_LIT262 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT262)
#define _OMC_LIT263_data "kind"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT263,4,_OMC_LIT263_data);
#define _OMC_LIT263 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT263)
#define _OMC_LIT264_data "level"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT264,5,_OMC_LIT264_data);
#define _OMC_LIT264 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT264)
#define _OMC_LIT265_data "id"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT265,2,_OMC_LIT265_data);
#define _OMC_LIT265 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT265)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT266,2,1) {_OMC_LIT265,MMC_REFSTRUCTLIT(mmc_nil)}};
#define _OMC_LIT266 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT266)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT267,2,1) {_OMC_LIT264,_OMC_LIT266}};
#define _OMC_LIT267 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT267)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT268,2,1) {_OMC_LIT263,_OMC_LIT267}};
#define _OMC_LIT268 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT268)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT269,2,1) {_OMC_LIT262,_OMC_LIT268}};
#define _OMC_LIT269 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT269)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT270,2,1) {_OMC_LIT261,_OMC_LIT269}};
#define _OMC_LIT270 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT270)
#define _OMC_LIT271_data "version"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT271,7,_OMC_LIT271_data);
#define _OMC_LIT271 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT271)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT272,2,4) {&Absyn_Path_IDENT__desc,_OMC_LIT271}};
#define _OMC_LIT272 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT272)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT273,2,6) {&Absyn_Exp_STRING__desc,_OMC_LIT52}};
#define _OMC_LIT273 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT273)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT274,1,1) {_OMC_LIT273}};
#define _OMC_LIT274 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT274)
#define _OMC_LIT275_data "$echo"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT275,5,_OMC_LIT275_data);
#define _OMC_LIT275 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT275)
#define _OMC_LIT276_data "std"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT276,3,_OMC_LIT276_data);
#define _OMC_LIT276 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT276)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT277,1,4) {&Flags_FlagVisibility_EXTERNAL__desc,}};
#define _OMC_LIT277 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT277)
#define _OMC_LIT278_data "1.x"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT278,3,_OMC_LIT278_data);
#define _OMC_LIT278 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT278)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT279,2,0) {_OMC_LIT278,MMC_IMMEDIATE(MMC_TAGFIXNUM(10))}};
#define _OMC_LIT279 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT279)
#define _OMC_LIT280_data "2.x"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT280,3,_OMC_LIT280_data);
#define _OMC_LIT280 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT280)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT281,2,0) {_OMC_LIT280,MMC_IMMEDIATE(MMC_TAGFIXNUM(20))}};
#define _OMC_LIT281 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT281)
#define _OMC_LIT282_data "3.0"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT282,3,_OMC_LIT282_data);
#define _OMC_LIT282 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT282)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT283,2,0) {_OMC_LIT282,MMC_IMMEDIATE(MMC_TAGFIXNUM(30))}};
#define _OMC_LIT283 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT283)
#define _OMC_LIT284_data "3.1"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT284,3,_OMC_LIT284_data);
#define _OMC_LIT284 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT284)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT285,2,0) {_OMC_LIT284,MMC_IMMEDIATE(MMC_TAGFIXNUM(31))}};
#define _OMC_LIT285 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT285)
#define _OMC_LIT286_data "3.2"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT286,3,_OMC_LIT286_data);
#define _OMC_LIT286 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT286)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT287,2,0) {_OMC_LIT286,MMC_IMMEDIATE(MMC_TAGFIXNUM(32))}};
#define _OMC_LIT287 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT287)
#define _OMC_LIT288_data "3.3"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT288,3,_OMC_LIT288_data);
#define _OMC_LIT288 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT288)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT289,2,0) {_OMC_LIT288,MMC_IMMEDIATE(MMC_TAGFIXNUM(33))}};
#define _OMC_LIT289 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT289)
#define _OMC_LIT290_data "3.4"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT290,3,_OMC_LIT290_data);
#define _OMC_LIT290 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT290)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT291,2,0) {_OMC_LIT290,MMC_IMMEDIATE(MMC_TAGFIXNUM(34))}};
#define _OMC_LIT291 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT291)
#define _OMC_LIT292_data "3.5"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT292,3,_OMC_LIT292_data);
#define _OMC_LIT292 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT292)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT293,2,0) {_OMC_LIT292,MMC_IMMEDIATE(MMC_TAGFIXNUM(35))}};
#define _OMC_LIT293 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT293)
#define _OMC_LIT294_data "latest"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT294,6,_OMC_LIT294_data);
#define _OMC_LIT294 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT294)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT295,2,0) {_OMC_LIT294,MMC_IMMEDIATE(MMC_TAGFIXNUM(1000))}};
#define _OMC_LIT295 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT295)
#define _OMC_LIT296_data "experimental"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT296,12,_OMC_LIT296_data);
#define _OMC_LIT296 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT296)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT297,2,0) {_OMC_LIT296,MMC_IMMEDIATE(MMC_TAGFIXNUM(9999))}};
#define _OMC_LIT297 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT297)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT298,2,1) {_OMC_LIT297,MMC_REFSTRUCTLIT(mmc_nil)}};
#define _OMC_LIT298 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT298)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT299,2,1) {_OMC_LIT295,_OMC_LIT298}};
#define _OMC_LIT299 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT299)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT300,2,1) {_OMC_LIT293,_OMC_LIT299}};
#define _OMC_LIT300 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT300)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT301,2,1) {_OMC_LIT291,_OMC_LIT300}};
#define _OMC_LIT301 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT301)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT302,2,1) {_OMC_LIT289,_OMC_LIT301}};
#define _OMC_LIT302 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT302)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT303,2,1) {_OMC_LIT287,_OMC_LIT302}};
#define _OMC_LIT303 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT303)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT304,2,1) {_OMC_LIT285,_OMC_LIT303}};
#define _OMC_LIT304 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT304)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT305,2,1) {_OMC_LIT283,_OMC_LIT304}};
#define _OMC_LIT305 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT305)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT306,2,1) {_OMC_LIT281,_OMC_LIT305}};
#define _OMC_LIT306 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT306)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT307,2,1) {_OMC_LIT279,_OMC_LIT306}};
#define _OMC_LIT307 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT307)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT308,3,10) {&Flags_FlagData_ENUM__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(1000)),_OMC_LIT307}};
#define _OMC_LIT308 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT308)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT309,2,1) {_OMC_LIT296,MMC_REFSTRUCTLIT(mmc_nil)}};
#define _OMC_LIT309 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT309)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT310,2,1) {_OMC_LIT294,_OMC_LIT309}};
#define _OMC_LIT310 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT310)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT311,2,1) {_OMC_LIT292,_OMC_LIT310}};
#define _OMC_LIT311 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT311)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT312,2,1) {_OMC_LIT290,_OMC_LIT311}};
#define _OMC_LIT312 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT312)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT313,2,1) {_OMC_LIT288,_OMC_LIT312}};
#define _OMC_LIT313 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT313)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT314,2,1) {_OMC_LIT286,_OMC_LIT313}};
#define _OMC_LIT314 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT314)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT315,2,1) {_OMC_LIT284,_OMC_LIT314}};
#define _OMC_LIT315 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT315)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT316,2,1) {_OMC_LIT280,_OMC_LIT315}};
#define _OMC_LIT316 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT316)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT317,2,1) {_OMC_LIT278,_OMC_LIT316}};
#define _OMC_LIT317 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT317)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT318,2,3) {&Flags_ValidOptions_STRING__OPTION__desc,_OMC_LIT317}};
#define _OMC_LIT318 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT318)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT319,1,1) {_OMC_LIT318}};
#define _OMC_LIT319 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT319)
#define _OMC_LIT320_data "Sets the language standard that should be used."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT320,47,_OMC_LIT320_data);
#define _OMC_LIT320 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT320)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT321,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT320}};
#define _OMC_LIT321 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT321)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT322,8,3) {&Flags_ConfigFlag_CONFIG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(8)),_OMC_LIT276,MMC_REFSTRUCTLIT(mmc_none),_OMC_LIT277,_OMC_LIT308,_OMC_LIT319,_OMC_LIT321}};
#define _OMC_LIT322 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT322)
#define _OMC_LIT323_data "strict"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT323,6,_OMC_LIT323_data);
#define _OMC_LIT323 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT323)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT324,2,4) {&Flags_FlagData_BOOL__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(0))}};
#define _OMC_LIT324 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT324)
#define _OMC_LIT325_data "Enables stricter enforcement of Modelica language rules."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT325,56,_OMC_LIT325_data);
#define _OMC_LIT325 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT325)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT326,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT325}};
#define _OMC_LIT326 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT326)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT327,8,3) {&Flags_ConfigFlag_CONFIG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(47)),_OMC_LIT323,MMC_REFSTRUCTLIT(mmc_none),_OMC_LIT277,_OMC_LIT324,MMC_REFSTRUCTLIT(mmc_none),_OMC_LIT326}};
#define _OMC_LIT327 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT327)
#define _OMC_LIT328_data "Cannot save the encrypted class. Encrypted classes are read-only."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT328,65,_OMC_LIT328_data);
#define _OMC_LIT328 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT328)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT329,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT328}};
#define _OMC_LIT329 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT329)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT330,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(7022)),_OMC_LIT66,_OMC_LIT7,_OMC_LIT329}};
#define _OMC_LIT330 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT330)
#define _OMC_LIT331_data "GC_PROFSTATS"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT331,12,_OMC_LIT331_data);
#define _OMC_LIT331 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT331)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT332,2,4) {&Absyn_Path_IDENT__desc,_OMC_LIT331}};
#define _OMC_LIT332 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT332)
#define _OMC_LIT333_data "heapsize_full"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT333,13,_OMC_LIT333_data);
#define _OMC_LIT333 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT333)
#define _OMC_LIT334_data "free_bytes_full"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT334,15,_OMC_LIT334_data);
#define _OMC_LIT334 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT334)
#define _OMC_LIT335_data "unmapped_bytes"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT335,14,_OMC_LIT335_data);
#define _OMC_LIT335 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT335)
#define _OMC_LIT336_data "bytes_allocd_since_gc"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT336,21,_OMC_LIT336_data);
#define _OMC_LIT336 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT336)
#define _OMC_LIT337_data "allocd_bytes_before_gc"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT337,22,_OMC_LIT337_data);
#define _OMC_LIT337 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT337)
#define _OMC_LIT338_data "total_allocd_bytes"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT338,18,_OMC_LIT338_data);
#define _OMC_LIT338 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT338)
#define _OMC_LIT339_data "non_gc_bytes"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT339,12,_OMC_LIT339_data);
#define _OMC_LIT339 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT339)
#define _OMC_LIT340_data "gc_no"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT340,5,_OMC_LIT340_data);
#define _OMC_LIT340 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT340)
#define _OMC_LIT341_data "markers_m1"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT341,10,_OMC_LIT341_data);
#define _OMC_LIT341 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT341)
#define _OMC_LIT342_data "bytes_reclaimed_since_gc"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT342,24,_OMC_LIT342_data);
#define _OMC_LIT342 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT342)
#define _OMC_LIT343_data "reclaimed_bytes_before_gc"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT343,25,_OMC_LIT343_data);
#define _OMC_LIT343 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT343)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT344,2,1) {_OMC_LIT343,MMC_REFSTRUCTLIT(mmc_nil)}};
#define _OMC_LIT344 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT344)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT345,2,1) {_OMC_LIT342,_OMC_LIT344}};
#define _OMC_LIT345 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT345)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT346,2,1) {_OMC_LIT341,_OMC_LIT345}};
#define _OMC_LIT346 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT346)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT347,2,1) {_OMC_LIT340,_OMC_LIT346}};
#define _OMC_LIT347 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT347)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT348,2,1) {_OMC_LIT339,_OMC_LIT347}};
#define _OMC_LIT348 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT348)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT349,2,1) {_OMC_LIT338,_OMC_LIT348}};
#define _OMC_LIT349 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT349)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT350,2,1) {_OMC_LIT337,_OMC_LIT349}};
#define _OMC_LIT350 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT350)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT351,2,1) {_OMC_LIT336,_OMC_LIT350}};
#define _OMC_LIT351 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT351)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT352,2,1) {_OMC_LIT335,_OMC_LIT351}};
#define _OMC_LIT352 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT352)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT353,2,1) {_OMC_LIT334,_OMC_LIT352}};
#define _OMC_LIT353 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT353)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT354,2,1) {_OMC_LIT333,_OMC_LIT353}};
#define _OMC_LIT354 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT354)
#define _OMC_LIT355_data "newInst"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT355,7,_OMC_LIT355_data);
#define _OMC_LIT355 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT355)
#define _OMC_LIT356_data "Enables new instantiation phase."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT356,32,_OMC_LIT356_data);
#define _OMC_LIT356 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT356)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT357,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT356}};
#define _OMC_LIT357 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT357)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT358,5,3) {&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(66)),_OMC_LIT355,MMC_IMMEDIATE(MMC_TAGFIXNUM(1)),_OMC_LIT357}};
#define _OMC_LIT358 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT358)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT359,2,5) {&Values_Value_STRING__desc,_OMC_LIT52}};
#define _OMC_LIT359 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT359)
#define _OMC_LIT360_data "Error, directory "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT360,17,_OMC_LIT360_data);
#define _OMC_LIT360 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT360)
#define _OMC_LIT361_data " does not exist,"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT361,16,_OMC_LIT361_data);
#define _OMC_LIT361 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT361)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT362,1,16) {&Values_Value_NORETCALL__desc,}};
#define _OMC_LIT362 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT362)
static const MMC_DEFREALLIT(_OMC_LIT_STRUCT363,-1.0);
#define _OMC_LIT363 MMC_REFREALLIT(_OMC_LIT_STRUCT363)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT364,2,4) {&Values_Value_REAL__desc,_OMC_LIT363}};
#define _OMC_LIT364 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT364)
#define _OMC_LIT365_data " does not contain SCode.PARTS"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT365,29,_OMC_LIT365_data);
#define _OMC_LIT365 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT365)
#define _OMC_LIT366_data "::"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT366,2,_OMC_LIT366_data);
#define _OMC_LIT366 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT366)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT367,2,1) {_OMC_LIT359,MMC_REFSTRUCTLIT(mmc_nil)}};
#define _OMC_LIT367 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT367)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT368,2,1) {_OMC_LIT359,_OMC_LIT367}};
#define _OMC_LIT368 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT368)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT369,2,1) {_OMC_LIT12,_OMC_LIT368}};
#define _OMC_LIT369 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT369)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT370,2,11) {&Values_Value_TUPLE__desc,_OMC_LIT369}};
#define _OMC_LIT370 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT370)
#define _OMC_LIT371_data "call to loadModel"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT371,17,_OMC_LIT371_data);
#define _OMC_LIT371 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT371)
#define _OMC_LIT372_data "loadModel("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT372,10,_OMC_LIT372_data);
#define _OMC_LIT372 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT372)
#define _OMC_LIT373_data "Class %s not found."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT373,19,_OMC_LIT373_data);
#define _OMC_LIT373 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT373)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT374,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT373}};
#define _OMC_LIT374 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT374)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT375,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(20)),_OMC_LIT6,_OMC_LIT7,_OMC_LIT374}};
#define _OMC_LIT375 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT375)
#define _OMC_LIT376_data "loadFile("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT376,9,_OMC_LIT376_data);
#define _OMC_LIT376 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT376)
#define _OMC_LIT377_data "UTF-8"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT377,5,_OMC_LIT377_data);
#define _OMC_LIT377 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT377)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT378,2,4) {&Values_Value_REAL__desc,_OMC_LIT158}};
#define _OMC_LIT378 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT378)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT379,2,1) {_OMC_LIT378,_OMC_LIT367}};
#define _OMC_LIT379 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT379)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT380,2,11) {&Values_Value_TUPLE__desc,_OMC_LIT379}};
#define _OMC_LIT380 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT380)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT381,1,1) {MMC_IMMEDIATE(MMC_TAGFIXNUM(0))}};
#define _OMC_LIT381 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT381)
#define _OMC_LIT382_data "Could not find class annotation %s in class %s."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT382,47,_OMC_LIT382_data);
#define _OMC_LIT382 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT382)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT383,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT382}};
#define _OMC_LIT383 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT383)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT384,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(536)),_OMC_LIT66,_OMC_LIT7,_OMC_LIT383}};
#define _OMC_LIT384 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT384)
#define _OMC_LIT385_data "Failed"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT385,6,_OMC_LIT385_data);
#define _OMC_LIT385 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT385)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT386,2,5) {&Values_Value_STRING__desc,_OMC_LIT385}};
#define _OMC_LIT386 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT386)
#define _OMC_LIT387_data "parseString"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT387,11,_OMC_LIT387_data);
#define _OMC_LIT387 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT387)
#define _OMC_LIT388_data "parseFile"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT388,9,_OMC_LIT388_data);
#define _OMC_LIT388 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT388)
#define _OMC_LIT389_data "loadFileInteractiveQualified"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT389,28,_OMC_LIT389_data);
#define _OMC_LIT389 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT389)
#define _OMC_LIT390_data "loadFileInteractive"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT390,19,_OMC_LIT390_data);
#define _OMC_LIT390 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT390)
#define _OMC_LIT391_data "getSourceFile"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT391,13,_OMC_LIT391_data);
#define _OMC_LIT391 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT391)
#define _OMC_LIT392_data "setSourceFile"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT392,13,_OMC_LIT392_data);
#define _OMC_LIT392 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT392)
#define _OMC_LIT393_data "basename"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT393,8,_OMC_LIT393_data);
#define _OMC_LIT393 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT393)
#define _OMC_LIT394_data "dirname"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT394,7,_OMC_LIT394_data);
#define _OMC_LIT394 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT394)
#define _OMC_LIT395_data "codeToString"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT395,12,_OMC_LIT395_data);
#define _OMC_LIT395 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT395)
#define _OMC_LIT396_data "typeOf"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT396,6,_OMC_LIT396_data);
#define _OMC_LIT396 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT396)
#define _OMC_LIT397_data "GC_gcollect_and_unmap"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT397,21,_OMC_LIT397_data);
#define _OMC_LIT397 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT397)
#define _OMC_LIT398_data "GC_expand_hp"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT398,12,_OMC_LIT398_data);
#define _OMC_LIT398 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT398)
#define _OMC_LIT399_data "GC_set_max_heap_size"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT399,20,_OMC_LIT399_data);
#define _OMC_LIT399 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT399)
#define _OMC_LIT400_data "GC_get_prof_stats"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT400,17,_OMC_LIT400_data);
#define _OMC_LIT400 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT400)
#define _OMC_LIT401_data "clear"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT401,5,_OMC_LIT401_data);
#define _OMC_LIT401 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT401)
#define _OMC_LIT402_data "clearProgram"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT402,12,_OMC_LIT402_data);
#define _OMC_LIT402 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT402)
#define _OMC_LIT403_data "clearVariables"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT403,14,_OMC_LIT403_data);
#define _OMC_LIT403 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT403)
#define _OMC_LIT404_data "list"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT404,4,_OMC_LIT404_data);
#define _OMC_LIT404 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT404)
#define _OMC_LIT405_data "listFile"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT405,8,_OMC_LIT405_data);
#define _OMC_LIT405 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT405)
#define _OMC_LIT406_data "sortStrings"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT406,11,_OMC_LIT406_data);
#define _OMC_LIT406 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT406)
#define _OMC_LIT407_data "listVariables"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT407,13,_OMC_LIT407_data);
#define _OMC_LIT407 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT407)
#define _OMC_LIT408_data "setCompileCommand"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT408,17,_OMC_LIT408_data);
#define _OMC_LIT408 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT408)
#define _OMC_LIT409_data "getCompileCommand"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT409,17,_OMC_LIT409_data);
#define _OMC_LIT409 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT409)
#define _OMC_LIT410_data "setTempDirectoryPath"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT410,20,_OMC_LIT410_data);
#define _OMC_LIT410 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT410)
#define _OMC_LIT411_data "getTempDirectoryPath"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT411,20,_OMC_LIT411_data);
#define _OMC_LIT411 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT411)
#define _OMC_LIT412_data "setEnvironmentVar"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT412,17,_OMC_LIT412_data);
#define _OMC_LIT412 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT412)
#define _OMC_LIT413_data "getEnvironmentVar"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT413,17,_OMC_LIT413_data);
#define _OMC_LIT413 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT413)
#define _OMC_LIT414_data "setInstallationDirectoryPath"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT414,28,_OMC_LIT414_data);
#define _OMC_LIT414 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT414)
#define _OMC_LIT415_data "getInstallationDirectoryPath"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT415,28,_OMC_LIT415_data);
#define _OMC_LIT415 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT415)
#define _OMC_LIT416_data "getModelicaPath"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT416,15,_OMC_LIT416_data);
#define _OMC_LIT416 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT416)
#define _OMC_LIT417_data "setModelicaPath"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT417,15,_OMC_LIT417_data);
#define _OMC_LIT417 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT417)
#define _OMC_LIT418_data "getHomeDirectoryPath"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT418,20,_OMC_LIT418_data);
#define _OMC_LIT418 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT418)
#define _OMC_LIT419_data "getLanguageStandard"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT419,19,_OMC_LIT419_data);
#define _OMC_LIT419 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT419)
#define _OMC_LIT420_data "reopenStandardStream"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT420,20,_OMC_LIT420_data);
#define _OMC_LIT420 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT420)
#define _OMC_LIT421_data "iconv"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT421,5,_OMC_LIT421_data);
#define _OMC_LIT421 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT421)
#define _OMC_LIT422_data "getCompiler"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT422,11,_OMC_LIT422_data);
#define _OMC_LIT422 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT422)
#define _OMC_LIT423_data "setCFlags"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT423,9,_OMC_LIT423_data);
#define _OMC_LIT423 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT423)
#define _OMC_LIT424_data "getCFlags"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT424,9,_OMC_LIT424_data);
#define _OMC_LIT424 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT424)
#define _OMC_LIT425_data "setCompiler"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT425,11,_OMC_LIT425_data);
#define _OMC_LIT425 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT425)
#define _OMC_LIT426_data "getCXXCompiler"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT426,14,_OMC_LIT426_data);
#define _OMC_LIT426 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT426)
#define _OMC_LIT427_data "setCXXCompiler"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT427,14,_OMC_LIT427_data);
#define _OMC_LIT427 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT427)
#define _OMC_LIT428_data "setCompilerFlags"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT428,16,_OMC_LIT428_data);
#define _OMC_LIT428 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT428)
#define _OMC_LIT429_data "getLinker"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT429,9,_OMC_LIT429_data);
#define _OMC_LIT429 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT429)
#define _OMC_LIT430_data "setLinker"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT430,9,_OMC_LIT430_data);
#define _OMC_LIT430 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT430)
#define _OMC_LIT431_data "getLinkerFlags"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT431,14,_OMC_LIT431_data);
#define _OMC_LIT431 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT431)
#define _OMC_LIT432_data "setLinkerFlags"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT432,14,_OMC_LIT432_data);
#define _OMC_LIT432 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT432)
#define _OMC_LIT433_data "setCommandLineOptions"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT433,21,_OMC_LIT433_data);
#define _OMC_LIT433 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT433)
#define _OMC_LIT434_data "getCommandLineOptions"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT434,21,_OMC_LIT434_data);
#define _OMC_LIT434 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT434)
#define _OMC_LIT435_data "clearCommandLineOptions"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT435,23,_OMC_LIT435_data);
#define _OMC_LIT435 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT435)
#define _OMC_LIT436_data "enableNewInstantiation"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT436,22,_OMC_LIT436_data);
#define _OMC_LIT436 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT436)
#define _OMC_LIT437_data "disableNewInstantiation"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT437,23,_OMC_LIT437_data);
#define _OMC_LIT437 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT437)
#define _OMC_LIT438_data "clearDebugFlags"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT438,15,_OMC_LIT438_data);
#define _OMC_LIT438 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT438)
#define _OMC_LIT439_data "getConfigFlagValidOptions"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT439,25,_OMC_LIT439_data);
#define _OMC_LIT439 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT439)
#define _OMC_LIT440_data "cd"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT440,2,_OMC_LIT440_data);
#define _OMC_LIT440 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT440)
#define _OMC_LIT441_data "mkdir"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT441,5,_OMC_LIT441_data);
#define _OMC_LIT441 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT441)
#define _OMC_LIT442_data "copy"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT442,4,_OMC_LIT442_data);
#define _OMC_LIT442 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT442)
#define _OMC_LIT443_data "remove"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT443,6,_OMC_LIT443_data);
#define _OMC_LIT443 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT443)
#define _OMC_LIT444_data "getVersion"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT444,10,_OMC_LIT444_data);
#define _OMC_LIT444 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT444)
#define _OMC_LIT445_data "system"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT445,6,_OMC_LIT445_data);
#define _OMC_LIT445 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT445)
#define _OMC_LIT446_data "system_parallel"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT446,15,_OMC_LIT446_data);
#define _OMC_LIT446 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT446)
#define _OMC_LIT447_data "timerClear"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT447,10,_OMC_LIT447_data);
#define _OMC_LIT447 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT447)
#define _OMC_LIT448_data "timerTick"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT448,9,_OMC_LIT448_data);
#define _OMC_LIT448 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT448)
#define _OMC_LIT449_data "timerTock"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT449,9,_OMC_LIT449_data);
#define _OMC_LIT449 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT449)
#define _OMC_LIT450_data "readFile"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT450,8,_OMC_LIT450_data);
#define _OMC_LIT450 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT450)
#define _OMC_LIT451_data "writeFile"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT451,9,_OMC_LIT451_data);
#define _OMC_LIT451 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT451)
#define _OMC_LIT452_data "deleteFile"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT452,10,_OMC_LIT452_data);
#define _OMC_LIT452 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT452)
#define _OMC_LIT453_data "compareFiles"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT453,12,_OMC_LIT453_data);
#define _OMC_LIT453 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT453)
#define _OMC_LIT454_data "compareFilesAndMove"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT454,19,_OMC_LIT454_data);
#define _OMC_LIT454 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT454)
#define _OMC_LIT455_data "readFileNoNumeric"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT455,17,_OMC_LIT455_data);
#define _OMC_LIT455 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT455)
#define _OMC_LIT456_data "getErrorString"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT456,14,_OMC_LIT456_data);
#define _OMC_LIT456 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT456)
#define _OMC_LIT457_data "countMessages"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT457,13,_OMC_LIT457_data);
#define _OMC_LIT457 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT457)
#define _OMC_LIT458_data "clearMessages"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT458,13,_OMC_LIT458_data);
#define _OMC_LIT458 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT458)
#define _OMC_LIT459_data "getMessagesStringInternal"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT459,25,_OMC_LIT459_data);
#define _OMC_LIT459 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT459)
#define _OMC_LIT460_data "stringTypeName"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT460,14,_OMC_LIT460_data);
#define _OMC_LIT460 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT460)
#define _OMC_LIT461_data "stringVariableName"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT461,18,_OMC_LIT461_data);
#define _OMC_LIT461 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT461)
#define _OMC_LIT462_data "typeNameString"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT462,14,_OMC_LIT462_data);
#define _OMC_LIT462 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT462)
#define _OMC_LIT463_data "typeNameStrings"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT463,15,_OMC_LIT463_data);
#define _OMC_LIT463 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT463)
#define _OMC_LIT464_data "generateHeader"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT464,14,_OMC_LIT464_data);
#define _OMC_LIT464 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT464)
#define _OMC_LIT465_data "generateJuliaHeader"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT465,19,_OMC_LIT465_data);
#define _OMC_LIT465 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT465)
#define _OMC_LIT466_data "generateCode"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT466,12,_OMC_LIT466_data);
#define _OMC_LIT466 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT466)
#define _OMC_LIT467_data "generateScriptingAPI"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT467,20,_OMC_LIT467_data);
#define _OMC_LIT467 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT467)
#define _OMC_LIT468_data "generateEntryPoint"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT468,18,_OMC_LIT468_data);
#define _OMC_LIT468 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT468)
#define _OMC_LIT469_data "checkInterfaceOfPackages"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT469,24,_OMC_LIT469_data);
#define _OMC_LIT469 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT469)
#define _OMC_LIT470_data "generateSeparateCodeDependenciesMakefile"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT470,40,_OMC_LIT470_data);
#define _OMC_LIT470 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT470)
#define _OMC_LIT471_data "generateSeparateCodeDependencies"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT471,32,_OMC_LIT471_data);
#define _OMC_LIT471 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT471)
#define _OMC_LIT472_data "generateSeparateCode"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT472,20,_OMC_LIT472_data);
#define _OMC_LIT472 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT472)
#define _OMC_LIT473_data "getImportedNames"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT473,16,_OMC_LIT473_data);
#define _OMC_LIT473 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT473)
#define _OMC_LIT474_data "getMMfileTotalDependencies"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT474,26,_OMC_LIT474_data);
#define _OMC_LIT474 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT474)
#define _OMC_LIT475_data "loadModel"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT475,9,_OMC_LIT475_data);
#define _OMC_LIT475 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT475)
#define _OMC_LIT476_data "loadFile"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT476,8,_OMC_LIT476_data);
#define _OMC_LIT476 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT476)
#define _OMC_LIT477_data "loadFiles"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT477,9,_OMC_LIT477_data);
#define _OMC_LIT477 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT477)
#define _OMC_LIT478_data "parseEncryptedPackage"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT478,21,_OMC_LIT478_data);
#define _OMC_LIT478 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT478)
#define _OMC_LIT479_data "loadEncryptedPackage"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT479,20,_OMC_LIT479_data);
#define _OMC_LIT479 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT479)
#define _OMC_LIT480_data "alarm"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT480,5,_OMC_LIT480_data);
#define _OMC_LIT480 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT480)
#define _OMC_LIT481_data "getClassNames"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT481,13,_OMC_LIT481_data);
#define _OMC_LIT481 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT481)
#define _OMC_LIT482_data "reloadClass"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT482,11,_OMC_LIT482_data);
#define _OMC_LIT482 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT482)
#define _OMC_LIT483_data "loadString"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT483,10,_OMC_LIT483_data);
#define _OMC_LIT483 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT483)
#define _OMC_LIT484_data "help"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT484,4,_OMC_LIT484_data);
#define _OMC_LIT484 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT484)
#define _OMC_LIT485_data "getTimeStamp"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT485,12,_OMC_LIT485_data);
#define _OMC_LIT485 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT485)
#define _OMC_LIT486_data "getClassRestriction"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT486,19,_OMC_LIT486_data);
#define _OMC_LIT486 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT486)
#define _OMC_LIT487_data "classAnnotationExists"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT487,21,_OMC_LIT487_data);
#define _OMC_LIT487 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT487)
#define _OMC_LIT488_data "getBooleanClassAnnotation"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT488,25,_OMC_LIT488_data);
#define _OMC_LIT488 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT488)
#define _OMC_LIT489_data "strtok"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT489,6,_OMC_LIT489_data);
#define _OMC_LIT489 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT489)
#define _OMC_LIT490_data "stringSplit"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT490,11,_OMC_LIT490_data);
#define _OMC_LIT490 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT490)
#define _OMC_LIT491_data "stringReplace"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT491,13,_OMC_LIT491_data);
#define _OMC_LIT491 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT491)
#define _OMC_LIT492_data "checkSettings"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT492,13,_OMC_LIT492_data);
#define _OMC_LIT492 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT492)
#define _OMC_LIT493_data "echo"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT493,4,_OMC_LIT493_data);
#define _OMC_LIT493 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT493)
#define _OMC_LIT494_data "numProcessors"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT494,13,_OMC_LIT494_data);
#define _OMC_LIT494 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT494)
#define _OMC_LIT495_data "runScript"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT495,9,_OMC_LIT495_data);
#define _OMC_LIT495 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT495)
#define _OMC_LIT496_data "exit"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT496,4,_OMC_LIT496_data);
#define _OMC_LIT496 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT496)
#define _OMC_LIT497_data "getMemorySize"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT497,13,_OMC_LIT497_data);
#define _OMC_LIT497 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT497)
#define _OMC_LIT498_data "getAllSubtypeOf"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT498,15,_OMC_LIT498_data);
#define _OMC_LIT498 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT498)
#define _OMC_LIT499_data "timing"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT499,6,_OMC_LIT499_data);
#define _OMC_LIT499 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT499)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT500,1,5) {&ErrorTypes_Severity_WARNING__desc,}};
#define _OMC_LIT500 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT500)
#define _OMC_LIT501_data "Requested package %s of version %s, but this package was already loaded with version %s. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT501,198,_OMC_LIT501_data);
#define _OMC_LIT501 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT501)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT502,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT501}};
#define _OMC_LIT502 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT502)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT503,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(183)),_OMC_LIT66,_OMC_LIT500,_OMC_LIT502}};
#define _OMC_LIT503 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT503)
#define _OMC_LIT504_data "%1 requested package %2 of version %3. %2 %4 is used instead which states that it is fully compatible without conversion script needed."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT504,135,_OMC_LIT504_data);
#define _OMC_LIT504 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT504)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT505,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT504}};
#define _OMC_LIT505 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT505)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT506,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(370)),_OMC_LIT66,_OMC_LIT67,_OMC_LIT505}};
#define _OMC_LIT506 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT506)
#define _OMC_LIT507_data "%1 requested package %2 of version %3. %2 %4 is used instead which states that it is only compatible with a conversion script. Use convertPackageToLibrary(%1, %2, \"%4\") to run the conversion script or proceed with potential issues as a result."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT507,243,_OMC_LIT507_data);
#define _OMC_LIT507 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT507)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT508,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT507}};
#define _OMC_LIT508 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT508)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT509,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(371)),_OMC_LIT66,_OMC_LIT500,_OMC_LIT508}};
#define _OMC_LIT509 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT509)
#define _OMC_LIT510_data "Requested package %1 of version %2, but this package was already loaded with version %3. There are no conversion annotations and %2 is older than %3, so the libraries are probably incompatible."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT510,193,_OMC_LIT510_data);
#define _OMC_LIT510 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT510)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT511,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT510}};
#define _OMC_LIT511 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT511)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT512,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(372)),_OMC_LIT66,_OMC_LIT500,_OMC_LIT511}};
#define _OMC_LIT512 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT512)
#define _OMC_LIT513_data "Requested package %1 of version %2, but this package was already loaded with version %3. There are no conversion annotations for this version but %2 is newer than %3. There is a possibility that %3 remains backwards compatible, but it is not loaded so OpenModelica cannot verify this."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT513,284,_OMC_LIT513_data);
#define _OMC_LIT513 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT513)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT514,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT513}};
#define _OMC_LIT514 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT514)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT515,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(373)),_OMC_LIT66,_OMC_LIT500,_OMC_LIT514}};
#define _OMC_LIT515 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT515)
#define _OMC_LIT516_data "Library %s was not loaded but is marked as used by model %s."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT516,60,_OMC_LIT516_data);
#define _OMC_LIT516 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT516)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT517,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT516}};
#define _OMC_LIT517 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT517)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT518,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(526)),_OMC_LIT6,_OMC_LIT500,_OMC_LIT517}};
#define _OMC_LIT518 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT518)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT519,3,3) {&Absyn_Program_PROGRAM__desc,MMC_REFSTRUCTLIT(mmc_nil),_OMC_LIT71}};
#define _OMC_LIT519 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT519)
#define _OMC_LIT520_data "Automatically loaded package %s %s due to uses annotation."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT520,58,_OMC_LIT520_data);
#define _OMC_LIT520 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT520)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT521,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT520}};
#define _OMC_LIT521 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT521)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT522,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(223)),_OMC_LIT66,_OMC_LIT67,_OMC_LIT521}};
#define _OMC_LIT522 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT522)
#define _OMC_LIT523_data "Skipped loading package %s (%s) using MODELICAPATH %s (uses-annotation may be wrong)."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT523,85,_OMC_LIT523_data);
#define _OMC_LIT523 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT523)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT524,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT523}};
#define _OMC_LIT524 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT524)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT525,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(556)),_OMC_LIT66,_OMC_LIT67,_OMC_LIT524}};
#define _OMC_LIT525 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT525)
#define _OMC_LIT526_data "Failed to load package %s (%s) using MODELICAPATH %s."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT526,53,_OMC_LIT526_data);
#define _OMC_LIT526 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT526)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT527,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT526}};
#define _OMC_LIT527 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT527)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT528,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(184)),_OMC_LIT66,_OMC_LIT7,_OMC_LIT527}};
#define _OMC_LIT528 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT528)
#define _OMC_LIT529_data "/../"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT529,4,_OMC_LIT529_data);
#define _OMC_LIT529 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT529)
#define _OMC_LIT530_data "loadFile automatically converted to loadModel"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT530,45,_OMC_LIT530_data);
#define _OMC_LIT530 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT530)
#define _OMC_LIT531_data "package.moc"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT531,11,_OMC_LIT531_data);
#define _OMC_LIT531 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT531)
#define _OMC_LIT532_data "package.mo"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT532,10,_OMC_LIT532_data);
#define _OMC_LIT532 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT532)
#define _OMC_LIT533_data "dynamic"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT533,7,_OMC_LIT533_data);
#define _OMC_LIT533 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT533)
#define _OMC_LIT534_data ".log"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT534,4,_OMC_LIT534_data);
#define _OMC_LIT534 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT534)
#define _OMC_LIT535_data ".libs"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT535,5,_OMC_LIT535_data);
#define _OMC_LIT535 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT535)
#define _OMC_LIT536_data " -C \""
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT536,5,_OMC_LIT536_data);
#define _OMC_LIT536 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT536)
#define _OMC_LIT537_data " -j"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT537,3,_OMC_LIT537_data);
#define _OMC_LIT537 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT537)
#define _OMC_LIT538_data " -f "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT538,4,_OMC_LIT538_data);
#define _OMC_LIT538 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT538)
#define _OMC_LIT539_data ".makefile"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT539,9,_OMC_LIT539_data);
#define _OMC_LIT539 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT539)
#define _OMC_LIT540_data "set OPENMODELICAHOME="
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT540,21,_OMC_LIT540_data);
#define _OMC_LIT540 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT540)
#define _OMC_LIT541_data "\\"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT541,1,_OMC_LIT541_data);
#define _OMC_LIT541 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT541)
#define _OMC_LIT542_data "&& "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT542,3,_OMC_LIT542_data);
#define _OMC_LIT542 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT542)
#define _OMC_LIT543_data "set "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT543,4,_OMC_LIT543_data);
#define _OMC_LIT543 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT543)
#define _OMC_LIT544_data "cd \""
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT544,4,_OMC_LIT544_data);
#define _OMC_LIT544 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT544)
#define _OMC_LIT545_data "\"&& "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT545,4,_OMC_LIT545_data);
#define _OMC_LIT545 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT545)
#define _OMC_LIT546_data "serial"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT546,6,_OMC_LIT546_data);
#define _OMC_LIT546 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT546)
#define _OMC_LIT547_data "parallel"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT547,8,_OMC_LIT547_data);
#define _OMC_LIT547 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT547)
#define _OMC_LIT548_data "linkType"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT548,8,_OMC_LIT548_data);
#define _OMC_LIT548 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT548)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT549,2,0) {_OMC_LIT533,MMC_IMMEDIATE(MMC_TAGFIXNUM(1))}};
#define _OMC_LIT549 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT549)
#define _OMC_LIT550_data "static"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT550,6,_OMC_LIT550_data);
#define _OMC_LIT550 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT550)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT551,2,0) {_OMC_LIT550,MMC_IMMEDIATE(MMC_TAGFIXNUM(2))}};
#define _OMC_LIT551 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT551)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT552,2,1) {_OMC_LIT551,MMC_REFSTRUCTLIT(mmc_nil)}};
#define _OMC_LIT552 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT552)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT553,2,1) {_OMC_LIT549,_OMC_LIT552}};
#define _OMC_LIT553 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT553)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT554,3,10) {&Flags_FlagData_ENUM__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(1)),_OMC_LIT553}};
#define _OMC_LIT554 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT554)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT555,2,1) {_OMC_LIT550,MMC_REFSTRUCTLIT(mmc_nil)}};
#define _OMC_LIT555 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT555)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT556,2,1) {_OMC_LIT533,_OMC_LIT555}};
#define _OMC_LIT556 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT556)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT557,2,3) {&Flags_ValidOptions_STRING__OPTION__desc,_OMC_LIT556}};
#define _OMC_LIT557 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT557)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT558,1,1) {_OMC_LIT557}};
#define _OMC_LIT558 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT558)
#define _OMC_LIT559_data "Sets the link type for the simulation executable.\ndynamic: libraries are dynamically linked; the executable is built very fast but is not portable because of DLL dependencies.\nstatic: libraries are statically linked; the executable is built more slowly but it is portable and dependency-free.\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT559,293,_OMC_LIT559_data);
#define _OMC_LIT559 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT559)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT560,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT559}};
#define _OMC_LIT560 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT560)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT561,8,3) {&Flags_ConfigFlag_CONFIG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(148)),_OMC_LIT548,MMC_REFSTRUCTLIT(mmc_none),_OMC_LIT277,_OMC_LIT554,_OMC_LIT558,_OMC_LIT560}};
#define _OMC_LIT561 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT561)
#define _OMC_LIT562_data "share"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT562,5,_OMC_LIT562_data);
#define _OMC_LIT562 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT562)
#define _OMC_LIT563_data "omc"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT563,3,_OMC_LIT563_data);
#define _OMC_LIT563 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT563)
#define _OMC_LIT564_data "scripts"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT564,7,_OMC_LIT564_data);
#define _OMC_LIT564 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT564)
#define _OMC_LIT565_data "Compile\" "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT565,9,_OMC_LIT565_data);
#define _OMC_LIT565 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT565)
#define _OMC_LIT566_data "compileModel: running "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT566,22,_OMC_LIT566_data);
#define _OMC_LIT566 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT566)
#define _OMC_LIT567_data ".o\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT567,3,_OMC_LIT567_data);
#define _OMC_LIT567 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT567)
#define _OMC_LIT568_data ".libs\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT568,6,_OMC_LIT568_data);
#define _OMC_LIT568 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT568)
#define _OMC_LIT569_data "_records.o\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT569,11,_OMC_LIT569_data);
#define _OMC_LIT569 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT569)
#define _OMC_LIT570_data "_res.mat\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT570,9,_OMC_LIT570_data);
#define _OMC_LIT570 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT570)
#define _OMC_LIT571_data "Compile.bat"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT571,11,_OMC_LIT571_data);
#define _OMC_LIT571 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT571)
#define _OMC_LIT572_data "Error building simulator. Build log: %s"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT572,39,_OMC_LIT572_data);
#define _OMC_LIT572 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT572)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT573,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT572}};
#define _OMC_LIT573 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT573)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT574,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(22)),_OMC_LIT6,_OMC_LIT7,_OMC_LIT573}};
#define _OMC_LIT574 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT574)
#define _OMC_LIT575_data "command "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT575,8,_OMC_LIT575_data);
#define _OMC_LIT575 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT575)
#define _OMC_LIT576_data " not found. Check $OPENMODELICAHOME"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT576,35,_OMC_LIT576_data);
#define _OMC_LIT576 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT576)
#define _OMC_LIT577_data "compileModel: failed!\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT577,22,_OMC_LIT577_data);
#define _OMC_LIT577 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT577)
#define _OMC_LIT578_data "compileModel: successful!\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT578,26,_OMC_LIT578_data);
#define _OMC_LIT578 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT578)
#define _OMC_LIT579_data "Connection.isRoot"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT579,17,_OMC_LIT579_data);
#define _OMC_LIT579 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT579)
#include "util/modelica.h"
#include "CevalScript_includes.h"
#if !defined(PROTECTED_FUNCTION_STATIC)
#define PROTECTED_FUNCTION_STATIC
#endif
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_getMMfilePublicDependencies(threadData_t *threadData, modelica_string _in_package_name, modelica_string _public_imports_dir, modelica_metatype __omcQ_24in_5Fpackages);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_getMMfilePublicDependencies,2,0) {(void*) boxptr_CevalScript_getMMfilePublicDependencies,0}};
#define boxvar_CevalScript_getMMfilePublicDependencies MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_getMMfilePublicDependencies)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_getMMfileTotalDependencies(threadData_t *threadData, modelica_string _in_package_name, modelica_string _public_imports_dir);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_getMMfileTotalDependencies,2,0) {(void*) boxptr_CevalScript_getMMfileTotalDependencies,0}};
#define boxvar_CevalScript_getMMfileTotalDependencies MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_getMMfileTotalDependencies)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_getImportsInElementItem(threadData_t *threadData, modelica_metatype _inAbsynElementItem, modelica_metatype __omcQ_24in_5Fimports_5Flist);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_getImportsInElementItem,2,0) {(void*) boxptr_CevalScript_getImportsInElementItem,0}};
#define boxvar_CevalScript_getImportsInElementItem MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_getImportsInElementItem)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_getImportsInClassPart(threadData_t *threadData, modelica_metatype _inAbsynClassPart, modelica_metatype __omcQ_24in_5Fpub_5Fimports_5Flist, modelica_metatype __omcQ_24in_5Fpro_5Fimports_5Flist, modelica_metatype *out_pro_imports_list);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_getImportsInClassPart,2,0) {(void*) boxptr_CevalScript_getImportsInClassPart,0}};
#define boxvar_CevalScript_getImportsInClassPart MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_getImportsInClassPart)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_generateSeparateCode(threadData_t *threadData, modelica_metatype _args, modelica_metatype _cache, modelica_metatype _env, modelica_metatype *out_outCache);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_generateSeparateCode,2,0) {(void*) boxptr_CevalScript_generateSeparateCode,0}};
#define boxvar_CevalScript_generateSeparateCode MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_generateSeparateCode)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_generateSeparateCodeDependencies(threadData_t *threadData, modelica_metatype _args);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_generateSeparateCodeDependencies,2,0) {(void*) boxptr_CevalScript_generateSeparateCodeDependencies,0}};
#define boxvar_CevalScript_generateSeparateCodeDependencies MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_generateSeparateCodeDependencies)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_generateSeparateCodeDependenciesMakefile(threadData_t *threadData, modelica_metatype _args);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_generateSeparateCodeDependenciesMakefile,2,0) {(void*) boxptr_CevalScript_generateSeparateCodeDependenciesMakefile,0}};
#define boxvar_CevalScript_generateSeparateCodeDependenciesMakefile MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_generateSeparateCodeDependenciesMakefile)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_checkSettings(threadData_t *threadData);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_checkSettings,2,0) {(void*) boxptr_CevalScript_checkSettings,0}};
#define boxvar_CevalScript_checkSettings MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_checkSettings)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_getClassNames(threadData_t *threadData, modelica_metatype _args);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_getClassNames,2,0) {(void*) boxptr_CevalScript_getClassNames,0}};
#define boxvar_CevalScript_getClassNames MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_getClassNames)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_listFile(threadData_t *threadData, modelica_metatype _args);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_listFile,2,0) {(void*) boxptr_CevalScript_listFile,0}};
#define boxvar_CevalScript_listFile MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_listFile)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_listClass(threadData_t *threadData, modelica_metatype _args);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_listClass,2,0) {(void*) boxptr_CevalScript_listClass,0}};
#define boxvar_CevalScript_listClass MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_listClass)
PROTECTED_FUNCTION_STATIC modelica_boolean omc_CevalScript_unZipEncryptedPackageAndCheckFile(threadData_t *threadData, modelica_string _inWorkdir, modelica_string _filename, modelica_boolean _skipUnzip, modelica_string *out_outFilename);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_unZipEncryptedPackageAndCheckFile(threadData_t *threadData, modelica_metatype _inWorkdir, modelica_metatype _filename, modelica_metatype _skipUnzip, modelica_metatype *out_outFilename);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_unZipEncryptedPackageAndCheckFile,2,0) {(void*) boxptr_CevalScript_unZipEncryptedPackageAndCheckFile,0}};
#define boxvar_CevalScript_unZipEncryptedPackageAndCheckFile MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_unZipEncryptedPackageAndCheckFile)
PROTECTED_FUNCTION_STATIC modelica_string omc_CevalScript_findModelicaPath2(threadData_t *threadData, modelica_string _mp, modelica_metatype _inames, modelica_string _version, modelica_boolean _b);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_findModelicaPath2(threadData_t *threadData, modelica_metatype _mp, modelica_metatype _inames, modelica_metatype _version, modelica_metatype _b);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_findModelicaPath2,2,0) {(void*) boxptr_CevalScript_findModelicaPath2,0}};
#define boxvar_CevalScript_findModelicaPath2 MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_findModelicaPath2)
PROTECTED_FUNCTION_STATIC modelica_string omc_CevalScript_findModelicaPath(threadData_t *threadData, modelica_metatype _imps, modelica_metatype _names, modelica_string _version);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_findModelicaPath,2,0) {(void*) boxptr_CevalScript_findModelicaPath,0}};
#define boxvar_CevalScript_findModelicaPath MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_findModelicaPath)
PROTECTED_FUNCTION_STATIC modelica_string omc_CevalScript_getBasePathFromUri(threadData_t *threadData, modelica_string _scheme, modelica_string _iname, modelica_metatype _program, modelica_string _modelicaPath, modelica_boolean _printError);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_getBasePathFromUri(threadData_t *threadData, modelica_metatype _scheme, modelica_metatype _iname, modelica_metatype _program, modelica_metatype _modelicaPath, modelica_metatype _printError);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_getBasePathFromUri,2,0) {(void*) boxptr_CevalScript_getBasePathFromUri,0}};
#define boxvar_CevalScript_getBasePathFromUri MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_getBasePathFromUri)
PROTECTED_FUNCTION_STATIC void omc_CevalScript_reloadClass(threadData_t *threadData, modelica_string _filename, modelica_string _encoding);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_reloadClass,2,0) {(void*) boxptr_CevalScript_reloadClass,0}};
#define boxvar_CevalScript_reloadClass MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_reloadClass)
PROTECTED_FUNCTION_STATIC modelica_boolean omc_CevalScript_isChanged(threadData_t *threadData, modelica_metatype _node, modelica_metatype _hs);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_isChanged(threadData_t *threadData, modelica_metatype _node, modelica_metatype _hs);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_isChanged,2,0) {(void*) boxptr_CevalScript_isChanged,0}};
#define boxvar_CevalScript_isChanged MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_isChanged)
PROTECTED_FUNCTION_STATIC modelica_string omc_CevalScript_getChangedClass(threadData_t *threadData, modelica_metatype _elt, modelica_string _suffix);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_getChangedClass,2,0) {(void*) boxptr_CevalScript_getChangedClass,0}};
#define boxvar_CevalScript_getChangedClass MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_getChangedClass)
PROTECTED_FUNCTION_STATIC modelica_string omc_CevalScript_getTypeNameIdent(threadData_t *threadData, modelica_metatype _val);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_getTypeNameIdent,2,0) {(void*) boxptr_CevalScript_getTypeNameIdent,0}};
#define boxvar_CevalScript_getTypeNameIdent MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_getTypeNameIdent)
PROTECTED_FUNCTION_STATIC modelica_boolean omc_CevalScript_isNotBuiltinImport(threadData_t *threadData, modelica_string _module);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_isNotBuiltinImport(threadData_t *threadData, modelica_metatype _module);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_isNotBuiltinImport,2,0) {(void*) boxptr_CevalScript_isNotBuiltinImport,0}};
#define boxvar_CevalScript_isNotBuiltinImport MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_isNotBuiltinImport)
PROTECTED_FUNCTION_STATIC modelica_string omc_CevalScript_writeModuleDepends(threadData_t *threadData, modelica_metatype _cl, modelica_string _prefix, modelica_string _suffix, modelica_metatype _deps);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_writeModuleDepends,2,0) {(void*) boxptr_CevalScript_writeModuleDepends,0}};
#define boxvar_CevalScript_writeModuleDepends MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_writeModuleDepends)
PROTECTED_FUNCTION_STATIC void omc_CevalScript_printInterfaceString(threadData_t *threadData, modelica_metatype _elt);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_printInterfaceString,2,0) {(void*) boxptr_CevalScript_printInterfaceString,0}};
#define boxvar_CevalScript_printInterfaceString MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_printInterfaceString)
PROTECTED_FUNCTION_STATIC modelica_boolean omc_CevalScript_containsImport2(threadData_t *threadData, modelica_metatype _elt, modelica_metatype _visibility);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_containsImport2(threadData_t *threadData, modelica_metatype _elt, modelica_metatype _visibility);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_containsImport2,2,0) {(void*) boxptr_CevalScript_containsImport2,0}};
#define boxvar_CevalScript_containsImport2 MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_containsImport2)
PROTECTED_FUNCTION_STATIC modelica_boolean omc_CevalScript_containsImport(threadData_t *threadData, modelica_metatype _elt, modelica_metatype _visibility);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_containsImport(threadData_t *threadData, modelica_metatype _elt, modelica_metatype _visibility);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_containsImport,2,0) {(void*) boxptr_CevalScript_containsImport,0}};
#define boxvar_CevalScript_containsImport MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_containsImport)
PROTECTED_FUNCTION_STATIC modelica_boolean omc_CevalScript_containsPublicInterface2(threadData_t *threadData, modelica_metatype _elt);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_containsPublicInterface2(threadData_t *threadData, modelica_metatype _elt);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_containsPublicInterface2,2,0) {(void*) boxptr_CevalScript_containsPublicInterface2,0}};
#define boxvar_CevalScript_containsPublicInterface2 MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_containsPublicInterface2)
PROTECTED_FUNCTION_STATIC modelica_boolean omc_CevalScript_containsPublicInterface(threadData_t *threadData, modelica_metatype _elt);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_containsPublicInterface(threadData_t *threadData, modelica_metatype _elt);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_containsPublicInterface,2,0) {(void*) boxptr_CevalScript_containsPublicInterface,0}};
#define boxvar_CevalScript_containsPublicInterface MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_containsPublicInterface)
PROTECTED_FUNCTION_STATIC modelica_string omc_CevalScript_transitiveDependencyString(threadData_t *threadData, modelica_metatype _deps);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_transitiveDependencyString,2,0) {(void*) boxptr_CevalScript_transitiveDependencyString,0}};
#define boxvar_CevalScript_transitiveDependencyString MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_transitiveDependencyString)
PROTECTED_FUNCTION_STATIC modelica_string omc_CevalScript_dependencyString(threadData_t *threadData, modelica_metatype _deps);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_dependencyString,2,0) {(void*) boxptr_CevalScript_dependencyString,0}};
#define boxvar_CevalScript_dependencyString MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_dependencyString)
PROTECTED_FUNCTION_STATIC modelica_boolean omc_CevalScript_compareDependencyNode(threadData_t *threadData, modelica_metatype _node1, modelica_metatype _node2);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_compareDependencyNode(threadData_t *threadData, modelica_metatype _node1, modelica_metatype _node2);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_compareDependencyNode,2,0) {(void*) boxptr_CevalScript_compareDependencyNode,0}};
#define boxvar_CevalScript_compareDependencyNode MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_compareDependencyNode)
PROTECTED_FUNCTION_STATIC modelica_boolean omc_CevalScript_compareNumberOfDependencies(threadData_t *threadData, modelica_metatype _node1, modelica_metatype _node2);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_compareNumberOfDependencies(threadData_t *threadData, modelica_metatype _node1, modelica_metatype _node2);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_compareNumberOfDependencies,2,0) {(void*) boxptr_CevalScript_compareNumberOfDependencies,0}};
#define boxvar_CevalScript_compareNumberOfDependencies MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_compareNumberOfDependencies)
PROTECTED_FUNCTION_STATIC modelica_string omc_CevalScript_importDepenency(threadData_t *threadData, modelica_metatype _simp);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_importDepenency,2,0) {(void*) boxptr_CevalScript_importDepenency,0}};
#define boxvar_CevalScript_importDepenency MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_importDepenency)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_buildTransitiveDependencyGraph(threadData_t *threadData, modelica_string _name, modelica_metatype _oldgraph);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_buildTransitiveDependencyGraph,2,0) {(void*) boxptr_CevalScript_buildTransitiveDependencyGraph,0}};
#define boxvar_CevalScript_buildTransitiveDependencyGraph MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_buildTransitiveDependencyGraph)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_buildDependencyGraphPublicImports(threadData_t *threadData, modelica_string _name, modelica_metatype _sp);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_buildDependencyGraphPublicImports,2,0) {(void*) boxptr_CevalScript_buildDependencyGraphPublicImports,0}};
#define boxvar_CevalScript_buildDependencyGraphPublicImports MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_buildDependencyGraphPublicImports)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_buildDependencyGraph(threadData_t *threadData, modelica_string _name, modelica_metatype _sp);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_buildDependencyGraph,2,0) {(void*) boxptr_CevalScript_buildDependencyGraph,0}};
#define boxvar_CevalScript_buildDependencyGraph MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_buildDependencyGraph)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_getInterfaceTypeAssocElt(threadData_t *threadData, modelica_metatype _val, modelica_metatype _info);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_getInterfaceTypeAssocElt,2,0) {(void*) boxptr_CevalScript_getInterfaceTypeAssocElt,0}};
#define boxvar_CevalScript_getInterfaceTypeAssocElt MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_getInterfaceTypeAssocElt)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_getInterfaceType(threadData_t *threadData, modelica_metatype _elt, modelica_metatype _assoc);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_getInterfaceType,2,0) {(void*) boxptr_CevalScript_getInterfaceType,0}};
#define boxvar_CevalScript_getInterfaceType MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_getInterfaceType)
PROTECTED_FUNCTION_STATIC void omc_CevalScript_verifyInterfaceType(threadData_t *threadData, modelica_metatype _elt, modelica_metatype _expected);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_verifyInterfaceType,2,0) {(void*) boxptr_CevalScript_verifyInterfaceType,0}};
#define boxvar_CevalScript_verifyInterfaceType MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_verifyInterfaceType)
PROTECTED_FUNCTION_STATIC modelica_boolean omc_CevalScript_isSimpleAPIFunctionArg(threadData_t *threadData, modelica_metatype _ty);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_isSimpleAPIFunctionArg(threadData_t *threadData, modelica_metatype _ty);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_isSimpleAPIFunctionArg,2,0) {(void*) boxptr_CevalScript_isSimpleAPIFunctionArg,0}};
#define boxvar_CevalScript_isSimpleAPIFunctionArg MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_isSimpleAPIFunctionArg)
PROTECTED_FUNCTION_STATIC modelica_boolean omc_CevalScript_isSimpleAPIFunction(threadData_t *threadData, modelica_metatype _ty);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_isSimpleAPIFunction(threadData_t *threadData, modelica_metatype _ty);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_isSimpleAPIFunction,2,0) {(void*) boxptr_CevalScript_isSimpleAPIFunction,0}};
#define boxvar_CevalScript_isSimpleAPIFunction MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_isSimpleAPIFunction)
PROTECTED_FUNCTION_STATIC void omc_CevalScript_isCevaluableFunction2(threadData_t *threadData, modelica_string _inFuncName);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_isCevaluableFunction2,2,0) {(void*) boxptr_CevalScript_isCevaluableFunction2,0}};
#define boxvar_CevalScript_isCevaluableFunction2 MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_isCevaluableFunction2)
PROTECTED_FUNCTION_STATIC void omc_CevalScript_isCevaluableFunction(threadData_t *threadData, modelica_metatype _inElement);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_isCevaluableFunction,2,0) {(void*) boxptr_CevalScript_isCevaluableFunction,0}};
#define boxvar_CevalScript_isCevaluableFunction MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_isCevaluableFunction)
PROTECTED_FUNCTION_STATIC modelica_boolean omc_CevalScript_checkLibraryUsage(threadData_t *threadData, modelica_string _inLibrary, modelica_metatype _inExp);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_checkLibraryUsage(threadData_t *threadData, modelica_metatype _inLibrary, modelica_metatype _inExp);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_checkLibraryUsage,2,0) {(void*) boxptr_CevalScript_checkLibraryUsage,0}};
#define boxvar_CevalScript_checkLibraryUsage MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_checkLibraryUsage)
PROTECTED_FUNCTION_STATIC void omc_CevalScript_cevalIsExternalObjectConstructor(threadData_t *threadData, modelica_metatype _cache, modelica_metatype _funcpath, modelica_metatype _env, modelica_metatype _msg);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_cevalIsExternalObjectConstructor,2,0) {(void*) boxptr_CevalScript_cevalIsExternalObjectConstructor,0}};
#define boxvar_CevalScript_cevalIsExternalObjectConstructor MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_cevalIsExternalObjectConstructor)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_cevalCallFunctionEvaluateOrGenerate2(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inExp, modelica_metatype _inValuesValueLst, modelica_boolean _impl, modelica_metatype _inMsg, modelica_boolean _bIsCompleteFunction, modelica_metatype *out_outValue);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_cevalCallFunctionEvaluateOrGenerate2(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inExp, modelica_metatype _inValuesValueLst, modelica_metatype _impl, modelica_metatype _inMsg, modelica_metatype _bIsCompleteFunction, modelica_metatype *out_outValue);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_cevalCallFunctionEvaluateOrGenerate2,2,0) {(void*) boxptr_CevalScript_cevalCallFunctionEvaluateOrGenerate2,0}};
#define boxvar_CevalScript_cevalCallFunctionEvaluateOrGenerate2 MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_cevalCallFunctionEvaluateOrGenerate2)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_cevalCallFunctionEvaluateOrGenerate(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inExp, modelica_metatype _inValuesValueLst, modelica_boolean _impl, modelica_metatype _inMsg, modelica_boolean _bIsCompleteFunction, modelica_metatype *out_outValue);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_cevalCallFunctionEvaluateOrGenerate(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inExp, modelica_metatype _inValuesValueLst, modelica_metatype _impl, modelica_metatype _inMsg, modelica_metatype _bIsCompleteFunction, modelica_metatype *out_outValue);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_cevalCallFunctionEvaluateOrGenerate,2,0) {(void*) boxptr_CevalScript_cevalCallFunctionEvaluateOrGenerate,0}};
#define boxvar_CevalScript_cevalCallFunctionEvaluateOrGenerate MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_cevalCallFunctionEvaluateOrGenerate)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_addNonPartialClassRef(threadData_t *threadData, modelica_string _name, modelica_metatype _ref, modelica_metatype _accum);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_addNonPartialClassRef,2,0) {(void*) boxptr_CevalScript_addNonPartialClassRef,0}};
#define boxvar_CevalScript_addNonPartialClassRef MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_addNonPartialClassRef)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_getNonPartialElementsForInstantiatedClass(threadData_t *threadData, modelica_metatype _sp, modelica_metatype _cl, modelica_metatype _p);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_getNonPartialElementsForInstantiatedClass,2,0) {(void*) boxptr_CevalScript_getNonPartialElementsForInstantiatedClass,0}};
#define boxvar_CevalScript_getNonPartialElementsForInstantiatedClass MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_getNonPartialElementsForInstantiatedClass)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_findFunctionsToCompile(threadData_t *threadData, modelica_metatype _elt, modelica_metatype _pathPrefix, modelica_metatype _sp, modelica_metatype _acc, modelica_metatype _accMetarecord, modelica_metatype *out_pathsMetarecord);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_findFunctionsToCompile,2,0) {(void*) boxptr_CevalScript_findFunctionsToCompile,0}};
#define boxvar_CevalScript_findFunctionsToCompile MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_findFunctionsToCompile)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_generateFunctions2(threadData_t *threadData, modelica_metatype _icache, modelica_metatype _ienv, modelica_metatype _p, modelica_metatype _sp, modelica_metatype _cl, modelica_string _name, modelica_metatype _info, modelica_boolean _cleanCache, modelica_metatype *out_env);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_generateFunctions2(threadData_t *threadData, modelica_metatype _icache, modelica_metatype _ienv, modelica_metatype _p, modelica_metatype _sp, modelica_metatype _cl, modelica_metatype _name, modelica_metatype _info, modelica_metatype _cleanCache, modelica_metatype *out_env);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_generateFunctions2,2,0) {(void*) boxptr_CevalScript_generateFunctions2,0}};
#define boxvar_CevalScript_generateFunctions2 MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_generateFunctions2)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_generateFunctions(threadData_t *threadData, modelica_metatype _icache, modelica_metatype _ienv, modelica_metatype _p, modelica_metatype _fullScodeProgram, modelica_metatype _isp, modelica_boolean _cleanCache, modelica_metatype *out_env);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_generateFunctions(threadData_t *threadData, modelica_metatype _icache, modelica_metatype _ienv, modelica_metatype _p, modelica_metatype _fullScodeProgram, modelica_metatype _isp, modelica_metatype _cleanCache, modelica_metatype *out_env);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_generateFunctions,2,0) {(void*) boxptr_CevalScript_generateFunctions,0}};
#define boxvar_CevalScript_generateFunctions MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_generateFunctions)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_instantiateDaeFunctions(threadData_t *threadData, modelica_metatype _icache, modelica_metatype _ienv, modelica_metatype _ipaths);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_instantiateDaeFunctions,2,0) {(void*) boxptr_CevalScript_instantiateDaeFunctions,0}};
#define boxvar_CevalScript_instantiateDaeFunctions MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_instantiateDaeFunctions)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_matchQualifiedCalls(threadData_t *threadData, modelica_metatype _inExp, modelica_metatype _inAcc, modelica_metatype *out_outAcc);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_matchQualifiedCalls,2,0) {(void*) boxptr_CevalScript_matchQualifiedCalls,0}};
#define boxvar_CevalScript_matchQualifiedCalls MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_matchQualifiedCalls)
PROTECTED_FUNCTION_STATIC modelica_string omc_CevalScript_generateFunctionFileName(threadData_t *threadData, modelica_metatype _functionPath);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_generateFunctionFileName,2,0) {(void*) boxptr_CevalScript_generateFunctionFileName,0}};
#define boxvar_CevalScript_generateFunctionFileName MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_generateFunctionFileName)
PROTECTED_FUNCTION_STATIC modelica_string omc_CevalScript_generateFunctionName(threadData_t *threadData, modelica_metatype _functionPath);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_generateFunctionName,2,0) {(void*) boxptr_CevalScript_generateFunctionName,0}};
#define boxvar_CevalScript_generateFunctionName MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_generateFunctionName)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_errorLevelToValue(threadData_t *threadData, modelica_metatype _severity);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_errorLevelToValue,2,0) {(void*) boxptr_CevalScript_errorLevelToValue,0}};
#define boxvar_CevalScript_errorLevelToValue MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_errorLevelToValue)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_errorTypeToValue(threadData_t *threadData, modelica_metatype _ty);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_errorTypeToValue,2,0) {(void*) boxptr_CevalScript_errorTypeToValue,0}};
#define boxvar_CevalScript_errorTypeToValue MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_errorTypeToValue)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_makeErrorEnumLiteral(threadData_t *threadData, modelica_string _enumName, modelica_string _enumField, modelica_integer _index);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_makeErrorEnumLiteral(threadData_t *threadData, modelica_metatype _enumName, modelica_metatype _enumField, modelica_metatype _index);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_makeErrorEnumLiteral,2,0) {(void*) boxptr_CevalScript_makeErrorEnumLiteral,0}};
#define boxvar_CevalScript_makeErrorEnumLiteral MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_makeErrorEnumLiteral)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_infoToValue(threadData_t *threadData, modelica_metatype _info);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_infoToValue,2,0) {(void*) boxptr_CevalScript_infoToValue,0}};
#define boxvar_CevalScript_infoToValue MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_infoToValue)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_errorToValue(threadData_t *threadData, modelica_metatype _err);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_errorToValue,2,0) {(void*) boxptr_CevalScript_errorToValue,0}};
#define boxvar_CevalScript_errorToValue MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_errorToValue)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_getVariableNames(threadData_t *threadData, modelica_metatype _vars, modelica_metatype _acc);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_getVariableNames,2,0) {(void*) boxptr_CevalScript_getVariableNames,0}};
#define boxvar_CevalScript_getVariableNames MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_getVariableNames)
PROTECTED_FUNCTION_STATIC void omc_CevalScript_checkValidVersion(threadData_t *threadData, modelica_metatype _path, modelica_string _version, modelica_metatype _actualVersion, modelica_string _requestOrigin, modelica_metatype _withConversion, modelica_metatype _withoutConversion);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_checkValidVersion,2,0) {(void*) boxptr_CevalScript_checkValidVersion,0}};
#define boxvar_CevalScript_checkValidVersion MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_checkValidVersion)
PROTECTED_FUNCTION_STATIC modelica_boolean omc_CevalScript_checkModelLoaded(threadData_t *threadData, modelica_metatype _tpl, modelica_metatype _p, modelica_boolean _forceLoad, modelica_metatype _failNonLoad);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_checkModelLoaded(threadData_t *threadData, modelica_metatype _tpl, modelica_metatype _p, modelica_metatype _forceLoad, modelica_metatype _failNonLoad);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_checkModelLoaded,2,0) {(void*) boxptr_CevalScript_checkModelLoaded,0}};
#define boxvar_CevalScript_checkModelLoaded MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_checkModelLoaded)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_loadModel1(threadData_t *threadData, modelica_metatype _modelToLoad, modelica_string _modelicaPath, modelica_boolean _forceLoad, modelica_boolean _notifyLoad, modelica_boolean _checkUses, modelica_boolean _requireExactVersion, modelica_boolean _encrypted, modelica_string _pathToFile, modelica_metatype __omcQ_24in_5Fprogram, modelica_boolean *out_success);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_loadModel1(threadData_t *threadData, modelica_metatype _modelToLoad, modelica_metatype _modelicaPath, modelica_metatype _forceLoad, modelica_metatype _notifyLoad, modelica_metatype _checkUses, modelica_metatype _requireExactVersion, modelica_metatype _encrypted, modelica_metatype _pathToFile, modelica_metatype __omcQ_24in_5Fprogram, modelica_metatype *out_success);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_loadModel1,2,0) {(void*) boxptr_CevalScript_loadModel1,0}};
#define boxvar_CevalScript_loadModel1 MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_loadModel1)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_checkUsesAndUpdateProgram(threadData_t *threadData, modelica_metatype _newp, modelica_metatype __omcQ_24in_5Fp, modelica_boolean _checkUses, modelica_string _modelicaPath, modelica_boolean _notifyLoad, modelica_boolean _requireExactVersion);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_checkUsesAndUpdateProgram(threadData_t *threadData, modelica_metatype _newp, modelica_metatype __omcQ_24in_5Fp, modelica_metatype _checkUses, modelica_metatype _modelicaPath, modelica_metatype _notifyLoad, modelica_metatype _requireExactVersion);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_checkUsesAndUpdateProgram,2,0) {(void*) boxptr_CevalScript_checkUsesAndUpdateProgram,0}};
#define boxvar_CevalScript_checkUsesAndUpdateProgram MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_checkUsesAndUpdateProgram)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_loadFile(threadData_t *threadData, modelica_string _name, modelica_string _encoding, modelica_metatype _p, modelica_boolean _checkUses, modelica_boolean _notifyLoad, modelica_boolean _requireExactVersion);
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_loadFile(threadData_t *threadData, modelica_metatype _name, modelica_metatype _encoding, modelica_metatype _p, modelica_metatype _checkUses, modelica_metatype _notifyLoad, modelica_metatype _requireExactVersion);
static const MMC_DEFSTRUCTLIT(boxvar_lit_CevalScript_loadFile,2,0) {(void*) boxptr_CevalScript_loadFile,0}};
#define boxvar_CevalScript_loadFile MMC_REFSTRUCTLIT(boxvar_lit_CevalScript_loadFile)
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_getMMfilePublicDependencies(threadData_t *threadData, modelica_string _in_package_name, modelica_string _public_imports_dir, modelica_metatype __omcQ_24in_5Fpackages)
{
modelica_metatype _packages = NULL;
modelica_string _dep_public_imports_file = NULL;
modelica_string _pub_imports_total = 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
_packages = __omcQ_24in_5Fpackages;
if(listMember(_in_package_name, _packages))
{
goto _return;
}
tmpMeta1 = mmc_mk_cons(_in_package_name, _packages);
_packages = tmpMeta1;
tmpMeta2 = stringAppend(_public_imports_dir,_OMC_LIT0);
tmpMeta3 = stringAppend(tmpMeta2,_in_package_name);
tmpMeta4 = stringAppend(tmpMeta3,_OMC_LIT1);
_dep_public_imports_file = tmpMeta4;
_pub_imports_total = omc_System_readFile(threadData, _dep_public_imports_file);
{
modelica_metatype _pub_imp;
for (tmpMeta5 = omc_System_strtok(threadData, _pub_imports_total, _OMC_LIT2); !listEmpty(tmpMeta5); tmpMeta5=MMC_CDR(tmpMeta5))
{
_pub_imp = MMC_CAR(tmpMeta5);
_packages = omc_CevalScript_getMMfilePublicDependencies(threadData, _pub_imp, _public_imports_dir, _packages);
}
}
_return: OMC_LABEL_UNUSED
return _packages;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_getMMfileTotalDependencies(threadData_t *threadData, modelica_string _in_package_name, modelica_string _public_imports_dir)
{
modelica_metatype _total_pub_imports = NULL;
modelica_metatype tmpMeta1;
modelica_metatype _package_class = NULL;
modelica_metatype _pub_imports_list = NULL;
modelica_metatype _pro_imports_list = NULL;
modelica_string _imp_ident = NULL;
modelica_metatype tmpMeta2;
modelica_metatype tmpMeta3;
modelica_metatype tmpMeta4;
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta1 = MMC_REFSTRUCTLIT(mmc_nil);
_total_pub_imports = tmpMeta1;
tmpMeta2 = mmc_mk_box2(4, &Absyn_Path_IDENT__desc, _in_package_name);
_package_class = omc_InteractiveUtil_getPathedClassInProgram(threadData, tmpMeta2, omc_SymbolTable_getAbsyn(threadData), 0, 0);
tmpMeta3 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta4 = MMC_REFSTRUCTLIT(mmc_nil);
_pub_imports_list = omc_CevalScript_getImportList(threadData, _package_class, tmpMeta3, tmpMeta4 ,&_pro_imports_list);
{
modelica_metatype _imp;
for (tmpMeta5 = _pub_imports_list; !listEmpty(tmpMeta5); tmpMeta5=MMC_CDR(tmpMeta5))
{
_imp = MMC_CAR(tmpMeta5);
_imp_ident = omc_AbsynUtil_pathFirstIdent(threadData, omc_AbsynUtil_importPath(threadData, _imp));
if((!stringEqual(_imp_ident, _OMC_LIT3)))
{
_total_pub_imports = omc_CevalScript_getMMfilePublicDependencies(threadData, _imp_ident, _public_imports_dir, _total_pub_imports);
}
}
}
{
modelica_metatype _imp;
for (tmpMeta7 = _pro_imports_list; !listEmpty(tmpMeta7); tmpMeta7=MMC_CDR(tmpMeta7))
{
_imp = MMC_CAR(tmpMeta7);
_imp_ident = omc_AbsynUtil_pathFirstIdent(threadData, omc_AbsynUtil_importPath(threadData, _imp));
if((!stringEqual(_imp_ident, _OMC_LIT3)))
{
_total_pub_imports = omc_CevalScript_getMMfilePublicDependencies(threadData, _imp_ident, _public_imports_dir, _total_pub_imports);
}
}
}
_return: OMC_LABEL_UNUSED
return _total_pub_imports;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_getImportsInElementItem(threadData_t *threadData, modelica_metatype _inAbsynElementItem, modelica_metatype __omcQ_24in_5Fimports_5Flist)
{
modelica_metatype _imports_list = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_imports_list = __omcQ_24in_5Fimports_5Flist;
{
volatile modelica_metatype tmp3_1;
tmp3_1 = _inAbsynElementItem;
{
modelica_metatype _import_ = 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 < 3; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,1) == 0) goto tmp2_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta5,0,6) == 0) goto tmp2_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta5), 5));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,2,3) == 0) goto tmp2_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 2));
_import_ = tmpMeta7;
tmp3 += 1;
tmpMeta8 = mmc_mk_cons(_import_, _imports_list);
_imports_list = tmpMeta8;
goto tmp2_done;
}
case 1: {
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,1) == 0) goto tmp2_end;
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta9,0,6) == 0) goto tmp2_end;
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta9), 5));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta10,0,2) == 0) goto tmp2_end;
goto tmp2_done;
}
case 2: {
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 < 3) {
goto tmp2_top;
}
MMC_THROW_INTERNAL();
tmp2_done2:;
}
}
;
_return: OMC_LABEL_UNUSED
return _imports_list;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_getImportsInClassPart(threadData_t *threadData, modelica_metatype _inAbsynClassPart, modelica_metatype __omcQ_24in_5Fpub_5Fimports_5Flist, modelica_metatype __omcQ_24in_5Fpro_5Fimports_5Flist, modelica_metatype *out_pro_imports_list)
{
modelica_metatype _pub_imports_list = NULL;
modelica_metatype _pro_imports_list = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_pub_imports_list = __omcQ_24in_5Fpub_5Fimports_5Flist;
_pro_imports_list = __omcQ_24in_5Fpro_5Fimports_5Flist;
{
volatile modelica_metatype tmp3_1;
tmp3_1 = _inAbsynClassPart;
{
modelica_metatype _els = 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 < 3; 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,0,1) == 0) goto tmp2_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
_els = tmpMeta5;
tmp3 += 1;
{
modelica_metatype _elem;
for (tmpMeta6 = _els; !listEmpty(tmpMeta6); tmpMeta6=MMC_CDR(tmpMeta6))
{
_elem = MMC_CAR(tmpMeta6);
_pub_imports_list = omc_CevalScript_getImportsInElementItem(threadData, _elem, _pub_imports_list);
}
}
goto tmp2_done;
}
case 1: {
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,1) == 0) goto tmp2_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
_els = tmpMeta8;
{
modelica_metatype _elem;
for (tmpMeta9 = _els; !listEmpty(tmpMeta9); tmpMeta9=MMC_CDR(tmpMeta9))
{
_elem = MMC_CAR(tmpMeta9);
_pro_imports_list = omc_CevalScript_getImportsInElementItem(threadData, _elem, _pro_imports_list);
}
}
goto tmp2_done;
}
case 2: {
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 < 3) {
goto tmp2_top;
}
MMC_THROW_INTERNAL();
tmp2_done2:;
}
}
;
_return: OMC_LABEL_UNUSED
if (out_pro_imports_list) { *out_pro_imports_list = _pro_imports_list; }
return _pub_imports_list;
}
DLLExport
modelica_metatype omc_CevalScript_getImportList(threadData_t *threadData, modelica_metatype _inClass, modelica_metatype __omcQ_24in_5Fpub_5Fimports_5Flist, modelica_metatype __omcQ_24in_5Fpro_5Fimports_5Flist, modelica_metatype *out_pro_imports_list)
{
modelica_metatype _pub_imports_list = NULL;
modelica_metatype _pro_imports_list = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_pub_imports_list = __omcQ_24in_5Fpub_5Fimports_5Flist;
_pro_imports_list = __omcQ_24in_5Fpro_5Fimports_5Flist;
{
modelica_metatype tmp3_1;
tmp3_1 = _inClass;
{
modelica_metatype _parts = NULL;
volatile mmc_switch_type tmp3;
int tmp4;
tmp3 = 0;
for (; tmp3 < 3; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta5,0,5) == 0) goto tmp2_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta5), 4));
_parts = tmpMeta6;
{
modelica_metatype _part;
for (tmpMeta7 = _parts; !listEmpty(tmpMeta7); tmpMeta7=MMC_CDR(tmpMeta7))
{
_part = MMC_CAR(tmpMeta7);
_pub_imports_list = omc_CevalScript_getImportsInClassPart(threadData, _part, _pub_imports_list, _pro_imports_list ,&_pro_imports_list);
}
}
goto tmp2_done;
}
case 1: {
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta9,4,5) == 0) goto tmp2_end;
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta9), 5));
_parts = tmpMeta10;
{
modelica_metatype _part;
for (tmpMeta11 = _parts; !listEmpty(tmpMeta11); tmpMeta11=MMC_CDR(tmpMeta11))
{
_part = MMC_CAR(tmpMeta11);
_pub_imports_list = omc_CevalScript_getImportsInClassPart(threadData, _part, _pub_imports_list, _pro_imports_list ,&_pro_imports_list);
}
}
goto tmp2_done;
}
case 2: {
modelica_metatype tmpMeta13;
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta13,1,4) == 0) goto tmp2_end;
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
if (out_pro_imports_list) { *out_pro_imports_list = _pro_imports_list; }
return _pub_imports_list;
}
DLLExport
modelica_metatype omc_CevalScript_getImportedNames(threadData_t *threadData, modelica_metatype _inClass, modelica_metatype *out_outProtectedImports)
{
modelica_metatype _outPublicImports = NULL;
modelica_metatype _outProtectedImports = NULL;
modelica_string _ident = NULL;
modelica_metatype _pub_imports_list = NULL;
modelica_metatype _pro_imports_list = NULL;
modelica_metatype tmpMeta1;
modelica_metatype tmpMeta2;
modelica_metatype tmpMeta3;
modelica_metatype tmpMeta4;
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta1 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta2 = MMC_REFSTRUCTLIT(mmc_nil);
_pub_imports_list = omc_CevalScript_getImportList(threadData, _inClass, tmpMeta1, tmpMeta2 ,&_pro_imports_list);
tmpMeta3 = MMC_REFSTRUCTLIT(mmc_nil);
_outPublicImports = tmpMeta3;
{
modelica_metatype _imp;
for (tmpMeta4 = _pub_imports_list; !listEmpty(tmpMeta4); tmpMeta4=MMC_CDR(tmpMeta4))
{
_imp = MMC_CAR(tmpMeta4);
_ident = omc_AbsynUtil_pathFirstIdent(threadData, omc_AbsynUtil_importPath(threadData, _imp));
if((!stringEqual(_ident, _OMC_LIT3)))
{
tmpMeta6 = mmc_mk_box2(5, &Values_Value_STRING__desc, _ident);
tmpMeta5 = mmc_mk_cons(tmpMeta6, _outPublicImports);
_outPublicImports = tmpMeta5;
}
}
}
tmpMeta8 = MMC_REFSTRUCTLIT(mmc_nil);
_outProtectedImports = tmpMeta8;
{
modelica_metatype _imp;
for (tmpMeta9 = _pro_imports_list; !listEmpty(tmpMeta9); tmpMeta9=MMC_CDR(tmpMeta9))
{
_imp = MMC_CAR(tmpMeta9);
_ident = omc_AbsynUtil_pathFirstIdent(threadData, omc_AbsynUtil_importPath(threadData, _imp));
if((!stringEqual(_ident, _OMC_LIT3)))
{
tmpMeta11 = mmc_mk_box2(5, &Values_Value_STRING__desc, _ident);
tmpMeta10 = mmc_mk_cons(tmpMeta11, _outProtectedImports);
_outProtectedImports = tmpMeta10;
}
}
}
_return: OMC_LABEL_UNUSED
if (out_outProtectedImports) { *out_outProtectedImports = _outProtectedImports; }
return _outPublicImports;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_generateSeparateCode(threadData_t *threadData, modelica_metatype _args, modelica_metatype _cache, modelica_metatype _env, modelica_metatype *out_outCache)
{
modelica_metatype _res = NULL;
modelica_metatype _outCache = NULL;
modelica_metatype _v = NULL;
modelica_boolean _b;
modelica_metatype _p = NULL;
modelica_metatype _sp = NULL;
modelica_string _name = NULL;
modelica_metatype _cl = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;
tmp4_1 = _args;
{
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;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
modelica_integer tmp11;
modelica_metatype tmpMeta12;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_1);
tmpMeta7 = MMC_CDR(tmp4_1);
if (listEmpty(tmpMeta7)) goto tmp3_end;
tmpMeta8 = MMC_CAR(tmpMeta7);
tmpMeta9 = MMC_CDR(tmpMeta7);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta8,3,1) == 0) goto tmp3_end;
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta8), 2));
tmp11 = mmc_unbox_integer(tmpMeta10);
if (!listEmpty(tmpMeta9)) goto tmp3_end;
_v = tmpMeta6;
_b = tmp11;
_p = omc_SymbolTable_getAbsyn(threadData);
_sp = omc_SymbolTable_getSCode(threadData);
_name = omc_CevalScript_getTypeNameIdent(threadData, _v);
setGlobalRoot(((modelica_integer) 0), _OMC_LIT4);
_cl = omc_List_getMemberOnTrue(threadData, _name, _sp, boxvar_SCodeUtil_isClassNamed);
tmpMeta12 = mmc_mk_cons(_cl, MMC_REFSTRUCTLIT(mmc_nil));
_outCache = omc_CevalScript_generateFunctions(threadData, _cache, _env, _p, _sp, tmpMeta12, _b, NULL);
setGlobalRoot(((modelica_integer) 0), mmc_mk_none());
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta13;
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
modelica_metatype tmpMeta16;
modelica_boolean tmp17;
modelica_metatype tmpMeta18;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta13 = MMC_CAR(tmp4_1);
tmpMeta14 = MMC_CDR(tmp4_1);
if (listEmpty(tmpMeta14)) goto tmp3_end;
tmpMeta15 = MMC_CAR(tmpMeta14);
tmpMeta16 = MMC_CDR(tmpMeta14);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta15,3,1) == 0) goto tmp3_end;
if (!listEmpty(tmpMeta16)) goto tmp3_end;
_v = tmpMeta13;
_sp = omc_SymbolTable_getSCode(threadData);
_name = omc_CevalScript_getTypeNameIdent(threadData, _v);
tmp17 = omc_List_isMemberOnTrue(threadData, _name, _sp, boxvar_SCodeUtil_isClassNamed);
if (0 != tmp17) goto goto_2;
tmpMeta18 = mmc_mk_cons(_name, mmc_mk_cons(_OMC_LIT11, MMC_REFSTRUCTLIT(mmc_nil)));
omc_Error_addMessage(threadData, _OMC_LIT10, tmpMeta18);
goto goto_2;
goto tmp3_done;
}
case 2: {
setGlobalRoot(((modelica_integer) 0), mmc_mk_none());
tmpMeta1 = _OMC_LIT12;
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 = tmpMeta1;
_return: OMC_LABEL_UNUSED
if (out_outCache) { *out_outCache = _outCache; }
return _res;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_generateSeparateCodeDependencies(threadData_t *threadData, modelica_metatype _args)
{
modelica_metatype _res = NULL;
modelica_string _suffix = NULL;
modelica_metatype _sp = NULL;
modelica_metatype _names = NULL;
modelica_metatype _namesPublic = NULL;
modelica_metatype _namesChanged = NULL;
modelica_metatype _fileNames = NULL;
modelica_metatype _deps = NULL;
modelica_metatype _depstransitive = NULL;
modelica_metatype _depstransposed = NULL;
modelica_metatype _depstransposedtransitive = NULL;
modelica_metatype _depsmerged = NULL;
modelica_metatype _depschanged = NULL;
modelica_metatype _hashSetString = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
{
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;
modelica_metatype tmpMeta8;
tmpMeta5 = _args;
if (listEmpty(tmpMeta5)) goto goto_1;
tmpMeta6 = MMC_CAR(tmpMeta5);
tmpMeta7 = MMC_CDR(tmpMeta5);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,2,1) == 0) goto goto_1;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 2));
if (!listEmpty(tmpMeta7)) goto goto_1;
_suffix = tmpMeta8;
_sp = omc_SymbolTable_getSCode(threadData);
_names = omc_List_filterMap(threadData, _sp, boxvar_SCodeUtil_getElementName);
_deps = omc_Graph_buildGraph(threadData, _names, boxvar_CevalScript_buildDependencyGraph, _sp);
_namesPublic = omc_List_map(threadData, omc_List_select(threadData, _sp, boxvar_CevalScript_containsPublicInterface), boxvar_SCodeUtil_getElementName);
_namesChanged = omc_List_filterMap1(threadData, _sp, boxvar_CevalScript_getChangedClass, _suffix);
_hashSetString = omc_HashSetString_emptyHashSet(threadData);
_hashSetString = omc_List_fold(threadData, _namesChanged, boxvar_BaseHashSet_add, _hashSetString);
_depstransposed = omc_Graph_transposeGraph(threadData, omc_Graph_emptyGraph(threadData, _names), _deps, boxvar_stringEq);
_depstransposedtransitive = omc_Graph_buildGraph(threadData, _namesPublic, boxvar_CevalScript_buildTransitiveDependencyGraph, _depstransposed);
_depstransitive = omc_Graph_transposeGraph(threadData, omc_Graph_emptyGraph(threadData, _names), _depstransposedtransitive, boxvar_stringEq);
_depstransitive = omc_List_sort(threadData, _depstransitive, boxvar_CevalScript_compareNumberOfDependencies);
_depsmerged = omc_Graph_merge(threadData, _deps, _depstransitive, boxvar_stringEq, boxvar_CevalScript_compareDependencyNode);
_depschanged = omc_List_select1(threadData, _depsmerged, boxvar_CevalScript_isChanged, _hashSetString);
_names = omc_List_map(threadData, _depschanged, boxvar_Util_tuple21);
_fileNames = omc_List_map1(threadData, _names, boxvar_stringAppend, _suffix);
omc_List_map(threadData, _fileNames, boxvar_System_removeFile);
_res = omc_ValuesUtil_makeArray(threadData, omc_List_map(threadData, _names, boxvar_ValuesUtil_makeString));
goto tmp2_done;
}
case 1: {
_res = _OMC_LIT13;
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 _res;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_generateSeparateCodeDependenciesMakefile(threadData_t *threadData, modelica_metatype _args)
{
modelica_metatype _res = NULL;
modelica_metatype _sp = NULL;
modelica_metatype _names = NULL;
modelica_metatype _strs = NULL;
modelica_metatype _deps = NULL;
modelica_string _filename = NULL;
modelica_string _prefix = NULL;
modelica_string _suffix = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
{
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;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
modelica_metatype tmpMeta14;
tmpMeta5 = _args;
if (listEmpty(tmpMeta5)) goto goto_1;
tmpMeta6 = MMC_CAR(tmpMeta5);
tmpMeta7 = MMC_CDR(tmpMeta5);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,2,1) == 0) goto goto_1;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 2));
if (listEmpty(tmpMeta7)) goto goto_1;
tmpMeta9 = MMC_CAR(tmpMeta7);
tmpMeta10 = MMC_CDR(tmpMeta7);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta9,2,1) == 0) goto goto_1;
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta9), 2));
if (listEmpty(tmpMeta10)) goto goto_1;
tmpMeta12 = MMC_CAR(tmpMeta10);
tmpMeta13 = MMC_CDR(tmpMeta10);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta12,2,1) == 0) goto goto_1;
tmpMeta14 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta12), 2));
if (!listEmpty(tmpMeta13)) goto goto_1;
_filename = tmpMeta8;
_prefix = tmpMeta11;
_suffix = tmpMeta14;
_sp = omc_SymbolTable_getSCode(threadData);
_names = omc_List_filterMap(threadData, _sp, boxvar_SCodeUtil_getElementName);
_deps = omc_Graph_buildGraph(threadData, _names, boxvar_CevalScript_buildDependencyGraphPublicImports, _sp);
_strs = omc_List_map3(threadData, _sp, boxvar_CevalScript_writeModuleDepends, _prefix, _suffix, _deps);
omc_System_writeFile(threadData, _filename, stringDelimitList(_strs, _OMC_LIT14));
_res = _OMC_LIT5;
goto tmp2_done;
}
case 1: {
_res = _OMC_LIT12;
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 _res;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_checkSettings(threadData_t *threadData)
{
modelica_metatype _res = NULL;
modelica_metatype _vars = NULL;
modelica_string _omhome = NULL;
modelica_string _omlib = NULL;
modelica_string _omcpath = NULL;
modelica_string _systemPath = NULL;
modelica_string _omdev = NULL;
modelica_string _os = NULL;
modelica_string _touch_file = NULL;
modelica_string _usercflags = NULL;
modelica_string _workdir = NULL;
modelica_string _uname = NULL;
modelica_string _senddata = NULL;
modelica_string _gcc = NULL;
modelica_string _gccVersion = NULL;
modelica_string _confcmd = NULL;
modelica_boolean _omcfound;
modelica_boolean _touch_res;
modelica_boolean _rm_res;
modelica_boolean _have_corba;
modelica_boolean _gcc_res;
modelica_metatype _vals = NULL;
modelica_metatype tmpMeta1;
modelica_metatype tmpMeta2;
modelica_metatype tmpMeta3;
modelica_metatype tmpMeta4;
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
modelica_metatype tmpMeta16;
modelica_metatype tmpMeta17;
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
modelica_metatype tmpMeta20;
modelica_metatype tmpMeta21;
modelica_metatype tmpMeta22;
modelica_metatype tmpMeta23;
modelica_metatype tmpMeta24;
modelica_metatype tmpMeta25;
modelica_metatype tmpMeta26;
modelica_metatype tmpMeta27;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_vars = _OMC_LIT50;
_omhome = omc_Settings_getInstallationDirectoryPath(threadData);
_omlib = omc_Settings_getModelicaPath(threadData, omc_Testsuite_isRunning(threadData));
tmpMeta1 = stringAppend(_omhome,_OMC_LIT51);
tmpMeta2 = stringAppend(tmpMeta1,_OMC_LIT52);
_omcpath = tmpMeta2;
_systemPath = omc_Util_makeValueOrDefault(threadData, boxvar_System_readEnv, _OMC_LIT53, _OMC_LIT52);
_omdev = omc_Util_makeValueOrDefault(threadData, boxvar_System_readEnv, _OMC_LIT54, _OMC_LIT52);
_omcfound = omc_System_regularFileExists(threadData, _omcpath);
_os = _OMC_LIT52;
_touch_file = _OMC_LIT55;
_usercflags = omc_Util_makeValueOrDefault(threadData, boxvar_System_readEnv, _OMC_LIT21, _OMC_LIT52);
_workdir = omc_System_pwd(threadData);
tmpMeta3 = stringAppend(_OMC_LIT56,_touch_file);
_touch_res = (((modelica_integer) 0) == omc_System_systemCall(threadData, tmpMeta3, _OMC_LIT52));
omc_System_systemCall(threadData, _OMC_LIT57, _touch_file);
_uname = omc_System_readFile(threadData, _touch_file);
tmpMeta4 = stringAppend(_OMC_LIT58,_touch_file);
_rm_res = (((modelica_integer) 0) == omc_System_systemCall(threadData, tmpMeta4, _OMC_LIT52));
_senddata = _OMC_LIT52;
_gcc = omc_System_getCCompiler(threadData);
_have_corba = omc_Corba_haveCorba(threadData);
tmpMeta5 = stringAppend(_OMC_LIT59,_touch_file);
omc_System_systemCall(threadData, tmpMeta5, _OMC_LIT52);
tmpMeta6 = stringAppend(_gcc,_OMC_LIT60);
_gcc_res = (((modelica_integer) 0) == omc_System_systemCall(threadData, tmpMeta6, _touch_file));
_gccVersion = omc_System_readFile(threadData, _touch_file);
tmpMeta7 = stringAppend(_OMC_LIT59,_touch_file);
omc_System_systemCall(threadData, tmpMeta7, _OMC_LIT52);
_confcmd = _OMC_LIT61;
tmpMeta9 = mmc_mk_box2(5, &Values_Value_STRING__desc, _omhome);
tmpMeta10 = mmc_mk_box2(5, &Values_Value_STRING__desc, _omlib);
tmpMeta11 = mmc_mk_box2(5, &Values_Value_STRING__desc, _omcpath);
tmpMeta12 = mmc_mk_box2(5, &Values_Value_STRING__desc, _systemPath);
tmpMeta13 = mmc_mk_box2(5, &Values_Value_STRING__desc, _omdev);
tmpMeta14 = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(_omcfound));
tmpMeta15 = mmc_mk_box2(5, &Values_Value_STRING__desc, _usercflags);
tmpMeta16 = mmc_mk_box2(5, &Values_Value_STRING__desc, _workdir);
tmpMeta17 = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(_touch_res));
tmpMeta18 = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(_rm_res));
tmpMeta19 = mmc_mk_box2(5, &Values_Value_STRING__desc, _os);
tmpMeta20 = mmc_mk_box2(5, &Values_Value_STRING__desc, _uname);
tmpMeta21 = mmc_mk_box2(5, &Values_Value_STRING__desc, _senddata);
tmpMeta22 = mmc_mk_box2(5, &Values_Value_STRING__desc, _gcc);
tmpMeta23 = mmc_mk_box2(5, &Values_Value_STRING__desc, _gccVersion);
tmpMeta24 = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(_gcc_res));
tmpMeta25 = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(_have_corba));
tmpMeta26 = mmc_mk_box2(5, &Values_Value_STRING__desc, _confcmd);
tmpMeta8 = mmc_mk_cons(tmpMeta9, mmc_mk_cons(tmpMeta10, mmc_mk_cons(tmpMeta11, mmc_mk_cons(tmpMeta12, mmc_mk_cons(tmpMeta13, mmc_mk_cons(tmpMeta14, mmc_mk_cons(tmpMeta15, mmc_mk_cons(tmpMeta16, mmc_mk_cons(tmpMeta17, mmc_mk_cons(tmpMeta18, mmc_mk_cons(tmpMeta19, mmc_mk_cons(tmpMeta20, mmc_mk_cons(tmpMeta21, mmc_mk_cons(tmpMeta22, mmc_mk_cons(tmpMeta23, mmc_mk_cons(tmpMeta24, mmc_mk_cons(tmpMeta25, mmc_mk_cons(tmpMeta26, MMC_REFSTRUCTLIT(mmc_nil)))))))))))))))))));
_vals = tmpMeta8;
tmpMeta27 = mmc_mk_box5(13, &Values_Value_RECORD__desc, _OMC_LIT63, _vals, _vars, mmc_mk_integer(((modelica_integer) -1)));
_res = tmpMeta27;
_return: OMC_LABEL_UNUSED
return _res;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_getClassNames(threadData_t *threadData, modelica_metatype _args)
{
modelica_metatype _res = NULL;
modelica_metatype _path = NULL;
modelica_string _clsName = NULL;
modelica_boolean _recursive;
modelica_boolean _qualified;
modelica_boolean _sort;
modelica_boolean _builtin;
modelica_boolean _protects;
modelica_boolean _constants;
modelica_metatype _p = NULL;
modelica_metatype _paths = NULL;
modelica_metatype tmpMeta1;
modelica_metatype tmpMeta2;
modelica_metatype tmpMeta3;
modelica_metatype tmpMeta4;
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_integer tmp9;
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
modelica_integer tmp13;
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
modelica_metatype tmpMeta16;
modelica_integer tmp17;
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
modelica_metatype tmpMeta20;
modelica_integer tmp21;
modelica_metatype tmpMeta22;
modelica_metatype tmpMeta23;
modelica_metatype tmpMeta24;
modelica_integer tmp25;
modelica_metatype tmpMeta26;
modelica_metatype tmpMeta27;
modelica_metatype tmpMeta28;
modelica_integer tmp29;
modelica_metatype tmpMeta30;
modelica_metatype tmpMeta31;
modelica_metatype tmpMeta32;
modelica_metatype tmpMeta36;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta1 = _args;
if (listEmpty(tmpMeta1)) MMC_THROW_INTERNAL();
tmpMeta2 = MMC_CAR(tmpMeta1);
tmpMeta3 = MMC_CDR(tmpMeta1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta2,12,1) == 0) MMC_THROW_INTERNAL();
tmpMeta4 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta2), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta4,0,1) == 0) MMC_THROW_INTERNAL();
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta4), 2));
if (listEmpty(tmpMeta3)) MMC_THROW_INTERNAL();
tmpMeta6 = MMC_CAR(tmpMeta3);
tmpMeta7 = MMC_CDR(tmpMeta3);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,3,1) == 0) MMC_THROW_INTERNAL();
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 2));
tmp9 = mmc_unbox_integer(tmpMeta8);
if (listEmpty(tmpMeta7)) MMC_THROW_INTERNAL();
tmpMeta10 = MMC_CAR(tmpMeta7);
tmpMeta11 = MMC_CDR(tmpMeta7);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta10,3,1) == 0) MMC_THROW_INTERNAL();
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta10), 2));
tmp13 = mmc_unbox_integer(tmpMeta12);
if (listEmpty(tmpMeta11)) MMC_THROW_INTERNAL();
tmpMeta14 = MMC_CAR(tmpMeta11);
tmpMeta15 = MMC_CDR(tmpMeta11);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta14,3,1) == 0) MMC_THROW_INTERNAL();
tmpMeta16 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta14), 2));
tmp17 = mmc_unbox_integer(tmpMeta16);
if (listEmpty(tmpMeta15)) MMC_THROW_INTERNAL();
tmpMeta18 = MMC_CAR(tmpMeta15);
tmpMeta19 = MMC_CDR(tmpMeta15);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta18,3,1) == 0) MMC_THROW_INTERNAL();
tmpMeta20 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta18), 2));
tmp21 = mmc_unbox_integer(tmpMeta20);
if (listEmpty(tmpMeta19)) MMC_THROW_INTERNAL();
tmpMeta22 = MMC_CAR(tmpMeta19);
tmpMeta23 = MMC_CDR(tmpMeta19);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta22,3,1) == 0) MMC_THROW_INTERNAL();
tmpMeta24 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta22), 2));
tmp25 = mmc_unbox_integer(tmpMeta24);
if (listEmpty(tmpMeta23)) MMC_THROW_INTERNAL();
tmpMeta26 = MMC_CAR(tmpMeta23);
tmpMeta27 = MMC_CDR(tmpMeta23);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta26,3,1) == 0) MMC_THROW_INTERNAL();
tmpMeta28 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta26), 2));
tmp29 = mmc_unbox_integer(tmpMeta28);
if (!listEmpty(tmpMeta27)) MMC_THROW_INTERNAL();
_path = tmpMeta5;
_recursive = tmp9;
_qualified = tmp13;
_sort = tmp17;
_builtin = tmp21;
_protects = tmp25;
_constants = tmp29;
_p = omc_SymbolTable_getAbsyn(threadData);
if(_builtin)
{
_p = omc_InteractiveUtil_updateProgram(threadData, _p, omc_FBuiltin_getInitialFunctions(threadData, NULL), 0);
}
if(omc_AbsynUtil_pathEqual(threadData, _path, _OMC_LIT65))
{
if(_recursive)
{
tmpMeta30 = MMC_REFSTRUCTLIT(mmc_nil);
omc_InteractiveUtil_getClassNamesRecursive(threadData, mmc_mk_none(), _p, _protects, _constants, tmpMeta30 ,&_paths);
_paths = listReverseInPlace(_paths);
}
else
{
_paths = omc_Interactive_getTopClassnames(threadData, _p);
}
}
else
{
if(_recursive)
{
tmpMeta31 = MMC_REFSTRUCTLIT(mmc_nil);
omc_InteractiveUtil_getClassNamesRecursive(threadData, mmc_mk_some(_path), _p, _protects, _constants, tmpMeta31 ,&_paths);
_paths = listReverseInPlace(_paths);
}
else
{
_paths = omc_Interactive_getClassnamesInPath(threadData, _path, _p, _protects, _constants);
if(_qualified)
{
{
modelica_metatype __omcQ_24tmpVar3;
modelica_metatype* tmp33;
modelica_metatype tmpMeta34;
modelica_metatype __omcQ_24tmpVar2;
modelica_integer tmp35;
modelica_metatype _p_loopVar = 0;
modelica_metatype _p;
_p_loopVar = _paths;
tmpMeta34 = MMC_REFSTRUCTLIT(mmc_nil);
__omcQ_24tmpVar3 = tmpMeta34;
tmp33 = &__omcQ_24tmpVar3;
while(1) {
tmp35 = 1;
if (!listEmpty(_p_loopVar)) {
_p = MMC_CAR(_p_loopVar);
_p_loopVar = MMC_CDR(_p_loopVar);
tmp35--;
}
if (tmp35 == 0) {
__omcQ_24tmpVar2 = omc_AbsynUtil_joinPaths(threadData, _path, _p);
*tmp33 = mmc_mk_cons(__omcQ_24tmpVar2,0);
tmp33 = &MMC_CDR(*tmp33);
} else if (tmp35 == 1) {
break;
} else {
MMC_THROW_INTERNAL();
}
}
*tmp33 = mmc_mk_nil();
tmpMeta32 = __omcQ_24tmpVar3;
}
_paths = tmpMeta32;
}
}
}
if(_sort)
{
_paths = omc_List_sort(threadData, _paths, boxvar_AbsynUtil_pathGe);
}
{
modelica_metatype __omcQ_24tmpVar5;
modelica_metatype* tmp37;
modelica_metatype tmpMeta38;
modelica_metatype __omcQ_24tmpVar4;
modelica_integer tmp39;
modelica_metatype _p_loopVar = 0;
modelica_metatype _p;
_p_loopVar = _paths;
tmpMeta38 = MMC_REFSTRUCTLIT(mmc_nil);
__omcQ_24tmpVar5 = tmpMeta38;
tmp37 = &__omcQ_24tmpVar5;
while(1) {
tmp39 = 1;
if (!listEmpty(_p_loopVar)) {
_p = MMC_CAR(_p_loopVar);
_p_loopVar = MMC_CDR(_p_loopVar);
tmp39--;
}
if (tmp39 == 0) {
__omcQ_24tmpVar4 = omc_ValuesUtil_makeCodeTypeName(threadData, _p);
*tmp37 = mmc_mk_cons(__omcQ_24tmpVar4,0);
tmp37 = &MMC_CDR(*tmp37);
} else if (tmp39 == 1) {
break;
} else {
MMC_THROW_INTERNAL();
}
}
*tmp37 = mmc_mk_nil();
tmpMeta36 = __omcQ_24tmpVar5;
}
_res = omc_ValuesUtil_makeArray(threadData, tmpMeta36);
_return: OMC_LABEL_UNUSED
return _res;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_listFile(threadData_t *threadData, modelica_metatype _args)
{
modelica_metatype _res = NULL;
modelica_string _str = NULL;
modelica_metatype _path = NULL;
modelica_metatype _className = NULL;
modelica_boolean _nested;
modelica_integer _access;
modelica_metatype _absynClass = NULL;
modelica_metatype _restriction = NULL;
modelica_string tmp1 = 0;
modelica_metatype tmpMeta36;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;
tmp4_1 = _args;
{
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_integer tmp13;
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta19;
modelica_metatype tmpMeta20;
modelica_integer tmp21;
modelica_metatype tmpMeta22;
modelica_metatype tmpMeta23;
modelica_metatype tmpMeta24;
modelica_metatype tmpMeta25;
modelica_metatype tmpMeta26;
modelica_metatype tmpMeta27;
modelica_metatype tmpMeta33;
modelica_metatype tmpMeta34;
modelica_metatype tmpMeta35;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_1);
tmpMeta7 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,12,1) == 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));
if (listEmpty(tmpMeta7)) goto tmp3_end;
tmpMeta10 = MMC_CAR(tmpMeta7);
tmpMeta11 = MMC_CDR(tmpMeta7);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta10,3,1) == 0) goto tmp3_end;
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta10), 2));
tmp13 = mmc_unbox_integer(tmpMeta12);
if (!listEmpty(tmpMeta11)) goto tmp3_end;
_className = tmpMeta9;
_nested = tmp13;
{
modelica_metatype tmp17_1;
tmp17_1 = _className;
{
volatile mmc_switch_type tmp17;
int tmp18;
tmp17 = 0;
for (; tmp17 < 2; tmp17++) {
switch (MMC_SWITCH_CAST(tmp17)) {
case 0: {
if (mmc__uniontype__metarecord__typedef__equal(tmp17_1,2,1) == 0) goto tmp16_end;
tmpMeta14 = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_className), 2)));
goto tmp16_done;
}
case 1: {
tmpMeta14 = _className;
goto tmp16_done;
}
}
goto tmp16_end;
tmp16_end: ;
}
goto goto_15;
goto_15:;
goto goto_2;
goto tmp16_done;
tmp16_done:;
}
}
_path = tmpMeta14;
tmpMeta19 = omc_Interactive_checkAccessAnnotationAndEncryption(threadData, _path, omc_SymbolTable_getAbsyn(threadData));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta19,4,2) == 0) goto goto_2;
tmpMeta20 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta19), 3));
tmp21 = mmc_unbox_integer(tmpMeta20);
_access = tmp21;
tmpMeta22 = omc_InteractiveUtil_getPathedClassInProgram(threadData, _className, omc_SymbolTable_getAbsyn(threadData), 0, 0);
tmpMeta23 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta22), 6));
tmpMeta24 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta22), 10));
tmpMeta25 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta24), 2));
_absynClass = tmpMeta22;
_restriction = tmpMeta23;
_str = tmpMeta25;
_absynClass = (_nested?_absynClass:omc_AbsynUtil_filterNestedClasses(threadData, _absynClass));
if(((_access >= ((modelica_integer) 7)) || ((_access >= ((modelica_integer) 5)) && (!omc_AbsynUtil_isPackageRestriction(threadData, _restriction)))))
{
tmpMeta26 = mmc_mk_cons(_absynClass, MMC_REFSTRUCTLIT(mmc_nil));
{
modelica_metatype tmp30_1;
tmp30_1 = _path;
{
volatile mmc_switch_type tmp30;
int tmp31;
tmp30 = 0;
for (; tmp30 < 2; tmp30++) {
switch (MMC_SWITCH_CAST(tmp30)) {
case 0: {
if (mmc__uniontype__metarecord__typedef__equal(tmp30_1,1,1) == 0) goto tmp29_end;
tmpMeta27 = _OMC_LIT71;
goto tmp29_done;
}
case 1: {
modelica_metatype tmpMeta32;
tmpMeta32 = mmc_mk_box2(3, &Absyn_Within_WITHIN__desc, omc_AbsynUtil_stripLast(threadData, _path));
tmpMeta27 = tmpMeta32;
goto tmp29_done;
}
}
goto tmp29_end;
tmp29_end: ;
}
goto goto_28;
goto_28:;
goto goto_2;
goto tmp29_done;
tmp29_done:;
}
}tmpMeta33 = mmc_mk_box3(3, &Absyn_Program_PROGRAM__desc, tmpMeta26, tmpMeta27);
tmpMeta34 = mmc_mk_box2(3, &Dump_DumpOptions_DUMPOPTIONS__desc, _str);
_str = omc_Dump_unparseStr(threadData, tmpMeta33, 0, tmpMeta34);
}
else
{
tmpMeta35 = MMC_REFSTRUCTLIT(mmc_nil);
omc_Error_addMessage(threadData, _OMC_LIT70, tmpMeta35);
_str = _OMC_LIT52;
}
tmp1 = _str;
goto tmp3_done;
}
case 1: {
tmp1 = _OMC_LIT52;
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:;
}
}
_str = tmp1;
tmpMeta36 = mmc_mk_box2(5, &Values_Value_STRING__desc, _str);
_res = tmpMeta36;
_return: OMC_LABEL_UNUSED
return _res;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_listClass(threadData_t *threadData, modelica_metatype _args)
{
modelica_metatype _res = NULL;
modelica_string _str = NULL;
modelica_string _name = NULL;
modelica_metatype _p = NULL;
modelica_metatype _scodeP = NULL;
modelica_metatype _absynClass = NULL;
modelica_metatype _cl = NULL;
modelica_metatype _path = NULL;
modelica_metatype _className = NULL;
modelica_boolean _interface_only;
modelica_boolean _short_only;
modelica_metatype _dumpOpt = NULL;
modelica_string tmp1 = 0;
modelica_metatype tmpMeta52;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_dumpOpt = _OMC_LIT72;
{
volatile modelica_metatype tmp4_1;
tmp4_1 = _args;
{
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: {
modelica_boolean tmp6;
modelica_metatype tmpMeta7;
_p = omc_SymbolTable_getAbsyn(threadData);
tmp6 = omc_Interactive_astContainsEncryptedClass(threadData, _p);
if (1 != tmp6) goto goto_2;
tmpMeta7 = MMC_REFSTRUCTLIT(mmc_nil);
omc_Error_addMessage(threadData, _OMC_LIT70, tmpMeta7);
tmp1 = _OMC_LIT52;
goto tmp3_done;
}
case 1: {
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_integer tmp16;
modelica_metatype tmpMeta17;
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
modelica_integer tmp20;
modelica_metatype tmpMeta21;
modelica_metatype tmpMeta22;
modelica_metatype tmpMeta23;
modelica_string tmp24 = 0;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta8 = MMC_CAR(tmp4_1);
tmpMeta9 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta8,12,1) == 0) goto tmp3_end;
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta8), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta10,0,1) == 0) goto tmp3_end;
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta10), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta11,1,1) == 0) goto tmp3_end;
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta11), 2));
if (16 != MMC_STRLEN(tmpMeta12) || strcmp(MMC_STRINGDATA(_OMC_LIT64), MMC_STRINGDATA(tmpMeta12)) != 0) goto tmp3_end;
if (listEmpty(tmpMeta9)) goto tmp3_end;
tmpMeta13 = MMC_CAR(tmpMeta9);
tmpMeta14 = MMC_CDR(tmpMeta9);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta13,3,1) == 0) goto tmp3_end;
tmpMeta15 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta13), 2));
tmp16 = mmc_unbox_integer(tmpMeta15);
if (0 != tmp16) goto tmp3_end;
if (listEmpty(tmpMeta14)) goto tmp3_end;
tmpMeta17 = MMC_CAR(tmpMeta14);
tmpMeta18 = MMC_CDR(tmpMeta14);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta17,3,1) == 0) goto tmp3_end;
tmpMeta19 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta17), 2));
tmp20 = mmc_unbox_integer(tmpMeta19);
if (0 != tmp20) goto tmp3_end;
if (listEmpty(tmpMeta18)) goto tmp3_end;
tmpMeta21 = MMC_CAR(tmpMeta18);
tmpMeta22 = MMC_CDR(tmpMeta18);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta21,4,2) == 0) goto tmp3_end;
tmpMeta23 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta21), 2));
if (!listEmpty(tmpMeta22)) goto tmp3_end;
_path = tmpMeta23;
{
modelica_string tmp27_1;
tmp27_1 = omc_AbsynUtil_pathLastIdent(threadData, _path);
{
volatile mmc_switch_type tmp27;
int tmp28;
tmp27 = 0;
for (; tmp27 < 5; tmp27++) {
switch (MMC_SWITCH_CAST(tmp27)) {
case 0: {
if (5 != MMC_STRLEN(tmp27_1) || strcmp(MMC_STRINGDATA(_OMC_LIT75), MMC_STRINGDATA(tmp27_1)) != 0) goto tmp26_end;
tmp24 = omc_Dump_unparseStr(threadData, omc_SymbolTable_getAbsyn(threadData), 0, _OMC_LIT73);
goto tmp26_done;
}
case 1: {
if (5 != MMC_STRLEN(tmp27_1) || strcmp(MMC_STRINGDATA(_OMC_LIT76), MMC_STRINGDATA(tmp27_1)) != 0) goto tmp26_end;
tmp24 = omc_SCodeDump_programStr(threadData, omc_SymbolTable_getSCode(threadData), _OMC_LIT74);
goto tmp26_done;
}
case 2: {
if (21 != MMC_STRLEN(tmp27_1) || strcmp(MMC_STRINGDATA(_OMC_LIT77), MMC_STRINGDATA(tmp27_1)) != 0) goto tmp26_end;
tmp24 = omc_SCodeDump_programStr(threadData, omc_SymbolTable_getSCode(threadData), _OMC_LIT72);
goto tmp26_done;
}
case 3: {
if (8 != MMC_STRLEN(tmp27_1) || strcmp(MMC_STRINGDATA(_OMC_LIT78), MMC_STRINGDATA(tmp27_1)) != 0) goto tmp26_end;
tmp24 = omc_System_anyStringCode(threadData, omc_SymbolTable_getAbsyn(threadData));
goto tmp26_done;
}
case 4: {
tmp24 = _OMC_LIT52;
goto tmp26_done;
}
}
goto tmp26_end;
tmp26_end: ;
}
goto goto_25;
goto_25:;
goto goto_2;
goto tmp26_done;
tmp26_done:;
}
}tmp1 = tmp24;
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta29;
modelica_metatype tmpMeta30;
modelica_metatype tmpMeta31;
modelica_metatype tmpMeta32;
modelica_metatype tmpMeta33;
modelica_metatype tmpMeta34;
modelica_metatype tmpMeta35;
modelica_integer tmp36;
modelica_metatype tmpMeta37;
modelica_metatype tmpMeta38;
modelica_metatype tmpMeta39;
modelica_integer tmp40;
modelica_metatype tmpMeta41;
modelica_metatype tmpMeta42;
modelica_metatype tmpMeta43;
modelica_boolean tmp44;
modelica_metatype tmpMeta45;
modelica_metatype tmpMeta46;
modelica_string tmp47 = 0;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta29 = MMC_CAR(tmp4_1);
tmpMeta30 = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta29,12,1) == 0) goto tmp3_end;
tmpMeta31 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta29), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta31,0,1) == 0) goto tmp3_end;
tmpMeta32 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta31), 2));
if (listEmpty(tmpMeta30)) goto tmp3_end;
tmpMeta33 = MMC_CAR(tmpMeta30);
tmpMeta34 = MMC_CDR(tmpMeta30);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta33,3,1) == 0) goto tmp3_end;
tmpMeta35 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta33), 2));
tmp36 = mmc_unbox_integer(tmpMeta35);
if (listEmpty(tmpMeta34)) goto tmp3_end;
tmpMeta37 = MMC_CAR(tmpMeta34);
tmpMeta38 = MMC_CDR(tmpMeta34);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta37,3,1) == 0) goto tmp3_end;
tmpMeta39 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta37), 2));
tmp40 = mmc_unbox_integer(tmpMeta39);
if (listEmpty(tmpMeta38)) goto tmp3_end;
tmpMeta41 = MMC_CAR(tmpMeta38);
tmpMeta42 = MMC_CDR(tmpMeta38);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta41,4,2) == 0) goto tmp3_end;
tmpMeta43 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta41), 2));
if (!listEmpty(tmpMeta42)) goto tmp3_end;
_className = tmpMeta32;
_interface_only = tmp36;
_short_only = tmp40;
_path = tmpMeta43;
tmp44 = valueEq(_OMC_LIT65, _className);
if (0 != tmp44) goto goto_2;
_p = omc_SymbolTable_getAbsyn(threadData);
_scodeP = omc_SymbolTable_getSCode(threadData);
_absynClass = omc_InteractiveUtil_getPathedClassInProgram(threadData, _className, _p, 0, 0);
_absynClass = (_interface_only?omc_AbsynUtil_getFunctionInterface(threadData, _absynClass):_absynClass);
_absynClass = (_short_only?omc_AbsynUtil_getShortClass(threadData, _absynClass):_absynClass);
tmpMeta45 = mmc_mk_cons(_absynClass, MMC_REFSTRUCTLIT(mmc_nil));
tmpMeta46 = mmc_mk_box3(3, &Absyn_Program_PROGRAM__desc, tmpMeta45, _OMC_LIT71);
_p = tmpMeta46;
_cl = omc_FBuiltin_getElementWithPathCheckBuiltin(threadData, _scodeP, _className);
{
modelica_string tmp50_1;
tmp50_1 = omc_AbsynUtil_pathLastIdent(threadData, _path);
{
volatile mmc_switch_type tmp50;
int tmp51;
tmp50 = 0;
for (; tmp50 < 5; tmp50++) {
switch (MMC_SWITCH_CAST(tmp50)) {
case 0: {
if (5 != MMC_STRLEN(tmp50_1) || strcmp(MMC_STRINGDATA(_OMC_LIT75), MMC_STRINGDATA(tmp50_1)) != 0) goto tmp49_end;
tmp47 = omc_Dump_unparseStr(threadData, _p, 0, _OMC_LIT73);
goto tmp49_done;
}
case 1: {
if (5 != MMC_STRLEN(tmp50_1) || strcmp(MMC_STRINGDATA(_OMC_LIT76), MMC_STRINGDATA(tmp50_1)) != 0) goto tmp49_end;
tmp47 = omc_SCodeDump_unparseElementStr(threadData, _cl, _OMC_LIT74);
goto tmp49_done;
}
case 2: {
if (21 != MMC_STRLEN(tmp50_1) || strcmp(MMC_STRINGDATA(_OMC_LIT77), MMC_STRINGDATA(tmp50_1)) != 0) goto tmp49_end;
tmp47 = omc_SCodeDump_unparseElementStr(threadData, _cl, _OMC_LIT72);
goto tmp49_done;
}
case 3: {
if (8 != MMC_STRLEN(tmp50_1) || strcmp(MMC_STRINGDATA(_OMC_LIT78), MMC_STRINGDATA(tmp50_1)) != 0) goto tmp49_end;
tmp47 = omc_System_anyStringCode(threadData, _p);
goto tmp49_done;
}
case 4: {
tmp47 = _OMC_LIT52;
goto tmp49_done;
}
}
goto tmp49_end;
tmp49_end: ;
}
goto goto_48;
goto_48:;
goto goto_2;
goto tmp49_done;
tmp49_done:;
}
}tmp1 = tmp47;
goto tmp3_done;
}
case 3: {
tmp1 = _OMC_LIT52;
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:;
}
}
_str = tmp1;
tmpMeta52 = mmc_mk_box2(5, &Values_Value_STRING__desc, _str);
_res = tmpMeta52;
_return: OMC_LABEL_UNUSED
return _res;
}
PROTECTED_FUNCTION_STATIC modelica_boolean omc_CevalScript_unZipEncryptedPackageAndCheckFile(threadData_t *threadData, modelica_string _inWorkdir, modelica_string _filename, modelica_boolean _skipUnzip, modelica_string *out_outFilename)
{
modelica_boolean _success;
modelica_string _outFilename = NULL;
modelica_string _workdir = NULL;
modelica_string _s1 = NULL;
modelica_string _s2 = NULL;
modelica_string _s3 = NULL;
modelica_string _filename_1 = NULL;
modelica_string _filename1 = NULL;
modelica_string _filename2 = NULL;
modelica_string _filename3 = NULL;
modelica_string _filename4 = NULL;
modelica_string _str = NULL;
modelica_string _str1 = NULL;
modelica_string _str2 = NULL;
modelica_string _str3 = NULL;
modelica_string _str4 = NULL;
modelica_metatype tmpMeta1;
modelica_metatype tmpMeta2;
modelica_metatype tmpMeta3;
modelica_metatype tmpMeta4;
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
modelica_metatype tmpMeta16;
modelica_metatype tmpMeta17;
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
modelica_metatype tmpMeta20;
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;
modelica_metatype tmpMeta34;
modelica_metatype tmpMeta35;
modelica_metatype tmpMeta36;
modelica_metatype tmpMeta37;
modelica_metatype tmpMeta38;
modelica_metatype tmpMeta39;
modelica_metatype tmpMeta40;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_success = 0;
_outFilename = _OMC_LIT52;
if(omc_System_regularFileExists(threadData, _filename))
{
if(omc_Util_endsWith(threadData, _filename, _OMC_LIT99))
{
_workdir = (omc_System_directoryExists(threadData, _inWorkdir)?_inWorkdir:omc_System_pwd(threadData));
tmpMeta1 = stringAppend(_OMC_LIT96,_workdir);
tmpMeta2 = stringAppend(tmpMeta1,_OMC_LIT97);
tmpMeta3 = stringAppend(tmpMeta2,_filename);
tmpMeta4 = stringAppend(tmpMeta3,_OMC_LIT98);
if((_skipUnzip || (((modelica_integer) 0) == omc_System_systemCall(threadData, tmpMeta4, _OMC_LIT52))))
{
_s1 = omc_System_basename(threadData, _filename);
_s2 = omc_Util_removeLast4Char(threadData, _s1);
_s3 = listGet(omc_Util_stringSplitAtChar(threadData, _s2, _OMC_LIT88), ((modelica_integer) 1));
tmpMeta5 = stringAppend(_workdir,_OMC_LIT0);
tmpMeta6 = stringAppend(tmpMeta5,_s2);
tmpMeta7 = stringAppend(tmpMeta6,_OMC_LIT89);
_filename1 = tmpMeta7;
tmpMeta8 = stringAppend(_workdir,_OMC_LIT0);
tmpMeta9 = stringAppend(tmpMeta8,_s2);
tmpMeta10 = stringAppend(tmpMeta9,_OMC_LIT0);
tmpMeta11 = stringAppend(tmpMeta10,_s2);
tmpMeta12 = stringAppend(tmpMeta11,_OMC_LIT90);
_filename2 = tmpMeta12;
tmpMeta13 = stringAppend(_workdir,_OMC_LIT0);
tmpMeta14 = stringAppend(tmpMeta13,_s3);
tmpMeta15 = stringAppend(tmpMeta14,_OMC_LIT89);
_filename3 = tmpMeta15;
tmpMeta16 = stringAppend(_workdir,_OMC_LIT0);
tmpMeta17 = stringAppend(tmpMeta16,_s3);
tmpMeta18 = stringAppend(tmpMeta17,_OMC_LIT0);
tmpMeta19 = stringAppend(tmpMeta18,_s3);
tmpMeta20 = stringAppend(tmpMeta19,_OMC_LIT90);
_filename4 = tmpMeta20;
if(omc_System_regularFileExists(threadData, _filename1))
{
_filename_1 = _filename1;
}
else
{
if(omc_System_regularFileExists(threadData, _filename2))
{
_filename_1 = _filename2;
}
else
{
if(omc_System_regularFileExists(threadData, _filename3))
{
_filename_1 = _filename3;
}
else
{
_filename_1 = _filename4;
}
}
}
tmpMeta21 = stringAppend(_workdir,_OMC_LIT0);
tmpMeta22 = stringAppend(tmpMeta21,_s2);
tmpMeta23 = stringAppend(tmpMeta22,_OMC_LIT91);
_str1 = tmpMeta23;
tmpMeta24 = stringAppend(_workdir,_OMC_LIT0);
tmpMeta25 = stringAppend(tmpMeta24,_s2);
tmpMeta26 = stringAppend(tmpMeta25,_OMC_LIT0);
tmpMeta27 = stringAppend(tmpMeta26,_s2);
tmpMeta28 = stringAppend(tmpMeta27,_OMC_LIT92);
_str2 = tmpMeta28;
tmpMeta29 = stringAppend(_workdir,_OMC_LIT0);
tmpMeta30 = stringAppend(tmpMeta29,_s3);
tmpMeta31 = stringAppend(tmpMeta30,_OMC_LIT91);
_str3 = tmpMeta31;
tmpMeta32 = stringAppend(_workdir,_OMC_LIT0);
tmpMeta33 = stringAppend(tmpMeta32,_s3);
tmpMeta34 = stringAppend(tmpMeta33,_OMC_LIT0);
tmpMeta35 = stringAppend(tmpMeta34,_s3);
tmpMeta36 = stringAppend(tmpMeta35,_OMC_LIT92);
_str4 = tmpMeta36;
if(omc_System_regularFileExists(threadData, _str1))
{
_str = _str1;
}
else
{
if(omc_System_regularFileExists(threadData, _str2))
{
_str = _str2;
}
else
{
if(omc_System_regularFileExists(threadData, _str3))
{
_str = _str3;
}
else
{
_str = _str4;
}
}
}
_filename_1 = (omc_System_regularFileExists(threadData, _filename_1)?_filename_1:_str);
if(omc_System_regularFileExists(threadData, _filename_1))
{
_success = 1;
_outFilename = _filename_1;
}
else
{
tmpMeta37 = mmc_mk_cons(_filename1, mmc_mk_cons(_filename2, mmc_mk_cons(_filename3, mmc_mk_cons(_filename4, mmc_mk_cons(_str1, mmc_mk_cons(_str2, mmc_mk_cons(_str3, mmc_mk_cons(_str4, MMC_REFSTRUCTLIT(mmc_nil)))))))));
omc_Error_addMessage(threadData, _OMC_LIT95, tmpMeta37);
}
}
else
{
tmpMeta38 = mmc_mk_cons(_filename, MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addMessage(threadData, _OMC_LIT87, tmpMeta38);
}
}
else
{
tmpMeta39 = mmc_mk_cons(_filename, MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addMessage(threadData, _OMC_LIT84, tmpMeta39);
}
}
else
{
tmpMeta40 = mmc_mk_cons(_filename, MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addMessage(threadData, _OMC_LIT81, tmpMeta40);
}
_return: OMC_LABEL_UNUSED
if (out_outFilename) { *out_outFilename = _outFilename; }
return _success;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_unZipEncryptedPackageAndCheckFile(threadData_t *threadData, modelica_metatype _inWorkdir, modelica_metatype _filename, modelica_metatype _skipUnzip, modelica_metatype *out_outFilename)
{
modelica_integer tmp1;
modelica_boolean _success;
modelica_metatype out_success;
tmp1 = mmc_unbox_integer(_skipUnzip);
_success = omc_CevalScript_unZipEncryptedPackageAndCheckFile(threadData, _inWorkdir, _filename, tmp1, out_outFilename);
out_success = mmc_mk_icon(_success);
return out_success;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_CevalScript_findModelicaPath2(threadData_t *threadData, modelica_string _mp, modelica_metatype _inames, modelica_string _version, modelica_boolean _b)
{
modelica_string _basePath = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;volatile modelica_boolean tmp4_2;
tmp4_1 = _inames;
tmp4_2 = _b;
{
modelica_metatype _names = NULL;
modelica_string _name = NULL;
modelica_string _file = 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;
modelica_boolean tmp8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
modelica_boolean tmp13;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_1);
tmpMeta7 = MMC_CDR(tmp4_1);
_name = tmpMeta6;
_names = tmpMeta7;
tmp8 = (stringEqual(_version, _OMC_LIT52));
if (0 != tmp8) goto goto_2;
tmpMeta9 = stringAppend(_mp,_OMC_LIT0);
tmpMeta10 = stringAppend(tmpMeta9,_name);
tmpMeta11 = stringAppend(tmpMeta10,_OMC_LIT88);
tmpMeta12 = stringAppend(tmpMeta11,_version);
_file = tmpMeta12;
tmp13 = omc_System_directoryExists(threadData, _file);
if (1 != tmp13) goto goto_2;
tmp1 = omc_CevalScript_findModelicaPath2(threadData, _file, _names, _OMC_LIT52, 1);
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
modelica_boolean tmp16;
modelica_metatype tmpMeta17;
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
modelica_metatype tmpMeta20;
modelica_metatype tmpMeta21;
modelica_boolean tmp22;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta14 = MMC_CAR(tmp4_1);
tmpMeta15 = MMC_CDR(tmp4_1);
_name = tmpMeta14;
tmp16 = (stringEqual(_version, _OMC_LIT52));
if (0 != tmp16) goto goto_2;
tmpMeta17 = stringAppend(_mp,_OMC_LIT0);
tmpMeta18 = stringAppend(tmpMeta17,_name);
tmpMeta19 = stringAppend(tmpMeta18,_OMC_LIT88);
tmpMeta20 = stringAppend(tmpMeta19,_version);
tmpMeta21 = stringAppend(tmpMeta20,_OMC_LIT92);
_file = tmpMeta21;
tmp22 = omc_System_regularFileExists(threadData, _file);
if (1 != tmp22) goto goto_2;
tmp1 = _mp;
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta23;
modelica_metatype tmpMeta24;
modelica_metatype tmpMeta25;
modelica_metatype tmpMeta26;
modelica_boolean tmp27;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta23 = MMC_CAR(tmp4_1);
tmpMeta24 = MMC_CDR(tmp4_1);
_name = tmpMeta23;
_names = tmpMeta24;
tmpMeta25 = stringAppend(_mp,_OMC_LIT0);
tmpMeta26 = stringAppend(tmpMeta25,_name);
_file = tmpMeta26;
tmp27 = omc_System_directoryExists(threadData, _file);
if (1 != tmp27) goto goto_2;
tmp1 = omc_CevalScript_findModelicaPath2(threadData, _file, _names, _OMC_LIT52, 1);
goto tmp3_done;
}
case 3: {
modelica_metatype tmpMeta28;
modelica_metatype tmpMeta29;
modelica_metatype tmpMeta30;
modelica_metatype tmpMeta31;
modelica_metatype tmpMeta32;
modelica_boolean tmp33;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta28 = MMC_CAR(tmp4_1);
tmpMeta29 = MMC_CDR(tmp4_1);
_name = tmpMeta28;
tmpMeta30 = stringAppend(_mp,_OMC_LIT0);
tmpMeta31 = stringAppend(tmpMeta30,_name);
tmpMeta32 = stringAppend(tmpMeta31,_OMC_LIT92);
_file = tmpMeta32;
tmp33 = omc_System_regularFileExists(threadData, _file);
if (1 != tmp33) goto goto_2;
tmp1 = _mp;
goto tmp3_done;
}
case 4: {
if (1 != tmp4_2) goto tmp3_end;
tmp1 = _mp;
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:;
}
}
_basePath = tmp1;
_return: OMC_LABEL_UNUSED
return _basePath;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_findModelicaPath2(threadData_t *threadData, modelica_metatype _mp, modelica_metatype _inames, modelica_metatype _version, modelica_metatype _b)
{
modelica_integer tmp1;
modelica_string _basePath = NULL;
tmp1 = mmc_unbox_integer(_b);
_basePath = omc_CevalScript_findModelicaPath2(threadData, _mp, _inames, _version, tmp1);
return _basePath;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_CevalScript_findModelicaPath(threadData_t *threadData, modelica_metatype _imps, modelica_metatype _names, modelica_string _version)
{
modelica_string _basePath = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;
tmp4_1 = _imps;
{
modelica_string _mp = NULL;
modelica_metatype _mps = 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 (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_1);
tmpMeta7 = MMC_CDR(tmp4_1);
_mp = tmpMeta6;
tmp1 = omc_CevalScript_findModelicaPath2(threadData, _mp, _names, _version, 0);
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta8 = MMC_CAR(tmp4_1);
tmpMeta9 = MMC_CDR(tmp4_1);
_mps = tmpMeta9;
tmp1 = omc_CevalScript_findModelicaPath(threadData, _mps, _names, _version);
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:;
}
}
_basePath = tmp1;
_return: OMC_LABEL_UNUSED
return _basePath;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_CevalScript_getBasePathFromUri(threadData_t *threadData, modelica_string _scheme, modelica_string _iname, modelica_metatype _program, modelica_string _modelicaPath, modelica_boolean _printError)
{
modelica_string _basePath = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_string tmp4_1;volatile modelica_string tmp4_2;volatile modelica_string tmp4_3;volatile modelica_boolean tmp4_4;
tmp4_1 = _scheme;
tmp4_2 = _iname;
tmp4_3 = _modelicaPath;
tmp4_4 = _printError;
{
modelica_boolean _isDir;
modelica_metatype _mps = NULL;
modelica_metatype _names = NULL;
modelica_string _gd = NULL;
modelica_string _mp = NULL;
modelica_string _str = NULL;
modelica_string _name = NULL;
modelica_string _fileName = 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: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
if (11 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT108), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
_name = tmp4_2;
tmpMeta6 = omc_System_strtok(threadData, _name, _OMC_LIT100);
if (listEmpty(tmpMeta6)) goto goto_2;
tmpMeta7 = MMC_CAR(tmpMeta6);
tmpMeta8 = MMC_CDR(tmpMeta6);
_name = tmpMeta7;
_names = tmpMeta8;
tmpMeta9 = mmc_mk_box2(4, &Absyn_Path_IDENT__desc, _name);
tmpMeta10 = omc_InteractiveUtil_getPathedClassInProgram(threadData, tmpMeta9, _program, 0, 0);
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta10), 10));
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta11), 2));
_fileName = tmpMeta12;
_mp = omc_System_dirname(threadData, _fileName);
tmp1 = omc_CevalScript_findModelicaPath2(threadData, _mp, _names, _OMC_LIT52, 1);
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta13;
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
modelica_boolean tmp16;
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
modelica_boolean tmp20;
modelica_string tmp21;
if (11 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT108), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
_name = tmp4_2;
_mp = tmp4_3;
tmp4 += 1;
tmpMeta13 = omc_System_strtok(threadData, _name, _OMC_LIT100);
if (listEmpty(tmpMeta13)) goto goto_2;
tmpMeta14 = MMC_CAR(tmpMeta13);
tmpMeta15 = MMC_CDR(tmpMeta13);
_name = tmpMeta14;
_names = tmpMeta15;
tmp16 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmpMeta18 = mmc_mk_box2(4, &Absyn_Path_IDENT__desc, _name);
omc_InteractiveUtil_getPathedClassInProgram(threadData, tmpMeta18, _program, 0, 0);
tmp16 = 1;
goto goto_17;
goto_17:;
MMC_CATCH_INTERNAL(mmc_jumper)
if (tmp16) {goto goto_2;}
_gd = _OMC_LIT2;
_mps = omc_System_strtok(threadData, _mp, _gd);
_mp = omc_System_getLoadModelPath(threadData, _name, _OMC_LIT102, _mps, 0 ,&_name ,&_isDir);
tmp20 = (modelica_boolean)_isDir;
if(tmp20)
{
tmpMeta19 = stringAppend(_mp,_name);
tmp21 = tmpMeta19;
}
else
{
tmp21 = _mp;
}
_mp = tmp21;
tmp1 = omc_CevalScript_findModelicaPath2(threadData, _mp, _names, _OMC_LIT52, 1);
goto tmp3_done;
}
case 2: {
if (7 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT109), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 1;
tmp1 = _OMC_LIT52;
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;
if (1 != tmp4_4) goto tmp3_end;
if (11 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT108), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
_name = tmp4_2;
_mp = tmp4_3;
tmpMeta22 = omc_System_strtok(threadData, _name, _OMC_LIT100);
if (listEmpty(tmpMeta22)) goto goto_2;
tmpMeta23 = MMC_CAR(tmpMeta22);
tmpMeta24 = MMC_CDR(tmpMeta22);
_name = tmpMeta23;
tmpMeta25 = stringAppend(_OMC_LIT103,_name);
tmpMeta26 = stringAppend(tmpMeta25,_OMC_LIT104);
tmpMeta27 = stringAppend(tmpMeta26,_mp);
_str = tmpMeta27;
tmpMeta28 = mmc_mk_cons(_str, MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addMessage(threadData, _OMC_LIT107, tmpMeta28);
goto goto_2;
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:;
}
}
_basePath = tmp1;
_return: OMC_LABEL_UNUSED
return _basePath;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_getBasePathFromUri(threadData_t *threadData, modelica_metatype _scheme, modelica_metatype _iname, modelica_metatype _program, modelica_metatype _modelicaPath, modelica_metatype _printError)
{
modelica_integer tmp1;
modelica_string _basePath = NULL;
tmp1 = mmc_unbox_integer(_printError);
_basePath = omc_CevalScript_getBasePathFromUri(threadData, _scheme, _iname, _program, _modelicaPath, tmp1);
return _basePath;
}
DLLExport
modelica_string omc_CevalScript_getFullPathFromUri(threadData_t *threadData, modelica_metatype _program, modelica_string _uri, modelica_boolean _printError)
{
modelica_string _path = NULL;
modelica_string _str1 = NULL;
modelica_string _str2 = NULL;
modelica_string _str3 = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_str1 = omc_System_uriToClassAndPath(threadData, _uri ,&_str2 ,&_str3);
tmpMeta1 = stringAppend(omc_CevalScript_getBasePathFromUri(threadData, _str1, _str2, _program, omc_Settings_getModelicaPath(threadData, omc_Testsuite_isRunning(threadData)), _printError),_str3);
_path = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _path;
}
modelica_metatype boxptr_CevalScript_getFullPathFromUri(threadData_t *threadData, modelica_metatype _program, modelica_metatype _uri, modelica_metatype _printError)
{
modelica_integer tmp1;
modelica_string _path = NULL;
tmp1 = mmc_unbox_integer(_printError);
_path = omc_CevalScript_getFullPathFromUri(threadData, _program, _uri, tmp1);
return _path;
}
PROTECTED_FUNCTION_STATIC void omc_CevalScript_reloadClass(threadData_t *threadData, modelica_string _filename, modelica_string _encoding)
{
modelica_metatype _p = NULL;
modelica_metatype _newp = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_newp = omc_Parser_parse(threadData, _filename, _encoding, _OMC_LIT52, mmc_mk_none());
_newp = omc_InteractiveUtil_updateProgram(threadData, _newp, omc_SymbolTable_getAbsyn(threadData), 0);
omc_SymbolTable_setAbsyn(threadData, _newp);
_return: OMC_LABEL_UNUSED
return;
}
PROTECTED_FUNCTION_STATIC modelica_boolean omc_CevalScript_isChanged(threadData_t *threadData, modelica_metatype _node, modelica_metatype _hs)
{
modelica_boolean _b;
modelica_string _str = NULL;
modelica_metatype _strs = NULL;
modelica_metatype tmpMeta1;
modelica_metatype tmpMeta2;
modelica_metatype tmpMeta3;
modelica_metatype tmpMeta4;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta1 = _node;
tmpMeta2 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta1), 1));
tmpMeta3 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta1), 2));
_str = tmpMeta2;
_strs = tmpMeta3;
tmpMeta4 = mmc_mk_cons(_str, _strs);
_b = omc_List_exist1(threadData, tmpMeta4, boxvar_BaseHashSet_has, _hs);
_return: OMC_LABEL_UNUSED
return _b;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_isChanged(threadData_t *threadData, modelica_metatype _node, modelica_metatype _hs)
{
modelica_boolean _b;
modelica_metatype out_b;
_b = omc_CevalScript_isChanged(threadData, _node, _hs);
out_b = mmc_mk_icon(_b);
return out_b;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_CevalScript_getChangedClass(threadData_t *threadData, modelica_metatype _elt, modelica_string _suffix)
{
modelica_string _name = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;
tmp4_1 = _elt;
{
modelica_string _fileName = 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_boolean tmp9;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 9));
_name = tmpMeta6;
tmpMeta8 = stringAppend(_name,_suffix);
tmp9 = omc_System_regularFileExists(threadData, tmpMeta8);
if (0 != tmp9) goto goto_2;
tmp1 = _name;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
modelica_boolean tmp14;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8) == 0) goto tmp3_end;
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 9));
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta11), 2));
_name = tmpMeta10;
_fileName = tmpMeta12;
tmpMeta13 = stringAppend(_name,_suffix);
tmp14 = omc_System_fileIsNewerThan(threadData, _fileName, tmpMeta13);
if (1 != tmp14) goto goto_2;
tmp1 = _name;
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:;
}
}
_name = tmp1;
_return: OMC_LABEL_UNUSED
return _name;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_CevalScript_getTypeNameIdent(threadData_t *threadData, modelica_metatype _val)
{
modelica_string _str = NULL;
modelica_metatype tmpMeta1;
modelica_metatype tmpMeta2;
modelica_metatype tmpMeta3;
modelica_metatype tmpMeta4;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta1 = _val;
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta1,12,1) == 0) MMC_THROW_INTERNAL();
tmpMeta2 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta1), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta2,0,1) == 0) MMC_THROW_INTERNAL();
tmpMeta3 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta2), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta3,1,1) == 0) MMC_THROW_INTERNAL();
tmpMeta4 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta3), 2));
_str = tmpMeta4;
_return: OMC_LABEL_UNUSED
return _str;
}
PROTECTED_FUNCTION_STATIC modelica_boolean omc_CevalScript_isNotBuiltinImport(threadData_t *threadData, modelica_string _module)
{
modelica_boolean _b;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_b = (!stringEqual(_module, _OMC_LIT3));
_return: OMC_LABEL_UNUSED
return _b;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_isNotBuiltinImport(threadData_t *threadData, modelica_metatype _module)
{
modelica_boolean _b;
modelica_metatype out_b;
_b = omc_CevalScript_isNotBuiltinImport(threadData, _module);
out_b = mmc_mk_icon(_b);
return out_b;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_CevalScript_writeModuleDepends(threadData_t *threadData, modelica_metatype _cl, modelica_string _prefix, modelica_string _suffix, modelica_metatype _deps)
{
modelica_string _str = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;
tmp4_1 = _cl;
{
modelica_string _name = NULL;
modelica_string _tmp1 = NULL;
modelica_metatype _allDepends = NULL;
modelica_metatype _protectedDepends = NULL;
modelica_metatype _tmp2 = NULL;
modelica_metatype _elts = NULL;
modelica_metatype _info = 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;
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_metatype tmpMeta21;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta7,0,8) == 0) goto tmp3_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta7), 2));
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 9));
_name = tmpMeta6;
_elts = tmpMeta8;
_protectedDepends = omc_List_map(threadData, omc_List_select(threadData, _elts, boxvar_SCodeUtil_elementIsProtectedImport), boxvar_CevalScript_importDepenency);
_protectedDepends = omc_List_select(threadData, _protectedDepends, boxvar_CevalScript_isNotBuiltinImport);
tmpMeta10 = mmc_mk_cons(_name, _protectedDepends);
tmpMeta11 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta12 = mmc_mk_box2(0, tmpMeta10, tmpMeta11);
tmpMeta13 = omc_Graph_allReachableNodes(threadData, tmpMeta12, _deps, boxvar_stringEq);
if (listEmpty(tmpMeta13)) goto goto_2;
tmpMeta14 = MMC_CAR(tmpMeta13);
tmpMeta15 = MMC_CDR(tmpMeta13);
_allDepends = tmpMeta15;
_allDepends = omc_List_map1r(threadData, _allDepends, boxvar_stringAppend, _prefix);
_allDepends = omc_List_map1(threadData, _allDepends, boxvar_stringAppend, _OMC_LIT110);
tmpMeta16 = stringAppend(_prefix,_name);
tmpMeta17 = stringAppend(tmpMeta16,_suffix);
tmpMeta18 = stringAppend(tmpMeta17,_OMC_LIT111);
tmpMeta19 = stringAppend(tmpMeta18,_name);
tmpMeta20 = stringAppend(tmpMeta19,_OMC_LIT112);
tmpMeta21 = stringAppend(tmpMeta20,stringDelimitList(_allDepends, _OMC_LIT88));
tmp1 = tmpMeta21;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta22;
modelica_metatype tmpMeta23;
modelica_metatype tmpMeta24;
modelica_metatype tmpMeta25;
modelica_metatype tmpMeta26;
modelica_metatype tmpMeta30;
modelica_metatype tmpMeta31;
modelica_metatype tmpMeta32;
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,2,8) == 0) goto tmp3_end;
tmpMeta22 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta23 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta23,0,8) == 0) goto tmp3_end;
tmpMeta24 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta23), 2));
tmpMeta25 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 9));
_name = tmpMeta22;
_elts = tmpMeta24;
_info = tmpMeta25;
_protectedDepends = omc_List_map(threadData, omc_List_select(threadData, _elts, boxvar_SCodeUtil_elementIsProtectedImport), boxvar_CevalScript_importDepenency);
_protectedDepends = omc_List_select(threadData, _protectedDepends, boxvar_CevalScript_isNotBuiltinImport);
{
modelica_metatype __omcQ_24tmpVar1;
modelica_metatype* tmp27;
modelica_metatype tmpMeta28;
modelica_string __omcQ_24tmpVar0;
modelica_integer tmp29;
modelica_metatype _e_loopVar = 0;
modelica_metatype _e;
_e_loopVar = _deps;
tmpMeta28 = MMC_REFSTRUCTLIT(mmc_nil);
__omcQ_24tmpVar1 = tmpMeta28;
tmp27 = &__omcQ_24tmpVar1;
while(1) {
tmp29 = 1;
if (!listEmpty(_e_loopVar)) {
_e = MMC_CAR(_e_loopVar);
_e_loopVar = MMC_CDR(_e_loopVar);
tmp29--;
}
if (tmp29 == 0) {
__omcQ_24tmpVar0 = omc_Util_tuple21(threadData, _e);
*tmp27 = mmc_mk_cons(__omcQ_24tmpVar0,0);
tmp27 = &MMC_CDR(*tmp27);
} else if (tmp29 == 1) {
break;
} else {
goto goto_2;
}
}
*tmp27 = mmc_mk_nil();
tmpMeta26 = __omcQ_24tmpVar1;
}
_allDepends = tmpMeta26;
{
modelica_metatype _d;
for (tmpMeta30 = _protectedDepends; !listEmpty(tmpMeta30); tmpMeta30=MMC_CDR(tmpMeta30))
{
_d = MMC_CAR(tmpMeta30);
if((!listMember(_d, _allDepends)))
{
tmpMeta31 = mmc_mk_cons(_name, mmc_mk_cons(_name, mmc_mk_cons(_d, MMC_REFSTRUCTLIT(mmc_nil))));
omc_Error_addSourceMessage(threadData, _OMC_LIT115, tmpMeta31, _info);
goto goto_2;
}
}
}
{
modelica_metatype _dep;
for (tmpMeta33 = _deps; !listEmpty(tmpMeta33); tmpMeta33=MMC_CDR(tmpMeta33))
{
_dep = MMC_CAR(tmpMeta33);
tmpMeta34 = _dep;
tmpMeta35 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta34), 1));
tmpMeta36 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta34), 2));
_tmp1 = tmpMeta35;
_tmp2 = tmpMeta36;
{
modelica_metatype _d;
for (tmpMeta37 = _tmp2; !listEmpty(tmpMeta37); tmpMeta37=MMC_CDR(tmpMeta37))
{
_d = MMC_CAR(tmpMeta37);
if((!listMember(_d, _allDepends)))
{
tmpMeta38 = mmc_mk_cons(_name, mmc_mk_cons(_tmp1, mmc_mk_cons(_d, MMC_REFSTRUCTLIT(mmc_nil))));
omc_Error_addSourceMessage(threadData, _OMC_LIT115, tmpMeta38, _info);
goto goto_2;
}
}
}
}
}
goto goto_2;
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta41;
modelica_metatype tmpMeta42;
modelica_metatype tmpMeta43;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8) == 0) goto tmp3_end;
tmpMeta41 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta42 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 9));
_name = tmpMeta41;
_info = tmpMeta42;
tmpMeta43 = mmc_mk_cons(_name, MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addSourceMessage(threadData, _OMC_LIT118, tmpMeta43, _info);
goto goto_2;
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:;
}
}
_str = tmp1;
_return: OMC_LABEL_UNUSED
return _str;
}
PROTECTED_FUNCTION_STATIC void omc_CevalScript_printInterfaceString(threadData_t *threadData, modelica_metatype _elt)
{
modelica_string _str = NULL;
modelica_metatype tmpMeta1;
modelica_metatype tmpMeta2;
modelica_metatype tmpMeta3;
modelica_metatype tmpMeta4;
modelica_metatype tmpMeta5;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta1 = _elt;
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta1,2,8) == 0) MMC_THROW_INTERNAL();
tmpMeta2 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta1), 2));
_str = tmpMeta2;
tmpMeta3 = stringAppend(_str,_OMC_LIT119);
tmpMeta4 = stringAppend(tmpMeta3,(omc_CevalScript_containsPublicInterface(threadData, _elt)?_OMC_LIT120:_OMC_LIT121));
tmpMeta5 = stringAppend(tmpMeta4,_OMC_LIT14);
fputs(MMC_STRINGDATA(tmpMeta5),stdout);
_return: OMC_LABEL_UNUSED
return;
}
PROTECTED_FUNCTION_STATIC modelica_boolean omc_CevalScript_containsImport2(threadData_t *threadData, modelica_metatype _elt, modelica_metatype _visibility)
{
modelica_boolean _b;
modelica_boolean tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;
tmp4_1 = _elt;
tmp4_2 = _visibility;
{
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 3; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,0) == 0) goto tmp3_end;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,3) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,0,0) == 0) goto tmp3_end;
tmp1 = 1;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta7;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,0) == 0) goto tmp3_end;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,3) == 0) goto tmp3_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta7,1,0) == 0) goto tmp3_end;
tmp1 = 1;
goto tmp3_done;
}
case 2: {
tmp1 = 0;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_b = tmp1;
_return: OMC_LABEL_UNUSED
return _b;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_containsImport2(threadData_t *threadData, modelica_metatype _elt, modelica_metatype _visibility)
{
modelica_boolean _b;
modelica_metatype out_b;
_b = omc_CevalScript_containsImport2(threadData, _elt, _visibility);
out_b = mmc_mk_icon(_b);
return out_b;
}
PROTECTED_FUNCTION_STATIC modelica_boolean omc_CevalScript_containsImport(threadData_t *threadData, modelica_metatype _elt, modelica_metatype _visibility)
{
modelica_boolean _b;
modelica_boolean tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _elt;
{
modelica_metatype _elts = NULL;
modelica_string _name = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,0,0) == 0) goto tmp3_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta7,8,0) == 0) goto tmp3_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta8,0,8) == 0) goto tmp3_end;
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta8), 2));
_elts = tmpMeta9;
tmp1 = omc_List_exist1(threadData, _elts, boxvar_CevalScript_containsImport2, _visibility);
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
_name = omc_SCodeUtil_elementName(threadData, _elt);
tmpMeta10 = stringAppend(_OMC_LIT122,_name);
_name = tmpMeta10;
tmpMeta11 = mmc_mk_cons(_name, MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addMessage(threadData, _OMC_LIT125, tmpMeta11);
goto goto_2;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_b = tmp1;
_return: OMC_LABEL_UNUSED
return _b;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_containsImport(threadData_t *threadData, modelica_metatype _elt, modelica_metatype _visibility)
{
modelica_boolean _b;
modelica_metatype out_b;
_b = omc_CevalScript_containsImport(threadData, _elt, _visibility);
out_b = mmc_mk_icon(_b);
return out_b;
}
PROTECTED_FUNCTION_STATIC modelica_boolean omc_CevalScript_containsPublicInterface2(threadData_t *threadData, modelica_metatype _elt)
{
modelica_boolean _b;
modelica_boolean tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _elt;
{
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 6; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,3) == 0) goto tmp3_end;
tmp1 = 0;
goto tmp3_done;
}
case 1: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,5) == 0) goto tmp3_end;
tmp1 = 0;
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,9,1) == 0) goto tmp3_end;
tmp1 = 0;
goto tmp3_done;
}
case 3: {
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,3,8) == 0) goto tmp3_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta7), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta8,0,0) == 0) goto tmp3_end;
tmp1 = 1;
goto tmp3_done;
}
case 4: {
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8) == 0) goto tmp3_end;
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta9), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta10,0,0) == 0) goto tmp3_end;
tmp1 = 1;
goto tmp3_done;
}
case 5: {
tmp1 = 0;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_b = tmp1;
_return: OMC_LABEL_UNUSED
return _b;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_containsPublicInterface2(threadData_t *threadData, modelica_metatype _elt)
{
modelica_boolean _b;
modelica_metatype out_b;
_b = omc_CevalScript_containsPublicInterface2(threadData, _elt);
out_b = mmc_mk_icon(_b);
return out_b;
}
PROTECTED_FUNCTION_STATIC modelica_boolean omc_CevalScript_containsPublicInterface(threadData_t *threadData, modelica_metatype _elt)
{
modelica_boolean _b;
modelica_boolean tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _elt;
{
modelica_metatype _elts = NULL;
modelica_string _name = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,0,0) == 0) goto tmp3_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta7,8,0) == 0) goto tmp3_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta8,0,8) == 0) goto tmp3_end;
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta8), 2));
_elts = tmpMeta9;
tmp1 = omc_List_exist(threadData, _elts, boxvar_CevalScript_containsPublicInterface2);
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
_name = omc_SCodeUtil_elementName(threadData, _elt);
tmpMeta10 = stringAppend(_OMC_LIT122,_name);
_name = tmpMeta10;
tmpMeta11 = mmc_mk_cons(_name, MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addMessage(threadData, _OMC_LIT125, tmpMeta11);
goto goto_2;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_b = tmp1;
_return: OMC_LABEL_UNUSED
return _b;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_containsPublicInterface(threadData_t *threadData, modelica_metatype _elt)
{
modelica_boolean _b;
modelica_metatype out_b;
_b = omc_CevalScript_containsPublicInterface(threadData, _elt);
out_b = mmc_mk_icon(_b);
return out_b;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_CevalScript_transitiveDependencyString(threadData_t *threadData, modelica_metatype _deps)
{
modelica_string _str = NULL;
modelica_metatype _strs = NULL;
modelica_metatype tmpMeta1;
modelica_metatype tmpMeta2;
modelica_metatype tmpMeta3;
modelica_metatype tmpMeta4;
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta1 = _deps;
tmpMeta2 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta1), 1));
tmpMeta3 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta1), 2));
_str = tmpMeta2;
_strs = tmpMeta3;
tmpMeta4 = stringAppend(intString(listLength(_strs)),_OMC_LIT126);
tmpMeta5 = stringAppend(tmpMeta4,_str);
tmpMeta6 = stringAppend(tmpMeta5,_OMC_LIT112);
tmpMeta7 = stringAppend(tmpMeta6,stringDelimitList(_strs, _OMC_LIT127));
_str = tmpMeta7;
_return: OMC_LABEL_UNUSED
return _str;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_CevalScript_dependencyString(threadData_t *threadData, modelica_metatype _deps)
{
modelica_string _str = NULL;
modelica_metatype _strs = NULL;
modelica_metatype tmpMeta1;
modelica_metatype tmpMeta2;
modelica_metatype tmpMeta3;
modelica_metatype tmpMeta4;
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta1 = _deps;
tmpMeta2 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta1), 1));
tmpMeta3 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta1), 2));
_str = tmpMeta2;
_strs = tmpMeta3;
tmpMeta4 = stringAppend(_str,_OMC_LIT128);
tmpMeta5 = stringAppend(tmpMeta4,intString(listLength(_strs)));
tmpMeta6 = stringAppend(tmpMeta5,_OMC_LIT129);
tmpMeta7 = stringAppend(tmpMeta6,stringDelimitList(_strs, _OMC_LIT127));
_str = tmpMeta7;
_return: OMC_LABEL_UNUSED
return _str;
}
PROTECTED_FUNCTION_STATIC modelica_boolean omc_CevalScript_compareDependencyNode(threadData_t *threadData, modelica_metatype _node1, modelica_metatype _node2)
{
modelica_boolean _cmp;
modelica_string _s1 = NULL;
modelica_string _s2 = NULL;
modelica_metatype tmpMeta1;
modelica_metatype tmpMeta2;
modelica_metatype tmpMeta3;
modelica_metatype tmpMeta4;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta1 = _node1;
tmpMeta2 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta1), 1));
_s1 = tmpMeta2;
tmpMeta3 = _node2;
tmpMeta4 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta3), 1));
_s2 = tmpMeta4;
_cmp = omc_Util_strcmpBool(threadData, _s1, _s2);
_return: OMC_LABEL_UNUSED
return _cmp;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_compareDependencyNode(threadData_t *threadData, modelica_metatype _node1, modelica_metatype _node2)
{
modelica_boolean _cmp;
modelica_metatype out_cmp;
_cmp = omc_CevalScript_compareDependencyNode(threadData, _node1, _node2);
out_cmp = mmc_mk_icon(_cmp);
return out_cmp;
}
PROTECTED_FUNCTION_STATIC modelica_boolean omc_CevalScript_compareNumberOfDependencies(threadData_t *threadData, modelica_metatype _node1, modelica_metatype _node2)
{
modelica_boolean _cmp;
modelica_metatype _deps1 = NULL;
modelica_metatype _deps2 = NULL;
modelica_metatype tmpMeta1;
modelica_metatype tmpMeta2;
modelica_metatype tmpMeta3;
modelica_metatype tmpMeta4;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta1 = _node1;
tmpMeta2 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta1), 2));
_deps1 = tmpMeta2;
tmpMeta3 = _node2;
tmpMeta4 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta3), 2));
_deps2 = tmpMeta4;
_cmp = (listLength(_deps1) >= listLength(_deps2));
_return: OMC_LABEL_UNUSED
return _cmp;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_compareNumberOfDependencies(threadData_t *threadData, modelica_metatype _node1, modelica_metatype _node2)
{
modelica_boolean _cmp;
modelica_metatype out_cmp;
_cmp = omc_CevalScript_compareNumberOfDependencies(threadData, _node1, _node2);
out_cmp = mmc_mk_icon(_cmp);
return out_cmp;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_CevalScript_importDepenency(threadData_t *threadData, modelica_metatype _simp)
{
modelica_string _name = NULL;
modelica_string tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _simp;
{
modelica_metatype _imp = NULL;
modelica_metatype _info = NULL;
modelica_string _str = NULL;
modelica_metatype _path = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 6; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,3) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,0,2) == 0) goto tmp3_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 3));
_path = tmpMeta7;
tmp1 = omc_AbsynUtil_pathFirstIdent(threadData, _path);
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,3) == 0) goto tmp3_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta8,0,2) == 0) goto tmp3_end;
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta8), 3));
_path = tmpMeta9;
tmp1 = omc_AbsynUtil_pathFirstIdent(threadData, _path);
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,3) == 0) goto tmp3_end;
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta10,1,1) == 0) goto tmp3_end;
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta10), 2));
_path = tmpMeta11;
tmp1 = omc_AbsynUtil_pathFirstIdent(threadData, _path);
goto tmp3_done;
}
case 3: {
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,3) == 0) goto tmp3_end;
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta12,2,1) == 0) goto tmp3_end;
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta12), 2));
_path = tmpMeta13;
tmp1 = omc_AbsynUtil_pathFirstIdent(threadData, _path);
goto tmp3_done;
}
case 4: {
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,3) == 0) goto tmp3_end;
tmpMeta14 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta14,3,2) == 0) goto tmp3_end;
tmpMeta15 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta14), 2));
_path = tmpMeta15;
tmp1 = omc_AbsynUtil_pathFirstIdent(threadData, _path);
goto tmp3_done;
}
case 5: {
modelica_metatype tmpMeta16;
modelica_metatype tmpMeta17;
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,3) == 0) goto tmp3_end;
tmpMeta16 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta17 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
_imp = tmpMeta16;
_info = tmpMeta17;
tmpMeta18 = stringAppend(_OMC_LIT130,omc_Dump_unparseImportStr(threadData, _imp));
_str = tmpMeta18;
tmpMeta19 = mmc_mk_cons(_str, MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addSourceMessage(threadData, _OMC_LIT125, tmpMeta19, _info);
goto goto_2;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_name = tmp1;
_return: OMC_LABEL_UNUSED
return _name;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_buildTransitiveDependencyGraph(threadData_t *threadData, modelica_string _name, modelica_metatype _oldgraph)
{
modelica_metatype _edges = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
{
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_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
tmpMeta6 = mmc_mk_cons(_name, MMC_REFSTRUCTLIT(mmc_nil));
tmpMeta7 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta8 = mmc_mk_box2(0, tmpMeta6, tmpMeta7);
tmpMeta9 = mmc_mk_cons(_name, MMC_REFSTRUCTLIT(mmc_nil));
tmpMeta1 = omc_List_setDifference(threadData, omc_Graph_allReachableNodes(threadData, tmpMeta8, _oldgraph, boxvar_stringEq), tmpMeta9);
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
tmpMeta10 = stringAppend(_OMC_LIT131,_name);
_str = tmpMeta10;
tmpMeta11 = mmc_mk_cons(_str, MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addMessage(threadData, _OMC_LIT125, tmpMeta11);
goto goto_2;
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:;
}
}
_edges = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _edges;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_buildDependencyGraphPublicImports(threadData_t *threadData, modelica_string _name, modelica_metatype _sp)
{
modelica_metatype _edges = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
{
modelica_metatype _elts = 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 = omc_List_getMemberOnTrue(threadData, _name, _sp, boxvar_SCodeUtil_isClassNamed);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,2,8) == 0) goto goto_2;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta7,0,8) == 0) goto goto_2;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta7), 2));
_elts = tmpMeta8;
_elts = omc_List_select(threadData, _elts, boxvar_SCodeUtil_elementIsPublicImport);
tmpMeta1 = omc_List_map(threadData, _elts, boxvar_CevalScript_importDepenency);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_edges = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _edges;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_buildDependencyGraph(threadData_t *threadData, modelica_string _name, modelica_metatype _sp)
{
modelica_metatype _edges = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
{
modelica_metatype _elts = 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 = omc_List_getMemberOnTrue(threadData, _name, _sp, boxvar_SCodeUtil_isClassNamed);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,2,8) == 0) goto goto_2;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta7,0,8) == 0) goto goto_2;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta7), 2));
_elts = tmpMeta8;
omc_SCodeUtil_partitionElements(threadData, _elts ,NULL ,NULL ,&_elts ,NULL);
tmpMeta1 = omc_List_map(threadData, _elts, boxvar_CevalScript_importDepenency);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_edges = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _edges;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_getInterfaceTypeAssocElt(threadData_t *threadData, modelica_metatype _val, modelica_metatype _info)
{
modelica_metatype _assoc = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _val;
{
modelica_string _str = NULL;
modelica_metatype _strs = NULL;
modelica_metatype _vals = 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;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,5,2) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
if (listEmpty(tmpMeta6)) goto tmp3_end;
tmpMeta7 = MMC_CAR(tmpMeta6);
tmpMeta8 = MMC_CDR(tmpMeta6);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta7,2,1) == 0) goto tmp3_end;
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta7), 2));
if (0 != MMC_STRLEN(tmpMeta9) || strcmp(MMC_STRINGDATA(_OMC_LIT52), MMC_STRINGDATA(tmpMeta9)) != 0) goto tmp3_end;
tmpMeta10 = MMC_REFSTRUCTLIT(mmc_nil);
omc_Error_addSourceMessage(threadData, _OMC_LIT134, tmpMeta10, _info);
goto goto_2;
goto tmp3_done;
}
case 1: {
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,5,2) == 0) goto tmp3_end;
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
if (listEmpty(tmpMeta11)) goto tmp3_end;
tmpMeta12 = MMC_CAR(tmpMeta11);
tmpMeta13 = MMC_CDR(tmpMeta11);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta12,2,1) == 0) goto tmp3_end;
tmpMeta14 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta12), 2));
_str = tmpMeta14;
_vals = tmpMeta13;
_strs = omc_List_select(threadData, omc_List_map(threadData, _vals, boxvar_ValuesUtil_extractValueString), boxvar_Util_isNotEmptyString);
tmpMeta15 = mmc_mk_cons(_str, _strs);
tmpMeta16 = mmc_mk_box2(0, _str, tmpMeta15);
tmpMeta1 = tmpMeta16;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_assoc = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _assoc;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_getInterfaceType(threadData_t *threadData, modelica_metatype _elt, modelica_metatype _assoc)
{
modelica_metatype _it = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;
tmp4_1 = _elt;
{
modelica_metatype _ann = 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_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 8));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 2));
if (optionNone(tmpMeta7)) goto tmp3_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta7), 1));
_ann = tmpMeta8;
tmpMeta9 = omc_SCodeUtil_getNamedAnnotation(threadData, _ann, _OMC_LIT135, NULL);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta9,3,1) == 0) goto goto_2;
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta9), 2));
_str = tmpMeta10;
tmpMeta1 = omc_Util_assoc(threadData, _str, _assoc);
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta11;
tmpMeta11 = MMC_REFSTRUCTLIT(mmc_nil);
omc_Error_addSourceMessage(threadData, _OMC_LIT134, tmpMeta11, omc_SCodeUtil_elementInfo(threadData, _elt));
goto goto_2;
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:;
}
}
_it = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _it;
}
PROTECTED_FUNCTION_STATIC void omc_CevalScript_verifyInterfaceType(threadData_t *threadData, modelica_metatype _elt, modelica_metatype _expected)
{
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp3_1;volatile modelica_metatype tmp3_2;
tmp3_1 = _elt;
tmp3_2 = _expected;
{
modelica_string _str = NULL;
modelica_string _name = NULL;
modelica_metatype _ann = NULL;
modelica_metatype _info = 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 < 3; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
modelica_integer tmp7;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,8) == 0) goto tmp2_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta5,17,5) == 0) goto tmp2_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta5), 5));
tmp7 = mmc_unbox_integer(tmpMeta6);
if (1 != tmp7) goto tmp2_end;
goto tmp2_done;
}
case 1: {
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 (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta8 = MMC_CAR(tmp3_2);
tmpMeta9 = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,8) == 0) goto tmp2_end;
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 8));
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta10), 2));
if (optionNone(tmpMeta11)) goto tmp2_end;
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta11), 1));
_name = tmpMeta8;
_ann = tmpMeta12;
tmpMeta14 = omc_SCodeUtil_getNamedAnnotation(threadData, _ann, _OMC_LIT135, &tmpMeta13);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta14,3,1) == 0) goto goto_1;
tmpMeta15 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta14), 2));
_str = tmpMeta15;
_info = tmpMeta13;
tmpMeta16 = mmc_mk_cons(_str, mmc_mk_cons(_name, MMC_REFSTRUCTLIT(mmc_nil)));
omc_Error_assertionOrAddSourceMessage(threadData, listMember(_str, _expected), _OMC_LIT138, tmpMeta16, _info);
goto tmp2_done;
}
case 2: {
modelica_metatype tmpMeta17;
modelica_metatype tmpMeta18;
tmpMeta17 = stringAppend(omc_SCodeDump_unparseElementStr(threadData, _elt, _OMC_LIT74),_OMC_LIT14);
fputs(MMC_STRINGDATA(tmpMeta17),stdout);
tmpMeta18 = MMC_REFSTRUCTLIT(mmc_nil);
omc_Error_addSourceMessage(threadData, _OMC_LIT134, tmpMeta18, omc_SCodeUtil_elementInfo(threadData, _elt));
goto goto_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 < 3) {
goto tmp2_top;
}
MMC_THROW_INTERNAL();
tmp2_done2:;
}
}
;
_return: OMC_LABEL_UNUSED
return;
}
PROTECTED_FUNCTION_STATIC modelica_boolean omc_CevalScript_isSimpleAPIFunctionArg(threadData_t *threadData, modelica_metatype _ty)
{
modelica_boolean _b;
modelica_boolean tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _ty;
{
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 9; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,1) == 0) goto tmp3_end;
tmp1 = 1;
goto tmp3_done;
}
case 1: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,1) == 0) goto tmp3_end;
tmp1 = 1;
goto tmp3_done;
}
case 2: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,3,1) == 0) goto tmp3_end;
tmp1 = 1;
goto tmp3_done;
}
case 3: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,1) == 0) goto tmp3_end;
tmp1 = 1;
goto tmp3_done;
}
case 4: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,7,0) == 0) goto tmp3_end;
tmp1 = 1;
goto tmp3_done;
}
case 5: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,6,2) == 0) goto tmp3_end;
_ty = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_ty), 2)));
goto _tailrecursive;
goto tmp3_done;
}
case 6: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,1) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,3,0) == 0) goto tmp3_end;
tmp1 = 1;
goto tmp3_done;
}
case 7: {
modelica_boolean tmp7;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,14,2) == 0) goto tmp3_end;
{
modelica_boolean __omcQ_24tmpVar7;
modelica_boolean __omcQ_24tmpVar6;
modelica_integer tmp8;
modelica_metatype _t_loopVar = 0;
modelica_metatype _t;
_t_loopVar = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_ty), 2)));
__omcQ_24tmpVar7 = 1;
while(1) {
tmp8 = 1;
if (!listEmpty(_t_loopVar)) {
_t = MMC_CAR(_t_loopVar);
_t_loopVar = MMC_CDR(_t_loopVar);
tmp8--;
}
if (tmp8 == 0) {
__omcQ_24tmpVar6 = omc_CevalScript_isSimpleAPIFunctionArg(threadData, _t);
__omcQ_24tmpVar7 = (__omcQ_24tmpVar6 && __omcQ_24tmpVar7);
} else if (tmp8 == 1) {
break;
} else {
goto goto_2;
}
}
tmp7 = __omcQ_24tmpVar7;
}
tmp1 = tmp7;
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:;
}
}
_b = tmp1;
_return: OMC_LABEL_UNUSED
return _b;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_isSimpleAPIFunctionArg(threadData_t *threadData, modelica_metatype _ty)
{
modelica_boolean _b;
modelica_metatype out_b;
_b = omc_CevalScript_isSimpleAPIFunctionArg(threadData, _ty);
out_b = mmc_mk_icon(_b);
return out_b;
}
PROTECTED_FUNCTION_STATIC modelica_boolean omc_CevalScript_isSimpleAPIFunction(threadData_t *threadData, modelica_metatype _ty)
{
modelica_boolean _b;
modelica_boolean tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _ty;
{
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_boolean tmp8;
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), 6));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta7,1,2) == 0) goto tmp3_end;
{
modelica_boolean __omcQ_24tmpVar9;
modelica_boolean tmp9 = 0;
modelica_boolean __omcQ_24tmpVar8;
modelica_integer tmp14;
modelica_metatype _fa_loopVar = 0;
modelica_metatype _fa;
_fa_loopVar = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_ty), 2)));
__omcQ_24tmpVar9 = 1;
while(1) {
tmp14 = 1;
if (!listEmpty(_fa_loopVar)) {
_fa = MMC_CAR(_fa_loopVar);
_fa_loopVar = MMC_CDR(_fa_loopVar);
tmp14--;
}
if (tmp14 == 0) {
{
modelica_metatype tmp12_1;
tmp12_1 = _fa;
{
volatile mmc_switch_type tmp12;
int tmp13;
tmp12 = 0;
for (; tmp12 < 1; tmp12++) {
switch (MMC_SWITCH_CAST(tmp12)) {
case 0: {
tmp9 = omc_CevalScript_isSimpleAPIFunctionArg(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fa), 3))));
goto tmp11_done;
}
}
goto tmp11_end;
tmp11_end: ;
}
goto goto_10;
goto_10:;
goto goto_2;
goto tmp11_done;
tmp11_done:;
}
}__omcQ_24tmpVar8 = tmp9;
__omcQ_24tmpVar9 = (__omcQ_24tmpVar8 && __omcQ_24tmpVar9);
} else if (tmp14 == 1) {
break;
} else {
goto goto_2;
}
}
tmp8 = __omcQ_24tmpVar9;
}
tmp1 = (omc_CevalScript_isSimpleAPIFunctionArg(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_ty), 3)))) && tmp8);
goto tmp3_done;
}
case 1: {
tmp1 = 0;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_b = tmp1;
_return: OMC_LABEL_UNUSED
return _b;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_isSimpleAPIFunction(threadData_t *threadData, modelica_metatype _ty)
{
modelica_boolean _b;
modelica_metatype out_b;
_b = omc_CevalScript_isSimpleAPIFunction(threadData, _ty);
out_b = mmc_mk_icon(_b);
return out_b;
}
PROTECTED_FUNCTION_STATIC void omc_CevalScript_isCevaluableFunction2(threadData_t *threadData, modelica_string _inFuncName)
{
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_string tmp3_1;
tmp3_1 = _inFuncName;
{
int tmp3;
{
switch (MMC_SWITCH_CAST(stringHashDjb2Mod(tmp3_1,256))) {
case 187 /* dgbsv */: {
if (5 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT139), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 176 /* dgeev */: {
if (5 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT140), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 242 /* dgegv */: {
if (5 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT141), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 148 /* dgels */: {
if (5 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT142), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 140 /* dgelsx */: {
if (6 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT143), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 141 /* dgelsy */: {
if (6 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT144), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 92 /* dgeqpf */: {
if (6 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT145), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 126 /* dgesv */: {
if (5 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT146), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 162 /* dgesvd */: {
if (6 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT147), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 97 /* dgetrf */: {
if (6 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT148), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 100 /* dgetri */: {
if (6 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT149), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 110 /* dgetrs */: {
if (6 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT150), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 59 /* dgglse */: {
if (6 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT151), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 77 /* dgtsv */: {
if (5 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT152), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 244 /* dorgqr */: {
if (6 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT153), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
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_CevalScript_isCevaluableFunction(threadData_t *threadData, modelica_metatype _inElement)
{
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp3_1;
tmp3_1 = _inElement;
{
modelica_string _fid = NULL;
modelica_metatype _mod = NULL;
modelica_metatype _lib = NULL;
volatile mmc_switch_type tmp3;
int tmp4;
tmp3 = 0;
for (; tmp3 < 2; 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_metatype tmpMeta12;
modelica_metatype tmpMeta13;
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
modelica_metatype tmpMeta16;
modelica_metatype tmpMeta17;
modelica_boolean tmp18;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,8) == 0) goto tmp2_end;
tmpMeta5 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta5,9,1) == 0) goto tmp2_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta5), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,1,1) == 0) goto tmp2_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta7,0,8) == 0) goto tmp2_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta7), 9));
if (optionNone(tmpMeta8)) goto tmp2_end;
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta8), 1));
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta9), 2));
if (optionNone(tmpMeta10)) goto tmp2_end;
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta10), 1));
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta9), 6));
if (optionNone(tmpMeta12)) goto tmp2_end;
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta12), 1));
tmpMeta14 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta13), 2));
_fid = tmpMeta11;
_mod = tmpMeta14;
tmpMeta15 = omc_Mod_getUnelabedSubMod(threadData, _mod, _OMC_LIT154);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta15,0,5) == 0) goto goto_1;
tmpMeta16 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta15), 5));
if (optionNone(tmpMeta16)) goto goto_1;
tmpMeta17 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta16), 1));
_lib = tmpMeta17;
tmp18 = (omc_CevalScript_checkLibraryUsage(threadData, _OMC_LIT155, _lib) || omc_CevalScript_checkLibraryUsage(threadData, _OMC_LIT156, _lib));
if (1 != tmp18) goto goto_1;
omc_CevalScript_isCevaluableFunction2(threadData, _fid);
goto tmp2_done;
}
case 1: {
modelica_metatype tmpMeta19;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,8) == 0) goto tmp2_end;
tmpMeta19 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta19,9,1) == 0) goto tmp2_end;
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_boolean omc_CevalScript_checkLibraryUsage(threadData_t *threadData, modelica_string _inLibrary, modelica_metatype _inExp)
{
modelica_boolean _isUsed;
modelica_boolean tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _inExp;
{
modelica_string _s = NULL;
modelica_metatype _exps = 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,3,1) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
_s = tmpMeta6;
tmp1 = (stringEqual(_s, _inLibrary));
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta7;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,13,1) == 0) goto tmp3_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
_exps = tmpMeta7;
tmp1 = omc_List_isMemberOnTrue(threadData, _inLibrary, _exps, boxvar_CevalScript_checkLibraryUsage);
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_isUsed = tmp1;
_return: OMC_LABEL_UNUSED
return _isUsed;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_checkLibraryUsage(threadData_t *threadData, modelica_metatype _inLibrary, modelica_metatype _inExp)
{
modelica_boolean _isUsed;
modelica_metatype out_isUsed;
_isUsed = omc_CevalScript_checkLibraryUsage(threadData, _inLibrary, _inExp);
out_isUsed = mmc_mk_icon(_isUsed);
return out_isUsed;
}
PROTECTED_FUNCTION_STATIC void omc_CevalScript_cevalIsExternalObjectConstructor(threadData_t *threadData, modelica_metatype _cache, modelica_metatype _funcpath, modelica_metatype _env, modelica_metatype _msg)
{
modelica_metatype _funcpath2 = NULL;
modelica_metatype _tp = NULL;
modelica_metatype _info = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp3_1;modelica_metatype tmp3_2;
tmp3_1 = _env;
tmp3_2 = _msg;
{
volatile mmc_switch_type tmp3;
int tmp4;
tmp3 = 0;
for (; tmp3 < 2; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,1) == 0) goto tmp2_end;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_2,1,0) == 0) goto tmp2_end;
goto goto_1;
goto tmp2_done;
}
case 1: {
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_2,1,0) == 0) goto tmp2_end;
tmpMeta7 = omc_AbsynUtil_splitQualAndIdentPath(threadData, _funcpath, &tmpMeta5);
_funcpath2 = tmpMeta7;
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta5,1,1) == 0) goto goto_1;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta5), 2));
if (11 != MMC_STRLEN(tmpMeta6) || strcmp("constructor", MMC_STRINGDATA(tmpMeta6)) != 0) goto goto_1;
_info = (valueEq(_msg, _OMC_LIT157)?mmc_mk_none():_OMC_LIT160);
omc_Lookup_lookupType(threadData, _cache, _env, _funcpath2, _info ,&_tp ,NULL);
omc_Types_externalObjectConstructorType(threadData, _tp);
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_metatype omc_CevalScript_cevalCallFunctionEvaluateOrGenerate2(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inExp, modelica_metatype _inValuesValueLst, modelica_boolean _impl, modelica_metatype _inMsg, modelica_boolean _bIsCompleteFunction, modelica_metatype *out_outValue)
{
modelica_metatype _outCache = NULL;
modelica_metatype _outValue = NULL;
modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;volatile modelica_metatype tmp4_2;volatile modelica_metatype tmp4_3;volatile modelica_metatype tmp4_4;volatile modelica_metatype tmp4_5;
tmp4_1 = _inCache;
tmp4_2 = _inEnv;
tmp4_3 = _inExp;
tmp4_4 = _inValuesValueLst;
tmp4_5 = _inMsg;
{
modelica_metatype _newval = NULL;
modelica_metatype _env = NULL;
modelica_metatype _funcpath = NULL;
modelica_boolean _print_debug;
modelica_metatype _vallst = NULL;
modelica_metatype _msg = NULL;
modelica_metatype _cache = NULL;
modelica_metatype _p = NULL;
modelica_integer _libHandle;
modelica_integer _funcHandle;
modelica_string _funcstr = NULL;
modelica_string _fileName = NULL;
modelica_metatype _info = NULL;
modelica_metatype _w = NULL;
modelica_metatype _sc = NULL;
modelica_metatype _func = 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;
modelica_metatype tmpMeta8;
modelica_integer tmp9;
modelica_boolean tmp10;
modelica_boolean tmp11;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_3,13,3) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 4));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta7), 4));
tmp9 = mmc_unbox_integer(tmpMeta8);
if (0 != tmp9) goto tmp3_end;
_funcpath = tmpMeta6;
_cache = tmp4_1;
_env = tmp4_2;
_vallst = tmp4_4;
_msg = tmp4_5;
tmp10 = omc_Flags_isSet(threadData, _OMC_LIT164);
if (1 != tmp10) goto goto_2;
tmp11 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
omc_CevalScript_cevalIsExternalObjectConstructor(threadData, _cache, _funcpath, _env, _msg);
tmp11 = 1;
goto goto_12;
goto_12:;
MMC_CATCH_INTERNAL(mmc_jumper)
if (tmp11) {goto goto_2;}
{
{
volatile mmc_switch_type tmp15;
int tmp16;
tmp15 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp14_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp15 < 2; tmp15++) {
switch (MMC_SWITCH_CAST(tmp15)) {
case 0: {
_func = omc_FCore_getCachedInstFunc(threadData, _cache, _funcpath);
goto tmp14_done;
}
case 1: {
modelica_metatype tmpMeta17;
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
modelica_metatype tmpMeta20;
modelica_metatype tmpMeta21;
modelica_metatype tmpMeta22;
tmpMeta20 = omc_Lookup_lookupClass(threadData, _cache, _env, _funcpath, mmc_mk_none(), &tmpMeta17, &tmpMeta19);
_cache = tmpMeta20;
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta17,2,8) == 0) goto goto_13;
tmpMeta18 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta17), 5));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta18,1,0) == 0) goto goto_13;
_sc = tmpMeta17;
_env = tmpMeta19;
omc_CevalScript_isCevaluableFunction(threadData, _sc);
tmpMeta21 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta22 = MMC_REFSTRUCTLIT(mmc_nil);
_cache = omc_InstFunction_implicitFunctionInstantiation(threadData, _cache, _env, tmpMeta21, _OMC_LIT165, _OMC_LIT166, _sc, tmpMeta22 ,&_env ,NULL);
_func = omc_FCore_getCachedInstFunc(threadData, _cache, _funcpath);
goto tmp14_done;
}
}
goto tmp14_end;
tmp14_end: ;
}
goto goto_13;
tmp14_done:
(void)tmp15;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp14_done2;
goto_13:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp15 < 2) {
goto tmp14_top;
}
goto goto_2;
tmp14_done2:;
}
}
;
tmpMeta[0+0] = omc_CevalFunction_evaluate(threadData, _cache, _env, _func, _vallst, &tmpMeta[0+1]);
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta23;
modelica_metatype tmpMeta24;
modelica_metatype tmpMeta25;
modelica_integer tmp26;
modelica_boolean tmp27;
modelica_metatype tmpMeta29;
modelica_metatype tmpMeta30;
modelica_metatype tmpMeta31;
modelica_metatype tmpMeta32;
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;
modelica_metatype tmpMeta42;
modelica_metatype tmpMeta43;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_3,13,3) == 0) goto tmp3_end;
tmpMeta23 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 2));
tmpMeta24 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 4));
tmpMeta25 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta24), 4));
tmp26 = mmc_unbox_integer(tmpMeta25);
if (0 != tmp26) goto tmp3_end;
_funcpath = tmpMeta23;
_cache = tmp4_1;
_env = tmp4_2;
_vallst = tmp4_4;
_msg = tmp4_5;
if (!(_bIsCompleteFunction && omc_Flags_isSet(threadData, _OMC_LIT181))) goto tmp3_end;
tmp27 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
omc_CevalScript_cevalIsExternalObjectConstructor(threadData, _cache, _funcpath, _env, _msg);
tmp27 = 1;
goto goto_28;
goto_28:;
MMC_CATCH_INTERNAL(mmc_jumper)
if (tmp27) {goto goto_2;}
if(omc_Flags_isSet(threadData, _OMC_LIT171))
{
tmpMeta29 = stringAppend(_OMC_LIT167,omc_AbsynUtil_pathString(threadData, _funcpath, _OMC_LIT100, 1, 0));
tmpMeta30 = stringAppend(tmpMeta29,_OMC_LIT14);
fputs(MMC_STRINGDATA(tmpMeta30),stdout);
}
_p = omc_SymbolTable_getAbsyn(threadData);
_cache = omc_CevalScript_cevalGenerateFunction(threadData, _cache, _env, _p, _funcpath ,&_funcstr ,&_fileName);
_print_debug = omc_Flags_isSet(threadData, _OMC_LIT171);
tmpMeta31 = stringAppend(_fileName,_OMC_LIT52);
_libHandle = omc_System_loadLibrary(threadData, tmpMeta31, 1, _print_debug);
tmpMeta32 = stringAppend(_OMC_LIT172,_funcstr);
_funcHandle = omc_System_lookupFunction(threadData, _libHandle, tmpMeta32);
omc_ExecStat_execStatReset(threadData);
_newval = omc_DynLoad_executeFunction(threadData, _funcHandle, _vallst, _print_debug);
tmpMeta33 = stringAppend(_OMC_LIT173,omc_AbsynUtil_pathString(threadData, _funcpath, _OMC_LIT100, 1, 0));
tmpMeta34 = stringAppend(tmpMeta33,_OMC_LIT174);
omc_ExecStat_execStat(threadData, tmpMeta34);
omc_System_freeLibrary(threadData, _libHandle, _print_debug);
tmpMeta35 = omc_InteractiveUtil_getPathedClassInProgram(threadData, _funcpath, _p, 0, 0);
tmpMeta36 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta35), 6));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta36,9,1) == 0) goto goto_2;
tmpMeta37 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta35), 10));
_info = tmpMeta37;
_w = omc_InteractiveUtil_buildWithin(threadData, _funcpath);
if(omc_Flags_isSet(threadData, _OMC_LIT171))
{
tmpMeta38 = stringAppend(_OMC_LIT175,omc_AbsynUtil_pathString(threadData, _funcpath, _OMC_LIT100, 1, 0));
tmpMeta39 = stringAppend(tmpMeta38,_OMC_LIT176);
tmpMeta40 = stringAppend(tmpMeta39,omc_Dump_unparseWithin(threadData, _w));
tmpMeta41 = stringAppend(tmpMeta40,_OMC_LIT14);
fputs(MMC_STRINGDATA(tmpMeta41),stdout);
}
omc_AbsynUtil_getFileNameFromInfo(threadData, _info);
if(omc_Flags_isSet(threadData, _OMC_LIT171))
{
tmpMeta42 = stringAppend(_OMC_LIT177,omc_AbsynUtil_pathString(threadData, _funcpath, _OMC_LIT100, 1, 0));
tmpMeta43 = stringAppend(tmpMeta42,_OMC_LIT14);
fputs(MMC_STRINGDATA(tmpMeta43),stdout);
}
tmpMeta[0+0] = _cache;
tmpMeta[0+1] = _newval;
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta44;
modelica_metatype tmpMeta45;
modelica_metatype tmpMeta46;
modelica_boolean tmp47;
modelica_boolean tmp48;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_3,13,3) == 0) goto tmp3_end;
tmpMeta44 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 2));
_funcpath = tmpMeta44;
if(omc_Flags_isSet(threadData, _OMC_LIT171))
{
tmpMeta45 = stringAppend(_OMC_LIT182,omc_AbsynUtil_pathString(threadData, _funcpath, _OMC_LIT100, 1, 0));
tmpMeta46 = stringAppend(tmpMeta45,_OMC_LIT14);
fputs(MMC_STRINGDATA(tmpMeta46),stdout);
}
tmp47 = omc_Flags_isSet(threadData, _OMC_LIT181);
if (0 != tmp47) goto goto_2;
tmp48 = omc_Flags_isSet(threadData, _OMC_LIT186);
if (1 != tmp48) goto goto_2;
omc_Debug_trace(threadData, _OMC_LIT187);
goto goto_2;
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:;
}
}
_outCache = tmpMeta[0+0];
_outValue = tmpMeta[0+1];
_return: OMC_LABEL_UNUSED
if (out_outValue) { *out_outValue = _outValue; }
return _outCache;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_cevalCallFunctionEvaluateOrGenerate2(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inExp, modelica_metatype _inValuesValueLst, modelica_metatype _impl, modelica_metatype _inMsg, modelica_metatype _bIsCompleteFunction, modelica_metatype *out_outValue)
{
modelica_integer tmp1;
modelica_integer tmp2;
modelica_metatype _outCache = NULL;
tmp1 = mmc_unbox_integer(_impl);
tmp2 = mmc_unbox_integer(_bIsCompleteFunction);
_outCache = omc_CevalScript_cevalCallFunctionEvaluateOrGenerate2(threadData, _inCache, _inEnv, _inExp, _inValuesValueLst, tmp1, _inMsg, tmp2, out_outValue);
return _outCache;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_cevalCallFunctionEvaluateOrGenerate(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inExp, modelica_metatype _inValuesValueLst, modelica_boolean _impl, modelica_metatype _inMsg, modelica_boolean _bIsCompleteFunction, modelica_metatype *out_outValue)
{
modelica_metatype _outCache = NULL;
modelica_metatype _outValue = NULL;
modelica_integer _numCheckpoints;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
if(isNone(getGlobalRoot(((modelica_integer) 20))))
{
setGlobalRoot(((modelica_integer) 20), _OMC_LIT188);
_numCheckpoints = omc_ErrorExt_getNumCheckpoints(threadData);
{
{
modelica_metatype tmpMeta4;
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
MMC_TRY_STACK()
omc_StackOverflow_clearStacktraceMessages(threadData);
_outCache = omc_CevalScript_cevalCallFunctionEvaluateOrGenerate2(threadData, _inCache, _inEnv, _inExp, _inValuesValueLst, _impl, _inMsg, _bIsCompleteFunction ,&_outValue);
MMC_ELSE_STACK()
setGlobalRoot(((modelica_integer) 20), mmc_mk_none());
omc_ErrorExt_rollbackNumCheckpoints(threadData, omc_ErrorExt_getNumCheckpoints(threadData) - _numCheckpoints);
tmpMeta4 = stringAppend(_OMC_LIT189,omc_ExpressionDump_printExpStr(threadData, _inExp));
tmpMeta5 = stringAppend(tmpMeta4,_OMC_LIT190);
tmpMeta6 = stringAppend(tmpMeta5,stringDelimitList(omc_StackOverflow_readableStacktraceMessages(threadData), _OMC_LIT14));
{
modelica_metatype tmp10_1;
tmp10_1 = _inMsg;
{
modelica_metatype _info = NULL;
volatile mmc_switch_type tmp10;
int tmp11;
tmp10 = 0;
for (; tmp10 < 2; tmp10++) {
switch (MMC_SWITCH_CAST(tmp10)) {
case 0: {
modelica_metatype tmpMeta12;
if (mmc__uniontype__metarecord__typedef__equal(tmp10_1,0,1) == 0) goto tmp9_end;
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp10_1), 2));
_info = tmpMeta12;
tmpMeta7 = _info;
goto tmp9_done;
}
case 1: {
tmpMeta7 = _OMC_LIT192;
goto tmp9_done;
}
}
goto tmp9_end;
tmp9_end: ;
}
goto goto_8;
goto_8:;
MMC_THROW_INTERNAL();
goto tmp9_done;
tmp9_done:;
}
}
omc_Error_addInternalError(threadData, tmpMeta6, tmpMeta7);
omc_StackOverflow_clearStacktraceMessages(threadData);
_outCache = _inCache;
_outValue = _OMC_LIT13;
MMC_CATCH_STACK()
}
}
;
setGlobalRoot(((modelica_integer) 20), mmc_mk_none());
}
else
{
_outCache = omc_CevalScript_cevalCallFunctionEvaluateOrGenerate2(threadData, _inCache, _inEnv, _inExp, _inValuesValueLst, _impl, _inMsg, _bIsCompleteFunction ,&_outValue);
}
_return: OMC_LABEL_UNUSED
if (out_outValue) { *out_outValue = _outValue; }
return _outCache;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_cevalCallFunctionEvaluateOrGenerate(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inExp, modelica_metatype _inValuesValueLst, modelica_metatype _impl, modelica_metatype _inMsg, modelica_metatype _bIsCompleteFunction, modelica_metatype *out_outValue)
{
modelica_integer tmp1;
modelica_integer tmp2;
modelica_metatype _outCache = NULL;
tmp1 = mmc_unbox_integer(_impl);
tmp2 = mmc_unbox_integer(_bIsCompleteFunction);
_outCache = omc_CevalScript_cevalCallFunctionEvaluateOrGenerate(threadData, _inCache, _inEnv, _inExp, _inValuesValueLst, tmp1, _inMsg, tmp2, out_outValue);
return _outCache;
}
DLLExport
modelica_metatype omc_CevalScript_cevalCallFunction(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inExp, modelica_metatype _inValuesValueLst, modelica_boolean _impl, modelica_metatype _inMsg, modelica_integer _numIter, modelica_metatype *out_outValue)
{
modelica_metatype _outCache = NULL;
modelica_metatype _outValue = NULL;
modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;volatile modelica_metatype tmp4_2;volatile modelica_metatype tmp4_3;volatile modelica_metatype tmp4_4;volatile modelica_metatype tmp4_5;
tmp4_1 = _inCache;
tmp4_2 = _inEnv;
tmp4_3 = _inExp;
tmp4_4 = _inValuesValueLst;
tmp4_5 = _inMsg;
{
modelica_metatype _env = NULL;
modelica_metatype _funcpath = NULL;
modelica_metatype _expl = NULL;
modelica_metatype _vallst = NULL;
modelica_metatype _pubVallst = NULL;
modelica_metatype _proVallst = NULL;
modelica_metatype _msg = NULL;
modelica_metatype _cache = NULL;
modelica_metatype _complexName = NULL;
modelica_metatype _pubVarLst = NULL;
modelica_metatype _proVarLst = NULL;
modelica_metatype _varLst = NULL;
modelica_metatype _pubVarNames = NULL;
modelica_metatype _proVarNames = NULL;
modelica_metatype _varNames = NULL;
modelica_metatype _ty = NULL;
modelica_boolean _bIsCompleteFunction;
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;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_3,13,3) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 2));
_funcpath = tmpMeta6;
_cache = tmp4_1;
_env = tmp4_2;
_vallst = tmp4_4;
_msg = tmp4_5;
tmpMeta[0+0] = omc_Ceval_cevalKnownExternalFuncs(threadData, _cache, _env, _funcpath, _vallst, _msg, &tmpMeta[0+1]);
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta7;
modelica_boolean tmp8;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_3,13,3) == 0) goto tmp3_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 2));
_funcpath = tmpMeta7;
_cache = tmp4_1;
_env = tmp4_2;
_msg = tmp4_5;
tmp8 = omc_FGraph_isNotEmpty(threadData, _env);
if (1 != tmp8) goto goto_2;
omc_CevalScript_cevalIsExternalObjectConstructor(threadData, _cache, _funcpath, _env, _msg);
goto goto_2;
goto tmp3_done;
}
case 2: {
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_boolean tmp18;
modelica_metatype tmpMeta19;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_3,13,3) == 0) goto tmp3_end;
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 2));
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 4));
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta10), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta11,9,3) == 0) goto tmp3_end;
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta11), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta12,3,1) == 0) goto tmp3_end;
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta12), 2));
tmpMeta14 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta11), 3));
_funcpath = tmpMeta9;
_complexName = tmpMeta13;
_varLst = tmpMeta14;
_cache = tmp4_1;
_env = tmp4_2;
_pubVallst = tmp4_4;
_msg = tmp4_5;
if(omc_Flags_isSet(threadData, _OMC_LIT171))
{
tmpMeta15 = stringAppend(_OMC_LIT193,omc_AbsynUtil_pathString(threadData, _funcpath, _OMC_LIT100, 1, 0));
tmpMeta16 = stringAppend(tmpMeta15,_OMC_LIT194);
tmpMeta17 = stringAppend(tmpMeta16,omc_AbsynUtil_pathString(threadData, _complexName, _OMC_LIT100, 1, 0));
omc_Debug_traceln(threadData, tmpMeta17);
}
tmp18 = omc_AbsynUtil_pathEqual(threadData, _funcpath, _complexName);
if (1 != tmp18) goto goto_2;
_pubVarLst = omc_List_splitOnTrue(threadData, _varLst, boxvar_Types_isPublicVar ,&_proVarLst);
_expl = omc_List_map1(threadData, _proVarLst, boxvar_Types_getBindingExp, _funcpath);
_cache = omc_Ceval_cevalList(threadData, _cache, _env, _expl, _impl, _msg, _numIter ,&_proVallst);
_pubVarNames = omc_List_map(threadData, _pubVarLst, boxvar_Expression_varName);
_proVarNames = omc_List_map(threadData, _proVarLst, boxvar_Expression_varName);
_varNames = listAppend(_pubVarNames, _proVarNames);
_vallst = listAppend(_pubVallst, _proVallst);
tmpMeta19 = mmc_mk_box5(13, &Values_Value_RECORD__desc, _funcpath, _vallst, _varNames, mmc_mk_integer(((modelica_integer) -1)));
tmpMeta[0+0] = _cache;
tmpMeta[0+1] = tmpMeta19;
goto tmp3_done;
}
case 3: {
modelica_metatype tmpMeta20;
modelica_metatype tmpMeta21;
modelica_metatype tmpMeta22;
modelica_metatype tmpMeta23;
modelica_integer tmp24;
modelica_boolean tmp25;
modelica_metatype tmpMeta27;
modelica_boolean tmp28;
modelica_metatype tmpMeta29;
modelica_metatype tmpMeta30;
modelica_metatype tmpMeta31;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_3,13,3) == 0) goto tmp3_end;
tmpMeta20 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 2));
tmpMeta21 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 4));
tmpMeta22 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta21), 2));
tmpMeta23 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta21), 4));
tmp24 = mmc_unbox_integer(tmpMeta23);
if (0 != tmp24) goto tmp3_end;
_funcpath = tmpMeta20;
_ty = tmpMeta22;
_cache = tmp4_1;
_env = tmp4_2;
_msg = tmp4_5;
tmp25 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
omc_CevalScript_cevalIsExternalObjectConstructor(threadData, _cache, _funcpath, _env, _msg);
tmp25 = 1;
goto goto_26;
goto_26:;
MMC_CATCH_INTERNAL(mmc_jumper)
if (tmp25) {goto goto_2;}
if(omc_Flags_isSet(threadData, _OMC_LIT171))
{
tmpMeta27 = stringAppend(_OMC_LIT195,omc_AbsynUtil_pathString(threadData, _funcpath, _OMC_LIT100, 1, 0));
omc_Debug_traceln(threadData, tmpMeta27);
}
_bIsCompleteFunction = omc_CevalScript_isCompleteFunction(threadData, _cache, _env, _funcpath);
tmp28 = omc_Types_hasMetaArray(threadData, _ty);
if (0 != tmp28) goto goto_2;
if(omc_Flags_isSet(threadData, _OMC_LIT171))
{
tmpMeta29 = stringAppend(_OMC_LIT196,omc_AbsynUtil_pathString(threadData, _funcpath, _OMC_LIT100, 1, 0));
tmpMeta30 = stringAppend(tmpMeta29,_OMC_LIT88);
tmpMeta31 = stringAppend(tmpMeta30,(_bIsCompleteFunction?_OMC_LIT197:_OMC_LIT198));
omc_Debug_traceln(threadData, tmpMeta31);
}
tmpMeta[0+0] = omc_CevalScript_cevalCallFunctionEvaluateOrGenerate(threadData, _inCache, _inEnv, _inExp, _inValuesValueLst, _impl, _inMsg, _bIsCompleteFunction, &tmpMeta[0+1]);
goto tmp3_done;
}
case 4: {
modelica_metatype tmpMeta32;
modelica_metatype tmpMeta33;
modelica_metatype tmpMeta34;
modelica_integer tmp35;
modelica_boolean tmp36;
modelica_boolean tmp38;
modelica_metatype tmpMeta39;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_3,13,3) == 0) goto tmp3_end;
tmpMeta32 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 2));
tmpMeta33 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 4));
tmpMeta34 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta33), 4));
tmp35 = mmc_unbox_integer(tmpMeta34);
if (0 != tmp35) goto tmp3_end;
_funcpath = tmpMeta32;
_cache = tmp4_1;
_env = tmp4_2;
_msg = tmp4_5;
tmp36 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
omc_CevalScript_cevalIsExternalObjectConstructor(threadData, _cache, _funcpath, _env, _msg);
tmp36 = 1;
goto goto_37;
goto_37:;
MMC_CATCH_INTERNAL(mmc_jumper)
if (tmp36) {goto goto_2;}
tmp38 = omc_CevalScript_isCompleteFunction(threadData, _cache, _env, _funcpath);
if (0 != tmp38) goto goto_2;
if(omc_Flags_isSet(threadData, _OMC_LIT171))
{
tmpMeta39 = stringAppend(_OMC_LIT199,omc_AbsynUtil_pathString(threadData, _funcpath, _OMC_LIT100, 1, 0));
omc_Debug_traceln(threadData, tmpMeta39);
}
goto goto_2;
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:;
}
}
_outCache = tmpMeta[0+0];
_outValue = tmpMeta[0+1];
_return: OMC_LABEL_UNUSED
if (out_outValue) { *out_outValue = _outValue; }
return _outCache;
}
modelica_metatype boxptr_CevalScript_cevalCallFunction(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inExp, modelica_metatype _inValuesValueLst, modelica_metatype _impl, modelica_metatype _inMsg, modelica_metatype _numIter, modelica_metatype *out_outValue)
{
modelica_integer tmp1;
modelica_integer tmp2;
modelica_metatype _outCache = NULL;
tmp1 = mmc_unbox_integer(_impl);
tmp2 = mmc_unbox_integer(_numIter);
_outCache = omc_CevalScript_cevalCallFunction(threadData, _inCache, _inEnv, _inExp, _inValuesValueLst, tmp1, _inMsg, tmp2, out_outValue);
return _outCache;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_addNonPartialClassRef(threadData_t *threadData, modelica_string _name, modelica_metatype _ref, modelica_metatype _accum)
{
modelica_metatype _classes = NULL;
modelica_metatype _e = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = omc_FNode_fromRef(threadData, _ref);
{
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,3,5) == 0) goto tmp3_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta7,2,8) == 0) goto tmp3_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta7), 5));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta8,1,0) == 0) goto tmp3_end;
_e = tmpMeta7;
tmpMeta9 = mmc_mk_cons(_e, _accum);
tmpMeta1 = tmpMeta9;
goto tmp3_done;
}
case 1: {
tmpMeta1 = _accum;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_classes = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _classes;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_getNonPartialElementsForInstantiatedClass(threadData_t *threadData, modelica_metatype _sp, modelica_metatype _cl, modelica_metatype _p)
{
jmp_buf *old_mmc_jumper = threadData->mmc_jumper;
modelica_metatype _elts = NULL;
modelica_metatype _env = NULL;
modelica_metatype _elt = NULL;
modelica_boolean _skip;
modelica_metatype _eltsTmp = NULL;
modelica_boolean tmp1 = 0;
modelica_metatype tmpMeta15;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _cl;
{
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 3; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,1,2) == 0) goto tmp3_end;
tmp1 = 0;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8) == 0) goto tmp3_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta7,0,8) == 0) goto tmp3_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta7), 2));
_eltsTmp = tmpMeta8;
tmp1 = (!omc_List_exist(threadData, _eltsTmp, boxvar_SCodeUtil_isElementExtendsOrClassExtends));
goto tmp3_done;
}
case 2: {
tmp1 = 1;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_skip = tmp1;
if((!_skip))
{
{
{
volatile mmc_switch_type tmp11;
int tmp12;
tmp11 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp10_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp11 < 2; tmp11++) {
switch (MMC_SWITCH_CAST(tmp11)) {
case 0: {
modelica_metatype tmpMeta13;
modelica_metatype tmpMeta14;
omc_ErrorExt_setCheckpoint(threadData, _OMC_LIT200);
tmpMeta13 = MMC_REFSTRUCTLIT(mmc_nil);
omc_Inst_instantiateClass(threadData, omc_FCore_emptyCache(threadData), tmpMeta13, _sp, omc_AbsynUtil_makeNotFullyQualified(threadData, _p), 0, 1 ,&_env, NULL, NULL);
tmpMeta14 = MMC_REFSTRUCTLIT(mmc_nil);
_elts = omc_FCore_RefTree_fold(threadData, omc_FNode_children(threadData, omc_FNode_fromRef(threadData, omc_FGraph_lastScopeRef(threadData, _env))), boxvar_CevalScript_addNonPartialClassRef, tmpMeta14);
omc_ErrorExt_rollBack(threadData, _OMC_LIT200);
goto _return;
goto tmp10_done;
}
case 1: {
goto tmp10_done;
}
}
goto tmp10_end;
tmp10_end: ;
}
goto goto_9;
tmp10_done:
(void)tmp11;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp10_done2;
goto_9:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp11 < 2) {
goto tmp10_top;
}
MMC_THROW_INTERNAL();
tmp10_done2:;
}
}
;
omc_ErrorExt_rollBack(threadData, _OMC_LIT200);
}
{
modelica_metatype tmp18_1;
tmp18_1 = _cl;
{
volatile mmc_switch_type tmp18;
int tmp19;
tmp18 = 0;
for (; tmp18 < 2; tmp18++) {
switch (MMC_SWITCH_CAST(tmp18)) {
case 0: {
modelica_metatype tmpMeta20;
modelica_metatype tmpMeta21;
modelica_metatype tmpMeta22;
if (mmc__uniontype__metarecord__typedef__equal(tmp18_1,2,8) == 0) goto tmp17_end;
tmpMeta20 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp18_1), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta20,0,8) == 0) goto tmp17_end;
tmpMeta21 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta20), 2));
_elts = tmpMeta21;
{
modelica_metatype __omcQ_24tmpVar11;
modelica_metatype* tmp23;
modelica_metatype tmpMeta24;
modelica_metatype __omcQ_24tmpVar10;
modelica_integer tmp25;
modelica_metatype _e_loopVar = 0;
modelica_metatype _e;
_e_loopVar = _elts;
tmpMeta24 = MMC_REFSTRUCTLIT(mmc_nil);
__omcQ_24tmpVar11 = tmpMeta24;
tmp23 = &__omcQ_24tmpVar11;
while(1) {
tmp25 = 1;
while (!listEmpty(_e_loopVar)) {
_e = MMC_CAR(_e_loopVar);
_e_loopVar = MMC_CDR(_e_loopVar);
if (((!omc_SCodeUtil_isPartial(threadData, _e)) && omc_SCodeUtil_isClass(threadData, _e))) {
tmp25--;
break;
}
}
if (tmp25 == 0) {
__omcQ_24tmpVar10 = _e;
*tmp23 = mmc_mk_cons(__omcQ_24tmpVar10,0);
tmp23 = &MMC_CDR(*tmp23);
} else if (tmp25 == 1) {
break;
} else {
goto goto_16;
}
}
*tmp23 = mmc_mk_nil();
tmpMeta22 = __omcQ_24tmpVar11;
}
tmpMeta15 = tmpMeta22;
goto tmp17_done;
}
case 1: {
modelica_metatype tmpMeta26;
tmpMeta26 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta15 = tmpMeta26;
goto tmp17_done;
}
}
goto tmp17_end;
tmp17_end: ;
}
goto goto_16;
goto_16:;
MMC_THROW_INTERNAL();
goto tmp17_done;
tmp17_done:;
}
}
_elts = tmpMeta15;
_return: OMC_LABEL_UNUSED
threadData->mmc_jumper = old_mmc_jumper;
return _elts;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_findFunctionsToCompile(threadData_t *threadData, modelica_metatype _elt, modelica_metatype _pathPrefix, modelica_metatype _sp, modelica_metatype _acc, modelica_metatype _accMetarecord, modelica_metatype *out_pathsMetarecord)
{
modelica_metatype _paths = NULL;
modelica_metatype _pathsMetarecord = NULL;
modelica_string _name = NULL;
modelica_metatype _path = NULL;
modelica_metatype _elements = NULL;
modelica_metatype tmpMeta1;
modelica_metatype tmpMeta2;
modelica_metatype tmpMeta3;
modelica_metatype tmpMeta4;
modelica_boolean tmp5;
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta1 = _elt;
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta1,2,8) == 0) MMC_THROW_INTERNAL();
tmpMeta2 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta1), 2));
_name = tmpMeta2;
tmpMeta3 = mmc_mk_box2(4, &Absyn_Path_IDENT__desc, _name);
_path = omc_AbsynUtil_joinPaths(threadData, _pathPrefix, tmpMeta3);
tmp5 = (modelica_boolean)omc_SCodeUtil_isFunction(threadData, _elt);
if(tmp5)
{
tmpMeta4 = mmc_mk_cons(_path, _acc);
tmpMeta6 = tmpMeta4;
}
else
{
tmpMeta6 = _acc;
}
_paths = tmpMeta6;
{
modelica_metatype tmp10_1;
tmp10_1 = _elt;
{
volatile mmc_switch_type tmp10;
int tmp11;
tmp10 = 0;
for (; tmp10 < 2; tmp10++) {
switch (MMC_SWITCH_CAST(tmp10)) {
case 0: {
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
if (mmc__uniontype__metarecord__typedef__equal(tmp10_1,2,8) == 0) goto tmp9_end;
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp10_1), 6));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta12,17,5) == 0) goto tmp9_end;
tmpMeta13 = mmc_mk_cons(_path, _accMetarecord);
tmpMeta7 = tmpMeta13;
goto tmp9_done;
}
case 1: {
tmpMeta7 = _accMetarecord;
goto tmp9_done;
}
}
goto tmp9_end;
tmp9_end: ;
}
goto goto_8;
goto_8:;
MMC_THROW_INTERNAL();
goto tmp9_done;
tmp9_done:;
}
}
_pathsMetarecord = tmpMeta7;
_elements = omc_CevalScript_getNonPartialElementsForInstantiatedClass(threadData, _sp, _elt, _path);
_paths = omc_List_fold22(threadData, _elements, boxvar_CevalScript_findFunctionsToCompile, _path, _sp, _paths, _pathsMetarecord ,&_pathsMetarecord);
_return: OMC_LABEL_UNUSED
if (out_pathsMetarecord) { *out_pathsMetarecord = _pathsMetarecord; }
return _paths;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_generateFunctions2(threadData_t *threadData, modelica_metatype _icache, modelica_metatype _ienv, modelica_metatype _p, modelica_metatype _sp, modelica_metatype _cl, modelica_string _name, modelica_metatype _info, modelica_boolean _cleanCache, modelica_metatype *out_env)
{
modelica_metatype _cache = NULL;
modelica_metatype _env = NULL;
modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;volatile modelica_metatype tmp4_2;volatile modelica_metatype tmp4_3;
tmp4_1 = _icache;
tmp4_2 = _ienv;
tmp4_3 = _info;
{
modelica_metatype _dependencies = NULL;
modelica_metatype _strs = NULL;
modelica_metatype _paths = NULL;
modelica_metatype _pathsMetarecord = NULL;
modelica_metatype _funcs = NULL;
modelica_metatype _d = NULL;
modelica_string _file = NULL;
modelica_string _nameHeader = NULL;
modelica_string _str = NULL;
modelica_metatype _path = NULL;
modelica_metatype _elements = NULL;
modelica_metatype _metarecords = NULL;
modelica_metatype _t = 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_integer tmp7;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 2));
_cache = tmp4_1;
_env = tmp4_2;
_file = tmpMeta6;
tmp7 = omc_System_regex(threadData, _file, _OMC_LIT201, ((modelica_integer) 1), 0, 0, NULL);
if (1 != tmp7) goto goto_2;
tmpMeta[0+0] = _cache;
tmpMeta[0+1] = _env;
goto tmp3_done;
}
case 1: {
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_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;
_cache = tmp4_1;
_env = tmp4_2;
_cache = (_cleanCache?omc_FCore_emptyCache(threadData):_cache);
if(omc_SCodeUtil_isPartial(threadData, _cl))
{
tmpMeta8 = MMC_REFSTRUCTLIT(mmc_nil);
_paths = tmpMeta8;
tmpMeta9 = MMC_REFSTRUCTLIT(mmc_nil);
_pathsMetarecord = tmpMeta9;
}
else
{
tmpMeta10 = mmc_mk_box2(4, &Absyn_Path_IDENT__desc, _name);
tmpMeta11 = mmc_mk_box2(5, &Absyn_Path_FULLYQUALIFIED__desc, tmpMeta10);
_path = tmpMeta11;
_elements = omc_CevalScript_getNonPartialElementsForInstantiatedClass(threadData, _sp, _cl, _path);
tmpMeta12 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta13 = MMC_REFSTRUCTLIT(mmc_nil);
_paths = omc_List_fold22(threadData, _elements, boxvar_CevalScript_findFunctionsToCompile, _path, _sp, tmpMeta12, tmpMeta13 ,&_pathsMetarecord);
}
tmpMeta14 = MMC_REFSTRUCTLIT(mmc_nil);
_metarecords = tmpMeta14;
{
modelica_metatype _mr;
for (tmpMeta15 = _pathsMetarecord; !listEmpty(tmpMeta15); tmpMeta15=MMC_CDR(tmpMeta15))
{
_mr = MMC_CAR(tmpMeta15);
_cache = omc_Lookup_lookupType(threadData, _cache, _env, _mr, mmc_mk_some(_info) ,&_t, NULL);
tmpMeta16 = mmc_mk_cons(_t, _metarecords);
_metarecords = tmpMeta16;
}
}
_cache = omc_CevalScript_instantiateDaeFunctions(threadData, _cache, _env, _paths);
_funcs = omc_FCore_getFunctionTree(threadData, _cache);
_d = omc_List_map2(threadData, _paths, boxvar_DAEUtil_getNamedFunctionWithError, _funcs, _info);
tmpMeta20 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta21 = mmc_mk_box2(0, boxvar_CevalScript_matchQualifiedCalls, tmpMeta20);
omc_DAEUtil_traverseDAEFunctions(threadData, _d, boxvar_Expression_traverseSubexpressionsHelper, tmpMeta21, &tmpMeta18);
tmpMeta19 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta18), 2));
_dependencies = tmpMeta19;
_dependencies = omc_List_sort(threadData, _dependencies, boxvar_Util_strcmpBool);
_dependencies = omc_List_map1(threadData, _dependencies, boxvar_stringAppend, _OMC_LIT202);
tmpMeta22 = stringAppend(_name,_OMC_LIT202);
_nameHeader = tmpMeta22;
tmpMeta23 = mmc_mk_cons(_nameHeader, _dependencies);
_strs = omc_List_map1r(threadData, tmpMeta23, boxvar_stringAppend, _OMC_LIT203);
tmpMeta24 = stringAppend(_name,_OMC_LIT204);
tmpMeta25 = stringAppend(_OMC_LIT203,_name);
tmpMeta26 = stringAppend(tmpMeta25,_OMC_LIT205);
tmpMeta27 = stringAppend(tmpMeta26,_name);
tmpMeta28 = stringAppend(tmpMeta27,_OMC_LIT206);
tmpMeta29 = stringAppend(tmpMeta28,_OMC_LIT88);
tmpMeta30 = stringAppend(tmpMeta29,stringDelimitList(_strs, _OMC_LIT88));
omc_System_writeFile(threadData, tmpMeta24, tmpMeta30);
_dependencies = omc_List_map1(threadData, _dependencies, boxvar_stringAppend, _OMC_LIT98);
_dependencies = omc_List_map1r(threadData, _dependencies, boxvar_stringAppend, _OMC_LIT207);
tmpMeta31 = MMC_REFSTRUCTLIT(mmc_nil);
omc_SimCodeFunction_translateFunctions(threadData, _p, _name, mmc_mk_none(), _d, tmpMeta31, _dependencies);
_str = omc_Tpl_tplString(threadData, boxvar_Unparsing_programExternalHeaderFromTypes, _metarecords);
tmpMeta32 = stringAppend(_name,_OMC_LIT208);
tmpMeta33 = stringAppend(_OMC_LIT209,_str);
omc_System_writeFile(threadData, tmpMeta32, tmpMeta33);
_cache = (_cleanCache?_icache:_cache);
tmpMeta[0+0] = _cache;
tmpMeta[0+1] = _env;
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta34;
tmpMeta34 = mmc_mk_cons(_name, MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addSourceMessage(threadData, _OMC_LIT212, tmpMeta34, _info);
goto goto_2;
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:;
}
}
_cache = tmpMeta[0+0];
_env = tmpMeta[0+1];
_return: OMC_LABEL_UNUSED
if (out_env) { *out_env = _env; }
return _cache;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_generateFunctions2(threadData_t *threadData, modelica_metatype _icache, modelica_metatype _ienv, modelica_metatype _p, modelica_metatype _sp, modelica_metatype _cl, modelica_metatype _name, modelica_metatype _info, modelica_metatype _cleanCache, modelica_metatype *out_env)
{
modelica_integer tmp1;
modelica_metatype _cache = NULL;
tmp1 = mmc_unbox_integer(_cleanCache);
_cache = omc_CevalScript_generateFunctions2(threadData, _icache, _ienv, _p, _sp, _cl, _name, _info, tmp1, out_env);
return _cache;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_generateFunctions(threadData_t *threadData, modelica_metatype _icache, modelica_metatype _ienv, modelica_metatype _p, modelica_metatype _fullScodeProgram, modelica_metatype _isp, modelica_boolean _cleanCache, modelica_metatype *out_env)
{
modelica_metatype _cache = NULL;
modelica_metatype _env = NULL;
modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;modelica_metatype tmp4_3;
tmp4_1 = _icache;
tmp4_2 = _ienv;
tmp4_3 = _isp;
{
modelica_string _name = NULL;
modelica_metatype _sp = NULL;
modelica_string _file = NULL;
modelica_integer _n;
modelica_metatype _info = NULL;
modelica_metatype _cl = NULL;
modelica_metatype _restr = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 3; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_3)) goto tmp3_end;
_cache = tmp4_1;
_env = tmp4_2;
tmpMeta[0+0] = _cache;
tmpMeta[0+1] = _env;
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_3)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_3);
tmpMeta7 = MMC_CDR(tmp4_3);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,2,8) == 0) goto tmp3_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 2));
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 4));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta9,0,0) == 0) goto tmp3_end;
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 6));
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 9));
_cl = tmpMeta6;
_name = tmpMeta8;
_restr = tmpMeta10;
_info = tmpMeta11;
_sp = tmpMeta7;
_cache = tmp4_1;
_env = tmp4_2;
{
modelica_metatype tmp14_1;
tmp14_1 = _restr;
{
int tmp14;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp14_1))) {
case 11: {
goto tmp13_done;
}
case 21: {
goto tmp13_done;
}
default:
tmp13_default: OMC_LABEL_UNUSED; {
omc_Error_addSourceMessage(threadData, _OMC_LIT125, _OMC_LIT214, _info);
goto goto_12;
goto tmp13_done;
}
}
goto tmp13_end;
tmp13_end: ;
}
goto goto_12;
goto_12:;
goto goto_2;
goto tmp13_done;
tmp13_done:;
}
}
;
_cache = omc_CevalScript_generateFunctions2(threadData, _cache, _env, _p, _fullScodeProgram, _cl, _name, _info, _cleanCache ,&_env);
_icache = _cache;
_ienv = _env;
_isp = _sp;
goto _tailrecursive;
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta15;
modelica_metatype tmpMeta16;
modelica_metatype tmpMeta17;
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
modelica_metatype tmpMeta20;
modelica_metatype tmpMeta21;
if (listEmpty(tmp4_3)) goto tmp3_end;
tmpMeta15 = MMC_CAR(tmp4_3);
tmpMeta16 = MMC_CDR(tmp4_3);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta15,2,8) == 0) goto tmp3_end;
tmpMeta17 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta15), 2));
tmpMeta18 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta15), 4));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta18,1,0) == 0) goto tmp3_end;
tmpMeta19 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta15), 9));
tmpMeta20 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta19), 2));
_name = tmpMeta17;
_info = tmpMeta19;
_file = tmpMeta20;
_n = omc_System_regex(threadData, _file, _OMC_LIT201, ((modelica_integer) 1), 0, 0, NULL);
tmpMeta21 = stringAppend(_OMC_LIT215,_name);
omc_Error_assertion(threadData, (_n > ((modelica_integer) 0)), tmpMeta21, _info);
goto goto_2;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_cache = tmpMeta[0+0];
_env = tmpMeta[0+1];
_return: OMC_LABEL_UNUSED
if (out_env) { *out_env = _env; }
return _cache;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_generateFunctions(threadData_t *threadData, modelica_metatype _icache, modelica_metatype _ienv, modelica_metatype _p, modelica_metatype _fullScodeProgram, modelica_metatype _isp, modelica_metatype _cleanCache, modelica_metatype *out_env)
{
modelica_integer tmp1;
modelica_metatype _cache = NULL;
tmp1 = mmc_unbox_integer(_cleanCache);
_cache = omc_CevalScript_generateFunctions(threadData, _icache, _ienv, _p, _fullScodeProgram, _isp, tmp1, out_env);
return _cache;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_instantiateDaeFunctions(threadData_t *threadData, modelica_metatype _icache, modelica_metatype _ienv, modelica_metatype _ipaths)
{
modelica_metatype _outCache = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;modelica_metatype tmp4_2;modelica_metatype tmp4_3;
tmp4_1 = _icache;
tmp4_2 = _ienv;
tmp4_3 = _ipaths;
{
modelica_metatype _path = NULL;
modelica_metatype _cache = NULL;
modelica_metatype _env = NULL;
modelica_metatype _paths = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_3)) goto tmp3_end;
_cache = tmp4_1;
tmpMeta1 = _cache;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
if (listEmpty(tmp4_3)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_3);
tmpMeta7 = MMC_CDR(tmp4_3);
_path = tmpMeta6;
_paths = tmpMeta7;
_cache = tmp4_1;
_env = tmp4_2;
tmpMeta9 = omc_Static_instantiateDaeFunctionForceInst(threadData, _cache, _env, _path, 0, mmc_mk_none(), 1, &tmpMeta8);
_cache = tmpMeta9;
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta8,0,0) == 0) goto goto_2;
_icache = _cache;
_ienv = _env;
_ipaths = _paths;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outCache = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _outCache;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_matchQualifiedCalls(threadData_t *threadData, modelica_metatype _inExp, modelica_metatype _inAcc, modelica_metatype *out_outAcc)
{
modelica_metatype _outExp = NULL;
modelica_metatype _outAcc = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_outExp = _inExp;
{
modelica_metatype tmp4_1;
tmp4_1 = _inExp;
{
modelica_string _name = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 5; 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,27,3) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta7,2,1) == 0) goto tmp3_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta7), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta8,0,2) == 0) goto tmp3_end;
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta8), 2));
_name = tmpMeta9;
tmpMeta1 = omc_List_consOnTrue(threadData, (!listMember(_name, _inAcc)), _name, _inAcc);
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
modelica_metatype tmpMeta14;
modelica_integer tmp15;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,13,3) == 0) goto tmp3_end;
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta10,2,1) == 0) goto tmp3_end;
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta10), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta11,0,2) == 0) goto tmp3_end;
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta11), 2));
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
tmpMeta14 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta13), 4));
tmp15 = mmc_unbox_integer(tmpMeta14);
if (0 != tmp15) goto tmp3_end;
_name = tmpMeta12;
tmpMeta1 = omc_List_consOnTrue(threadData, (!listMember(_name, _inAcc)), _name, _inAcc);
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta16;
modelica_metatype tmpMeta17;
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
modelica_integer tmp20;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,6,2) == 0) goto tmp3_end;
tmpMeta16 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta16,0,4) == 0) goto tmp3_end;
tmpMeta17 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta16), 2));
tmpMeta18 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta18,13,2) == 0) goto tmp3_end;
tmpMeta19 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta18), 2));
tmp20 = mmc_unbox_integer(tmpMeta19);
if (0 != tmp20) goto tmp3_end;
_name = tmpMeta17;
tmpMeta1 = omc_List_consOnTrue(threadData, (!listMember(_name, _inAcc)), _name, _inAcc);
goto tmp3_done;
}
case 3: {
modelica_metatype tmpMeta21;
modelica_metatype tmpMeta22;
modelica_metatype tmpMeta23;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,4) == 0) goto tmp3_end;
tmpMeta21 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta21,2,1) == 0) goto tmp3_end;
tmpMeta22 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta21), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta22,0,2) == 0) goto tmp3_end;
tmpMeta23 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta22), 2));
_name = tmpMeta23;
tmpMeta1 = omc_List_consOnTrue(threadData, (!listMember(_name, _inAcc)), _name, _inAcc);
goto tmp3_done;
}
case 4: {
tmpMeta1 = _inAcc;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_outAcc = tmpMeta1;
_return: OMC_LABEL_UNUSED
if (out_outAcc) { *out_outAcc = _outAcc; }
return _outExp;
}
DLLExport
modelica_metatype omc_CevalScript_cevalGenerateFunction(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _program, modelica_metatype _inPath, modelica_string *out_functionName, modelica_string *out_functionFileName)
{
modelica_metatype _outCache = NULL;
modelica_string _functionName = NULL;
modelica_string _functionFileName = NULL;
modelica_string tmp1_c1 __attribute__((unused)) = 0;
modelica_string tmp1_c2 __attribute__((unused)) = 0;
modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;volatile modelica_metatype tmp4_2;volatile modelica_metatype tmp4_3;
tmp4_1 = _inCache;
tmp4_2 = _inEnv;
tmp4_3 = _inPath;
{
modelica_string _pathstr = NULL;
modelica_string _fileName = NULL;
modelica_metatype _env = NULL;
modelica_metatype _path = NULL;
modelica_metatype _cache = NULL;
modelica_metatype _mainFunction = NULL;
modelica_metatype _dependencies = NULL;
modelica_metatype _metarecordTypes = NULL;
modelica_metatype _funcs = 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;
modelica_metatype tmpMeta8;
_cache = tmp4_1;
_env = tmp4_2;
_path = tmp4_3;
if (!(omc_Flags_isSet(threadData, _OMC_LIT181) && (!omc_Flags_isSet(threadData, _OMC_LIT219)))) goto tmp3_end;
_cache = omc_CevalScript_collectDependencies(threadData, _cache, _env, _path ,&_mainFunction ,&_dependencies ,&_metarecordTypes);
_pathstr = omc_CevalScript_generateFunctionName(threadData, _path);
_fileName = omc_CevalScript_generateFunctionFileName(threadData, _path);
omc_FCore_getFunctionTree(threadData, _cache);
tmpMeta6 = MMC_REFSTRUCTLIT(mmc_nil);
omc_SimCodeFunction_translateFunctions(threadData, _program, _fileName, mmc_mk_some(_mainFunction), _dependencies, _metarecordTypes, tmpMeta6);
tmpMeta7 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta8 = MMC_REFSTRUCTLIT(mmc_nil);
omc_CevalScript_compileModel(threadData, _fileName, tmpMeta7, _OMC_LIT52, tmpMeta8);
tmpMeta[0+0] = _cache;
tmp1_c1 = _pathstr;
tmp1_c2 = _fileName;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
_cache = tmp4_1;
_path = tmp4_3;
if (!(omc_Flags_isSet(threadData, _OMC_LIT181) && omc_Flags_isSet(threadData, _OMC_LIT219))) goto tmp3_end;
_funcs = omc_FCore_getFunctionTree(threadData, _cache);
_pathstr = omc_CevalScript_generateFunctionName(threadData, _path);
_fileName = omc_CevalScript_generateFunctionFileName(threadData, _path);
_dependencies = omc_DAEUtil_getFunctionList(threadData, _funcs, 0);
tmpMeta9 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta10 = MMC_REFSTRUCTLIT(mmc_nil);
omc_SimCodeFunction_translateFunctions(threadData, _program, _fileName, mmc_mk_none(), _dependencies, tmpMeta9, tmpMeta10);
tmpMeta[0+0] = _cache;
tmp1_c1 = _pathstr;
tmp1_c2 = _fileName;
goto tmp3_done;
}
case 2: {
modelica_boolean tmp11;
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
modelica_metatype tmpMeta16;
_cache = tmp4_1;
_env = tmp4_2;
_path = tmp4_3;
if (!(omc_Flags_isSet(threadData, _OMC_LIT181) && omc_Flags_isSet(threadData, _OMC_LIT186))) goto tmp3_end;
tmpMeta12 = omc_Static_isExternalObjectFunction(threadData, _cache, _env, _path, &tmp11);
_cache = tmpMeta12;
if (0 != tmp11) goto goto_2;
_pathstr = omc_CevalScript_generateFunctionName(threadData, _path);
_fileName = omc_CevalScript_generateFunctionFileName(threadData, _path);
tmpMeta13 = stringAppend(_OMC_LIT220,_pathstr);
tmpMeta14 = stringAppend(tmpMeta13,_OMC_LIT221);
tmpMeta15 = stringAppend(tmpMeta14,_fileName);
tmpMeta16 = stringAppend(tmpMeta15,_OMC_LIT14);
omc_Debug_trace(threadData, tmpMeta16);
goto goto_2;
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:;
}
}
_outCache = tmpMeta[0+0];
_functionName = tmp1_c1;
_functionFileName = tmp1_c2;
_return: OMC_LABEL_UNUSED
if (out_functionName) { *out_functionName = _functionName; }
if (out_functionFileName) { *out_functionFileName = _functionFileName; }
return _outCache;
}
DLLExport
modelica_metatype omc_CevalScript_collectDependencies(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _env, modelica_metatype _functionName, modelica_metatype *out_mainFunction, modelica_metatype *out_dependencies, modelica_metatype *out_metarecordTypes)
{
modelica_metatype _outCache = NULL;
modelica_metatype _mainFunction = NULL;
modelica_metatype _dependencies = NULL;
modelica_metatype _metarecordTypes = NULL;
modelica_metatype _uniontypePaths = NULL;
modelica_metatype _paths = NULL;
modelica_metatype _funcs = NULL;
modelica_metatype tmpMeta1;
modelica_metatype tmpMeta2;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_mainFunction = omc_CevalScript_getFunctionDependencies(threadData, _inCache, _functionName ,&_paths ,&_funcs);
_dependencies = omc_List_map1(threadData, _paths, boxvar_DAEUtil_getNamedFunction, _funcs);
tmpMeta1 = mmc_mk_cons(_mainFunction, MMC_REFSTRUCTLIT(mmc_nil));
_dependencies = omc_List_setDifference(threadData, _dependencies, tmpMeta1);
tmpMeta2 = MMC_REFSTRUCTLIT(mmc_nil);
_uniontypePaths = omc_DAEUtil_getUniontypePaths(threadData, _dependencies, tmpMeta2);
_outCache = omc_Lookup_lookupMetarecordsRecursive(threadData, _inCache, _env, _uniontypePaths ,&_metarecordTypes);
_return: OMC_LABEL_UNUSED
if (out_mainFunction) { *out_mainFunction = _mainFunction; }
if (out_dependencies) { *out_dependencies = _dependencies; }
if (out_metarecordTypes) { *out_metarecordTypes = _metarecordTypes; }
return _outCache;
}
DLLExport
modelica_metatype omc_CevalScript_getFunctionDependencies(threadData_t *threadData, modelica_metatype _cache, modelica_metatype _functionName, modelica_metatype *out_dependencies, modelica_metatype *out_funcs)
{
modelica_metatype _mainFunction = NULL;
modelica_metatype _dependencies = NULL;
modelica_metatype _funcs = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_funcs = omc_FCore_getFunctionTree(threadData, _cache);
_mainFunction = omc_DAEUtil_getNamedFunction(threadData, _functionName, _funcs);
_dependencies = omc_SimCodeFunction_getCalledFunctionsInFunction(threadData, _functionName, _funcs);
_return: OMC_LABEL_UNUSED
if (out_dependencies) { *out_dependencies = _dependencies; }
if (out_funcs) { *out_funcs = _funcs; }
return _mainFunction;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_CevalScript_generateFunctionFileName(threadData_t *threadData, modelica_metatype _functionPath)
{
modelica_string _functionName = NULL;
modelica_string _n1 = NULL;
modelica_string _n2 = NULL;
modelica_metatype tmpMeta1;
modelica_metatype tmpMeta2;
modelica_metatype tmpMeta3;
modelica_metatype tmpMeta4;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_functionName = omc_AbsynUtil_pathStringUnquoteReplaceDot(threadData, _functionPath, _OMC_LIT222);
if((stringLength(_functionName) > ((modelica_integer) 50)))
{
_n1 = omc_AbsynUtil_pathFirstIdent(threadData, _functionPath);
_n2 = omc_AbsynUtil_pathLastIdent(threadData, _functionPath);
tmpMeta1 = stringAppend(_n1,_OMC_LIT222);
tmpMeta2 = stringAppend(tmpMeta1,_n2);
_functionName = omc_System_unquoteIdentifier(threadData, tmpMeta2);
tmpMeta3 = stringAppend(_functionName,_OMC_LIT222);
tmpMeta4 = stringAppend(tmpMeta3,intString(tick()));
_functionName = tmpMeta4;
}
_return: OMC_LABEL_UNUSED
return _functionName;
}
PROTECTED_FUNCTION_STATIC modelica_string omc_CevalScript_generateFunctionName(threadData_t *threadData, modelica_metatype _functionPath)
{
modelica_string _functionName = NULL;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_functionName = omc_AbsynUtil_pathStringUnquoteReplaceDot(threadData, _functionPath, _OMC_LIT222);
_return: OMC_LABEL_UNUSED
return _functionName;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_errorLevelToValue(threadData_t *threadData, modelica_metatype _severity)
{
modelica_metatype _val = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _severity;
{
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))) {
case 3: {
tmpMeta1 = omc_CevalScript_makeErrorEnumLiteral(threadData, _OMC_LIT223, _OMC_LIT224, ((modelica_integer) 1));
goto tmp3_done;
}
case 4: {
tmpMeta1 = omc_CevalScript_makeErrorEnumLiteral(threadData, _OMC_LIT223, _OMC_LIT225, ((modelica_integer) 2));
goto tmp3_done;
}
case 5: {
tmpMeta1 = omc_CevalScript_makeErrorEnumLiteral(threadData, _OMC_LIT223, _OMC_LIT226, ((modelica_integer) 3));
goto tmp3_done;
}
case 6: {
tmpMeta1 = omc_CevalScript_makeErrorEnumLiteral(threadData, _OMC_LIT223, _OMC_LIT227, ((modelica_integer) 4));
goto tmp3_done;
}
default:
tmp3_default: OMC_LABEL_UNUSED; {
fputs(MMC_STRINGDATA(_OMC_LIT228),stdout);
goto goto_2;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_val = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _val;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_errorTypeToValue(threadData_t *threadData, modelica_metatype _ty)
{
modelica_metatype _val = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _ty;
{
int tmp4;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))) {
case 3: {
tmpMeta1 = omc_CevalScript_makeErrorEnumLiteral(threadData, _OMC_LIT229, _OMC_LIT230, ((modelica_integer) 1));
goto tmp3_done;
}
case 4: {
tmpMeta1 = omc_CevalScript_makeErrorEnumLiteral(threadData, _OMC_LIT229, _OMC_LIT231, ((modelica_integer) 2));
goto tmp3_done;
}
case 5: {
tmpMeta1 = omc_CevalScript_makeErrorEnumLiteral(threadData, _OMC_LIT229, _OMC_LIT232, ((modelica_integer) 3));
goto tmp3_done;
}
case 6: {
tmpMeta1 = omc_CevalScript_makeErrorEnumLiteral(threadData, _OMC_LIT229, _OMC_LIT233, ((modelica_integer) 4));
goto tmp3_done;
}
case 7: {
tmpMeta1 = omc_CevalScript_makeErrorEnumLiteral(threadData, _OMC_LIT229, _OMC_LIT234, ((modelica_integer) 5));
goto tmp3_done;
}
case 8: {
tmpMeta1 = omc_CevalScript_makeErrorEnumLiteral(threadData, _OMC_LIT229, _OMC_LIT235, ((modelica_integer) 6));
goto tmp3_done;
}
default:
tmp3_default: OMC_LABEL_UNUSED; {
fputs(MMC_STRINGDATA(_OMC_LIT236),stdout);
goto goto_2;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_val = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _val;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_makeErrorEnumLiteral(threadData_t *threadData, modelica_string _enumName, modelica_string _enumField, modelica_integer _index)
{
modelica_metatype _val = 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 = mmc_mk_box2(4, &Absyn_Path_IDENT__desc, _enumField);
tmpMeta2 = mmc_mk_box3(3, &Absyn_Path_QUALIFIED__desc, _enumName, tmpMeta1);
tmpMeta3 = mmc_mk_box3(3, &Absyn_Path_QUALIFIED__desc, _OMC_LIT238, tmpMeta2);
tmpMeta4 = mmc_mk_box3(3, &Absyn_Path_QUALIFIED__desc, _OMC_LIT237, tmpMeta3);
tmpMeta5 = mmc_mk_box2(5, &Absyn_Path_FULLYQUALIFIED__desc, tmpMeta4);
tmpMeta6 = mmc_mk_box3(7, &Values_Value_ENUM__LITERAL__desc, tmpMeta5, mmc_mk_integer(_index));
_val = tmpMeta6;
_return: OMC_LABEL_UNUSED
return _val;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_makeErrorEnumLiteral(threadData_t *threadData, modelica_metatype _enumName, modelica_metatype _enumField, modelica_metatype _index)
{
modelica_integer tmp1;
modelica_metatype _val = NULL;
tmp1 = mmc_unbox_integer(_index);
_val = omc_CevalScript_makeErrorEnumLiteral(threadData, _enumName, _enumField, tmp1);
return _val;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_infoToValue(threadData_t *threadData, modelica_metatype _info)
{
modelica_metatype _val = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _info;
{
modelica_metatype _values = NULL;
modelica_metatype _infopath = NULL;
modelica_integer _ls;
modelica_integer _cs;
modelica_integer _le;
modelica_integer _ce;
modelica_string _filename = NULL;
modelica_boolean _readonly;
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_integer tmp8;
modelica_metatype tmpMeta9;
modelica_integer tmp10;
modelica_metatype tmpMeta11;
modelica_integer tmp12;
modelica_metatype tmpMeta13;
modelica_integer tmp14;
modelica_metatype tmpMeta15;
modelica_integer tmp16;
modelica_metatype tmpMeta17;
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
modelica_metatype tmpMeta20;
modelica_metatype tmpMeta21;
modelica_metatype tmpMeta22;
modelica_metatype tmpMeta23;
modelica_metatype tmpMeta24;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmp8 = mmc_unbox_integer(tmpMeta7);
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
tmp10 = mmc_unbox_integer(tmpMeta9);
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5));
tmp12 = mmc_unbox_integer(tmpMeta11);
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6));
tmp14 = mmc_unbox_integer(tmpMeta13);
tmpMeta15 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 7));
tmp16 = mmc_unbox_integer(tmpMeta15);
_filename = tmpMeta6;
_readonly = tmp8;
_ls = tmp10;
_cs = tmp12;
_le = tmp14;
_ce = tmp16;
_infopath = _OMC_LIT243;
tmpMeta18 = mmc_mk_box2(5, &Values_Value_STRING__desc, _filename);
tmpMeta19 = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(_readonly));
tmpMeta20 = mmc_mk_box2(3, &Values_Value_INTEGER__desc, mmc_mk_integer(_ls));
tmpMeta21 = mmc_mk_box2(3, &Values_Value_INTEGER__desc, mmc_mk_integer(_cs));
tmpMeta22 = mmc_mk_box2(3, &Values_Value_INTEGER__desc, mmc_mk_integer(_le));
tmpMeta23 = mmc_mk_box2(3, &Values_Value_INTEGER__desc, mmc_mk_integer(_ce));
tmpMeta17 = mmc_mk_cons(tmpMeta18, mmc_mk_cons(tmpMeta19, mmc_mk_cons(tmpMeta20, mmc_mk_cons(tmpMeta21, mmc_mk_cons(tmpMeta22, mmc_mk_cons(tmpMeta23, MMC_REFSTRUCTLIT(mmc_nil)))))));
_values = tmpMeta17;
tmpMeta24 = mmc_mk_box5(13, &Values_Value_RECORD__desc, _infopath, _values, _OMC_LIT255, mmc_mk_integer(((modelica_integer) -1)));
tmpMeta1 = tmpMeta24;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_val = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _val;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_errorToValue(threadData_t *threadData, modelica_metatype _err)
{
modelica_metatype _val = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _err;
{
modelica_metatype _msgpath = NULL;
modelica_metatype _tyVal = NULL;
modelica_metatype _severityVal = NULL;
modelica_metatype _infoVal = NULL;
modelica_metatype _values = NULL;
modelica_metatype _message = NULL;
modelica_string _msg_str = NULL;
modelica_integer _id;
modelica_metatype _severity = NULL;
modelica_metatype _ty = NULL;
modelica_metatype _info = 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_integer tmp8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
modelica_metatype tmpMeta16;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 2));
tmp8 = mmc_unbox_integer(tmpMeta7);
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 3));
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 4));
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 5));
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
_id = tmp8;
_ty = tmpMeta9;
_severity = tmpMeta10;
_message = tmpMeta11;
_info = tmpMeta12;
_msg_str = omc_Gettext_translateContent(threadData, _message);
_msgpath = _OMC_LIT260;
_tyVal = omc_CevalScript_errorTypeToValue(threadData, _ty);
_severityVal = omc_CevalScript_errorLevelToValue(threadData, _severity);
_infoVal = omc_CevalScript_infoToValue(threadData, _info);
tmpMeta14 = mmc_mk_box2(5, &Values_Value_STRING__desc, _msg_str);
tmpMeta15 = mmc_mk_box2(3, &Values_Value_INTEGER__desc, mmc_mk_integer(_id));
tmpMeta13 = mmc_mk_cons(_infoVal, mmc_mk_cons(tmpMeta14, mmc_mk_cons(_tyVal, mmc_mk_cons(_severityVal, mmc_mk_cons(tmpMeta15, MMC_REFSTRUCTLIT(mmc_nil))))));
_values = tmpMeta13;
tmpMeta16 = mmc_mk_box5(13, &Values_Value_RECORD__desc, _msgpath, _values, _OMC_LIT270, mmc_mk_integer(((modelica_integer) -1)));
tmpMeta1 = tmpMeta16;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_val = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _val;
}
DLLExport
modelica_string omc_CevalScript_getPackageVersion(threadData_t *threadData, modelica_metatype _path, modelica_metatype _p)
{
modelica_string _version = NULL;
modelica_boolean _evalParamAnn;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_version = _OMC_LIT52;
_evalParamAnn = omc_Config_getEvaluateParametersInAnnotations(threadData);
omc_Config_setEvaluateParametersInAnnotations(threadData, 1);
{
{
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;
tmpMeta5 = omc_Interactive_getNamedAnnotation(threadData, _path, _p, _OMC_LIT272, _OMC_LIT274, boxvar_Interactive_getAnnotationExp);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta5,3,1) == 0) goto goto_1;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta5), 2));
_version = tmpMeta6;
goto tmp2_done;
}
case 1: {
_version = _OMC_LIT52;
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:;
}
}
;
omc_Config_setEvaluateParametersInAnnotations(threadData, _evalParamAnn);
_return: OMC_LABEL_UNUSED
return _version;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_getVariableNames(threadData_t *threadData, modelica_metatype _vars, modelica_metatype _acc)
{
modelica_metatype _ovars = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp4_1;
tmp4_1 = _vars;
{
modelica_metatype _vs = NULL;
modelica_string _p = NULL;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 3; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (!listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta1 = listReverse(_acc);
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);
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 2));
if (5 != MMC_STRLEN(tmpMeta8) || strcmp(MMC_STRINGDATA(_OMC_LIT275), MMC_STRINGDATA(tmpMeta8)) != 0) goto tmp3_end;
_vs = tmpMeta7;
_vars = _vs;
goto _tailrecursive;
goto tmp3_done;
}
case 2: {
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 (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta9 = MMC_CAR(tmp4_1);
tmpMeta10 = MMC_CDR(tmp4_1);
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta9), 2));
_p = tmpMeta11;
_vs = tmpMeta10;
tmpMeta13 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta14 = mmc_mk_box3(5, &Absyn_ComponentRef_CREF__IDENT__desc, _p, tmpMeta13);
tmpMeta15 = mmc_mk_box2(4, &Absyn_CodeNode_C__VARIABLENAME__desc, tmpMeta14);
tmpMeta16 = mmc_mk_box2(15, &Values_Value_CODE__desc, tmpMeta15);
tmpMeta12 = mmc_mk_cons(tmpMeta16, _acc);
_vars = _vs;
_acc = tmpMeta12;
goto _tailrecursive;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_ovars = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _ovars;
}
DLLExport
modelica_metatype omc_CevalScript_evalCodeTypeName(threadData_t *threadData, modelica_metatype _val, modelica_metatype _env)
{
modelica_metatype _res = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;
tmp4_1 = _val;
{
modelica_metatype _path = 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;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,12,1) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,0,1) == 0) goto tmp3_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta7,1,1) == 0) goto tmp3_end;
_path = tmpMeta7;
omc_Lookup_lookupVar(threadData, omc_FCore_emptyCache(threadData), _env, omc_ComponentReference_pathToCref(threadData, _path), NULL, NULL, &tmpMeta8, NULL, NULL, NULL, NULL, NULL);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta8,2,2) == 0) goto goto_2;
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta8), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta9,12,1) == 0) goto goto_2;
tmpMeta10 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta9), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta10,0,1) == 0) goto goto_2;
_res = tmpMeta9;
tmpMeta1 = _res;
goto tmp3_done;
}
case 1: {
tmpMeta1 = _val;
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 = tmpMeta1;
_return: OMC_LABEL_UNUSED
return _res;
}
static modelica_metatype closure0_CevalScript_checkUsesAndUpdateProgram(threadData_t *thData, modelica_metatype closure, modelica_metatype newp, modelica_metatype $in_p)
{
modelica_metatype checkUses = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),1));
modelica_string modelicaPath = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),2));
modelica_metatype notifyLoad = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),3));
modelica_metatype requireExactVersion = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),4));
return boxptr_CevalScript_checkUsesAndUpdateProgram(thData, newp, $in_p, checkUses, modelicaPath, notifyLoad, requireExactVersion);
}
DLLExport
modelica_metatype omc_CevalScript_cevalInteractiveFunctions2(threadData_t *threadData, modelica_metatype _cache, modelica_metatype _env, modelica_string _functionName, modelica_metatype _args, modelica_metatype _msg, modelica_metatype *out_outValue)
{
modelica_metatype _outCache = NULL;
modelica_metatype _outValue = NULL;
modelica_metatype tmpMeta1;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_outCache = _cache;
{
volatile modelica_string tmp4_1;volatile modelica_metatype tmp4_2;
tmp4_1 = _functionName;
tmp4_2 = _args;
{
modelica_string _str = NULL;
modelica_string _str1 = NULL;
modelica_string _str2 = NULL;
modelica_string _str3 = NULL;
modelica_string _token = NULL;
modelica_string _cmd = NULL;
modelica_string _encoding = NULL;
modelica_string _filename = NULL;
modelica_string _pathstr = NULL;
modelica_string _name = NULL;
modelica_string _res = NULL;
modelica_string _workdir = NULL;
modelica_string _from = NULL;
modelica_string _to = NULL;
modelica_metatype _vals = NULL;
modelica_metatype _cvars = NULL;
modelica_metatype _path = NULL;
modelica_metatype _classpath = NULL;
modelica_metatype _className = NULL;
modelica_metatype _parentClass = NULL;
modelica_metatype _sp = NULL;
modelica_metatype _p = NULL;
modelica_metatype _newp = NULL;
modelica_metatype _newps = NULL;
modelica_metatype _ty = NULL;
modelica_metatype _tys = NULL;
modelica_metatype _v = NULL;
modelica_integer _i;
modelica_integer _access;
modelica_metatype _strs = NULL;
modelica_metatype _strs1 = NULL;
modelica_metatype _strs2 = NULL;
modelica_metatype _interfaceType = NULL;
modelica_real _r;
modelica_real _r1;
modelica_real _r2;
modelica_boolean _bval;
modelica_boolean _b;
modelica_boolean _b1;
modelica_boolean _mergeAST;
modelica_boolean _includePartial;
modelica_boolean _qualified;
modelica_boolean _sort;
modelica_boolean _requireExactVersion;
modelica_metatype _codeNode = NULL;
modelica_metatype _paths = NULL;
modelica_metatype _classes = NULL;
modelica_metatype _within_ = NULL;
modelica_integer _oldLanguageStd;
modelica_metatype _cl = NULL;
modelica_metatype _elts = NULL;
modelica_metatype _messages = NULL;
modelica_metatype _interfaceTypeAssoc = NULL;
modelica_metatype _gcStats = 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 < 154; 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;
if (11 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT387), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta6 = MMC_CAR(tmp4_2);
tmpMeta7 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,2,1) == 0) goto tmp3_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 2));
if (listEmpty(tmpMeta7)) goto tmp3_end;
tmpMeta9 = MMC_CAR(tmpMeta7);
tmpMeta10 = MMC_CDR(tmpMeta7);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta9,2,1) == 0) goto tmp3_end;
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta9), 2));
if (!listEmpty(tmpMeta10)) goto tmp3_end;
_str1 = tmpMeta8;
_str2 = tmpMeta11;
tmpMeta12 = omc_Parser_parsestring(threadData, _str1, _str2, omc_Config_acceptedGrammar(threadData), omc_Flags_getConfigEnum(threadData, _OMC_LIT322), omc_Flags_getConfigBool(threadData, _OMC_LIT327));
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta12), 2));
tmpMeta14 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta12), 3));
_classes = tmpMeta13;
_within_ = tmpMeta14;
_paths = omc_List_map(threadData, _classes, boxvar_AbsynUtil_className);
_paths = omc_List_map1r(threadData, _paths, boxvar_AbsynUtil_joinWithinPath, _within_);
_vals = omc_List_map(threadData, _paths, boxvar_ValuesUtil_makeCodeTypeName);
tmpMeta1 = omc_ValuesUtil_makeArray(threadData, _vals);
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta15;
if (11 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT387), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 150;
tmpMeta15 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta1 = omc_ValuesUtil_makeArray(threadData, tmpMeta15);
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta16;
modelica_metatype tmpMeta17;
modelica_metatype tmpMeta18;
modelica_metatype tmpMeta19;
modelica_metatype tmpMeta20;
modelica_metatype tmpMeta21;
if (9 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT388), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta16 = MMC_CAR(tmp4_2);
tmpMeta17 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta16,2,1) == 0) goto tmp3_end;
tmpMeta18 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta16), 2));
if (listEmpty(tmpMeta17)) goto tmp3_end;
tmpMeta19 = MMC_CAR(tmpMeta17);
tmpMeta20 = MMC_CDR(tmpMeta17);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta19,2,1) == 0) goto tmp3_end;
tmpMeta21 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta19), 2));
if (!listEmpty(tmpMeta20)) goto tmp3_end;
_str1 = tmpMeta18;
_encoding = tmpMeta21;
tmp4 += 149;
omc_Error_clearMessages(threadData);
omc_Print_clearErrorBuf(threadData);
_paths = omc_Interactive_parseFile(threadData, _str1, _encoding, 0);
_vals = omc_List_map(threadData, _paths, boxvar_ValuesUtil_makeCodeTypeName);
tmpMeta1 = omc_ValuesUtil_makeArray(threadData, _vals);
goto tmp3_done;
}
case 3: {
modelica_metatype tmpMeta22;
modelica_metatype tmpMeta23;
modelica_metatype tmpMeta24;
modelica_metatype tmpMeta25;
modelica_metatype tmpMeta26;
modelica_metatype tmpMeta27;
if (28 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT389), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta22 = MMC_CAR(tmp4_2);
tmpMeta23 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta22,2,1) == 0) goto tmp3_end;
tmpMeta24 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta22), 2));
if (listEmpty(tmpMeta23)) goto tmp3_end;
tmpMeta25 = MMC_CAR(tmpMeta23);
tmpMeta26 = MMC_CDR(tmpMeta23);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta25,2,1) == 0) goto tmp3_end;
tmpMeta27 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta25), 2));
if (!listEmpty(tmpMeta26)) goto tmp3_end;
_str1 = tmpMeta24;
_encoding = tmpMeta27;
tmp4 += 148;
omc_Error_clearMessages(threadData);
omc_Print_clearErrorBuf(threadData);
_paths = omc_Interactive_parseFile(threadData, _str1, _encoding, 1);
_vals = omc_List_map(threadData, _paths, boxvar_ValuesUtil_makeCodeTypeName);
tmpMeta1 = omc_ValuesUtil_makeArray(threadData, _vals);
goto tmp3_done;
}
case 4: {
modelica_metatype tmpMeta28;
modelica_metatype tmpMeta29;
modelica_metatype tmpMeta30;
modelica_metatype tmpMeta31;
modelica_metatype tmpMeta32;
modelica_metatype tmpMeta33;
modelica_metatype tmpMeta34;
modelica_metatype tmpMeta35;
modelica_metatype tmpMeta36;
modelica_integer tmp37;
modelica_metatype tmpMeta38;
modelica_metatype tmpMeta39;
modelica_metatype tmpMeta40;
modelica_integer tmp41;
modelica_metatype tmpMeta42;
modelica_metatype tmpMeta43;
modelica_metatype tmpMeta44;
modelica_integer tmp45;
if (19 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT390), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta28 = MMC_CAR(tmp4_2);
tmpMeta29 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta28,2,1) == 0) goto tmp3_end;
tmpMeta30 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta28), 2));
if (listEmpty(tmpMeta29)) goto tmp3_end;
tmpMeta31 = MMC_CAR(tmpMeta29);
tmpMeta32 = MMC_CDR(tmpMeta29);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta31,2,1) == 0) goto tmp3_end;
tmpMeta33 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta31), 2));
if (listEmpty(tmpMeta32)) goto tmp3_end;
tmpMeta34 = MMC_CAR(tmpMeta32);
tmpMeta35 = MMC_CDR(tmpMeta32);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta34,3,1) == 0) goto tmp3_end;
tmpMeta36 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta34), 2));
tmp37 = mmc_unbox_integer(tmpMeta36);
if (listEmpty(tmpMeta35)) goto tmp3_end;
tmpMeta38 = MMC_CAR(tmpMeta35);
tmpMeta39 = MMC_CDR(tmpMeta35);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta38,3,1) == 0) goto tmp3_end;
tmpMeta40 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta38), 2));
tmp41 = mmc_unbox_integer(tmpMeta40);
if (listEmpty(tmpMeta39)) goto tmp3_end;
tmpMeta42 = MMC_CAR(tmpMeta39);
tmpMeta43 = MMC_CDR(tmpMeta39);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta42,3,1) == 0) goto tmp3_end;
tmpMeta44 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta42), 2));
tmp45 = mmc_unbox_integer(tmpMeta44);
if (!listEmpty(tmpMeta43)) goto tmp3_end;
_str1 = tmpMeta30;
_encoding = tmpMeta33;
_b = tmp37;
_b1 = tmp41;
_requireExactVersion = tmp45;
tmp4 += 147;
_newp = omc_CevalScript_loadFile(threadData, _str1, _encoding, omc_SymbolTable_getAbsyn(threadData), _b, _b1, _requireExactVersion);
_vals = omc_List_map(threadData, omc_Interactive_getTopClassnames(threadData, _newp), boxvar_ValuesUtil_makeCodeTypeName);
omc_SymbolTable_setAbsyn(threadData, _newp);
tmpMeta1 = omc_ValuesUtil_makeArray(threadData, _vals);
goto tmp3_done;
}
case 5: {
modelica_metatype tmpMeta46;
modelica_metatype tmpMeta47;
modelica_metatype tmpMeta48;
modelica_metatype tmpMeta49;
modelica_metatype tmpMeta50;
if (13 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT391), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta46 = MMC_CAR(tmp4_2);
tmpMeta47 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta46,12,1) == 0) goto tmp3_end;
tmpMeta48 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta46), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta48,0,1) == 0) goto tmp3_end;
tmpMeta49 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta48), 2));
if (!listEmpty(tmpMeta47)) goto tmp3_end;
_path = tmpMeta49;
tmp4 += 146;
_str = omc_Interactive_getSourceFile(threadData, _path, omc_SymbolTable_getAbsyn(threadData));
tmpMeta50 = mmc_mk_box2(5, &Values_Value_STRING__desc, _str);
tmpMeta1 = tmpMeta50;
goto tmp3_done;
}
case 6: {
modelica_metatype tmpMeta51;
modelica_metatype tmpMeta52;
modelica_metatype tmpMeta53;
modelica_metatype tmpMeta54;
modelica_metatype tmpMeta55;
modelica_metatype tmpMeta56;
modelica_metatype tmpMeta57;
modelica_metatype tmpMeta58;
modelica_metatype tmpMeta59;
modelica_integer tmp60;
modelica_metatype tmpMeta61;
modelica_metatype tmpMeta62;
if (13 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT392), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta51 = MMC_CAR(tmp4_2);
tmpMeta52 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta51,12,1) == 0) goto tmp3_end;
tmpMeta53 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta51), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta53,0,1) == 0) goto tmp3_end;
tmpMeta54 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta53), 2));
if (listEmpty(tmpMeta52)) goto tmp3_end;
tmpMeta55 = MMC_CAR(tmpMeta52);
tmpMeta56 = MMC_CDR(tmpMeta52);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta55,2,1) == 0) goto tmp3_end;
tmpMeta57 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta55), 2));
if (!listEmpty(tmpMeta56)) goto tmp3_end;
_path = tmpMeta54;
_str = tmpMeta57;
tmp4 += 145;
tmpMeta58 = omc_Interactive_checkAccessAnnotationAndEncryption(threadData, _path, omc_SymbolTable_getAbsyn(threadData));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta58,4,2) == 0) goto goto_2;
tmpMeta59 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta58), 3));
tmp60 = mmc_unbox_integer(tmpMeta59);
_access = tmp60;
if((_access >= ((modelica_integer) 9)))
{
_b = omc_Interactive_setSourceFile(threadData, _path, _str, omc_SymbolTable_getAbsyn(threadData) ,&_p);
omc_SymbolTable_setAbsyn(threadData, _p);
}
else
{
tmpMeta61 = MMC_REFSTRUCTLIT(mmc_nil);
omc_Error_addMessage(threadData, _OMC_LIT330, tmpMeta61);
_b = 0;
}
tmpMeta62 = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(_b));
tmpMeta1 = tmpMeta62;
goto tmp3_done;
}
case 7: {
modelica_metatype tmpMeta63;
modelica_metatype tmpMeta64;
modelica_metatype tmpMeta65;
modelica_metatype tmpMeta66;
if (8 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT393), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta63 = MMC_CAR(tmp4_2);
tmpMeta64 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta63,2,1) == 0) goto tmp3_end;
tmpMeta65 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta63), 2));
if (!listEmpty(tmpMeta64)) goto tmp3_end;
_str = tmpMeta65;
tmp4 += 144;
tmpMeta66 = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_System_basename(threadData, _str));
tmpMeta1 = tmpMeta66;
goto tmp3_done;
}
case 8: {
modelica_metatype tmpMeta67;
modelica_metatype tmpMeta68;
modelica_metatype tmpMeta69;
modelica_metatype tmpMeta70;
if (7 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT394), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta67 = MMC_CAR(tmp4_2);
tmpMeta68 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta67,2,1) == 0) goto tmp3_end;
tmpMeta69 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta67), 2));
if (!listEmpty(tmpMeta68)) goto tmp3_end;
_str = tmpMeta69;
tmp4 += 143;
tmpMeta70 = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_System_dirname(threadData, _str));
tmpMeta1 = tmpMeta70;
goto tmp3_done;
}
case 9: {
modelica_metatype tmpMeta71;
modelica_metatype tmpMeta72;
modelica_metatype tmpMeta73;
modelica_metatype tmpMeta74;
if (12 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT395), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta71 = MMC_CAR(tmp4_2);
tmpMeta72 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta71,12,1) == 0) goto tmp3_end;
tmpMeta73 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta71), 2));
if (!listEmpty(tmpMeta72)) goto tmp3_end;
_codeNode = tmpMeta73;
tmp4 += 142;
tmpMeta74 = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_Dump_printCodeStr(threadData, _codeNode));
tmpMeta1 = tmpMeta74;
goto tmp3_done;
}
case 10: {
modelica_metatype tmpMeta75;
modelica_metatype tmpMeta76;
modelica_metatype tmpMeta77;
modelica_metatype tmpMeta78;
modelica_metatype tmpMeta79;
modelica_metatype tmpMeta80;
if (6 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT396), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta75 = MMC_CAR(tmp4_2);
tmpMeta76 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta75,12,1) == 0) goto tmp3_end;
tmpMeta77 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta75), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta77,1,1) == 0) goto tmp3_end;
tmpMeta78 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta77), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta78,2,2) == 0) goto tmp3_end;
tmpMeta79 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta78), 2));
if (!listEmpty(tmpMeta76)) goto tmp3_end;
_name = tmpMeta79;
tmp4 += 141;
_ty = omc_Interactive_getTypeOfVariable(threadData, _name, omc_SymbolTable_getVars(threadData));
tmpMeta80 = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_Types_unparseType(threadData, _ty));
tmpMeta1 = tmpMeta80;
goto tmp3_done;
}
case 11: {
if (21 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT397), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (!listEmpty(tmp4_2)) goto tmp3_end;
tmp4 += 140;
omc_GCExt_gcollectAndUnmap(threadData);
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 12: {
modelica_metatype tmpMeta81;
modelica_metatype tmpMeta82;
modelica_metatype tmpMeta83;
modelica_integer tmp84;
modelica_metatype tmpMeta85;
if (12 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT398), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta81 = MMC_CAR(tmp4_2);
tmpMeta82 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta81,0,1) == 0) goto tmp3_end;
tmpMeta83 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta81), 2));
tmp84 = mmc_unbox_integer(tmpMeta83);
if (!listEmpty(tmpMeta82)) goto tmp3_end;
_i = tmp84;
tmp4 += 139;
tmpMeta85 = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(omc_GCExt_expandHeap(threadData, ((modelica_real)_i))));
tmpMeta1 = tmpMeta85;
goto tmp3_done;
}
case 13: {
modelica_metatype tmpMeta86;
modelica_metatype tmpMeta87;
modelica_metatype tmpMeta88;
modelica_integer tmp89;
if (20 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT399), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta86 = MMC_CAR(tmp4_2);
tmpMeta87 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta86,0,1) == 0) goto tmp3_end;
tmpMeta88 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta86), 2));
tmp89 = mmc_unbox_integer(tmpMeta88);
if (!listEmpty(tmpMeta87)) goto tmp3_end;
_i = tmp89;
tmp4 += 138;
omc_GCExt_setMaxHeapSize(threadData, ((modelica_real)_i));
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 14: {
modelica_metatype tmpMeta90;
modelica_metatype tmpMeta91;
modelica_metatype tmpMeta92;
modelica_metatype tmpMeta93;
modelica_metatype tmpMeta94;
modelica_metatype tmpMeta95;
modelica_metatype tmpMeta96;
modelica_metatype tmpMeta97;
modelica_metatype tmpMeta98;
modelica_metatype tmpMeta99;
modelica_metatype tmpMeta100;
modelica_metatype tmpMeta101;
modelica_metatype tmpMeta102;
if (17 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT400), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (!listEmpty(tmp4_2)) goto tmp3_end;
tmp4 += 137;
_gcStats = omc_GCExt_getProfStats(threadData);
tmpMeta91 = mmc_mk_box2(3, &Values_Value_INTEGER__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_gcStats), 2))));
tmpMeta92 = mmc_mk_box2(3, &Values_Value_INTEGER__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_gcStats), 3))));
tmpMeta93 = mmc_mk_box2(3, &Values_Value_INTEGER__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_gcStats), 4))));
tmpMeta94 = mmc_mk_box2(3, &Values_Value_INTEGER__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_gcStats), 5))));
tmpMeta95 = mmc_mk_box2(3, &Values_Value_INTEGER__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_gcStats), 6))));
tmpMeta96 = mmc_mk_box2(3, &Values_Value_INTEGER__desc, mmc_mk_integer(mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_gcStats), 5)))) + mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_gcStats), 6))))));
tmpMeta97 = mmc_mk_box2(3, &Values_Value_INTEGER__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_gcStats), 7))));
tmpMeta98 = mmc_mk_box2(3, &Values_Value_INTEGER__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_gcStats), 8))));
tmpMeta99 = mmc_mk_box2(3, &Values_Value_INTEGER__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_gcStats), 9))));
tmpMeta100 = mmc_mk_box2(3, &Values_Value_INTEGER__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_gcStats), 10))));
tmpMeta101 = mmc_mk_box2(3, &Values_Value_INTEGER__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_gcStats), 11))));
tmpMeta90 = mmc_mk_cons(tmpMeta91, mmc_mk_cons(tmpMeta92, mmc_mk_cons(tmpMeta93, mmc_mk_cons(tmpMeta94, mmc_mk_cons(tmpMeta95, mmc_mk_cons(tmpMeta96, mmc_mk_cons(tmpMeta97, mmc_mk_cons(tmpMeta98, mmc_mk_cons(tmpMeta99, mmc_mk_cons(tmpMeta100, mmc_mk_cons(tmpMeta101, MMC_REFSTRUCTLIT(mmc_nil))))))))))));
tmpMeta102 = mmc_mk_box5(13, &Values_Value_RECORD__desc, _OMC_LIT332, tmpMeta90, _OMC_LIT354, mmc_mk_integer(((modelica_integer) -1)));
tmpMeta1 = tmpMeta102;
goto tmp3_done;
}
case 15: {
if (5 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT401), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (!listEmpty(tmp4_2)) goto tmp3_end;
tmp4 += 136;
omc_SymbolTable_reset(threadData);
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 16: {
if (12 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT402), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (!listEmpty(tmp4_2)) goto tmp3_end;
tmp4 += 135;
omc_SymbolTable_clearProgram(threadData);
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 17: {
modelica_metatype tmpMeta103;
if (14 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT403), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (!listEmpty(tmp4_2)) goto tmp3_end;
tmp4 += 134;
tmpMeta103 = MMC_REFSTRUCTLIT(mmc_nil);
omc_SymbolTable_setVars(threadData, tmpMeta103);
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 18: {
if (4 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT404), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 133;
tmpMeta1 = omc_CevalScript_listClass(threadData, _args);
goto tmp3_done;
}
case 19: {
if (8 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT405), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 132;
tmpMeta1 = omc_CevalScript_listFile(threadData, _args);
goto tmp3_done;
}
case 20: {
modelica_metatype tmpMeta104;
modelica_metatype tmpMeta105;
modelica_metatype tmpMeta106;
if (11 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT406), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta104 = MMC_CAR(tmp4_2);
tmpMeta105 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta104,5,2) == 0) goto tmp3_end;
tmpMeta106 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta104), 2));
if (!listEmpty(tmpMeta105)) goto tmp3_end;
_vals = tmpMeta106;
tmp4 += 131;
_strs = omc_List_map(threadData, _vals, boxvar_ValuesUtil_extractValueString);
_strs = omc_List_sort(threadData, _strs, boxvar_Util_strcmpBool);
tmpMeta1 = omc_ValuesUtil_makeArray(threadData, omc_List_map(threadData, _strs, boxvar_ValuesUtil_makeString));
goto tmp3_done;
}
case 21: {
modelica_metatype tmpMeta107;
if (13 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT407), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (!listEmpty(tmp4_2)) goto tmp3_end;
tmp4 += 130;
tmpMeta107 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta1 = omc_ValuesUtil_makeArray(threadData, omc_CevalScript_getVariableNames(threadData, omc_SymbolTable_getVars(threadData), tmpMeta107));
goto tmp3_done;
}
case 22: {
modelica_metatype tmpMeta108;
modelica_metatype tmpMeta109;
modelica_metatype tmpMeta110;
if (17 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT408), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta108 = MMC_CAR(tmp4_2);
tmpMeta109 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta108,2,1) == 0) goto tmp3_end;
tmpMeta110 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta108), 2));
if (!listEmpty(tmpMeta109)) goto tmp3_end;
_cmd = tmpMeta110;
tmp4 += 129;
omc_Settings_setCompileCommand(threadData, _cmd);
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 23: {
modelica_metatype tmpMeta111;
if (17 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT409), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (!listEmpty(tmp4_2)) goto tmp3_end;
tmp4 += 128;
tmpMeta111 = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_Settings_getCompileCommand(threadData));
tmpMeta1 = tmpMeta111;
goto tmp3_done;
}
case 24: {
modelica_metatype tmpMeta112;
modelica_metatype tmpMeta113;
modelica_metatype tmpMeta114;
if (20 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT410), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta112 = MMC_CAR(tmp4_2);
tmpMeta113 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta112,2,1) == 0) goto tmp3_end;
tmpMeta114 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta112), 2));
if (!listEmpty(tmpMeta113)) goto tmp3_end;
_cmd = tmpMeta114;
tmp4 += 127;
omc_Settings_setTempDirectoryPath(threadData, _cmd);
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 25: {
modelica_metatype tmpMeta115;
if (20 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT411), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (!listEmpty(tmp4_2)) goto tmp3_end;
tmp4 += 45;
tmpMeta115 = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_Settings_getTempDirectoryPath(threadData));
tmpMeta1 = tmpMeta115;
goto tmp3_done;
}
case 26: {
modelica_metatype tmpMeta116;
modelica_metatype tmpMeta117;
modelica_metatype tmpMeta118;
modelica_metatype tmpMeta119;
modelica_metatype tmpMeta120;
modelica_metatype tmpMeta121;
modelica_metatype tmpMeta122;
if (17 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT412), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta116 = MMC_CAR(tmp4_2);
tmpMeta117 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta116,2,1) == 0) goto tmp3_end;
tmpMeta118 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta116), 2));
if (listEmpty(tmpMeta117)) goto tmp3_end;
tmpMeta119 = MMC_CAR(tmpMeta117);
tmpMeta120 = MMC_CDR(tmpMeta117);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta119,2,1) == 0) goto tmp3_end;
tmpMeta121 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta119), 2));
if (!listEmpty(tmpMeta120)) goto tmp3_end;
_name = tmpMeta118;
_str = tmpMeta121;
tmp4 += 125;
tmpMeta122 = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean((omc_System_setEnv(threadData, _name, _str, 1) == ((modelica_integer) 0))));
tmpMeta1 = tmpMeta122;
goto tmp3_done;
}
case 27: {
modelica_metatype tmpMeta123;
modelica_metatype tmpMeta124;
modelica_metatype tmpMeta125;
modelica_metatype tmpMeta126;
if (17 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT413), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta123 = MMC_CAR(tmp4_2);
tmpMeta124 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta123,2,1) == 0) goto tmp3_end;
tmpMeta125 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta123), 2));
if (!listEmpty(tmpMeta124)) goto tmp3_end;
_name = tmpMeta125;
tmp4 += 124;
tmpMeta126 = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_Util_makeValueOrDefault(threadData, boxvar_System_readEnv, _name, _OMC_LIT52));
tmpMeta1 = tmpMeta126;
goto tmp3_done;
}
case 28: {
modelica_metatype tmpMeta127;
modelica_metatype tmpMeta128;
modelica_metatype tmpMeta129;
if (28 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT414), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta127 = MMC_CAR(tmp4_2);
tmpMeta128 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta127,2,1) == 0) goto tmp3_end;
tmpMeta129 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta127), 2));
if (!listEmpty(tmpMeta128)) goto tmp3_end;
_cmd = tmpMeta129;
tmp4 += 123;
omc_Settings_setInstallationDirectoryPath(threadData, _cmd);
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 29: {
modelica_metatype tmpMeta130;
if (28 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT415), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (!listEmpty(tmp4_2)) goto tmp3_end;
tmp4 += 122;
tmpMeta130 = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_Settings_getInstallationDirectoryPath(threadData));
tmpMeta1 = tmpMeta130;
goto tmp3_done;
}
case 30: {
modelica_metatype tmpMeta131;
if (15 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT416), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (!listEmpty(tmp4_2)) goto tmp3_end;
tmp4 += 121;
tmpMeta131 = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_Settings_getModelicaPath(threadData, omc_Testsuite_isRunning(threadData)));
tmpMeta1 = tmpMeta131;
goto tmp3_done;
}
case 31: {
modelica_metatype tmpMeta132;
modelica_metatype tmpMeta133;
modelica_metatype tmpMeta134;
if (15 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT417), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta132 = MMC_CAR(tmp4_2);
tmpMeta133 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta132,2,1) == 0) goto tmp3_end;
tmpMeta134 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta132), 2));
if (!listEmpty(tmpMeta133)) goto tmp3_end;
_cmd = tmpMeta134;
omc_Settings_setModelicaPath(threadData, _cmd);
setGlobalRoot(((modelica_integer) 29), mmc_mk_integer(((modelica_integer) 0)));
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 32: {
if (15 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT417), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 119;
tmpMeta1 = _OMC_LIT12;
goto tmp3_done;
}
case 33: {
modelica_metatype tmpMeta135;
if (20 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT418), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (!listEmpty(tmp4_2)) goto tmp3_end;
tmp4 += 118;
tmpMeta135 = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_Settings_getHomeDir(threadData, omc_Testsuite_isRunning(threadData)));
tmpMeta1 = tmpMeta135;
goto tmp3_done;
}
case 34: {
modelica_metatype tmpMeta136;
if (19 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT419), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (!listEmpty(tmp4_2)) goto tmp3_end;
tmp4 += 117;
tmpMeta136 = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_Config_languageStandardString(threadData, omc_Config_getLanguageStandard(threadData)));
tmpMeta1 = tmpMeta136;
goto tmp3_done;
}
case 35: {
modelica_metatype tmpMeta137;
modelica_metatype tmpMeta138;
modelica_metatype tmpMeta139;
modelica_integer tmp140;
modelica_metatype tmpMeta141;
modelica_metatype tmpMeta142;
modelica_metatype tmpMeta143;
modelica_metatype tmpMeta144;
if (20 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT420), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta137 = MMC_CAR(tmp4_2);
tmpMeta138 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta137,4,2) == 0) goto tmp3_end;
tmpMeta139 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta137), 3));
tmp140 = mmc_unbox_integer(tmpMeta139);
if (listEmpty(tmpMeta138)) goto tmp3_end;
tmpMeta141 = MMC_CAR(tmpMeta138);
tmpMeta142 = MMC_CDR(tmpMeta138);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta141,2,1) == 0) goto tmp3_end;
tmpMeta143 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta141), 2));
if (!listEmpty(tmpMeta142)) goto tmp3_end;
_i = tmp140;
_filename = tmpMeta143;
tmp4 += 116;
tmpMeta144 = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(omc_System_reopenStandardStream(threadData, ((modelica_integer) -1) + _i, _filename)));
tmpMeta1 = tmpMeta144;
goto tmp3_done;
}
case 36: {
modelica_metatype tmpMeta145;
modelica_metatype tmpMeta146;
modelica_metatype tmpMeta147;
modelica_metatype tmpMeta148;
modelica_metatype tmpMeta149;
modelica_metatype tmpMeta150;
modelica_metatype tmpMeta151;
modelica_metatype tmpMeta152;
modelica_metatype tmpMeta153;
modelica_metatype tmpMeta154;
if (5 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT421), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta145 = MMC_CAR(tmp4_2);
tmpMeta146 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta145,2,1) == 0) goto tmp3_end;
tmpMeta147 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta145), 2));
if (listEmpty(tmpMeta146)) goto tmp3_end;
tmpMeta148 = MMC_CAR(tmpMeta146);
tmpMeta149 = MMC_CDR(tmpMeta146);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta148,2,1) == 0) goto tmp3_end;
tmpMeta150 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta148), 2));
if (listEmpty(tmpMeta149)) goto tmp3_end;
tmpMeta151 = MMC_CAR(tmpMeta149);
tmpMeta152 = MMC_CDR(tmpMeta149);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta151,2,1) == 0) goto tmp3_end;
tmpMeta153 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta151), 2));
if (!listEmpty(tmpMeta152)) goto tmp3_end;
_str = tmpMeta147;
_from = tmpMeta150;
_to = tmpMeta153;
tmp4 += 115;
tmpMeta154 = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_System_iconv(threadData, _str, _from, _to));
tmpMeta1 = tmpMeta154;
goto tmp3_done;
}
case 37: {
modelica_metatype tmpMeta155;
if (11 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT422), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (!listEmpty(tmp4_2)) goto tmp3_end;
tmp4 += 114;
tmpMeta155 = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_System_getCCompiler(threadData));
tmpMeta1 = tmpMeta155;
goto tmp3_done;
}
case 38: {
modelica_metatype tmpMeta156;
modelica_metatype tmpMeta157;
modelica_metatype tmpMeta158;
if (9 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT423), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta156 = MMC_CAR(tmp4_2);
tmpMeta157 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta156,2,1) == 0) goto tmp3_end;
tmpMeta158 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta156), 2));
if (!listEmpty(tmpMeta157)) goto tmp3_end;
_str = tmpMeta158;
tmp4 += 113;
omc_System_setCFlags(threadData, _str);
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 39: {
modelica_metatype tmpMeta159;
if (9 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT424), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (!listEmpty(tmp4_2)) goto tmp3_end;
tmp4 += 112;
tmpMeta159 = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_System_getCFlags(threadData));
tmpMeta1 = tmpMeta159;
goto tmp3_done;
}
case 40: {
modelica_metatype tmpMeta160;
modelica_metatype tmpMeta161;
modelica_metatype tmpMeta162;
if (11 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT425), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta160 = MMC_CAR(tmp4_2);
tmpMeta161 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta160,2,1) == 0) goto tmp3_end;
tmpMeta162 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta160), 2));
if (!listEmpty(tmpMeta161)) goto tmp3_end;
_str = tmpMeta162;
tmp4 += 111;
omc_System_setCCompiler(threadData, _str);
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 41: {
modelica_metatype tmpMeta163;
if (14 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT426), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (!listEmpty(tmp4_2)) goto tmp3_end;
tmp4 += 110;
tmpMeta163 = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_System_getCXXCompiler(threadData));
tmpMeta1 = tmpMeta163;
goto tmp3_done;
}
case 42: {
modelica_metatype tmpMeta164;
modelica_metatype tmpMeta165;
modelica_metatype tmpMeta166;
if (14 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT427), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta164 = MMC_CAR(tmp4_2);
tmpMeta165 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta164,2,1) == 0) goto tmp3_end;
tmpMeta166 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta164), 2));
if (!listEmpty(tmpMeta165)) goto tmp3_end;
_str = tmpMeta166;
tmp4 += 109;
omc_System_setCXXCompiler(threadData, _str);
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 43: {
modelica_metatype tmpMeta167;
modelica_metatype tmpMeta168;
modelica_metatype tmpMeta169;
if (16 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT428), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta167 = MMC_CAR(tmp4_2);
tmpMeta168 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta167,2,1) == 0) goto tmp3_end;
tmpMeta169 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta167), 2));
if (!listEmpty(tmpMeta168)) goto tmp3_end;
_str = tmpMeta169;
tmp4 += 108;
omc_System_setCFlags(threadData, _str);
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 44: {
modelica_metatype tmpMeta170;
if (9 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT429), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (!listEmpty(tmp4_2)) goto tmp3_end;
tmp4 += 107;
tmpMeta170 = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_System_getLinker(threadData));
tmpMeta1 = tmpMeta170;
goto tmp3_done;
}
case 45: {
modelica_metatype tmpMeta171;
modelica_metatype tmpMeta172;
modelica_metatype tmpMeta173;
if (9 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT430), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta171 = MMC_CAR(tmp4_2);
tmpMeta172 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta171,2,1) == 0) goto tmp3_end;
tmpMeta173 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta171), 2));
if (!listEmpty(tmpMeta172)) goto tmp3_end;
_str = tmpMeta173;
tmp4 += 106;
omc_System_setLinker(threadData, _str);
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 46: {
modelica_metatype tmpMeta174;
if (14 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT431), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (!listEmpty(tmp4_2)) goto tmp3_end;
tmp4 += 105;
tmpMeta174 = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_System_getLDFlags(threadData));
tmpMeta1 = tmpMeta174;
goto tmp3_done;
}
case 47: {
modelica_metatype tmpMeta175;
modelica_metatype tmpMeta176;
modelica_metatype tmpMeta177;
if (14 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT432), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta175 = MMC_CAR(tmp4_2);
tmpMeta176 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta175,2,1) == 0) goto tmp3_end;
tmpMeta177 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta175), 2));
if (!listEmpty(tmpMeta176)) goto tmp3_end;
_str = tmpMeta177;
tmp4 += 104;
omc_System_setLDFlags(threadData, _str);
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 48: {
modelica_metatype tmpMeta178;
modelica_metatype tmpMeta179;
modelica_metatype tmpMeta180;
modelica_metatype tmpMeta181;
if (21 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT433), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta178 = MMC_CAR(tmp4_2);
tmpMeta179 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta178,2,1) == 0) goto tmp3_end;
tmpMeta180 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta178), 2));
if (!listEmpty(tmpMeta179)) goto tmp3_end;
_str = tmpMeta180;
_b = omc_Flags_isSet(threadData, _OMC_LIT358);
_strs = omc_System_strtok(threadData, _str, _OMC_LIT88);
tmpMeta181 = omc_FlagsUtil_readArgs(threadData, _strs);
if (!listEmpty(tmpMeta181)) goto goto_2;
_outCache = omc_FCore_emptyCache(threadData);
if(((!_b && omc_Flags_isSet(threadData, _OMC_LIT358)) || (_b && !omc_Flags_isSet(threadData, _OMC_LIT358))))
{
omc_Builtin_clearInitialGraph(threadData);
}
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 49: {
if (21 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT433), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 102;
tmpMeta1 = _OMC_LIT12;
goto tmp3_done;
}
case 50: {
if (21 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT434), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (!listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta1 = omc_ValuesUtil_makeStringArray(threadData, omc_FlagsUtil_unparseFlags(threadData));
goto tmp3_done;
}
case 51: {
if (21 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT434), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 100;
tmpMeta1 = _OMC_LIT13;
goto tmp3_done;
}
case 52: {
if (23 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT435), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (!listEmpty(tmp4_2)) goto tmp3_end;
omc_FlagsUtil_resetDebugFlags(threadData);
omc_FlagsUtil_resetConfigFlags(threadData);
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 53: {
if (23 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT435), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 98;
tmpMeta1 = _OMC_LIT12;
goto tmp3_done;
}
case 54: {
if (22 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT436), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if((!omc_Flags_isSet(threadData, _OMC_LIT358)))
{
omc_Builtin_clearInitialGraph(threadData);
omc_FlagsUtil_enableDebug(threadData, _OMC_LIT358);
_outCache = omc_FCore_emptyCache(threadData);
}
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 55: {
if (22 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT436), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 96;
tmpMeta1 = _OMC_LIT12;
goto tmp3_done;
}
case 56: {
if (23 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT437), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if(omc_Flags_isSet(threadData, _OMC_LIT358))
{
omc_FlagsUtil_disableDebug(threadData, _OMC_LIT358);
_outCache = omc_FCore_emptyCache(threadData);
omc_Builtin_clearInitialGraph(threadData);
}
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 57: {
if (23 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT437), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 94;
tmpMeta1 = _OMC_LIT12;
goto tmp3_done;
}
case 58: {
if (15 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT438), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
omc_FlagsUtil_resetDebugFlags(threadData);
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 59: {
if (15 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT438), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 92;
tmpMeta1 = _OMC_LIT12;
goto tmp3_done;
}
case 60: {
modelica_metatype tmpMeta182;
modelica_metatype tmpMeta183;
modelica_metatype tmpMeta184;
modelica_metatype tmpMeta185;
modelica_metatype tmpMeta186;
modelica_metatype tmpMeta187;
if (25 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT439), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta182 = MMC_CAR(tmp4_2);
tmpMeta183 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta182,2,1) == 0) goto tmp3_end;
tmpMeta184 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta182), 2));
if (!listEmpty(tmpMeta183)) goto tmp3_end;
_str = tmpMeta184;
_strs1 = omc_FlagsUtil_getValidOptionsAndDescription(threadData, _str ,&_str ,&_strs2);
tmpMeta186 = mmc_mk_box2(5, &Values_Value_STRING__desc, _str);
tmpMeta185 = mmc_mk_cons(omc_ValuesUtil_makeStringArray(threadData, _strs1), mmc_mk_cons(tmpMeta186, mmc_mk_cons(omc_ValuesUtil_makeStringArray(threadData, _strs2), MMC_REFSTRUCTLIT(mmc_nil))));
tmpMeta187 = mmc_mk_box2(11, &Values_Value_TUPLE__desc, tmpMeta185);
tmpMeta1 = tmpMeta187;
goto tmp3_done;
}
case 61: {
modelica_metatype tmpMeta188;
modelica_metatype tmpMeta189;
modelica_metatype tmpMeta190;
modelica_metatype tmpMeta191;
modelica_metatype tmpMeta192;
modelica_metatype tmpMeta193;
if (25 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT439), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta188 = MMC_CAR(tmp4_2);
tmpMeta189 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta188,2,1) == 0) goto tmp3_end;
if (!listEmpty(tmpMeta189)) goto tmp3_end;
tmp4 += 90;
tmpMeta191 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta192 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta190 = mmc_mk_cons(omc_ValuesUtil_makeArray(threadData, tmpMeta191), mmc_mk_cons(_OMC_LIT359, mmc_mk_cons(omc_ValuesUtil_makeArray(threadData, tmpMeta192), MMC_REFSTRUCTLIT(mmc_nil))));
tmpMeta193 = mmc_mk_box2(11, &Values_Value_TUPLE__desc, tmpMeta190);
tmpMeta1 = tmpMeta193;
goto tmp3_done;
}
case 62: {
modelica_metatype tmpMeta194;
modelica_metatype tmpMeta195;
modelica_metatype tmpMeta196;
modelica_metatype tmpMeta197;
if (2 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT440), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta194 = MMC_CAR(tmp4_2);
tmpMeta195 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta194,2,1) == 0) goto tmp3_end;
tmpMeta196 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta194), 2));
if (0 != MMC_STRLEN(tmpMeta196) || strcmp(MMC_STRINGDATA(_OMC_LIT52), MMC_STRINGDATA(tmpMeta196)) != 0) goto tmp3_end;
if (!listEmpty(tmpMeta195)) goto tmp3_end;
tmpMeta197 = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_System_pwd(threadData));
tmpMeta1 = tmpMeta197;
goto tmp3_done;
}
case 63: {
modelica_metatype tmpMeta198;
modelica_metatype tmpMeta199;
modelica_metatype tmpMeta200;
modelica_integer tmp201;
modelica_metatype tmpMeta202;
if (2 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT440), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta198 = MMC_CAR(tmp4_2);
tmpMeta199 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta198,2,1) == 0) goto tmp3_end;
tmpMeta200 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta198), 2));
if (!listEmpty(tmpMeta199)) goto tmp3_end;
_str = tmpMeta200;
tmp201 = omc_System_cd(threadData, _str);
if (0 != tmp201) goto goto_2;
tmpMeta202 = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_System_pwd(threadData));
tmpMeta1 = tmpMeta202;
goto tmp3_done;
}
case 64: {
modelica_metatype tmpMeta203;
modelica_metatype tmpMeta204;
modelica_metatype tmpMeta205;
modelica_boolean tmp206;
modelica_metatype tmpMeta207;
modelica_metatype tmpMeta208;
if (2 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT440), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta203 = MMC_CAR(tmp4_2);
tmpMeta204 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta203,2,1) == 0) goto tmp3_end;
tmpMeta205 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta203), 2));
if (!listEmpty(tmpMeta204)) goto tmp3_end;
_str = tmpMeta205;
tmp4 += 87;
tmp206 = omc_System_directoryExists(threadData, _str);
if (0 != tmp206) goto goto_2;
tmpMeta207 = mmc_mk_cons(_OMC_LIT360, mmc_mk_cons(_str, mmc_mk_cons(_OMC_LIT361, MMC_REFSTRUCTLIT(mmc_nil))));
_res = stringAppendList(tmpMeta207);
tmpMeta208 = mmc_mk_box2(5, &Values_Value_STRING__desc, _res);
tmpMeta1 = tmpMeta208;
goto tmp3_done;
}
case 65: {
modelica_metatype tmpMeta209;
modelica_metatype tmpMeta210;
modelica_metatype tmpMeta211;
modelica_boolean tmp212;
if (5 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT441), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta209 = MMC_CAR(tmp4_2);
tmpMeta210 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta209,2,1) == 0) goto tmp3_end;
tmpMeta211 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta209), 2));
if (!listEmpty(tmpMeta210)) goto tmp3_end;
_str = tmpMeta211;
tmp212 = omc_System_directoryExists(threadData, _str);
if (1 != tmp212) goto goto_2;
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 66: {
modelica_metatype tmpMeta213;
modelica_metatype tmpMeta214;
modelica_metatype tmpMeta215;
modelica_metatype tmpMeta216;
if (5 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT441), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta213 = MMC_CAR(tmp4_2);
tmpMeta214 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta213,2,1) == 0) goto tmp3_end;
tmpMeta215 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta213), 2));
if (!listEmpty(tmpMeta214)) goto tmp3_end;
_str = tmpMeta215;
tmp4 += 85;
tmpMeta216 = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(omc_Util_createDirectoryTree(threadData, _str)));
tmpMeta1 = tmpMeta216;
goto tmp3_done;
}
case 67: {
modelica_metatype tmpMeta217;
modelica_metatype tmpMeta218;
modelica_metatype tmpMeta219;
modelica_metatype tmpMeta220;
modelica_metatype tmpMeta221;
modelica_metatype tmpMeta222;
modelica_metatype tmpMeta223;
if (4 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT442), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta217 = MMC_CAR(tmp4_2);
tmpMeta218 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta217,2,1) == 0) goto tmp3_end;
tmpMeta219 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta217), 2));
if (listEmpty(tmpMeta218)) goto tmp3_end;
tmpMeta220 = MMC_CAR(tmpMeta218);
tmpMeta221 = MMC_CDR(tmpMeta218);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta220,2,1) == 0) goto tmp3_end;
tmpMeta222 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta220), 2));
if (!listEmpty(tmpMeta221)) goto tmp3_end;
_str1 = tmpMeta219;
_str2 = tmpMeta222;
tmp4 += 84;
tmpMeta223 = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(omc_System_copyFile(threadData, _str1, _str2)));
tmpMeta1 = tmpMeta223;
goto tmp3_done;
}
case 68: {
modelica_metatype tmpMeta224;
modelica_metatype tmpMeta225;
modelica_metatype tmpMeta226;
modelica_metatype tmpMeta227;
if (6 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT443), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta224 = MMC_CAR(tmp4_2);
tmpMeta225 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta224,2,1) == 0) goto tmp3_end;
tmpMeta226 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta224), 2));
if (!listEmpty(tmpMeta225)) goto tmp3_end;
_str = tmpMeta226;
tmp4 += 83;
tmpMeta227 = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(omc_System_removeDirectory(threadData, _str)));
tmpMeta1 = tmpMeta227;
goto tmp3_done;
}
case 69: {
modelica_metatype tmpMeta228;
modelica_metatype tmpMeta229;
modelica_metatype tmpMeta230;
modelica_metatype tmpMeta231;
modelica_metatype tmpMeta232;
modelica_metatype tmpMeta233;
if (10 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT444), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta228 = MMC_CAR(tmp4_2);
tmpMeta229 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta228,12,1) == 0) goto tmp3_end;
tmpMeta230 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta228), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta230,0,1) == 0) goto tmp3_end;
tmpMeta231 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta230), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta231,1,1) == 0) goto tmp3_end;
tmpMeta232 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta231), 2));
if (12 != MMC_STRLEN(tmpMeta232) || strcmp(MMC_STRINGDATA(_OMC_LIT237), MMC_STRINGDATA(tmpMeta232)) != 0) goto tmp3_end;
if (!listEmpty(tmpMeta229)) goto tmp3_end;
tmpMeta233 = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_Settings_getVersionNr(threadData));
tmpMeta1 = tmpMeta233;
goto tmp3_done;
}
case 70: {
modelica_metatype tmpMeta234;
modelica_metatype tmpMeta235;
modelica_metatype tmpMeta236;
modelica_metatype tmpMeta237;
modelica_metatype tmpMeta238;
if (10 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT444), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta234 = MMC_CAR(tmp4_2);
tmpMeta235 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta234,12,1) == 0) goto tmp3_end;
tmpMeta236 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta234), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta236,0,1) == 0) goto tmp3_end;
tmpMeta237 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta236), 2));
if (!listEmpty(tmpMeta235)) goto tmp3_end;
_path = tmpMeta237;
tmp4 += 81;
tmpMeta238 = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_CevalScript_getPackageVersion(threadData, _path, omc_SymbolTable_getAbsyn(threadData)));
tmpMeta1 = tmpMeta238;
goto tmp3_done;
}
case 71: {
modelica_metatype tmpMeta239;
if (20 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT411), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (!listEmpty(tmp4_2)) goto tmp3_end;
tmp4 += 80;
tmpMeta239 = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_Settings_getTempDirectoryPath(threadData));
tmpMeta1 = tmpMeta239;
goto tmp3_done;
}
case 72: {
modelica_metatype tmpMeta240;
modelica_metatype tmpMeta241;
modelica_metatype tmpMeta242;
modelica_metatype tmpMeta243;
modelica_metatype tmpMeta244;
modelica_metatype tmpMeta245;
modelica_metatype tmpMeta246;
if (6 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT445), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta240 = MMC_CAR(tmp4_2);
tmpMeta241 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta240,2,1) == 0) goto tmp3_end;
tmpMeta242 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta240), 2));
if (listEmpty(tmpMeta241)) goto tmp3_end;
tmpMeta243 = MMC_CAR(tmpMeta241);
tmpMeta244 = MMC_CDR(tmpMeta241);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta243,2,1) == 0) goto tmp3_end;
tmpMeta245 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta243), 2));
if (!listEmpty(tmpMeta244)) goto tmp3_end;
_str = tmpMeta242;
_filename = tmpMeta245;
tmp4 += 79;
tmpMeta246 = mmc_mk_box2(3, &Values_Value_INTEGER__desc, mmc_mk_integer(omc_System_systemCall(threadData, _str, _filename)));
tmpMeta1 = tmpMeta246;
goto tmp3_done;
}
case 73: {
modelica_metatype tmpMeta247;
modelica_metatype tmpMeta248;
modelica_metatype tmpMeta249;
modelica_metatype tmpMeta250;
modelica_metatype tmpMeta251;
modelica_metatype tmpMeta252;
modelica_integer tmp253;
if (15 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT446), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta247 = MMC_CAR(tmp4_2);
tmpMeta248 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta247,5,2) == 0) goto tmp3_end;
tmpMeta249 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta247), 2));
if (listEmpty(tmpMeta248)) goto tmp3_end;
tmpMeta250 = MMC_CAR(tmpMeta248);
tmpMeta251 = MMC_CDR(tmpMeta248);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta250,0,1) == 0) goto tmp3_end;
tmpMeta252 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta250), 2));
tmp253 = mmc_unbox_integer(tmpMeta252);
if (!listEmpty(tmpMeta251)) goto tmp3_end;
_vals = tmpMeta249;
_i = tmp253;
tmp4 += 78;
_strs = omc_List_map(threadData, _vals, boxvar_ValuesUtil_extractValueString);
tmpMeta1 = omc_ValuesUtil_makeIntArray(threadData, omc_System_systemCallParallel(threadData, _strs, _i));
goto tmp3_done;
}
case 74: {
modelica_metatype tmpMeta254;
modelica_metatype tmpMeta255;
modelica_metatype tmpMeta256;
modelica_integer tmp257;
if (10 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT447), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta254 = MMC_CAR(tmp4_2);
tmpMeta255 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta254,0,1) == 0) goto tmp3_end;
tmpMeta256 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta254), 2));
tmp257 = mmc_unbox_integer(tmpMeta256);
if (!listEmpty(tmpMeta255)) goto tmp3_end;
_i = tmp257;
tmp4 += 77;
omc_System_realtimeClear(threadData, _i);
tmpMeta1 = _OMC_LIT362;
goto tmp3_done;
}
case 75: {
modelica_metatype tmpMeta258;
modelica_metatype tmpMeta259;
modelica_metatype tmpMeta260;
modelica_integer tmp261;
if (9 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT448), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta258 = MMC_CAR(tmp4_2);
tmpMeta259 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta258,0,1) == 0) goto tmp3_end;
tmpMeta260 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta258), 2));
tmp261 = mmc_unbox_integer(tmpMeta260);
if (!listEmpty(tmpMeta259)) goto tmp3_end;
_i = tmp261;
tmp4 += 76;
omc_System_realtimeTick(threadData, _i);
tmpMeta1 = _OMC_LIT362;
goto tmp3_done;
}
case 76: {
modelica_metatype tmpMeta262;
modelica_metatype tmpMeta263;
modelica_metatype tmpMeta264;
modelica_integer tmp265;
modelica_boolean tmp266;
modelica_metatype tmpMeta267;
if (9 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT449), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta262 = MMC_CAR(tmp4_2);
tmpMeta263 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta262,0,1) == 0) goto tmp3_end;
tmpMeta264 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta262), 2));
tmp265 = mmc_unbox_integer(tmpMeta264);
if (!listEmpty(tmpMeta263)) goto tmp3_end;
_i = tmp265;
tmp266 = (omc_System_realtimeNtick(threadData, _i) > ((modelica_integer) 0));
if (1 != tmp266) goto goto_2;
tmpMeta267 = mmc_mk_box2(4, &Values_Value_REAL__desc, mmc_mk_real(omc_System_realtimeTock(threadData, _i)));
tmpMeta1 = tmpMeta267;
goto tmp3_done;
}
case 77: {
if (9 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT449), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 74;
tmpMeta1 = _OMC_LIT364;
goto tmp3_done;
}
case 78: {
modelica_metatype tmpMeta268;
modelica_metatype tmpMeta269;
modelica_metatype tmpMeta270;
modelica_metatype tmpMeta271;
if (8 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT450), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta268 = MMC_CAR(tmp4_2);
tmpMeta269 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta268,2,1) == 0) goto tmp3_end;
tmpMeta270 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta268), 2));
if (!listEmpty(tmpMeta269)) goto tmp3_end;
_str = tmpMeta270;
tmpMeta271 = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_System_readFile(threadData, _str));
tmpMeta1 = tmpMeta271;
goto tmp3_done;
}
case 79: {
if (8 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT450), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 72;
tmpMeta1 = _OMC_LIT359;
goto tmp3_done;
}
case 80: {
modelica_metatype tmpMeta272;
modelica_metatype tmpMeta273;
modelica_metatype tmpMeta274;
modelica_metatype tmpMeta275;
modelica_metatype tmpMeta276;
modelica_metatype tmpMeta277;
modelica_metatype tmpMeta278;
modelica_metatype tmpMeta279;
modelica_metatype tmpMeta280;
modelica_integer tmp281;
if (9 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT451), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta272 = MMC_CAR(tmp4_2);
tmpMeta273 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta272,2,1) == 0) goto tmp3_end;
tmpMeta274 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta272), 2));
if (listEmpty(tmpMeta273)) goto tmp3_end;
tmpMeta275 = MMC_CAR(tmpMeta273);
tmpMeta276 = MMC_CDR(tmpMeta273);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta275,2,1) == 0) goto tmp3_end;
tmpMeta277 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta275), 2));
if (listEmpty(tmpMeta276)) goto tmp3_end;
tmpMeta278 = MMC_CAR(tmpMeta276);
tmpMeta279 = MMC_CDR(tmpMeta276);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta278,3,1) == 0) goto tmp3_end;
tmpMeta280 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta278), 2));
tmp281 = mmc_unbox_integer(tmpMeta280);
if (0 != tmp281) goto tmp3_end;
if (!listEmpty(tmpMeta279)) goto tmp3_end;
_str = tmpMeta274;
_str1 = tmpMeta277;
tmp4 += 1;
omc_System_writeFile(threadData, _str, _str1);
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 81: {
modelica_metatype tmpMeta282;
modelica_metatype tmpMeta283;
modelica_metatype tmpMeta284;
modelica_metatype tmpMeta285;
modelica_metatype tmpMeta286;
modelica_metatype tmpMeta287;
modelica_metatype tmpMeta288;
modelica_metatype tmpMeta289;
modelica_metatype tmpMeta290;
modelica_integer tmp291;
if (9 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT451), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta282 = MMC_CAR(tmp4_2);
tmpMeta283 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta282,2,1) == 0) goto tmp3_end;
tmpMeta284 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta282), 2));
if (listEmpty(tmpMeta283)) goto tmp3_end;
tmpMeta285 = MMC_CAR(tmpMeta283);
tmpMeta286 = MMC_CDR(tmpMeta283);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta285,2,1) == 0) goto tmp3_end;
tmpMeta287 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta285), 2));
if (listEmpty(tmpMeta286)) goto tmp3_end;
tmpMeta288 = MMC_CAR(tmpMeta286);
tmpMeta289 = MMC_CDR(tmpMeta286);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta288,3,1) == 0) goto tmp3_end;
tmpMeta290 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta288), 2));
tmp291 = mmc_unbox_integer(tmpMeta290);
if (1 != tmp291) goto tmp3_end;
if (!listEmpty(tmpMeta289)) goto tmp3_end;
_str = tmpMeta284;
_str1 = tmpMeta287;
omc_System_appendFile(threadData, _str, _str1);
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 82: {
if (9 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT451), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 69;
tmpMeta1 = _OMC_LIT12;
goto tmp3_done;
}
case 83: {
modelica_metatype tmpMeta292;
modelica_metatype tmpMeta293;
modelica_metatype tmpMeta294;
modelica_metatype tmpMeta295;
if (10 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT452), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta292 = MMC_CAR(tmp4_2);
tmpMeta293 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta292,2,1) == 0) goto tmp3_end;
tmpMeta294 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta292), 2));
if (!listEmpty(tmpMeta293)) goto tmp3_end;
_str = tmpMeta294;
tmp4 += 68;
tmpMeta295 = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean((omc_System_removeFile(threadData, _str) == ((modelica_integer) 0))));
tmpMeta1 = tmpMeta295;
goto tmp3_done;
}
case 84: {
modelica_metatype tmpMeta296;
modelica_metatype tmpMeta297;
modelica_metatype tmpMeta298;
modelica_metatype tmpMeta299;
modelica_metatype tmpMeta300;
modelica_metatype tmpMeta301;
modelica_metatype tmpMeta302;
if (12 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT453), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta296 = MMC_CAR(tmp4_2);
tmpMeta297 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta296,2,1) == 0) goto tmp3_end;
tmpMeta298 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta296), 2));
if (listEmpty(tmpMeta297)) goto tmp3_end;
tmpMeta299 = MMC_CAR(tmpMeta297);
tmpMeta300 = MMC_CDR(tmpMeta297);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta299,2,1) == 0) goto tmp3_end;
tmpMeta301 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta299), 2));
if (!listEmpty(tmpMeta300)) goto tmp3_end;
_str1 = tmpMeta298;
_str2 = tmpMeta301;
tmp4 += 67;
tmpMeta302 = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(omc_System_fileContentsEqual(threadData, _str1, _str2)));
tmpMeta1 = tmpMeta302;
goto tmp3_done;
}
case 85: {
modelica_metatype tmpMeta303;
modelica_metatype tmpMeta304;
modelica_metatype tmpMeta305;
modelica_metatype tmpMeta306;
modelica_metatype tmpMeta307;
modelica_metatype tmpMeta308;
modelica_boolean tmp309;
modelica_metatype tmpMeta310;
if (19 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT454), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta303 = MMC_CAR(tmp4_2);
tmpMeta304 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta303,2,1) == 0) goto tmp3_end;
tmpMeta305 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta303), 2));
if (listEmpty(tmpMeta304)) goto tmp3_end;
tmpMeta306 = MMC_CAR(tmpMeta304);
tmpMeta307 = MMC_CDR(tmpMeta304);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta306,2,1) == 0) goto tmp3_end;
tmpMeta308 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta306), 2));
if (!listEmpty(tmpMeta307)) goto tmp3_end;
_str1 = tmpMeta305;
_str2 = tmpMeta308;
tmp309 = omc_System_regularFileExists(threadData, _str1);
if (1 != tmp309) goto goto_2;
_b = (omc_System_regularFileExists(threadData, _str2) && omc_System_fileContentsEqual(threadData, _str1, _str2));
_b = ((!_b)?omc_System_rename(threadData, _str1, _str2):_b);
tmpMeta310 = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(_b));
tmpMeta1 = tmpMeta310;
goto tmp3_done;
}
case 86: {
if (19 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT454), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 65;
tmpMeta1 = _OMC_LIT12;
goto tmp3_done;
}
case 87: {
modelica_metatype tmpMeta311;
modelica_metatype tmpMeta312;
modelica_metatype tmpMeta313;
modelica_metatype tmpMeta314;
if (17 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT455), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta311 = MMC_CAR(tmp4_2);
tmpMeta312 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta311,2,1) == 0) goto tmp3_end;
tmpMeta313 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta311), 2));
if (!listEmpty(tmpMeta312)) goto tmp3_end;
_str = tmpMeta313;
tmp4 += 64;
tmpMeta314 = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_System_readFileNoNumeric(threadData, _str));
tmpMeta1 = tmpMeta314;
goto tmp3_done;
}
case 88: {
modelica_metatype tmpMeta315;
modelica_metatype tmpMeta316;
modelica_metatype tmpMeta317;
modelica_integer tmp318;
modelica_metatype tmpMeta319;
if (14 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT456), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta315 = MMC_CAR(tmp4_2);
tmpMeta316 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta315,3,1) == 0) goto tmp3_end;
tmpMeta317 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta315), 2));
tmp318 = mmc_unbox_integer(tmpMeta317);
if (!listEmpty(tmpMeta316)) goto tmp3_end;
_b = tmp318;
tmp4 += 63;
tmpMeta319 = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_Error_printMessagesStr(threadData, _b));
tmpMeta1 = tmpMeta319;
goto tmp3_done;
}
case 89: {
modelica_metatype tmpMeta320;
modelica_metatype tmpMeta321;
modelica_metatype tmpMeta322;
modelica_metatype tmpMeta323;
modelica_metatype tmpMeta324;
if (13 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT457), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 62;
tmpMeta321 = mmc_mk_box2(3, &Values_Value_INTEGER__desc, mmc_mk_integer(omc_Error_getNumMessages(threadData)));
tmpMeta322 = mmc_mk_box2(3, &Values_Value_INTEGER__desc, mmc_mk_integer(omc_Error_getNumErrorMessages(threadData)));
tmpMeta323 = mmc_mk_box2(3, &Values_Value_INTEGER__desc, mmc_mk_integer(omc_ErrorExt_getNumWarningMessages(threadData)));
tmpMeta320 = mmc_mk_cons(tmpMeta321, mmc_mk_cons(tmpMeta322, mmc_mk_cons(tmpMeta323, MMC_REFSTRUCTLIT(mmc_nil))));
tmpMeta324 = mmc_mk_box2(11, &Values_Value_TUPLE__desc, tmpMeta320);
tmpMeta1 = tmpMeta324;
goto tmp3_done;
}
case 90: {
if (13 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT458), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (!listEmpty(tmp4_2)) goto tmp3_end;
tmp4 += 61;
omc_Error_clearMessages(threadData);
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 91: {
modelica_metatype tmpMeta325;
modelica_metatype tmpMeta326;
modelica_metatype tmpMeta327;
modelica_integer tmp328;
if (25 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT459), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta325 = MMC_CAR(tmp4_2);
tmpMeta326 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta325,3,1) == 0) goto tmp3_end;
tmpMeta327 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta325), 2));
tmp328 = mmc_unbox_integer(tmpMeta327);
if (1 != tmp328) goto tmp3_end;
if (!listEmpty(tmpMeta326)) goto tmp3_end;
tmp4 += 60;
_messages = omc_List_unique(threadData, omc_Error_getMessages(threadData));
tmpMeta1 = omc_ValuesUtil_makeArray(threadData, omc_List_map(threadData, _messages, boxvar_CevalScript_errorToValue));
goto tmp3_done;
}
case 92: {
modelica_metatype tmpMeta329;
modelica_metatype tmpMeta330;
modelica_metatype tmpMeta331;
modelica_integer tmp332;
if (25 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT459), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta329 = MMC_CAR(tmp4_2);
tmpMeta330 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta329,3,1) == 0) goto tmp3_end;
tmpMeta331 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta329), 2));
tmp332 = mmc_unbox_integer(tmpMeta331);
if (0 != tmp332) goto tmp3_end;
if (!listEmpty(tmpMeta330)) goto tmp3_end;
tmp4 += 59;
tmpMeta1 = omc_ValuesUtil_makeArray(threadData, omc_List_map(threadData, omc_Error_getMessages(threadData), boxvar_CevalScript_errorToValue));
goto tmp3_done;
}
case 93: {
modelica_metatype tmpMeta333;
modelica_metatype tmpMeta334;
modelica_metatype tmpMeta335;
modelica_metatype tmpMeta336;
modelica_metatype tmpMeta337;
if (14 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT460), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta333 = MMC_CAR(tmp4_2);
tmpMeta334 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta333,2,1) == 0) goto tmp3_end;
tmpMeta335 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta333), 2));
if (!listEmpty(tmpMeta334)) goto tmp3_end;
_str = tmpMeta335;
tmp4 += 58;
tmpMeta336 = mmc_mk_box2(3, &Absyn_CodeNode_C__TYPENAME__desc, omc_Parser_stringPath(threadData, _str));
tmpMeta337 = mmc_mk_box2(15, &Values_Value_CODE__desc, tmpMeta336);
tmpMeta1 = tmpMeta337;
goto tmp3_done;
}
case 94: {
modelica_metatype tmpMeta338;
modelica_metatype tmpMeta339;
modelica_metatype tmpMeta340;
modelica_metatype tmpMeta341;
modelica_metatype tmpMeta342;
if (18 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT461), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta338 = MMC_CAR(tmp4_2);
tmpMeta339 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta338,2,1) == 0) goto tmp3_end;
tmpMeta340 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta338), 2));
if (!listEmpty(tmpMeta339)) goto tmp3_end;
_str = tmpMeta340;
tmp4 += 57;
tmpMeta341 = mmc_mk_box2(4, &Absyn_CodeNode_C__VARIABLENAME__desc, omc_Parser_stringCref(threadData, _str));
tmpMeta342 = mmc_mk_box2(15, &Values_Value_CODE__desc, tmpMeta341);
tmpMeta1 = tmpMeta342;
goto tmp3_done;
}
case 95: {
modelica_metatype tmpMeta343;
modelica_metatype tmpMeta344;
modelica_metatype tmpMeta345;
modelica_metatype tmpMeta346;
modelica_metatype tmpMeta347;
if (14 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT462), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta343 = MMC_CAR(tmp4_2);
tmpMeta344 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta343,12,1) == 0) goto tmp3_end;
tmpMeta345 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta343), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta345,0,1) == 0) goto tmp3_end;
tmpMeta346 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta345), 2));
if (!listEmpty(tmpMeta344)) goto tmp3_end;
_path = tmpMeta346;
tmp4 += 56;
tmpMeta347 = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_AbsynUtil_pathString(threadData, _path, _OMC_LIT100, 1, 0));
tmpMeta1 = tmpMeta347;
goto tmp3_done;
}
case 96: {
modelica_metatype tmpMeta348;
modelica_metatype tmpMeta349;
modelica_metatype tmpMeta350;
modelica_metatype tmpMeta351;
if (15 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT463), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta348 = MMC_CAR(tmp4_2);
tmpMeta349 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta348,12,1) == 0) goto tmp3_end;
tmpMeta350 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta348), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta350,0,1) == 0) goto tmp3_end;
tmpMeta351 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta350), 2));
if (!listEmpty(tmpMeta349)) goto tmp3_end;
_path = tmpMeta351;
tmp4 += 55;
tmpMeta1 = omc_ValuesUtil_makeArray(threadData, omc_List_map(threadData, omc_AbsynUtil_pathToStringList(threadData, _path), boxvar_ValuesUtil_makeString));
goto tmp3_done;
}
case 97: {
modelica_metatype tmpMeta352;
modelica_metatype tmpMeta353;
modelica_metatype tmpMeta354;
if (14 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT464), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta352 = MMC_CAR(tmp4_2);
tmpMeta353 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta352,2,1) == 0) goto tmp3_end;
tmpMeta354 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta352), 2));
if (!listEmpty(tmpMeta353)) goto tmp3_end;
_filename = tmpMeta354;
_str = omc_Tpl_tplString(threadData, boxvar_Unparsing_programExternalHeader, omc_SymbolTable_getSCode(threadData));
omc_System_writeFile(threadData, _filename, _str);
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 98: {
if (14 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT464), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 53;
tmpMeta1 = _OMC_LIT12;
goto tmp3_done;
}
case 99: {
modelica_metatype tmpMeta355;
modelica_metatype tmpMeta356;
modelica_metatype tmpMeta357;
if (19 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT465), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta355 = MMC_CAR(tmp4_2);
tmpMeta356 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta355,2,1) == 0) goto tmp3_end;
tmpMeta357 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta355), 2));
if (!listEmpty(tmpMeta356)) goto tmp3_end;
_filename = tmpMeta357;
_str = omc_Tpl_tplString(threadData, boxvar_Unparsing_programExternalHeaderJulia, omc_SymbolTable_getSCode(threadData));
omc_System_writeFile(threadData, _filename, _str);
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 100: {
if (19 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT465), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 51;
tmpMeta1 = _OMC_LIT12;
goto tmp3_done;
}
case 101: {
modelica_metatype tmpMeta358;
modelica_metatype tmpMeta359;
modelica_metatype tmpMeta360;
modelica_metatype tmpMeta361;
modelica_metatype tmpMeta362;
modelica_metatype tmpMeta363;
if (12 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT466), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta358 = MMC_CAR(tmp4_2);
tmpMeta359 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta358,12,1) == 0) goto tmp3_end;
tmpMeta360 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta358), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta360,0,1) == 0) goto tmp3_end;
tmpMeta361 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta360), 2));
if (!listEmpty(tmpMeta359)) goto tmp3_end;
_path = tmpMeta361;
tmpMeta363 = omc_Static_instantiateDaeFunction(threadData, _outCache, _env, _path, 0, mmc_mk_none(), 1, &tmpMeta362);
_outCache = tmpMeta363;
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta362,0,0) == 0) goto goto_2;
_outCache = omc_CevalScript_cevalGenerateFunction(threadData, _outCache, _env, omc_SymbolTable_getAbsyn(threadData), _path, NULL, NULL);
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 102: {
if (12 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT466), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 49;
tmpMeta1 = _OMC_LIT12;
goto tmp3_done;
}
case 103: {
modelica_metatype tmpMeta364;
modelica_metatype tmpMeta365;
modelica_metatype tmpMeta366;
modelica_metatype tmpMeta367;
modelica_metatype tmpMeta368;
modelica_metatype tmpMeta369;
modelica_metatype tmpMeta370;
modelica_metatype tmpMeta371;
modelica_metatype tmpMeta380;
modelica_metatype tmpMeta381;
modelica_metatype tmpMeta390;
modelica_metatype tmpMeta391;
modelica_metatype tmpMeta392;
modelica_metatype tmpMeta393;
modelica_metatype tmpMeta394;
modelica_metatype tmpMeta395;
modelica_metatype tmpMeta396;
if (20 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT467), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta364 = MMC_CAR(tmp4_2);
tmpMeta365 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta364,12,1) == 0) goto tmp3_end;
tmpMeta366 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta364), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta366,0,1) == 0) goto tmp3_end;
tmpMeta367 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta366), 2));
if (listEmpty(tmpMeta365)) goto tmp3_end;
tmpMeta368 = MMC_CAR(tmpMeta365);
tmpMeta369 = MMC_CDR(tmpMeta365);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta368,2,1) == 0) goto tmp3_end;
tmpMeta370 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta368), 2));
if (!listEmpty(tmpMeta369)) goto tmp3_end;
_className = tmpMeta367;
_name = tmpMeta370;
_sp = omc_SymbolTable_getSCode(threadData);
{
modelica_metatype tmp374_1;
tmp374_1 = omc_FBuiltin_getElementWithPathCheckBuiltin(threadData, _sp, _className);
{
volatile mmc_switch_type tmp374;
int tmp375;
tmp374 = 0;
for (; tmp374 < 2; tmp374++) {
switch (MMC_SWITCH_CAST(tmp374)) {
case 0: {
modelica_metatype tmpMeta376;
modelica_metatype tmpMeta377;
if (mmc__uniontype__metarecord__typedef__equal(tmp374_1,2,8) == 0) goto tmp373_end;
tmpMeta376 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp374_1), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta376,0,8) == 0) goto tmp373_end;
tmpMeta377 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta376), 2));
_elts = tmpMeta377;
tmpMeta371 = _elts;
goto tmp373_done;
}
case 1: {
modelica_metatype tmpMeta378;
modelica_metatype tmpMeta379;
_cl = tmp374_1;
tmpMeta379 = stringAppend(omc_AbsynUtil_pathString(threadData, _className, _OMC_LIT100, 1, 0),_OMC_LIT365);
tmpMeta378 = mmc_mk_cons(tmpMeta379, MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addSourceMessage(threadData, _OMC_LIT125, tmpMeta378, omc_SCodeUtil_elementInfo(threadData, _cl));
goto goto_372;
goto tmp373_done;
}
}
goto tmp373_end;
tmp373_end: ;
}
goto goto_372;
goto_372:;
goto goto_2;
goto tmp373_done;
tmp373_done:;
}
}
_elts = tmpMeta371;
tmpMeta380 = MMC_REFSTRUCTLIT(mmc_nil);
_tys = tmpMeta380;
{
modelica_metatype _elt;
for (tmpMeta381 = _elts; !listEmpty(tmpMeta381); tmpMeta381=MMC_CDR(tmpMeta381))
{
_elt = MMC_CAR(tmpMeta381);
{
volatile modelica_metatype tmp384_1;
tmp384_1 = _elt;
{
volatile mmc_switch_type tmp384;
int tmp385;
tmp384 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp383_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp384 < 2; tmp384++) {
switch (MMC_SWITCH_CAST(tmp384)) {
case 0: {
modelica_metatype tmpMeta386;
modelica_metatype tmpMeta387;
modelica_metatype tmpMeta388;
modelica_metatype tmpMeta389;
if (mmc__uniontype__metarecord__typedef__equal(tmp384_1,2,8) == 0) goto tmp383_end;
tmpMeta386 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp384_1), 5));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta386,1,0) == 0) goto tmp383_end;
tmpMeta387 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp384_1), 6));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta387,9,1) == 0) goto tmp383_end;
tmpMeta388 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta387), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta388,1,1) == 0) goto tmp383_end;
_outCache = omc_Lookup_lookupType(threadData, _outCache, _env, omc_AbsynUtil_suffixPath(threadData, _className, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_elt), 2)))), mmc_mk_none() ,&_ty ,NULL);
if(omc_CevalScript_isSimpleAPIFunction(threadData, _ty))
{
tmpMeta389 = mmc_mk_cons(_ty, _tys);
_tys = tmpMeta389;
}
goto tmp383_done;
}
case 1: {
goto tmp383_done;
}
}
goto tmp383_end;
tmp383_end: ;
}
goto goto_382;
tmp383_done:
(void)tmp384;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp383_done2;
goto_382:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp384 < 2) {
goto tmp383_top;
}
goto goto_2;
tmp383_done2:;
}
}
;
}
}
_str1 = omc_Tpl_tplString(threadData, boxvar_GenerateAPIFunctionsTpl_getCevalScriptInterface, _tys);
tmpMeta391 = stringAppend(_name,_OMC_LIT366);
_str2 = omc_Tpl_tplString3(threadData, boxvar_GenerateAPIFunctionsTpl_getQtInterface, _tys, tmpMeta391, _name);
_str3 = omc_Tpl_tplString2(threadData, boxvar_GenerateAPIFunctionsTpl_getQtInterfaceHeaders, _tys, _name);
tmpMeta393 = mmc_mk_box2(5, &Values_Value_STRING__desc, _str1);
tmpMeta394 = mmc_mk_box2(5, &Values_Value_STRING__desc, _str2);
tmpMeta395 = mmc_mk_box2(5, &Values_Value_STRING__desc, _str3);
tmpMeta392 = mmc_mk_cons(_OMC_LIT5, mmc_mk_cons(tmpMeta393, mmc_mk_cons(tmpMeta394, mmc_mk_cons(tmpMeta395, MMC_REFSTRUCTLIT(mmc_nil)))));
tmpMeta396 = mmc_mk_box2(11, &Values_Value_TUPLE__desc, tmpMeta392);
tmpMeta1 = tmpMeta396;
goto tmp3_done;
}
case 104: {
if (20 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT467), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 47;
tmpMeta1 = _OMC_LIT370;
goto tmp3_done;
}
case 105: {
modelica_metatype tmpMeta397;
modelica_metatype tmpMeta398;
modelica_metatype tmpMeta399;
modelica_metatype tmpMeta400;
modelica_metatype tmpMeta401;
modelica_metatype tmpMeta402;
modelica_metatype tmpMeta403;
modelica_metatype tmpMeta404;
modelica_metatype tmpMeta405;
modelica_metatype tmpMeta406;
if (18 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT468), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta397 = MMC_CAR(tmp4_2);
tmpMeta398 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta397,2,1) == 0) goto tmp3_end;
tmpMeta399 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta397), 2));
if (listEmpty(tmpMeta398)) goto tmp3_end;
tmpMeta400 = MMC_CAR(tmpMeta398);
tmpMeta401 = MMC_CDR(tmpMeta398);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta400,12,1) == 0) goto tmp3_end;
tmpMeta402 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta400), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta402,0,1) == 0) goto tmp3_end;
tmpMeta403 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta402), 2));
if (listEmpty(tmpMeta401)) goto tmp3_end;
tmpMeta404 = MMC_CAR(tmpMeta401);
tmpMeta405 = MMC_CDR(tmpMeta401);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta404,2,1) == 0) goto tmp3_end;
tmpMeta406 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta404), 2));
if (!listEmpty(tmpMeta405)) goto tmp3_end;
_filename = tmpMeta399;
_path = tmpMeta403;
_str = tmpMeta406;
_str = omc_Tpl_tplString2(threadData, boxvar_CodegenCFunctions_generateEntryPoint, _path, _str);
omc_System_writeFile(threadData, _filename, _str);
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 106: {
if (18 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT468), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 45;
tmpMeta1 = _OMC_LIT12;
goto tmp3_done;
}
case 107: {
modelica_metatype tmpMeta407;
modelica_metatype tmpMeta408;
modelica_metatype tmpMeta409;
modelica_metatype tmpMeta410;
modelica_metatype tmpMeta411;
modelica_metatype tmpMeta412;
modelica_metatype tmpMeta413;
if (24 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT469), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta407 = MMC_CAR(tmp4_2);
tmpMeta408 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta407,12,1) == 0) goto tmp3_end;
tmpMeta409 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta407), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta409,0,1) == 0) goto tmp3_end;
tmpMeta410 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta409), 2));
if (listEmpty(tmpMeta408)) goto tmp3_end;
tmpMeta411 = MMC_CAR(tmpMeta408);
tmpMeta412 = MMC_CDR(tmpMeta408);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta411,5,2) == 0) goto tmp3_end;
tmpMeta413 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta411), 2));
if (!listEmpty(tmpMeta412)) goto tmp3_end;
_path = tmpMeta410;
_vals = tmpMeta413;
_sp = omc_SymbolTable_getSCode(threadData);
_cl = omc_SCodeUtil_getElementWithPath(threadData, _sp, _path);
_interfaceTypeAssoc = omc_List_map1(threadData, _vals, boxvar_CevalScript_getInterfaceTypeAssocElt, omc_SCodeUtil_elementInfo(threadData, _cl));
_interfaceType = omc_CevalScript_getInterfaceType(threadData, _cl, _interfaceTypeAssoc);
omc_List_map1__0(threadData, _sp, boxvar_CevalScript_verifyInterfaceType, _interfaceType);
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 108: {
if (24 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT469), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 43;
tmpMeta1 = _OMC_LIT12;
goto tmp3_done;
}
case 109: {
if (40 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT470), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 42;
tmpMeta1 = omc_CevalScript_generateSeparateCodeDependenciesMakefile(threadData, _args);
goto tmp3_done;
}
case 110: {
if (32 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT471), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 41;
tmpMeta1 = omc_CevalScript_generateSeparateCodeDependencies(threadData, _args);
goto tmp3_done;
}
case 111: {
if (20 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT472), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 40;
_v = omc_CevalScript_generateSeparateCode(threadData, _args, _outCache, _env ,&_outCache);
tmpMeta1 = _v;
goto tmp3_done;
}
case 112: {
modelica_metatype tmpMeta414;
modelica_metatype tmpMeta415;
modelica_metatype tmpMeta416;
modelica_metatype tmpMeta417;
modelica_metatype tmpMeta418;
modelica_metatype tmpMeta419;
if (16 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT473), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta414 = MMC_CAR(tmp4_2);
tmpMeta415 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta414,12,1) == 0) goto tmp3_end;
tmpMeta416 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta414), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta416,0,1) == 0) goto tmp3_end;
tmpMeta417 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta416), 2));
if (!listEmpty(tmpMeta415)) goto tmp3_end;
_path = tmpMeta417;
_vals = omc_CevalScript_getImportedNames(threadData, omc_InteractiveUtil_getPathedClassInProgram(threadData, _path, omc_SymbolTable_getAbsyn(threadData), 0, 0) ,&_cvars);
tmpMeta418 = mmc_mk_cons(omc_ValuesUtil_makeArray(threadData, _vals), mmc_mk_cons(omc_ValuesUtil_makeArray(threadData, _cvars), MMC_REFSTRUCTLIT(mmc_nil)));
tmpMeta419 = mmc_mk_box2(11, &Values_Value_TUPLE__desc, tmpMeta418);
tmpMeta1 = tmpMeta419;
goto tmp3_done;
}
case 113: {
modelica_metatype tmpMeta420;
modelica_metatype tmpMeta421;
modelica_metatype tmpMeta422;
modelica_metatype tmpMeta423;
if (16 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT473), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 38;
tmpMeta421 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta422 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta420 = mmc_mk_cons(omc_ValuesUtil_makeArray(threadData, tmpMeta421), mmc_mk_cons(omc_ValuesUtil_makeArray(threadData, tmpMeta422), MMC_REFSTRUCTLIT(mmc_nil)));
tmpMeta423 = mmc_mk_box2(11, &Values_Value_TUPLE__desc, tmpMeta420);
tmpMeta1 = tmpMeta423;
goto tmp3_done;
}
case 114: {
modelica_metatype tmpMeta424;
modelica_metatype tmpMeta425;
modelica_metatype tmpMeta426;
modelica_metatype tmpMeta427;
modelica_metatype tmpMeta428;
modelica_metatype tmpMeta429;
modelica_metatype tmpMeta430;
if (26 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT474), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta424 = MMC_CAR(tmp4_2);
tmpMeta425 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta424,2,1) == 0) goto tmp3_end;
tmpMeta426 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta424), 2));
if (listEmpty(tmpMeta425)) goto tmp3_end;
tmpMeta427 = MMC_CAR(tmpMeta425);
tmpMeta428 = MMC_CDR(tmpMeta425);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta427,2,1) == 0) goto tmp3_end;
tmpMeta429 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta427), 2));
if (!listEmpty(tmpMeta428)) goto tmp3_end;
_str1 = tmpMeta426;
_str2 = tmpMeta429;
_strs = omc_CevalScript_getMMfileTotalDependencies(threadData, _str1, _str2);
{
modelica_metatype __omcQ_24tmpVar13;
modelica_metatype* tmp431;
modelica_metatype tmpMeta432;
modelica_metatype tmpMeta433;
modelica_metatype __omcQ_24tmpVar12;
modelica_integer tmp434;
modelica_metatype _s_loopVar = 0;
modelica_metatype _s;
_s_loopVar = _strs;
tmpMeta432 = MMC_REFSTRUCTLIT(mmc_nil);
__omcQ_24tmpVar13 = tmpMeta432;
tmp431 = &__omcQ_24tmpVar13;
while(1) {
tmp434 = 1;
if (!listEmpty(_s_loopVar)) {
_s = MMC_CAR(_s_loopVar);
_s_loopVar = MMC_CDR(_s_loopVar);
tmp434--;
}
if (tmp434 == 0) {
tmpMeta433 = mmc_mk_box2(5, &Values_Value_STRING__desc, _s);
__omcQ_24tmpVar12 = tmpMeta433;
*tmp431 = mmc_mk_cons(__omcQ_24tmpVar12,0);
tmp431 = &MMC_CDR(*tmp431);
} else if (tmp434 == 1) {
break;
} else {
goto goto_2;
}
}
*tmp431 = mmc_mk_nil();
tmpMeta430 = __omcQ_24tmpVar13;
}
_vals = tmpMeta430;
tmpMeta1 = omc_ValuesUtil_makeArray(threadData, _vals);
goto tmp3_done;
}
case 115: {
modelica_metatype tmpMeta435;
if (26 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT474), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 36;
tmpMeta435 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta1 = omc_ValuesUtil_makeArray(threadData, tmpMeta435);
goto tmp3_done;
}
case 116: {
modelica_metatype tmpMeta436;
modelica_metatype tmpMeta437;
modelica_metatype tmpMeta438;
modelica_metatype tmpMeta439;
modelica_metatype tmpMeta440;
modelica_metatype tmpMeta441;
modelica_metatype tmpMeta442;
modelica_metatype tmpMeta443;
modelica_metatype tmpMeta444;
modelica_metatype tmpMeta445;
modelica_integer tmp446;
modelica_metatype tmpMeta447;
modelica_metatype tmpMeta448;
modelica_metatype tmpMeta449;
modelica_metatype tmpMeta450;
modelica_metatype tmpMeta451;
modelica_metatype tmpMeta452;
modelica_integer tmp453;
modelica_metatype tmpMeta454;
modelica_metatype tmpMeta455;
modelica_metatype tmpMeta456;
modelica_metatype tmpMeta457;
modelica_metatype tmpMeta458;
if (9 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT475), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta436 = MMC_CAR(tmp4_2);
tmpMeta437 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta436,12,1) == 0) goto tmp3_end;
tmpMeta438 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta436), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta438,0,1) == 0) goto tmp3_end;
tmpMeta439 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta438), 2));
if (listEmpty(tmpMeta437)) goto tmp3_end;
tmpMeta440 = MMC_CAR(tmpMeta437);
tmpMeta441 = MMC_CDR(tmpMeta437);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta440,5,2) == 0) goto tmp3_end;
tmpMeta442 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta440), 2));
if (listEmpty(tmpMeta441)) goto tmp3_end;
tmpMeta443 = MMC_CAR(tmpMeta441);
tmpMeta444 = MMC_CDR(tmpMeta441);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta443,3,1) == 0) goto tmp3_end;
tmpMeta445 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta443), 2));
tmp446 = mmc_unbox_integer(tmpMeta445);
if (listEmpty(tmpMeta444)) goto tmp3_end;
tmpMeta447 = MMC_CAR(tmpMeta444);
tmpMeta448 = MMC_CDR(tmpMeta444);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta447,2,1) == 0) goto tmp3_end;
tmpMeta449 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta447), 2));
if (listEmpty(tmpMeta448)) goto tmp3_end;
tmpMeta450 = MMC_CAR(tmpMeta448);
tmpMeta451 = MMC_CDR(tmpMeta448);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta450,3,1) == 0) goto tmp3_end;
tmpMeta452 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta450), 2));
tmp453 = mmc_unbox_integer(tmpMeta452);
if (!listEmpty(tmpMeta451)) goto tmp3_end;
_path = tmpMeta439;
_cvars = tmpMeta442;
_b = tmp446;
_str = tmpMeta449;
_requireExactVersion = tmp453;
_p = omc_SymbolTable_getAbsyn(threadData);
omc_ExecStat_execStatReset(threadData);
_pathstr = omc_Settings_getModelicaPath(threadData, omc_Testsuite_isRunning(threadData));
_strs = omc_List_map(threadData, _cvars, boxvar_ValuesUtil_extractValueString);
_oldLanguageStd = omc_Config_getLanguageStandard(threadData);
_b1 = (!(stringEqual(_str, _OMC_LIT52)));
if(_b1)
{
omc_Config_setLanguageStandard(threadData, omc_Config_versionStringToStd(threadData, _str));
}
tmpMeta455 = mmc_mk_box4(0, _path, _OMC_LIT371, _strs, mmc_mk_boolean(0));
tmpMeta454 = mmc_mk_cons(tmpMeta455, MMC_REFSTRUCTLIT(mmc_nil));
_p = omc_CevalScript_loadModel(threadData, tmpMeta454, _pathstr, _p, 1, _b, 1, _requireExactVersion, 0, _OMC_LIT52 ,&_b);
if(_b1)
{
omc_Config_setLanguageStandard(threadData, (modelica_integer)_oldLanguageStd);
}
omc_Print_clearBuf(threadData);
omc_SymbolTable_setAbsyn(threadData, _p);
tmpMeta456 = stringAppend(_OMC_LIT372,omc_AbsynUtil_pathString(threadData, _path, _OMC_LIT100, 1, 0));
tmpMeta457 = stringAppend(tmpMeta456,_OMC_LIT174);
omc_ExecStat_execStat(threadData, tmpMeta457);
_outCache = omc_FCore_emptyCache(threadData);
tmpMeta458 = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(_b));
tmpMeta1 = tmpMeta458;
goto tmp3_done;
}
case 117: {
modelica_metatype tmpMeta459;
modelica_metatype tmpMeta460;
modelica_metatype tmpMeta461;
modelica_metatype tmpMeta462;
modelica_metatype tmpMeta463;
if (9 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT475), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta459 = MMC_CAR(tmp4_2);
tmpMeta460 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta459,12,1) == 0) goto tmp3_end;
tmpMeta461 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta459), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta461,0,1) == 0) goto tmp3_end;
tmpMeta462 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta461), 2));
_path = tmpMeta462;
tmp4 += 34;
_pathstr = omc_AbsynUtil_pathString(threadData, _path, _OMC_LIT100, 1, 0);
tmpMeta463 = mmc_mk_cons(_pathstr, MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addMessage(threadData, _OMC_LIT375, tmpMeta463);
tmpMeta1 = _OMC_LIT12;
goto tmp3_done;
}
case 118: {
modelica_metatype tmpMeta464;
modelica_metatype tmpMeta465;
modelica_metatype tmpMeta466;
modelica_metatype tmpMeta467;
modelica_metatype tmpMeta468;
modelica_metatype tmpMeta469;
modelica_metatype tmpMeta470;
modelica_metatype tmpMeta471;
modelica_metatype tmpMeta472;
modelica_integer tmp473;
modelica_metatype tmpMeta474;
modelica_metatype tmpMeta475;
modelica_metatype tmpMeta476;
modelica_integer tmp477;
modelica_metatype tmpMeta478;
modelica_metatype tmpMeta479;
modelica_metatype tmpMeta480;
modelica_integer tmp481;
modelica_metatype tmpMeta482;
modelica_metatype tmpMeta483;
if (8 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT476), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta464 = MMC_CAR(tmp4_2);
tmpMeta465 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta464,2,1) == 0) goto tmp3_end;
tmpMeta466 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta464), 2));
if (listEmpty(tmpMeta465)) goto tmp3_end;
tmpMeta467 = MMC_CAR(tmpMeta465);
tmpMeta468 = MMC_CDR(tmpMeta465);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta467,2,1) == 0) goto tmp3_end;
tmpMeta469 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta467), 2));
if (listEmpty(tmpMeta468)) goto tmp3_end;
tmpMeta470 = MMC_CAR(tmpMeta468);
tmpMeta471 = MMC_CDR(tmpMeta468);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta470,3,1) == 0) goto tmp3_end;
tmpMeta472 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta470), 2));
tmp473 = mmc_unbox_integer(tmpMeta472);
if (listEmpty(tmpMeta471)) goto tmp3_end;
tmpMeta474 = MMC_CAR(tmpMeta471);
tmpMeta475 = MMC_CDR(tmpMeta471);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta474,3,1) == 0) goto tmp3_end;
tmpMeta476 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta474), 2));
tmp477 = mmc_unbox_integer(tmpMeta476);
if (listEmpty(tmpMeta475)) goto tmp3_end;
tmpMeta478 = MMC_CAR(tmpMeta475);
tmpMeta479 = MMC_CDR(tmpMeta475);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta478,3,1) == 0) goto tmp3_end;
tmpMeta480 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta478), 2));
tmp481 = mmc_unbox_integer(tmpMeta480);
_name = tmpMeta466;
_encoding = tmpMeta469;
_b = tmp473;
_b1 = tmp477;
_requireExactVersion = tmp481;
omc_ExecStat_execStatReset(threadData);
_name = omc_Testsuite_friendlyPath(threadData, _name);
_newp = omc_CevalScript_loadFile(threadData, _name, _encoding, omc_SymbolTable_getAbsyn(threadData), _b, _b1, _requireExactVersion);
tmpMeta482 = stringAppend(_OMC_LIT376,_name);
tmpMeta483 = stringAppend(tmpMeta482,_OMC_LIT174);
omc_ExecStat_execStat(threadData, tmpMeta483);
omc_SymbolTable_setAbsyn(threadData, _newp);
_outCache = omc_FCore_emptyCache(threadData);
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 119: {
if (8 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT476), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 32;
tmpMeta1 = _OMC_LIT12;
goto tmp3_done;
}
case 120: {
modelica_metatype tmpMeta484;
modelica_metatype tmpMeta485;
modelica_metatype tmpMeta486;
modelica_metatype tmpMeta487;
modelica_metatype tmpMeta488;
modelica_metatype tmpMeta489;
modelica_metatype tmpMeta490;
modelica_metatype tmpMeta491;
modelica_metatype tmpMeta492;
modelica_integer tmp493;
modelica_metatype tmpMeta494;
modelica_metatype tmpMeta495;
modelica_metatype tmpMeta496;
modelica_integer tmp497;
modelica_metatype tmpMeta498;
modelica_metatype tmpMeta499;
modelica_metatype tmpMeta500;
modelica_integer tmp501;
modelica_metatype tmpMeta502;
modelica_metatype tmpMeta503;
modelica_metatype tmpMeta504;
modelica_integer tmp505;
modelica_metatype tmpMeta506;
if (9 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT477), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta484 = MMC_CAR(tmp4_2);
tmpMeta485 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta484,5,2) == 0) goto tmp3_end;
tmpMeta486 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta484), 2));
if (listEmpty(tmpMeta485)) goto tmp3_end;
tmpMeta487 = MMC_CAR(tmpMeta485);
tmpMeta488 = MMC_CDR(tmpMeta485);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta487,2,1) == 0) goto tmp3_end;
tmpMeta489 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta487), 2));
if (listEmpty(tmpMeta488)) goto tmp3_end;
tmpMeta490 = MMC_CAR(tmpMeta488);
tmpMeta491 = MMC_CDR(tmpMeta488);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta490,0,1) == 0) goto tmp3_end;
tmpMeta492 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta490), 2));
tmp493 = mmc_unbox_integer(tmpMeta492);
if (listEmpty(tmpMeta491)) goto tmp3_end;
tmpMeta494 = MMC_CAR(tmpMeta491);
tmpMeta495 = MMC_CDR(tmpMeta491);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta494,3,1) == 0) goto tmp3_end;
tmpMeta496 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta494), 2));
tmp497 = mmc_unbox_integer(tmpMeta496);
if (listEmpty(tmpMeta495)) goto tmp3_end;
tmpMeta498 = MMC_CAR(tmpMeta495);
tmpMeta499 = MMC_CDR(tmpMeta495);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta498,3,1) == 0) goto tmp3_end;
tmpMeta500 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta498), 2));
tmp501 = mmc_unbox_integer(tmpMeta500);
if (listEmpty(tmpMeta499)) goto tmp3_end;
tmpMeta502 = MMC_CAR(tmpMeta499);
tmpMeta503 = MMC_CDR(tmpMeta499);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta502,3,1) == 0) goto tmp3_end;
tmpMeta504 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta502), 2));
tmp505 = mmc_unbox_integer(tmpMeta504);
_vals = tmpMeta486;
_encoding = tmpMeta489;
_i = tmp493;
_b = tmp497;
_b1 = tmp501;
_requireExactVersion = tmp505;
_strs = omc_List_mapMap(threadData, _vals, boxvar_ValuesUtil_extractValueString, boxvar_Testsuite_friendlyPath);
_newps = omc_Parser_parallelParseFilesToProgramList(threadData, _strs, _encoding, _i);
tmpMeta506 = mmc_mk_box4(0, mmc_mk_boolean(_b), omc_Settings_getModelicaPath(threadData, omc_Testsuite_isRunning(threadData)), mmc_mk_boolean(_b1), mmc_mk_boolean(_requireExactVersion));
_newp = omc_List_fold(threadData, _newps, (modelica_fnptr) mmc_mk_box2(0,closure0_CevalScript_checkUsesAndUpdateProgram,tmpMeta506), omc_SymbolTable_getAbsyn(threadData));
omc_SymbolTable_setAbsyn(threadData, _newp);
_outCache = omc_FCore_emptyCache(threadData);
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 121: {
if (9 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT477), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 30;
tmpMeta1 = _OMC_LIT12;
goto tmp3_done;
}
case 122: {
modelica_metatype tmpMeta507;
modelica_metatype tmpMeta508;
modelica_metatype tmpMeta509;
modelica_metatype tmpMeta510;
modelica_metatype tmpMeta511;
modelica_metatype tmpMeta512;
modelica_metatype tmpMeta513;
modelica_integer tmp519;
if (21 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT478), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta507 = MMC_CAR(tmp4_2);
tmpMeta508 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta507,2,1) == 0) goto tmp3_end;
tmpMeta509 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta507), 2));
if (listEmpty(tmpMeta508)) goto tmp3_end;
tmpMeta510 = MMC_CAR(tmpMeta508);
tmpMeta511 = MMC_CDR(tmpMeta508);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta510,2,1) == 0) goto tmp3_end;
tmpMeta512 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta510), 2));
_filename = tmpMeta509;
_workdir = tmpMeta512;
tmpMeta513 = MMC_REFSTRUCTLIT(mmc_nil);
_vals = tmpMeta513;
_str = omc_System_pwd(threadData);
{
{
volatile mmc_switch_type tmp516;
int tmp517;
tmp516 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp515_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp516 < 2; tmp516++) {
switch (MMC_SWITCH_CAST(tmp516)) {
case 0: {
modelica_integer tmp518;
tmp518 = omc_System_cd(threadData, omc_System_dirname(threadData, _filename));
if (0 != tmp518) goto goto_514;
_b = omc_CevalScript_unZipEncryptedPackageAndCheckFile(threadData, _workdir, _filename, 0 ,&_filename);
if(_b)
{
omc_Error_clearMessages(threadData);
omc_Print_clearErrorBuf(threadData);
_filename = omc_Testsuite_friendlyPath(threadData, _filename);
_paths = omc_Interactive_parseFile(threadData, _filename, _OMC_LIT377, 0);
_vals = omc_List_map(threadData, _paths, boxvar_ValuesUtil_makeCodeTypeName);
}
goto tmp515_done;
}
case 1: {
goto tmp515_done;
}
}
goto tmp515_end;
tmp515_end: ;
}
goto goto_514;
tmp515_done:
(void)tmp516;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp515_done2;
goto_514:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp516 < 2) {
goto tmp515_top;
}
goto goto_2;
tmp515_done2:;
}
}
;
tmp519 = omc_System_cd(threadData, _str);
if (0 != tmp519) goto goto_2;
tmpMeta1 = omc_ValuesUtil_makeArray(threadData, _vals);
goto tmp3_done;
}
case 123: {
modelica_metatype tmpMeta520;
if (21 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT478), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 28;
tmpMeta520 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta1 = omc_ValuesUtil_makeArray(threadData, tmpMeta520);
goto tmp3_done;
}
case 124: {
modelica_metatype tmpMeta521;
modelica_metatype tmpMeta522;
modelica_metatype tmpMeta523;
modelica_metatype tmpMeta524;
modelica_metatype tmpMeta525;
modelica_metatype tmpMeta526;
modelica_metatype tmpMeta527;
modelica_metatype tmpMeta528;
modelica_metatype tmpMeta529;
modelica_integer tmp530;
modelica_metatype tmpMeta531;
modelica_metatype tmpMeta532;
modelica_metatype tmpMeta533;
modelica_integer tmp534;
modelica_metatype tmpMeta535;
modelica_metatype tmpMeta536;
modelica_metatype tmpMeta537;
modelica_integer tmp538;
modelica_metatype tmpMeta539;
modelica_metatype tmpMeta540;
modelica_metatype tmpMeta541;
modelica_integer tmp542;
modelica_integer tmp550;
modelica_metatype tmpMeta551;
if (20 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT479), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta521 = MMC_CAR(tmp4_2);
tmpMeta522 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta521,2,1) == 0) goto tmp3_end;
tmpMeta523 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta521), 2));
if (listEmpty(tmpMeta522)) goto tmp3_end;
tmpMeta524 = MMC_CAR(tmpMeta522);
tmpMeta525 = MMC_CDR(tmpMeta522);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta524,2,1) == 0) goto tmp3_end;
tmpMeta526 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta524), 2));
if (listEmpty(tmpMeta525)) goto tmp3_end;
tmpMeta527 = MMC_CAR(tmpMeta525);
tmpMeta528 = MMC_CDR(tmpMeta525);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta527,3,1) == 0) goto tmp3_end;
tmpMeta529 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta527), 2));
tmp530 = mmc_unbox_integer(tmpMeta529);
if (listEmpty(tmpMeta528)) goto tmp3_end;
tmpMeta531 = MMC_CAR(tmpMeta528);
tmpMeta532 = MMC_CDR(tmpMeta528);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta531,3,1) == 0) goto tmp3_end;
tmpMeta533 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta531), 2));
tmp534 = mmc_unbox_integer(tmpMeta533);
if (listEmpty(tmpMeta532)) goto tmp3_end;
tmpMeta535 = MMC_CAR(tmpMeta532);
tmpMeta536 = MMC_CDR(tmpMeta532);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta535,3,1) == 0) goto tmp3_end;
tmpMeta537 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta535), 2));
tmp538 = mmc_unbox_integer(tmpMeta537);
if (listEmpty(tmpMeta536)) goto tmp3_end;
tmpMeta539 = MMC_CAR(tmpMeta536);
tmpMeta540 = MMC_CDR(tmpMeta536);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta539,3,1) == 0) goto tmp3_end;
tmpMeta541 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta539), 2));
tmp542 = mmc_unbox_integer(tmpMeta541);
_filename = tmpMeta523;
_workdir = tmpMeta526;
_bval = tmp530;
_b = tmp534;
_b1 = tmp538;
_requireExactVersion = tmp542;
_str = omc_System_pwd(threadData);
{
{
volatile mmc_switch_type tmp545;
int tmp546;
tmp545 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp544_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp545 < 2; tmp545++) {
switch (MMC_SWITCH_CAST(tmp545)) {
case 0: {
modelica_integer tmp547;
modelica_metatype tmpMeta548;
modelica_metatype tmpMeta549;
tmp547 = omc_System_cd(threadData, omc_System_dirname(threadData, _filename));
if (0 != tmp547) goto goto_543;
_b = omc_CevalScript_unZipEncryptedPackageAndCheckFile(threadData, _workdir, _filename, _bval ,&_filename);
if(_b)
{
omc_ExecStat_execStatReset(threadData);
_filename = omc_Testsuite_friendlyPath(threadData, _filename);
_p = omc_SymbolTable_getAbsyn(threadData);
_newp = omc_CevalScript_loadFile(threadData, _filename, _OMC_LIT377, _p, _b, _b1, _requireExactVersion);
tmpMeta548 = stringAppend(_OMC_LIT376,_filename);
tmpMeta549 = stringAppend(tmpMeta548,_OMC_LIT174);
omc_ExecStat_execStat(threadData, tmpMeta549);
omc_SymbolTable_setAbsyn(threadData, _newp);
}
_outCache = omc_FCore_emptyCache(threadData);
goto tmp544_done;
}
case 1: {
goto tmp544_done;
}
}
goto tmp544_end;
tmp544_end: ;
}
goto goto_543;
tmp544_done:
(void)tmp545;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp544_done2;
goto_543:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp545 < 2) {
goto tmp544_top;
}
goto goto_2;
tmp544_done2:;
}
}
;
tmp550 = omc_System_cd(threadData, _str);
if (0 != tmp550) goto goto_2;
tmpMeta551 = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(_b));
tmpMeta1 = tmpMeta551;
goto tmp3_done;
}
case 125: {
if (20 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT479), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 26;
tmpMeta1 = _OMC_LIT12;
goto tmp3_done;
}
case 126: {
modelica_metatype tmpMeta552;
modelica_metatype tmpMeta553;
modelica_metatype tmpMeta554;
modelica_integer tmp555;
modelica_metatype tmpMeta556;
if (5 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT480), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta552 = MMC_CAR(tmp4_2);
tmpMeta553 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta552,0,1) == 0) goto tmp3_end;
tmpMeta554 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta552), 2));
tmp555 = mmc_unbox_integer(tmpMeta554);
if (!listEmpty(tmpMeta553)) goto tmp3_end;
_i = tmp555;
tmp4 += 25;
tmpMeta556 = mmc_mk_box2(3, &Values_Value_INTEGER__desc, mmc_mk_integer(omc_System_alarm(threadData, _i)));
tmpMeta1 = tmpMeta556;
goto tmp3_done;
}
case 127: {
if (13 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT481), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 24;
tmpMeta1 = omc_CevalScript_getClassNames(threadData, _args);
goto tmp3_done;
}
case 128: {
modelica_metatype tmpMeta557;
modelica_metatype tmpMeta558;
modelica_metatype tmpMeta559;
modelica_metatype tmpMeta560;
modelica_metatype tmpMeta561;
modelica_metatype tmpMeta562;
modelica_metatype tmpMeta563;
modelica_metatype tmpMeta564;
modelica_metatype tmpMeta565;
modelica_metatype tmpMeta566;
modelica_metatype tmpMeta567;
modelica_real tmp568;
modelica_real tmp569;
modelica_boolean tmp570;
if (11 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT482), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta557 = MMC_CAR(tmp4_2);
tmpMeta558 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta557,12,1) == 0) goto tmp3_end;
tmpMeta559 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta557), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta559,0,1) == 0) goto tmp3_end;
tmpMeta560 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta559), 2));
if (listEmpty(tmpMeta558)) goto tmp3_end;
tmpMeta561 = MMC_CAR(tmpMeta558);
tmpMeta562 = MMC_CDR(tmpMeta558);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta561,2,1) == 0) goto tmp3_end;
tmpMeta563 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta561), 2));
if (!listEmpty(tmpMeta562)) goto tmp3_end;
_classpath = tmpMeta560;
_encoding = tmpMeta563;
tmpMeta564 = omc_InteractiveUtil_getPathedClassInProgram(threadData, _classpath, omc_SymbolTable_getAbsyn(threadData), 0, 0);
tmpMeta565 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta564), 10));
tmpMeta566 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta565), 2));
tmpMeta567 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta565), 8));
tmp568 = mmc_unbox_real(tmpMeta567);
_filename = tmpMeta566;
_r2 = tmp568;
tmp570 = omc_System_stat(threadData, _filename, NULL, &tmp569, NULL);
if (1 != tmp570) goto goto_2;
_r1 = tmp569;
if((!(_r1 == _r2)))
{
omc_CevalScript_reloadClass(threadData, _filename, _encoding);
}
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 129: {
modelica_metatype tmpMeta571;
modelica_metatype tmpMeta572;
modelica_metatype tmpMeta573;
modelica_metatype tmpMeta574;
modelica_metatype tmpMeta575;
modelica_metatype tmpMeta576;
modelica_boolean tmp577;
modelica_metatype tmpMeta579;
if (11 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT482), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta571 = MMC_CAR(tmp4_2);
tmpMeta572 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta571,12,1) == 0) goto tmp3_end;
tmpMeta573 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta571), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta573,0,1) == 0) goto tmp3_end;
tmpMeta574 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta573), 2));
if (listEmpty(tmpMeta572)) goto tmp3_end;
tmpMeta575 = MMC_CAR(tmpMeta572);
tmpMeta576 = MMC_CDR(tmpMeta572);
if (!listEmpty(tmpMeta576)) goto tmp3_end;
_classpath = tmpMeta574;
tmp577 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
omc_InteractiveUtil_getPathedClassInProgram(threadData, _classpath, omc_SymbolTable_getAbsyn(threadData), 0, 0);
tmp577 = 1;
goto goto_578;
goto_578:;
MMC_CATCH_INTERNAL(mmc_jumper)
if (tmp577) {goto goto_2;}
tmpMeta579 = mmc_mk_cons(omc_AbsynUtil_pathString(threadData, _classpath, _OMC_LIT100, 1, 0), MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addMessage(threadData, _OMC_LIT375, tmpMeta579);
tmpMeta1 = _OMC_LIT12;
goto tmp3_done;
}
case 130: {
if (11 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT482), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 21;
tmpMeta1 = _OMC_LIT12;
goto tmp3_done;
}
case 131: {
modelica_metatype tmpMeta580;
modelica_metatype tmpMeta581;
modelica_metatype tmpMeta582;
modelica_metatype tmpMeta583;
modelica_metatype tmpMeta584;
modelica_metatype tmpMeta585;
modelica_metatype tmpMeta586;
modelica_metatype tmpMeta587;
modelica_metatype tmpMeta588;
modelica_metatype tmpMeta589;
modelica_metatype tmpMeta590;
modelica_metatype tmpMeta591;
modelica_integer tmp592;
if (10 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT483), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta580 = MMC_CAR(tmp4_2);
tmpMeta581 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta580,2,1) == 0) goto tmp3_end;
tmpMeta582 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta580), 2));
if (listEmpty(tmpMeta581)) goto tmp3_end;
tmpMeta583 = MMC_CAR(tmpMeta581);
tmpMeta584 = MMC_CDR(tmpMeta581);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta583,2,1) == 0) goto tmp3_end;
tmpMeta585 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta583), 2));
if (listEmpty(tmpMeta584)) goto tmp3_end;
tmpMeta586 = MMC_CAR(tmpMeta584);
tmpMeta587 = MMC_CDR(tmpMeta584);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta586,2,1) == 0) goto tmp3_end;
tmpMeta588 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta586), 2));
if (listEmpty(tmpMeta587)) goto tmp3_end;
tmpMeta589 = MMC_CAR(tmpMeta587);
tmpMeta590 = MMC_CDR(tmpMeta587);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta589,3,1) == 0) goto tmp3_end;
tmpMeta591 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta589), 2));
tmp592 = mmc_unbox_integer(tmpMeta591);
_str = tmpMeta582;
_name = tmpMeta585;
_encoding = tmpMeta588;
_mergeAST = tmp592;
_str = ((!(stringEqual(_encoding, _OMC_LIT377)))?omc_System_iconv(threadData, _str, _encoding, _OMC_LIT377):_str);
_newp = omc_Parser_parsestring(threadData, _str, _name, omc_Config_acceptedGrammar(threadData), omc_Flags_getConfigEnum(threadData, _OMC_LIT322), omc_Flags_getConfigBool(threadData, _OMC_LIT327));
_newp = omc_InteractiveUtil_updateProgram(threadData, _newp, omc_SymbolTable_getAbsyn(threadData), _mergeAST);
omc_SymbolTable_setAbsyn(threadData, _newp);
_outCache = omc_FCore_emptyCache(threadData);
tmpMeta1 = _OMC_LIT5;
goto tmp3_done;
}
case 132: {
if (10 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT483), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 19;
tmpMeta1 = _OMC_LIT12;
goto tmp3_done;
}
case 133: {
modelica_metatype tmpMeta593;
modelica_metatype tmpMeta594;
modelica_metatype tmpMeta595;
modelica_metatype tmpMeta596;
if (4 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT484), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta593 = MMC_CAR(tmp4_2);
tmpMeta594 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta593,2,1) == 0) goto tmp3_end;
tmpMeta595 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta593), 2));
if (0 != MMC_STRLEN(tmpMeta595) || strcmp(MMC_STRINGDATA(_OMC_LIT52), MMC_STRINGDATA(tmpMeta595)) != 0) goto tmp3_end;
if (!listEmpty(tmpMeta594)) goto tmp3_end;
tmpMeta596 = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_FlagsUtil_printUsage(threadData));
tmpMeta1 = tmpMeta596;
goto tmp3_done;
}
case 134: {
modelica_metatype tmpMeta597;
modelica_metatype tmpMeta598;
modelica_metatype tmpMeta599;
modelica_metatype tmpMeta600;
modelica_metatype tmpMeta601;
if (4 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT484), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta597 = MMC_CAR(tmp4_2);
tmpMeta598 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta597,2,1) == 0) goto tmp3_end;
tmpMeta599 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta597), 2));
if (!listEmpty(tmpMeta598)) goto tmp3_end;
_str = tmpMeta599;
tmp4 += 17;
tmpMeta600 = mmc_mk_cons(_str, MMC_REFSTRUCTLIT(mmc_nil));
tmpMeta601 = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_FlagsUtil_printHelp(threadData, tmpMeta600));
tmpMeta1 = tmpMeta601;
goto tmp3_done;
}
case 135: {
modelica_metatype tmpMeta602;
modelica_metatype tmpMeta603;
modelica_metatype tmpMeta604;
modelica_metatype tmpMeta605;
modelica_metatype tmpMeta606;
modelica_metatype tmpMeta607;
modelica_metatype tmpMeta608;
modelica_real tmp609;
modelica_metatype tmpMeta610;
modelica_metatype tmpMeta611;
modelica_metatype tmpMeta612;
modelica_metatype tmpMeta613;
if (12 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT485), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta602 = MMC_CAR(tmp4_2);
tmpMeta603 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta602,12,1) == 0) goto tmp3_end;
tmpMeta604 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta602), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta604,0,1) == 0) goto tmp3_end;
tmpMeta605 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta604), 2));
if (!listEmpty(tmpMeta603)) goto tmp3_end;
_classpath = tmpMeta605;
tmpMeta606 = omc_InteractiveUtil_getPathedClassInProgram(threadData, _classpath, omc_SymbolTable_getAbsyn(threadData), 0, 0);
tmpMeta607 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta606), 10));
tmpMeta608 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta607), 8));
tmp609 = mmc_unbox_real(tmpMeta608);
_r = tmp609;
_str = omc_System_ctime(threadData, _r);
tmpMeta611 = mmc_mk_box2(4, &Values_Value_REAL__desc, mmc_mk_real(_r));
tmpMeta612 = mmc_mk_box2(5, &Values_Value_STRING__desc, _str);
tmpMeta610 = mmc_mk_cons(tmpMeta611, mmc_mk_cons(tmpMeta612, MMC_REFSTRUCTLIT(mmc_nil)));
tmpMeta613 = mmc_mk_box2(11, &Values_Value_TUPLE__desc, tmpMeta610);
tmpMeta1 = tmpMeta613;
goto tmp3_done;
}
case 136: {
if (12 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT485), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 15;
tmpMeta1 = _OMC_LIT380;
goto tmp3_done;
}
case 137: {
modelica_metatype tmpMeta614;
modelica_metatype tmpMeta615;
modelica_metatype tmpMeta616;
modelica_metatype tmpMeta617;
modelica_metatype tmpMeta618;
if (19 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT486), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta614 = MMC_CAR(tmp4_2);
tmpMeta615 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta614,12,1) == 0) goto tmp3_end;
tmpMeta616 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta614), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta616,0,1) == 0) goto tmp3_end;
tmpMeta617 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta616), 2));
if (!listEmpty(tmpMeta615)) goto tmp3_end;
_classpath = tmpMeta617;
tmp4 += 14;
_str = omc_Interactive_getClassRestriction(threadData, _classpath, omc_SymbolTable_getAbsyn(threadData));
tmpMeta618 = mmc_mk_box2(5, &Values_Value_STRING__desc, _str);
tmpMeta1 = tmpMeta618;
goto tmp3_done;
}
case 138: {
modelica_metatype tmpMeta619;
modelica_metatype tmpMeta620;
modelica_metatype tmpMeta621;
modelica_metatype tmpMeta622;
modelica_metatype tmpMeta623;
modelica_metatype tmpMeta624;
modelica_metatype tmpMeta625;
modelica_metatype tmpMeta626;
modelica_metatype tmpMeta627;
if (21 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT487), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta619 = MMC_CAR(tmp4_2);
tmpMeta620 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta619,12,1) == 0) goto tmp3_end;
tmpMeta621 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta619), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta621,0,1) == 0) goto tmp3_end;
tmpMeta622 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta621), 2));
if (listEmpty(tmpMeta620)) goto tmp3_end;
tmpMeta623 = MMC_CAR(tmpMeta620);
tmpMeta624 = MMC_CDR(tmpMeta620);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta623,12,1) == 0) goto tmp3_end;
tmpMeta625 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta623), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta625,0,1) == 0) goto tmp3_end;
tmpMeta626 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta625), 2));
if (!listEmpty(tmpMeta624)) goto tmp3_end;
_classpath = tmpMeta622;
_path = tmpMeta626;
tmp4 += 13;
_b = mmc_unbox_boolean(omc_Interactive_getNamedAnnotation(threadData, _classpath, omc_SymbolTable_getAbsyn(threadData), _path, _OMC_LIT381, boxvar_isSome));
tmpMeta627 = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(_b));
tmpMeta1 = tmpMeta627;
goto tmp3_done;
}
case 139: {
modelica_metatype tmpMeta628;
modelica_metatype tmpMeta629;
modelica_metatype tmpMeta630;
modelica_metatype tmpMeta631;
modelica_metatype tmpMeta632;
modelica_metatype tmpMeta633;
modelica_metatype tmpMeta634;
modelica_metatype tmpMeta635;
modelica_metatype tmpMeta636;
modelica_metatype tmpMeta637;
modelica_integer tmp638;
modelica_metatype tmpMeta639;
if (25 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT488), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta628 = MMC_CAR(tmp4_2);
tmpMeta629 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta628,12,1) == 0) goto tmp3_end;
tmpMeta630 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta628), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta630,0,1) == 0) goto tmp3_end;
tmpMeta631 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta630), 2));
if (listEmpty(tmpMeta629)) goto tmp3_end;
tmpMeta632 = MMC_CAR(tmpMeta629);
tmpMeta633 = MMC_CDR(tmpMeta629);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta632,12,1) == 0) goto tmp3_end;
tmpMeta634 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta632), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta634,0,1) == 0) goto tmp3_end;
tmpMeta635 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta634), 2));
if (!listEmpty(tmpMeta633)) goto tmp3_end;
_classpath = tmpMeta631;
_path = tmpMeta635;
tmpMeta636 = omc_Interactive_getNamedAnnotation(threadData, _classpath, omc_SymbolTable_getAbsyn(threadData), _path, mmc_mk_none(), boxvar_Interactive_getAnnotationExp);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta636,4,1) == 0) goto goto_2;
tmpMeta637 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta636), 2));
tmp638 = mmc_unbox_integer(tmpMeta637);
_b = tmp638;
tmpMeta639 = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(_b));
tmpMeta1 = tmpMeta639;
goto tmp3_done;
}
case 140: {
modelica_metatype tmpMeta640;
modelica_metatype tmpMeta641;
modelica_metatype tmpMeta642;
modelica_metatype tmpMeta643;
modelica_metatype tmpMeta644;
modelica_metatype tmpMeta645;
modelica_metatype tmpMeta646;
modelica_metatype tmpMeta647;
modelica_metatype tmpMeta648;
if (25 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT488), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta640 = MMC_CAR(tmp4_2);
tmpMeta641 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta640,12,1) == 0) goto tmp3_end;
tmpMeta642 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta640), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta642,0,1) == 0) goto tmp3_end;
tmpMeta643 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta642), 2));
if (listEmpty(tmpMeta641)) goto tmp3_end;
tmpMeta644 = MMC_CAR(tmpMeta641);
tmpMeta645 = MMC_CDR(tmpMeta641);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta644,12,1) == 0) goto tmp3_end;
tmpMeta646 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta644), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta646,0,1) == 0) goto tmp3_end;
tmpMeta647 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta646), 2));
if (!listEmpty(tmpMeta645)) goto tmp3_end;
_classpath = tmpMeta643;
_path = tmpMeta647;
tmp4 += 11;
tmpMeta648 = mmc_mk_cons(omc_AbsynUtil_pathString(threadData, _path, _OMC_LIT100, 1, 0), mmc_mk_cons(omc_AbsynUtil_pathString(threadData, _classpath, _OMC_LIT100, 1, 0), MMC_REFSTRUCTLIT(mmc_nil)));
omc_Error_addMessage(threadData, _OMC_LIT384, tmpMeta648);
goto goto_2;
goto tmp3_done;
}
case 141: {
modelica_metatype tmpMeta649;
modelica_metatype tmpMeta650;
modelica_metatype tmpMeta651;
modelica_metatype tmpMeta652;
modelica_metatype tmpMeta653;
modelica_metatype tmpMeta654;
if (6 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT489), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta649 = MMC_CAR(tmp4_2);
tmpMeta650 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta649,2,1) == 0) goto tmp3_end;
tmpMeta651 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta649), 2));
if (listEmpty(tmpMeta650)) goto tmp3_end;
tmpMeta652 = MMC_CAR(tmpMeta650);
tmpMeta653 = MMC_CDR(tmpMeta650);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta652,2,1) == 0) goto tmp3_end;
tmpMeta654 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta652), 2));
if (!listEmpty(tmpMeta653)) goto tmp3_end;
_str = tmpMeta651;
_token = tmpMeta654;
tmp4 += 10;
_strs = omc_System_strtok(threadData, _str, _token);
tmpMeta1 = omc_ValuesUtil_makeStringArray(threadData, _strs);
goto tmp3_done;
}
case 142: {
modelica_metatype tmpMeta655;
modelica_metatype tmpMeta656;
modelica_metatype tmpMeta657;
modelica_metatype tmpMeta658;
modelica_metatype tmpMeta659;
modelica_metatype tmpMeta660;
if (11 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT490), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta655 = MMC_CAR(tmp4_2);
tmpMeta656 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta655,2,1) == 0) goto tmp3_end;
tmpMeta657 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta655), 2));
if (listEmpty(tmpMeta656)) goto tmp3_end;
tmpMeta658 = MMC_CAR(tmpMeta656);
tmpMeta659 = MMC_CDR(tmpMeta656);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta658,2,1) == 0) goto tmp3_end;
tmpMeta660 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta658), 2));
if (!listEmpty(tmpMeta659)) goto tmp3_end;
_str = tmpMeta657;
_token = tmpMeta660;
tmp4 += 9;
_strs = omc_Util_stringSplitAtChar(threadData, _str, _token);
tmpMeta1 = omc_ValuesUtil_makeStringArray(threadData, _strs);
goto tmp3_done;
}
case 143: {
modelica_metatype tmpMeta661;
modelica_metatype tmpMeta662;
modelica_metatype tmpMeta663;
modelica_metatype tmpMeta664;
modelica_metatype tmpMeta665;
modelica_metatype tmpMeta666;
modelica_metatype tmpMeta667;
modelica_metatype tmpMeta668;
modelica_metatype tmpMeta669;
modelica_metatype tmpMeta670;
if (13 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT491), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta661 = MMC_CAR(tmp4_2);
tmpMeta662 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta661,2,1) == 0) goto tmp3_end;
tmpMeta663 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta661), 2));
if (listEmpty(tmpMeta662)) goto tmp3_end;
tmpMeta664 = MMC_CAR(tmpMeta662);
tmpMeta665 = MMC_CDR(tmpMeta662);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta664,2,1) == 0) goto tmp3_end;
tmpMeta666 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta664), 2));
if (listEmpty(tmpMeta665)) goto tmp3_end;
tmpMeta667 = MMC_CAR(tmpMeta665);
tmpMeta668 = MMC_CDR(tmpMeta665);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta667,2,1) == 0) goto tmp3_end;
tmpMeta669 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta667), 2));
if (!listEmpty(tmpMeta668)) goto tmp3_end;
_str1 = tmpMeta663;
_str2 = tmpMeta666;
_str3 = tmpMeta669;
tmp4 += 8;
_str = omc_System_stringReplace(threadData, _str1, _str2, _str3);
tmpMeta670 = mmc_mk_box2(5, &Values_Value_STRING__desc, _str);
tmpMeta1 = tmpMeta670;
goto tmp3_done;
}
case 144: {
if (13 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT492), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (!listEmpty(tmp4_2)) goto tmp3_end;
tmp4 += 7;
tmpMeta1 = omc_CevalScript_checkSettings(threadData);
goto tmp3_done;
}
case 145: {
modelica_metatype tmpMeta671;
modelica_metatype tmpMeta672;
modelica_metatype tmpMeta673;
modelica_integer tmp674;
if (4 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT493), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta671 = MMC_CAR(tmp4_2);
tmpMeta672 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta671,3,1) == 0) goto tmp3_end;
tmpMeta673 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta671), 2));
tmp674 = mmc_unbox_integer(tmpMeta673);
if (!listEmpty(tmpMeta672)) goto tmp3_end;
_v = tmpMeta671;
_bval = tmp674;
tmp4 += 6;
omc_Settings_setEcho(threadData, (_bval?((modelica_integer) 1):((modelica_integer) 0)));
tmpMeta1 = _v;
goto tmp3_done;
}
case 146: {
modelica_metatype tmpMeta675;
if (13 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT494), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (!listEmpty(tmp4_2)) goto tmp3_end;
tmp4 += 5;
tmpMeta675 = mmc_mk_box2(3, &Values_Value_INTEGER__desc, mmc_mk_integer(omc_Config_noProc(threadData)));
tmpMeta1 = tmpMeta675;
goto tmp3_done;
}
case 147: {
modelica_metatype tmpMeta676;
modelica_metatype tmpMeta677;
modelica_metatype tmpMeta678;
modelica_metatype tmpMeta679;
if (9 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT495), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta676 = MMC_CAR(tmp4_2);
tmpMeta677 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta676,2,1) == 0) goto tmp3_end;
tmpMeta678 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta676), 2));
if (!listEmpty(tmpMeta677)) goto tmp3_end;
_str = tmpMeta678;
_str = omc_Testsuite_friendlyPath(threadData, _str);
_res = omc_Interactive_evaluate(threadData, omc_Parser_parseexp(threadData, _str), 1);
tmpMeta679 = mmc_mk_box2(5, &Values_Value_STRING__desc, _res);
tmpMeta1 = tmpMeta679;
goto tmp3_done;
}
case 148: {
if (9 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT495), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 3;
tmpMeta1 = _OMC_LIT386;
goto tmp3_done;
}
case 149: {
modelica_metatype tmpMeta680;
modelica_metatype tmpMeta681;
modelica_metatype tmpMeta682;
modelica_integer tmp683;
if (4 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT496), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta680 = MMC_CAR(tmp4_2);
tmpMeta681 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta680,0,1) == 0) goto tmp3_end;
tmpMeta682 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta680), 2));
tmp683 = mmc_unbox_integer(tmpMeta682);
if (!listEmpty(tmpMeta681)) goto tmp3_end;
_i = tmp683;
tmp4 += 2;
omc_System_exit(threadData, _i);
goto goto_2;
goto tmp3_done;
}
case 150: {
modelica_metatype tmpMeta684;
if (13 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT497), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (!listEmpty(tmp4_2)) goto tmp3_end;
tmp4 += 1;
tmpMeta684 = mmc_mk_box2(4, &Values_Value_REAL__desc, mmc_mk_real(omc_System_getMemorySize(threadData)));
tmpMeta1 = tmpMeta684;
goto tmp3_done;
}
case 151: {
modelica_metatype tmpMeta685;
modelica_metatype tmpMeta686;
modelica_metatype tmpMeta687;
modelica_metatype tmpMeta688;
modelica_metatype tmpMeta689;
modelica_metatype tmpMeta690;
modelica_metatype tmpMeta691;
modelica_metatype tmpMeta692;
modelica_metatype tmpMeta693;
modelica_metatype tmpMeta694;
modelica_metatype tmpMeta695;
modelica_integer tmp696;
modelica_metatype tmpMeta697;
modelica_metatype tmpMeta698;
modelica_metatype tmpMeta699;
modelica_integer tmp700;
modelica_metatype tmpMeta701;
modelica_metatype tmpMeta702;
modelica_metatype tmpMeta703;
modelica_integer tmp704;
if (15 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT498), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
if (listEmpty(tmp4_2)) goto tmp3_end;
tmpMeta685 = MMC_CAR(tmp4_2);
tmpMeta686 = MMC_CDR(tmp4_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta685,12,1) == 0) goto tmp3_end;
tmpMeta687 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta685), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta687,0,1) == 0) goto tmp3_end;
tmpMeta688 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta687), 2));
if (listEmpty(tmpMeta686)) goto tmp3_end;
tmpMeta689 = MMC_CAR(tmpMeta686);
tmpMeta690 = MMC_CDR(tmpMeta686);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta689,12,1) == 0) goto tmp3_end;
tmpMeta691 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta689), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta691,0,1) == 0) goto tmp3_end;
tmpMeta692 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta691), 2));
if (listEmpty(tmpMeta690)) goto tmp3_end;
tmpMeta693 = MMC_CAR(tmpMeta690);
tmpMeta694 = MMC_CDR(tmpMeta690);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta693,3,1) == 0) goto tmp3_end;
tmpMeta695 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta693), 2));
tmp696 = mmc_unbox_integer(tmpMeta695);
if (listEmpty(tmpMeta694)) goto tmp3_end;
tmpMeta697 = MMC_CAR(tmpMeta694);
tmpMeta698 = MMC_CDR(tmpMeta694);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta697,3,1) == 0) goto tmp3_end;
tmpMeta699 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta697), 2));
tmp700 = mmc_unbox_integer(tmpMeta699);
if (listEmpty(tmpMeta698)) goto tmp3_end;
tmpMeta701 = MMC_CAR(tmpMeta698);
tmpMeta702 = MMC_CDR(tmpMeta698);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta701,3,1) == 0) goto tmp3_end;
tmpMeta703 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta701), 2));
tmp704 = mmc_unbox_integer(tmpMeta703);
if (!listEmpty(tmpMeta702)) goto tmp3_end;
_path = tmpMeta688;
_parentClass = tmpMeta692;
_qualified = tmp696;
_includePartial = tmp700;
_sort = tmp704;
_paths = omc_InteractiveUtil_getAllSubtypeOf(threadData, _path, _parentClass, omc_SymbolTable_getAbsyn(threadData), _qualified, _includePartial);
_paths = listReverse(_paths);
_paths = (_sort?omc_List_sort(threadData, _paths, boxvar_AbsynUtil_pathGe):_paths);
_vals = omc_List_map(threadData, _paths, boxvar_ValuesUtil_makeCodeTypeName);
tmpMeta1 = omc_ValuesUtil_makeArray(threadData, _vals);
goto tmp3_done;
}
case 152: {
tmpMeta1 = omc_CevalScriptOMSimulator_ceval(threadData, _functionName, _args);
goto tmp3_done;
}
case 153: {
_outCache = omc_CevalScriptBackend_cevalInteractiveFunctions3(threadData, _outCache, _env, _functionName, _args, _msg ,&_v);
tmpMeta1 = _v;
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 < 154) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_outValue = tmpMeta1;
_return: OMC_LABEL_UNUSED
if (out_outValue) { *out_outValue = _outValue; }
return _outCache;
}
DLLExport
modelica_metatype omc_CevalScript_cevalInteractiveFunctions(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inExp, modelica_metatype _msg, modelica_integer _numIter, modelica_metatype *out_outValue)
{
modelica_metatype _outCache = NULL;
modelica_metatype _outValue = NULL;
modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;volatile modelica_metatype tmp4_2;volatile modelica_metatype tmp4_3;
tmp4_1 = _inCache;
tmp4_2 = _inEnv;
tmp4_3 = _inExp;
{
modelica_metatype _cache = NULL;
modelica_metatype _env = NULL;
modelica_metatype _exp = NULL;
modelica_metatype _eLst = NULL;
modelica_metatype _valLst = NULL;
modelica_string _name = NULL;
modelica_real _t1;
modelica_real _t2;
modelica_real _t;
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;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_3,13,3) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,1,1) == 0) goto tmp3_end;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 2));
if (6 != MMC_STRLEN(tmpMeta7) || strcmp(MMC_STRINGDATA(_OMC_LIT499), MMC_STRINGDATA(tmpMeta7)) != 0) goto tmp3_end;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 3));
if (listEmpty(tmpMeta8)) goto tmp3_end;
tmpMeta9 = MMC_CAR(tmpMeta8);
tmpMeta10 = MMC_CDR(tmpMeta8);
if (!listEmpty(tmpMeta10)) goto tmp3_end;
_exp = tmpMeta9;
_cache = tmp4_1;
_env = tmp4_2;
_t1 = omc_System_time(threadData);
_cache = omc_Ceval_ceval(threadData, _cache, _env, _exp, 1, _msg, ((modelica_integer) 1) + _numIter, NULL);
_t2 = omc_System_time(threadData);
_t = _t2 - _t1;
tmpMeta11 = mmc_mk_box2(4, &Values_Value_REAL__desc, mmc_mk_real(_t));
tmpMeta[0+0] = _cache;
tmpMeta[0+1] = tmpMeta11;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
modelica_metatype tmpMeta16;
modelica_integer tmp17;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_3,13,3) == 0) goto tmp3_end;
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta12,1,1) == 0) goto tmp3_end;
tmpMeta13 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta12), 2));
tmpMeta14 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 3));
tmpMeta15 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 4));
tmpMeta16 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta15), 4));
tmp17 = mmc_unbox_integer(tmpMeta16);
if (1 != tmp17) goto tmp3_end;
_name = tmpMeta13;
_eLst = tmpMeta14;
_cache = tmp4_1;
_env = tmp4_2;
_cache = omc_Ceval_cevalList(threadData, _cache, _env, _eLst, 1, _msg, _numIter ,&_valLst);
_valLst = omc_List_map1(threadData, _valLst, boxvar_CevalScript_evalCodeTypeName, _env);
tmpMeta[0+0] = omc_CevalScript_cevalInteractiveFunctions2(threadData, _cache, _env, _name, _valLst, _msg, &tmpMeta[0+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:;
}
}
_outCache = tmpMeta[0+0];
_outValue = tmpMeta[0+1];
_return: OMC_LABEL_UNUSED
if (out_outValue) { *out_outValue = _outValue; }
return _outCache;
}
modelica_metatype boxptr_CevalScript_cevalInteractiveFunctions(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inExp, modelica_metatype _msg, modelica_metatype _numIter, modelica_metatype *out_outValue)
{
modelica_integer tmp1;
modelica_metatype _outCache = NULL;
tmp1 = mmc_unbox_integer(_numIter);
_outCache = omc_CevalScript_cevalInteractiveFunctions(threadData, _inCache, _inEnv, _inExp, _msg, tmp1, out_outValue);
return _outCache;
}
PROTECTED_FUNCTION_STATIC void omc_CevalScript_checkValidVersion(threadData_t *threadData, modelica_metatype _path, modelica_string _version, modelica_metatype _actualVersion, modelica_string _requestOrigin, modelica_metatype _withConversion, modelica_metatype _withoutConversion)
{
modelica_metatype _semverWanted = NULL;
modelica_metatype _semverActual = NULL;
modelica_string _actualVersionStr = NULL;
modelica_string _pathStr = NULL;
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;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_semverWanted = omc_SemanticVersion_parse(threadData, _version, 0);
{
modelica_metatype tmp3_1;
tmp3_1 = _actualVersion;
{
volatile mmc_switch_type tmp3;
int tmp4;
tmp3 = 0;
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));
_actualVersionStr = tmpMeta5;
goto tmp2_done;
}
case 1: {
if (!optionNone(tmp3_1)) goto tmp2_end;
_actualVersionStr = _OMC_LIT52;
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
goto_1:;
MMC_THROW_INTERNAL();
goto tmp2_done;
tmp2_done:;
}
}
;
_pathStr = omc_AbsynUtil_pathString(threadData, _path, _OMC_LIT100, 1, 0);
_semverActual = omc_SemanticVersion_parse(threadData, _actualVersionStr, 0);
if((((modelica_integer) 0) == omc_SemanticVersion_compare(threadData, _semverWanted, _semverActual, 0, 0)))
{
goto _return;
}
if((!(omc_SemanticVersion_isSemVer(threadData, _semverActual) && omc_SemanticVersion_isSemVer(threadData, _semverWanted))))
{
tmpMeta6 = mmc_mk_cons(_pathStr, mmc_mk_cons(_version, mmc_mk_cons(_actualVersionStr, MMC_REFSTRUCTLIT(mmc_nil))));
omc_Error_addMessage(threadData, _OMC_LIT503, tmpMeta6);
goto _return;
}
{
modelica_metatype _ver;
for (tmpMeta7 = _withoutConversion; !listEmpty(tmpMeta7); tmpMeta7=MMC_CDR(tmpMeta7))
{
_ver = MMC_CAR(tmpMeta7);
if((((modelica_integer) 0) == omc_SemanticVersion_compare(threadData, _semverWanted, omc_SemanticVersion_parse(threadData, _ver, 0), 0, 0)))
{
tmpMeta8 = mmc_mk_cons(_requestOrigin, mmc_mk_cons(_pathStr, mmc_mk_cons(_version, mmc_mk_cons(_actualVersionStr, MMC_REFSTRUCTLIT(mmc_nil)))));
omc_Error_addMessage(threadData, _OMC_LIT506, tmpMeta8);
goto _return;
}
}
}
{
modelica_metatype _ver;
for (tmpMeta10 = _withConversion; !listEmpty(tmpMeta10); tmpMeta10=MMC_CDR(tmpMeta10))
{
_ver = MMC_CAR(tmpMeta10);
if((((modelica_integer) 0) == omc_SemanticVersion_compare(threadData, _semverWanted, omc_SemanticVersion_parse(threadData, _ver, 0), 0, 0)))
{
tmpMeta11 = mmc_mk_cons(_requestOrigin, mmc_mk_cons(_pathStr, mmc_mk_cons(_version, mmc_mk_cons(_actualVersionStr, MMC_REFSTRUCTLIT(mmc_nil)))));
omc_Error_addMessage(threadData, _OMC_LIT509, tmpMeta11);
goto _return;
}
}
}
if((omc_SemanticVersion_compare(threadData, _semverWanted, _semverActual, 1, 0) > ((modelica_integer) 0)))
{
tmpMeta13 = mmc_mk_cons(_pathStr, mmc_mk_cons(_version, mmc_mk_cons(_actualVersionStr, MMC_REFSTRUCTLIT(mmc_nil))));
omc_Error_addMessage(threadData, _OMC_LIT515, tmpMeta13);
}
else
{
tmpMeta14 = mmc_mk_cons(_pathStr, mmc_mk_cons(_version, mmc_mk_cons(_actualVersionStr, MMC_REFSTRUCTLIT(mmc_nil))));
omc_Error_addMessage(threadData, _OMC_LIT512, tmpMeta14);
}
_return: OMC_LABEL_UNUSED
return;
}
PROTECTED_FUNCTION_STATIC modelica_boolean omc_CevalScript_checkModelLoaded(threadData_t *threadData, modelica_metatype _tpl, modelica_metatype _p, modelica_boolean _forceLoad, modelica_metatype _failNonLoad)
{
modelica_boolean _loaded;
modelica_boolean tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;volatile modelica_boolean tmp4_2;volatile modelica_metatype tmp4_3;
tmp4_1 = _tpl;
tmp4_2 = _forceLoad;
tmp4_3 = _failNonLoad;
{
modelica_metatype _cdef = NULL;
modelica_string _str1 = NULL;
modelica_string _str2 = NULL;
modelica_string _requestOrigin = NULL;
modelica_metatype _ostr2 = NULL;
modelica_metatype _path = NULL;
modelica_metatype _withoutConversion = NULL;
modelica_metatype _withConversion = 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 (1 != tmp4_2) goto tmp3_end;
tmp4 += 1;
tmp1 = 0;
goto tmp3_done;
}
case 1: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
if (0 != tmp4_2) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
if (listEmpty(tmpMeta8)) goto tmp3_end;
tmpMeta9 = MMC_CAR(tmpMeta8);
tmpMeta10 = MMC_CDR(tmpMeta8);
_path = tmpMeta6;
_requestOrigin = tmpMeta7;
_str1 = tmpMeta9;
_cdef = omc_InteractiveUtil_getPathedClassInProgram(threadData, _path, _p, 0, 0);
_ostr2 = omc_AbsynUtil_getNamedAnnotationInClass(threadData, _cdef, _OMC_LIT272, boxvar_Interactive_getAnnotationStringValueOrFail);
_withoutConversion = omc_Interactive_getConversionAnnotation(threadData, _cdef ,&_withConversion);
omc_CevalScript_checkValidVersion(threadData, _path, _str1, _ostr2, _requestOrigin, _withConversion, _withoutConversion);
tmp1 = 1;
goto tmp3_done;
}
case 2: {
if (!optionNone(tmp4_3)) goto tmp3_end;
tmp4 += 1;
tmp1 = 0;
goto tmp3_done;
}
case 3: {
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
if (optionNone(tmp4_3)) goto tmp3_end;
tmpMeta11 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 1));
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1));
_str2 = tmpMeta11;
_path = tmpMeta12;
_str1 = omc_AbsynUtil_pathString(threadData, _path, _OMC_LIT100, 1, 0);
tmpMeta13 = mmc_mk_cons(_str1, mmc_mk_cons(_str2, MMC_REFSTRUCTLIT(mmc_nil)));
omc_Error_addMessage(threadData, _OMC_LIT518, tmpMeta13);
tmp1 = 0;
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:;
}
}
_loaded = tmp1;
_return: OMC_LABEL_UNUSED
return _loaded;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_checkModelLoaded(threadData_t *threadData, modelica_metatype _tpl, modelica_metatype _p, modelica_metatype _forceLoad, modelica_metatype _failNonLoad)
{
modelica_integer tmp1;
modelica_boolean _loaded;
modelica_metatype out_loaded;
tmp1 = mmc_unbox_integer(_forceLoad);
_loaded = omc_CevalScript_checkModelLoaded(threadData, _tpl, _p, tmp1, _failNonLoad);
out_loaded = mmc_mk_icon(_loaded);
return out_loaded;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_loadModel1(threadData_t *threadData, modelica_metatype _modelToLoad, modelica_string _modelicaPath, modelica_boolean _forceLoad, modelica_boolean _notifyLoad, modelica_boolean _checkUses, modelica_boolean _requireExactVersion, modelica_boolean _encrypted, modelica_string _pathToFile, modelica_metatype __omcQ_24in_5Fprogram, modelica_boolean *out_success)
{
modelica_metatype _program = NULL;
modelica_boolean _success;
modelica_metatype _modelsToLoad = NULL;
modelica_boolean _onlyCheckFirstModelicaPath;
modelica_metatype _path = NULL;
modelica_metatype _versionsLst = NULL;
modelica_string _pathStr = NULL;
modelica_string _versions = NULL;
modelica_string _version = NULL;
modelica_string _thisModelicaPath = NULL;
modelica_string _dir = NULL;
modelica_metatype _pnew = NULL;
modelica_metatype _msgTokens = NULL;
modelica_metatype _cl = NULL;
modelica_metatype tmpMeta1;
modelica_metatype tmpMeta2;
modelica_metatype tmpMeta3;
modelica_metatype tmpMeta4;
modelica_integer tmp5;
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_program = __omcQ_24in_5Fprogram;
_success = 1;
tmpMeta1 = _modelToLoad;
tmpMeta2 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta1), 1));
tmpMeta3 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta1), 3));
tmpMeta4 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta1), 4));
tmp5 = mmc_unbox_integer(tmpMeta4);
_path = tmpMeta2;
_versionsLst = tmpMeta3;
_onlyCheckFirstModelicaPath = tmp5;
if(_onlyCheckFirstModelicaPath)
{
tmpMeta6 = omc_System_strtok(threadData, _modelicaPath, _OMC_LIT2);
if (listEmpty(tmpMeta6)) MMC_THROW_INTERNAL();
tmpMeta7 = MMC_CAR(tmpMeta6);
tmpMeta8 = MMC_CDR(tmpMeta6);
_thisModelicaPath = tmpMeta7;
}
else
{
_thisModelicaPath = _modelicaPath;
}
{
{
volatile mmc_switch_type tmp11;
int tmp12;
tmp11 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp10_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp11 < 2; tmp11++) {
switch (MMC_SWITCH_CAST(tmp11)) {
case 0: {
modelica_metatype tmpMeta13;
modelica_metatype tmpMeta14;
modelica_metatype tmpMeta15;
if(omc_CevalScript_checkModelLoaded(threadData, _modelToLoad, _program, _forceLoad, mmc_mk_none()))
{
_pnew = _OMC_LIT519;
_version = _OMC_LIT52;
}
else
{
if((stringEqual(_pathToFile, _OMC_LIT52)))
{
_pnew = omc_ClassLoader_loadClass(threadData, _path, _versionsLst, _thisModelicaPath, mmc_mk_none(), _requireExactVersion, _encrypted);
}
else
{
_dir = omc_System_dirname(threadData, _pathToFile);
_cl = omc_ClassLoader_loadClassFromMp(threadData, omc_AbsynUtil_pathFirstIdent(threadData, _path), omc_System_dirname(threadData, _dir), omc_System_basename(threadData, _dir), 1, mmc_mk_none(), _encrypted);
if(isSome(_cl))
{
tmpMeta13 = mmc_mk_cons(omc_Util_getOption(threadData, _cl), MMC_REFSTRUCTLIT(mmc_nil));
tmpMeta14 = mmc_mk_box3(3, &Absyn_Program_PROGRAM__desc, tmpMeta13, _OMC_LIT71);
_pnew = tmpMeta14;
}
else
{
_pnew = _OMC_LIT519;
}
}
if((_notifyLoad && (!_forceLoad)))
{
_version = omc_CevalScript_getPackageVersion(threadData, _path, _pnew);
tmpMeta15 = mmc_mk_cons(omc_AbsynUtil_pathString(threadData, _path, _OMC_LIT100, 1, 0), mmc_mk_cons(_version, MMC_REFSTRUCTLIT(mmc_nil)));
_msgTokens = tmpMeta15;
omc_Error_addMessage(threadData, _OMC_LIT522, _msgTokens);
omc_System_loadModelCallBack(threadData, omc_AbsynUtil_pathFirstIdent(threadData, _path));
}
}
_program = omc_InteractiveUtil_updateProgram(threadData, _pnew, _program, 0);
if(_checkUses)
{
_modelsToLoad = omc_Interactive_getUsesAnnotationOrDefault(threadData, _pnew, _requireExactVersion);
_program = omc_CevalScript_loadModel(threadData, _modelsToLoad, _modelicaPath, _program, 0, _notifyLoad, _checkUses, _requireExactVersion, 0, _OMC_LIT52 ,&_success);
}
goto tmp10_done;
}
case 1: {
modelica_metatype tmpMeta16;
_pathStr = omc_AbsynUtil_pathString(threadData, _path, _OMC_LIT100, 1, 0);
_versions = stringDelimitList(_versionsLst, _OMC_LIT127);
tmpMeta16 = mmc_mk_cons(_pathStr, mmc_mk_cons(_versions, mmc_mk_cons(_thisModelicaPath, MMC_REFSTRUCTLIT(mmc_nil))));
_msgTokens = tmpMeta16;
if(_forceLoad)
{
omc_Error_addMessage(threadData, _OMC_LIT528, _msgTokens);
_success = 0;
}
else
{
omc_Error_addMessage(threadData, _OMC_LIT525, _msgTokens);
}
goto tmp10_done;
}
}
goto tmp10_end;
tmp10_end: ;
}
goto goto_9;
tmp10_done:
(void)tmp11;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp10_done2;
goto_9:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp11 < 2) {
goto tmp10_top;
}
MMC_THROW_INTERNAL();
tmp10_done2:;
}
}
;
_return: OMC_LABEL_UNUSED
if (out_success) { *out_success = _success; }
return _program;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_loadModel1(threadData_t *threadData, modelica_metatype _modelToLoad, modelica_metatype _modelicaPath, modelica_metatype _forceLoad, modelica_metatype _notifyLoad, modelica_metatype _checkUses, modelica_metatype _requireExactVersion, modelica_metatype _encrypted, modelica_metatype _pathToFile, modelica_metatype __omcQ_24in_5Fprogram, modelica_metatype *out_success)
{
modelica_integer tmp1;
modelica_integer tmp2;
modelica_integer tmp3;
modelica_integer tmp4;
modelica_integer tmp5;
modelica_boolean _success;
modelica_metatype _program = NULL;
tmp1 = mmc_unbox_integer(_forceLoad);
tmp2 = mmc_unbox_integer(_notifyLoad);
tmp3 = mmc_unbox_integer(_checkUses);
tmp4 = mmc_unbox_integer(_requireExactVersion);
tmp5 = mmc_unbox_integer(_encrypted);
_program = omc_CevalScript_loadModel1(threadData, _modelToLoad, _modelicaPath, tmp1, tmp2, tmp3, tmp4, tmp5, _pathToFile, __omcQ_24in_5Fprogram, &_success);
if (out_success) { *out_success = mmc_mk_icon(_success); }
return _program;
}
DLLExport
modelica_metatype omc_CevalScript_loadModel(threadData_t *threadData, modelica_metatype _imodelsToLoad, modelica_string _modelicaPath, modelica_metatype _ip, modelica_boolean _forceLoad, modelica_boolean _notifyLoad, modelica_boolean _checkUses, modelica_boolean _requireExactVersion, modelica_boolean _encrypted, modelica_string _pathToFile, modelica_boolean *out_success)
{
modelica_metatype _pnew = NULL;
modelica_boolean _success;
modelica_boolean _b;
modelica_metatype tmpMeta1;
modelica_metatype tmpMeta2;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_pnew = _ip;
_success = 1;
{
modelica_metatype _m;
for (tmpMeta1 = _imodelsToLoad; !listEmpty(tmpMeta1); tmpMeta1=MMC_CDR(tmpMeta1))
{
_m = MMC_CAR(tmpMeta1);
_pnew = omc_CevalScript_loadModel1(threadData, _m, _modelicaPath, _forceLoad, _notifyLoad, _checkUses, _requireExactVersion, _encrypted, _pathToFile, _pnew ,&_b);
_success = (_b && _success);
}
}
_return: OMC_LABEL_UNUSED
if (out_success) { *out_success = _success; }
return _pnew;
}
modelica_metatype boxptr_CevalScript_loadModel(threadData_t *threadData, modelica_metatype _imodelsToLoad, modelica_metatype _modelicaPath, modelica_metatype _ip, modelica_metatype _forceLoad, modelica_metatype _notifyLoad, modelica_metatype _checkUses, modelica_metatype _requireExactVersion, modelica_metatype _encrypted, modelica_metatype _pathToFile, modelica_metatype *out_success)
{
modelica_integer tmp1;
modelica_integer tmp2;
modelica_integer tmp3;
modelica_integer tmp4;
modelica_integer tmp5;
modelica_boolean _success;
modelica_metatype _pnew = NULL;
tmp1 = mmc_unbox_integer(_forceLoad);
tmp2 = mmc_unbox_integer(_notifyLoad);
tmp3 = mmc_unbox_integer(_checkUses);
tmp4 = mmc_unbox_integer(_requireExactVersion);
tmp5 = mmc_unbox_integer(_encrypted);
_pnew = omc_CevalScript_loadModel(threadData, _imodelsToLoad, _modelicaPath, _ip, tmp1, tmp2, tmp3, tmp4, tmp5, _pathToFile, &_success);
if (out_success) { *out_success = mmc_mk_icon(_success); }
return _pnew;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_checkUsesAndUpdateProgram(threadData_t *threadData, modelica_metatype _newp, modelica_metatype __omcQ_24in_5Fp, modelica_boolean _checkUses, modelica_string _modelicaPath, modelica_boolean _notifyLoad, modelica_boolean _requireExactVersion)
{
modelica_metatype _p = NULL;
modelica_metatype _modelsToLoad = NULL;
modelica_metatype tmpMeta1;
modelica_boolean tmp2;
modelica_metatype tmpMeta3;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_p = __omcQ_24in_5Fp;
tmp2 = (modelica_boolean)_checkUses;
if(tmp2)
{
tmpMeta3 = omc_Interactive_getUsesAnnotationOrDefault(threadData, _newp, _requireExactVersion);
}
else
{
tmpMeta1 = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta3 = tmpMeta1;
}
_modelsToLoad = tmpMeta3;
_p = omc_InteractiveUtil_updateProgram(threadData, _newp, _p, 0);
_p = omc_CevalScript_loadModel(threadData, _modelsToLoad, _modelicaPath, _p, 0, _notifyLoad, _checkUses, _requireExactVersion, 0, _OMC_LIT52, NULL);
_return: OMC_LABEL_UNUSED
return _p;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_checkUsesAndUpdateProgram(threadData_t *threadData, modelica_metatype _newp, modelica_metatype __omcQ_24in_5Fp, modelica_metatype _checkUses, modelica_metatype _modelicaPath, modelica_metatype _notifyLoad, modelica_metatype _requireExactVersion)
{
modelica_integer tmp1;
modelica_integer tmp2;
modelica_integer tmp3;
modelica_metatype _p = NULL;
tmp1 = mmc_unbox_integer(_checkUses);
tmp2 = mmc_unbox_integer(_notifyLoad);
tmp3 = mmc_unbox_integer(_requireExactVersion);
_p = omc_CevalScript_checkUsesAndUpdateProgram(threadData, _newp, __omcQ_24in_5Fp, tmp1, _modelicaPath, tmp2, tmp3);
return _p;
}
PROTECTED_FUNCTION_STATIC modelica_metatype omc_CevalScript_loadFile(threadData_t *threadData, modelica_string _name, modelica_string _encoding, modelica_metatype _p, modelica_boolean _checkUses, modelica_boolean _notifyLoad, modelica_boolean _requireExactVersion)
{
modelica_metatype _outProgram = NULL;
modelica_string _dir = NULL;
modelica_string _filename = NULL;
modelica_string _cname = NULL;
modelica_string _prio = NULL;
modelica_string _mp = NULL;
modelica_metatype _rest = NULL;
modelica_boolean tmp1;
modelica_metatype tmpMeta2;
modelica_metatype tmpMeta3;
modelica_metatype tmpMeta4;
modelica_metatype tmpMeta5;
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_boolean tmp8;
modelica_metatype tmpMeta9;
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmp1 = omc_System_regularFileExists(threadData, _name);
if (1 != tmp1) MMC_THROW_INTERNAL();
_dir = omc_Util_getAbsoluteDirectoryAndFile(threadData, _name ,&_filename);
if(((stringEqual(_filename, _OMC_LIT532)) || (stringEqual(_filename, _OMC_LIT531))))
{
tmpMeta2 = omc_System_strtok(threadData, omc_List_last(threadData, omc_System_strtok(threadData, _dir, _OMC_LIT0)), _OMC_LIT88);
if (listEmpty(tmpMeta2)) MMC_THROW_INTERNAL();
tmpMeta3 = MMC_CAR(tmpMeta2);
tmpMeta4 = MMC_CDR(tmpMeta2);
_cname = tmpMeta3;
_rest = tmpMeta4;
_prio = stringDelimitList(_rest, _OMC_LIT88);
tmpMeta5 = stringAppend(_dir,_OMC_LIT529);
tmpMeta6 = stringAppend(omc_System_realpath(threadData, tmpMeta5),_OMC_LIT2);
tmpMeta7 = stringAppend(tmpMeta6,omc_Settings_getModelicaPath(threadData, omc_Testsuite_isRunning(threadData)));
_mp = tmpMeta7;
tmpMeta10 = mmc_mk_box2(4, &Absyn_Path_IDENT__desc, _cname);
tmpMeta11 = mmc_mk_cons(_prio, MMC_REFSTRUCTLIT(mmc_nil));
tmpMeta12 = mmc_mk_box4(0, tmpMeta10, _OMC_LIT530, tmpMeta11, mmc_mk_boolean(1));
tmpMeta9 = mmc_mk_cons(tmpMeta12, MMC_REFSTRUCTLIT(mmc_nil));
tmpMeta13 = omc_CevalScript_loadModel(threadData, tmpMeta9, _mp, _p, 1, _notifyLoad, _checkUses, _requireExactVersion, (stringEqual(_filename, _OMC_LIT531)), omc_System_realpath(threadData, _name), &tmp8);
_outProgram = tmpMeta13;
if (1 != tmp8) MMC_THROW_INTERNAL();
goto _return;
}
_outProgram = omc_Parser_parse(threadData, _name, _encoding, _OMC_LIT52, mmc_mk_none());
omc_ClassLoader_checkOnLoadMessage(threadData, _outProgram);
_outProgram = omc_CevalScript_checkUsesAndUpdateProgram(threadData, _outProgram, _p, _checkUses, omc_Settings_getModelicaPath(threadData, omc_Testsuite_isRunning(threadData)), _notifyLoad, _requireExactVersion);
_return: OMC_LABEL_UNUSED
return _outProgram;
}
PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_CevalScript_loadFile(threadData_t *threadData, modelica_metatype _name, modelica_metatype _encoding, modelica_metatype _p, modelica_metatype _checkUses, modelica_metatype _notifyLoad, modelica_metatype _requireExactVersion)
{
modelica_integer tmp1;
modelica_integer tmp2;
modelica_integer tmp3;
modelica_metatype _outProgram = NULL;
tmp1 = mmc_unbox_integer(_checkUses);
tmp2 = mmc_unbox_integer(_notifyLoad);
tmp3 = mmc_unbox_integer(_requireExactVersion);
_outProgram = omc_CevalScript_loadFile(threadData, _name, _encoding, _p, tmp1, tmp2, tmp3);
return _outProgram;
}
DLLExport
void omc_CevalScript_compileModel(threadData_t *threadData, modelica_string _fileprefix, modelica_metatype _libs, modelica_string _workingDir, modelica_metatype _makeVars)
{
modelica_string _omhome = NULL;
modelica_string _omhome_1 = NULL;
modelica_string _pd = NULL;
modelica_string _cdWorkingDir = NULL;
modelica_string _setMakeVars = NULL;
modelica_string _libsfilename = NULL;
modelica_string _libs_str = NULL;
modelica_string _s_call = NULL;
modelica_string _filename = NULL;
modelica_string _winCompileMode = NULL;
modelica_string _workDir = NULL;
modelica_metatype tmpMeta1;
modelica_boolean tmp2;
modelica_string tmp3;
modelica_string _linkType = NULL;
modelica_string _fileDLL = NULL;
modelica_metatype tmpMeta4;
modelica_metatype tmpMeta5;
modelica_string _fileEXE = NULL;
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_string _fileLOG = NULL;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
modelica_integer _numParallel;
modelica_integer _res;
modelica_boolean _isWindows;
modelica_metatype _makeVarsNoBinding = NULL;
modelica_metatype tmpMeta10;
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
modelica_metatype tmpMeta13;
modelica_string tmp14;
modelica_metatype tmpMeta19;
modelica_metatype tmpMeta20;
modelica_boolean tmp21;
modelica_string tmp22;
modelica_metatype tmpMeta23;
modelica_metatype tmpMeta24;
modelica_metatype tmpMeta25;
modelica_boolean tmp26;
modelica_string tmp27;
modelica_string tmp28;
modelica_metatype tmpMeta32;
modelica_metatype tmpMeta33;
modelica_integer tmp34;
modelica_integer tmp35;
modelica_integer tmp36;
modelica_metatype tmpMeta37;
modelica_metatype tmpMeta38;
modelica_metatype tmpMeta39;
modelica_metatype tmpMeta40;
modelica_metatype tmpMeta41;
modelica_metatype tmpMeta42;
modelica_metatype tmpMeta43;
modelica_metatype tmpMeta44;
modelica_metatype tmpMeta45;
modelica_metatype tmpMeta46;
modelica_metatype tmpMeta47;
modelica_metatype tmpMeta48;
modelica_metatype tmpMeta49;
modelica_metatype tmpMeta50;
modelica_metatype tmpMeta51;
modelica_metatype tmpMeta52;
modelica_metatype tmpMeta53;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_omhome = omc_Settings_getInstallationDirectoryPath(threadData);
_omhome_1 = omc_System_stringReplace(threadData, _omhome, _OMC_LIT98, _OMC_LIT52);
_pd = _OMC_LIT0;
tmp2 = (modelica_boolean)(stringEqual(_workingDir, _OMC_LIT52));
if(tmp2)
{
tmp3 = _OMC_LIT52;
}
else
{
tmpMeta1 = stringAppend(_workingDir,_pd);
tmp3 = tmpMeta1;
}
_workDir = tmp3;
_linkType = _OMC_LIT533;
tmpMeta4 = stringAppend(_workDir,_fileprefix);
tmpMeta5 = stringAppend(tmpMeta4,_OMC_LIT52);
_fileDLL = tmpMeta5;
tmpMeta6 = stringAppend(_workDir,_fileprefix);
tmpMeta7 = stringAppend(tmpMeta6,_OMC_LIT52);
_fileEXE = tmpMeta7;
tmpMeta8 = stringAppend(_workDir,_fileprefix);
tmpMeta9 = stringAppend(tmpMeta8,_OMC_LIT534);
_fileLOG = tmpMeta9;
_isWindows = 0;
tmpMeta10 = stringAppend(_workDir,_fileprefix);
tmpMeta11 = stringAppend(tmpMeta10,_OMC_LIT535);
_libsfilename = tmpMeta11;
_libs_str = stringDelimitList(_libs, _OMC_LIT88);
_makeVarsNoBinding = _makeVars;
omc_System_writeFile(threadData, _libsfilename, _libs_str);
if(_isWindows)
{
tmpMeta12 = stringAppend(_OMC_LIT540,omc_System_stringReplace(threadData, _omhome_1, _OMC_LIT0, _OMC_LIT541));
tmpMeta13 = stringAppend(tmpMeta12,_OMC_LIT542);
_omhome = tmpMeta13;
{
modelica_string __omcQ_24tmpVar15;
modelica_metatype tmpMeta15;
modelica_metatype tmpMeta16;
modelica_string __omcQ_24tmpVar14;
modelica_metatype tmpMeta17;
modelica_integer tmp18;
modelica_metatype _var_loopVar = 0;
modelica_metatype _var;
_var_loopVar = _makeVarsNoBinding;
__omcQ_24tmpVar15 = (modelica_string) mmc_emptystring;
while(1) {
tmp18 = 1;
if (!listEmpty(_var_loopVar)) {
_var = MMC_CAR(_var_loopVar);
_var_loopVar = MMC_CDR(_var_loopVar);
tmp18--;
}
if (tmp18 == 0) {
tmpMeta15 = stringAppend(_OMC_LIT543,_var);
tmpMeta16 = stringAppend(tmpMeta15,_OMC_LIT542);
__omcQ_24tmpVar14 = tmpMeta16;
tmpMeta17 = stringAppend(__omcQ_24tmpVar15,__omcQ_24tmpVar14);
__omcQ_24tmpVar15 = tmpMeta17;
} else if (tmp18 == 1) {
break;
} else {
MMC_THROW_INTERNAL();
}
}
tmp14 = __omcQ_24tmpVar15;
}
_setMakeVars = tmp14;
tmp21 = (modelica_boolean)(stringLength(_workingDir) == ((modelica_integer) 0));
if(tmp21)
{
tmp22 = _OMC_LIT52;
}
else
{
tmpMeta19 = stringAppend(_OMC_LIT544,_workingDir);
tmpMeta20 = stringAppend(tmpMeta19,_OMC_LIT545);
tmp22 = tmpMeta20;
}
_cdWorkingDir = tmp22;
_winCompileMode = (omc_Testsuite_isRunning(threadData)?_OMC_LIT546:_OMC_LIT547);
if((omc_Flags_getConfigEnum(threadData, _OMC_LIT561) == ((modelica_integer) 1)))
{
_linkType = _OMC_LIT550;
}
else
{
if((omc_Flags_getConfigEnum(threadData, _OMC_LIT561) == ((modelica_integer) 2)))
{
_linkType = _OMC_LIT533;
}
}
_linkType = (omc_Testsuite_isRunning(threadData)?_OMC_LIT533:_linkType);
tmpMeta23 = mmc_mk_cons(_omhome, mmc_mk_cons(_cdWorkingDir, mmc_mk_cons(_setMakeVars, mmc_mk_cons(_OMC_LIT98, mmc_mk_cons(_omhome_1, mmc_mk_cons(_pd, mmc_mk_cons(_OMC_LIT562, mmc_mk_cons(_pd, mmc_mk_cons(_OMC_LIT563, mmc_mk_cons(_pd, mmc_mk_cons(_OMC_LIT564, mmc_mk_cons(_pd, mmc_mk_cons(_OMC_LIT565, mmc_mk_cons(_fileprefix, mmc_mk_cons(_OMC_LIT88, mmc_mk_cons(omc_Config_simulationCodeTarget(threadData), mmc_mk_cons(_OMC_LIT88, mmc_mk_cons(omc_System_openModelicaPlatform(threadData), mmc_mk_cons(_OMC_LIT88, mmc_mk_cons(_winCompileMode, mmc_mk_cons(_OMC_LIT88, mmc_mk_cons(_linkType, MMC_REFSTRUCTLIT(mmc_nil)))))))))))))))))))))));
_s_call = stringAppendList(tmpMeta23);
}
else
{
_numParallel = (omc_Testsuite_isRunning(threadData)?((modelica_integer) 1):omc_Config_noProc(threadData));
tmp26 = (modelica_boolean)(stringLength(_workingDir) == ((modelica_integer) 0));
if(tmp26)
{
tmp27 = _OMC_LIT52;
}
else
{
tmpMeta24 = stringAppend(_OMC_LIT536,_workingDir);
tmpMeta25 = stringAppend(tmpMeta24,_OMC_LIT98);
tmp27 = tmpMeta25;
}
_cdWorkingDir = tmp27;
{
modelica_string __omcQ_24tmpVar17;
modelica_metatype tmpMeta29;
modelica_string __omcQ_24tmpVar16;
modelica_metatype tmpMeta30;
modelica_integer tmp31;
modelica_metatype _var_loopVar = 0;
modelica_metatype _var;
_var_loopVar = _makeVarsNoBinding;
__omcQ_24tmpVar17 = (modelica_string) mmc_emptystring;
while(1) {
tmp31 = 1;
if (!listEmpty(_var_loopVar)) {
_var = MMC_CAR(_var_loopVar);
_var_loopVar = MMC_CDR(_var_loopVar);
tmp31--;
}
if (tmp31 == 0) {
tmpMeta29 = stringAppend(_OMC_LIT88,_var);
__omcQ_24tmpVar16 = tmpMeta29;
tmpMeta30 = stringAppend(__omcQ_24tmpVar17,__omcQ_24tmpVar16);
__omcQ_24tmpVar17 = tmpMeta30;
} else if (tmp31 == 1) {
break;
} else {
MMC_THROW_INTERNAL();
}
}
tmp28 = __omcQ_24tmpVar17;
}
_setMakeVars = tmp28;
tmpMeta32 = mmc_mk_cons(_OMC_LIT537, mmc_mk_cons(intString(_numParallel), mmc_mk_cons(_cdWorkingDir, mmc_mk_cons(_OMC_LIT538, mmc_mk_cons(_fileprefix, mmc_mk_cons(_OMC_LIT539, mmc_mk_cons(_setMakeVars, MMC_REFSTRUCTLIT(mmc_nil))))))));
_s_call = stringAppendList(tmpMeta32);
}
if(omc_Flags_isSet(threadData, _OMC_LIT171))
{
tmpMeta33 = stringAppend(_OMC_LIT566,_s_call);
omc_Debug_traceln(threadData, tmpMeta33);
}
if(omc_System_regularFileExists(threadData, _fileEXE))
{
tmp34 = omc_System_removeFile(threadData, _fileEXE);
if (0 != tmp34) MMC_THROW_INTERNAL();
}
if(omc_System_regularFileExists(threadData, _fileDLL))
{
tmp35 = omc_System_removeFile(threadData, _fileDLL);
if (0 != tmp35) MMC_THROW_INTERNAL();
}
if(omc_System_regularFileExists(threadData, _fileLOG))
{
tmp36 = omc_System_removeFile(threadData, _fileLOG);
if (0 != tmp36) MMC_THROW_INTERNAL();
}
if(omc_Testsuite_isRunning(threadData))
{
tmpMeta37 = stringAppend(_fileEXE,_OMC_LIT14);
tmpMeta38 = stringAppend(tmpMeta37,_fileDLL);
tmpMeta39 = stringAppend(tmpMeta38,_OMC_LIT14);
tmpMeta40 = stringAppend(tmpMeta39,_fileLOG);
tmpMeta41 = stringAppend(tmpMeta40,_OMC_LIT14);
tmpMeta42 = stringAppend(tmpMeta41,_fileprefix);
tmpMeta43 = stringAppend(tmpMeta42,_OMC_LIT567);
tmpMeta44 = stringAppend(tmpMeta43,_fileprefix);
tmpMeta45 = stringAppend(tmpMeta44,_OMC_LIT568);
tmpMeta46 = stringAppend(tmpMeta45,_fileprefix);
tmpMeta47 = stringAppend(tmpMeta46,_OMC_LIT569);
tmpMeta48 = stringAppend(tmpMeta47,_fileprefix);
tmpMeta49 = stringAppend(tmpMeta48,_OMC_LIT570);
omc_System_appendFile(threadData, omc_Testsuite_getTempFilesFile(threadData), tmpMeta49);
}
if((omc_System_systemCall(threadData, _s_call, (_isWindows?_OMC_LIT52:_fileLOG)) != ((modelica_integer) 0)))
{
if(omc_System_regularFileExists(threadData, _fileLOG))
{
tmpMeta50 = mmc_mk_cons(omc_System_readFile(threadData, _fileLOG), MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addMessage(threadData, _OMC_LIT574, tmpMeta50);
}
else
{
if(_isWindows)
{
tmpMeta51 = mmc_mk_cons(_omhome_1, mmc_mk_cons(_pd, mmc_mk_cons(_OMC_LIT562, mmc_mk_cons(_pd, mmc_mk_cons(_OMC_LIT563, mmc_mk_cons(_pd, mmc_mk_cons(_OMC_LIT564, mmc_mk_cons(_pd, mmc_mk_cons(_OMC_LIT571, MMC_REFSTRUCTLIT(mmc_nil))))))))));
_s_call = stringAppendList(tmpMeta51);
if((!omc_System_regularFileExists(threadData, _s_call)))
{
tmpMeta53 = mmc_mk_cons(_OMC_LIT575, mmc_mk_cons(_s_call, mmc_mk_cons(_OMC_LIT576, MMC_REFSTRUCTLIT(mmc_nil))));
tmpMeta52 = mmc_mk_cons(stringAppendList(tmpMeta53), MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addMessage(threadData, _OMC_LIT574, tmpMeta52);
}
}
}
if(omc_Flags_isSet(threadData, _OMC_LIT171))
{
omc_Debug_trace(threadData, _OMC_LIT577);
}
MMC_THROW_INTERNAL();
}
if(omc_Flags_isSet(threadData, _OMC_LIT171))
{
omc_Debug_trace(threadData, _OMC_LIT578);
}
_return: OMC_LABEL_UNUSED
return;
}
DLLExport
modelica_boolean omc_CevalScript_isCompleteFunction(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inFuncPath)
{
modelica_boolean _isComplete;
modelica_boolean tmp1 = 0;
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;volatile modelica_metatype tmp4_2;volatile modelica_metatype tmp4_3;
tmp4_1 = _inCache;
tmp4_2 = _inEnv;
tmp4_3 = _inFuncPath;
{
modelica_metatype _cache = NULL;
modelica_metatype _env = NULL;
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 < 4; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_metatype tmpMeta6;
modelica_metatype tmpMeta7;
modelica_metatype tmpMeta8;
modelica_metatype tmpMeta9;
_cache = tmp4_1;
_env = tmp4_2;
_fpath = tmp4_3;
omc_Lookup_lookupClass(threadData, _cache, _env, _fpath, mmc_mk_none(), &tmpMeta6, NULL);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta6,2,8) == 0) goto goto_2;
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta6), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta7,0,8) == 0) goto goto_2;
tmpMeta8 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta7), 9));
if (optionNone(tmpMeta8)) goto goto_2;
tmpMeta9 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta8), 1));
tmp1 = 1;
goto tmp3_done;
}
case 1: {
modelica_boolean tmp10;
tmp10 = omc_System_getPartialInstantiation(threadData);
if (1 != tmp10) goto goto_2;
tmp1 = 0;
goto tmp3_done;
}
case 2: {
modelica_metatype tmpMeta11;
modelica_metatype tmpMeta12;
_cache = tmp4_1;
_env = tmp4_2;
_fpath = tmp4_3;
omc_Lookup_lookupClass(threadData, _cache, _env, _fpath, mmc_mk_none(), &tmpMeta11, NULL);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta11,2,8) == 0) goto goto_2;
tmpMeta12 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta11), 5));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta12,0,0) == 0) goto goto_2;
tmp1 = 0;
goto tmp3_done;
}
case 3: {
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 < 4) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_isComplete = tmp1;
_return: OMC_LABEL_UNUSED
return _isComplete;
}
modelica_metatype boxptr_CevalScript_isCompleteFunction(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inFuncPath)
{
modelica_boolean _isComplete;
modelica_metatype out_isComplete;
_isComplete = omc_CevalScript_isCompleteFunction(threadData, _inCache, _inEnv, _inFuncPath);
out_isComplete = mmc_mk_icon(_isComplete);
return out_isComplete;
}
DLLExport
modelica_metatype omc_CevalScript_ceval(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inExp, modelica_boolean _inBoolean, modelica_metatype _inMsg, modelica_integer _numIter, modelica_metatype *out_outValue)
{
modelica_metatype _outCache = NULL;
modelica_metatype _outValue = NULL;
modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp4_1;volatile modelica_metatype tmp4_2;volatile modelica_metatype tmp4_3;volatile modelica_boolean tmp4_4;volatile modelica_metatype tmp4_5;
tmp4_1 = _inCache;
tmp4_2 = _inEnv;
tmp4_3 = _inExp;
tmp4_4 = _inBoolean;
tmp4_5 = _inMsg;
{
modelica_boolean _impl;
modelica_metatype _env = NULL;
modelica_metatype _msg = NULL;
modelica_metatype _vallst = NULL;
modelica_metatype _expl = NULL;
modelica_metatype _e = NULL;
modelica_metatype _funcpath = NULL;
modelica_metatype _cache = 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;
modelica_boolean tmp8;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_3,13,3) == 0) goto tmp3_end;
tmpMeta6 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 2));
tmpMeta7 = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 3));
_e = tmp4_3;
_funcpath = tmpMeta6;
_expl = tmpMeta7;
_cache = tmp4_1;
_env = tmp4_2;
_impl = tmp4_4;
_msg = tmp4_5;
tmp8 = (stringEqual(_OMC_LIT579, omc_AbsynUtil_pathString(threadData, _funcpath, _OMC_LIT100, 1, 0)));
if (0 != tmp8) goto goto_2;
_cache = omc_Ceval_cevalList(threadData, _cache, _env, _expl, _impl, _msg, _numIter ,&_vallst);
tmpMeta[0+0] = omc_CevalScript_cevalCallFunction(threadData, _cache, _env, _e, _vallst, _impl, _msg, ((modelica_integer) 1) + _numIter, &tmpMeta[0+1]);
goto tmp3_done;
}
case 1: {
if (1 != tmp4_4) goto tmp3_end;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_3,13,3) == 0) goto tmp3_end;
_e = tmp4_3;
_cache = tmp4_1;
_env = tmp4_2;
_msg = tmp4_5;
tmpMeta[0+0] = omc_CevalScript_cevalInteractiveFunctions(threadData, _cache, _env, _e, _msg, ((modelica_integer) 1) + _numIter, &tmpMeta[0+1]);
goto tmp3_done;
}
case 2: {
_cache = tmp4_1;
_env = tmp4_2;
_e = tmp4_3;
_impl = tmp4_4;
_msg = tmp4_5;
tmpMeta[0+0] = omc_Ceval_ceval(threadData, _cache, _env, _e, _impl, _msg, ((modelica_integer) 1) + _numIter, &tmpMeta[0+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 < 3) {
goto tmp3_top;
}
MMC_THROW_INTERNAL();
tmp3_done2:;
}
}
_outCache = tmpMeta[0+0];
_outValue = tmpMeta[0+1];
_return: OMC_LABEL_UNUSED
if (out_outValue) { *out_outValue = _outValue; }
return _outCache;
}
modelica_metatype boxptr_CevalScript_ceval(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inExp, modelica_metatype _inBoolean, modelica_metatype _inMsg, modelica_metatype _numIter, modelica_metatype *out_outValue)
{
modelica_integer tmp1;
modelica_integer tmp2;
modelica_metatype _outCache = NULL;
tmp1 = mmc_unbox_integer(_inBoolean);
tmp2 = mmc_unbox_integer(_numIter);
_outCache = omc_CevalScript_ceval(threadData, _inCache, _inEnv, _inExp, tmp1, _inMsg, tmp2, out_outValue);
return _outCache;
}
