#ifdef OMC_BASE_FILE
#define OMC_FILE OMC_BASE_FILE
#else
#define OMC_FILE "/home/mahge/dev/OpenModelica/OMCompiler/Compiler/boot/build/tmp/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)
#define _OMC_LIT67_data "Cannot access encrypted and protected class contents."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT67,53,_OMC_LIT67_data);
#define _OMC_LIT67 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT67)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT68,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT67}};
#define _OMC_LIT68 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT68)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT69,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(7023)),_OMC_LIT66,_OMC_LIT7,_OMC_LIT68}};
#define _OMC_LIT69 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT69)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT70,1,4) {&Absyn_Within_TOP__desc,}};
#define _OMC_LIT70 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT70)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT71,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_LIT71 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT71)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT72,2,3) {&Dump_DumpOptions_DUMPOPTIONS__desc,_OMC_LIT52}};
#define _OMC_LIT72 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT72)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT73,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_LIT73 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT73)
#define _OMC_LIT74_data "Absyn"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT74,5,_OMC_LIT74_data);
#define _OMC_LIT74 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT74)
#define _OMC_LIT75_data "SCode"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT75,5,_OMC_LIT75_data);
#define _OMC_LIT75 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT75)
#define _OMC_LIT76_data "MetaModelicaInterface"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT76,21,_OMC_LIT76_data);
#define _OMC_LIT76 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT76)
#define _OMC_LIT77_data "Internal"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT77,8,_OMC_LIT77_data);
#define _OMC_LIT77 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT77)
#define _OMC_LIT78_data "File not Found: %s."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT78,19,_OMC_LIT78_data);
#define _OMC_LIT78 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT78)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT79,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT78}};
#define _OMC_LIT79 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT79)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT80,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(7007)),_OMC_LIT66,_OMC_LIT7,_OMC_LIT79}};
#define _OMC_LIT80 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT80)
#define _OMC_LIT81_data "Expected encrypted package with .mol extension got: %s."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT81,55,_OMC_LIT81_data);
#define _OMC_LIT81 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT81)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT82,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT81}};
#define _OMC_LIT82 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT82)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT83,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(7021)),_OMC_LIT66,_OMC_LIT7,_OMC_LIT82}};
#define _OMC_LIT83 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT83)
#define _OMC_LIT84_data "Unable to unzip the file: %s."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT84,29,_OMC_LIT84_data);
#define _OMC_LIT84 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT84)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT85,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT84}};
#define _OMC_LIT85 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT85)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT86,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(7020)),_OMC_LIT66,_OMC_LIT7,_OMC_LIT85}};
#define _OMC_LIT86 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT86)
#define _OMC_LIT87_data " "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT87,1,_OMC_LIT87_data);
#define _OMC_LIT87 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT87)
#define _OMC_LIT88_data "/package.moc"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT88,12,_OMC_LIT88_data);
#define _OMC_LIT88 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT88)
#define _OMC_LIT89_data ".moc"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT89,4,_OMC_LIT89_data);
#define _OMC_LIT89 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT89)
#define _OMC_LIT90_data "/package.mo"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT90,11,_OMC_LIT90_data);
#define _OMC_LIT90 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT90)
#define _OMC_LIT91_data ".mo"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT91,3,_OMC_LIT91_data);
#define _OMC_LIT91 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT91)
#define _OMC_LIT92_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_STRUCT92,105,_OMC_LIT92_data);
#define _OMC_LIT92 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT92)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT93,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT92}};
#define _OMC_LIT93 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT93)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT94,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(7019)),_OMC_LIT66,_OMC_LIT7,_OMC_LIT93}};
#define _OMC_LIT94 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT94)
#define _OMC_LIT95_data "unzip -q -o -d \""
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT95,16,_OMC_LIT95_data);
#define _OMC_LIT95 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT95)
#define _OMC_LIT96_data "\" \""
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT96,3,_OMC_LIT96_data);
#define _OMC_LIT96 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT96)
#define _OMC_LIT97_data "\""
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT97,1,_OMC_LIT97_data);
#define _OMC_LIT97 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT97)
#define _OMC_LIT98_data ".mol"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT98,4,_OMC_LIT98_data);
#define _OMC_LIT98 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT98)
#define _OMC_LIT99_data "."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT99,1,_OMC_LIT99_data);
#define _OMC_LIT99 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT99)
#define _OMC_LIT100_data "default"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT100,7,_OMC_LIT100_data);
#define _OMC_LIT100 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT100)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT101,2,1) {_OMC_LIT100,MMC_REFSTRUCTLIT(mmc_nil)}};
#define _OMC_LIT101 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT101)
#define _OMC_LIT102_data "Could not resolve modelica://"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT102,29,_OMC_LIT102_data);
#define _OMC_LIT102 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT102)
#define _OMC_LIT103_data " with MODELICAPATH: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT103,20,_OMC_LIT103_data);
#define _OMC_LIT103 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT103)
#define _OMC_LIT104_data "%s"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT104,2,_OMC_LIT104_data);
#define _OMC_LIT104 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT104)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT105,2,4) {&Gettext_TranslatableContent_notrans__desc,_OMC_LIT104}};
#define _OMC_LIT105 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT105)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT106,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(5999)),_OMC_LIT6,_OMC_LIT7,_OMC_LIT105}};
#define _OMC_LIT106 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT106)
#define _OMC_LIT107_data "modelica://"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT107,11,_OMC_LIT107_data);
#define _OMC_LIT107 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT107)
#define _OMC_LIT108_data "file://"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT108,7,_OMC_LIT108_data);
#define _OMC_LIT108 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT108)
#define _OMC_LIT109_data ".interface.mo"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT109,13,_OMC_LIT109_data);
#define _OMC_LIT109 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT109)
#define _OMC_LIT110_data ": $(RELPATH_"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT110,12,_OMC_LIT110_data);
#define _OMC_LIT110 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT110)
#define _OMC_LIT111_data ") "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT111,2,_OMC_LIT111_data);
#define _OMC_LIT111 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT111)
#define _OMC_LIT112_data "Failed to get dependencies for package %s. %s contains an import to non-existing package %s."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT112,92,_OMC_LIT112_data);
#define _OMC_LIT112 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT112)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT113,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT112}};
#define _OMC_LIT113 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT113)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT114,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(284)),_OMC_LIT66,_OMC_LIT7,_OMC_LIT113}};
#define _OMC_LIT114 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT114)
#define _OMC_LIT115_data "Failed to get dependencies for package %s. Perhaps there is an import to a non-existing package."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT115,96,_OMC_LIT115_data);
#define _OMC_LIT115 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT115)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT116,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT115}};
#define _OMC_LIT116 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT116)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT117,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(266)),_OMC_LIT66,_OMC_LIT7,_OMC_LIT116}};
#define _OMC_LIT117 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT117)
#define _OMC_LIT118_data ": "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT118,2,_OMC_LIT118_data);
#define _OMC_LIT118 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT118)
#define _OMC_LIT119_data "true"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT119,4,_OMC_LIT119_data);
#define _OMC_LIT119 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT119)
#define _OMC_LIT120_data "false"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT120,5,_OMC_LIT120_data);
#define _OMC_LIT120 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT120)
#define _OMC_LIT121_data "CevalScript.containsPublicInterface failed: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT121,44,_OMC_LIT121_data);
#define _OMC_LIT121 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT121)
#define _OMC_LIT122_data "Internal error %s"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT122,17,_OMC_LIT122_data);
#define _OMC_LIT122 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT122)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT123,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT122}};
#define _OMC_LIT123 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT123)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT124,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(63)),_OMC_LIT6,_OMC_LIT7,_OMC_LIT123}};
#define _OMC_LIT124 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT124)
#define _OMC_LIT125_data ": ("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT125,3,_OMC_LIT125_data);
#define _OMC_LIT125 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT125)
#define _OMC_LIT126_data ","
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT126,1,_OMC_LIT126_data);
#define _OMC_LIT126 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT126)
#define _OMC_LIT127_data " ("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT127,2,_OMC_LIT127_data);
#define _OMC_LIT127 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT127)
#define _OMC_LIT128_data "): "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT128,3,_OMC_LIT128_data);
#define _OMC_LIT128 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT128)
#define _OMC_LIT129_data "CevalScript.importDepenency could not handle:"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT129,45,_OMC_LIT129_data);
#define _OMC_LIT129 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT129)
#define _OMC_LIT130_data "CevalScript.buildTransitiveDependencyGraph failed: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT130,51,_OMC_LIT130_data);
#define _OMC_LIT130 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT130)
#define _OMC_LIT131_data "Annotation __OpenModelica_Interface is missing or the string is not in the input list."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT131,86,_OMC_LIT131_data);
#define _OMC_LIT131 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT131)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT132,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT131}};
#define _OMC_LIT132 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT132)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT133,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(554)),_OMC_LIT66,_OMC_LIT7,_OMC_LIT132}};
#define _OMC_LIT133 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT133)
#define _OMC_LIT134_data "__OpenModelica_Interface"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT134,24,_OMC_LIT134_data);
#define _OMC_LIT134 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT134)
#define _OMC_LIT135_data "__OpenModelica_Interface types are incompatible. Got interface type '%s', expected something compatible with '%s'."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT135,114,_OMC_LIT135_data);
#define _OMC_LIT135 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT135)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT136,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT135}};
#define _OMC_LIT136 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT136)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT137,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(553)),_OMC_LIT66,_OMC_LIT7,_OMC_LIT136}};
#define _OMC_LIT137 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT137)
#define _OMC_LIT138_data "dgbsv"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT138,5,_OMC_LIT138_data);
#define _OMC_LIT138 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT138)
#define _OMC_LIT139_data "dgeev"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT139,5,_OMC_LIT139_data);
#define _OMC_LIT139 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT139)
#define _OMC_LIT140_data "dgegv"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT140,5,_OMC_LIT140_data);
#define _OMC_LIT140 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT140)
#define _OMC_LIT141_data "dgels"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT141,5,_OMC_LIT141_data);
#define _OMC_LIT141 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT141)
#define _OMC_LIT142_data "dgelsx"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT142,6,_OMC_LIT142_data);
#define _OMC_LIT142 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT142)
#define _OMC_LIT143_data "dgelsy"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT143,6,_OMC_LIT143_data);
#define _OMC_LIT143 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT143)
#define _OMC_LIT144_data "dgeqpf"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT144,6,_OMC_LIT144_data);
#define _OMC_LIT144 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT144)
#define _OMC_LIT145_data "dgesv"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT145,5,_OMC_LIT145_data);
#define _OMC_LIT145 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT145)
#define _OMC_LIT146_data "dgesvd"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT146,6,_OMC_LIT146_data);
#define _OMC_LIT146 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT146)
#define _OMC_LIT147_data "dgetrf"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT147,6,_OMC_LIT147_data);
#define _OMC_LIT147 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT147)
#define _OMC_LIT148_data "dgetri"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT148,6,_OMC_LIT148_data);
#define _OMC_LIT148 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT148)
#define _OMC_LIT149_data "dgetrs"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT149,6,_OMC_LIT149_data);
#define _OMC_LIT149 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT149)
#define _OMC_LIT150_data "dgglse"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT150,6,_OMC_LIT150_data);
#define _OMC_LIT150 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT150)
#define _OMC_LIT151_data "dgtsv"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT151,5,_OMC_LIT151_data);
#define _OMC_LIT151 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT151)
#define _OMC_LIT152_data "dorgqr"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT152,6,_OMC_LIT152_data);
#define _OMC_LIT152 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT152)
#define _OMC_LIT153_data "Library"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT153,7,_OMC_LIT153_data);
#define _OMC_LIT153 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT153)
#define _OMC_LIT154_data "Lapack"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT154,6,_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)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT156,1,4) {&Absyn_Msg_NO__MSG__desc,}};
#define _OMC_LIT156 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT156)
static const MMC_DEFREALLIT(_OMC_LIT_STRUCT157,0.0);
#define _OMC_LIT157 MMC_REFREALLIT(_OMC_LIT_STRUCT157)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT158,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_LIT157}};
#define _OMC_LIT158 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT158)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT159,1,1) {_OMC_LIT158}};
#define _OMC_LIT159 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT159)
#define _OMC_LIT160_data "evalfunc"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT160,8,_OMC_LIT160_data);
#define _OMC_LIT160 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT160)
#define _OMC_LIT161_data "Turns on/off symbolic function evaluation."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT161,42,_OMC_LIT161_data);
#define _OMC_LIT161 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT161)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT162,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT161}};
#define _OMC_LIT162 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT162)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT163,5,3) {&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(7)),_OMC_LIT160,MMC_IMMEDIATE(MMC_TAGFIXNUM(1)),_OMC_LIT162}};
#define _OMC_LIT163 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT163)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT164,1,5) {&DAE_Mod_NOMOD__desc,}};
#define _OMC_LIT164 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT164)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT165,1,3) {&DAE_Prefix_NOPRE__desc,}};
#define _OMC_LIT165 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT165)
#define _OMC_LIT166_data "[dynload]: [SOME SYMTAB] not in in CF list: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT166,44,_OMC_LIT166_data);
#define _OMC_LIT166 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT166)
#define _OMC_LIT167_data "dynload"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT167,7,_OMC_LIT167_data);
#define _OMC_LIT167 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT167)
#define _OMC_LIT168_data "Display debug information about dynamic loading of compiled functions."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT168,70,_OMC_LIT168_data);
#define _OMC_LIT168 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT168)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT169,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT168}};
#define _OMC_LIT169 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT169)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT170,5,3) {&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(9)),_OMC_LIT167,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),_OMC_LIT169}};
#define _OMC_LIT170 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT170)
#define _OMC_LIT171_data "in_"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT171,3,_OMC_LIT171_data);
#define _OMC_LIT171 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT171)
#define _OMC_LIT172_data "executeFunction("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT172,16,_OMC_LIT172_data);
#define _OMC_LIT172 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT172)
#define _OMC_LIT173_data ")"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT173,1,_OMC_LIT173_data);
#define _OMC_LIT173 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT173)
#define _OMC_LIT174_data "[dynload]: Updating build time for function path: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT174,50,_OMC_LIT174_data);
#define _OMC_LIT174 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT174)
#define _OMC_LIT175_data " within: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT175,9,_OMC_LIT175_data);
#define _OMC_LIT175 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT175)
#define _OMC_LIT176_data "[dynload]: [SOME SYMTAB] not in in CF list [finished]: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT176,55,_OMC_LIT176_data);
#define _OMC_LIT176 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT176)
#define _OMC_LIT177_data "gen"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT177,3,_OMC_LIT177_data);
#define _OMC_LIT177 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT177)
#define _OMC_LIT178_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_STRUCT178,178,_OMC_LIT178_data);
#define _OMC_LIT178 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT178)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT179,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT178}};
#define _OMC_LIT179 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT179)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT180,5,3) {&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(8)),_OMC_LIT177,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),_OMC_LIT179}};
#define _OMC_LIT180 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT180)
#define _OMC_LIT181_data "[dynload]: FAILED to constant evaluate function: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT181,49,_OMC_LIT181_data);
#define _OMC_LIT181 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT181)
#define _OMC_LIT182_data "failtrace"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT182,9,_OMC_LIT182_data);
#define _OMC_LIT182 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT182)
#define _OMC_LIT183_data "Sets whether to print a failtrace or not."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT183,41,_OMC_LIT183_data);
#define _OMC_LIT183 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT183)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT184,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT183}};
#define _OMC_LIT184 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT184)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT185,5,3) {&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(1)),_OMC_LIT182,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),_OMC_LIT184}};
#define _OMC_LIT185 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT185)
#define _OMC_LIT186_data "- codegeneration is turned off. switch \"nogen\" flag off\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT186,56,_OMC_LIT186_data);
#define _OMC_LIT186 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT186)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT187,1,1) {MMC_IMMEDIATE(MMC_TAGFIXNUM(1))}};
#define _OMC_LIT187 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT187)
#define _OMC_LIT188_data "Stack overflow when evaluating function call: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT188,46,_OMC_LIT188_data);
#define _OMC_LIT188 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT188)
#define _OMC_LIT189_data "...\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT189,4,_OMC_LIT189_data);
#define _OMC_LIT189 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT189)
#define _OMC_LIT190_data "/home/mahge/dev/OpenModelica/OMCompiler/Compiler/Script/CevalScript.mo"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT190,70,_OMC_LIT190_data);
#define _OMC_LIT190 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT190)
static const MMC_DEFREALLIT(_OMC_LIT_STRUCT191_6,1605787387.0);
#define _OMC_LIT191_6 MMC_REFREALLIT(_OMC_LIT_STRUCT191_6)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT191,8,3) {&SourceInfo_SOURCEINFO__desc,_OMC_LIT190,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),MMC_IMMEDIATE(MMC_TAGFIXNUM(2091)),MMC_IMMEDIATE(MMC_TAGFIXNUM(257)),MMC_IMMEDIATE(MMC_TAGFIXNUM(2091)),MMC_IMMEDIATE(MMC_TAGFIXNUM(276)),_OMC_LIT191_6}};
#define _OMC_LIT191 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT191)
#define _OMC_LIT192_data "CALL: record constructor: func: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT192,32,_OMC_LIT192_data);
#define _OMC_LIT192 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT192)
#define _OMC_LIT193_data " type path: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT193,12,_OMC_LIT193_data);
#define _OMC_LIT193 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT193)
#define _OMC_LIT194_data "CALL: try to evaluate or generate function: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT194,44,_OMC_LIT194_data);
#define _OMC_LIT194 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT194)
#define _OMC_LIT195_data "CALL: is complete function: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT195,28,_OMC_LIT195_data);
#define _OMC_LIT195 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT195)
#define _OMC_LIT196_data "[true]"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT196,6,_OMC_LIT196_data);
#define _OMC_LIT196 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT196)
#define _OMC_LIT197_data "[false]"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT197,7,_OMC_LIT197_data);
#define _OMC_LIT197 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT197)
#define _OMC_LIT198_data "CALL: constant evaluation failed (not complete function): "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT198,58,_OMC_LIT198_data);
#define _OMC_LIT198 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT198)
#define _OMC_LIT199_data "getNonPartialElementsForInstantiatedClass"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT199,41,_OMC_LIT199_data);
#define _OMC_LIT199 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT199)
#define _OMC_LIT200_data "ModelicaBuiltin.mo$"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT200,19,_OMC_LIT200_data);
#define _OMC_LIT200 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT200)
#define _OMC_LIT201_data ".h"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT201,2,_OMC_LIT201_data);
#define _OMC_LIT201 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT201)
#define _OMC_LIT202_data "$(GEN_DIR)"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT202,10,_OMC_LIT202_data);
#define _OMC_LIT202 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT202)
#define _OMC_LIT203_data ".deps"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT203,5,_OMC_LIT203_data);
#define _OMC_LIT203 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT203)
#define _OMC_LIT204_data ".o: $(GEN_DIR)"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT204,14,_OMC_LIT204_data);
#define _OMC_LIT204 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT204)
#define _OMC_LIT205_data ".c"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT205,2,_OMC_LIT205_data);
#define _OMC_LIT205 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT205)
#define _OMC_LIT206_data "#include \""
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT206,10,_OMC_LIT206_data);
#define _OMC_LIT206 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT206)
#define _OMC_LIT207_data "_records.c"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT207,10,_OMC_LIT207_data);
#define _OMC_LIT207 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT207)
#define _OMC_LIT208_data "#include <meta/meta_modelica.h>\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT208,32,_OMC_LIT208_data);
#define _OMC_LIT208 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT208)
#define _OMC_LIT209_data "Failed to compile all functions in package %s."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT209,46,_OMC_LIT209_data);
#define _OMC_LIT209 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT209)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT210,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT209}};
#define _OMC_LIT210 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT210)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT211,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(537)),_OMC_LIT66,_OMC_LIT7,_OMC_LIT210}};
#define _OMC_LIT211 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT211)
#define _OMC_LIT212_data "Only package and uniontype is supported as top-level classes in OpenModelica."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT212,77,_OMC_LIT212_data);
#define _OMC_LIT212 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT212)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT213,2,1) {_OMC_LIT212,MMC_REFSTRUCTLIT(mmc_nil)}};
#define _OMC_LIT213 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT213)
#define _OMC_LIT214_data "Not an encapsulated class (required for separate compilation): "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT214,63,_OMC_LIT214_data);
#define _OMC_LIT214 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT214)
#define _OMC_LIT215_data "generateCodeCheat"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT215,17,_OMC_LIT215_data);
#define _OMC_LIT215 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT215)
#define _OMC_LIT216_data "Used to generate code for the bootstrapped compiler."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT216,52,_OMC_LIT216_data);
#define _OMC_LIT216 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT216)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT217,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT216}};
#define _OMC_LIT217 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT217)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT218,5,3) {&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(10)),_OMC_LIT215,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),_OMC_LIT217}};
#define _OMC_LIT218 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT218)
#define _OMC_LIT219_data "CevalScript.cevalGenerateFunction failed:\nfunction: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT219,52,_OMC_LIT219_data);
#define _OMC_LIT219 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT219)
#define _OMC_LIT220_data "\nfile: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT220,7,_OMC_LIT220_data);
#define _OMC_LIT220 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT220)
#define _OMC_LIT221_data "_"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT221,1,_OMC_LIT221_data);
#define _OMC_LIT221 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT221)
#define _OMC_LIT222_data "ErrorLevel"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT222,10,_OMC_LIT222_data);
#define _OMC_LIT222 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT222)
#define _OMC_LIT223_data "internal"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT223,8,_OMC_LIT223_data);
#define _OMC_LIT223 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT223)
#define _OMC_LIT224_data "error"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT224,5,_OMC_LIT224_data);
#define _OMC_LIT224 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT224)
#define _OMC_LIT225_data "warning"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT225,7,_OMC_LIT225_data);
#define _OMC_LIT225 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT225)
#define _OMC_LIT226_data "notification"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT226,12,_OMC_LIT226_data);
#define _OMC_LIT226 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT226)
#define _OMC_LIT227_data "errorLevelToValue failed\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT227,25,_OMC_LIT227_data);
#define _OMC_LIT227 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT227)
#define _OMC_LIT228_data "ErrorKind"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT228,9,_OMC_LIT228_data);
#define _OMC_LIT228 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT228)
#define _OMC_LIT229_data "syntax"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT229,6,_OMC_LIT229_data);
#define _OMC_LIT229 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT229)
#define _OMC_LIT230_data "grammar"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT230,7,_OMC_LIT230_data);
#define _OMC_LIT230 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT230)
#define _OMC_LIT231_data "translation"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT231,11,_OMC_LIT231_data);
#define _OMC_LIT231 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT231)
#define _OMC_LIT232_data "symbolic"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT232,8,_OMC_LIT232_data);
#define _OMC_LIT232 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT232)
#define _OMC_LIT233_data "runtime"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT233,7,_OMC_LIT233_data);
#define _OMC_LIT233 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT233)
#define _OMC_LIT234_data "scripting"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT234,9,_OMC_LIT234_data);
#define _OMC_LIT234 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT234)
#define _OMC_LIT235_data "errorTypeToValue failed\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT235,24,_OMC_LIT235_data);
#define _OMC_LIT235 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT235)
#define _OMC_LIT236_data "OpenModelica"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT236,12,_OMC_LIT236_data);
#define _OMC_LIT236 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT236)
#define _OMC_LIT237_data "Scripting"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT237,9,_OMC_LIT237_data);
#define _OMC_LIT237 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT237)
#define _OMC_LIT238_data "SourceInfo"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT238,10,_OMC_LIT238_data);
#define _OMC_LIT238 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT238)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT239,2,4) {&Absyn_Path_IDENT__desc,_OMC_LIT238}};
#define _OMC_LIT239 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT239)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT240,3,3) {&Absyn_Path_QUALIFIED__desc,_OMC_LIT237,_OMC_LIT239}};
#define _OMC_LIT240 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT240)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT241,3,3) {&Absyn_Path_QUALIFIED__desc,_OMC_LIT236,_OMC_LIT240}};
#define _OMC_LIT241 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT241)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT242,2,5) {&Absyn_Path_FULLYQUALIFIED__desc,_OMC_LIT241}};
#define _OMC_LIT242 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT242)
#define _OMC_LIT243_data "filename"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT243,8,_OMC_LIT243_data);
#define _OMC_LIT243 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT243)
#define _OMC_LIT244_data "readonly"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT244,8,_OMC_LIT244_data);
#define _OMC_LIT244 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT244)
#define _OMC_LIT245_data "lineStart"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT245,9,_OMC_LIT245_data);
#define _OMC_LIT245 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT245)
#define _OMC_LIT246_data "columnStart"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT246,11,_OMC_LIT246_data);
#define _OMC_LIT246 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT246)
#define _OMC_LIT247_data "lineEnd"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT247,7,_OMC_LIT247_data);
#define _OMC_LIT247 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT247)
#define _OMC_LIT248_data "columnEnd"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT248,9,_OMC_LIT248_data);
#define _OMC_LIT248 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT248)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT249,2,1) {_OMC_LIT248,MMC_REFSTRUCTLIT(mmc_nil)}};
#define _OMC_LIT249 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT249)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT250,2,1) {_OMC_LIT247,_OMC_LIT249}};
#define _OMC_LIT250 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT250)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT251,2,1) {_OMC_LIT246,_OMC_LIT250}};
#define _OMC_LIT251 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT251)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT252,2,1) {_OMC_LIT245,_OMC_LIT251}};
#define _OMC_LIT252 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT252)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT253,2,1) {_OMC_LIT244,_OMC_LIT252}};
#define _OMC_LIT253 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT253)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT254,2,1) {_OMC_LIT243,_OMC_LIT253}};
#define _OMC_LIT254 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT254)
#define _OMC_LIT255_data "ErrorMessage"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT255,12,_OMC_LIT255_data);
#define _OMC_LIT255 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT255)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT256,2,4) {&Absyn_Path_IDENT__desc,_OMC_LIT255}};
#define _OMC_LIT256 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT256)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT257,3,3) {&Absyn_Path_QUALIFIED__desc,_OMC_LIT237,_OMC_LIT256}};
#define _OMC_LIT257 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT257)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT258,3,3) {&Absyn_Path_QUALIFIED__desc,_OMC_LIT236,_OMC_LIT257}};
#define _OMC_LIT258 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT258)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT259,2,5) {&Absyn_Path_FULLYQUALIFIED__desc,_OMC_LIT258}};
#define _OMC_LIT259 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT259)
#define _OMC_LIT260_data "info"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT260,4,_OMC_LIT260_data);
#define _OMC_LIT260 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT260)
#define _OMC_LIT261_data "message"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT261,7,_OMC_LIT261_data);
#define _OMC_LIT261 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT261)
#define _OMC_LIT262_data "kind"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT262,4,_OMC_LIT262_data);
#define _OMC_LIT262 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT262)
#define _OMC_LIT263_data "level"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT263,5,_OMC_LIT263_data);
#define _OMC_LIT263 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT263)
#define _OMC_LIT264_data "id"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT264,2,_OMC_LIT264_data);
#define _OMC_LIT264 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT264)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT265,2,1) {_OMC_LIT264,MMC_REFSTRUCTLIT(mmc_nil)}};
#define _OMC_LIT265 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT265)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT266,2,1) {_OMC_LIT263,_OMC_LIT265}};
#define _OMC_LIT266 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT266)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT267,2,1) {_OMC_LIT262,_OMC_LIT266}};
#define _OMC_LIT267 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT267)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT268,2,1) {_OMC_LIT261,_OMC_LIT267}};
#define _OMC_LIT268 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT268)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT269,2,1) {_OMC_LIT260,_OMC_LIT268}};
#define _OMC_LIT269 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT269)
#define _OMC_LIT270_data "version"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT270,7,_OMC_LIT270_data);
#define _OMC_LIT270 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT270)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT271,2,4) {&Absyn_Path_IDENT__desc,_OMC_LIT270}};
#define _OMC_LIT271 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT271)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT272,2,6) {&Absyn_Exp_STRING__desc,_OMC_LIT52}};
#define _OMC_LIT272 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT272)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT273,1,1) {_OMC_LIT272}};
#define _OMC_LIT273 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT273)
#define _OMC_LIT274_data "$echo"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT274,5,_OMC_LIT274_data);
#define _OMC_LIT274 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT274)
#define _OMC_LIT275_data "Cannot save the encrypted class. Encrypted classes are read-only."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT275,65,_OMC_LIT275_data);
#define _OMC_LIT275 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT275)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT276,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT275}};
#define _OMC_LIT276 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT276)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT277,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(7022)),_OMC_LIT66,_OMC_LIT7,_OMC_LIT276}};
#define _OMC_LIT277 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT277)
#define _OMC_LIT278_data "GC_PROFSTATS"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT278,12,_OMC_LIT278_data);
#define _OMC_LIT278 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT278)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT279,2,4) {&Absyn_Path_IDENT__desc,_OMC_LIT278}};
#define _OMC_LIT279 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT279)
#define _OMC_LIT280_data "heapsize_full"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT280,13,_OMC_LIT280_data);
#define _OMC_LIT280 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT280)
#define _OMC_LIT281_data "free_bytes_full"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT281,15,_OMC_LIT281_data);
#define _OMC_LIT281 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT281)
#define _OMC_LIT282_data "unmapped_bytes: "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT282,16,_OMC_LIT282_data);
#define _OMC_LIT282 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT282)
#define _OMC_LIT283_data "bytes_allocd_since_gc"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT283,21,_OMC_LIT283_data);
#define _OMC_LIT283 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT283)
#define _OMC_LIT284_data "allocd_bytes_before_gc"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT284,22,_OMC_LIT284_data);
#define _OMC_LIT284 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT284)
#define _OMC_LIT285_data "total_allocd_bytes"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT285,18,_OMC_LIT285_data);
#define _OMC_LIT285 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT285)
#define _OMC_LIT286_data "non_gc_bytes"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT286,12,_OMC_LIT286_data);
#define _OMC_LIT286 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT286)
#define _OMC_LIT287_data "gc_no"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT287,5,_OMC_LIT287_data);
#define _OMC_LIT287 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT287)
#define _OMC_LIT288_data "markers_m1"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT288,10,_OMC_LIT288_data);
#define _OMC_LIT288 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT288)
#define _OMC_LIT289_data "bytes_reclaimed_since_gc"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT289,24,_OMC_LIT289_data);
#define _OMC_LIT289 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT289)
#define _OMC_LIT290_data "reclaimed_bytes_before_gc"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT290,25,_OMC_LIT290_data);
#define _OMC_LIT290 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT290)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT291,2,1) {_OMC_LIT290,MMC_REFSTRUCTLIT(mmc_nil)}};
#define _OMC_LIT291 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT291)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT292,2,1) {_OMC_LIT289,_OMC_LIT291}};
#define _OMC_LIT292 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT292)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT293,2,1) {_OMC_LIT288,_OMC_LIT292}};
#define _OMC_LIT293 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT293)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT294,2,1) {_OMC_LIT287,_OMC_LIT293}};
#define _OMC_LIT294 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT294)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT295,2,1) {_OMC_LIT286,_OMC_LIT294}};
#define _OMC_LIT295 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT295)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT296,2,1) {_OMC_LIT285,_OMC_LIT295}};
#define _OMC_LIT296 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT296)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT297,2,1) {_OMC_LIT284,_OMC_LIT296}};
#define _OMC_LIT297 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT297)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT298,2,1) {_OMC_LIT283,_OMC_LIT297}};
#define _OMC_LIT298 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT298)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT299,2,1) {_OMC_LIT282,_OMC_LIT298}};
#define _OMC_LIT299 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT299)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT300,2,1) {_OMC_LIT281,_OMC_LIT299}};
#define _OMC_LIT300 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT300)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT301,2,1) {_OMC_LIT280,_OMC_LIT300}};
#define _OMC_LIT301 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT301)
#define _OMC_LIT302_data "newInst"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT302,7,_OMC_LIT302_data);
#define _OMC_LIT302 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT302)
#define _OMC_LIT303_data "Enables experimental new instantiation phase."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT303,45,_OMC_LIT303_data);
#define _OMC_LIT303 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT303)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT304,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT303}};
#define _OMC_LIT304 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT304)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT305,5,3) {&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(67)),_OMC_LIT302,MMC_IMMEDIATE(MMC_TAGFIXNUM(0)),_OMC_LIT304}};
#define _OMC_LIT305 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT305)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT306,2,5) {&Values_Value_STRING__desc,_OMC_LIT52}};
#define _OMC_LIT306 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT306)
#define _OMC_LIT307_data "Error, directory "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT307,17,_OMC_LIT307_data);
#define _OMC_LIT307 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT307)
#define _OMC_LIT308_data " does not exist,"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT308,16,_OMC_LIT308_data);
#define _OMC_LIT308 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT308)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT309,1,16) {&Values_Value_NORETCALL__desc,}};
#define _OMC_LIT309 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT309)
static const MMC_DEFREALLIT(_OMC_LIT_STRUCT310,-1.0);
#define _OMC_LIT310 MMC_REFREALLIT(_OMC_LIT_STRUCT310)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT311,2,4) {&Values_Value_REAL__desc,_OMC_LIT310}};
#define _OMC_LIT311 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT311)
#define _OMC_LIT312_data " does not contain SCode.PARTS"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT312,29,_OMC_LIT312_data);
#define _OMC_LIT312 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT312)
#define _OMC_LIT313_data "::"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT313,2,_OMC_LIT313_data);
#define _OMC_LIT313 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT313)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT314,2,1) {_OMC_LIT306,MMC_REFSTRUCTLIT(mmc_nil)}};
#define _OMC_LIT314 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT314)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT315,2,1) {_OMC_LIT306,_OMC_LIT314}};
#define _OMC_LIT315 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT315)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT316,2,1) {_OMC_LIT12,_OMC_LIT315}};
#define _OMC_LIT316 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT316)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT317,2,11) {&Values_Value_TUPLE__desc,_OMC_LIT316}};
#define _OMC_LIT317 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT317)
#define _OMC_LIT318_data "call to loadModel"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT318,17,_OMC_LIT318_data);
#define _OMC_LIT318 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT318)
#define _OMC_LIT319_data "loadModel("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT319,10,_OMC_LIT319_data);
#define _OMC_LIT319 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT319)
#define _OMC_LIT320_data "Class %s not found."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT320,19,_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,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(20)),_OMC_LIT6,_OMC_LIT7,_OMC_LIT321}};
#define _OMC_LIT322 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT322)
#define _OMC_LIT323_data "loadFile("
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT323,9,_OMC_LIT323_data);
#define _OMC_LIT323 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT323)
#define _OMC_LIT324_data "UTF-8"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT324,5,_OMC_LIT324_data);
#define _OMC_LIT324 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT324)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT325,2,4) {&Values_Value_REAL__desc,_OMC_LIT157}};
#define _OMC_LIT325 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT325)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT326,2,1) {_OMC_LIT325,_OMC_LIT314}};
#define _OMC_LIT326 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT326)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT327,2,11) {&Values_Value_TUPLE__desc,_OMC_LIT326}};
#define _OMC_LIT327 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT327)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT328,1,1) {MMC_IMMEDIATE(MMC_TAGFIXNUM(0))}};
#define _OMC_LIT328 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT328)
#define _OMC_LIT329_data "Could not find class annotation %s in class %s."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT329,47,_OMC_LIT329_data);
#define _OMC_LIT329 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT329)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT330,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT329}};
#define _OMC_LIT330 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT330)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT331,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(536)),_OMC_LIT66,_OMC_LIT7,_OMC_LIT330}};
#define _OMC_LIT331 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT331)
#define _OMC_LIT332_data "Failed"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT332,6,_OMC_LIT332_data);
#define _OMC_LIT332 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT332)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT333,2,5) {&Values_Value_STRING__desc,_OMC_LIT332}};
#define _OMC_LIT333 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT333)
#define _OMC_LIT334_data "parseString"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT334,11,_OMC_LIT334_data);
#define _OMC_LIT334 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT334)
#define _OMC_LIT335_data "parseFile"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT335,9,_OMC_LIT335_data);
#define _OMC_LIT335 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT335)
#define _OMC_LIT336_data "loadFileInteractiveQualified"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT336,28,_OMC_LIT336_data);
#define _OMC_LIT336 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT336)
#define _OMC_LIT337_data "loadFileInteractive"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT337,19,_OMC_LIT337_data);
#define _OMC_LIT337 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT337)
#define _OMC_LIT338_data "getSourceFile"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT338,13,_OMC_LIT338_data);
#define _OMC_LIT338 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT338)
#define _OMC_LIT339_data "setSourceFile"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT339,13,_OMC_LIT339_data);
#define _OMC_LIT339 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT339)
#define _OMC_LIT340_data "basename"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT340,8,_OMC_LIT340_data);
#define _OMC_LIT340 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT340)
#define _OMC_LIT341_data "dirname"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT341,7,_OMC_LIT341_data);
#define _OMC_LIT341 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT341)
#define _OMC_LIT342_data "codeToString"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT342,12,_OMC_LIT342_data);
#define _OMC_LIT342 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT342)
#define _OMC_LIT343_data "typeOf"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT343,6,_OMC_LIT343_data);
#define _OMC_LIT343 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT343)
#define _OMC_LIT344_data "GC_gcollect_and_unmap"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT344,21,_OMC_LIT344_data);
#define _OMC_LIT344 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT344)
#define _OMC_LIT345_data "GC_expand_hp"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT345,12,_OMC_LIT345_data);
#define _OMC_LIT345 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT345)
#define _OMC_LIT346_data "GC_set_max_heap_size"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT346,20,_OMC_LIT346_data);
#define _OMC_LIT346 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT346)
#define _OMC_LIT347_data "GC_get_prof_stats"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT347,17,_OMC_LIT347_data);
#define _OMC_LIT347 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT347)
#define _OMC_LIT348_data "clear"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT348,5,_OMC_LIT348_data);
#define _OMC_LIT348 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT348)
#define _OMC_LIT349_data "clearProgram"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT349,12,_OMC_LIT349_data);
#define _OMC_LIT349 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT349)
#define _OMC_LIT350_data "clearVariables"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT350,14,_OMC_LIT350_data);
#define _OMC_LIT350 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT350)
#define _OMC_LIT351_data "list"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT351,4,_OMC_LIT351_data);
#define _OMC_LIT351 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT351)
#define _OMC_LIT352_data "listFile"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT352,8,_OMC_LIT352_data);
#define _OMC_LIT352 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT352)
#define _OMC_LIT353_data "sortStrings"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT353,11,_OMC_LIT353_data);
#define _OMC_LIT353 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT353)
#define _OMC_LIT354_data "listVariables"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT354,13,_OMC_LIT354_data);
#define _OMC_LIT354 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT354)
#define _OMC_LIT355_data "setCompileCommand"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT355,17,_OMC_LIT355_data);
#define _OMC_LIT355 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT355)
#define _OMC_LIT356_data "getCompileCommand"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT356,17,_OMC_LIT356_data);
#define _OMC_LIT356 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT356)
#define _OMC_LIT357_data "setTempDirectoryPath"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT357,20,_OMC_LIT357_data);
#define _OMC_LIT357 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT357)
#define _OMC_LIT358_data "getTempDirectoryPath"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT358,20,_OMC_LIT358_data);
#define _OMC_LIT358 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT358)
#define _OMC_LIT359_data "setEnvironmentVar"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT359,17,_OMC_LIT359_data);
#define _OMC_LIT359 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT359)
#define _OMC_LIT360_data "getEnvironmentVar"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT360,17,_OMC_LIT360_data);
#define _OMC_LIT360 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT360)
#define _OMC_LIT361_data "setInstallationDirectoryPath"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT361,28,_OMC_LIT361_data);
#define _OMC_LIT361 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT361)
#define _OMC_LIT362_data "getInstallationDirectoryPath"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT362,28,_OMC_LIT362_data);
#define _OMC_LIT362 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT362)
#define _OMC_LIT363_data "getModelicaPath"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT363,15,_OMC_LIT363_data);
#define _OMC_LIT363 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT363)
#define _OMC_LIT364_data "setModelicaPath"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT364,15,_OMC_LIT364_data);
#define _OMC_LIT364 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT364)
#define _OMC_LIT365_data "getLanguageStandard"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT365,19,_OMC_LIT365_data);
#define _OMC_LIT365 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT365)
#define _OMC_LIT366_data "reopenStandardStream"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT366,20,_OMC_LIT366_data);
#define _OMC_LIT366 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT366)
#define _OMC_LIT367_data "iconv"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT367,5,_OMC_LIT367_data);
#define _OMC_LIT367 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT367)
#define _OMC_LIT368_data "getCompiler"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT368,11,_OMC_LIT368_data);
#define _OMC_LIT368 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT368)
#define _OMC_LIT369_data "setCFlags"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT369,9,_OMC_LIT369_data);
#define _OMC_LIT369 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT369)
#define _OMC_LIT370_data "getCFlags"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT370,9,_OMC_LIT370_data);
#define _OMC_LIT370 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT370)
#define _OMC_LIT371_data "setCompiler"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT371,11,_OMC_LIT371_data);
#define _OMC_LIT371 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT371)
#define _OMC_LIT372_data "getCXXCompiler"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT372,14,_OMC_LIT372_data);
#define _OMC_LIT372 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT372)
#define _OMC_LIT373_data "setCXXCompiler"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT373,14,_OMC_LIT373_data);
#define _OMC_LIT373 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT373)
#define _OMC_LIT374_data "setCompilerFlags"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT374,16,_OMC_LIT374_data);
#define _OMC_LIT374 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT374)
#define _OMC_LIT375_data "getLinker"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT375,9,_OMC_LIT375_data);
#define _OMC_LIT375 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT375)
#define _OMC_LIT376_data "setLinker"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT376,9,_OMC_LIT376_data);
#define _OMC_LIT376 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT376)
#define _OMC_LIT377_data "getLinkerFlags"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT377,14,_OMC_LIT377_data);
#define _OMC_LIT377 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT377)
#define _OMC_LIT378_data "setLinkerFlags"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT378,14,_OMC_LIT378_data);
#define _OMC_LIT378 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT378)
#define _OMC_LIT379_data "setCommandLineOptions"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT379,21,_OMC_LIT379_data);
#define _OMC_LIT379 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT379)
#define _OMC_LIT380_data "getCommandLineOptions"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT380,21,_OMC_LIT380_data);
#define _OMC_LIT380 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT380)
#define _OMC_LIT381_data "clearCommandLineOptions"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT381,23,_OMC_LIT381_data);
#define _OMC_LIT381 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT381)
#define _OMC_LIT382_data "enableNewInstantiation"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT382,22,_OMC_LIT382_data);
#define _OMC_LIT382 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT382)
#define _OMC_LIT383_data "disableNewInstantiation"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT383,23,_OMC_LIT383_data);
#define _OMC_LIT383 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT383)
#define _OMC_LIT384_data "clearDebugFlags"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT384,15,_OMC_LIT384_data);
#define _OMC_LIT384 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT384)
#define _OMC_LIT385_data "getConfigFlagValidOptions"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT385,25,_OMC_LIT385_data);
#define _OMC_LIT385 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT385)
#define _OMC_LIT386_data "cd"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT386,2,_OMC_LIT386_data);
#define _OMC_LIT386 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT386)
#define _OMC_LIT387_data "mkdir"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT387,5,_OMC_LIT387_data);
#define _OMC_LIT387 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT387)
#define _OMC_LIT388_data "copy"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT388,4,_OMC_LIT388_data);
#define _OMC_LIT388 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT388)
#define _OMC_LIT389_data "remove"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT389,6,_OMC_LIT389_data);
#define _OMC_LIT389 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT389)
#define _OMC_LIT390_data "getVersion"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT390,10,_OMC_LIT390_data);
#define _OMC_LIT390 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT390)
#define _OMC_LIT391_data "system"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT391,6,_OMC_LIT391_data);
#define _OMC_LIT391 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT391)
#define _OMC_LIT392_data "system_parallel"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT392,15,_OMC_LIT392_data);
#define _OMC_LIT392 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT392)
#define _OMC_LIT393_data "timerClear"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT393,10,_OMC_LIT393_data);
#define _OMC_LIT393 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT393)
#define _OMC_LIT394_data "timerTick"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT394,9,_OMC_LIT394_data);
#define _OMC_LIT394 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT394)
#define _OMC_LIT395_data "timerTock"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT395,9,_OMC_LIT395_data);
#define _OMC_LIT395 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT395)
#define _OMC_LIT396_data "readFile"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT396,8,_OMC_LIT396_data);
#define _OMC_LIT396 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT396)
#define _OMC_LIT397_data "writeFile"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT397,9,_OMC_LIT397_data);
#define _OMC_LIT397 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT397)
#define _OMC_LIT398_data "deleteFile"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT398,10,_OMC_LIT398_data);
#define _OMC_LIT398 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT398)
#define _OMC_LIT399_data "compareFiles"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT399,12,_OMC_LIT399_data);
#define _OMC_LIT399 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT399)
#define _OMC_LIT400_data "compareFilesAndMove"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT400,19,_OMC_LIT400_data);
#define _OMC_LIT400 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT400)
#define _OMC_LIT401_data "readFileNoNumeric"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT401,17,_OMC_LIT401_data);
#define _OMC_LIT401 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT401)
#define _OMC_LIT402_data "getErrorString"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT402,14,_OMC_LIT402_data);
#define _OMC_LIT402 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT402)
#define _OMC_LIT403_data "countMessages"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT403,13,_OMC_LIT403_data);
#define _OMC_LIT403 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT403)
#define _OMC_LIT404_data "clearMessages"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT404,13,_OMC_LIT404_data);
#define _OMC_LIT404 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT404)
#define _OMC_LIT405_data "getMessagesStringInternal"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT405,25,_OMC_LIT405_data);
#define _OMC_LIT405 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT405)
#define _OMC_LIT406_data "stringTypeName"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT406,14,_OMC_LIT406_data);
#define _OMC_LIT406 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT406)
#define _OMC_LIT407_data "stringVariableName"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT407,18,_OMC_LIT407_data);
#define _OMC_LIT407 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT407)
#define _OMC_LIT408_data "typeNameString"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT408,14,_OMC_LIT408_data);
#define _OMC_LIT408 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT408)
#define _OMC_LIT409_data "typeNameStrings"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT409,15,_OMC_LIT409_data);
#define _OMC_LIT409 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT409)
#define _OMC_LIT410_data "generateHeader"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT410,14,_OMC_LIT410_data);
#define _OMC_LIT410 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT410)
#define _OMC_LIT411_data "generateJuliaHeader"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT411,19,_OMC_LIT411_data);
#define _OMC_LIT411 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT411)
#define _OMC_LIT412_data "generateCode"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT412,12,_OMC_LIT412_data);
#define _OMC_LIT412 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT412)
#define _OMC_LIT413_data "generateScriptingAPI"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT413,20,_OMC_LIT413_data);
#define _OMC_LIT413 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT413)
#define _OMC_LIT414_data "generateEntryPoint"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT414,18,_OMC_LIT414_data);
#define _OMC_LIT414 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT414)
#define _OMC_LIT415_data "checkInterfaceOfPackages"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT415,24,_OMC_LIT415_data);
#define _OMC_LIT415 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT415)
#define _OMC_LIT416_data "generateSeparateCodeDependenciesMakefile"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT416,40,_OMC_LIT416_data);
#define _OMC_LIT416 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT416)
#define _OMC_LIT417_data "generateSeparateCodeDependencies"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT417,32,_OMC_LIT417_data);
#define _OMC_LIT417 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT417)
#define _OMC_LIT418_data "generateSeparateCode"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT418,20,_OMC_LIT418_data);
#define _OMC_LIT418 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT418)
#define _OMC_LIT419_data "getImportedNames"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT419,16,_OMC_LIT419_data);
#define _OMC_LIT419 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT419)
#define _OMC_LIT420_data "getMMfileTotalDependencies"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT420,26,_OMC_LIT420_data);
#define _OMC_LIT420 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT420)
#define _OMC_LIT421_data "loadModel"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT421,9,_OMC_LIT421_data);
#define _OMC_LIT421 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT421)
#define _OMC_LIT422_data "loadFile"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT422,8,_OMC_LIT422_data);
#define _OMC_LIT422 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT422)
#define _OMC_LIT423_data "loadFiles"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT423,9,_OMC_LIT423_data);
#define _OMC_LIT423 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT423)
#define _OMC_LIT424_data "parseEncryptedPackage"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT424,21,_OMC_LIT424_data);
#define _OMC_LIT424 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT424)
#define _OMC_LIT425_data "loadEncryptedPackage"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT425,20,_OMC_LIT425_data);
#define _OMC_LIT425 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT425)
#define _OMC_LIT426_data "alarm"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT426,5,_OMC_LIT426_data);
#define _OMC_LIT426 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT426)
#define _OMC_LIT427_data "getClassNames"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT427,13,_OMC_LIT427_data);
#define _OMC_LIT427 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT427)
#define _OMC_LIT428_data "reloadClass"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT428,11,_OMC_LIT428_data);
#define _OMC_LIT428 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT428)
#define _OMC_LIT429_data "loadString"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT429,10,_OMC_LIT429_data);
#define _OMC_LIT429 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT429)
#define _OMC_LIT430_data "help"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT430,4,_OMC_LIT430_data);
#define _OMC_LIT430 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT430)
#define _OMC_LIT431_data "getTimeStamp"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT431,12,_OMC_LIT431_data);
#define _OMC_LIT431 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT431)
#define _OMC_LIT432_data "getClassRestriction"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT432,19,_OMC_LIT432_data);
#define _OMC_LIT432 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT432)
#define _OMC_LIT433_data "classAnnotationExists"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT433,21,_OMC_LIT433_data);
#define _OMC_LIT433 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT433)
#define _OMC_LIT434_data "getBooleanClassAnnotation"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT434,25,_OMC_LIT434_data);
#define _OMC_LIT434 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT434)
#define _OMC_LIT435_data "strtok"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT435,6,_OMC_LIT435_data);
#define _OMC_LIT435 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT435)
#define _OMC_LIT436_data "stringSplit"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT436,11,_OMC_LIT436_data);
#define _OMC_LIT436 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT436)
#define _OMC_LIT437_data "stringReplace"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT437,13,_OMC_LIT437_data);
#define _OMC_LIT437 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT437)
#define _OMC_LIT438_data "checkSettings"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT438,13,_OMC_LIT438_data);
#define _OMC_LIT438 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT438)
#define _OMC_LIT439_data "echo"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT439,4,_OMC_LIT439_data);
#define _OMC_LIT439 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT439)
#define _OMC_LIT440_data "numProcessors"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT440,13,_OMC_LIT440_data);
#define _OMC_LIT440 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT440)
#define _OMC_LIT441_data "runScript"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT441,9,_OMC_LIT441_data);
#define _OMC_LIT441 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT441)
#define _OMC_LIT442_data "exit"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT442,4,_OMC_LIT442_data);
#define _OMC_LIT442 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT442)
#define _OMC_LIT443_data "getMemorySize"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT443,13,_OMC_LIT443_data);
#define _OMC_LIT443 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT443)
#define _OMC_LIT444_data "getAllSubtypeOf"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT444,15,_OMC_LIT444_data);
#define _OMC_LIT444 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT444)
#define _OMC_LIT445_data "timing"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT445,6,_OMC_LIT445_data);
#define _OMC_LIT445 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT445)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT446,1,5) {&ErrorTypes_Severity_WARNING__desc,}};
#define _OMC_LIT446 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT446)
#define _OMC_LIT447_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_STRUCT447,198,_OMC_LIT447_data);
#define _OMC_LIT447 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT447)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT448,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT447}};
#define _OMC_LIT448 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT448)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT449,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(183)),_OMC_LIT66,_OMC_LIT446,_OMC_LIT448}};
#define _OMC_LIT449 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT449)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT450,1,6) {&ErrorTypes_Severity_NOTIFICATION__desc,}};
#define _OMC_LIT450 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT450)
#define _OMC_LIT451_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_STRUCT451,135,_OMC_LIT451_data);
#define _OMC_LIT451 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT451)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT452,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT451}};
#define _OMC_LIT452 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT452)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT453,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(370)),_OMC_LIT66,_OMC_LIT450,_OMC_LIT452}};
#define _OMC_LIT453 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT453)
#define _OMC_LIT454_data "%1 requested package %2 of version %3. %2 %4 is used instead which states that it is only compatible with a conversion script. OpenModelica currently does not support conversion scripts and will proceed with potential issues as a result."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT454,237,_OMC_LIT454_data);
#define _OMC_LIT454 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT454)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT455,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT454}};
#define _OMC_LIT455 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT455)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT456,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(371)),_OMC_LIT66,_OMC_LIT446,_OMC_LIT455}};
#define _OMC_LIT456 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT456)
#define _OMC_LIT457_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_STRUCT457,193,_OMC_LIT457_data);
#define _OMC_LIT457 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT457)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT458,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT457}};
#define _OMC_LIT458 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT458)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT459,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(372)),_OMC_LIT66,_OMC_LIT446,_OMC_LIT458}};
#define _OMC_LIT459 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT459)
#define _OMC_LIT460_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_STRUCT460,284,_OMC_LIT460_data);
#define _OMC_LIT460 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT460)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT461,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT460}};
#define _OMC_LIT461 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT461)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT462,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(373)),_OMC_LIT66,_OMC_LIT446,_OMC_LIT461}};
#define _OMC_LIT462 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT462)
#define _OMC_LIT463_data "Library %s was not loaded but is marked as used by model %s."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT463,60,_OMC_LIT463_data);
#define _OMC_LIT463 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT463)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT464,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT463}};
#define _OMC_LIT464 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT464)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT465,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(526)),_OMC_LIT6,_OMC_LIT446,_OMC_LIT464}};
#define _OMC_LIT465 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT465)
#define _OMC_LIT466_data "Automatically loaded package %s %s due to uses annotation."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT466,58,_OMC_LIT466_data);
#define _OMC_LIT466 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT466)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT467,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT466}};
#define _OMC_LIT467 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT467)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT468,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(223)),_OMC_LIT66,_OMC_LIT450,_OMC_LIT467}};
#define _OMC_LIT468 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT468)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT469,3,3) {&Absyn_Program_PROGRAM__desc,MMC_REFSTRUCTLIT(mmc_nil),_OMC_LIT70}};
#define _OMC_LIT469 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT469)
#define _OMC_LIT470_data "Skipped loading package %s (%s) using MODELICAPATH %s (uses-annotation may be wrong)."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT470,85,_OMC_LIT470_data);
#define _OMC_LIT470 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT470)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT471,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT470}};
#define _OMC_LIT471 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT471)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT472,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(556)),_OMC_LIT66,_OMC_LIT450,_OMC_LIT471}};
#define _OMC_LIT472 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT472)
#define _OMC_LIT473_data "Failed to load package %s (%s) using MODELICAPATH %s."
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT473,53,_OMC_LIT473_data);
#define _OMC_LIT473 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT473)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT474,2,3) {&Gettext_TranslatableContent_gettext__desc,_OMC_LIT473}};
#define _OMC_LIT474 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT474)
static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT475,5,3) {&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(184)),_OMC_LIT66,_OMC_LIT7,_OMC_LIT474}};
#define _OMC_LIT475 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT475)
#define _OMC_LIT476_data "/../"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT476,4,_OMC_LIT476_data);
#define _OMC_LIT476 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT476)
#define _OMC_LIT477_data "loadFile automatically converted to loadModel"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT477,45,_OMC_LIT477_data);
#define _OMC_LIT477 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT477)
#define _OMC_LIT478_data "package.moc"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT478,11,_OMC_LIT478_data);
#define _OMC_LIT478 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT478)
#define _OMC_LIT479_data "package.mo"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT479,10,_OMC_LIT479_data);
#define _OMC_LIT479 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT479)
#define _OMC_LIT480_data ".log"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT480,4,_OMC_LIT480_data);
#define _OMC_LIT480 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT480)
#define _OMC_LIT481_data ".libs"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT481,5,_OMC_LIT481_data);
#define _OMC_LIT481 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT481)
#define _OMC_LIT482_data " -C \""
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT482,5,_OMC_LIT482_data);
#define _OMC_LIT482 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT482)
#define _OMC_LIT483_data " -j"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT483,3,_OMC_LIT483_data);
#define _OMC_LIT483 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT483)
#define _OMC_LIT484_data " -f "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT484,4,_OMC_LIT484_data);
#define _OMC_LIT484 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT484)
#define _OMC_LIT485_data ".makefile"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT485,9,_OMC_LIT485_data);
#define _OMC_LIT485 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT485)
#define _OMC_LIT486_data "set OPENMODELICAHOME="
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT486,21,_OMC_LIT486_data);
#define _OMC_LIT486 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT486)
#define _OMC_LIT487_data "\\"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT487,1,_OMC_LIT487_data);
#define _OMC_LIT487 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT487)
#define _OMC_LIT488_data "&& "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT488,3,_OMC_LIT488_data);
#define _OMC_LIT488 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT488)
#define _OMC_LIT489_data "set "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT489,4,_OMC_LIT489_data);
#define _OMC_LIT489 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT489)
#define _OMC_LIT490_data "cd \""
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT490,4,_OMC_LIT490_data);
#define _OMC_LIT490 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT490)
#define _OMC_LIT491_data "\"&& "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT491,4,_OMC_LIT491_data);
#define _OMC_LIT491 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT491)
#define _OMC_LIT492_data "serial"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT492,6,_OMC_LIT492_data);
#define _OMC_LIT492 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT492)
#define _OMC_LIT493_data "parallel"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT493,8,_OMC_LIT493_data);
#define _OMC_LIT493 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT493)
#define _OMC_LIT494_data "share"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT494,5,_OMC_LIT494_data);
#define _OMC_LIT494 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT494)
#define _OMC_LIT495_data "omc"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT495,3,_OMC_LIT495_data);
#define _OMC_LIT495 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT495)
#define _OMC_LIT496_data "scripts"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT496,7,_OMC_LIT496_data);
#define _OMC_LIT496 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT496)
#define _OMC_LIT497_data "Compile\" "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT497,9,_OMC_LIT497_data);
#define _OMC_LIT497 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT497)
#define _OMC_LIT498_data "compileModel: running "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT498,22,_OMC_LIT498_data);
#define _OMC_LIT498 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT498)
#define _OMC_LIT499_data ".o\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT499,3,_OMC_LIT499_data);
#define _OMC_LIT499 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT499)
#define _OMC_LIT500_data ".libs\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT500,6,_OMC_LIT500_data);
#define _OMC_LIT500 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT500)
#define _OMC_LIT501_data "_records.o\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT501,11,_OMC_LIT501_data);
#define _OMC_LIT501 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT501)
#define _OMC_LIT502_data "_res.mat\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT502,9,_OMC_LIT502_data);
#define _OMC_LIT502 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT502)
#define _OMC_LIT503_data "Compile.bat"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT503,11,_OMC_LIT503_data);
#define _OMC_LIT503 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT503)
#define _OMC_LIT504_data "Error building simulator. Build log: %s"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT504,39,_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(22)),_OMC_LIT6,_OMC_LIT7,_OMC_LIT505}};
#define _OMC_LIT506 MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT506)
#define _OMC_LIT507_data "command "
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT507,8,_OMC_LIT507_data);
#define _OMC_LIT507 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT507)
#define _OMC_LIT508_data " not found. Check $OPENMODELICAHOME"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT508,35,_OMC_LIT508_data);
#define _OMC_LIT508 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT508)
#define _OMC_LIT509_data "compileModel: failed!\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT509,22,_OMC_LIT509_data);
#define _OMC_LIT509 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT509)
#define _OMC_LIT510_data "compileModel: successful!\n"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT510,26,_OMC_LIT510_data);
#define _OMC_LIT510 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT510)
#define _OMC_LIT511_data "Connection.isRoot"
static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT511,17,_OMC_LIT511_data);
#define _OMC_LIT511 MMC_REFSTRINGLIT(_OMC_LIT_STRUCT511)
#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_metatype _inArg, modelica_metatype _inTpl);
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 tmpMeta[3] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_packages = __omcQ_24in_5Fpackages;
if(listMember(_in_package_name, _packages))
{
goto _return;
}
tmpMeta[0] = mmc_mk_cons(_in_package_name, _packages);
_packages = tmpMeta[0];
tmpMeta[0] = stringAppend(_public_imports_dir,_OMC_LIT0);
tmpMeta[1] = stringAppend(tmpMeta[0],_in_package_name);
tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT1);
_dep_public_imports_file = tmpMeta[2];
_pub_imports_total = omc_System_readFile(threadData, _dep_public_imports_file);
{
modelica_metatype _pub_imp;
for (tmpMeta[0] = omc_System_strtok(threadData, _pub_imports_total, _OMC_LIT2); !listEmpty(tmpMeta[0]); tmpMeta[0]=MMC_CDR(tmpMeta[0]))
{
_pub_imp = MMC_CAR(tmpMeta[0]);
_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 _package_class = NULL;
modelica_metatype _pub_imports_list = NULL;
modelica_metatype _pro_imports_list = NULL;
modelica_string _imp_ident = NULL;
modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil);
_total_pub_imports = tmpMeta[0];
tmpMeta[1] = mmc_mk_box2(4, &Absyn_Path_IDENT__desc, _in_package_name);
_package_class = omc_InteractiveUtil_getPathedClassInProgram(threadData, tmpMeta[1], omc_SymbolTable_getAbsyn(threadData), 0);
tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil);
_pub_imports_list = omc_CevalScript_getImportList(threadData, _package_class, tmpMeta[1], tmpMeta[2] ,&_pro_imports_list);
{
modelica_metatype _imp;
for (tmpMeta[1] = _pub_imports_list; !listEmpty(tmpMeta[1]); tmpMeta[1]=MMC_CDR(tmpMeta[1]))
{
_imp = MMC_CAR(tmpMeta[1]);
_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 (tmpMeta[1] = _pro_imports_list; !listEmpty(tmpMeta[1]); tmpMeta[1]=MMC_CDR(tmpMeta[1]))
{
_imp = MMC_CAR(tmpMeta[1]);
_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;
modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
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: {
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,1) == 0) goto tmp2_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,6) == 0) goto tmp2_end;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,3) == 0) goto tmp2_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
_import_ = tmpMeta[2];
tmp3 += 1;
tmpMeta[0] = mmc_mk_cons(_import_, _imports_list);
_imports_list = tmpMeta[0];
goto tmp2_done;
}
case 1: {
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,1) == 0) goto tmp2_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,6) == 0) goto tmp2_end;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],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;
modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
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: {
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,1) == 0) goto tmp2_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
_els = tmpMeta[0];
tmp3 += 1;
{
modelica_metatype _elem;
for (tmpMeta[0] = _els; !listEmpty(tmpMeta[0]); tmpMeta[0]=MMC_CDR(tmpMeta[0]))
{
_elem = MMC_CAR(tmpMeta[0]);
_pub_imports_list = omc_CevalScript_getImportsInElementItem(threadData, _elem, _pub_imports_list);
}
}
goto tmp2_done;
}
case 1: {
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,1) == 0) goto tmp2_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
_els = tmpMeta[0];
{
modelica_metatype _elem;
for (tmpMeta[0] = _els; !listEmpty(tmpMeta[0]); tmpMeta[0]=MMC_CDR(tmpMeta[0]))
{
_elem = MMC_CAR(tmpMeta[0]);
_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;
modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
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: {
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,5) == 0) goto tmp2_end;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4));
_parts = tmpMeta[1];
{
modelica_metatype _part;
for (tmpMeta[0] = _parts; !listEmpty(tmpMeta[0]); tmpMeta[0]=MMC_CDR(tmpMeta[0]))
{
_part = MMC_CAR(tmpMeta[0]);
_pub_imports_list = omc_CevalScript_getImportsInClassPart(threadData, _part, _pub_imports_list, _pro_imports_list ,&_pro_imports_list);
}
}
goto tmp2_done;
}
case 1: {
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],4,5) == 0) goto tmp2_end;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5));
_parts = tmpMeta[1];
{
modelica_metatype _part;
for (tmpMeta[0] = _parts; !listEmpty(tmpMeta[0]); tmpMeta[0]=MMC_CDR(tmpMeta[0]))
{
_part = MMC_CAR(tmpMeta[0]);
_pub_imports_list = omc_CevalScript_getImportsInClassPart(threadData, _part, _pub_imports_list, _pro_imports_list ,&_pro_imports_list);
}
}
goto tmp2_done;
}
case 2: {
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],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 tmpMeta[3] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil);
_pub_imports_list = omc_CevalScript_getImportList(threadData, _inClass, tmpMeta[0], tmpMeta[1] ,&_pro_imports_list);
tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil);
_outPublicImports = tmpMeta[0];
{
modelica_metatype _imp;
for (tmpMeta[0] = _pub_imports_list; !listEmpty(tmpMeta[0]); tmpMeta[0]=MMC_CDR(tmpMeta[0]))
{
_imp = MMC_CAR(tmpMeta[0]);
_ident = omc_AbsynUtil_pathFirstIdent(threadData, omc_AbsynUtil_importPath(threadData, _imp));
if((!stringEqual(_ident, _OMC_LIT3)))
{
tmpMeta[2] = mmc_mk_box2(5, &Values_Value_STRING__desc, _ident);
tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _outPublicImports);
_outPublicImports = tmpMeta[1];
}
}
}
tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil);
_outProtectedImports = tmpMeta[0];
{
modelica_metatype _imp;
for (tmpMeta[0] = _pro_imports_list; !listEmpty(tmpMeta[0]); tmpMeta[0]=MMC_CDR(tmpMeta[0]))
{
_imp = MMC_CAR(tmpMeta[0]);
_ident = omc_AbsynUtil_pathFirstIdent(threadData, omc_AbsynUtil_importPath(threadData, _imp));
if((!stringEqual(_ident, _OMC_LIT3)))
{
tmpMeta[2] = mmc_mk_box2(5, &Values_Value_STRING__desc, _ident);
tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _outProtectedImports);
_outProtectedImports = tmpMeta[1];
}
}
}
_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 tmpMeta[6] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp3_1;
tmp3_1 = _args;
{
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_integer tmp5;
if (listEmpty(tmp3_1)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_1);
tmpMeta[2] = MMC_CDR(tmp3_1);
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[3] = MMC_CAR(tmpMeta[2]);
tmpMeta[4] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],3,1) == 0) goto tmp2_end;
tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
tmp5 = mmc_unbox_integer(tmpMeta[5]);
if (!listEmpty(tmpMeta[4])) goto tmp2_end;
_v = tmpMeta[1];
_b = tmp5;
_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);
tmpMeta[1] = mmc_mk_cons(_cl, MMC_REFSTRUCTLIT(mmc_nil));
_outCache = omc_CevalScript_generateFunctions(threadData, _cache, _env, _p, _sp, tmpMeta[1], _b, NULL);
setGlobalRoot(((modelica_integer) 0), mmc_mk_none());
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 1: {
modelica_boolean tmp6;
if (listEmpty(tmp3_1)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_1);
tmpMeta[2] = MMC_CDR(tmp3_1);
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[3] = MMC_CAR(tmpMeta[2]);
tmpMeta[4] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],3,1) == 0) goto tmp2_end;
if (!listEmpty(tmpMeta[4])) goto tmp2_end;
_v = tmpMeta[1];
_sp = omc_SymbolTable_getSCode(threadData);
_name = omc_CevalScript_getTypeNameIdent(threadData, _v);
tmp6 = omc_List_isMemberOnTrue(threadData, _name, _sp, boxvar_SCodeUtil_isClassNamed);
if (0 != tmp6) goto goto_1;
tmpMeta[1] = mmc_mk_cons(_name, mmc_mk_cons(_OMC_LIT11, MMC_REFSTRUCTLIT(mmc_nil)));
omc_Error_addMessage(threadData, _OMC_LIT10, tmpMeta[1]);
goto goto_1;
goto tmp2_done;
}
case 2: {
setGlobalRoot(((modelica_integer) 0), mmc_mk_none());
tmpMeta[0] = _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 < 3) {
goto tmp2_top;
}
MMC_THROW_INTERNAL();
tmp2_done2:;
}
}
_res = tmpMeta[0];
_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;
modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
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: {
tmpMeta[0] = _args;
if (listEmpty(tmpMeta[0])) goto goto_1;
tmpMeta[1] = MMC_CAR(tmpMeta[0]);
tmpMeta[2] = MMC_CDR(tmpMeta[0]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto goto_1;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto goto_1;
_suffix = tmpMeta[3];
_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;
modelica_metatype tmpMeta[10] __attribute__((unused)) = {0};
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: {
tmpMeta[0] = _args;
if (listEmpty(tmpMeta[0])) goto goto_1;
tmpMeta[1] = MMC_CAR(tmpMeta[0]);
tmpMeta[2] = MMC_CDR(tmpMeta[0]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto goto_1;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (listEmpty(tmpMeta[2])) goto goto_1;
tmpMeta[4] = MMC_CAR(tmpMeta[2]);
tmpMeta[5] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],2,1) == 0) goto goto_1;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
if (listEmpty(tmpMeta[5])) goto goto_1;
tmpMeta[7] = MMC_CAR(tmpMeta[5]);
tmpMeta[8] = MMC_CDR(tmpMeta[5]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],2,1) == 0) goto goto_1;
tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 2));
if (!listEmpty(tmpMeta[8])) goto goto_1;
_filename = tmpMeta[3];
_prefix = tmpMeta[6];
_suffix = tmpMeta[9];
_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 tmpMeta[19] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_vars = _OMC_LIT50;
_omhome = omc_Settings_getInstallationDirectoryPath(threadData);
_omlib = omc_Settings_getModelicaPath(threadData, omc_Testsuite_isRunning(threadData));
tmpMeta[0] = stringAppend(_omhome,_OMC_LIT51);
tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT52);
_omcpath = tmpMeta[1];
_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);
tmpMeta[0] = stringAppend(_OMC_LIT56,_touch_file);
_touch_res = (((modelica_integer) 0) == omc_System_systemCall(threadData, tmpMeta[0], _OMC_LIT52));
omc_System_systemCall(threadData, _OMC_LIT57, _touch_file);
_uname = omc_System_readFile(threadData, _touch_file);
tmpMeta[0] = stringAppend(_OMC_LIT58,_touch_file);
_rm_res = (((modelica_integer) 0) == omc_System_systemCall(threadData, tmpMeta[0], _OMC_LIT52));
_senddata = _OMC_LIT52;
_gcc = omc_System_getCCompiler(threadData);
_have_corba = omc_Corba_haveCorba(threadData);
tmpMeta[0] = stringAppend(_OMC_LIT59,_touch_file);
omc_System_systemCall(threadData, tmpMeta[0], _OMC_LIT52);
tmpMeta[0] = stringAppend(_gcc,_OMC_LIT60);
_gcc_res = (((modelica_integer) 0) == omc_System_systemCall(threadData, tmpMeta[0], _touch_file));
_gccVersion = omc_System_readFile(threadData, _touch_file);
tmpMeta[0] = stringAppend(_OMC_LIT59,_touch_file);
omc_System_systemCall(threadData, tmpMeta[0], _OMC_LIT52);
_confcmd = _OMC_LIT61;
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, _omhome);
tmpMeta[2] = mmc_mk_box2(5, &Values_Value_STRING__desc, _omlib);
tmpMeta[3] = mmc_mk_box2(5, &Values_Value_STRING__desc, _omcpath);
tmpMeta[4] = mmc_mk_box2(5, &Values_Value_STRING__desc, _systemPath);
tmpMeta[5] = mmc_mk_box2(5, &Values_Value_STRING__desc, _omdev);
tmpMeta[6] = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(_omcfound));
tmpMeta[7] = mmc_mk_box2(5, &Values_Value_STRING__desc, _usercflags);
tmpMeta[8] = mmc_mk_box2(5, &Values_Value_STRING__desc, _workdir);
tmpMeta[9] = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(_touch_res));
tmpMeta[10] = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(_rm_res));
tmpMeta[11] = mmc_mk_box2(5, &Values_Value_STRING__desc, _os);
tmpMeta[12] = mmc_mk_box2(5, &Values_Value_STRING__desc, _uname);
tmpMeta[13] = mmc_mk_box2(5, &Values_Value_STRING__desc, _senddata);
tmpMeta[14] = mmc_mk_box2(5, &Values_Value_STRING__desc, _gcc);
tmpMeta[15] = mmc_mk_box2(5, &Values_Value_STRING__desc, _gccVersion);
tmpMeta[16] = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(_gcc_res));
tmpMeta[17] = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(_have_corba));
tmpMeta[18] = mmc_mk_box2(5, &Values_Value_STRING__desc, _confcmd);
tmpMeta[0] = mmc_mk_cons(tmpMeta[1], mmc_mk_cons(tmpMeta[2], mmc_mk_cons(tmpMeta[3], mmc_mk_cons(tmpMeta[4], mmc_mk_cons(tmpMeta[5], mmc_mk_cons(tmpMeta[6], mmc_mk_cons(tmpMeta[7], mmc_mk_cons(tmpMeta[8], mmc_mk_cons(tmpMeta[9], mmc_mk_cons(tmpMeta[10], mmc_mk_cons(tmpMeta[11], mmc_mk_cons(tmpMeta[12], mmc_mk_cons(tmpMeta[13], mmc_mk_cons(tmpMeta[14], mmc_mk_cons(tmpMeta[15], mmc_mk_cons(tmpMeta[16], mmc_mk_cons(tmpMeta[17], mmc_mk_cons(tmpMeta[18], MMC_REFSTRUCTLIT(mmc_nil)))))))))))))))))));
_vals = tmpMeta[0];
tmpMeta[0] = mmc_mk_box5(13, &Values_Value_RECORD__desc, _OMC_LIT63, _vals, _vars, mmc_mk_integer(((modelica_integer) -1)));
_res = tmpMeta[0];
_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_integer tmp1;
modelica_integer tmp2;
modelica_integer tmp3;
modelica_integer tmp4;
modelica_integer tmp5;
modelica_integer tmp6;
modelica_metatype tmpMeta[23] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta[0] = _args;
if (listEmpty(tmpMeta[0])) MMC_THROW_INTERNAL();
tmpMeta[1] = MMC_CAR(tmpMeta[0]);
tmpMeta[2] = MMC_CDR(tmpMeta[0]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],12,1) == 0) MMC_THROW_INTERNAL();
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,1) == 0) MMC_THROW_INTERNAL();
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
if (listEmpty(tmpMeta[2])) MMC_THROW_INTERNAL();
tmpMeta[5] = MMC_CAR(tmpMeta[2]);
tmpMeta[6] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[5],3,1) == 0) MMC_THROW_INTERNAL();
tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 2));
tmp1 = mmc_unbox_integer(tmpMeta[7]);
if (listEmpty(tmpMeta[6])) MMC_THROW_INTERNAL();
tmpMeta[8] = MMC_CAR(tmpMeta[6]);
tmpMeta[9] = MMC_CDR(tmpMeta[6]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[8],3,1) == 0) MMC_THROW_INTERNAL();
tmpMeta[10] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[8]), 2));
tmp2 = mmc_unbox_integer(tmpMeta[10]);
if (listEmpty(tmpMeta[9])) MMC_THROW_INTERNAL();
tmpMeta[11] = MMC_CAR(tmpMeta[9]);
tmpMeta[12] = MMC_CDR(tmpMeta[9]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[11],3,1) == 0) MMC_THROW_INTERNAL();
tmpMeta[13] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[11]), 2));
tmp3 = mmc_unbox_integer(tmpMeta[13]);
if (listEmpty(tmpMeta[12])) MMC_THROW_INTERNAL();
tmpMeta[14] = MMC_CAR(tmpMeta[12]);
tmpMeta[15] = MMC_CDR(tmpMeta[12]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[14],3,1) == 0) MMC_THROW_INTERNAL();
tmpMeta[16] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[14]), 2));
tmp4 = mmc_unbox_integer(tmpMeta[16]);
if (listEmpty(tmpMeta[15])) MMC_THROW_INTERNAL();
tmpMeta[17] = MMC_CAR(tmpMeta[15]);
tmpMeta[18] = MMC_CDR(tmpMeta[15]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[17],3,1) == 0) MMC_THROW_INTERNAL();
tmpMeta[19] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[17]), 2));
tmp5 = mmc_unbox_integer(tmpMeta[19]);
if (listEmpty(tmpMeta[18])) MMC_THROW_INTERNAL();
tmpMeta[20] = MMC_CAR(tmpMeta[18]);
tmpMeta[21] = MMC_CDR(tmpMeta[18]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[20],3,1) == 0) MMC_THROW_INTERNAL();
tmpMeta[22] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[20]), 2));
tmp6 = mmc_unbox_integer(tmpMeta[22]);
if (!listEmpty(tmpMeta[21])) MMC_THROW_INTERNAL();
_path = tmpMeta[4];
_recursive = tmp1;
_qualified = tmp2;
_sort = tmp3;
_builtin = tmp4;
_protects = tmp5;
_constants = tmp6;
_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)
{
tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil);
omc_InteractiveUtil_getClassNamesRecursive(threadData, mmc_mk_none(), _p, _protects, _constants, tmpMeta[0] ,&_paths);
_paths = listReverseInPlace(_paths);
}
else
{
_paths = omc_InteractiveUtil_getTopClassnames(threadData, _p);
}
}
else
{
if(_recursive)
{
tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil);
omc_InteractiveUtil_getClassNamesRecursive(threadData, mmc_mk_some(_path), _p, _protects, _constants, tmpMeta[0] ,&_paths);
_paths = listReverseInPlace(_paths);
}
else
{
_paths = omc_InteractiveUtil_getClassnamesInPath(threadData, _path, _p, _protects, _constants);
if(_qualified)
{
{
modelica_metatype __omcQ_24tmpVar3;
modelica_metatype* tmp7;
modelica_metatype __omcQ_24tmpVar2;
int tmp8;
modelica_metatype _p_loopVar = 0;
modelica_metatype _p;
_p_loopVar = _paths;
tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil);
__omcQ_24tmpVar3 = tmpMeta[1];
tmp7 = &__omcQ_24tmpVar3;
while(1) {
tmp8 = 1;
if (!listEmpty(_p_loopVar)) {
_p = MMC_CAR(_p_loopVar);
_p_loopVar = MMC_CDR(_p_loopVar);
tmp8--;
}
if (tmp8 == 0) {
__omcQ_24tmpVar2 = omc_AbsynUtil_joinPaths(threadData, _path, _p);
*tmp7 = mmc_mk_cons(__omcQ_24tmpVar2,0);
tmp7 = &MMC_CDR(*tmp7);
} else if (tmp8 == 1) {
break;
} else {
MMC_THROW_INTERNAL();
}
}
*tmp7 = mmc_mk_nil();
tmpMeta[0] = __omcQ_24tmpVar3;
}
_paths = tmpMeta[0];
}
}
}
if(_sort)
{
_paths = omc_List_sort(threadData, _paths, boxvar_AbsynUtil_pathGe);
}
{
modelica_metatype __omcQ_24tmpVar5;
modelica_metatype* tmp9;
modelica_metatype __omcQ_24tmpVar4;
int tmp10;
modelica_metatype _p_loopVar = 0;
modelica_metatype _p;
_p_loopVar = _paths;
tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil);
__omcQ_24tmpVar5 = tmpMeta[1];
tmp9 = &__omcQ_24tmpVar5;
while(1) {
tmp10 = 1;
if (!listEmpty(_p_loopVar)) {
_p = MMC_CAR(_p_loopVar);
_p_loopVar = MMC_CDR(_p_loopVar);
tmp10--;
}
if (tmp10 == 0) {
__omcQ_24tmpVar4 = omc_ValuesUtil_makeCodeTypeName(threadData, _p);
*tmp9 = mmc_mk_cons(__omcQ_24tmpVar4,0);
tmp9 = &MMC_CDR(*tmp9);
} else if (tmp10 == 1) {
break;
} else {
MMC_THROW_INTERNAL();
}
}
*tmp9 = mmc_mk_nil();
tmpMeta[0] = __omcQ_24tmpVar5;
}
_res = omc_ValuesUtil_makeArray(threadData, tmpMeta[0]);
_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 tmpMeta[7] __attribute__((unused)) = {0};
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_integer tmp6;
modelica_integer tmp11;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta[0] = MMC_CAR(tmp4_1);
tmpMeta[1] = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],12,1) == 0) goto tmp3_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],0,1) == 0) goto tmp3_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2));
if (listEmpty(tmpMeta[1])) goto tmp3_end;
tmpMeta[4] = MMC_CAR(tmpMeta[1]);
tmpMeta[5] = MMC_CDR(tmpMeta[1]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],3,1) == 0) goto tmp3_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
tmp6 = mmc_unbox_integer(tmpMeta[6]);
if (!listEmpty(tmpMeta[5])) goto tmp3_end;
_className = tmpMeta[3];
_nested = tmp6;
{
modelica_metatype tmp9_1;
tmp9_1 = _className;
{
volatile mmc_switch_type tmp9;
int tmp10;
tmp9 = 0;
for (; tmp9 < 2; tmp9++) {
switch (MMC_SWITCH_CAST(tmp9)) {
case 0: {
if (mmc__uniontype__metarecord__typedef__equal(tmp9_1,2,1) == 0) goto tmp8_end;
tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_className), 2)));
goto tmp8_done;
}
case 1: {
tmpMeta[0] = _className;
goto tmp8_done;
}
}
goto tmp8_end;
tmp8_end: ;
}
goto goto_7;
goto_7:;
goto goto_2;
goto tmp8_done;
tmp8_done:;
}
}
_path = tmpMeta[0];
tmpMeta[0] = omc_InteractiveUtil_checkAccessAnnotationAndEncryption(threadData, _path, omc_SymbolTable_getAbsyn(threadData));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],4,2) == 0) goto goto_2;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3));
tmp11 = mmc_unbox_integer(tmpMeta[1]);
_access = tmp11;
tmpMeta[0] = omc_InteractiveUtil_getPathedClassInProgram(threadData, _className, omc_SymbolTable_getAbsyn(threadData), 0);
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6));
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 8));
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2));
_absynClass = tmpMeta[0];
_restriction = tmpMeta[1];
_str = tmpMeta[3];
_absynClass = (_nested?_absynClass:omc_AbsynUtil_filterNestedClasses(threadData, _absynClass));
if(((_access >= ((modelica_integer) 7)) || ((_access >= ((modelica_integer) 5)) && (!omc_AbsynUtil_isPackageRestriction(threadData, _restriction)))))
{
tmpMeta[0] = mmc_mk_cons(_absynClass, MMC_REFSTRUCTLIT(mmc_nil));
{
modelica_metatype tmp14_1;
tmp14_1 = _path;
{
volatile mmc_switch_type tmp14;
int tmp15;
tmp14 = 0;
for (; tmp14 < 2; tmp14++) {
switch (MMC_SWITCH_CAST(tmp14)) {
case 0: {
if (mmc__uniontype__metarecord__typedef__equal(tmp14_1,1,1) == 0) goto tmp13_end;
tmpMeta[1] = _OMC_LIT70;
goto tmp13_done;
}
case 1: {
tmpMeta[2] = mmc_mk_box2(3, &Absyn_Within_WITHIN__desc, omc_AbsynUtil_stripLast(threadData, _path));
tmpMeta[1] = tmpMeta[2];
goto tmp13_done;
}
}
goto tmp13_end;
tmp13_end: ;
}
goto goto_12;
goto_12:;
goto goto_2;
goto tmp13_done;
tmp13_done:;
}
}tmpMeta[3] = mmc_mk_box3(3, &Absyn_Program_PROGRAM__desc, tmpMeta[0], tmpMeta[1]);
tmpMeta[4] = mmc_mk_box2(3, &Dump_DumpOptions_DUMPOPTIONS__desc, _str);
_str = omc_Dump_unparseStr(threadData, tmpMeta[3], 0, tmpMeta[4]);
}
else
{
tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil);
omc_Error_addMessage(threadData, _OMC_LIT69, tmpMeta[0]);
_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;
tmpMeta[0] = mmc_mk_box2(5, &Values_Value_STRING__desc, _str);
_res = tmpMeta[0];
_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 tmpMeta[14] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_dumpOpt = _OMC_LIT71;
{
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;
_p = omc_SymbolTable_getAbsyn(threadData);
tmp6 = omc_InteractiveUtil_astContainsEncryptedClass(threadData, _p);
if (1 != tmp6) goto goto_2;
tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil);
omc_Error_addMessage(threadData, _OMC_LIT69, tmpMeta[0]);
tmp1 = _OMC_LIT52;
goto tmp3_done;
}
case 1: {
modelica_integer tmp7;
modelica_integer tmp8;
modelica_string tmp9 = 0;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta[0] = MMC_CAR(tmp4_1);
tmpMeta[1] = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],12,1) == 0) goto tmp3_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],0,1) == 0) goto tmp3_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],1,1) == 0) goto tmp3_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
if (16 != MMC_STRLEN(tmpMeta[4]) || strcmp(MMC_STRINGDATA(_OMC_LIT64), MMC_STRINGDATA(tmpMeta[4])) != 0) goto tmp3_end;
if (listEmpty(tmpMeta[1])) goto tmp3_end;
tmpMeta[5] = MMC_CAR(tmpMeta[1]);
tmpMeta[6] = MMC_CDR(tmpMeta[1]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[5],3,1) == 0) goto tmp3_end;
tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 2));
tmp7 = mmc_unbox_integer(tmpMeta[7]);
if (0 != tmp7) goto tmp3_end;
if (listEmpty(tmpMeta[6])) goto tmp3_end;
tmpMeta[8] = MMC_CAR(tmpMeta[6]);
tmpMeta[9] = MMC_CDR(tmpMeta[6]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[8],3,1) == 0) goto tmp3_end;
tmpMeta[10] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[8]), 2));
tmp8 = mmc_unbox_integer(tmpMeta[10]);
if (0 != tmp8) goto tmp3_end;
if (listEmpty(tmpMeta[9])) goto tmp3_end;
tmpMeta[11] = MMC_CAR(tmpMeta[9]);
tmpMeta[12] = MMC_CDR(tmpMeta[9]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[11],4,2) == 0) goto tmp3_end;
tmpMeta[13] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[11]), 2));
if (!listEmpty(tmpMeta[12])) goto tmp3_end;
_path = tmpMeta[13];
{
modelica_string tmp12_1;
tmp12_1 = omc_AbsynUtil_pathLastIdent(threadData, _path);
{
volatile mmc_switch_type tmp12;
int tmp13;
tmp12 = 0;
for (; tmp12 < 5; tmp12++) {
switch (MMC_SWITCH_CAST(tmp12)) {
case 0: {
if (5 != MMC_STRLEN(tmp12_1) || strcmp(MMC_STRINGDATA(_OMC_LIT74), MMC_STRINGDATA(tmp12_1)) != 0) goto tmp11_end;
tmp9 = omc_Dump_unparseStr(threadData, omc_SymbolTable_getAbsyn(threadData), 0, _OMC_LIT72);
goto tmp11_done;
}
case 1: {
if (5 != MMC_STRLEN(tmp12_1) || strcmp(MMC_STRINGDATA(_OMC_LIT75), MMC_STRINGDATA(tmp12_1)) != 0) goto tmp11_end;
tmp9 = omc_SCodeDump_programStr(threadData, omc_SymbolTable_getSCode(threadData), _OMC_LIT73);
goto tmp11_done;
}
case 2: {
if (21 != MMC_STRLEN(tmp12_1) || strcmp(MMC_STRINGDATA(_OMC_LIT76), MMC_STRINGDATA(tmp12_1)) != 0) goto tmp11_end;
tmp9 = omc_SCodeDump_programStr(threadData, omc_SymbolTable_getSCode(threadData), _OMC_LIT71);
goto tmp11_done;
}
case 3: {
if (8 != MMC_STRLEN(tmp12_1) || strcmp(MMC_STRINGDATA(_OMC_LIT77), MMC_STRINGDATA(tmp12_1)) != 0) goto tmp11_end;
tmp9 = omc_System_anyStringCode(threadData, omc_SymbolTable_getAbsyn(threadData));
goto tmp11_done;
}
case 4: {
tmp9 = _OMC_LIT52;
goto tmp11_done;
}
}
goto tmp11_end;
tmp11_end: ;
}
goto goto_10;
goto_10:;
goto goto_2;
goto tmp11_done;
tmp11_done:;
}
}tmp1 = tmp9;
goto tmp3_done;
}
case 2: {
modelica_integer tmp14;
modelica_integer tmp15;
modelica_boolean tmp16;
modelica_string tmp17 = 0;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta[0] = MMC_CAR(tmp4_1);
tmpMeta[1] = MMC_CDR(tmp4_1);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],12,1) == 0) goto tmp3_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],0,1) == 0) goto tmp3_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2));
if (listEmpty(tmpMeta[1])) goto tmp3_end;
tmpMeta[4] = MMC_CAR(tmpMeta[1]);
tmpMeta[5] = MMC_CDR(tmpMeta[1]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],3,1) == 0) goto tmp3_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
tmp14 = mmc_unbox_integer(tmpMeta[6]);
if (listEmpty(tmpMeta[5])) goto tmp3_end;
tmpMeta[7] = MMC_CAR(tmpMeta[5]);
tmpMeta[8] = MMC_CDR(tmpMeta[5]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],3,1) == 0) goto tmp3_end;
tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 2));
tmp15 = mmc_unbox_integer(tmpMeta[9]);
if (listEmpty(tmpMeta[8])) goto tmp3_end;
tmpMeta[10] = MMC_CAR(tmpMeta[8]);
tmpMeta[11] = MMC_CDR(tmpMeta[8]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[10],4,2) == 0) goto tmp3_end;
tmpMeta[12] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[10]), 2));
if (!listEmpty(tmpMeta[11])) goto tmp3_end;
_className = tmpMeta[3];
_interface_only = tmp14;
_short_only = tmp15;
_path = tmpMeta[12];
tmp16 = valueEq(_OMC_LIT65, _className);
if (0 != tmp16) goto goto_2;
_p = omc_SymbolTable_getAbsyn(threadData);
_scodeP = omc_SymbolTable_getSCode(threadData);
_absynClass = omc_InteractiveUtil_getPathedClassInProgram(threadData, _className, _p, 0);
_absynClass = (_interface_only?omc_AbsynUtil_getFunctionInterface(threadData, _absynClass):_absynClass);
_absynClass = (_short_only?omc_AbsynUtil_getShortClass(threadData, _absynClass):_absynClass);
tmpMeta[0] = mmc_mk_cons(_absynClass, MMC_REFSTRUCTLIT(mmc_nil));
tmpMeta[1] = mmc_mk_box3(3, &Absyn_Program_PROGRAM__desc, tmpMeta[0], _OMC_LIT70);
_p = tmpMeta[1];
_cl = omc_FBuiltin_getElementWithPathCheckBuiltin(threadData, _scodeP, _className);
{
modelica_string tmp20_1;
tmp20_1 = omc_AbsynUtil_pathLastIdent(threadData, _path);
{
volatile mmc_switch_type tmp20;
int tmp21;
tmp20 = 0;
for (; tmp20 < 5; tmp20++) {
switch (MMC_SWITCH_CAST(tmp20)) {
case 0: {
if (5 != MMC_STRLEN(tmp20_1) || strcmp(MMC_STRINGDATA(_OMC_LIT74), MMC_STRINGDATA(tmp20_1)) != 0) goto tmp19_end;
tmp17 = omc_Dump_unparseStr(threadData, _p, 0, _OMC_LIT72);
goto tmp19_done;
}
case 1: {
if (5 != MMC_STRLEN(tmp20_1) || strcmp(MMC_STRINGDATA(_OMC_LIT75), MMC_STRINGDATA(tmp20_1)) != 0) goto tmp19_end;
tmp17 = omc_SCodeDump_unparseElementStr(threadData, _cl, _OMC_LIT73);
goto tmp19_done;
}
case 2: {
if (21 != MMC_STRLEN(tmp20_1) || strcmp(MMC_STRINGDATA(_OMC_LIT76), MMC_STRINGDATA(tmp20_1)) != 0) goto tmp19_end;
tmp17 = omc_SCodeDump_unparseElementStr(threadData, _cl, _OMC_LIT71);
goto tmp19_done;
}
case 3: {
if (8 != MMC_STRLEN(tmp20_1) || strcmp(MMC_STRINGDATA(_OMC_LIT77), MMC_STRINGDATA(tmp20_1)) != 0) goto tmp19_end;
tmp17 = omc_System_anyStringCode(threadData, _p);
goto tmp19_done;
}
case 4: {
tmp17 = _OMC_LIT52;
goto tmp19_done;
}
}
goto tmp19_end;
tmp19_end: ;
}
goto goto_18;
goto_18:;
goto goto_2;
goto tmp19_done;
tmp19_done:;
}
}tmp1 = tmp17;
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;
tmpMeta[0] = mmc_mk_box2(5, &Values_Value_STRING__desc, _str);
_res = tmpMeta[0];
_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 tmpMeta[9] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_success = 0;
_outFilename = _OMC_LIT52;
if(omc_System_regularFileExists(threadData, _filename))
{
if(omc_Util_endsWith(threadData, _filename, _OMC_LIT98))
{
_workdir = (omc_System_directoryExists(threadData, _inWorkdir)?_inWorkdir:omc_System_pwd(threadData));
tmpMeta[0] = stringAppend(_OMC_LIT95,_workdir);
tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT96);
tmpMeta[2] = stringAppend(tmpMeta[1],_filename);
tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT97);
if((_skipUnzip || (((modelica_integer) 0) == omc_System_systemCall(threadData, tmpMeta[3], _OMC_LIT52))))
{
_s1 = omc_System_basename(threadData, _filename);
_s2 = omc_Util_removeLast4Char(threadData, _s1);
_s3 = listGet(omc_Util_stringSplitAtChar(threadData, _s2, _OMC_LIT87), ((modelica_integer) 1));
tmpMeta[4] = stringAppend(_workdir,_OMC_LIT0);
tmpMeta[5] = stringAppend(tmpMeta[4],_s2);
tmpMeta[6] = stringAppend(tmpMeta[5],_OMC_LIT88);
_filename1 = tmpMeta[6];
tmpMeta[4] = stringAppend(_workdir,_OMC_LIT0);
tmpMeta[5] = stringAppend(tmpMeta[4],_s2);
tmpMeta[6] = stringAppend(tmpMeta[5],_OMC_LIT0);
tmpMeta[7] = stringAppend(tmpMeta[6],_s2);
tmpMeta[8] = stringAppend(tmpMeta[7],_OMC_LIT89);
_filename2 = tmpMeta[8];
tmpMeta[4] = stringAppend(_workdir,_OMC_LIT0);
tmpMeta[5] = stringAppend(tmpMeta[4],_s3);
tmpMeta[6] = stringAppend(tmpMeta[5],_OMC_LIT88);
_filename3 = tmpMeta[6];
tmpMeta[4] = stringAppend(_workdir,_OMC_LIT0);
tmpMeta[5] = stringAppend(tmpMeta[4],_s3);
tmpMeta[6] = stringAppend(tmpMeta[5],_OMC_LIT0);
tmpMeta[7] = stringAppend(tmpMeta[6],_s3);
tmpMeta[8] = stringAppend(tmpMeta[7],_OMC_LIT89);
_filename4 = tmpMeta[8];
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;
}
}
}
tmpMeta[4] = stringAppend(_workdir,_OMC_LIT0);
tmpMeta[5] = stringAppend(tmpMeta[4],_s2);
tmpMeta[6] = stringAppend(tmpMeta[5],_OMC_LIT90);
_str1 = tmpMeta[6];
tmpMeta[4] = stringAppend(_workdir,_OMC_LIT0);
tmpMeta[5] = stringAppend(tmpMeta[4],_s2);
tmpMeta[6] = stringAppend(tmpMeta[5],_OMC_LIT0);
tmpMeta[7] = stringAppend(tmpMeta[6],_s2);
tmpMeta[8] = stringAppend(tmpMeta[7],_OMC_LIT91);
_str2 = tmpMeta[8];
tmpMeta[4] = stringAppend(_workdir,_OMC_LIT0);
tmpMeta[5] = stringAppend(tmpMeta[4],_s3);
tmpMeta[6] = stringAppend(tmpMeta[5],_OMC_LIT90);
_str3 = tmpMeta[6];
tmpMeta[4] = stringAppend(_workdir,_OMC_LIT0);
tmpMeta[5] = stringAppend(tmpMeta[4],_s3);
tmpMeta[6] = stringAppend(tmpMeta[5],_OMC_LIT0);
tmpMeta[7] = stringAppend(tmpMeta[6],_s3);
tmpMeta[8] = stringAppend(tmpMeta[7],_OMC_LIT91);
_str4 = tmpMeta[8];
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
{
tmpMeta[4] = 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_LIT94, tmpMeta[4]);
}
}
else
{
tmpMeta[4] = mmc_mk_cons(_filename, MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addMessage(threadData, _OMC_LIT86, tmpMeta[4]);
}
}
else
{
tmpMeta[0] = mmc_mk_cons(_filename, MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addMessage(threadData, _OMC_LIT83, tmpMeta[0]);
}
}
else
{
tmpMeta[0] = mmc_mk_cons(_filename, MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addMessage(threadData, _OMC_LIT80, tmpMeta[0]);
}
_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;
modelica_metatype tmpMeta[5] __attribute__((unused)) = {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_boolean tmp6;
modelica_boolean tmp7;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta[0] = MMC_CAR(tmp4_1);
tmpMeta[1] = MMC_CDR(tmp4_1);
_name = tmpMeta[0];
_names = tmpMeta[1];
tmp6 = (stringEqual(_version, _OMC_LIT52));
if (0 != tmp6) goto goto_2;
tmpMeta[0] = stringAppend(_mp,_OMC_LIT0);
tmpMeta[1] = stringAppend(tmpMeta[0],_name);
tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT87);
tmpMeta[3] = stringAppend(tmpMeta[2],_version);
_file = tmpMeta[3];
tmp7 = omc_System_directoryExists(threadData, _file);
if (1 != tmp7) goto goto_2;
tmp1 = omc_CevalScript_findModelicaPath2(threadData, _file, _names, _OMC_LIT52, 1);
goto tmp3_done;
}
case 1: {
modelica_boolean tmp8;
modelica_boolean tmp9;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta[0] = MMC_CAR(tmp4_1);
tmpMeta[1] = MMC_CDR(tmp4_1);
_name = tmpMeta[0];
tmp8 = (stringEqual(_version, _OMC_LIT52));
if (0 != tmp8) goto goto_2;
tmpMeta[0] = stringAppend(_mp,_OMC_LIT0);
tmpMeta[1] = stringAppend(tmpMeta[0],_name);
tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT87);
tmpMeta[3] = stringAppend(tmpMeta[2],_version);
tmpMeta[4] = stringAppend(tmpMeta[3],_OMC_LIT91);
_file = tmpMeta[4];
tmp9 = omc_System_regularFileExists(threadData, _file);
if (1 != tmp9) goto goto_2;
tmp1 = _mp;
goto tmp3_done;
}
case 2: {
modelica_boolean tmp10;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta[0] = MMC_CAR(tmp4_1);
tmpMeta[1] = MMC_CDR(tmp4_1);
_name = tmpMeta[0];
_names = tmpMeta[1];
tmpMeta[0] = stringAppend(_mp,_OMC_LIT0);
tmpMeta[1] = stringAppend(tmpMeta[0],_name);
_file = tmpMeta[1];
tmp10 = omc_System_directoryExists(threadData, _file);
if (1 != tmp10) goto goto_2;
tmp1 = omc_CevalScript_findModelicaPath2(threadData, _file, _names, _OMC_LIT52, 1);
goto tmp3_done;
}
case 3: {
modelica_boolean tmp11;
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta[0] = MMC_CAR(tmp4_1);
tmpMeta[1] = MMC_CDR(tmp4_1);
_name = tmpMeta[0];
tmpMeta[0] = stringAppend(_mp,_OMC_LIT0);
tmpMeta[1] = stringAppend(tmpMeta[0],_name);
tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT91);
_file = tmpMeta[2];
tmp11 = omc_System_regularFileExists(threadData, _file);
if (1 != tmp11) 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;
modelica_metatype tmpMeta[2] __attribute__((unused)) = {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: {
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta[0] = MMC_CAR(tmp4_1);
tmpMeta[1] = MMC_CDR(tmp4_1);
_mp = tmpMeta[0];
tmp1 = omc_CevalScript_findModelicaPath2(threadData, _mp, _names, _version, 0);
goto tmp3_done;
}
case 1: {
if (listEmpty(tmp4_1)) goto tmp3_end;
tmpMeta[0] = MMC_CAR(tmp4_1);
tmpMeta[1] = MMC_CDR(tmp4_1);
_mps = tmpMeta[1];
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;
modelica_metatype tmpMeta[4] __attribute__((unused)) = {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: {
if (11 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT107), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
_name = tmp4_2;
tmpMeta[0] = omc_System_strtok(threadData, _name, _OMC_LIT99);
if (listEmpty(tmpMeta[0])) goto goto_2;
tmpMeta[1] = MMC_CAR(tmpMeta[0]);
tmpMeta[2] = MMC_CDR(tmpMeta[0]);
_name = tmpMeta[1];
_names = tmpMeta[2];
tmpMeta[0] = mmc_mk_box2(4, &Absyn_Path_IDENT__desc, _name);
tmpMeta[1] = omc_InteractiveUtil_getPathedClassInProgram(threadData, tmpMeta[0], _program, 0);
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 8));
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2));
_fileName = tmpMeta[3];
_mp = omc_System_dirname(threadData, _fileName);
tmp1 = omc_CevalScript_findModelicaPath2(threadData, _mp, _names, _OMC_LIT52, 1);
goto tmp3_done;
}
case 1: {
modelica_boolean tmp6;
modelica_boolean tmp8;
modelica_string tmp9;
if (11 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT107), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
_name = tmp4_2;
_mp = tmp4_3;
tmp4 += 1;
tmpMeta[0] = omc_System_strtok(threadData, _name, _OMC_LIT99);
if (listEmpty(tmpMeta[0])) goto goto_2;
tmpMeta[1] = MMC_CAR(tmpMeta[0]);
tmpMeta[2] = MMC_CDR(tmpMeta[0]);
_name = tmpMeta[1];
_names = tmpMeta[2];
tmp6 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmpMeta[0] = mmc_mk_box2(4, &Absyn_Path_IDENT__desc, _name);
omc_InteractiveUtil_getPathedClassInProgram(threadData, tmpMeta[0], _program, 0);
tmp6 = 1;
goto goto_7;
goto_7:;
MMC_CATCH_INTERNAL(mmc_jumper)
if (tmp6) {goto goto_2;}
_gd = _OMC_LIT2;
_mps = omc_System_strtok(threadData, _mp, _gd);
_mp = omc_System_getLoadModelPath(threadData, _name, _OMC_LIT101, _mps, 0 ,&_name ,&_isDir);
tmp8 = (modelica_boolean)_isDir;
if(tmp8)
{
tmpMeta[0] = stringAppend(_mp,_name);
tmp9 = tmpMeta[0];
}
else
{
tmp9 = _mp;
}
_mp = tmp9;
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_LIT108), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
tmp4 += 1;
tmp1 = _OMC_LIT52;
goto tmp3_done;
}
case 3: {
if (1 != tmp4_4) goto tmp3_end;
if (11 != MMC_STRLEN(tmp4_1) || strcmp(MMC_STRINGDATA(_OMC_LIT107), MMC_STRINGDATA(tmp4_1)) != 0) goto tmp3_end;
_name = tmp4_2;
_mp = tmp4_3;
tmpMeta[0] = omc_System_strtok(threadData, _name, _OMC_LIT99);
if (listEmpty(tmpMeta[0])) goto goto_2;
tmpMeta[1] = MMC_CAR(tmpMeta[0]);
tmpMeta[2] = MMC_CDR(tmpMeta[0]);
_name = tmpMeta[1];
tmpMeta[0] = stringAppend(_OMC_LIT102,_name);
tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT103);
tmpMeta[2] = stringAppend(tmpMeta[1],_mp);
_str = tmpMeta[2];
tmpMeta[0] = mmc_mk_cons(_str, MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addMessage(threadData, _OMC_LIT106, tmpMeta[0]);
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 tmpMeta[1] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_str1 = omc_System_uriToClassAndPath(threadData, _uri ,&_str2 ,&_str3);
tmpMeta[0] = stringAppend(omc_CevalScript_getBasePathFromUri(threadData, _str1, _str2, _program, omc_Settings_getModelicaPath(threadData, omc_Testsuite_isRunning(threadData)), _printError),_str3);
_path = tmpMeta[0];
_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 tmpMeta[3] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta[0] = _node;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1));
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2));
_str = tmpMeta[1];
_strs = tmpMeta[2];
tmpMeta[0] = mmc_mk_cons(_str, _strs);
_b = omc_List_exist1(threadData, tmpMeta[0], 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;
modelica_metatype tmpMeta[3] __attribute__((unused)) = {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_boolean tmp6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8) == 0) goto tmp3_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 9));
_name = tmpMeta[0];
tmpMeta[0] = stringAppend(_name,_suffix);
tmp6 = omc_System_regularFileExists(threadData, tmpMeta[0]);
if (0 != tmp6) goto goto_2;
tmp1 = _name;
goto tmp3_done;
}
case 1: {
modelica_boolean tmp7;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8) == 0) goto tmp3_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 9));
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
_name = tmpMeta[0];
_fileName = tmpMeta[2];
tmpMeta[0] = stringAppend(_name,_suffix);
tmp7 = omc_System_fileIsNewerThan(threadData, _fileName, tmpMeta[0]);
if (1 != tmp7) 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 tmpMeta[4] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta[0] = _val;
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],12,1) == 0) MMC_THROW_INTERNAL();
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,1) == 0) MMC_THROW_INTERNAL();
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],1,1) == 0) MMC_THROW_INTERNAL();
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2));
_str = tmpMeta[3];
_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;
modelica_metatype tmpMeta[6] __attribute__((unused)) = {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: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8) == 0) goto tmp3_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,8) == 0) goto tmp3_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 9));
_name = tmpMeta[0];
_elts = tmpMeta[2];
_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);
tmpMeta[0] = mmc_mk_cons(_name, _protectedDepends);
tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta[2] = mmc_mk_box2(0, tmpMeta[0], tmpMeta[1]);
tmpMeta[3] = omc_Graph_allReachableNodes(threadData, tmpMeta[2], _deps, boxvar_stringEq);
if (listEmpty(tmpMeta[3])) goto goto_2;
tmpMeta[4] = MMC_CAR(tmpMeta[3]);
tmpMeta[5] = MMC_CDR(tmpMeta[3]);
_allDepends = tmpMeta[5];
_allDepends = omc_List_map1r(threadData, _allDepends, boxvar_stringAppend, _prefix);
_allDepends = omc_List_map1(threadData, _allDepends, boxvar_stringAppend, _OMC_LIT109);
tmpMeta[0] = stringAppend(_prefix,_name);
tmpMeta[1] = stringAppend(tmpMeta[0],_suffix);
tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT110);
tmpMeta[3] = stringAppend(tmpMeta[2],_name);
tmpMeta[4] = stringAppend(tmpMeta[3],_OMC_LIT111);
tmpMeta[5] = stringAppend(tmpMeta[4],stringDelimitList(_allDepends, _OMC_LIT87));
tmp1 = tmpMeta[5];
goto tmp3_done;
}
case 1: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8) == 0) goto tmp3_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,8) == 0) goto tmp3_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 9));
_name = tmpMeta[0];
_elts = tmpMeta[2];
_info = tmpMeta[3];
_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* tmp6;
modelica_string __omcQ_24tmpVar0;
int tmp7;
modelica_metatype _e_loopVar = 0;
modelica_metatype _e;
_e_loopVar = _deps;
tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil);
__omcQ_24tmpVar1 = tmpMeta[1];
tmp6 = &__omcQ_24tmpVar1;
while(1) {
tmp7 = 1;
if (!listEmpty(_e_loopVar)) {
_e = MMC_CAR(_e_loopVar);
_e_loopVar = MMC_CDR(_e_loopVar);
tmp7--;
}
if (tmp7 == 0) {
__omcQ_24tmpVar0 = omc_Util_tuple21(threadData, _e);
*tmp6 = mmc_mk_cons(__omcQ_24tmpVar0,0);
tmp6 = &MMC_CDR(*tmp6);
} else if (tmp7 == 1) {
break;
} else {
goto goto_2;
}
}
*tmp6 = mmc_mk_nil();
tmpMeta[0] = __omcQ_24tmpVar1;
}
_allDepends = tmpMeta[0];
{
modelica_metatype _d;
for (tmpMeta[0] = _protectedDepends; !listEmpty(tmpMeta[0]); tmpMeta[0]=MMC_CDR(tmpMeta[0]))
{
_d = MMC_CAR(tmpMeta[0]);
if((!listMember(_d, _allDepends)))
{
tmpMeta[1] = mmc_mk_cons(_name, mmc_mk_cons(_name, mmc_mk_cons(_d, MMC_REFSTRUCTLIT(mmc_nil))));
omc_Error_addSourceMessage(threadData, _OMC_LIT114, tmpMeta[1], _info);
goto goto_2;
}
}
}
{
modelica_metatype _dep;
for (tmpMeta[0] = _deps; !listEmpty(tmpMeta[0]); tmpMeta[0]=MMC_CDR(tmpMeta[0]))
{
_dep = MMC_CAR(tmpMeta[0]);
tmpMeta[1] = _dep;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1));
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
_tmp1 = tmpMeta[2];
_tmp2 = tmpMeta[3];
{
modelica_metatype _d;
for (tmpMeta[1] = _tmp2; !listEmpty(tmpMeta[1]); tmpMeta[1]=MMC_CDR(tmpMeta[1]))
{
_d = MMC_CAR(tmpMeta[1]);
if((!listMember(_d, _allDepends)))
{
tmpMeta[2] = mmc_mk_cons(_name, mmc_mk_cons(_tmp1, mmc_mk_cons(_d, MMC_REFSTRUCTLIT(mmc_nil))));
omc_Error_addSourceMessage(threadData, _OMC_LIT114, tmpMeta[2], _info);
goto goto_2;
}
}
}
}
}
goto goto_2;
goto tmp3_done;
}
case 2: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8) == 0) goto tmp3_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 9));
_name = tmpMeta[0];
_info = tmpMeta[1];
tmpMeta[0] = mmc_mk_cons(_name, MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addSourceMessage(threadData, _OMC_LIT117, tmpMeta[0], _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 tmpMeta[3] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta[0] = _elt;
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],2,8) == 0) MMC_THROW_INTERNAL();
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2));
_str = tmpMeta[1];
tmpMeta[0] = stringAppend(_str,_OMC_LIT118);
tmpMeta[1] = stringAppend(tmpMeta[0],(omc_CevalScript_containsPublicInterface(threadData, _elt)?_OMC_LIT119:_OMC_LIT120));
tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT14);
fputs(MMC_STRINGDATA(tmpMeta[2]),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;
modelica_metatype tmpMeta[1] __attribute__((unused)) = {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: {
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;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,0) == 0) goto tmp3_end;
tmp1 = 1;
goto tmp3_done;
}
case 1: {
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;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],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;
modelica_metatype tmpMeta[4] __attribute__((unused)) = {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: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8) == 0) goto tmp3_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,0) == 0) goto tmp3_end;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],8,0) == 0) goto tmp3_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],0,8) == 0) goto tmp3_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2));
_elts = tmpMeta[3];
tmp1 = omc_List_exist1(threadData, _elts, boxvar_CevalScript_containsImport2, _visibility);
goto tmp3_done;
}
case 1: {
_name = omc_SCodeUtil_elementName(threadData, _elt);
tmpMeta[0] = stringAppend(_OMC_LIT121,_name);
_name = tmpMeta[0];
tmpMeta[0] = mmc_mk_cons(_name, MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addMessage(threadData, _OMC_LIT124, tmpMeta[0]);
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;
modelica_metatype tmpMeta[2] __attribute__((unused)) = {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: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8) == 0) goto tmp3_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],9,1) == 0) goto tmp3_end;
tmp1 = 0;
goto tmp3_done;
}
case 3: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,3,8) == 0) goto tmp3_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,0) == 0) goto tmp3_end;
tmp1 = 1;
goto tmp3_done;
}
case 4: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8) == 0) goto tmp3_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],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;
modelica_metatype tmpMeta[4] __attribute__((unused)) = {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: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8) == 0) goto tmp3_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,0) == 0) goto tmp3_end;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],8,0) == 0) goto tmp3_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],0,8) == 0) goto tmp3_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2));
_elts = tmpMeta[3];
tmp1 = omc_List_exist(threadData, _elts, boxvar_CevalScript_containsPublicInterface2);
goto tmp3_done;
}
case 1: {
_name = omc_SCodeUtil_elementName(threadData, _elt);
tmpMeta[0] = stringAppend(_OMC_LIT121,_name);
_name = tmpMeta[0];
tmpMeta[0] = mmc_mk_cons(_name, MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addMessage(threadData, _OMC_LIT124, tmpMeta[0]);
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 tmpMeta[4] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta[0] = _deps;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1));
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2));
_str = tmpMeta[1];
_strs = tmpMeta[2];
tmpMeta[0] = stringAppend(intString(listLength(_strs)),_OMC_LIT125);
tmpMeta[1] = stringAppend(tmpMeta[0],_str);
tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT111);
tmpMeta[3] = stringAppend(tmpMeta[2],stringDelimitList(_strs, _OMC_LIT126));
_str = tmpMeta[3];
_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 tmpMeta[4] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta[0] = _deps;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1));
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2));
_str = tmpMeta[1];
_strs = tmpMeta[2];
tmpMeta[0] = stringAppend(_str,_OMC_LIT127);
tmpMeta[1] = stringAppend(tmpMeta[0],intString(listLength(_strs)));
tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT128);
tmpMeta[3] = stringAppend(tmpMeta[2],stringDelimitList(_strs, _OMC_LIT126));
_str = tmpMeta[3];
_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 tmpMeta[2] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta[0] = _node1;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1));
_s1 = tmpMeta[1];
tmpMeta[0] = _node2;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1));
_s2 = tmpMeta[1];
_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 tmpMeta[2] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta[0] = _node1;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2));
_deps1 = tmpMeta[1];
tmpMeta[0] = _node2;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2));
_deps2 = tmpMeta[1];
_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;
modelica_metatype tmpMeta[2] __attribute__((unused)) = {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: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,3) == 0) goto tmp3_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,2) == 0) goto tmp3_end;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3));
_path = tmpMeta[1];
tmp1 = omc_AbsynUtil_pathFirstIdent(threadData, _path);
goto tmp3_done;
}
case 1: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,3) == 0) goto tmp3_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,2) == 0) goto tmp3_end;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3));
_path = tmpMeta[1];
tmp1 = omc_AbsynUtil_pathFirstIdent(threadData, _path);
goto tmp3_done;
}
case 2: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,3) == 0) goto tmp3_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],1,1) == 0) goto tmp3_end;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2));
_path = tmpMeta[1];
tmp1 = omc_AbsynUtil_pathFirstIdent(threadData, _path);
goto tmp3_done;
}
case 3: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,3) == 0) goto tmp3_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],2,1) == 0) goto tmp3_end;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2));
_path = tmpMeta[1];
tmp1 = omc_AbsynUtil_pathFirstIdent(threadData, _path);
goto tmp3_done;
}
case 4: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,3) == 0) goto tmp3_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],3,2) == 0) goto tmp3_end;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2));
_path = tmpMeta[1];
tmp1 = omc_AbsynUtil_pathFirstIdent(threadData, _path);
goto tmp3_done;
}
case 5: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,3) == 0) goto tmp3_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
_imp = tmpMeta[0];
_info = tmpMeta[1];
tmpMeta[0] = stringAppend(_OMC_LIT129,omc_Dump_unparseImportStr(threadData, _imp));
_str = tmpMeta[0];
tmpMeta[0] = mmc_mk_cons(_str, MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addSourceMessage(threadData, _OMC_LIT124, tmpMeta[0], _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 tmpMeta[5] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
{
modelica_string _str = NULL;
volatile mmc_switch_type tmp3;
int tmp4;
tmp3 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp2_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp3 < 2; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
tmpMeta[1] = mmc_mk_cons(_name, MMC_REFSTRUCTLIT(mmc_nil));
tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta[3] = mmc_mk_box2(0, tmpMeta[1], tmpMeta[2]);
tmpMeta[4] = mmc_mk_cons(_name, MMC_REFSTRUCTLIT(mmc_nil));
tmpMeta[0] = omc_List_setDifference(threadData, omc_Graph_allReachableNodes(threadData, tmpMeta[3], _oldgraph, boxvar_stringEq), tmpMeta[4]);
goto tmp2_done;
}
case 1: {
tmpMeta[1] = stringAppend(_OMC_LIT130,_name);
_str = tmpMeta[1];
tmpMeta[1] = mmc_mk_cons(_str, MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addMessage(threadData, _OMC_LIT124, tmpMeta[1]);
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 < 2) {
goto tmp2_top;
}
MMC_THROW_INTERNAL();
tmp2_done2:;
}
}
_edges = tmpMeta[0];
_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 tmpMeta[4] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
{
modelica_metatype _elts = NULL;
volatile mmc_switch_type tmp3;
int tmp4;
tmp3 = 0;
for (; tmp3 < 1; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
tmpMeta[1] = omc_List_getMemberOnTrue(threadData, _name, _sp, boxvar_SCodeUtil_isClassNamed);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,8) == 0) goto goto_1;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],0,8) == 0) goto goto_1;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2));
_elts = tmpMeta[3];
_elts = omc_List_select(threadData, _elts, boxvar_SCodeUtil_elementIsPublicImport);
tmpMeta[0] = omc_List_map(threadData, _elts, boxvar_CevalScript_importDepenency);
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
goto_1:;
MMC_THROW_INTERNAL();
goto tmp2_done;
tmp2_done:;
}
}
_edges = tmpMeta[0];
_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 tmpMeta[4] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
{
modelica_metatype _elts = NULL;
volatile mmc_switch_type tmp3;
int tmp4;
tmp3 = 0;
for (; tmp3 < 1; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
tmpMeta[1] = omc_List_getMemberOnTrue(threadData, _name, _sp, boxvar_SCodeUtil_isClassNamed);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,8) == 0) goto goto_1;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],0,8) == 0) goto goto_1;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2));
_elts = tmpMeta[3];
omc_SCodeUtil_partitionElements(threadData, _elts ,NULL ,NULL ,&_elts ,NULL);
tmpMeta[0] = omc_List_map(threadData, _elts, boxvar_CevalScript_importDepenency);
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
goto_1:;
MMC_THROW_INTERNAL();
goto tmp2_done;
tmp2_done:;
}
}
_edges = tmpMeta[0];
_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 tmpMeta[5] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp3_1;
tmp3_1 = _val;
{
modelica_string _str = NULL;
modelica_metatype _strs = NULL;
modelica_metatype _vals = NULL;
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,5,2) == 0) goto tmp2_end;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
if (listEmpty(tmpMeta[1])) goto tmp2_end;
tmpMeta[2] = MMC_CAR(tmpMeta[1]);
tmpMeta[3] = MMC_CDR(tmpMeta[1]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],2,1) == 0) goto tmp2_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2));
if (0 != MMC_STRLEN(tmpMeta[4]) || strcmp(MMC_STRINGDATA(_OMC_LIT52), MMC_STRINGDATA(tmpMeta[4])) != 0) goto tmp2_end;
tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil);
omc_Error_addSourceMessage(threadData, _OMC_LIT133, tmpMeta[1], _info);
goto goto_1;
goto tmp2_done;
}
case 1: {
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,5,2) == 0) goto tmp2_end;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
if (listEmpty(tmpMeta[1])) goto tmp2_end;
tmpMeta[2] = MMC_CAR(tmpMeta[1]);
tmpMeta[3] = MMC_CDR(tmpMeta[1]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],2,1) == 0) goto tmp2_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2));
_str = tmpMeta[4];
_vals = tmpMeta[3];
_strs = omc_List_select(threadData, omc_List_map(threadData, _vals, boxvar_ValuesUtil_extractValueString), boxvar_Util_isNotEmptyString);
tmpMeta[1] = mmc_mk_cons(_str, _strs);
tmpMeta[2] = mmc_mk_box2(0, _str, tmpMeta[1]);
tmpMeta[0] = tmpMeta[2];
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
goto_1:;
MMC_THROW_INTERNAL();
goto tmp2_done;
tmp2_done:;
}
}
_assoc = tmpMeta[0];
_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 tmpMeta[4] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp3_1;
tmp3_1 = _elt;
{
modelica_metatype _ann = NULL;
modelica_string _str = NULL;
volatile mmc_switch_type tmp3;
int tmp4;
tmp3 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp2_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp3 < 2; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,8) == 0) goto tmp2_end;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 8));
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (optionNone(tmpMeta[2])) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 1));
_ann = tmpMeta[3];
tmpMeta[1] = omc_SCodeUtil_getNamedAnnotation(threadData, _ann, _OMC_LIT134, NULL);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],3,1) == 0) goto goto_1;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
_str = tmpMeta[2];
tmpMeta[0] = omc_Util_assoc(threadData, _str, _assoc);
goto tmp2_done;
}
case 1: {
tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil);
omc_Error_addSourceMessage(threadData, _OMC_LIT133, tmpMeta[1], 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 < 2) {
goto tmp2_top;
}
MMC_THROW_INTERNAL();
tmp2_done2:;
}
}
_it = tmpMeta[0];
_return: OMC_LABEL_UNUSED
return _it;
}
PROTECTED_FUNCTION_STATIC void omc_CevalScript_verifyInterfaceType(threadData_t *threadData, modelica_metatype _elt, modelica_metatype _expected)
{
modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
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_integer tmp5;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,8) == 0) goto tmp2_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],17,5) == 0) goto tmp2_end;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5));
tmp5 = mmc_unbox_integer(tmpMeta[1]);
if (1 != tmp5) goto tmp2_end;
goto tmp2_done;
}
case 1: {
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[0] = MMC_CAR(tmp3_2);
tmpMeta[1] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,8) == 0) goto tmp2_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 8));
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2));
if (optionNone(tmpMeta[3])) goto tmp2_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 1));
_name = tmpMeta[0];
_ann = tmpMeta[4];
tmpMeta[1] = omc_SCodeUtil_getNamedAnnotation(threadData, _ann, _OMC_LIT134, &tmpMeta[0]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],3,1) == 0) goto goto_1;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
_str = tmpMeta[2];
_info = tmpMeta[0];
tmpMeta[0] = mmc_mk_cons(_str, mmc_mk_cons(_name, MMC_REFSTRUCTLIT(mmc_nil)));
omc_Error_assertionOrAddSourceMessage(threadData, listMember(_str, _expected), _OMC_LIT137, tmpMeta[0], _info);
goto tmp2_done;
}
case 2: {
tmpMeta[0] = stringAppend(omc_SCodeDump_unparseElementStr(threadData, _elt, _OMC_LIT73),_OMC_LIT14);
fputs(MMC_STRINGDATA(tmpMeta[0]),stdout);
tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil);
omc_Error_addSourceMessage(threadData, _OMC_LIT133, tmpMeta[0], 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;
modelica_metatype tmpMeta[1] __attribute__((unused)) = {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: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,15,1) == 0) goto tmp3_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],3,0) == 0) goto tmp3_end;
tmp1 = 1;
goto tmp3_done;
}
case 7: {
modelica_boolean tmp6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,14,2) == 0) goto tmp3_end;
{
modelica_boolean __omcQ_24tmpVar7;
modelica_boolean __omcQ_24tmpVar6;
int tmp7;
modelica_metatype _t_loopVar = 0;
modelica_metatype _t;
_t_loopVar = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_ty), 2)));
__omcQ_24tmpVar7 = 1;
while(1) {
tmp7 = 1;
if (!listEmpty(_t_loopVar)) {
_t = MMC_CAR(_t_loopVar);
_t_loopVar = MMC_CDR(_t_loopVar);
tmp7--;
}
if (tmp7 == 0) {
__omcQ_24tmpVar6 = omc_CevalScript_isSimpleAPIFunctionArg(threadData, _t);
__omcQ_24tmpVar7 = (__omcQ_24tmpVar6 && __omcQ_24tmpVar7);
} else if (tmp7 == 1) {
break;
} else {
goto goto_2;
}
}
tmp6 = __omcQ_24tmpVar7;
}
tmp1 = tmp6;
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;
modelica_metatype tmpMeta[2] __attribute__((unused)) = {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_boolean tmp6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,11,4) == 0) goto tmp3_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4));
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],1,2) == 0) goto tmp3_end;
{
modelica_boolean __omcQ_24tmpVar9;
modelica_boolean tmp7 = 0;
modelica_boolean __omcQ_24tmpVar8;
int tmp12;
modelica_metatype _fa_loopVar = 0;
modelica_metatype _fa;
_fa_loopVar = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_ty), 2)));
__omcQ_24tmpVar9 = 1;
while(1) {
tmp12 = 1;
if (!listEmpty(_fa_loopVar)) {
_fa = MMC_CAR(_fa_loopVar);
_fa_loopVar = MMC_CDR(_fa_loopVar);
tmp12--;
}
if (tmp12 == 0) {
{
modelica_metatype tmp10_1;
tmp10_1 = _fa;
{
volatile mmc_switch_type tmp10;
int tmp11;
tmp10 = 0;
for (; tmp10 < 1; tmp10++) {
switch (MMC_SWITCH_CAST(tmp10)) {
case 0: {
tmp7 = omc_CevalScript_isSimpleAPIFunctionArg(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fa), 3))));
goto tmp9_done;
}
}
goto tmp9_end;
tmp9_end: ;
}
goto goto_8;
goto_8:;
goto goto_2;
goto tmp9_done;
tmp9_done:;
}
}__omcQ_24tmpVar8 = tmp7;
__omcQ_24tmpVar9 = (__omcQ_24tmpVar8 && __omcQ_24tmpVar9);
} else if (tmp12 == 1) {
break;
} else {
goto goto_2;
}
}
tmp6 = __omcQ_24tmpVar9;
}
tmp1 = (omc_CevalScript_isSimpleAPIFunctionArg(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_ty), 3)))) && tmp6);
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_LIT138), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 176 /* dgeev */: {
if (5 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT139), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 242 /* dgegv */: {
if (5 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT140), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 148 /* dgels */: {
if (5 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT141), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 140 /* dgelsx */: {
if (6 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT142), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 141 /* dgelsy */: {
if (6 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT143), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 92 /* dgeqpf */: {
if (6 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT144), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 126 /* dgesv */: {
if (5 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT145), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 162 /* dgesvd */: {
if (6 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT146), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 97 /* dgetrf */: {
if (6 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT147), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 100 /* dgetri */: {
if (6 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT148), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 110 /* dgetrs */: {
if (6 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT149), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 59 /* dgglse */: {
if (6 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT150), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 77 /* dgtsv */: {
if (5 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT151), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
goto tmp2_done;
}
case 244 /* dorgqr */: {
if (6 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT152), 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)
{
modelica_metatype tmpMeta[10] __attribute__((unused)) = {0};
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_boolean tmp5;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,8) == 0) goto tmp2_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],9,1) == 0) goto tmp2_end;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],1,1) == 0) goto tmp2_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],0,8) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 9));
if (optionNone(tmpMeta[3])) goto tmp2_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 1));
tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
if (optionNone(tmpMeta[5])) goto tmp2_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 1));
tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 6));
if (optionNone(tmpMeta[7])) goto tmp2_end;
tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 1));
tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[8]), 2));
_fid = tmpMeta[6];
_mod = tmpMeta[9];
tmpMeta[0] = omc_Mod_getUnelabedSubMod(threadData, _mod, _OMC_LIT153);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,5) == 0) goto goto_1;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5));
if (optionNone(tmpMeta[1])) goto goto_1;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1));
_lib = tmpMeta[2];
tmp5 = (omc_CevalScript_checkLibraryUsage(threadData, _OMC_LIT154, _lib) || omc_CevalScript_checkLibraryUsage(threadData, _OMC_LIT155, _lib));
if (1 != tmp5) goto goto_1;
omc_CevalScript_isCevaluableFunction2(threadData, _fid);
goto tmp2_done;
}
case 1: {
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,8) == 0) goto tmp2_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],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;
modelica_metatype tmpMeta[1] __attribute__((unused)) = {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: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,3,1) == 0) goto tmp3_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
_s = tmpMeta[0];
tmp1 = (stringEqual(_s, _inLibrary));
goto tmp3_done;
}
case 1: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,13,1) == 0) goto tmp3_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
_exps = tmpMeta[0];
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;
modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
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: {
if (mmc__uniontype__metarecord__typedef__equal(tmp3_2,1,0) == 0) goto tmp2_end;
tmpMeta[2] = omc_AbsynUtil_splitQualAndIdentPath(threadData, _funcpath, &tmpMeta[0]);
_funcpath2 = tmpMeta[2];
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],1,1) == 0) goto goto_1;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2));
if (11 != MMC_STRLEN(tmpMeta[1]) || strcmp("constructor", MMC_STRINGDATA(tmpMeta[1])) != 0) goto goto_1;
_info = (valueEq(_msg, _OMC_LIT156)?mmc_mk_none():_OMC_LIT159);
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[6] __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_integer tmp6;
modelica_boolean tmp7;
modelica_boolean tmp8;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_3,13,3) == 0) goto tmp3_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 2));
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 4));
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 4));
tmp6 = mmc_unbox_integer(tmpMeta[4]);
if (0 != tmp6) goto tmp3_end;
_funcpath = tmpMeta[2];
_cache = tmp4_1;
_env = tmp4_2;
_vallst = tmp4_4;
_msg = tmp4_5;
tmp7 = omc_Flags_isSet(threadData, _OMC_LIT163);
if (1 != tmp7) goto goto_2;
tmp8 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
omc_CevalScript_cevalIsExternalObjectConstructor(threadData, _cache, _funcpath, _env, _msg);
tmp8 = 1;
goto goto_9;
goto_9:;
MMC_CATCH_INTERNAL(mmc_jumper)
if (tmp8) {goto goto_2;}
tmpMeta[5] = omc_Lookup_lookupClass(threadData, _cache, _env, _funcpath, mmc_mk_none(), &tmpMeta[2], &tmpMeta[4]);
_cache = tmpMeta[5];
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],2,8) == 0) goto goto_2;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 5));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],1,0) == 0) goto goto_2;
_sc = tmpMeta[2];
_env = tmpMeta[4];
omc_CevalScript_isCevaluableFunction(threadData, _sc);
tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta[3] = MMC_REFSTRUCTLIT(mmc_nil);
_cache = omc_InstFunction_implicitFunctionInstantiation(threadData, _cache, _env, tmpMeta[2], _OMC_LIT164, _OMC_LIT165, _sc, tmpMeta[3] ,&_env ,NULL);
_func = omc_FCore_getCachedInstFunc(threadData, _cache, _funcpath);
tmpMeta[0+0] = omc_CevalFunction_evaluate(threadData, _cache, _env, _func, _vallst, &tmpMeta[0+1]);
goto tmp3_done;
}
case 1: {
modelica_integer tmp10;
modelica_boolean tmp11;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_3,13,3) == 0) goto tmp3_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 2));
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 4));
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 4));
tmp10 = mmc_unbox_integer(tmpMeta[4]);
if (0 != tmp10) goto tmp3_end;
_funcpath = tmpMeta[2];
_cache = tmp4_1;
_env = tmp4_2;
_vallst = tmp4_4;
_msg = tmp4_5;
if (!(_bIsCompleteFunction && omc_Flags_isSet(threadData, _OMC_LIT180))) goto tmp3_end;
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;}
if(omc_Flags_isSet(threadData, _OMC_LIT170))
{
tmpMeta[2] = stringAppend(_OMC_LIT166,omc_AbsynUtil_pathString(threadData, _funcpath, _OMC_LIT99, 1, 0));
tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT14);
fputs(MMC_STRINGDATA(tmpMeta[3]),stdout);
}
_p = omc_SymbolTable_getAbsyn(threadData);
_cache = omc_CevalScript_cevalGenerateFunction(threadData, _cache, _env, _p, _funcpath ,&_funcstr ,&_fileName);
_print_debug = omc_Flags_isSet(threadData, _OMC_LIT170);
_libHandle = omc_System_loadLibrary(threadData, _fileName, _print_debug);
tmpMeta[2] = stringAppend(_OMC_LIT171,_funcstr);
_funcHandle = omc_System_lookupFunction(threadData, _libHandle, tmpMeta[2]);
omc_ExecStat_execStatReset(threadData);
_newval = omc_DynLoad_executeFunction(threadData, _funcHandle, _vallst, _print_debug);
tmpMeta[2] = stringAppend(_OMC_LIT172,omc_AbsynUtil_pathString(threadData, _funcpath, _OMC_LIT99, 1, 0));
tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT173);
omc_ExecStat_execStat(threadData, tmpMeta[3]);
omc_System_freeLibrary(threadData, _libHandle, _print_debug);
tmpMeta[2] = omc_InteractiveUtil_getPathedClassInProgram(threadData, _funcpath, _p, 0);
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 6));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],9,1) == 0) goto goto_2;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 8));
_info = tmpMeta[4];
_w = omc_InteractiveUtil_buildWithin(threadData, _funcpath);
if(omc_Flags_isSet(threadData, _OMC_LIT170))
{
tmpMeta[2] = stringAppend(_OMC_LIT174,omc_AbsynUtil_pathString(threadData, _funcpath, _OMC_LIT99, 1, 0));
tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT175);
tmpMeta[4] = stringAppend(tmpMeta[3],omc_Dump_unparseWithin(threadData, _w));
tmpMeta[5] = stringAppend(tmpMeta[4],_OMC_LIT14);
fputs(MMC_STRINGDATA(tmpMeta[5]),stdout);
}
omc_AbsynUtil_getFileNameFromInfo(threadData, _info);
if(omc_Flags_isSet(threadData, _OMC_LIT170))
{
tmpMeta[2] = stringAppend(_OMC_LIT176,omc_AbsynUtil_pathString(threadData, _funcpath, _OMC_LIT99, 1, 0));
tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT14);
fputs(MMC_STRINGDATA(tmpMeta[3]),stdout);
}
tmpMeta[0+0] = _cache;
tmpMeta[0+1] = _newval;
goto tmp3_done;
}
case 2: {
modelica_boolean tmp13;
modelica_boolean tmp14;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_3,13,3) == 0) goto tmp3_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 2));
_funcpath = tmpMeta[2];
if(omc_Flags_isSet(threadData, _OMC_LIT170))
{
tmpMeta[2] = stringAppend(_OMC_LIT181,omc_AbsynUtil_pathString(threadData, _funcpath, _OMC_LIT99, 1, 0));
tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT14);
fputs(MMC_STRINGDATA(tmpMeta[3]),stdout);
}
tmp13 = omc_Flags_isSet(threadData, _OMC_LIT180);
if (0 != tmp13) goto goto_2;
tmp14 = omc_Flags_isSet(threadData, _OMC_LIT185);
if (1 != tmp14) goto goto_2;
omc_Debug_trace(threadData, _OMC_LIT186);
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;
modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
if(isNone(getGlobalRoot(((modelica_integer) 20))))
{
setGlobalRoot(((modelica_integer) 20), _OMC_LIT187);
_numCheckpoints = omc_ErrorExt_getNumCheckpoints(threadData);
{
{
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);
tmpMeta[0] = stringAppend(_OMC_LIT188,omc_ExpressionDump_printExpStr(threadData, _inExp));
tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT189);
tmpMeta[2] = stringAppend(tmpMeta[1],stringDelimitList(omc_StackOverflow_readableStacktraceMessages(threadData), _OMC_LIT14));
{
modelica_metatype tmp6_1;
tmp6_1 = _inMsg;
{
modelica_metatype _info = NULL;
volatile mmc_switch_type tmp6;
int tmp7;
tmp6 = 0;
for (; tmp6 < 2; tmp6++) {
switch (MMC_SWITCH_CAST(tmp6)) {
case 0: {
if (mmc__uniontype__metarecord__typedef__equal(tmp6_1,0,1) == 0) goto tmp5_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp6_1), 2));
_info = tmpMeta[4];
tmpMeta[3] = _info;
goto tmp5_done;
}
case 1: {
tmpMeta[3] = _OMC_LIT191;
goto tmp5_done;
}
}
goto tmp5_end;
tmp5_end: ;
}
goto goto_4;
goto_4:;
MMC_THROW_INTERNAL();
goto tmp5_done;
tmp5_done:;
}
}
omc_Error_addInternalError(threadData, tmpMeta[2], tmpMeta[3]);
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[8] __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: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_3,13,3) == 0) goto tmp3_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 2));
_funcpath = tmpMeta[2];
_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_boolean tmp6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_3,13,3) == 0) goto tmp3_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 2));
_funcpath = tmpMeta[2];
_cache = tmp4_1;
_env = tmp4_2;
_msg = tmp4_5;
tmp6 = omc_FGraph_isNotEmpty(threadData, _env);
if (1 != tmp6) goto goto_2;
omc_CevalScript_cevalIsExternalObjectConstructor(threadData, _cache, _funcpath, _env, _msg);
goto goto_2;
goto tmp3_done;
}
case 2: {
modelica_boolean tmp7;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_3,13,3) == 0) goto tmp3_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 2));
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 4));
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],9,3) == 0) goto tmp3_end;
tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[5],3,1) == 0) goto tmp3_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 2));
tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 3));
_funcpath = tmpMeta[2];
_complexName = tmpMeta[6];
_varLst = tmpMeta[7];
_cache = tmp4_1;
_env = tmp4_2;
_pubVallst = tmp4_4;
_msg = tmp4_5;
if(omc_Flags_isSet(threadData, _OMC_LIT170))
{
tmpMeta[2] = stringAppend(_OMC_LIT192,omc_AbsynUtil_pathString(threadData, _funcpath, _OMC_LIT99, 1, 0));
tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT193);
tmpMeta[4] = stringAppend(tmpMeta[3],omc_AbsynUtil_pathString(threadData, _complexName, _OMC_LIT99, 1, 0));
omc_Debug_traceln(threadData, tmpMeta[4]);
}
tmp7 = omc_AbsynUtil_pathEqual(threadData, _funcpath, _complexName);
if (1 != tmp7) 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);
tmpMeta[2] = mmc_mk_box5(13, &Values_Value_RECORD__desc, _funcpath, _vallst, _varNames, mmc_mk_integer(((modelica_integer) -1)));
tmpMeta[0+0] = _cache;
tmpMeta[0+1] = tmpMeta[2];
goto tmp3_done;
}
case 3: {
modelica_integer tmp8;
modelica_boolean tmp9;
modelica_boolean tmp11;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_3,13,3) == 0) goto tmp3_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 2));
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 4));
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 4));
tmp8 = mmc_unbox_integer(tmpMeta[5]);
if (0 != tmp8) goto tmp3_end;
_funcpath = tmpMeta[2];
_ty = tmpMeta[4];
_cache = tmp4_1;
_env = tmp4_2;
_msg = tmp4_5;
tmp9 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
omc_CevalScript_cevalIsExternalObjectConstructor(threadData, _cache, _funcpath, _env, _msg);
tmp9 = 1;
goto goto_10;
goto_10:;
MMC_CATCH_INTERNAL(mmc_jumper)
if (tmp9) {goto goto_2;}
if(omc_Flags_isSet(threadData, _OMC_LIT170))
{
tmpMeta[2] = stringAppend(_OMC_LIT194,omc_AbsynUtil_pathString(threadData, _funcpath, _OMC_LIT99, 1, 0));
omc_Debug_traceln(threadData, tmpMeta[2]);
}
_bIsCompleteFunction = omc_CevalScript_isCompleteFunction(threadData, _cache, _env, _funcpath);
tmp11 = omc_Types_hasMetaArray(threadData, _ty);
if (0 != tmp11) goto goto_2;
if(omc_Flags_isSet(threadData, _OMC_LIT170))
{
tmpMeta[2] = stringAppend(_OMC_LIT195,omc_AbsynUtil_pathString(threadData, _funcpath, _OMC_LIT99, 1, 0));
tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT87);
tmpMeta[4] = stringAppend(tmpMeta[3],(_bIsCompleteFunction?_OMC_LIT196:_OMC_LIT197));
omc_Debug_traceln(threadData, tmpMeta[4]);
}
tmpMeta[0+0] = omc_CevalScript_cevalCallFunctionEvaluateOrGenerate(threadData, _inCache, _inEnv, _inExp, _inValuesValueLst, _impl, _inMsg, _bIsCompleteFunction, &tmpMeta[0+1]);
goto tmp3_done;
}
case 4: {
modelica_integer tmp12;
modelica_boolean tmp13;
modelica_boolean tmp15;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_3,13,3) == 0) goto tmp3_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 2));
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 4));
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 4));
tmp12 = mmc_unbox_integer(tmpMeta[4]);
if (0 != tmp12) goto tmp3_end;
_funcpath = tmpMeta[2];
_cache = tmp4_1;
_env = tmp4_2;
_msg = tmp4_5;
tmp13 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
omc_CevalScript_cevalIsExternalObjectConstructor(threadData, _cache, _funcpath, _env, _msg);
tmp13 = 1;
goto goto_14;
goto_14:;
MMC_CATCH_INTERNAL(mmc_jumper)
if (tmp13) {goto goto_2;}
tmp15 = omc_CevalScript_isCompleteFunction(threadData, _cache, _env, _funcpath);
if (0 != tmp15) goto goto_2;
if(omc_Flags_isSet(threadData, _OMC_LIT170))
{
tmpMeta[2] = stringAppend(_OMC_LIT198,omc_AbsynUtil_pathString(threadData, _funcpath, _OMC_LIT99, 1, 0));
omc_Debug_traceln(threadData, tmpMeta[2]);
}
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 tmpMeta[4] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp3_1;
tmp3_1 = omc_FNode_fromRef(threadData, _ref);
{
volatile mmc_switch_type tmp3;
int tmp4;
tmp3 = 0;
for (; tmp3 < 2; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],3,5) == 0) goto tmp2_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],2,8) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 5));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],1,0) == 0) goto tmp2_end;
_e = tmpMeta[2];
tmpMeta[1] = mmc_mk_cons(_e, _accum);
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 1: {
tmpMeta[0] = _accum;
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
goto_1:;
MMC_THROW_INTERNAL();
goto tmp2_done;
tmp2_done:;
}
}
_classes = tmpMeta[0];
_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 tmpMeta[3] __attribute__((unused)) = {0};
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: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8) == 0) goto tmp3_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],1,2) == 0) goto tmp3_end;
tmp1 = 0;
goto tmp3_done;
}
case 1: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8) == 0) goto tmp3_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,8) == 0) goto tmp3_end;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2));
_eltsTmp = tmpMeta[1];
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 tmp8;
int tmp9;
tmp8 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp7_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp8 < 2; tmp8++) {
switch (MMC_SWITCH_CAST(tmp8)) {
case 0: {
omc_ErrorExt_setCheckpoint(threadData, _OMC_LIT199);
tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil);
omc_Inst_instantiateClass(threadData, omc_FCore_emptyCache(threadData), tmpMeta[0], _sp, omc_AbsynUtil_makeNotFullyQualified(threadData, _p), 0 ,&_env, NULL, NULL);
tmpMeta[0] = 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, tmpMeta[0]);
omc_ErrorExt_rollBack(threadData, _OMC_LIT199);
goto _return;
goto tmp7_done;
}
case 1: {
goto tmp7_done;
}
}
goto tmp7_end;
tmp7_end: ;
}
goto goto_6;
tmp7_done:
(void)tmp8;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp7_done2;
goto_6:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp8 < 2) {
goto tmp7_top;
}
MMC_THROW_INTERNAL();
tmp7_done2:;
}
}
;
omc_ErrorExt_rollBack(threadData, _OMC_LIT199);
}
{
modelica_metatype tmp12_1;
tmp12_1 = _cl;
{
volatile mmc_switch_type tmp12;
int tmp13;
tmp12 = 0;
for (; tmp12 < 2; tmp12++) {
switch (MMC_SWITCH_CAST(tmp12)) {
case 0: {
if (mmc__uniontype__metarecord__typedef__equal(tmp12_1,2,8) == 0) goto tmp11_end;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp12_1), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,8) == 0) goto tmp11_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
_elts = tmpMeta[2];
{
modelica_metatype __omcQ_24tmpVar11;
modelica_metatype* tmp14;
modelica_metatype __omcQ_24tmpVar10;
int tmp15;
modelica_metatype _e_loopVar = 0;
modelica_metatype _e;
_e_loopVar = _elts;
tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil);
__omcQ_24tmpVar11 = tmpMeta[2];
tmp14 = &__omcQ_24tmpVar11;
while(1) {
tmp15 = 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))) {
tmp15--;
break;
}
}
if (tmp15 == 0) {
__omcQ_24tmpVar10 = _e;
*tmp14 = mmc_mk_cons(__omcQ_24tmpVar10,0);
tmp14 = &MMC_CDR(*tmp14);
} else if (tmp15 == 1) {
break;
} else {
goto goto_10;
}
}
*tmp14 = mmc_mk_nil();
tmpMeta[1] = __omcQ_24tmpVar11;
}
tmpMeta[0] = tmpMeta[1];
goto tmp11_done;
}
case 1: {
tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta[0] = tmpMeta[1];
goto tmp11_done;
}
}
goto tmp11_end;
tmp11_end: ;
}
goto goto_10;
goto_10:;
MMC_THROW_INTERNAL();
goto tmp11_done;
tmp11_done:;
}
}
_elts = tmpMeta[0];
_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_boolean tmp1;
modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta[0] = _elt;
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],2,8) == 0) MMC_THROW_INTERNAL();
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2));
_name = tmpMeta[1];
tmpMeta[0] = mmc_mk_box2(4, &Absyn_Path_IDENT__desc, _name);
_path = omc_AbsynUtil_joinPaths(threadData, _pathPrefix, tmpMeta[0]);
tmp1 = (modelica_boolean)omc_SCodeUtil_isFunction(threadData, _elt);
if(tmp1)
{
tmpMeta[0] = mmc_mk_cons(_path, _acc);
tmpMeta[1] = tmpMeta[0];
}
else
{
tmpMeta[1] = _acc;
}
_paths = tmpMeta[1];
{
modelica_metatype tmp4_1;
tmp4_1 = _elt;
{
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8) == 0) goto tmp3_end;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],17,5) == 0) goto tmp3_end;
tmpMeta[1] = mmc_mk_cons(_path, _accMetarecord);
tmpMeta[0] = tmpMeta[1];
goto tmp3_done;
}
case 1: {
tmpMeta[0] = _accMetarecord;
goto tmp3_done;
}
}
goto tmp3_end;
tmp3_end: ;
}
goto goto_2;
goto_2:;
MMC_THROW_INTERNAL();
goto tmp3_done;
tmp3_done:;
}
}
_pathsMetarecord = tmpMeta[0];
_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[9] __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_integer tmp6;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 2));
_cache = tmp4_1;
_env = tmp4_2;
_file = tmpMeta[2];
tmp6 = omc_System_regex(threadData, _file, _OMC_LIT200, ((modelica_integer) 1), 0, 0, NULL);
if (1 != tmp6) goto goto_2;
tmpMeta[0+0] = _cache;
tmpMeta[0+1] = _env;
goto tmp3_done;
}
case 1: {
_cache = tmp4_1;
_env = tmp4_2;
_cache = (_cleanCache?omc_FCore_emptyCache(threadData):_cache);
if(omc_SCodeUtil_isPartial(threadData, _cl))
{
tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil);
_paths = tmpMeta[2];
tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil);
_pathsMetarecord = tmpMeta[2];
}
else
{
tmpMeta[2] = mmc_mk_box2(4, &Absyn_Path_IDENT__desc, _name);
tmpMeta[3] = mmc_mk_box2(5, &Absyn_Path_FULLYQUALIFIED__desc, tmpMeta[2]);
_path = tmpMeta[3];
_elements = omc_CevalScript_getNonPartialElementsForInstantiatedClass(threadData, _sp, _cl, _path);
tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta[3] = MMC_REFSTRUCTLIT(mmc_nil);
_paths = omc_List_fold22(threadData, _elements, boxvar_CevalScript_findFunctionsToCompile, _path, _sp, tmpMeta[2], tmpMeta[3] ,&_pathsMetarecord);
}
tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil);
_metarecords = tmpMeta[2];
{
modelica_metatype _mr;
for (tmpMeta[2] = _pathsMetarecord; !listEmpty(tmpMeta[2]); tmpMeta[2]=MMC_CDR(tmpMeta[2]))
{
_mr = MMC_CAR(tmpMeta[2]);
_cache = omc_Lookup_lookupType(threadData, _cache, _env, _mr, mmc_mk_some(_info) ,&_t, NULL);
tmpMeta[3] = mmc_mk_cons(_t, _metarecords);
_metarecords = tmpMeta[3];
}
}
_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);
tmpMeta[4] = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta[5] = mmc_mk_box2(0, boxvar_CevalScript_matchQualifiedCalls, tmpMeta[4]);
omc_DAEUtil_traverseDAEFunctions(threadData, _d, boxvar_Expression_traverseSubexpressionsHelper, tmpMeta[5], &tmpMeta[2]);
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2));
_dependencies = tmpMeta[3];
_dependencies = omc_List_sort(threadData, _dependencies, boxvar_Util_strcmpBool);
_dependencies = omc_List_map1(threadData, _dependencies, boxvar_stringAppend, _OMC_LIT201);
tmpMeta[2] = stringAppend(_name,_OMC_LIT201);
_nameHeader = tmpMeta[2];
tmpMeta[2] = mmc_mk_cons(_nameHeader, _dependencies);
_strs = omc_List_map1r(threadData, tmpMeta[2], boxvar_stringAppend, _OMC_LIT202);
tmpMeta[2] = stringAppend(_name,_OMC_LIT203);
tmpMeta[3] = stringAppend(_OMC_LIT202,_name);
tmpMeta[4] = stringAppend(tmpMeta[3],_OMC_LIT204);
tmpMeta[5] = stringAppend(tmpMeta[4],_name);
tmpMeta[6] = stringAppend(tmpMeta[5],_OMC_LIT205);
tmpMeta[7] = stringAppend(tmpMeta[6],_OMC_LIT87);
tmpMeta[8] = stringAppend(tmpMeta[7],stringDelimitList(_strs, _OMC_LIT87));
omc_System_writeFile(threadData, tmpMeta[2], tmpMeta[8]);
_dependencies = omc_List_map1(threadData, _dependencies, boxvar_stringAppend, _OMC_LIT97);
_dependencies = omc_List_map1r(threadData, _dependencies, boxvar_stringAppend, _OMC_LIT206);
tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil);
omc_SimCodeFunction_translateFunctions(threadData, _p, _name, mmc_mk_none(), _d, tmpMeta[2], _dependencies);
_str = omc_Tpl_tplString(threadData, boxvar_Unparsing_programExternalHeaderFromTypes, _metarecords);
tmpMeta[2] = stringAppend(_name,_OMC_LIT207);
tmpMeta[3] = stringAppend(_OMC_LIT208,_str);
omc_System_writeFile(threadData, tmpMeta[2], tmpMeta[3]);
_cache = (_cleanCache?_icache:_cache);
tmpMeta[0+0] = _cache;
tmpMeta[0+1] = _env;
goto tmp3_done;
}
case 2: {
tmpMeta[2] = mmc_mk_cons(_name, MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addSourceMessage(threadData, _OMC_LIT211, tmpMeta[2], _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[8] __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: {
if (listEmpty(tmp4_3)) goto tmp3_end;
tmpMeta[2] = MMC_CAR(tmp4_3);
tmpMeta[3] = MMC_CDR(tmp4_3);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],2,8) == 0) goto tmp3_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2));
tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 4));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[5],0,0) == 0) goto tmp3_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 6));
tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 9));
_cl = tmpMeta[2];
_name = tmpMeta[4];
_restr = tmpMeta[6];
_info = tmpMeta[7];
_sp = tmpMeta[3];
_cache = tmp4_1;
_env = tmp4_2;
{
modelica_metatype tmp8_1;
tmp8_1 = _restr;
{
int tmp8;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp8_1))) {
case 11: {
goto tmp7_done;
}
case 21: {
goto tmp7_done;
}
default:
tmp7_default: OMC_LABEL_UNUSED; {
omc_Error_addSourceMessage(threadData, _OMC_LIT124, _OMC_LIT213, _info);
goto goto_6;
goto tmp7_done;
}
}
goto tmp7_end;
tmp7_end: ;
}
goto goto_6;
goto_6:;
goto goto_2;
goto tmp7_done;
tmp7_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: {
if (listEmpty(tmp4_3)) goto tmp3_end;
tmpMeta[2] = MMC_CAR(tmp4_3);
tmpMeta[3] = MMC_CDR(tmp4_3);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],2,8) == 0) goto tmp3_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2));
tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 4));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[5],1,0) == 0) goto tmp3_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 9));
tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[6]), 2));
_name = tmpMeta[4];
_info = tmpMeta[6];
_file = tmpMeta[7];
_n = omc_System_regex(threadData, _file, _OMC_LIT200, ((modelica_integer) 1), 0, 0, NULL);
tmpMeta[2] = stringAppend(_OMC_LIT214,_name);
omc_Error_assertion(threadData, (_n > ((modelica_integer) 0)), tmpMeta[2], _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 tmpMeta[3] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp3_1;modelica_metatype tmp3_2;modelica_metatype tmp3_3;
tmp3_1 = _icache;
tmp3_2 = _ienv;
tmp3_3 = _ipaths;
{
modelica_metatype _path = NULL;
modelica_metatype _cache = NULL;
modelica_metatype _env = NULL;
modelica_metatype _paths = NULL;
volatile mmc_switch_type tmp3;
int tmp4;
tmp3 = 0;
for (; tmp3 < 2; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
if (!listEmpty(tmp3_3)) goto tmp2_end;
_cache = tmp3_1;
tmpMeta[0] = _cache;
goto tmp2_done;
}
case 1: {
if (listEmpty(tmp3_3)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_3);
tmpMeta[2] = MMC_CDR(tmp3_3);
_path = tmpMeta[1];
_paths = tmpMeta[2];
_cache = tmp3_1;
_env = tmp3_2;
tmpMeta[2] = omc_Static_instantiateDaeFunctionForceInst(threadData, _cache, _env, _path, 0, mmc_mk_none(), 1, &tmpMeta[1]);
_cache = tmpMeta[2];
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,0) == 0) goto goto_1;
_icache = _cache;
_ienv = _env;
_ipaths = _paths;
goto _tailrecursive;
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
goto_1:;
MMC_THROW_INTERNAL();
goto tmp2_done;
tmp2_done:;
}
}
_outCache = tmpMeta[0];
_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 tmpMeta[6] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_outExp = _inExp;
{
modelica_metatype tmp3_1;
tmp3_1 = _inExp;
{
modelica_string _name = NULL;
volatile mmc_switch_type tmp3;
int tmp4;
tmp3 = 0;
for (; tmp3 < 5; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,27,3) == 0) goto tmp2_end;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,2) == 0) goto tmp2_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
_name = tmpMeta[4];
tmpMeta[0] = omc_List_consOnTrue(threadData, (!listMember(_name, _inAcc)), _name, _inAcc);
goto tmp2_done;
}
case 1: {
modelica_integer tmp5;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,13,3) == 0) goto tmp2_end;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],0,2) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2));
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4));
tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 4));
tmp5 = mmc_unbox_integer(tmpMeta[5]);
if (0 != tmp5) goto tmp2_end;
_name = tmpMeta[3];
tmpMeta[0] = omc_List_consOnTrue(threadData, (!listMember(_name, _inAcc)), _name, _inAcc);
goto tmp2_done;
}
case 2: {
modelica_integer tmp6;
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,6,2) == 0) goto tmp2_end;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,4) == 0) goto tmp2_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],13,2) == 0) goto tmp2_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
tmp6 = mmc_unbox_integer(tmpMeta[4]);
if (0 != tmp6) goto tmp2_end;
_name = tmpMeta[2];
tmpMeta[0] = omc_List_consOnTrue(threadData, (!listMember(_name, _inAcc)), _name, _inAcc);
goto tmp2_done;
}
case 3: {
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,15,4) == 0) goto tmp2_end;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],0,2) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2));
_name = tmpMeta[3];
tmpMeta[0] = omc_List_consOnTrue(threadData, (!listMember(_name, _inAcc)), _name, _inAcc);
goto tmp2_done;
}
case 4: {
tmpMeta[0] = _inAcc;
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
goto_1:;
MMC_THROW_INTERNAL();
goto tmp2_done;
tmp2_done:;
}
}
_outAcc = tmpMeta[0];
_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[7] __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: {
_cache = tmp4_1;
_env = tmp4_2;
_path = tmp4_3;
if (!(omc_Flags_isSet(threadData, _OMC_LIT180) && (!omc_Flags_isSet(threadData, _OMC_LIT218)))) 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);
tmpMeta[3] = MMC_REFSTRUCTLIT(mmc_nil);
omc_SimCodeFunction_translateFunctions(threadData, _program, _fileName, mmc_mk_some(_mainFunction), _dependencies, _metarecordTypes, tmpMeta[3]);
tmpMeta[3] = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta[4] = MMC_REFSTRUCTLIT(mmc_nil);
omc_CevalScript_compileModel(threadData, _fileName, tmpMeta[3], _OMC_LIT52, tmpMeta[4]);
tmpMeta[0+0] = _cache;
tmp1_c1 = _pathstr;
tmp1_c2 = _fileName;
goto tmp3_done;
}
case 1: {
_cache = tmp4_1;
_path = tmp4_3;
if (!(omc_Flags_isSet(threadData, _OMC_LIT180) && omc_Flags_isSet(threadData, _OMC_LIT218))) 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);
tmpMeta[3] = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta[4] = MMC_REFSTRUCTLIT(mmc_nil);
omc_SimCodeFunction_translateFunctions(threadData, _program, _fileName, mmc_mk_none(), _dependencies, tmpMeta[3], tmpMeta[4]);
tmpMeta[0+0] = _cache;
tmp1_c1 = _pathstr;
tmp1_c2 = _fileName;
goto tmp3_done;
}
case 2: {
modelica_boolean tmp6;
_cache = tmp4_1;
_env = tmp4_2;
_path = tmp4_3;
if (!(omc_Flags_isSet(threadData, _OMC_LIT180) && omc_Flags_isSet(threadData, _OMC_LIT185))) goto tmp3_end;
tmpMeta[3] = omc_Static_isExternalObjectFunction(threadData, _cache, _env, _path, &tmp6);
_cache = tmpMeta[3];
if (0 != tmp6) goto goto_2;
_pathstr = omc_CevalScript_generateFunctionName(threadData, _path);
_fileName = omc_CevalScript_generateFunctionFileName(threadData, _path);
tmpMeta[3] = stringAppend(_OMC_LIT219,_pathstr);
tmpMeta[4] = stringAppend(tmpMeta[3],_OMC_LIT220);
tmpMeta[5] = stringAppend(tmpMeta[4],_fileName);
tmpMeta[6] = stringAppend(tmpMeta[5],_OMC_LIT14);
omc_Debug_trace(threadData, tmpMeta[6]);
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 tmpMeta[1] __attribute__((unused)) = {0};
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);
tmpMeta[0] = mmc_mk_cons(_mainFunction, MMC_REFSTRUCTLIT(mmc_nil));
_dependencies = omc_List_setDifference(threadData, _dependencies, tmpMeta[0]);
tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil);
_uniontypePaths = omc_DAEUtil_getUniontypePaths(threadData, _dependencies, tmpMeta[0]);
_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 tmp1 = 0;
modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
{
modelica_string _name = NULL;
modelica_string _n1 = NULL;
modelica_string _n2 = NULL;
modelica_integer _len;
volatile mmc_switch_type tmp4;
int tmp5;
tmp4 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp3_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp4 < 2; tmp4++) {
switch (MMC_SWITCH_CAST(tmp4)) {
case 0: {
modelica_boolean tmp6;
_name = omc_AbsynUtil_pathStringUnquoteReplaceDot(threadData, _functionPath, _OMC_LIT221);
_len = stringLength(_name);
tmp6 = (_len > ((modelica_integer) 50));
if (1 != tmp6) goto goto_2;
_n1 = omc_AbsynUtil_pathFirstIdent(threadData, _functionPath);
_n2 = omc_AbsynUtil_pathLastIdent(threadData, _functionPath);
tmpMeta[0] = stringAppend(_n1,_OMC_LIT221);
tmpMeta[1] = stringAppend(tmpMeta[0],_n2);
_name = omc_System_unquoteIdentifier(threadData, tmpMeta[1]);
tmpMeta[0] = stringAppend(_name,_OMC_LIT221);
tmpMeta[1] = stringAppend(tmpMeta[0],intString(tick()));
tmp1 = tmpMeta[1];
goto tmp3_done;
}
case 1: {
tmp1 = omc_AbsynUtil_pathStringUnquoteReplaceDot(threadData, _functionPath, _OMC_LIT221);
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:;
}
}
_functionName = tmp1;
_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_LIT221);
_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 tmpMeta[1] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp3_1;
tmp3_1 = _severity;
{
int tmp3;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))) {
case 3: {
tmpMeta[0] = omc_CevalScript_makeErrorEnumLiteral(threadData, _OMC_LIT222, _OMC_LIT223, ((modelica_integer) 1));
goto tmp2_done;
}
case 4: {
tmpMeta[0] = omc_CevalScript_makeErrorEnumLiteral(threadData, _OMC_LIT222, _OMC_LIT224, ((modelica_integer) 2));
goto tmp2_done;
}
case 5: {
tmpMeta[0] = omc_CevalScript_makeErrorEnumLiteral(threadData, _OMC_LIT222, _OMC_LIT225, ((modelica_integer) 3));
goto tmp2_done;
}
case 6: {
tmpMeta[0] = omc_CevalScript_makeErrorEnumLiteral(threadData, _OMC_LIT222, _OMC_LIT226, ((modelica_integer) 4));
goto tmp2_done;
}
default:
tmp2_default: OMC_LABEL_UNUSED; {
fputs(MMC_STRINGDATA(_OMC_LIT227),stdout);
goto goto_1;
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
goto_1:;
MMC_THROW_INTERNAL();
goto tmp2_done;
tmp2_done:;
}
}
_val = tmpMeta[0];
_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 tmpMeta[1] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp3_1;
tmp3_1 = _ty;
{
int tmp3;
{
switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))) {
case 3: {
tmpMeta[0] = omc_CevalScript_makeErrorEnumLiteral(threadData, _OMC_LIT228, _OMC_LIT229, ((modelica_integer) 1));
goto tmp2_done;
}
case 4: {
tmpMeta[0] = omc_CevalScript_makeErrorEnumLiteral(threadData, _OMC_LIT228, _OMC_LIT230, ((modelica_integer) 2));
goto tmp2_done;
}
case 5: {
tmpMeta[0] = omc_CevalScript_makeErrorEnumLiteral(threadData, _OMC_LIT228, _OMC_LIT231, ((modelica_integer) 3));
goto tmp2_done;
}
case 6: {
tmpMeta[0] = omc_CevalScript_makeErrorEnumLiteral(threadData, _OMC_LIT228, _OMC_LIT232, ((modelica_integer) 4));
goto tmp2_done;
}
case 7: {
tmpMeta[0] = omc_CevalScript_makeErrorEnumLiteral(threadData, _OMC_LIT228, _OMC_LIT233, ((modelica_integer) 5));
goto tmp2_done;
}
case 8: {
tmpMeta[0] = omc_CevalScript_makeErrorEnumLiteral(threadData, _OMC_LIT228, _OMC_LIT234, ((modelica_integer) 6));
goto tmp2_done;
}
default:
tmp2_default: OMC_LABEL_UNUSED; {
fputs(MMC_STRINGDATA(_OMC_LIT235),stdout);
goto goto_1;
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
goto_1:;
MMC_THROW_INTERNAL();
goto tmp2_done;
tmp2_done:;
}
}
_val = tmpMeta[0];
_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 tmpMeta[6] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta[0] = mmc_mk_box2(4, &Absyn_Path_IDENT__desc, _enumField);
tmpMeta[1] = mmc_mk_box3(3, &Absyn_Path_QUALIFIED__desc, _enumName, tmpMeta[0]);
tmpMeta[2] = mmc_mk_box3(3, &Absyn_Path_QUALIFIED__desc, _OMC_LIT237, tmpMeta[1]);
tmpMeta[3] = mmc_mk_box3(3, &Absyn_Path_QUALIFIED__desc, _OMC_LIT236, tmpMeta[2]);
tmpMeta[4] = mmc_mk_box2(5, &Absyn_Path_FULLYQUALIFIED__desc, tmpMeta[3]);
tmpMeta[5] = mmc_mk_box3(7, &Values_Value_ENUM__LITERAL__desc, tmpMeta[4], mmc_mk_integer(_index));
_val = tmpMeta[5];
_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 tmpMeta[8] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp3_1;
tmp3_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 tmp3;
int tmp4;
tmp3 = 0;
for (; tmp3 < 1; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
modelica_integer tmp5;
modelica_integer tmp6;
modelica_integer tmp7;
modelica_integer tmp8;
modelica_integer tmp9;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
tmp5 = mmc_unbox_integer(tmpMeta[2]);
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4));
tmp6 = mmc_unbox_integer(tmpMeta[3]);
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5));
tmp7 = mmc_unbox_integer(tmpMeta[4]);
tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6));
tmp8 = mmc_unbox_integer(tmpMeta[5]);
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 7));
tmp9 = mmc_unbox_integer(tmpMeta[6]);
_filename = tmpMeta[1];
_readonly = tmp5;
_ls = tmp6;
_cs = tmp7;
_le = tmp8;
_ce = tmp9;
_infopath = _OMC_LIT242;
tmpMeta[2] = mmc_mk_box2(5, &Values_Value_STRING__desc, _filename);
tmpMeta[3] = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(_readonly));
tmpMeta[4] = mmc_mk_box2(3, &Values_Value_INTEGER__desc, mmc_mk_integer(_ls));
tmpMeta[5] = mmc_mk_box2(3, &Values_Value_INTEGER__desc, mmc_mk_integer(_cs));
tmpMeta[6] = mmc_mk_box2(3, &Values_Value_INTEGER__desc, mmc_mk_integer(_le));
tmpMeta[7] = mmc_mk_box2(3, &Values_Value_INTEGER__desc, mmc_mk_integer(_ce));
tmpMeta[1] = mmc_mk_cons(tmpMeta[2], mmc_mk_cons(tmpMeta[3], mmc_mk_cons(tmpMeta[4], mmc_mk_cons(tmpMeta[5], mmc_mk_cons(tmpMeta[6], mmc_mk_cons(tmpMeta[7], MMC_REFSTRUCTLIT(mmc_nil)))))));
_values = tmpMeta[1];
tmpMeta[1] = mmc_mk_box5(13, &Values_Value_RECORD__desc, _infopath, _values, _OMC_LIT254, mmc_mk_integer(((modelica_integer) -1)));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
goto_1:;
MMC_THROW_INTERNAL();
goto tmp2_done;
tmp2_done:;
}
}
_val = tmpMeta[0];
_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 tmpMeta[7] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp3_1;
tmp3_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 tmp3;
int tmp4;
tmp3 = 0;
for (; tmp3 < 1; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
modelica_integer tmp5;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
tmp5 = mmc_unbox_integer(tmpMeta[2]);
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3));
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4));
tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 5));
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3));
_id = tmp5;
_ty = tmpMeta[3];
_severity = tmpMeta[4];
_message = tmpMeta[5];
_info = tmpMeta[6];
_msg_str = omc_Gettext_translateContent(threadData, _message);
_msgpath = _OMC_LIT259;
_tyVal = omc_CevalScript_errorTypeToValue(threadData, _ty);
_severityVal = omc_CevalScript_errorLevelToValue(threadData, _severity);
_infoVal = omc_CevalScript_infoToValue(threadData, _info);
tmpMeta[2] = mmc_mk_box2(5, &Values_Value_STRING__desc, _msg_str);
tmpMeta[3] = mmc_mk_box2(3, &Values_Value_INTEGER__desc, mmc_mk_integer(_id));
tmpMeta[1] = mmc_mk_cons(_infoVal, mmc_mk_cons(tmpMeta[2], mmc_mk_cons(_tyVal, mmc_mk_cons(_severityVal, mmc_mk_cons(tmpMeta[3], MMC_REFSTRUCTLIT(mmc_nil))))));
_values = tmpMeta[1];
tmpMeta[1] = mmc_mk_box5(13, &Values_Value_RECORD__desc, _msgpath, _values, _OMC_LIT269, mmc_mk_integer(((modelica_integer) -1)));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
goto_1:;
MMC_THROW_INTERNAL();
goto tmp2_done;
tmp2_done:;
}
}
_val = tmpMeta[0];
_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;
modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
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: {
tmpMeta[0] = omc_InteractiveUtil_getNamedAnnotation(threadData, _path, _p, _OMC_LIT271, _OMC_LIT273, boxvar_InteractiveUtil_getAnnotationExp);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],3,1) == 0) goto goto_1;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2));
_version = tmpMeta[1];
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 tmpMeta[6] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
modelica_metatype tmp3_1;
tmp3_1 = _vars;
{
modelica_metatype _vs = NULL;
modelica_string _p = NULL;
volatile mmc_switch_type tmp3;
int tmp4;
tmp3 = 0;
for (; tmp3 < 3; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
if (!listEmpty(tmp3_1)) goto tmp2_end;
tmpMeta[0] = listReverse(_acc);
goto tmp2_done;
}
case 1: {
if (listEmpty(tmp3_1)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_1);
tmpMeta[2] = MMC_CDR(tmp3_1);
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (5 != MMC_STRLEN(tmpMeta[3]) || strcmp(MMC_STRINGDATA(_OMC_LIT274), MMC_STRINGDATA(tmpMeta[3])) != 0) goto tmp2_end;
_vs = tmpMeta[2];
_vars = _vs;
goto _tailrecursive;
goto tmp2_done;
}
case 2: {
if (listEmpty(tmp3_1)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_1);
tmpMeta[2] = MMC_CDR(tmp3_1);
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
_p = tmpMeta[3];
_vs = tmpMeta[2];
tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta[3] = mmc_mk_box3(5, &Absyn_ComponentRef_CREF__IDENT__desc, _p, tmpMeta[2]);
tmpMeta[4] = mmc_mk_box2(4, &Absyn_CodeNode_C__VARIABLENAME__desc, tmpMeta[3]);
tmpMeta[5] = mmc_mk_box2(15, &Values_Value_CODE__desc, tmpMeta[4]);
tmpMeta[1] = mmc_mk_cons(tmpMeta[5], _acc);
_vars = _vs;
_acc = tmpMeta[1];
goto _tailrecursive;
goto tmp2_done;
}
}
goto tmp2_end;
tmp2_end: ;
}
goto goto_1;
goto_1:;
MMC_THROW_INTERNAL();
goto tmp2_done;
tmp2_done:;
}
}
_ovars = tmpMeta[0];
_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 tmpMeta[4] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
{
volatile modelica_metatype tmp3_1;
tmp3_1 = _val;
{
modelica_metatype _path = NULL;
volatile mmc_switch_type tmp3;
int tmp4;
tmp3 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp2_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp3 < 2; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,12,1) == 0) goto tmp2_end;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,1) == 0) goto tmp2_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],1,1) == 0) goto tmp2_end;
_path = tmpMeta[2];
omc_Lookup_lookupVar(threadData, omc_FCore_emptyCache(threadData), _env, omc_ComponentReference_pathToCref(threadData, _path), NULL, NULL, &tmpMeta[1], NULL, NULL, NULL, NULL, NULL);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,2) == 0) goto goto_1;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],12,1) == 0) goto goto_1;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,1) == 0) goto goto_1;
_res = tmpMeta[2];
tmpMeta[0] = _res;
goto tmp2_done;
}
case 1: {
tmpMeta[0] = _val;
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:;
}
}
_res = tmpMeta[0];
_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 tmpMeta[19] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_outCache = _cache;
{
volatile modelica_string tmp3_1;volatile modelica_metatype tmp3_2;
tmp3_1 = _functionName;
tmp3_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 tmp3;
int tmp4;
tmp3 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp2_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp3 < 152; tmp3++) {
switch (MMC_SWITCH_CAST(tmp3)) {
case 0: {
if (11 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT334), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[4] = MMC_CAR(tmpMeta[2]);
tmpMeta[5] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],2,1) == 0) goto tmp2_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
if (!listEmpty(tmpMeta[5])) goto tmp2_end;
_str1 = tmpMeta[3];
_str2 = tmpMeta[6];
tmpMeta[1] = omc_Parser_parsestring(threadData, _str1, _str2);
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3));
_classes = tmpMeta[2];
_within_ = tmpMeta[3];
_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);
tmpMeta[0] = omc_ValuesUtil_makeArray(threadData, _vals);
goto tmp2_done;
}
case 1: {
if (11 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT334), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 148;
tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta[0] = omc_ValuesUtil_makeArray(threadData, tmpMeta[1]);
goto tmp2_done;
}
case 2: {
if (9 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT335), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[4] = MMC_CAR(tmpMeta[2]);
tmpMeta[5] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],2,1) == 0) goto tmp2_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
if (!listEmpty(tmpMeta[5])) goto tmp2_end;
_str1 = tmpMeta[3];
_encoding = tmpMeta[6];
tmp3 += 147;
omc_Error_clearMessages(threadData);
omc_Print_clearErrorBuf(threadData);
_paths = omc_InteractiveUtil_parseFile(threadData, _str1, _encoding, 0);
_vals = omc_List_map(threadData, _paths, boxvar_ValuesUtil_makeCodeTypeName);
tmpMeta[0] = omc_ValuesUtil_makeArray(threadData, _vals);
goto tmp2_done;
}
case 3: {
if (28 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT336), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[4] = MMC_CAR(tmpMeta[2]);
tmpMeta[5] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],2,1) == 0) goto tmp2_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
if (!listEmpty(tmpMeta[5])) goto tmp2_end;
_str1 = tmpMeta[3];
_encoding = tmpMeta[6];
tmp3 += 146;
omc_Error_clearMessages(threadData);
omc_Print_clearErrorBuf(threadData);
_paths = omc_InteractiveUtil_parseFile(threadData, _str1, _encoding, 1);
_vals = omc_List_map(threadData, _paths, boxvar_ValuesUtil_makeCodeTypeName);
tmpMeta[0] = omc_ValuesUtil_makeArray(threadData, _vals);
goto tmp2_done;
}
case 4: {
modelica_integer tmp5;
modelica_integer tmp6;
modelica_integer tmp7;
if (19 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT337), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[4] = MMC_CAR(tmpMeta[2]);
tmpMeta[5] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],2,1) == 0) goto tmp2_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
if (listEmpty(tmpMeta[5])) goto tmp2_end;
tmpMeta[7] = MMC_CAR(tmpMeta[5]);
tmpMeta[8] = MMC_CDR(tmpMeta[5]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],3,1) == 0) goto tmp2_end;
tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 2));
tmp5 = mmc_unbox_integer(tmpMeta[9]);
if (listEmpty(tmpMeta[8])) goto tmp2_end;
tmpMeta[10] = MMC_CAR(tmpMeta[8]);
tmpMeta[11] = MMC_CDR(tmpMeta[8]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[10],3,1) == 0) goto tmp2_end;
tmpMeta[12] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[10]), 2));
tmp6 = mmc_unbox_integer(tmpMeta[12]);
if (listEmpty(tmpMeta[11])) goto tmp2_end;
tmpMeta[13] = MMC_CAR(tmpMeta[11]);
tmpMeta[14] = MMC_CDR(tmpMeta[11]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[13],3,1) == 0) goto tmp2_end;
tmpMeta[15] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[13]), 2));
tmp7 = mmc_unbox_integer(tmpMeta[15]);
if (!listEmpty(tmpMeta[14])) goto tmp2_end;
_str1 = tmpMeta[3];
_encoding = tmpMeta[6];
_b = tmp5;
_b1 = tmp6;
_requireExactVersion = tmp7;
tmp3 += 145;
_newp = omc_CevalScript_loadFile(threadData, _str1, _encoding, omc_SymbolTable_getAbsyn(threadData), _b, _b1, _requireExactVersion);
_vals = omc_List_map(threadData, omc_InteractiveUtil_getTopClassnames(threadData, _newp), boxvar_ValuesUtil_makeCodeTypeName);
omc_SymbolTable_setAbsyn(threadData, _newp);
tmpMeta[0] = omc_ValuesUtil_makeArray(threadData, _vals);
goto tmp2_done;
}
case 5: {
if (13 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT338), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],12,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,1) == 0) goto tmp2_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_path = tmpMeta[4];
tmp3 += 144;
_str = omc_InteractiveUtil_getSourceFile(threadData, _path, omc_SymbolTable_getAbsyn(threadData));
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, _str);
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 6: {
modelica_integer tmp8;
if (13 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT339), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],12,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,1) == 0) goto tmp2_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[5] = MMC_CAR(tmpMeta[2]);
tmpMeta[6] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[5],2,1) == 0) goto tmp2_end;
tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 2));
if (!listEmpty(tmpMeta[6])) goto tmp2_end;
_path = tmpMeta[4];
_str = tmpMeta[7];
tmp3 += 143;
tmpMeta[1] = omc_InteractiveUtil_checkAccessAnnotationAndEncryption(threadData, _path, omc_SymbolTable_getAbsyn(threadData));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],4,2) == 0) goto goto_1;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3));
tmp8 = mmc_unbox_integer(tmpMeta[2]);
_access = tmp8;
if((_access >= ((modelica_integer) 9)))
{
_b = omc_InteractiveUtil_setSourceFile(threadData, _path, _str, omc_SymbolTable_getAbsyn(threadData) ,&_p);
omc_SymbolTable_setAbsyn(threadData, _p);
}
else
{
tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil);
omc_Error_addMessage(threadData, _OMC_LIT277, tmpMeta[1]);
_b = 0;
}
tmpMeta[1] = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(_b));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 7: {
if (8 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT340), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_str = tmpMeta[3];
tmp3 += 142;
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_System_basename(threadData, _str));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 8: {
if (7 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT341), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_str = tmpMeta[3];
tmp3 += 141;
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_System_dirname(threadData, _str));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 9: {
if (12 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT342), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],12,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_codeNode = tmpMeta[3];
tmp3 += 140;
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_Dump_printCodeStr(threadData, _codeNode));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 10: {
if (6 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT343), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],12,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],1,1) == 0) goto tmp2_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],2,2) == 0) goto tmp2_end;
tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_name = tmpMeta[5];
tmp3 += 139;
_ty = omc_InteractiveUtil_getTypeOfVariable(threadData, _name, omc_SymbolTable_getVars(threadData));
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_Types_unparseType(threadData, _ty));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 11: {
if (21 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT344), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (!listEmpty(tmp3_2)) goto tmp2_end;
tmp3 += 138;
omc_GC_gcollectAndUnmap(threadData);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 12: {
modelica_integer tmp9;
if (12 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT345), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
tmp9 = mmc_unbox_integer(tmpMeta[3]);
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_i = tmp9;
tmp3 += 137;
tmpMeta[1] = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(omc_GC_expandHeap(threadData, ((modelica_real)_i))));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 13: {
modelica_integer tmp10;
if (20 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT346), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
tmp10 = mmc_unbox_integer(tmpMeta[3]);
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_i = tmp10;
tmp3 += 136;
omc_GC_setMaxHeapSize(threadData, ((modelica_real)_i));
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 14: {
if (17 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT347), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (!listEmpty(tmp3_2)) goto tmp2_end;
tmp3 += 135;
_gcStats = omc_GC_getProfStats(threadData);
tmpMeta[2] = mmc_mk_box2(3, &Values_Value_INTEGER__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_gcStats), 2))));
tmpMeta[3] = mmc_mk_box2(3, &Values_Value_INTEGER__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_gcStats), 3))));
tmpMeta[4] = mmc_mk_box2(3, &Values_Value_INTEGER__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_gcStats), 4))));
tmpMeta[5] = mmc_mk_box2(3, &Values_Value_INTEGER__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_gcStats), 5))));
tmpMeta[6] = mmc_mk_box2(3, &Values_Value_INTEGER__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_gcStats), 6))));
tmpMeta[7] = 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))))));
tmpMeta[8] = mmc_mk_box2(3, &Values_Value_INTEGER__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_gcStats), 7))));
tmpMeta[9] = mmc_mk_box2(3, &Values_Value_INTEGER__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_gcStats), 8))));
tmpMeta[10] = mmc_mk_box2(3, &Values_Value_INTEGER__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_gcStats), 9))));
tmpMeta[11] = mmc_mk_box2(3, &Values_Value_INTEGER__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_gcStats), 10))));
tmpMeta[12] = mmc_mk_box2(3, &Values_Value_INTEGER__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_gcStats), 11))));
tmpMeta[1] = mmc_mk_cons(tmpMeta[2], mmc_mk_cons(tmpMeta[3], mmc_mk_cons(tmpMeta[4], mmc_mk_cons(tmpMeta[5], mmc_mk_cons(tmpMeta[6], mmc_mk_cons(tmpMeta[7], mmc_mk_cons(tmpMeta[8], mmc_mk_cons(tmpMeta[9], mmc_mk_cons(tmpMeta[10], mmc_mk_cons(tmpMeta[11], mmc_mk_cons(tmpMeta[12], MMC_REFSTRUCTLIT(mmc_nil))))))))))));
tmpMeta[13] = mmc_mk_box5(13, &Values_Value_RECORD__desc, _OMC_LIT279, tmpMeta[1], _OMC_LIT301, mmc_mk_integer(((modelica_integer) -1)));
tmpMeta[0] = tmpMeta[13];
goto tmp2_done;
}
case 15: {
if (5 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT348), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (!listEmpty(tmp3_2)) goto tmp2_end;
tmp3 += 134;
omc_SymbolTable_reset(threadData);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 16: {
if (12 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT349), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (!listEmpty(tmp3_2)) goto tmp2_end;
tmp3 += 133;
omc_SymbolTable_clearProgram(threadData);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 17: {
if (14 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT350), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (!listEmpty(tmp3_2)) goto tmp2_end;
tmp3 += 132;
tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil);
omc_SymbolTable_setVars(threadData, tmpMeta[1]);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 18: {
if (4 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT351), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 131;
tmpMeta[0] = omc_CevalScript_listClass(threadData, _args);
goto tmp2_done;
}
case 19: {
if (8 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT352), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 130;
tmpMeta[0] = omc_CevalScript_listFile(threadData, _args);
goto tmp2_done;
}
case 20: {
if (11 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT353), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],5,2) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_vals = tmpMeta[3];
tmp3 += 129;
_strs = omc_List_map(threadData, _vals, boxvar_ValuesUtil_extractValueString);
_strs = omc_List_sort(threadData, _strs, boxvar_Util_strcmpBool);
tmpMeta[0] = omc_ValuesUtil_makeArray(threadData, omc_List_map(threadData, _strs, boxvar_ValuesUtil_makeString));
goto tmp2_done;
}
case 21: {
if (13 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT354), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (!listEmpty(tmp3_2)) goto tmp2_end;
tmp3 += 128;
tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta[0] = omc_ValuesUtil_makeArray(threadData, omc_CevalScript_getVariableNames(threadData, omc_SymbolTable_getVars(threadData), tmpMeta[1]));
goto tmp2_done;
}
case 22: {
if (17 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT355), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_cmd = tmpMeta[3];
tmp3 += 127;
omc_Settings_setCompileCommand(threadData, _cmd);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 23: {
if (17 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT356), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (!listEmpty(tmp3_2)) goto tmp2_end;
tmp3 += 126;
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_Settings_getCompileCommand(threadData));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 24: {
if (20 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT357), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_cmd = tmpMeta[3];
tmp3 += 125;
omc_Settings_setTempDirectoryPath(threadData, _cmd);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 25: {
if (20 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT358), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (!listEmpty(tmp3_2)) goto tmp2_end;
tmp3 += 44;
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_Settings_getTempDirectoryPath(threadData));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 26: {
if (17 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT359), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[4] = MMC_CAR(tmpMeta[2]);
tmpMeta[5] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],2,1) == 0) goto tmp2_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
if (!listEmpty(tmpMeta[5])) goto tmp2_end;
_name = tmpMeta[3];
_str = tmpMeta[6];
tmp3 += 123;
tmpMeta[1] = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean((omc_System_setEnv(threadData, _name, _str, 1) == ((modelica_integer) 0))));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 27: {
if (17 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT360), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_name = tmpMeta[3];
tmp3 += 122;
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_Util_makeValueOrDefault(threadData, boxvar_System_readEnv, _name, _OMC_LIT52));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 28: {
if (28 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT361), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_cmd = tmpMeta[3];
tmp3 += 121;
omc_Settings_setInstallationDirectoryPath(threadData, _cmd);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 29: {
if (28 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT362), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (!listEmpty(tmp3_2)) goto tmp2_end;
tmp3 += 120;
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_Settings_getInstallationDirectoryPath(threadData));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 30: {
if (15 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT363), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (!listEmpty(tmp3_2)) goto tmp2_end;
tmp3 += 119;
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_Settings_getModelicaPath(threadData, omc_Testsuite_isRunning(threadData)));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 31: {
if (15 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT364), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_cmd = tmpMeta[3];
omc_Settings_setModelicaPath(threadData, _cmd);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 32: {
if (15 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT364), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 117;
tmpMeta[0] = _OMC_LIT12;
goto tmp2_done;
}
case 33: {
if (19 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT365), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (!listEmpty(tmp3_2)) goto tmp2_end;
tmp3 += 116;
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_Config_languageStandardString(threadData, omc_Config_getLanguageStandard(threadData)));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 34: {
modelica_integer tmp11;
if (20 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT366), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],4,2) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3));
tmp11 = mmc_unbox_integer(tmpMeta[3]);
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[4] = MMC_CAR(tmpMeta[2]);
tmpMeta[5] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],2,1) == 0) goto tmp2_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
if (!listEmpty(tmpMeta[5])) goto tmp2_end;
_i = tmp11;
_filename = tmpMeta[6];
tmp3 += 115;
tmpMeta[1] = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(omc_System_reopenStandardStream(threadData, ((modelica_integer) -1) + _i, _filename)));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 35: {
if (5 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT367), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[4] = MMC_CAR(tmpMeta[2]);
tmpMeta[5] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],2,1) == 0) goto tmp2_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
if (listEmpty(tmpMeta[5])) goto tmp2_end;
tmpMeta[7] = MMC_CAR(tmpMeta[5]);
tmpMeta[8] = MMC_CDR(tmpMeta[5]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],2,1) == 0) goto tmp2_end;
tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 2));
if (!listEmpty(tmpMeta[8])) goto tmp2_end;
_str = tmpMeta[3];
_from = tmpMeta[6];
_to = tmpMeta[9];
tmp3 += 114;
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_System_iconv(threadData, _str, _from, _to));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 36: {
if (11 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT368), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (!listEmpty(tmp3_2)) goto tmp2_end;
tmp3 += 113;
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_System_getCCompiler(threadData));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 37: {
if (9 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT369), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_str = tmpMeta[3];
tmp3 += 112;
omc_System_setCFlags(threadData, _str);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 38: {
if (9 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT370), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (!listEmpty(tmp3_2)) goto tmp2_end;
tmp3 += 111;
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_System_getCFlags(threadData));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 39: {
if (11 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT371), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_str = tmpMeta[3];
tmp3 += 110;
omc_System_setCCompiler(threadData, _str);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 40: {
if (14 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT372), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (!listEmpty(tmp3_2)) goto tmp2_end;
tmp3 += 109;
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_System_getCXXCompiler(threadData));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 41: {
if (14 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT373), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_str = tmpMeta[3];
tmp3 += 108;
omc_System_setCXXCompiler(threadData, _str);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 42: {
if (16 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT374), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_str = tmpMeta[3];
tmp3 += 107;
omc_System_setCFlags(threadData, _str);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 43: {
if (9 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT375), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (!listEmpty(tmp3_2)) goto tmp2_end;
tmp3 += 106;
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_System_getLinker(threadData));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 44: {
if (9 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT376), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_str = tmpMeta[3];
tmp3 += 105;
omc_System_setLinker(threadData, _str);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 45: {
if (14 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT377), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (!listEmpty(tmp3_2)) goto tmp2_end;
tmp3 += 104;
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_System_getLDFlags(threadData));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 46: {
if (14 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT378), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_str = tmpMeta[3];
tmp3 += 103;
omc_System_setLDFlags(threadData, _str);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 47: {
if (21 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT379), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_str = tmpMeta[3];
_strs = omc_System_strtok(threadData, _str, _OMC_LIT87);
tmpMeta[1] = omc_FlagsUtil_readArgs(threadData, _strs);
if (!listEmpty(tmpMeta[1])) goto goto_1;
_outCache = omc_FCore_emptyCache(threadData);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 48: {
if (21 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT379), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 101;
tmpMeta[0] = _OMC_LIT12;
goto tmp2_done;
}
case 49: {
if (21 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT380), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (!listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[0] = omc_ValuesUtil_makeStringArray(threadData, omc_FlagsUtil_unparseFlags(threadData));
goto tmp2_done;
}
case 50: {
if (21 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT380), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 99;
tmpMeta[0] = _OMC_LIT13;
goto tmp2_done;
}
case 51: {
if (23 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT381), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (!listEmpty(tmp3_2)) goto tmp2_end;
omc_FlagsUtil_resetDebugFlags(threadData);
omc_FlagsUtil_resetConfigFlags(threadData);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 52: {
if (23 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT381), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 97;
tmpMeta[0] = _OMC_LIT12;
goto tmp2_done;
}
case 53: {
if (22 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT382), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
omc_FlagsUtil_enableDebug(threadData, _OMC_LIT305);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 54: {
if (22 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT382), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 95;
tmpMeta[0] = _OMC_LIT12;
goto tmp2_done;
}
case 55: {
if (23 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT383), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
omc_FlagsUtil_disableDebug(threadData, _OMC_LIT305);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 56: {
if (23 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT383), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 93;
tmpMeta[0] = _OMC_LIT12;
goto tmp2_done;
}
case 57: {
if (15 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT384), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
omc_FlagsUtil_resetDebugFlags(threadData);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 58: {
if (15 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT384), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 91;
tmpMeta[0] = _OMC_LIT12;
goto tmp2_done;
}
case 59: {
if (25 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT385), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_str = tmpMeta[3];
_strs1 = omc_FlagsUtil_getValidOptionsAndDescription(threadData, _str ,&_str ,&_strs2);
tmpMeta[2] = mmc_mk_box2(5, &Values_Value_STRING__desc, _str);
tmpMeta[1] = mmc_mk_cons(omc_ValuesUtil_makeStringArray(threadData, _strs1), mmc_mk_cons(tmpMeta[2], mmc_mk_cons(omc_ValuesUtil_makeStringArray(threadData, _strs2), MMC_REFSTRUCTLIT(mmc_nil))));
tmpMeta[3] = mmc_mk_box2(11, &Values_Value_TUPLE__desc, tmpMeta[1]);
tmpMeta[0] = tmpMeta[3];
goto tmp2_done;
}
case 60: {
if (25 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT385), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
tmp3 += 89;
tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta[3] = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta[1] = mmc_mk_cons(omc_ValuesUtil_makeArray(threadData, tmpMeta[2]), mmc_mk_cons(_OMC_LIT306, mmc_mk_cons(omc_ValuesUtil_makeArray(threadData, tmpMeta[3]), MMC_REFSTRUCTLIT(mmc_nil))));
tmpMeta[4] = mmc_mk_box2(11, &Values_Value_TUPLE__desc, tmpMeta[1]);
tmpMeta[0] = tmpMeta[4];
goto tmp2_done;
}
case 61: {
if (2 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT386), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (0 != MMC_STRLEN(tmpMeta[3]) || strcmp(MMC_STRINGDATA(_OMC_LIT52), MMC_STRINGDATA(tmpMeta[3])) != 0) goto tmp2_end;
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_System_pwd(threadData));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 62: {
modelica_integer tmp12;
if (2 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT386), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_str = tmpMeta[3];
tmp12 = omc_System_cd(threadData, _str);
if (0 != tmp12) goto goto_1;
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_System_pwd(threadData));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 63: {
modelica_boolean tmp13;
if (2 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT386), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_str = tmpMeta[3];
tmp3 += 86;
tmp13 = omc_System_directoryExists(threadData, _str);
if (0 != tmp13) goto goto_1;
tmpMeta[1] = mmc_mk_cons(_OMC_LIT307, mmc_mk_cons(_str, mmc_mk_cons(_OMC_LIT308, MMC_REFSTRUCTLIT(mmc_nil))));
_res = stringAppendList(tmpMeta[1]);
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, _res);
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 64: {
modelica_boolean tmp14;
if (5 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT387), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_str = tmpMeta[3];
tmp14 = omc_System_directoryExists(threadData, _str);
if (1 != tmp14) goto goto_1;
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 65: {
if (5 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT387), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_str = tmpMeta[3];
tmp3 += 84;
tmpMeta[1] = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(omc_Util_createDirectoryTree(threadData, _str)));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 66: {
if (4 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT388), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[4] = MMC_CAR(tmpMeta[2]);
tmpMeta[5] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],2,1) == 0) goto tmp2_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
if (!listEmpty(tmpMeta[5])) goto tmp2_end;
_str1 = tmpMeta[3];
_str2 = tmpMeta[6];
tmp3 += 83;
tmpMeta[1] = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(omc_System_copyFile(threadData, _str1, _str2)));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 67: {
if (6 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT389), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_str = tmpMeta[3];
tmp3 += 82;
tmpMeta[1] = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(omc_System_removeDirectory(threadData, _str)));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 68: {
if (10 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT390), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],12,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,1) == 0) goto tmp2_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],1,1) == 0) goto tmp2_end;
tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
if (12 != MMC_STRLEN(tmpMeta[5]) || strcmp(MMC_STRINGDATA(_OMC_LIT236), MMC_STRINGDATA(tmpMeta[5])) != 0) goto tmp2_end;
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_Settings_getVersionNr(threadData));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 69: {
if (10 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT390), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],12,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,1) == 0) goto tmp2_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_path = tmpMeta[4];
tmp3 += 80;
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_CevalScript_getPackageVersion(threadData, _path, omc_SymbolTable_getAbsyn(threadData)));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 70: {
if (20 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT358), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (!listEmpty(tmp3_2)) goto tmp2_end;
tmp3 += 79;
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_Settings_getTempDirectoryPath(threadData));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 71: {
if (6 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT391), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[4] = MMC_CAR(tmpMeta[2]);
tmpMeta[5] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],2,1) == 0) goto tmp2_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
if (!listEmpty(tmpMeta[5])) goto tmp2_end;
_str = tmpMeta[3];
_filename = tmpMeta[6];
tmp3 += 78;
tmpMeta[1] = mmc_mk_box2(3, &Values_Value_INTEGER__desc, mmc_mk_integer(omc_System_systemCall(threadData, _str, _filename)));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 72: {
modelica_integer tmp15;
if (15 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT392), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],5,2) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[4] = MMC_CAR(tmpMeta[2]);
tmpMeta[5] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],0,1) == 0) goto tmp2_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
tmp15 = mmc_unbox_integer(tmpMeta[6]);
if (!listEmpty(tmpMeta[5])) goto tmp2_end;
_vals = tmpMeta[3];
_i = tmp15;
tmp3 += 77;
_strs = omc_List_map(threadData, _vals, boxvar_ValuesUtil_extractValueString);
tmpMeta[0] = omc_ValuesUtil_makeIntArray(threadData, omc_System_systemCallParallel(threadData, _strs, _i));
goto tmp2_done;
}
case 73: {
modelica_integer tmp16;
if (10 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT393), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
tmp16 = mmc_unbox_integer(tmpMeta[3]);
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_i = tmp16;
tmp3 += 76;
omc_System_realtimeClear(threadData, _i);
tmpMeta[0] = _OMC_LIT309;
goto tmp2_done;
}
case 74: {
modelica_integer tmp17;
if (9 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT394), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
tmp17 = mmc_unbox_integer(tmpMeta[3]);
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_i = tmp17;
tmp3 += 75;
omc_System_realtimeTick(threadData, _i);
tmpMeta[0] = _OMC_LIT309;
goto tmp2_done;
}
case 75: {
modelica_integer tmp18;
modelica_boolean tmp19;
if (9 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT395), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
tmp18 = mmc_unbox_integer(tmpMeta[3]);
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_i = tmp18;
tmp19 = (omc_System_realtimeNtick(threadData, _i) > ((modelica_integer) 0));
if (1 != tmp19) goto goto_1;
tmpMeta[1] = mmc_mk_box2(4, &Values_Value_REAL__desc, mmc_mk_real(omc_System_realtimeTock(threadData, _i)));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 76: {
if (9 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT395), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 73;
tmpMeta[0] = _OMC_LIT311;
goto tmp2_done;
}
case 77: {
if (8 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT396), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_str = tmpMeta[3];
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_System_readFile(threadData, _str));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 78: {
if (8 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT396), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 71;
tmpMeta[0] = _OMC_LIT306;
goto tmp2_done;
}
case 79: {
modelica_integer tmp20;
if (9 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT397), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[4] = MMC_CAR(tmpMeta[2]);
tmpMeta[5] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],2,1) == 0) goto tmp2_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
if (listEmpty(tmpMeta[5])) goto tmp2_end;
tmpMeta[7] = MMC_CAR(tmpMeta[5]);
tmpMeta[8] = MMC_CDR(tmpMeta[5]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],3,1) == 0) goto tmp2_end;
tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 2));
tmp20 = mmc_unbox_integer(tmpMeta[9]);
if (0 != tmp20) goto tmp2_end;
if (!listEmpty(tmpMeta[8])) goto tmp2_end;
_str = tmpMeta[3];
_str1 = tmpMeta[6];
tmp3 += 1;
omc_System_writeFile(threadData, _str, _str1);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 80: {
modelica_integer tmp21;
if (9 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT397), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[4] = MMC_CAR(tmpMeta[2]);
tmpMeta[5] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],2,1) == 0) goto tmp2_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
if (listEmpty(tmpMeta[5])) goto tmp2_end;
tmpMeta[7] = MMC_CAR(tmpMeta[5]);
tmpMeta[8] = MMC_CDR(tmpMeta[5]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],3,1) == 0) goto tmp2_end;
tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 2));
tmp21 = mmc_unbox_integer(tmpMeta[9]);
if (1 != tmp21) goto tmp2_end;
if (!listEmpty(tmpMeta[8])) goto tmp2_end;
_str = tmpMeta[3];
_str1 = tmpMeta[6];
omc_System_appendFile(threadData, _str, _str1);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 81: {
if (9 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT397), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 68;
tmpMeta[0] = _OMC_LIT12;
goto tmp2_done;
}
case 82: {
if (10 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT398), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_str = tmpMeta[3];
tmp3 += 67;
tmpMeta[1] = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean((omc_System_removeFile(threadData, _str) == ((modelica_integer) 0))));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 83: {
if (12 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT399), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[4] = MMC_CAR(tmpMeta[2]);
tmpMeta[5] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],2,1) == 0) goto tmp2_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
if (!listEmpty(tmpMeta[5])) goto tmp2_end;
_str1 = tmpMeta[3];
_str2 = tmpMeta[6];
tmp3 += 66;
tmpMeta[1] = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(omc_System_fileContentsEqual(threadData, _str1, _str2)));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 84: {
modelica_boolean tmp22;
if (19 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT400), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[4] = MMC_CAR(tmpMeta[2]);
tmpMeta[5] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],2,1) == 0) goto tmp2_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
if (!listEmpty(tmpMeta[5])) goto tmp2_end;
_str1 = tmpMeta[3];
_str2 = tmpMeta[6];
tmp22 = omc_System_regularFileExists(threadData, _str1);
if (1 != tmp22) goto goto_1;
_b = (omc_System_regularFileExists(threadData, _str2) && omc_System_fileContentsEqual(threadData, _str1, _str2));
_b = ((!_b)?omc_System_rename(threadData, _str1, _str2):_b);
tmpMeta[1] = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(_b));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 85: {
if (19 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT400), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 64;
tmpMeta[0] = _OMC_LIT12;
goto tmp2_done;
}
case 86: {
if (17 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT401), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_str = tmpMeta[3];
tmp3 += 63;
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_System_readFileNoNumeric(threadData, _str));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 87: {
modelica_integer tmp23;
if (14 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT402), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],3,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
tmp23 = mmc_unbox_integer(tmpMeta[3]);
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_b = tmp23;
tmp3 += 62;
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_Error_printMessagesStr(threadData, _b));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 88: {
if (13 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT403), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 61;
tmpMeta[2] = mmc_mk_box2(3, &Values_Value_INTEGER__desc, mmc_mk_integer(omc_Error_getNumMessages(threadData)));
tmpMeta[3] = mmc_mk_box2(3, &Values_Value_INTEGER__desc, mmc_mk_integer(omc_Error_getNumErrorMessages(threadData)));
tmpMeta[4] = mmc_mk_box2(3, &Values_Value_INTEGER__desc, mmc_mk_integer(omc_ErrorExt_getNumWarningMessages(threadData)));
tmpMeta[1] = mmc_mk_cons(tmpMeta[2], mmc_mk_cons(tmpMeta[3], mmc_mk_cons(tmpMeta[4], MMC_REFSTRUCTLIT(mmc_nil))));
tmpMeta[5] = mmc_mk_box2(11, &Values_Value_TUPLE__desc, tmpMeta[1]);
tmpMeta[0] = tmpMeta[5];
goto tmp2_done;
}
case 89: {
if (13 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT404), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (!listEmpty(tmp3_2)) goto tmp2_end;
tmp3 += 60;
omc_Error_clearMessages(threadData);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 90: {
modelica_integer tmp24;
if (25 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT405), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],3,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
tmp24 = mmc_unbox_integer(tmpMeta[3]);
if (1 != tmp24) goto tmp2_end;
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
tmp3 += 59;
_messages = omc_List_unique(threadData, omc_Error_getMessages(threadData));
tmpMeta[0] = omc_ValuesUtil_makeArray(threadData, omc_List_map(threadData, _messages, boxvar_CevalScript_errorToValue));
goto tmp2_done;
}
case 91: {
modelica_integer tmp25;
if (25 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT405), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],3,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
tmp25 = mmc_unbox_integer(tmpMeta[3]);
if (0 != tmp25) goto tmp2_end;
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
tmp3 += 58;
tmpMeta[0] = omc_ValuesUtil_makeArray(threadData, omc_List_map(threadData, omc_Error_getMessages(threadData), boxvar_CevalScript_errorToValue));
goto tmp2_done;
}
case 92: {
if (14 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT406), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_str = tmpMeta[3];
tmp3 += 57;
tmpMeta[1] = mmc_mk_box2(3, &Absyn_CodeNode_C__TYPENAME__desc, omc_Parser_stringPath(threadData, _str));
tmpMeta[2] = mmc_mk_box2(15, &Values_Value_CODE__desc, tmpMeta[1]);
tmpMeta[0] = tmpMeta[2];
goto tmp2_done;
}
case 93: {
if (18 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT407), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_str = tmpMeta[3];
tmp3 += 56;
tmpMeta[1] = mmc_mk_box2(4, &Absyn_CodeNode_C__VARIABLENAME__desc, omc_Parser_stringCref(threadData, _str));
tmpMeta[2] = mmc_mk_box2(15, &Values_Value_CODE__desc, tmpMeta[1]);
tmpMeta[0] = tmpMeta[2];
goto tmp2_done;
}
case 94: {
if (14 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT408), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],12,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,1) == 0) goto tmp2_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_path = tmpMeta[4];
tmp3 += 55;
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_AbsynUtil_pathString(threadData, _path, _OMC_LIT99, 1, 0));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 95: {
if (15 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT409), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],12,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,1) == 0) goto tmp2_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_path = tmpMeta[4];
tmp3 += 54;
tmpMeta[0] = omc_ValuesUtil_makeArray(threadData, omc_List_map(threadData, omc_AbsynUtil_pathToStringList(threadData, _path), boxvar_ValuesUtil_makeString));
goto tmp2_done;
}
case 96: {
if (14 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT410), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_filename = tmpMeta[3];
_str = omc_Tpl_tplString(threadData, boxvar_Unparsing_programExternalHeader, omc_SymbolTable_getSCode(threadData));
omc_System_writeFile(threadData, _filename, _str);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 97: {
if (14 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT410), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 52;
tmpMeta[0] = _OMC_LIT12;
goto tmp2_done;
}
case 98: {
if (19 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT411), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_filename = tmpMeta[3];
_str = omc_Tpl_tplString(threadData, boxvar_Unparsing_programExternalHeaderJulia, omc_SymbolTable_getSCode(threadData));
omc_System_writeFile(threadData, _filename, _str);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 99: {
if (19 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT411), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 50;
tmpMeta[0] = _OMC_LIT12;
goto tmp2_done;
}
case 100: {
if (12 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT412), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],12,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,1) == 0) goto tmp2_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_path = tmpMeta[4];
tmpMeta[2] = omc_Static_instantiateDaeFunction(threadData, _outCache, _env, _path, 0, mmc_mk_none(), 1, &tmpMeta[1]);
_outCache = tmpMeta[2];
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,0) == 0) goto goto_1;
_outCache = omc_CevalScript_cevalGenerateFunction(threadData, _outCache, _env, omc_SymbolTable_getAbsyn(threadData), _path, NULL, NULL);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 101: {
if (12 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT412), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 48;
tmpMeta[0] = _OMC_LIT12;
goto tmp2_done;
}
case 102: {
if (20 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT413), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],12,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,1) == 0) goto tmp2_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[5] = MMC_CAR(tmpMeta[2]);
tmpMeta[6] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[5],2,1) == 0) goto tmp2_end;
tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 2));
if (!listEmpty(tmpMeta[6])) goto tmp2_end;
_className = tmpMeta[4];
_name = tmpMeta[7];
_sp = omc_SymbolTable_getSCode(threadData);
{
modelica_metatype tmp28_1;
tmp28_1 = omc_FBuiltin_getElementWithPathCheckBuiltin(threadData, _sp, _className);
{
volatile mmc_switch_type tmp28;
int tmp29;
tmp28 = 0;
for (; tmp28 < 2; tmp28++) {
switch (MMC_SWITCH_CAST(tmp28)) {
case 0: {
if (mmc__uniontype__metarecord__typedef__equal(tmp28_1,2,8) == 0) goto tmp27_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp28_1), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],0,8) == 0) goto tmp27_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2));
_elts = tmpMeta[3];
tmpMeta[1] = _elts;
goto tmp27_done;
}
case 1: {
_cl = tmp28_1;
tmpMeta[3] = stringAppend(omc_AbsynUtil_pathString(threadData, _className, _OMC_LIT99, 1, 0),_OMC_LIT312);
tmpMeta[2] = mmc_mk_cons(tmpMeta[3], MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addSourceMessage(threadData, _OMC_LIT124, tmpMeta[2], omc_SCodeUtil_elementInfo(threadData, _cl));
goto goto_26;
goto tmp27_done;
}
}
goto tmp27_end;
tmp27_end: ;
}
goto goto_26;
goto_26:;
goto goto_1;
goto tmp27_done;
tmp27_done:;
}
}
_elts = tmpMeta[1];
tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil);
_tys = tmpMeta[1];
{
modelica_metatype _elt;
for (tmpMeta[1] = _elts; !listEmpty(tmpMeta[1]); tmpMeta[1]=MMC_CDR(tmpMeta[1]))
{
_elt = MMC_CAR(tmpMeta[1]);
{
volatile modelica_metatype tmp32_1;
tmp32_1 = _elt;
{
volatile mmc_switch_type tmp32;
int tmp33;
tmp32 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp31_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp32 < 2; tmp32++) {
switch (MMC_SWITCH_CAST(tmp32)) {
case 0: {
if (mmc__uniontype__metarecord__typedef__equal(tmp32_1,2,8) == 0) goto tmp31_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp32_1), 5));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],1,0) == 0) goto tmp31_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp32_1), 6));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],9,1) == 0) goto tmp31_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],1,1) == 0) goto tmp31_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))
{
tmpMeta[2] = mmc_mk_cons(_ty, _tys);
_tys = tmpMeta[2];
}
goto tmp31_done;
}
case 1: {
goto tmp31_done;
}
}
goto tmp31_end;
tmp31_end: ;
}
goto goto_30;
tmp31_done:
(void)tmp32;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp31_done2;
goto_30:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp32 < 2) {
goto tmp31_top;
}
goto goto_1;
tmp31_done2:;
}
}
;
}
}
_str1 = omc_Tpl_tplString(threadData, boxvar_GenerateAPIFunctionsTpl_getCevalScriptInterface, _tys);
tmpMeta[1] = stringAppend(_name,_OMC_LIT313);
_str2 = omc_Tpl_tplString3(threadData, boxvar_GenerateAPIFunctionsTpl_getQtInterface, _tys, tmpMeta[1], _name);
_str3 = omc_Tpl_tplString2(threadData, boxvar_GenerateAPIFunctionsTpl_getQtInterfaceHeaders, _tys, _name);
tmpMeta[2] = mmc_mk_box2(5, &Values_Value_STRING__desc, _str1);
tmpMeta[3] = mmc_mk_box2(5, &Values_Value_STRING__desc, _str2);
tmpMeta[4] = mmc_mk_box2(5, &Values_Value_STRING__desc, _str3);
tmpMeta[1] = mmc_mk_cons(_OMC_LIT5, mmc_mk_cons(tmpMeta[2], mmc_mk_cons(tmpMeta[3], mmc_mk_cons(tmpMeta[4], MMC_REFSTRUCTLIT(mmc_nil)))));
tmpMeta[5] = mmc_mk_box2(11, &Values_Value_TUPLE__desc, tmpMeta[1]);
tmpMeta[0] = tmpMeta[5];
goto tmp2_done;
}
case 103: {
if (20 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT413), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 46;
tmpMeta[0] = _OMC_LIT317;
goto tmp2_done;
}
case 104: {
if (18 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT414), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[4] = MMC_CAR(tmpMeta[2]);
tmpMeta[5] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],12,1) == 0) goto tmp2_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[6],0,1) == 0) goto tmp2_end;
tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[6]), 2));
if (listEmpty(tmpMeta[5])) goto tmp2_end;
tmpMeta[8] = MMC_CAR(tmpMeta[5]);
tmpMeta[9] = MMC_CDR(tmpMeta[5]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[8],2,1) == 0) goto tmp2_end;
tmpMeta[10] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[8]), 2));
if (!listEmpty(tmpMeta[9])) goto tmp2_end;
_filename = tmpMeta[3];
_path = tmpMeta[7];
_str = tmpMeta[10];
_str = omc_Tpl_tplString2(threadData, boxvar_CodegenCFunctions_generateEntryPoint, _path, _str);
omc_System_writeFile(threadData, _filename, _str);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 105: {
if (18 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT414), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 44;
tmpMeta[0] = _OMC_LIT12;
goto tmp2_done;
}
case 106: {
if (24 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT415), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],12,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,1) == 0) goto tmp2_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[5] = MMC_CAR(tmpMeta[2]);
tmpMeta[6] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[5],5,2) == 0) goto tmp2_end;
tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 2));
if (!listEmpty(tmpMeta[6])) goto tmp2_end;
_path = tmpMeta[4];
_vals = tmpMeta[7];
_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);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 107: {
if (24 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT415), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 42;
tmpMeta[0] = _OMC_LIT12;
goto tmp2_done;
}
case 108: {
if (40 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT416), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 41;
tmpMeta[0] = omc_CevalScript_generateSeparateCodeDependenciesMakefile(threadData, _args);
goto tmp2_done;
}
case 109: {
if (32 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT417), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 40;
tmpMeta[0] = omc_CevalScript_generateSeparateCodeDependencies(threadData, _args);
goto tmp2_done;
}
case 110: {
if (20 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT418), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 39;
_v = omc_CevalScript_generateSeparateCode(threadData, _args, _outCache, _env ,&_outCache);
tmpMeta[0] = _v;
goto tmp2_done;
}
case 111: {
if (16 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT419), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],12,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,1) == 0) goto tmp2_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_path = tmpMeta[4];
_vals = omc_CevalScript_getImportedNames(threadData, omc_InteractiveUtil_getPathedClassInProgram(threadData, _path, omc_SymbolTable_getAbsyn(threadData), 0) ,&_cvars);
tmpMeta[1] = mmc_mk_cons(omc_ValuesUtil_makeArray(threadData, _vals), mmc_mk_cons(omc_ValuesUtil_makeArray(threadData, _cvars), MMC_REFSTRUCTLIT(mmc_nil)));
tmpMeta[2] = mmc_mk_box2(11, &Values_Value_TUPLE__desc, tmpMeta[1]);
tmpMeta[0] = tmpMeta[2];
goto tmp2_done;
}
case 112: {
if (16 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT419), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 37;
tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta[3] = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta[1] = mmc_mk_cons(omc_ValuesUtil_makeArray(threadData, tmpMeta[2]), mmc_mk_cons(omc_ValuesUtil_makeArray(threadData, tmpMeta[3]), MMC_REFSTRUCTLIT(mmc_nil)));
tmpMeta[4] = mmc_mk_box2(11, &Values_Value_TUPLE__desc, tmpMeta[1]);
tmpMeta[0] = tmpMeta[4];
goto tmp2_done;
}
case 113: {
if (26 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT420), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[4] = MMC_CAR(tmpMeta[2]);
tmpMeta[5] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],2,1) == 0) goto tmp2_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
if (!listEmpty(tmpMeta[5])) goto tmp2_end;
_str1 = tmpMeta[3];
_str2 = tmpMeta[6];
_strs = omc_CevalScript_getMMfileTotalDependencies(threadData, _str1, _str2);
{
modelica_metatype __omcQ_24tmpVar13;
modelica_metatype* tmp34;
modelica_metatype __omcQ_24tmpVar12;
int tmp35;
modelica_metatype _s_loopVar = 0;
modelica_metatype _s;
_s_loopVar = _strs;
tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil);
__omcQ_24tmpVar13 = tmpMeta[2];
tmp34 = &__omcQ_24tmpVar13;
while(1) {
tmp35 = 1;
if (!listEmpty(_s_loopVar)) {
_s = MMC_CAR(_s_loopVar);
_s_loopVar = MMC_CDR(_s_loopVar);
tmp35--;
}
if (tmp35 == 0) {
tmpMeta[3] = mmc_mk_box2(5, &Values_Value_STRING__desc, _s);
__omcQ_24tmpVar12 = tmpMeta[3];
*tmp34 = mmc_mk_cons(__omcQ_24tmpVar12,0);
tmp34 = &MMC_CDR(*tmp34);
} else if (tmp35 == 1) {
break;
} else {
goto goto_1;
}
}
*tmp34 = mmc_mk_nil();
tmpMeta[1] = __omcQ_24tmpVar13;
}
_vals = tmpMeta[1];
tmpMeta[0] = omc_ValuesUtil_makeArray(threadData, _vals);
goto tmp2_done;
}
case 114: {
if (26 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT420), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 35;
tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta[0] = omc_ValuesUtil_makeArray(threadData, tmpMeta[1]);
goto tmp2_done;
}
case 115: {
modelica_integer tmp36;
modelica_integer tmp37;
if (9 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT421), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],12,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,1) == 0) goto tmp2_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[5] = MMC_CAR(tmpMeta[2]);
tmpMeta[6] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[5],5,2) == 0) goto tmp2_end;
tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 2));
if (listEmpty(tmpMeta[6])) goto tmp2_end;
tmpMeta[8] = MMC_CAR(tmpMeta[6]);
tmpMeta[9] = MMC_CDR(tmpMeta[6]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[8],3,1) == 0) goto tmp2_end;
tmpMeta[10] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[8]), 2));
tmp36 = mmc_unbox_integer(tmpMeta[10]);
if (listEmpty(tmpMeta[9])) goto tmp2_end;
tmpMeta[11] = MMC_CAR(tmpMeta[9]);
tmpMeta[12] = MMC_CDR(tmpMeta[9]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[11],2,1) == 0) goto tmp2_end;
tmpMeta[13] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[11]), 2));
if (listEmpty(tmpMeta[12])) goto tmp2_end;
tmpMeta[14] = MMC_CAR(tmpMeta[12]);
tmpMeta[15] = MMC_CDR(tmpMeta[12]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[14],3,1) == 0) goto tmp2_end;
tmpMeta[16] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[14]), 2));
tmp37 = mmc_unbox_integer(tmpMeta[16]);
if (!listEmpty(tmpMeta[15])) goto tmp2_end;
_path = tmpMeta[4];
_cvars = tmpMeta[7];
_b = tmp36;
_str = tmpMeta[13];
_requireExactVersion = tmp37;
_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));
}
tmpMeta[2] = mmc_mk_box4(0, _path, _OMC_LIT318, _strs, mmc_mk_boolean(0));
tmpMeta[1] = mmc_mk_cons(tmpMeta[2], MMC_REFSTRUCTLIT(mmc_nil));
_p = omc_CevalScript_loadModel(threadData, tmpMeta[1], _pathstr, _p, 1, _b, 1, _requireExactVersion, 0 ,&_b);
if(_b1)
{
omc_Config_setLanguageStandard(threadData, (modelica_integer)_oldLanguageStd);
}
omc_Print_clearBuf(threadData);
omc_SymbolTable_setAbsyn(threadData, _p);
tmpMeta[1] = stringAppend(_OMC_LIT319,omc_AbsynUtil_pathString(threadData, _path, _OMC_LIT99, 1, 0));
tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT173);
omc_ExecStat_execStat(threadData, tmpMeta[2]);
_outCache = omc_FCore_emptyCache(threadData);
tmpMeta[1] = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(_b));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 116: {
if (9 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT421), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],12,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,1) == 0) goto tmp2_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
_path = tmpMeta[4];
tmp3 += 33;
_pathstr = omc_AbsynUtil_pathString(threadData, _path, _OMC_LIT99, 1, 0);
tmpMeta[1] = mmc_mk_cons(_pathstr, MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addMessage(threadData, _OMC_LIT322, tmpMeta[1]);
tmpMeta[0] = _OMC_LIT12;
goto tmp2_done;
}
case 117: {
modelica_integer tmp38;
modelica_integer tmp39;
modelica_integer tmp40;
if (8 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT422), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[4] = MMC_CAR(tmpMeta[2]);
tmpMeta[5] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],2,1) == 0) goto tmp2_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
if (listEmpty(tmpMeta[5])) goto tmp2_end;
tmpMeta[7] = MMC_CAR(tmpMeta[5]);
tmpMeta[8] = MMC_CDR(tmpMeta[5]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],3,1) == 0) goto tmp2_end;
tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 2));
tmp38 = mmc_unbox_integer(tmpMeta[9]);
if (listEmpty(tmpMeta[8])) goto tmp2_end;
tmpMeta[10] = MMC_CAR(tmpMeta[8]);
tmpMeta[11] = MMC_CDR(tmpMeta[8]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[10],3,1) == 0) goto tmp2_end;
tmpMeta[12] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[10]), 2));
tmp39 = mmc_unbox_integer(tmpMeta[12]);
if (listEmpty(tmpMeta[11])) goto tmp2_end;
tmpMeta[13] = MMC_CAR(tmpMeta[11]);
tmpMeta[14] = MMC_CDR(tmpMeta[11]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[13],3,1) == 0) goto tmp2_end;
tmpMeta[15] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[13]), 2));
tmp40 = mmc_unbox_integer(tmpMeta[15]);
_name = tmpMeta[3];
_encoding = tmpMeta[6];
_b = tmp38;
_b1 = tmp39;
_requireExactVersion = tmp40;
omc_ExecStat_execStatReset(threadData);
_name = omc_Testsuite_friendlyPath(threadData, _name);
_newp = omc_CevalScript_loadFile(threadData, _name, _encoding, omc_SymbolTable_getAbsyn(threadData), _b, _b1, _requireExactVersion);
tmpMeta[1] = stringAppend(_OMC_LIT323,_name);
tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT173);
omc_ExecStat_execStat(threadData, tmpMeta[2]);
omc_SymbolTable_setAbsyn(threadData, _newp);
_outCache = omc_FCore_emptyCache(threadData);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 118: {
if (8 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT422), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 31;
tmpMeta[0] = _OMC_LIT12;
goto tmp2_done;
}
case 119: {
modelica_integer tmp41;
modelica_integer tmp42;
modelica_integer tmp43;
modelica_integer tmp44;
if (9 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT423), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],5,2) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[4] = MMC_CAR(tmpMeta[2]);
tmpMeta[5] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],2,1) == 0) goto tmp2_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
if (listEmpty(tmpMeta[5])) goto tmp2_end;
tmpMeta[7] = MMC_CAR(tmpMeta[5]);
tmpMeta[8] = MMC_CDR(tmpMeta[5]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],0,1) == 0) goto tmp2_end;
tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 2));
tmp41 = mmc_unbox_integer(tmpMeta[9]);
if (listEmpty(tmpMeta[8])) goto tmp2_end;
tmpMeta[10] = MMC_CAR(tmpMeta[8]);
tmpMeta[11] = MMC_CDR(tmpMeta[8]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[10],3,1) == 0) goto tmp2_end;
tmpMeta[12] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[10]), 2));
tmp42 = mmc_unbox_integer(tmpMeta[12]);
if (listEmpty(tmpMeta[11])) goto tmp2_end;
tmpMeta[13] = MMC_CAR(tmpMeta[11]);
tmpMeta[14] = MMC_CDR(tmpMeta[11]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[13],3,1) == 0) goto tmp2_end;
tmpMeta[15] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[13]), 2));
tmp43 = mmc_unbox_integer(tmpMeta[15]);
if (listEmpty(tmpMeta[14])) goto tmp2_end;
tmpMeta[16] = MMC_CAR(tmpMeta[14]);
tmpMeta[17] = MMC_CDR(tmpMeta[14]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[16],3,1) == 0) goto tmp2_end;
tmpMeta[18] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[16]), 2));
tmp44 = mmc_unbox_integer(tmpMeta[18]);
_vals = tmpMeta[3];
_encoding = tmpMeta[6];
_i = tmp41;
_b = tmp42;
_b1 = tmp43;
_requireExactVersion = tmp44;
_strs = omc_List_mapMap(threadData, _vals, boxvar_ValuesUtil_extractValueString, boxvar_Testsuite_friendlyPath);
_newps = omc_Parser_parallelParseFilesToProgramList(threadData, _strs, _encoding, _i);
tmpMeta[1] = 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,tmpMeta[1]), omc_SymbolTable_getAbsyn(threadData));
omc_SymbolTable_setAbsyn(threadData, _newp);
_outCache = omc_FCore_emptyCache(threadData);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 120: {
if (9 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT423), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 29;
tmpMeta[0] = _OMC_LIT12;
goto tmp2_done;
}
case 121: {
if (21 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT424), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[4] = MMC_CAR(tmpMeta[2]);
tmpMeta[5] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],2,1) == 0) goto tmp2_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
_filename = tmpMeta[3];
_workdir = tmpMeta[6];
tmp3 += 28;
tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil);
_vals = tmpMeta[1];
_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_InteractiveUtil_parseFile(threadData, _filename, _OMC_LIT324, 0);
_vals = omc_List_map(threadData, _paths, boxvar_ValuesUtil_makeCodeTypeName);
}
tmpMeta[0] = omc_ValuesUtil_makeArray(threadData, _vals);
goto tmp2_done;
}
case 122: {
modelica_integer tmp45;
modelica_integer tmp46;
modelica_integer tmp47;
modelica_integer tmp48;
if (20 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT425), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[4] = MMC_CAR(tmpMeta[2]);
tmpMeta[5] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],2,1) == 0) goto tmp2_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
if (listEmpty(tmpMeta[5])) goto tmp2_end;
tmpMeta[7] = MMC_CAR(tmpMeta[5]);
tmpMeta[8] = MMC_CDR(tmpMeta[5]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],3,1) == 0) goto tmp2_end;
tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 2));
tmp45 = mmc_unbox_integer(tmpMeta[9]);
if (listEmpty(tmpMeta[8])) goto tmp2_end;
tmpMeta[10] = MMC_CAR(tmpMeta[8]);
tmpMeta[11] = MMC_CDR(tmpMeta[8]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[10],3,1) == 0) goto tmp2_end;
tmpMeta[12] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[10]), 2));
tmp46 = mmc_unbox_integer(tmpMeta[12]);
if (listEmpty(tmpMeta[11])) goto tmp2_end;
tmpMeta[13] = MMC_CAR(tmpMeta[11]);
tmpMeta[14] = MMC_CDR(tmpMeta[11]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[13],3,1) == 0) goto tmp2_end;
tmpMeta[15] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[13]), 2));
tmp47 = mmc_unbox_integer(tmpMeta[15]);
if (listEmpty(tmpMeta[14])) goto tmp2_end;
tmpMeta[16] = MMC_CAR(tmpMeta[14]);
tmpMeta[17] = MMC_CDR(tmpMeta[14]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[16],3,1) == 0) goto tmp2_end;
tmpMeta[18] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[16]), 2));
tmp48 = mmc_unbox_integer(tmpMeta[18]);
_filename = tmpMeta[3];
_workdir = tmpMeta[6];
_bval = tmp45;
_b = tmp46;
_b1 = tmp47;
_requireExactVersion = tmp48;
_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_LIT324, _p, _b, _b1, _requireExactVersion);
tmpMeta[1] = stringAppend(_OMC_LIT323,_filename);
tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT173);
omc_ExecStat_execStat(threadData, tmpMeta[2]);
omc_SymbolTable_setAbsyn(threadData, _newp);
}
_outCache = omc_FCore_emptyCache(threadData);
tmpMeta[1] = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(_b));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 123: {
if (20 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT425), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 26;
tmpMeta[0] = _OMC_LIT12;
goto tmp2_done;
}
case 124: {
modelica_integer tmp49;
if (5 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT426), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
tmp49 = mmc_unbox_integer(tmpMeta[3]);
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_i = tmp49;
tmp3 += 25;
tmpMeta[1] = mmc_mk_box2(3, &Values_Value_INTEGER__desc, mmc_mk_integer(omc_System_alarm(threadData, _i)));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 125: {
if (13 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT427), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 24;
tmpMeta[0] = omc_CevalScript_getClassNames(threadData, _args);
goto tmp2_done;
}
case 126: {
modelica_real tmp50;
modelica_real tmp51;
modelica_boolean tmp52;
if (11 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT428), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],12,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,1) == 0) goto tmp2_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[5] = MMC_CAR(tmpMeta[2]);
tmpMeta[6] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[5],2,1) == 0) goto tmp2_end;
tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 2));
if (!listEmpty(tmpMeta[6])) goto tmp2_end;
_classpath = tmpMeta[4];
_encoding = tmpMeta[7];
tmpMeta[1] = omc_InteractiveUtil_getPathedClassInProgram(threadData, _classpath, omc_SymbolTable_getAbsyn(threadData), 0);
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 8));
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2));
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 8));
tmp50 = mmc_unbox_real(tmpMeta[4]);
_filename = tmpMeta[3];
_r2 = tmp50;
tmp52 = omc_System_stat(threadData, _filename, NULL, &tmp51);
if (1 != tmp52) goto goto_1;
_r1 = tmp51;
if((!(_r1 == _r2)))
{
omc_CevalScript_reloadClass(threadData, _filename, _encoding);
}
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 127: {
modelica_boolean tmp53;
if (11 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT428), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],12,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,1) == 0) goto tmp2_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[5] = MMC_CAR(tmpMeta[2]);
tmpMeta[6] = MMC_CDR(tmpMeta[2]);
if (!listEmpty(tmpMeta[6])) goto tmp2_end;
_classpath = tmpMeta[4];
tmp53 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
omc_InteractiveUtil_getPathedClassInProgram(threadData, _classpath, omc_SymbolTable_getAbsyn(threadData), 0);
tmp53 = 1;
goto goto_54;
goto_54:;
MMC_CATCH_INTERNAL(mmc_jumper)
if (tmp53) {goto goto_1;}
tmpMeta[1] = mmc_mk_cons(omc_AbsynUtil_pathString(threadData, _classpath, _OMC_LIT99, 1, 0), MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addMessage(threadData, _OMC_LIT322, tmpMeta[1]);
tmpMeta[0] = _OMC_LIT12;
goto tmp2_done;
}
case 128: {
if (11 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT428), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 21;
tmpMeta[0] = _OMC_LIT12;
goto tmp2_done;
}
case 129: {
modelica_integer tmp55;
if (10 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT429), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[4] = MMC_CAR(tmpMeta[2]);
tmpMeta[5] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],2,1) == 0) goto tmp2_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
if (listEmpty(tmpMeta[5])) goto tmp2_end;
tmpMeta[7] = MMC_CAR(tmpMeta[5]);
tmpMeta[8] = MMC_CDR(tmpMeta[5]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],2,1) == 0) goto tmp2_end;
tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 2));
if (listEmpty(tmpMeta[8])) goto tmp2_end;
tmpMeta[10] = MMC_CAR(tmpMeta[8]);
tmpMeta[11] = MMC_CDR(tmpMeta[8]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[10],3,1) == 0) goto tmp2_end;
tmpMeta[12] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[10]), 2));
tmp55 = mmc_unbox_integer(tmpMeta[12]);
_str = tmpMeta[3];
_name = tmpMeta[6];
_encoding = tmpMeta[9];
_mergeAST = tmp55;
_str = ((!(stringEqual(_encoding, _OMC_LIT324)))?omc_System_iconv(threadData, _str, _encoding, _OMC_LIT324):_str);
_newp = omc_Parser_parsestring(threadData, _str, _name);
_newp = omc_InteractiveUtil_updateProgram(threadData, _newp, omc_SymbolTable_getAbsyn(threadData), _mergeAST);
omc_SymbolTable_setAbsyn(threadData, _newp);
_outCache = omc_FCore_emptyCache(threadData);
tmpMeta[0] = _OMC_LIT5;
goto tmp2_done;
}
case 130: {
if (10 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT429), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 19;
tmpMeta[0] = _OMC_LIT12;
goto tmp2_done;
}
case 131: {
if (4 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT430), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (0 != MMC_STRLEN(tmpMeta[3]) || strcmp(MMC_STRINGDATA(_OMC_LIT52), MMC_STRINGDATA(tmpMeta[3])) != 0) goto tmp2_end;
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_FlagsUtil_printUsage(threadData));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 132: {
if (4 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT430), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_str = tmpMeta[3];
tmp3 += 17;
tmpMeta[1] = mmc_mk_cons(_str, MMC_REFSTRUCTLIT(mmc_nil));
tmpMeta[2] = mmc_mk_box2(5, &Values_Value_STRING__desc, omc_FlagsUtil_printHelp(threadData, tmpMeta[1]));
tmpMeta[0] = tmpMeta[2];
goto tmp2_done;
}
case 133: {
modelica_real tmp56;
if (12 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT431), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],12,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,1) == 0) goto tmp2_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_classpath = tmpMeta[4];
tmpMeta[1] = omc_InteractiveUtil_getPathedClassInProgram(threadData, _classpath, omc_SymbolTable_getAbsyn(threadData), 0);
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 8));
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 8));
tmp56 = mmc_unbox_real(tmpMeta[3]);
_r = tmp56;
_str = omc_System_ctime(threadData, _r);
tmpMeta[2] = mmc_mk_box2(4, &Values_Value_REAL__desc, mmc_mk_real(_r));
tmpMeta[3] = mmc_mk_box2(5, &Values_Value_STRING__desc, _str);
tmpMeta[1] = mmc_mk_cons(tmpMeta[2], mmc_mk_cons(tmpMeta[3], MMC_REFSTRUCTLIT(mmc_nil)));
tmpMeta[4] = mmc_mk_box2(11, &Values_Value_TUPLE__desc, tmpMeta[1]);
tmpMeta[0] = tmpMeta[4];
goto tmp2_done;
}
case 134: {
if (12 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT431), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 15;
tmpMeta[0] = _OMC_LIT327;
goto tmp2_done;
}
case 135: {
if (19 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT432), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],12,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,1) == 0) goto tmp2_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_classpath = tmpMeta[4];
tmp3 += 14;
_str = omc_InteractiveUtil_getClassRestriction(threadData, _classpath, omc_SymbolTable_getAbsyn(threadData));
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, _str);
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 136: {
if (21 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT433), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],12,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,1) == 0) goto tmp2_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[5] = MMC_CAR(tmpMeta[2]);
tmpMeta[6] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[5],12,1) == 0) goto tmp2_end;
tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],0,1) == 0) goto tmp2_end;
tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 2));
if (!listEmpty(tmpMeta[6])) goto tmp2_end;
_classpath = tmpMeta[4];
_path = tmpMeta[8];
tmp3 += 13;
_b = mmc_unbox_boolean(omc_InteractiveUtil_getNamedAnnotation(threadData, _classpath, omc_SymbolTable_getAbsyn(threadData), _path, _OMC_LIT328, boxvar_isSome));
tmpMeta[1] = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(_b));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 137: {
modelica_integer tmp57;
if (25 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT434), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],12,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,1) == 0) goto tmp2_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[5] = MMC_CAR(tmpMeta[2]);
tmpMeta[6] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[5],12,1) == 0) goto tmp2_end;
tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],0,1) == 0) goto tmp2_end;
tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 2));
if (!listEmpty(tmpMeta[6])) goto tmp2_end;
_classpath = tmpMeta[4];
_path = tmpMeta[8];
tmpMeta[1] = omc_InteractiveUtil_getNamedAnnotation(threadData, _classpath, omc_SymbolTable_getAbsyn(threadData), _path, mmc_mk_none(), boxvar_InteractiveUtil_getAnnotationExp);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],4,1) == 0) goto goto_1;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
tmp57 = mmc_unbox_integer(tmpMeta[2]);
_b = tmp57;
tmpMeta[1] = mmc_mk_box2(6, &Values_Value_BOOL__desc, mmc_mk_boolean(_b));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 138: {
if (25 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT434), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],12,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,1) == 0) goto tmp2_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[5] = MMC_CAR(tmpMeta[2]);
tmpMeta[6] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[5],12,1) == 0) goto tmp2_end;
tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],0,1) == 0) goto tmp2_end;
tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 2));
if (!listEmpty(tmpMeta[6])) goto tmp2_end;
_classpath = tmpMeta[4];
_path = tmpMeta[8];
tmp3 += 11;
tmpMeta[1] = mmc_mk_cons(omc_AbsynUtil_pathString(threadData, _path, _OMC_LIT99, 1, 0), mmc_mk_cons(omc_AbsynUtil_pathString(threadData, _classpath, _OMC_LIT99, 1, 0), MMC_REFSTRUCTLIT(mmc_nil)));
omc_Error_addMessage(threadData, _OMC_LIT331, tmpMeta[1]);
goto goto_1;
goto tmp2_done;
}
case 139: {
if (6 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT435), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[4] = MMC_CAR(tmpMeta[2]);
tmpMeta[5] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],2,1) == 0) goto tmp2_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
if (!listEmpty(tmpMeta[5])) goto tmp2_end;
_str = tmpMeta[3];
_token = tmpMeta[6];
tmp3 += 10;
_strs = omc_System_strtok(threadData, _str, _token);
tmpMeta[0] = omc_ValuesUtil_makeStringArray(threadData, _strs);
goto tmp2_done;
}
case 140: {
if (11 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT436), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[4] = MMC_CAR(tmpMeta[2]);
tmpMeta[5] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],2,1) == 0) goto tmp2_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
if (!listEmpty(tmpMeta[5])) goto tmp2_end;
_str = tmpMeta[3];
_token = tmpMeta[6];
tmp3 += 9;
_strs = omc_Util_stringSplitAtChar(threadData, _str, _token);
tmpMeta[0] = omc_ValuesUtil_makeStringArray(threadData, _strs);
goto tmp2_done;
}
case 141: {
if (13 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT437), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[4] = MMC_CAR(tmpMeta[2]);
tmpMeta[5] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],2,1) == 0) goto tmp2_end;
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2));
if (listEmpty(tmpMeta[5])) goto tmp2_end;
tmpMeta[7] = MMC_CAR(tmpMeta[5]);
tmpMeta[8] = MMC_CDR(tmpMeta[5]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],2,1) == 0) goto tmp2_end;
tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 2));
if (!listEmpty(tmpMeta[8])) goto tmp2_end;
_str1 = tmpMeta[3];
_str2 = tmpMeta[6];
_str3 = tmpMeta[9];
tmp3 += 8;
_str = omc_System_stringReplace(threadData, _str1, _str2, _str3);
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, _str);
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 142: {
if (13 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT438), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (!listEmpty(tmp3_2)) goto tmp2_end;
tmp3 += 7;
tmpMeta[0] = omc_CevalScript_checkSettings(threadData);
goto tmp2_done;
}
case 143: {
modelica_integer tmp58;
if (4 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT439), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],3,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
tmp58 = mmc_unbox_integer(tmpMeta[3]);
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_v = tmpMeta[1];
_bval = tmp58;
tmp3 += 6;
omc_Settings_setEcho(threadData, (_bval?((modelica_integer) 1):((modelica_integer) 0)));
tmpMeta[0] = _v;
goto tmp2_done;
}
case 144: {
if (13 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT440), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (!listEmpty(tmp3_2)) goto tmp2_end;
tmp3 += 5;
tmpMeta[1] = mmc_mk_box2(3, &Values_Value_INTEGER__desc, mmc_mk_integer(omc_Config_noProc(threadData)));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 145: {
if (9 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT441), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_str = tmpMeta[3];
_str = omc_Testsuite_friendlyPath(threadData, _str);
_res = omc_Interactive_evaluate(threadData, omc_Parser_parseexp(threadData, _str), 1);
tmpMeta[1] = mmc_mk_box2(5, &Values_Value_STRING__desc, _res);
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 146: {
if (9 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT441), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
tmp3 += 3;
tmpMeta[0] = _OMC_LIT333;
goto tmp2_done;
}
case 147: {
modelica_integer tmp59;
if (4 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT442), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
tmp59 = mmc_unbox_integer(tmpMeta[3]);
if (!listEmpty(tmpMeta[2])) goto tmp2_end;
_i = tmp59;
tmp3 += 2;
omc_System_exit(threadData, _i);
goto goto_1;
goto tmp2_done;
}
case 148: {
if (13 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT443), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (!listEmpty(tmp3_2)) goto tmp2_end;
tmp3 += 1;
tmpMeta[1] = mmc_mk_box2(4, &Values_Value_REAL__desc, mmc_mk_real(omc_System_getMemorySize(threadData)));
tmpMeta[0] = tmpMeta[1];
goto tmp2_done;
}
case 149: {
modelica_integer tmp60;
modelica_integer tmp61;
modelica_integer tmp62;
if (15 != MMC_STRLEN(tmp3_1) || strcmp(MMC_STRINGDATA(_OMC_LIT444), MMC_STRINGDATA(tmp3_1)) != 0) goto tmp2_end;
if (listEmpty(tmp3_2)) goto tmp2_end;
tmpMeta[1] = MMC_CAR(tmp3_2);
tmpMeta[2] = MMC_CDR(tmp3_2);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],12,1) == 0) goto tmp2_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,1) == 0) goto tmp2_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2));
if (listEmpty(tmpMeta[2])) goto tmp2_end;
tmpMeta[5] = MMC_CAR(tmpMeta[2]);
tmpMeta[6] = MMC_CDR(tmpMeta[2]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[5],12,1) == 0) goto tmp2_end;
tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[7],0,1) == 0) goto tmp2_end;
tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 2));
if (listEmpty(tmpMeta[6])) goto tmp2_end;
tmpMeta[9] = MMC_CAR(tmpMeta[6]);
tmpMeta[10] = MMC_CDR(tmpMeta[6]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[9],3,1) == 0) goto tmp2_end;
tmpMeta[11] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[9]), 2));
tmp60 = mmc_unbox_integer(tmpMeta[11]);
if (listEmpty(tmpMeta[10])) goto tmp2_end;
tmpMeta[12] = MMC_CAR(tmpMeta[10]);
tmpMeta[13] = MMC_CDR(tmpMeta[10]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[12],3,1) == 0) goto tmp2_end;
tmpMeta[14] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[12]), 2));
tmp61 = mmc_unbox_integer(tmpMeta[14]);
if (listEmpty(tmpMeta[13])) goto tmp2_end;
tmpMeta[15] = MMC_CAR(tmpMeta[13]);
tmpMeta[16] = MMC_CDR(tmpMeta[13]);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[15],3,1) == 0) goto tmp2_end;
tmpMeta[17] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[15]), 2));
tmp62 = mmc_unbox_integer(tmpMeta[17]);
if (!listEmpty(tmpMeta[16])) goto tmp2_end;
_path = tmpMeta[4];
_parentClass = tmpMeta[8];
_qualified = tmp60;
_includePartial = tmp61;
_sort = tmp62;
_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);
tmpMeta[0] = omc_ValuesUtil_makeArray(threadData, _vals);
goto tmp2_done;
}
case 150: {
tmpMeta[0] = omc_CevalScriptOMSimulator_ceval(threadData, _functionName, _args);
goto tmp2_done;
}
case 151: {
_outCache = omc_CevalScriptBackend_cevalInteractiveFunctions3(threadData, _outCache, _env, _functionName, _args, _msg ,&_v);
tmpMeta[0] = _v;
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 < 152) {
goto tmp2_top;
}
MMC_THROW_INTERNAL();
tmp2_done2:;
}
}
_outValue = tmpMeta[0];
_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[7] __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: {
if (mmc__uniontype__metarecord__typedef__equal(tmp4_3,13,3) == 0) goto tmp3_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],1,1) == 0) goto tmp3_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2));
if (6 != MMC_STRLEN(tmpMeta[3]) || strcmp(MMC_STRINGDATA(_OMC_LIT445), MMC_STRINGDATA(tmpMeta[3])) != 0) goto tmp3_end;
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 3));
if (listEmpty(tmpMeta[4])) goto tmp3_end;
tmpMeta[5] = MMC_CAR(tmpMeta[4]);
tmpMeta[6] = MMC_CDR(tmpMeta[4]);
if (!listEmpty(tmpMeta[6])) goto tmp3_end;
_exp = tmpMeta[5];
_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;
tmpMeta[2] = mmc_mk_box2(4, &Values_Value_REAL__desc, mmc_mk_real(_t));
tmpMeta[0+0] = _cache;
tmpMeta[0+1] = tmpMeta[2];
goto tmp3_done;
}
case 1: {
modelica_integer tmp6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_3,13,3) == 0) goto tmp3_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 2));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],1,1) == 0) goto tmp3_end;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2));
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 3));
tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 4));
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 4));
tmp6 = mmc_unbox_integer(tmpMeta[6]);
if (1 != tmp6) goto tmp3_end;
_name = tmpMeta[3];
_eLst = tmpMeta[4];
_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 tmpMeta[2] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_semverWanted = omc_SemanticVersion_parse(threadData, _version);
{
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: {
if (optionNone(tmp3_1)) goto tmp2_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 1));
_actualVersionStr = tmpMeta[0];
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_LIT99, 1, 0);
_semverActual = omc_SemanticVersion_parse(threadData, _actualVersionStr);
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))))
{
tmpMeta[0] = mmc_mk_cons(_pathStr, mmc_mk_cons(_version, mmc_mk_cons(_actualVersionStr, MMC_REFSTRUCTLIT(mmc_nil))));
omc_Error_addMessage(threadData, _OMC_LIT449, tmpMeta[0]);
goto _return;
}
{
modelica_metatype _ver;
for (tmpMeta[0] = _withoutConversion; !listEmpty(tmpMeta[0]); tmpMeta[0]=MMC_CDR(tmpMeta[0]))
{
_ver = MMC_CAR(tmpMeta[0]);
if((((modelica_integer) 0) == omc_SemanticVersion_compare(threadData, _semverWanted, omc_SemanticVersion_parse(threadData, _ver), 0, 0)))
{
tmpMeta[1] = 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_LIT453, tmpMeta[1]);
goto _return;
}
}
}
{
modelica_metatype _ver;
for (tmpMeta[0] = _withConversion; !listEmpty(tmpMeta[0]); tmpMeta[0]=MMC_CDR(tmpMeta[0]))
{
_ver = MMC_CAR(tmpMeta[0]);
if((((modelica_integer) 0) == omc_SemanticVersion_compare(threadData, _semverWanted, omc_SemanticVersion_parse(threadData, _ver), 0, 0)))
{
tmpMeta[1] = 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_LIT456, tmpMeta[1]);
goto _return;
}
}
}
if((omc_SemanticVersion_compare(threadData, _semverWanted, _semverActual, 1, 0) > ((modelica_integer) 0)))
{
tmpMeta[0] = mmc_mk_cons(_pathStr, mmc_mk_cons(_version, mmc_mk_cons(_actualVersionStr, MMC_REFSTRUCTLIT(mmc_nil))));
omc_Error_addMessage(threadData, _OMC_LIT462, tmpMeta[0]);
}
else
{
tmpMeta[0] = mmc_mk_cons(_pathStr, mmc_mk_cons(_version, mmc_mk_cons(_actualVersionStr, MMC_REFSTRUCTLIT(mmc_nil))));
omc_Error_addMessage(threadData, _OMC_LIT459, tmpMeta[0]);
}
_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;
modelica_metatype tmpMeta[5] __attribute__((unused)) = {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: {
if (0 != tmp4_2) goto tmp3_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1));
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2));
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3));
if (listEmpty(tmpMeta[2])) goto tmp3_end;
tmpMeta[3] = MMC_CAR(tmpMeta[2]);
tmpMeta[4] = MMC_CDR(tmpMeta[2]);
_path = tmpMeta[0];
_requestOrigin = tmpMeta[1];
_str1 = tmpMeta[3];
_cdef = omc_InteractiveUtil_getPathedClassInProgram(threadData, _path, _p, 0);
_ostr2 = omc_AbsynUtil_getNamedAnnotationInClass(threadData, _cdef, _OMC_LIT271, boxvar_InteractiveUtil_getAnnotationStringValueOrFail);
_withoutConversion = omc_InteractiveUtil_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: {
if (optionNone(tmp4_3)) goto tmp3_end;
tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 1));
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1));
_str2 = tmpMeta[0];
_path = tmpMeta[1];
_str1 = omc_AbsynUtil_pathString(threadData, _path, _OMC_LIT99, 1, 0);
tmpMeta[0] = mmc_mk_cons(_str1, mmc_mk_cons(_str2, MMC_REFSTRUCTLIT(mmc_nil)));
omc_Error_addMessage(threadData, _OMC_LIT465, tmpMeta[0]);
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_metatype _inArg, modelica_metatype _inTpl)
{
modelica_metatype _outTpl = NULL;
modelica_metatype _modelsToLoad = NULL;
modelica_boolean _b;
modelica_boolean _b1;
modelica_boolean _success;
modelica_boolean _forceLoad;
modelica_boolean _notifyLoad;
modelica_boolean _checkUses;
modelica_boolean _requireExactVersion;
modelica_boolean _onlyCheckFirstModelicaPath;
modelica_boolean _encrypted;
modelica_metatype _path = NULL;
modelica_metatype _versionsLst = NULL;
modelica_string _pathStr = NULL;
modelica_string _versions = NULL;
modelica_string _className = NULL;
modelica_string _version = NULL;
modelica_string _modelicaPath = NULL;
modelica_string _thisModelicaPath = NULL;
modelica_metatype _p = NULL;
modelica_metatype _pnew = NULL;
modelica_metatype _msgTokens = NULL;
modelica_integer tmp1;
modelica_integer tmp2;
modelica_integer tmp3;
modelica_integer tmp4;
modelica_integer tmp5;
modelica_integer tmp6;
modelica_metatype tmpMeta[7] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta[0] = _modelToLoad;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1));
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3));
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4));
tmp1 = mmc_unbox_integer(tmpMeta[3]);
_path = tmpMeta[1];
_versionsLst = tmpMeta[2];
_onlyCheckFirstModelicaPath = tmp1;
tmpMeta[0] = _inArg;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1));
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2));
tmp2 = mmc_unbox_integer(tmpMeta[2]);
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3));
tmp3 = mmc_unbox_integer(tmpMeta[3]);
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4));
tmp4 = mmc_unbox_integer(tmpMeta[4]);
tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5));
tmp5 = mmc_unbox_integer(tmpMeta[5]);
tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6));
tmp6 = mmc_unbox_integer(tmpMeta[6]);
_modelicaPath = tmpMeta[1];
_forceLoad = tmp2;
_notifyLoad = tmp3;
_checkUses = tmp4;
_requireExactVersion = tmp5;
_encrypted = tmp6;
if(_onlyCheckFirstModelicaPath)
{
tmpMeta[0] = omc_System_strtok(threadData, _modelicaPath, _OMC_LIT2);
if (listEmpty(tmpMeta[0])) MMC_THROW_INTERNAL();
tmpMeta[1] = MMC_CAR(tmpMeta[0]);
tmpMeta[2] = MMC_CDR(tmpMeta[0]);
_thisModelicaPath = tmpMeta[1];
}
else
{
_thisModelicaPath = _modelicaPath;
}
{
{
volatile mmc_switch_type tmp9;
int tmp10;
tmp9 = 0;
MMC_TRY_INTERNAL(mmc_jumper)
tmp8_top:
threadData->mmc_jumper = &new_mmc_jumper;
for (; tmp9 < 2; tmp9++) {
switch (MMC_SWITCH_CAST(tmp9)) {
case 0: {
modelica_integer tmp11;
tmpMeta[0] = _inTpl;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1));
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2));
tmp11 = mmc_unbox_integer(tmpMeta[2]);
_p = tmpMeta[1];
_success = tmp11;
if(omc_CevalScript_checkModelLoaded(threadData, _modelToLoad, _p, _forceLoad, mmc_mk_none()))
{
_pnew = _OMC_LIT469;
_version = _OMC_LIT52;
}
else
{
_pnew = omc_ClassLoader_loadClass(threadData, _path, _versionsLst, _thisModelicaPath, mmc_mk_none(), _requireExactVersion, _encrypted);
_version = omc_CevalScript_getPackageVersion(threadData, _path, _pnew);
_b = ((!_notifyLoad) || _forceLoad);
tmpMeta[0] = mmc_mk_cons(omc_AbsynUtil_pathString(threadData, _path, _OMC_LIT99, 1, 0), mmc_mk_cons(_version, MMC_REFSTRUCTLIT(mmc_nil)));
_msgTokens = tmpMeta[0];
omc_Error_assertionOrAddSourceMessage(threadData, _b, _OMC_LIT468, _msgTokens, _OMC_LIT158);
}
_p = omc_InteractiveUtil_updateProgram(threadData, _pnew, _p, 0);
_b = 1;
if(_checkUses)
{
_modelsToLoad = omc_InteractiveUtil_getUsesAnnotationOrDefault(threadData, _pnew, _requireExactVersion);
_p = omc_CevalScript_loadModel(threadData, _modelsToLoad, _modelicaPath, _p, 0, _notifyLoad, _checkUses, _requireExactVersion, 0 ,&_b);
}
tmpMeta[0] = mmc_mk_box2(0, _p, mmc_mk_boolean((_success && _b)));
_outTpl = tmpMeta[0];
goto tmp8_done;
}
case 1: {
tmpMeta[0] = _inTpl;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1));
_p = tmpMeta[1];
_pathStr = omc_AbsynUtil_pathString(threadData, _path, _OMC_LIT99, 1, 0);
_versions = stringDelimitList(_versionsLst, _OMC_LIT126);
tmpMeta[0] = mmc_mk_cons(_pathStr, mmc_mk_cons(_versions, mmc_mk_cons(_thisModelicaPath, MMC_REFSTRUCTLIT(mmc_nil))));
_msgTokens = tmpMeta[0];
if(_forceLoad)
{
omc_Error_addMessage(threadData, _OMC_LIT475, _msgTokens);
tmpMeta[0] = mmc_mk_box2(0, _p, mmc_mk_boolean(0));
_outTpl = tmpMeta[0];
}
else
{
omc_Error_addMessage(threadData, _OMC_LIT472, _msgTokens);
_outTpl = _inTpl;
}
goto tmp8_done;
}
}
goto tmp8_end;
tmp8_end: ;
}
goto goto_7;
tmp8_done:
(void)tmp9;
MMC_RESTORE_INTERNAL(mmc_jumper);
goto tmp8_done2;
goto_7:;
MMC_CATCH_INTERNAL(mmc_jumper);
if (++tmp9 < 2) {
goto tmp8_top;
}
MMC_THROW_INTERNAL();
tmp8_done2:;
}
}
;
_return: OMC_LABEL_UNUSED
return _outTpl;
}
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_boolean *out_success)
{
modelica_metatype _pnew = NULL;
modelica_boolean _success;
modelica_metatype _arg = NULL;
modelica_integer tmp1;
modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
tmpMeta[0] = mmc_mk_box6(0, _modelicaPath, mmc_mk_boolean(_forceLoad), mmc_mk_boolean(_notifyLoad), mmc_mk_boolean(_checkUses), mmc_mk_boolean(_requireExactVersion), mmc_mk_boolean(_encrypted));
_arg = tmpMeta[0];
tmpMeta[1] = mmc_mk_box2(0, _ip, mmc_mk_boolean(1));
tmpMeta[2] = omc_List_fold1(threadData, _imodelsToLoad, boxvar_CevalScript_loadModel1, _arg, tmpMeta[1]);
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 1));
tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2));
tmp1 = mmc_unbox_integer(tmpMeta[4]);
_pnew = tmpMeta[3];
_success = tmp1;
_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 *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, &_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_boolean tmp1;
modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_p = __omcQ_24in_5Fp;
tmp1 = (modelica_boolean)_checkUses;
if(tmp1)
{
tmpMeta[1] = omc_InteractiveUtil_getUsesAnnotationOrDefault(threadData, _newp, _requireExactVersion);
}
else
{
tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil);
tmpMeta[1] = tmpMeta[0];
}
_modelsToLoad = tmpMeta[1];
_p = omc_InteractiveUtil_updateProgram(threadData, _newp, _p, 0);
_p = omc_CevalScript_loadModel(threadData, _modelsToLoad, _modelicaPath, _p, 0, _notifyLoad, _checkUses, _requireExactVersion, 0, 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_boolean tmp2;
modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
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_LIT479)) || (stringEqual(_filename, _OMC_LIT478))))
{
tmpMeta[0] = omc_System_strtok(threadData, omc_List_last(threadData, omc_System_strtok(threadData, _dir, _OMC_LIT0)), _OMC_LIT87);
if (listEmpty(tmpMeta[0])) MMC_THROW_INTERNAL();
tmpMeta[1] = MMC_CAR(tmpMeta[0]);
tmpMeta[2] = MMC_CDR(tmpMeta[0]);
_cname = tmpMeta[1];
_rest = tmpMeta[2];
_prio = stringDelimitList(_rest, _OMC_LIT87);
tmpMeta[0] = stringAppend(_dir,_OMC_LIT476);
tmpMeta[1] = stringAppend(omc_System_realpath(threadData, tmpMeta[0]),_OMC_LIT2);
tmpMeta[2] = stringAppend(tmpMeta[1],omc_Settings_getModelicaPath(threadData, omc_Testsuite_isRunning(threadData)));
_mp = tmpMeta[2];
tmpMeta[1] = mmc_mk_box2(4, &Absyn_Path_IDENT__desc, _cname);
tmpMeta[2] = mmc_mk_cons(_prio, MMC_REFSTRUCTLIT(mmc_nil));
tmpMeta[3] = mmc_mk_box4(0, tmpMeta[1], _OMC_LIT477, tmpMeta[2], mmc_mk_boolean(1));
tmpMeta[0] = mmc_mk_cons(tmpMeta[3], MMC_REFSTRUCTLIT(mmc_nil));
tmpMeta[4] = omc_CevalScript_loadModel(threadData, tmpMeta[0], _mp, _p, 1, _notifyLoad, _checkUses, _requireExactVersion, (stringEqual(_filename, _OMC_LIT478)), &tmp2);
_outProgram = tmpMeta[4];
if (1 != tmp2) 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_boolean tmp1;
modelica_string tmp2;
modelica_string _fileDLL = NULL;
modelica_string _fileEXE = NULL;
modelica_string _fileLOG = NULL;
modelica_integer _numParallel;
modelica_integer _res;
modelica_boolean _isWindows;
modelica_metatype _makeVarsNoBinding = NULL;
modelica_string tmp3;
modelica_boolean tmp5;
modelica_string tmp6;
modelica_boolean tmp7;
modelica_string tmp8;
modelica_string tmp9;
modelica_integer tmp11;
modelica_integer tmp12;
modelica_integer tmp13;
modelica_metatype tmpMeta[20] __attribute__((unused)) = {0};
MMC_SO();
_tailrecursive: OMC_LABEL_UNUSED
_omhome = omc_Settings_getInstallationDirectoryPath(threadData);
_omhome_1 = omc_System_stringReplace(threadData, _omhome, _OMC_LIT97, _OMC_LIT52);
_pd = _OMC_LIT0;
tmp1 = (modelica_boolean)(stringEqual(_workingDir, _OMC_LIT52));
if(tmp1)
{
tmp2 = _OMC_LIT52;
}
else
{
tmpMeta[0] = stringAppend(_workingDir,_pd);
tmp2 = tmpMeta[0];
}
_workDir = tmp2;
tmpMeta[1] = stringAppend(_workDir,_fileprefix);
tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT52);
_fileDLL = tmpMeta[2];
tmpMeta[3] = stringAppend(_workDir,_fileprefix);
tmpMeta[4] = stringAppend(tmpMeta[3],_OMC_LIT52);
_fileEXE = tmpMeta[4];
tmpMeta[5] = stringAppend(_workDir,_fileprefix);
tmpMeta[6] = stringAppend(tmpMeta[5],_OMC_LIT480);
_fileLOG = tmpMeta[6];
_isWindows = 0;
tmpMeta[7] = stringAppend(_workDir,_fileprefix);
tmpMeta[8] = stringAppend(tmpMeta[7],_OMC_LIT481);
_libsfilename = tmpMeta[8];
_libs_str = stringDelimitList(_libs, _OMC_LIT87);
_makeVarsNoBinding = _makeVars;
omc_System_writeFile(threadData, _libsfilename, _libs_str);
if(_isWindows)
{
tmpMeta[7] = stringAppend(_OMC_LIT486,omc_System_stringReplace(threadData, _omhome_1, _OMC_LIT0, _OMC_LIT487));
tmpMeta[8] = stringAppend(tmpMeta[7],_OMC_LIT488);
_omhome = tmpMeta[8];
{
modelica_string __omcQ_24tmpVar15;
modelica_string __omcQ_24tmpVar14;
int tmp4;
modelica_metatype _var_loopVar = 0;
modelica_metatype _var;
_var_loopVar = _makeVarsNoBinding;
__omcQ_24tmpVar15 = (modelica_string) mmc_emptystring;
while(1) {
tmp4 = 1;
if (!listEmpty(_var_loopVar)) {
_var = MMC_CAR(_var_loopVar);
_var_loopVar = MMC_CDR(_var_loopVar);
tmp4--;
}
if (tmp4 == 0) {
tmpMeta[7] = stringAppend(_OMC_LIT489,_var);
tmpMeta[8] = stringAppend(tmpMeta[7],_OMC_LIT488);
__omcQ_24tmpVar14 = tmpMeta[8];
tmpMeta[9] = stringAppend(__omcQ_24tmpVar15,__omcQ_24tmpVar14);
__omcQ_24tmpVar15 = tmpMeta[9];
} else if (tmp4 == 1) {
break;
} else {
MMC_THROW_INTERNAL();
}
}
tmp3 = __omcQ_24tmpVar15;
}
_setMakeVars = tmp3;
tmp5 = (modelica_boolean)(stringLength(_workingDir) == ((modelica_integer) 0));
if(tmp5)
{
tmp6 = _OMC_LIT52;
}
else
{
tmpMeta[7] = stringAppend(_OMC_LIT490,_workingDir);
tmpMeta[8] = stringAppend(tmpMeta[7],_OMC_LIT491);
tmp6 = tmpMeta[8];
}
_cdWorkingDir = tmp6;
_winCompileMode = (omc_Testsuite_isRunning(threadData)?_OMC_LIT492:_OMC_LIT493);
tmpMeta[7] = mmc_mk_cons(_omhome, mmc_mk_cons(_cdWorkingDir, mmc_mk_cons(_setMakeVars, mmc_mk_cons(_OMC_LIT97, mmc_mk_cons(_omhome_1, mmc_mk_cons(_pd, mmc_mk_cons(_OMC_LIT494, mmc_mk_cons(_pd, mmc_mk_cons(_OMC_LIT495, mmc_mk_cons(_pd, mmc_mk_cons(_OMC_LIT496, mmc_mk_cons(_pd, mmc_mk_cons(_OMC_LIT497, mmc_mk_cons(_fileprefix, mmc_mk_cons(_OMC_LIT87, mmc_mk_cons(omc_Config_simulationCodeTarget(threadData), mmc_mk_cons(_OMC_LIT87, mmc_mk_cons(omc_System_openModelicaPlatform(threadData), mmc_mk_cons(_OMC_LIT87, mmc_mk_cons(_winCompileMode, MMC_REFSTRUCTLIT(mmc_nil)))))))))))))))))))));
_s_call = stringAppendList(tmpMeta[7]);
}
else
{
_numParallel = (omc_Testsuite_isRunning(threadData)?((modelica_integer) 1):omc_Config_noProc(threadData));
tmp7 = (modelica_boolean)(stringLength(_workingDir) == ((modelica_integer) 0));
if(tmp7)
{
tmp8 = _OMC_LIT52;
}
else
{
tmpMeta[7] = stringAppend(_OMC_LIT482,_workingDir);
tmpMeta[8] = stringAppend(tmpMeta[7],_OMC_LIT97);
tmp8 = tmpMeta[8];
}
_cdWorkingDir = tmp8;
{
modelica_string __omcQ_24tmpVar17;
modelica_string __omcQ_24tmpVar16;
int tmp10;
modelica_metatype _var_loopVar = 0;
modelica_metatype _var;
_var_loopVar = _makeVarsNoBinding;
__omcQ_24tmpVar17 = (modelica_string) mmc_emptystring;
while(1) {
tmp10 = 1;
if (!listEmpty(_var_loopVar)) {
_var = MMC_CAR(_var_loopVar);
_var_loopVar = MMC_CDR(_var_loopVar);
tmp10--;
}
if (tmp10 == 0) {
tmpMeta[7] = stringAppend(_OMC_LIT87,_var);
__omcQ_24tmpVar16 = tmpMeta[7];
tmpMeta[8] = stringAppend(__omcQ_24tmpVar17,__omcQ_24tmpVar16);
__omcQ_24tmpVar17 = tmpMeta[8];
} else if (tmp10 == 1) {
break;
} else {
MMC_THROW_INTERNAL();
}
}
tmp9 = __omcQ_24tmpVar17;
}
_setMakeVars = tmp9;
tmpMeta[7] = mmc_mk_cons(_OMC_LIT483, mmc_mk_cons(intString(_numParallel), mmc_mk_cons(_cdWorkingDir, mmc_mk_cons(_OMC_LIT484, mmc_mk_cons(_fileprefix, mmc_mk_cons(_OMC_LIT485, mmc_mk_cons(_setMakeVars, MMC_REFSTRUCTLIT(mmc_nil))))))));
_s_call = stringAppendList(tmpMeta[7]);
}
if(omc_Flags_isSet(threadData, _OMC_LIT170))
{
tmpMeta[7] = stringAppend(_OMC_LIT498,_s_call);
omc_Debug_traceln(threadData, tmpMeta[7]);
}
if(omc_System_regularFileExists(threadData, _fileEXE))
{
tmp11 = omc_System_removeFile(threadData, _fileEXE);
if (0 != tmp11) MMC_THROW_INTERNAL();
}
if(omc_System_regularFileExists(threadData, _fileDLL))
{
tmp12 = omc_System_removeFile(threadData, _fileDLL);
if (0 != tmp12) MMC_THROW_INTERNAL();
}
if(omc_System_regularFileExists(threadData, _fileLOG))
{
tmp13 = omc_System_removeFile(threadData, _fileLOG);
if (0 != tmp13) MMC_THROW_INTERNAL();
}
if(omc_Testsuite_isRunning(threadData))
{
tmpMeta[7] = stringAppend(_fileEXE,_OMC_LIT14);
tmpMeta[8] = stringAppend(tmpMeta[7],_fileDLL);
tmpMeta[9] = stringAppend(tmpMeta[8],_OMC_LIT14);
tmpMeta[10] = stringAppend(tmpMeta[9],_fileLOG);
tmpMeta[11] = stringAppend(tmpMeta[10],_OMC_LIT14);
tmpMeta[12] = stringAppend(tmpMeta[11],_fileprefix);
tmpMeta[13] = stringAppend(tmpMeta[12],_OMC_LIT499);
tmpMeta[14] = stringAppend(tmpMeta[13],_fileprefix);
tmpMeta[15] = stringAppend(tmpMeta[14],_OMC_LIT500);
tmpMeta[16] = stringAppend(tmpMeta[15],_fileprefix);
tmpMeta[17] = stringAppend(tmpMeta[16],_OMC_LIT501);
tmpMeta[18] = stringAppend(tmpMeta[17],_fileprefix);
tmpMeta[19] = stringAppend(tmpMeta[18],_OMC_LIT502);
omc_System_appendFile(threadData, omc_Testsuite_getTempFilesFile(threadData), tmpMeta[19]);
}
if((omc_System_systemCall(threadData, _s_call, (_isWindows?_OMC_LIT52:_fileLOG)) != ((modelica_integer) 0)))
{
if(omc_System_regularFileExists(threadData, _fileLOG))
{
tmpMeta[7] = mmc_mk_cons(omc_System_readFile(threadData, _fileLOG), MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addMessage(threadData, _OMC_LIT506, tmpMeta[7]);
}
else
{
if(_isWindows)
{
tmpMeta[7] = mmc_mk_cons(_omhome_1, mmc_mk_cons(_pd, mmc_mk_cons(_OMC_LIT494, mmc_mk_cons(_pd, mmc_mk_cons(_OMC_LIT495, mmc_mk_cons(_pd, mmc_mk_cons(_OMC_LIT496, mmc_mk_cons(_pd, mmc_mk_cons(_OMC_LIT503, MMC_REFSTRUCTLIT(mmc_nil))))))))));
_s_call = stringAppendList(tmpMeta[7]);
if((!omc_System_regularFileExists(threadData, _s_call)))
{
tmpMeta[8] = mmc_mk_cons(_OMC_LIT507, mmc_mk_cons(_s_call, mmc_mk_cons(_OMC_LIT508, MMC_REFSTRUCTLIT(mmc_nil))));
tmpMeta[7] = mmc_mk_cons(stringAppendList(tmpMeta[8]), MMC_REFSTRUCTLIT(mmc_nil));
omc_Error_addMessage(threadData, _OMC_LIT506, tmpMeta[7]);
}
}
}
if(omc_Flags_isSet(threadData, _OMC_LIT170))
{
omc_Debug_trace(threadData, _OMC_LIT509);
}
MMC_THROW_INTERNAL();
}
if(omc_Flags_isSet(threadData, _OMC_LIT170))
{
omc_Debug_trace(threadData, _OMC_LIT510);
}
_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;
modelica_metatype tmpMeta[4] __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 = _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: {
_cache = tmp4_1;
_env = tmp4_2;
_fpath = tmp4_3;
omc_Lookup_lookupClass(threadData, _cache, _env, _fpath, mmc_mk_none(), &tmpMeta[0], NULL);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],2,8) == 0) goto goto_2;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 7));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,8) == 0) goto goto_2;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 9));
if (optionNone(tmpMeta[2])) goto goto_2;
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 1));
tmp1 = 1;
goto tmp3_done;
}
case 1: {
modelica_boolean tmp6;
tmp6 = omc_System_getPartialInstantiation(threadData);
if (1 != tmp6) goto goto_2;
tmp1 = 0;
goto tmp3_done;
}
case 2: {
_cache = tmp4_1;
_env = tmp4_2;
_fpath = tmp4_3;
omc_Lookup_lookupClass(threadData, _cache, _env, _fpath, mmc_mk_none(), &tmpMeta[0], NULL);
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],2,8) == 0) goto goto_2;
tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5));
if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],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[4] __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_boolean tmp6;
if (mmc__uniontype__metarecord__typedef__equal(tmp4_3,13,3) == 0) goto tmp3_end;
tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 2));
tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_3), 3));
_e = tmp4_3;
_funcpath = tmpMeta[2];
_expl = tmpMeta[3];
_cache = tmp4_1;
_env = tmp4_2;
_impl = tmp4_4;
_msg = tmp4_5;
tmp6 = (stringEqual(_OMC_LIT511, omc_AbsynUtil_pathString(threadData, _funcpath, _OMC_LIT99, 1, 0)));
if (0 != tmp6) 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;
}
