/* Include files */

#include <stddef.h>
#include "blas.h"
#include "sl_househeat_sfun.h"
#include "c6_sl_househeat.h"
#include "mwmathutil.h"
#define CHARTINSTANCE_CHARTNUMBER      (chartInstance->chartNumber)
#define CHARTINSTANCE_INSTANCENUMBER   (chartInstance->instanceNumber)
#include "sl_househeat_sfun_debug_macros.h"
#define _SF_MEX_LISTEN_FOR_CTRL_C(S)   sf_mex_listen_for_ctrl_c(sfGlobalDebugInstanceStruct,S);

/* Type Definitions */

/* Named Constants */
#define CALL_EVENT                     (-1)

/* Variable Declarations */

/* Variable Definitions */
static const char * c6_debug_family_names[9] = { "timeMessage", "nargin",
  "nargout", "roomTemp", "waterOutTemp", "waterReturnTemp", "outDoorTemp",
  "currTime", "message" };

static const char * c6_b_debug_family_names[6] = { "length", "i", "data",
  "nargin", "nargout", "answer" };

static const char * c6_c_debug_family_names[4] = { "nargin", "nargout", "value",
  "data" };

static const char * c6_d_debug_family_names[6] = { "length", "i", "data",
  "nargin", "nargout", "answer" };

/* Function Declarations */
static void initialize_c6_sl_househeat(SFc6_sl_househeatInstanceStruct
  *chartInstance);
static void initialize_params_c6_sl_househeat(SFc6_sl_househeatInstanceStruct
  *chartInstance);
static void enable_c6_sl_househeat(SFc6_sl_househeatInstanceStruct
  *chartInstance);
static void disable_c6_sl_househeat(SFc6_sl_househeatInstanceStruct
  *chartInstance);
static void c6_update_debugger_state_c6_sl_househeat
  (SFc6_sl_househeatInstanceStruct *chartInstance);
static const mxArray *get_sim_state_c6_sl_househeat
  (SFc6_sl_househeatInstanceStruct *chartInstance);
static void set_sim_state_c6_sl_househeat(SFc6_sl_househeatInstanceStruct
  *chartInstance, const mxArray *c6_st);
static void finalize_c6_sl_househeat(SFc6_sl_househeatInstanceStruct
  *chartInstance);
static void sf_c6_sl_househeat(SFc6_sl_househeatInstanceStruct *chartInstance);
static void c6_chartstep_c6_sl_househeat(SFc6_sl_househeatInstanceStruct
  *chartInstance);
static void initSimStructsc6_sl_househeat(SFc6_sl_househeatInstanceStruct
  *chartInstance);
static int8_T c6_crcCheck(SFc6_sl_househeatInstanceStruct *chartInstance, real_T
  c6_data[5]);
static void c6_convertValueToData(SFc6_sl_househeatInstanceStruct *chartInstance,
  real_T c6_value, uint8_T c6_data[2]);
static void init_script_number_translation(uint32_T c6_machineNumber, uint32_T
  c6_chartNumber);
static const mxArray *c6_sf_marshallOut(void *chartInstanceVoid, void *c6_inData);
static void c6_emlrt_marshallIn(SFc6_sl_househeatInstanceStruct *chartInstance,
  const mxArray *c6_message, const char_T *c6_identifier, real_T c6_y[27]);
static void c6_b_emlrt_marshallIn(SFc6_sl_househeatInstanceStruct *chartInstance,
  const mxArray *c6_u, const emlrtMsgIdentifier *c6_parentId, real_T c6_y[27]);
static void c6_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c6_mxArrayInData, const char_T *c6_varName, void *c6_outData);
static const mxArray *c6_b_sf_marshallOut(void *chartInstanceVoid, void
  *c6_inData);
static real_T c6_c_emlrt_marshallIn(SFc6_sl_househeatInstanceStruct
  *chartInstance, const mxArray *c6_u, const emlrtMsgIdentifier *c6_parentId);
static void c6_b_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c6_mxArrayInData, const char_T *c6_varName, void *c6_outData);
static const mxArray *c6_c_sf_marshallOut(void *chartInstanceVoid, void
  *c6_inData);
static void c6_d_emlrt_marshallIn(SFc6_sl_househeatInstanceStruct *chartInstance,
  const mxArray *c6_u, const emlrtMsgIdentifier *c6_parentId, real_T c6_y[7]);
static void c6_c_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c6_mxArrayInData, const char_T *c6_varName, void *c6_outData);
static const mxArray *c6_d_sf_marshallOut(void *chartInstanceVoid, void
  *c6_inData);
static int8_T c6_e_emlrt_marshallIn(SFc6_sl_househeatInstanceStruct
  *chartInstance, const mxArray *c6_u, const emlrtMsgIdentifier *c6_parentId);
static void c6_d_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c6_mxArrayInData, const char_T *c6_varName, void *c6_outData);
static const mxArray *c6_e_sf_marshallOut(void *chartInstanceVoid, void
  *c6_inData);
static void c6_f_emlrt_marshallIn(SFc6_sl_househeatInstanceStruct *chartInstance,
  const mxArray *c6_u, const emlrtMsgIdentifier *c6_parentId, real_T c6_y[5]);
static void c6_e_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c6_mxArrayInData, const char_T *c6_varName, void *c6_outData);
static const mxArray *c6_f_sf_marshallOut(void *chartInstanceVoid, void
  *c6_inData);
static void c6_g_emlrt_marshallIn(SFc6_sl_househeatInstanceStruct *chartInstance,
  const mxArray *c6_u, const emlrtMsgIdentifier *c6_parentId, int8_T c6_y[5]);
static void c6_f_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c6_mxArrayInData, const char_T *c6_varName, void *c6_outData);
static const mxArray *c6_g_sf_marshallOut(void *chartInstanceVoid, void
  *c6_inData);
static void c6_h_emlrt_marshallIn(SFc6_sl_househeatInstanceStruct *chartInstance,
  const mxArray *c6_u, const emlrtMsgIdentifier *c6_parentId, uint8_T c6_y[2]);
static void c6_g_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c6_mxArrayInData, const char_T *c6_varName, void *c6_outData);
static const mxArray *c6_h_sf_marshallOut(void *chartInstanceVoid, void
  *c6_inData);
static void c6_i_emlrt_marshallIn(SFc6_sl_househeatInstanceStruct *chartInstance,
  const mxArray *c6_u, const emlrtMsgIdentifier *c6_parentId, real_T c6_y[20]);
static void c6_h_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c6_mxArrayInData, const char_T *c6_varName, void *c6_outData);
static const mxArray *c6_i_sf_marshallOut(void *chartInstanceVoid, void
  *c6_inData);
static void c6_j_emlrt_marshallIn(SFc6_sl_househeatInstanceStruct *chartInstance,
  const mxArray *c6_u, const emlrtMsgIdentifier *c6_parentId, int8_T c6_y[20]);
static void c6_i_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c6_mxArrayInData, const char_T *c6_varName, void *c6_outData);
static void c6_info_helper(const mxArray **c6_info);
static const mxArray *c6_emlrt_marshallOut(char * c6_u);
static const mxArray *c6_b_emlrt_marshallOut(uint32_T c6_u);
static real_T c6_mod(SFc6_sl_househeatInstanceStruct *chartInstance, real_T c6_x,
                     real_T c6_y);
static void c6_eml_scalar_eg(SFc6_sl_househeatInstanceStruct *chartInstance);
static const mxArray *c6_j_sf_marshallOut(void *chartInstanceVoid, void
  *c6_inData);
static int32_T c6_k_emlrt_marshallIn(SFc6_sl_househeatInstanceStruct
  *chartInstance, const mxArray *c6_u, const emlrtMsgIdentifier *c6_parentId);
static void c6_j_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c6_mxArrayInData, const char_T *c6_varName, void *c6_outData);
static uint8_T c6_l_emlrt_marshallIn(SFc6_sl_househeatInstanceStruct
  *chartInstance, const mxArray *c6_b_is_active_c6_sl_househeat, const char_T
  *c6_identifier);
static uint8_T c6_m_emlrt_marshallIn(SFc6_sl_househeatInstanceStruct
  *chartInstance, const mxArray *c6_u, const emlrtMsgIdentifier *c6_parentId);
static void init_dsm_address_info(SFc6_sl_househeatInstanceStruct *chartInstance);

/* Function Definitions */
static void initialize_c6_sl_househeat(SFc6_sl_househeatInstanceStruct
  *chartInstance)
{
  chartInstance->c6_sfEvent = CALL_EVENT;
  _sfTime_ = (real_T)ssGetT(chartInstance->S);
  chartInstance->c6_is_active_c6_sl_househeat = 0U;
}

static void initialize_params_c6_sl_househeat(SFc6_sl_househeatInstanceStruct
  *chartInstance)
{
}

static void enable_c6_sl_househeat(SFc6_sl_househeatInstanceStruct
  *chartInstance)
{
  _sfTime_ = (real_T)ssGetT(chartInstance->S);
}

static void disable_c6_sl_househeat(SFc6_sl_househeatInstanceStruct
  *chartInstance)
{
  _sfTime_ = (real_T)ssGetT(chartInstance->S);
}

static void c6_update_debugger_state_c6_sl_househeat
  (SFc6_sl_househeatInstanceStruct *chartInstance)
{
}

static const mxArray *get_sim_state_c6_sl_househeat
  (SFc6_sl_househeatInstanceStruct *chartInstance)
{
  const mxArray *c6_st;
  const mxArray *c6_y = NULL;
  int32_T c6_i0;
  real_T c6_u[27];
  const mxArray *c6_b_y = NULL;
  uint8_T c6_hoistedGlobal;
  uint8_T c6_b_u;
  const mxArray *c6_c_y = NULL;
  real_T (*c6_message)[27];
  c6_message = (real_T (*)[27])ssGetOutputPortSignal(chartInstance->S, 1);
  c6_st = NULL;
  c6_st = NULL;
  c6_y = NULL;
  sf_mex_assign(&c6_y, sf_mex_createcellarray(2), FALSE);
  for (c6_i0 = 0; c6_i0 < 27; c6_i0++) {
    c6_u[c6_i0] = (*c6_message)[c6_i0];
  }

  c6_b_y = NULL;
  sf_mex_assign(&c6_b_y, sf_mex_create("y", c6_u, 0, 0U, 1U, 0U, 1, 27), FALSE);
  sf_mex_setcell(c6_y, 0, c6_b_y);
  c6_hoistedGlobal = chartInstance->c6_is_active_c6_sl_househeat;
  c6_b_u = c6_hoistedGlobal;
  c6_c_y = NULL;
  sf_mex_assign(&c6_c_y, sf_mex_create("y", &c6_b_u, 3, 0U, 0U, 0U, 0), FALSE);
  sf_mex_setcell(c6_y, 1, c6_c_y);
  sf_mex_assign(&c6_st, c6_y, FALSE);
  return c6_st;
}

static void set_sim_state_c6_sl_househeat(SFc6_sl_househeatInstanceStruct
  *chartInstance, const mxArray *c6_st)
{
  const mxArray *c6_u;
  real_T c6_dv0[27];
  int32_T c6_i1;
  real_T (*c6_message)[27];
  c6_message = (real_T (*)[27])ssGetOutputPortSignal(chartInstance->S, 1);
  chartInstance->c6_doneDoubleBufferReInit = TRUE;
  c6_u = sf_mex_dup(c6_st);
  c6_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c6_u, 0)),
                      "message", c6_dv0);
  for (c6_i1 = 0; c6_i1 < 27; c6_i1++) {
    (*c6_message)[c6_i1] = c6_dv0[c6_i1];
  }

  chartInstance->c6_is_active_c6_sl_househeat = c6_l_emlrt_marshallIn
    (chartInstance, sf_mex_dup(sf_mex_getcell(c6_u, 1)),
     "is_active_c6_sl_househeat");
  sf_mex_destroy(&c6_u);
  c6_update_debugger_state_c6_sl_househeat(chartInstance);
  sf_mex_destroy(&c6_st);
}

static void finalize_c6_sl_househeat(SFc6_sl_househeatInstanceStruct
  *chartInstance)
{
}

static void sf_c6_sl_househeat(SFc6_sl_househeatInstanceStruct *chartInstance)
{
  int32_T c6_i2;
  real_T *c6_roomTemp;
  real_T *c6_waterOutTemp;
  real_T *c6_waterReturnTemp;
  real_T *c6_outDoorTemp;
  real_T *c6_currTime;
  real_T (*c6_message)[27];
  c6_currTime = (real_T *)ssGetInputPortSignal(chartInstance->S, 4);
  c6_outDoorTemp = (real_T *)ssGetInputPortSignal(chartInstance->S, 3);
  c6_waterReturnTemp = (real_T *)ssGetInputPortSignal(chartInstance->S, 2);
  c6_waterOutTemp = (real_T *)ssGetInputPortSignal(chartInstance->S, 1);
  c6_message = (real_T (*)[27])ssGetOutputPortSignal(chartInstance->S, 1);
  c6_roomTemp = (real_T *)ssGetInputPortSignal(chartInstance->S, 0);
  _SFD_SYMBOL_SCOPE_PUSH(0U, 0U);
  _sfTime_ = (real_T)ssGetT(chartInstance->S);
  _SFD_CC_CALL(CHART_ENTER_SFUNCTION_TAG, 3U, chartInstance->c6_sfEvent);
  _SFD_DATA_RANGE_CHECK(*c6_roomTemp, 0U);
  for (c6_i2 = 0; c6_i2 < 27; c6_i2++) {
    _SFD_DATA_RANGE_CHECK((*c6_message)[c6_i2], 1U);
  }

  _SFD_DATA_RANGE_CHECK(*c6_waterOutTemp, 2U);
  _SFD_DATA_RANGE_CHECK(*c6_waterReturnTemp, 3U);
  _SFD_DATA_RANGE_CHECK(*c6_outDoorTemp, 4U);
  _SFD_DATA_RANGE_CHECK(*c6_currTime, 5U);
  chartInstance->c6_sfEvent = CALL_EVENT;
  c6_chartstep_c6_sl_househeat(chartInstance);
  _SFD_SYMBOL_SCOPE_POP();
  _SFD_CHECK_FOR_STATE_INCONSISTENCY(_sl_househeatMachineNumber_,
    chartInstance->chartNumber, chartInstance->instanceNumber);
}

static void c6_chartstep_c6_sl_househeat(SFc6_sl_househeatInstanceStruct
  *chartInstance)
{
  real_T c6_hoistedGlobal;
  real_T c6_b_hoistedGlobal;
  real_T c6_c_hoistedGlobal;
  real_T c6_d_hoistedGlobal;
  real_T c6_e_hoistedGlobal;
  real_T c6_roomTemp;
  real_T c6_waterOutTemp;
  real_T c6_waterReturnTemp;
  real_T c6_outDoorTemp;
  real_T c6_currTime;
  uint32_T c6_debug_family_var_map[9];
  real_T c6_timeMessage[7];
  real_T c6_nargin = 5.0;
  real_T c6_nargout = 1.0;
  real_T c6_message[27];
  int32_T c6_i3;
  int32_T c6_i4;
  int32_T c6_i5;
  static real_T c6_dv1[5] = { 16.0, 48.0, 15.0, 32.0, 20.0 };

  int32_T c6_i6;
  real_T c6_b_message[5];
  uint8_T c6_uv0[2];
  int32_T c6_i7;
  int32_T c6_i8;
  int32_T c6_i9;
  int32_T c6_i10;
  real_T c6_A;
  real_T c6_x;
  real_T c6_b_x;
  real_T c6_y;
  real_T c6_c_x;
  real_T c6_d_x;
  real_T c6_u;
  real_T c6_b_A;
  real_T c6_e_x;
  real_T c6_f_x;
  real_T c6_b_y;
  real_T c6_g_x;
  real_T c6_h_x;
  real_T c6_b_u;
  real_T c6_c_A;
  real_T c6_i_x;
  real_T c6_j_x;
  real_T c6_c_y;
  real_T c6_k_x;
  real_T c6_l_x;
  real_T c6_c_u;
  real_T c6_d_A;
  real_T c6_m_x;
  real_T c6_n_x;
  real_T c6_d_y;
  real_T c6_o_x;
  real_T c6_p_x;
  real_T c6_d_u;
  real_T c6_q_x;
  real_T c6_r_x;
  real_T c6_e_u;
  real_T c6_a;
  real_T c6_e_y;
  real_T c6_s_x;
  real_T c6_t_x;
  real_T c6_f_u;
  real_T c6_b_a;
  real_T c6_f_y;
  real_T c6_u_x;
  real_T c6_v_x;
  real_T c6_g_u;
  int32_T c6_i11;
  int32_T c6_i12;
  real_T c6_data[20];
  uint32_T c6_b_debug_family_var_map[6];
  real_T c6_length;
  real_T c6_i;
  int8_T c6_b_data[20];
  real_T c6_b_nargin = 1.0;
  real_T c6_b_nargout = 1.0;
  int8_T c6_answer;
  int32_T c6_i13;
  real_T c6_d0;
  int8_T c6_i14;
  int32_T c6_b_i;
  int8_T c6_varargin_1;
  int8_T c6_varargin_2;
  int8_T c6_c_a;
  int8_T c6_b;
  int32_T c6_i15;
  real_T *c6_b_currTime;
  real_T *c6_b_outDoorTemp;
  real_T *c6_b_waterReturnTemp;
  real_T *c6_b_waterOutTemp;
  real_T *c6_b_roomTemp;
  real_T (*c6_c_message)[27];
  c6_b_currTime = (real_T *)ssGetInputPortSignal(chartInstance->S, 4);
  c6_b_outDoorTemp = (real_T *)ssGetInputPortSignal(chartInstance->S, 3);
  c6_b_waterReturnTemp = (real_T *)ssGetInputPortSignal(chartInstance->S, 2);
  c6_b_waterOutTemp = (real_T *)ssGetInputPortSignal(chartInstance->S, 1);
  c6_c_message = (real_T (*)[27])ssGetOutputPortSignal(chartInstance->S, 1);
  c6_b_roomTemp = (real_T *)ssGetInputPortSignal(chartInstance->S, 0);
  _SFD_CC_CALL(CHART_ENTER_DURING_FUNCTION_TAG, 3U, chartInstance->c6_sfEvent);
  c6_hoistedGlobal = *c6_b_roomTemp;
  c6_b_hoistedGlobal = *c6_b_waterOutTemp;
  c6_c_hoistedGlobal = *c6_b_waterReturnTemp;
  c6_d_hoistedGlobal = *c6_b_outDoorTemp;
  c6_e_hoistedGlobal = *c6_b_currTime;
  c6_roomTemp = c6_hoistedGlobal;
  c6_waterOutTemp = c6_b_hoistedGlobal;
  c6_waterReturnTemp = c6_c_hoistedGlobal;
  c6_outDoorTemp = c6_d_hoistedGlobal;
  c6_currTime = c6_e_hoistedGlobal;
  _SFD_SYMBOL_SCOPE_PUSH_EML(0U, 9U, 9U, c6_debug_family_names,
    c6_debug_family_var_map);
  _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(c6_timeMessage, 0U, c6_c_sf_marshallOut,
    c6_c_sf_marshallIn);
  _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c6_nargin, 1U, c6_b_sf_marshallOut,
    c6_b_sf_marshallIn);
  _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c6_nargout, 2U, c6_b_sf_marshallOut,
    c6_b_sf_marshallIn);
  _SFD_SYMBOL_SCOPE_ADD_EML(&c6_roomTemp, 3U, c6_b_sf_marshallOut);
  _SFD_SYMBOL_SCOPE_ADD_EML(&c6_waterOutTemp, 4U, c6_b_sf_marshallOut);
  _SFD_SYMBOL_SCOPE_ADD_EML(&c6_waterReturnTemp, 5U, c6_b_sf_marshallOut);
  _SFD_SYMBOL_SCOPE_ADD_EML(&c6_outDoorTemp, 6U, c6_b_sf_marshallOut);
  _SFD_SYMBOL_SCOPE_ADD_EML(&c6_currTime, 7U, c6_b_sf_marshallOut);
  _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(c6_message, 8U, c6_sf_marshallOut,
    c6_sf_marshallIn);
  CV_EML_FCN(0, 0);
  _SFD_EML_CALL(0U, chartInstance->c6_sfEvent, 2);
  for (c6_i3 = 0; c6_i3 < 27; c6_i3++) {
    c6_message[c6_i3] = 0.0;
  }

  _SFD_EML_CALL(0U, chartInstance->c6_sfEvent, 3);
  for (c6_i4 = 0; c6_i4 < 7; c6_i4++) {
    c6_timeMessage[c6_i4] = 0.0;
  }

  _SFD_EML_CALL(0U, chartInstance->c6_sfEvent, 4);
  for (c6_i5 = 0; c6_i5 < 5; c6_i5++) {
    c6_message[c6_i5] = c6_dv1[c6_i5];
  }

  _SFD_EML_CALL(0U, chartInstance->c6_sfEvent, 5);
  for (c6_i6 = 0; c6_i6 < 5; c6_i6++) {
    c6_b_message[c6_i6] = c6_message[c6_i6];
  }

  c6_message[5] = (real_T)c6_crcCheck(chartInstance, c6_b_message);
  _SFD_EML_CALL(0U, chartInstance->c6_sfEvent, 6);
  c6_message[6] = 11.0;
  _SFD_EML_CALL(0U, chartInstance->c6_sfEvent, 7);
  c6_convertValueToData(chartInstance, c6_roomTemp, c6_uv0);
  for (c6_i7 = 0; c6_i7 < 2; c6_i7++) {
    c6_message[c6_i7 + 7] = (real_T)c6_uv0[c6_i7];
  }

  _SFD_EML_CALL(0U, chartInstance->c6_sfEvent, 8);
  c6_message[9] = 12.0;
  _SFD_EML_CALL(0U, chartInstance->c6_sfEvent, 9);
  c6_convertValueToData(chartInstance, c6_waterOutTemp, c6_uv0);
  for (c6_i8 = 0; c6_i8 < 2; c6_i8++) {
    c6_message[c6_i8 + 10] = (real_T)c6_uv0[c6_i8];
  }

  _SFD_EML_CALL(0U, chartInstance->c6_sfEvent, 10);
  c6_message[12] = 13.0;
  _SFD_EML_CALL(0U, chartInstance->c6_sfEvent, 11);
  c6_convertValueToData(chartInstance, c6_waterReturnTemp, c6_uv0);
  for (c6_i9 = 0; c6_i9 < 2; c6_i9++) {
    c6_message[c6_i9 + 13] = (real_T)c6_uv0[c6_i9];
  }

  _SFD_EML_CALL(0U, chartInstance->c6_sfEvent, 12);
  c6_message[15] = 15.0;
  _SFD_EML_CALL(0U, chartInstance->c6_sfEvent, 13);
  c6_convertValueToData(chartInstance, c6_outDoorTemp, c6_uv0);
  for (c6_i10 = 0; c6_i10 < 2; c6_i10++) {
    c6_message[c6_i10 + 16] = (real_T)c6_uv0[c6_i10];
  }

  _SFD_EML_CALL(0U, chartInstance->c6_sfEvent, 14);
  c6_message[18] = 31.0;
  _SFD_EML_CALL(0U, chartInstance->c6_sfEvent, 15);
  c6_A = c6_currTime;
  c6_x = c6_A;
  c6_b_x = c6_x;
  c6_y = c6_b_x / 8640.0;
  c6_c_x = c6_y;
  c6_d_x = c6_c_x;
  c6_u = c6_d_x;
  if (c6_u < 0.0) {
    c6_d_x = muDoubleScalarCeil(c6_u);
  } else {
    c6_d_x = muDoubleScalarFloor(c6_u);
  }

  c6_timeMessage[0] = 15.0 + c6_d_x;
  _SFD_EML_CALL(0U, chartInstance->c6_sfEvent, 16);
  c6_b_A = c6_currTime;
  c6_e_x = c6_b_A;
  c6_f_x = c6_e_x;
  c6_b_y = c6_f_x / 720.0;
  c6_g_x = c6_b_y;
  c6_h_x = c6_g_x;
  c6_b_u = c6_h_x;
  if (c6_b_u < 0.0) {
    c6_h_x = muDoubleScalarCeil(c6_b_u);
  } else {
    c6_h_x = muDoubleScalarFloor(c6_b_u);
  }

  c6_timeMessage[1] = c6_mod(chartInstance, c6_h_x + 1.0, 12.0);
  _SFD_EML_CALL(0U, chartInstance->c6_sfEvent, 17);
  c6_c_A = c6_currTime;
  c6_i_x = c6_c_A;
  c6_j_x = c6_i_x;
  c6_c_y = c6_j_x / 24.0;
  c6_k_x = c6_c_y;
  c6_l_x = c6_k_x;
  c6_c_u = c6_l_x;
  if (c6_c_u < 0.0) {
    c6_l_x = muDoubleScalarCeil(c6_c_u);
  } else {
    c6_l_x = muDoubleScalarFloor(c6_c_u);
  }

  c6_timeMessage[2] = c6_mod(chartInstance, c6_l_x + 1.0, 30.0);
  _SFD_EML_CALL(0U, chartInstance->c6_sfEvent, 18);
  c6_d_A = c6_currTime;
  c6_m_x = c6_d_A;
  c6_n_x = c6_m_x;
  c6_d_y = c6_n_x / 24.0;
  c6_o_x = c6_d_y;
  c6_p_x = c6_o_x;
  c6_d_u = c6_p_x;
  if (c6_d_u < 0.0) {
    c6_p_x = muDoubleScalarCeil(c6_d_u);
  } else {
    c6_p_x = muDoubleScalarFloor(c6_d_u);
  }

  c6_timeMessage[3] = c6_mod(chartInstance, c6_p_x + 1.0, 7.0);
  _SFD_EML_CALL(0U, chartInstance->c6_sfEvent, 19);
  c6_q_x = c6_currTime;
  c6_r_x = c6_q_x;
  c6_e_u = c6_r_x;
  if (c6_e_u < 0.0) {
    c6_r_x = muDoubleScalarCeil(c6_e_u);
  } else {
    c6_r_x = muDoubleScalarFloor(c6_e_u);
  }

  c6_timeMessage[4] = c6_mod(chartInstance, c6_r_x, 24.0);
  _SFD_EML_CALL(0U, chartInstance->c6_sfEvent, 20);
  c6_a = c6_currTime;
  c6_e_y = c6_a * 60.0;
  c6_s_x = c6_e_y;
  c6_t_x = c6_s_x;
  c6_f_u = c6_t_x;
  if (c6_f_u < 0.0) {
    c6_t_x = muDoubleScalarCeil(c6_f_u);
  } else {
    c6_t_x = muDoubleScalarFloor(c6_f_u);
  }

  c6_timeMessage[5] = c6_mod(chartInstance, c6_t_x, 60.0);
  _SFD_EML_CALL(0U, chartInstance->c6_sfEvent, 21);
  c6_b_a = c6_currTime;
  c6_f_y = c6_b_a * 3600.0;
  c6_u_x = c6_f_y;
  c6_v_x = c6_u_x;
  c6_g_u = c6_v_x;
  if (c6_g_u < 0.0) {
    c6_v_x = muDoubleScalarCeil(c6_g_u);
  } else {
    c6_v_x = muDoubleScalarFloor(c6_g_u);
  }

  c6_timeMessage[6] = c6_mod(chartInstance, c6_v_x, 60.0);
  _SFD_EML_CALL(0U, chartInstance->c6_sfEvent, 22);
  for (c6_i11 = 0; c6_i11 < 7; c6_i11++) {
    c6_message[c6_i11 + 19] = c6_timeMessage[c6_i11];
  }

  _SFD_EML_CALL(0U, chartInstance->c6_sfEvent, 23);
  for (c6_i12 = 0; c6_i12 < 20; c6_i12++) {
    c6_data[c6_i12] = c6_message[c6_i12 + 6];
  }

  _SFD_SYMBOL_SCOPE_PUSH_EML(0U, 6U, 7U, c6_d_debug_family_names,
    c6_b_debug_family_var_map);
  _SFD_SYMBOL_SCOPE_ADD_EML(&c6_length, 0U, c6_b_sf_marshallOut);
  _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c6_i, 1U, c6_b_sf_marshallOut,
    c6_b_sf_marshallIn);
  _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(c6_b_data, MAX_uint32_T,
    c6_i_sf_marshallOut, c6_i_sf_marshallIn);
  _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c6_b_nargin, 3U, c6_b_sf_marshallOut,
    c6_b_sf_marshallIn);
  _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c6_b_nargout, 4U, c6_b_sf_marshallOut,
    c6_b_sf_marshallIn);
  _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(c6_data, 2U, c6_h_sf_marshallOut,
    c6_h_sf_marshallIn);
  _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c6_answer, 5U, c6_d_sf_marshallOut,
    c6_d_sf_marshallIn);
  CV_SCRIPT_FCN(0, 0);
  _SFD_SCRIPT_CALL(0U, chartInstance->c6_sfEvent, 2);
  c6_answer = 0;
  _SFD_SCRIPT_CALL(0U, chartInstance->c6_sfEvent, 3);
  c6_length = 20.0;
  _SFD_SCRIPT_CALL(0U, chartInstance->c6_sfEvent, 3);
  _SFD_SCRIPT_CALL(0U, chartInstance->c6_sfEvent, 4);
  for (c6_i13 = 0; c6_i13 < 20; c6_i13++) {
    c6_d0 = muDoubleScalarRound(c6_data[c6_i13]);
    if (c6_d0 < 128.0) {
      if (CV_SATURATION_EVAL(14, 0, 0, 1, c6_d0 >= -128.0)) {
        c6_i14 = (int8_T)c6_d0;
      } else {
        c6_i14 = MIN_int8_T;
      }
    } else if (CV_SATURATION_EVAL(14, 0, 0, 0, c6_d0 >= 128.0)) {
      c6_i14 = MAX_int8_T;
    } else {
      c6_i14 = 0;
    }

    c6_b_data[c6_i13] = c6_i14;
  }

  _SFD_SYMBOL_SWITCH(2U, 2U);
  _SFD_SCRIPT_CALL(0U, chartInstance->c6_sfEvent, 5);
  c6_i = 1.0;
  c6_b_i = 0;
  while (c6_b_i < 20) {
    c6_i = 1.0 + (real_T)c6_b_i;
    CV_SCRIPT_FOR(0, 0, 1);
    _SFD_SCRIPT_CALL(0U, chartInstance->c6_sfEvent, 6);
    c6_varargin_1 = c6_answer;
    c6_varargin_2 = c6_b_data[(int32_T)(real_T)_SFD_EML_ARRAY_BOUNDS_CHECK(
      "data", (int32_T)_SFD_INTEGER_CHECK("i", c6_i), 1, 20, 1, 0) - 1];
    c6_c_a = c6_varargin_1;
    c6_b = c6_varargin_2;
    c6_answer = (int8_T)(c6_c_a ^ c6_b);
    c6_b_i++;
    _SF_MEX_LISTEN_FOR_CTRL_C(chartInstance->S);
  }

  CV_SCRIPT_FOR(0, 0, 0);
  _SFD_SCRIPT_CALL(0U, chartInstance->c6_sfEvent, -6);
  _SFD_SYMBOL_SCOPE_POP();
  c6_message[26] = (real_T)c6_answer;
  _SFD_EML_CALL(0U, chartInstance->c6_sfEvent, -23);
  _SFD_SYMBOL_SCOPE_POP();
  for (c6_i15 = 0; c6_i15 < 27; c6_i15++) {
    (*c6_c_message)[c6_i15] = c6_message[c6_i15];
  }

  _SFD_CC_CALL(EXIT_OUT_OF_FUNCTION_TAG, 3U, chartInstance->c6_sfEvent);
}

static void initSimStructsc6_sl_househeat(SFc6_sl_househeatInstanceStruct
  *chartInstance)
{
}

static int8_T c6_crcCheck(SFc6_sl_househeatInstanceStruct *chartInstance, real_T
  c6_data[5])
{
  int8_T c6_answer;
  uint32_T c6_debug_family_var_map[6];
  real_T c6_length;
  real_T c6_i;
  int8_T c6_b_data[5];
  real_T c6_nargin = 1.0;
  real_T c6_nargout = 1.0;
  int32_T c6_i16;
  real_T c6_d1;
  int8_T c6_i17;
  int32_T c6_b_i;
  int8_T c6_varargin_1;
  int8_T c6_varargin_2;
  int8_T c6_a;
  int8_T c6_b;
  _SFD_SYMBOL_SCOPE_PUSH_EML(0U, 6U, 7U, c6_b_debug_family_names,
    c6_debug_family_var_map);
  _SFD_SYMBOL_SCOPE_ADD_EML(&c6_length, 0U, c6_b_sf_marshallOut);
  _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c6_i, 1U, c6_b_sf_marshallOut,
    c6_b_sf_marshallIn);
  _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(c6_b_data, MAX_uint32_T,
    c6_f_sf_marshallOut, c6_f_sf_marshallIn);
  _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c6_nargin, 3U, c6_b_sf_marshallOut,
    c6_b_sf_marshallIn);
  _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c6_nargout, 4U, c6_b_sf_marshallOut,
    c6_b_sf_marshallIn);
  _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(c6_data, 2U, c6_e_sf_marshallOut,
    c6_e_sf_marshallIn);
  _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c6_answer, 5U, c6_d_sf_marshallOut,
    c6_d_sf_marshallIn);
  CV_SCRIPT_FCN(0, 0);
  _SFD_SCRIPT_CALL(0U, chartInstance->c6_sfEvent, 2);
  c6_answer = 0;
  _SFD_SCRIPT_CALL(0U, chartInstance->c6_sfEvent, 3);
  c6_length = 5.0;
  _SFD_SCRIPT_CALL(0U, chartInstance->c6_sfEvent, 3);
  _SFD_SCRIPT_CALL(0U, chartInstance->c6_sfEvent, 4);
  for (c6_i16 = 0; c6_i16 < 5; c6_i16++) {
    c6_d1 = muDoubleScalarRound(c6_data[c6_i16]);
    if (c6_d1 < 128.0) {
      if (CV_SATURATION_EVAL(14, 0, 0, 1, c6_d1 >= -128.0)) {
        c6_i17 = (int8_T)c6_d1;
      } else {
        c6_i17 = MIN_int8_T;
      }
    } else if (CV_SATURATION_EVAL(14, 0, 0, 0, c6_d1 >= 128.0)) {
      c6_i17 = MAX_int8_T;
    } else {
      c6_i17 = 0;
    }

    c6_b_data[c6_i16] = c6_i17;
  }

  _SFD_SYMBOL_SWITCH(2U, 2U);
  _SFD_SCRIPT_CALL(0U, chartInstance->c6_sfEvent, 5);
  c6_i = 1.0;
  c6_b_i = 0;
  while (c6_b_i < 5) {
    c6_i = 1.0 + (real_T)c6_b_i;
    CV_SCRIPT_FOR(0, 0, 1);
    _SFD_SCRIPT_CALL(0U, chartInstance->c6_sfEvent, 6);
    c6_varargin_1 = c6_answer;
    c6_varargin_2 = c6_b_data[(int32_T)(real_T)_SFD_EML_ARRAY_BOUNDS_CHECK(
      "data", (int32_T)_SFD_INTEGER_CHECK("i", c6_i), 1, 5, 1, 0) - 1];
    c6_a = c6_varargin_1;
    c6_b = c6_varargin_2;
    c6_answer = (int8_T)(c6_a ^ c6_b);
    c6_b_i++;
    _SF_MEX_LISTEN_FOR_CTRL_C(chartInstance->S);
  }

  CV_SCRIPT_FOR(0, 0, 0);
  _SFD_SCRIPT_CALL(0U, chartInstance->c6_sfEvent, -6);
  _SFD_SYMBOL_SCOPE_POP();
  return c6_answer;
}

static void c6_convertValueToData(SFc6_sl_househeatInstanceStruct *chartInstance,
  real_T c6_value, uint8_T c6_data[2])
{
  uint32_T c6_debug_family_var_map[4];
  real_T c6_nargin = 1.0;
  real_T c6_nargout = 1.0;
  int32_T c6_i18;
  real_T c6_x;
  real_T c6_b_x;
  real_T c6_d2;
  uint8_T c6_u0;
  real_T c6_c_x;
  real_T c6_d_x;
  real_T c6_y;
  real_T c6_e_x;
  real_T c6_f_x;
  real_T c6_d3;
  uint8_T c6_u1;
  real_T c6_a;
  real_T c6_b_y;
  real_T c6_g_x;
  real_T c6_h_x;
  real_T c6_c_y;
  real_T c6_d4;
  uint8_T c6_u2;
  real_T c6_b_a;
  real_T c6_d_y;
  real_T c6_i_x;
  real_T c6_j_x;
  real_T c6_e_y;
  real_T c6_d5;
  uint8_T c6_u3;
  _SFD_SYMBOL_SCOPE_PUSH_EML(0U, 4U, 4U, c6_c_debug_family_names,
    c6_debug_family_var_map);
  _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c6_nargin, 0U, c6_b_sf_marshallOut,
    c6_b_sf_marshallIn);
  _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c6_nargout, 1U, c6_b_sf_marshallOut,
    c6_b_sf_marshallIn);
  _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c6_value, 2U, c6_b_sf_marshallOut,
    c6_b_sf_marshallIn);
  _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(c6_data, 3U, c6_g_sf_marshallOut,
    c6_g_sf_marshallIn);
  CV_SCRIPT_FCN(1, 0);
  _SFD_SCRIPT_CALL(1U, chartInstance->c6_sfEvent, 2);
  for (c6_i18 = 0; c6_i18 < 2; c6_i18++) {
    c6_data[c6_i18] = 0U;
  }

  _SFD_SCRIPT_CALL(1U, chartInstance->c6_sfEvent, 3);
  if (CV_SCRIPT_IF(1, 0, c6_value > -1.0)) {
    _SFD_SCRIPT_CALL(1U, chartInstance->c6_sfEvent, 4);
    c6_x = c6_value;
    c6_b_x = c6_x;
    c6_b_x = muDoubleScalarFloor(c6_b_x);
    c6_d2 = muDoubleScalarRound(c6_b_x);
    if (c6_d2 < 256.0) {
      if (CV_SATURATION_EVAL(14, 1, 3, 1, c6_d2 >= 0.0)) {
        c6_u0 = (uint8_T)c6_d2;
      } else {
        c6_u0 = 0U;
      }
    } else if (CV_SATURATION_EVAL(14, 1, 3, 0, c6_d2 >= 256.0)) {
      c6_u0 = MAX_uint8_T;
    } else {
      c6_u0 = 0U;
    }

    c6_data[0] = c6_u0;
  } else {
    _SFD_SCRIPT_CALL(1U, chartInstance->c6_sfEvent, 6);
    c6_c_x = c6_value;
    c6_d_x = c6_c_x;
    c6_y = muDoubleScalarAbs(c6_d_x);
    c6_e_x = 256.0 - c6_y;
    c6_f_x = c6_e_x;
    c6_f_x = muDoubleScalarFloor(c6_f_x);
    c6_d3 = muDoubleScalarRound(c6_f_x);
    if (c6_d3 < 256.0) {
      if (CV_SATURATION_EVAL(14, 1, 0, 1, c6_d3 >= 0.0)) {
        c6_u1 = (uint8_T)c6_d3;
      } else {
        c6_u1 = 0U;
      }
    } else if (CV_SATURATION_EVAL(14, 1, 0, 0, c6_d3 >= 256.0)) {
      c6_u1 = MAX_uint8_T;
    } else {
      c6_u1 = 0U;
    }

    c6_data[0] = c6_u1;
  }

  _SFD_SCRIPT_CALL(1U, chartInstance->c6_sfEvent, 8);
  if (CV_SCRIPT_IF(1, 1, c6_value >= 0.0)) {
    _SFD_SCRIPT_CALL(1U, chartInstance->c6_sfEvent, 9);
    c6_a = c6_value;
    c6_b_y = c6_a * 100.0;
    c6_g_x = c6_b_y;
    c6_h_x = c6_g_x;
    c6_c_y = muDoubleScalarAbs(c6_h_x);
    c6_d4 = muDoubleScalarRound(c6_mod(chartInstance, c6_c_y, 100.0));
    if (c6_d4 < 256.0) {
      if (CV_SATURATION_EVAL(14, 1, 1, 1, c6_d4 >= 0.0)) {
        c6_u2 = (uint8_T)c6_d4;
      } else {
        c6_u2 = 0U;
      }
    } else if (CV_SATURATION_EVAL(14, 1, 1, 0, c6_d4 >= 256.0)) {
      c6_u2 = MAX_uint8_T;
    } else {
      c6_u2 = 0U;
    }

    c6_data[1] = c6_u2;
  } else {
    _SFD_SCRIPT_CALL(1U, chartInstance->c6_sfEvent, 11);
    c6_b_a = c6_value;
    c6_d_y = c6_b_a * 100.0;
    c6_i_x = c6_d_y;
    c6_j_x = c6_i_x;
    c6_e_y = muDoubleScalarAbs(c6_j_x);
    c6_d5 = muDoubleScalarRound(256.0 - c6_mod(chartInstance, c6_e_y, 100.0));
    if (c6_d5 < 256.0) {
      if (CV_SATURATION_EVAL(14, 1, 2, 1, c6_d5 >= 0.0)) {
        c6_u3 = (uint8_T)c6_d5;
      } else {
        c6_u3 = 0U;
      }
    } else if (CV_SATURATION_EVAL(14, 1, 2, 0, c6_d5 >= 256.0)) {
      c6_u3 = MAX_uint8_T;
    } else {
      c6_u3 = 0U;
    }

    c6_data[1] = c6_u3;
  }

  _SFD_SCRIPT_CALL(1U, chartInstance->c6_sfEvent, -11);
  _SFD_SYMBOL_SCOPE_POP();
}

static void init_script_number_translation(uint32_T c6_machineNumber, uint32_T
  c6_chartNumber)
{
  _SFD_SCRIPT_TRANSLATION(c6_chartNumber, 0U, sf_debug_get_script_id(
    "D:/Pa3k/Documents/School/VUT/BAMT/6SEM/BBCA/CD/D_Program_MATLAB/crcCheck.m"));
  _SFD_SCRIPT_TRANSLATION(c6_chartNumber, 1U, sf_debug_get_script_id(
    "D:/Pa3k/Documents/School/VUT/BAMT/6SEM/BBCA/CD/D_Program_MATLAB/convertValueToData.m"));
}

static const mxArray *c6_sf_marshallOut(void *chartInstanceVoid, void *c6_inData)
{
  const mxArray *c6_mxArrayOutData = NULL;
  int32_T c6_i19;
  real_T c6_b_inData[27];
  int32_T c6_i20;
  real_T c6_u[27];
  const mxArray *c6_y = NULL;
  SFc6_sl_househeatInstanceStruct *chartInstance;
  chartInstance = (SFc6_sl_househeatInstanceStruct *)chartInstanceVoid;
  c6_mxArrayOutData = NULL;
  for (c6_i19 = 0; c6_i19 < 27; c6_i19++) {
    c6_b_inData[c6_i19] = (*(real_T (*)[27])c6_inData)[c6_i19];
  }

  for (c6_i20 = 0; c6_i20 < 27; c6_i20++) {
    c6_u[c6_i20] = c6_b_inData[c6_i20];
  }

  c6_y = NULL;
  sf_mex_assign(&c6_y, sf_mex_create("y", c6_u, 0, 0U, 1U, 0U, 1, 27), FALSE);
  sf_mex_assign(&c6_mxArrayOutData, c6_y, FALSE);
  return c6_mxArrayOutData;
}

static void c6_emlrt_marshallIn(SFc6_sl_househeatInstanceStruct *chartInstance,
  const mxArray *c6_message, const char_T *c6_identifier, real_T c6_y[27])
{
  emlrtMsgIdentifier c6_thisId;
  c6_thisId.fIdentifier = c6_identifier;
  c6_thisId.fParent = NULL;
  c6_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c6_message), &c6_thisId, c6_y);
  sf_mex_destroy(&c6_message);
}

static void c6_b_emlrt_marshallIn(SFc6_sl_househeatInstanceStruct *chartInstance,
  const mxArray *c6_u, const emlrtMsgIdentifier *c6_parentId, real_T c6_y[27])
{
  real_T c6_dv2[27];
  int32_T c6_i21;
  sf_mex_import(c6_parentId, sf_mex_dup(c6_u), c6_dv2, 1, 0, 0U, 1, 0U, 1, 27);
  for (c6_i21 = 0; c6_i21 < 27; c6_i21++) {
    c6_y[c6_i21] = c6_dv2[c6_i21];
  }

  sf_mex_destroy(&c6_u);
}

static void c6_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c6_mxArrayInData, const char_T *c6_varName, void *c6_outData)
{
  const mxArray *c6_message;
  const char_T *c6_identifier;
  emlrtMsgIdentifier c6_thisId;
  real_T c6_y[27];
  int32_T c6_i22;
  SFc6_sl_househeatInstanceStruct *chartInstance;
  chartInstance = (SFc6_sl_househeatInstanceStruct *)chartInstanceVoid;
  c6_message = sf_mex_dup(c6_mxArrayInData);
  c6_identifier = c6_varName;
  c6_thisId.fIdentifier = c6_identifier;
  c6_thisId.fParent = NULL;
  c6_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c6_message), &c6_thisId, c6_y);
  sf_mex_destroy(&c6_message);
  for (c6_i22 = 0; c6_i22 < 27; c6_i22++) {
    (*(real_T (*)[27])c6_outData)[c6_i22] = c6_y[c6_i22];
  }

  sf_mex_destroy(&c6_mxArrayInData);
}

static const mxArray *c6_b_sf_marshallOut(void *chartInstanceVoid, void
  *c6_inData)
{
  const mxArray *c6_mxArrayOutData = NULL;
  real_T c6_u;
  const mxArray *c6_y = NULL;
  SFc6_sl_househeatInstanceStruct *chartInstance;
  chartInstance = (SFc6_sl_househeatInstanceStruct *)chartInstanceVoid;
  c6_mxArrayOutData = NULL;
  c6_u = *(real_T *)c6_inData;
  c6_y = NULL;
  sf_mex_assign(&c6_y, sf_mex_create("y", &c6_u, 0, 0U, 0U, 0U, 0), FALSE);
  sf_mex_assign(&c6_mxArrayOutData, c6_y, FALSE);
  return c6_mxArrayOutData;
}

static real_T c6_c_emlrt_marshallIn(SFc6_sl_househeatInstanceStruct
  *chartInstance, const mxArray *c6_u, const emlrtMsgIdentifier *c6_parentId)
{
  real_T c6_y;
  real_T c6_d6;
  sf_mex_import(c6_parentId, sf_mex_dup(c6_u), &c6_d6, 1, 0, 0U, 0, 0U, 0);
  c6_y = c6_d6;
  sf_mex_destroy(&c6_u);
  return c6_y;
}

static void c6_b_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c6_mxArrayInData, const char_T *c6_varName, void *c6_outData)
{
  const mxArray *c6_nargout;
  const char_T *c6_identifier;
  emlrtMsgIdentifier c6_thisId;
  real_T c6_y;
  SFc6_sl_househeatInstanceStruct *chartInstance;
  chartInstance = (SFc6_sl_househeatInstanceStruct *)chartInstanceVoid;
  c6_nargout = sf_mex_dup(c6_mxArrayInData);
  c6_identifier = c6_varName;
  c6_thisId.fIdentifier = c6_identifier;
  c6_thisId.fParent = NULL;
  c6_y = c6_c_emlrt_marshallIn(chartInstance, sf_mex_dup(c6_nargout), &c6_thisId);
  sf_mex_destroy(&c6_nargout);
  *(real_T *)c6_outData = c6_y;
  sf_mex_destroy(&c6_mxArrayInData);
}

static const mxArray *c6_c_sf_marshallOut(void *chartInstanceVoid, void
  *c6_inData)
{
  const mxArray *c6_mxArrayOutData = NULL;
  int32_T c6_i23;
  real_T c6_b_inData[7];
  int32_T c6_i24;
  real_T c6_u[7];
  const mxArray *c6_y = NULL;
  SFc6_sl_househeatInstanceStruct *chartInstance;
  chartInstance = (SFc6_sl_househeatInstanceStruct *)chartInstanceVoid;
  c6_mxArrayOutData = NULL;
  for (c6_i23 = 0; c6_i23 < 7; c6_i23++) {
    c6_b_inData[c6_i23] = (*(real_T (*)[7])c6_inData)[c6_i23];
  }

  for (c6_i24 = 0; c6_i24 < 7; c6_i24++) {
    c6_u[c6_i24] = c6_b_inData[c6_i24];
  }

  c6_y = NULL;
  sf_mex_assign(&c6_y, sf_mex_create("y", c6_u, 0, 0U, 1U, 0U, 1, 7), FALSE);
  sf_mex_assign(&c6_mxArrayOutData, c6_y, FALSE);
  return c6_mxArrayOutData;
}

static void c6_d_emlrt_marshallIn(SFc6_sl_househeatInstanceStruct *chartInstance,
  const mxArray *c6_u, const emlrtMsgIdentifier *c6_parentId, real_T c6_y[7])
{
  real_T c6_dv3[7];
  int32_T c6_i25;
  sf_mex_import(c6_parentId, sf_mex_dup(c6_u), c6_dv3, 1, 0, 0U, 1, 0U, 1, 7);
  for (c6_i25 = 0; c6_i25 < 7; c6_i25++) {
    c6_y[c6_i25] = c6_dv3[c6_i25];
  }

  sf_mex_destroy(&c6_u);
}

static void c6_c_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c6_mxArrayInData, const char_T *c6_varName, void *c6_outData)
{
  const mxArray *c6_timeMessage;
  const char_T *c6_identifier;
  emlrtMsgIdentifier c6_thisId;
  real_T c6_y[7];
  int32_T c6_i26;
  SFc6_sl_househeatInstanceStruct *chartInstance;
  chartInstance = (SFc6_sl_househeatInstanceStruct *)chartInstanceVoid;
  c6_timeMessage = sf_mex_dup(c6_mxArrayInData);
  c6_identifier = c6_varName;
  c6_thisId.fIdentifier = c6_identifier;
  c6_thisId.fParent = NULL;
  c6_d_emlrt_marshallIn(chartInstance, sf_mex_dup(c6_timeMessage), &c6_thisId,
                        c6_y);
  sf_mex_destroy(&c6_timeMessage);
  for (c6_i26 = 0; c6_i26 < 7; c6_i26++) {
    (*(real_T (*)[7])c6_outData)[c6_i26] = c6_y[c6_i26];
  }

  sf_mex_destroy(&c6_mxArrayInData);
}

static const mxArray *c6_d_sf_marshallOut(void *chartInstanceVoid, void
  *c6_inData)
{
  const mxArray *c6_mxArrayOutData = NULL;
  int8_T c6_u;
  const mxArray *c6_y = NULL;
  SFc6_sl_househeatInstanceStruct *chartInstance;
  chartInstance = (SFc6_sl_househeatInstanceStruct *)chartInstanceVoid;
  c6_mxArrayOutData = NULL;
  c6_u = *(int8_T *)c6_inData;
  c6_y = NULL;
  sf_mex_assign(&c6_y, sf_mex_create("y", &c6_u, 2, 0U, 0U, 0U, 0), FALSE);
  sf_mex_assign(&c6_mxArrayOutData, c6_y, FALSE);
  return c6_mxArrayOutData;
}

static int8_T c6_e_emlrt_marshallIn(SFc6_sl_househeatInstanceStruct
  *chartInstance, const mxArray *c6_u, const emlrtMsgIdentifier *c6_parentId)
{
  int8_T c6_y;
  int8_T c6_i27;
  sf_mex_import(c6_parentId, sf_mex_dup(c6_u), &c6_i27, 1, 2, 0U, 0, 0U, 0);
  c6_y = c6_i27;
  sf_mex_destroy(&c6_u);
  return c6_y;
}

static void c6_d_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c6_mxArrayInData, const char_T *c6_varName, void *c6_outData)
{
  const mxArray *c6_answer;
  const char_T *c6_identifier;
  emlrtMsgIdentifier c6_thisId;
  int8_T c6_y;
  SFc6_sl_househeatInstanceStruct *chartInstance;
  chartInstance = (SFc6_sl_househeatInstanceStruct *)chartInstanceVoid;
  c6_answer = sf_mex_dup(c6_mxArrayInData);
  c6_identifier = c6_varName;
  c6_thisId.fIdentifier = c6_identifier;
  c6_thisId.fParent = NULL;
  c6_y = c6_e_emlrt_marshallIn(chartInstance, sf_mex_dup(c6_answer), &c6_thisId);
  sf_mex_destroy(&c6_answer);
  *(int8_T *)c6_outData = c6_y;
  sf_mex_destroy(&c6_mxArrayInData);
}

static const mxArray *c6_e_sf_marshallOut(void *chartInstanceVoid, void
  *c6_inData)
{
  const mxArray *c6_mxArrayOutData = NULL;
  int32_T c6_i28;
  real_T c6_b_inData[5];
  int32_T c6_i29;
  real_T c6_u[5];
  const mxArray *c6_y = NULL;
  SFc6_sl_househeatInstanceStruct *chartInstance;
  chartInstance = (SFc6_sl_househeatInstanceStruct *)chartInstanceVoid;
  c6_mxArrayOutData = NULL;
  for (c6_i28 = 0; c6_i28 < 5; c6_i28++) {
    c6_b_inData[c6_i28] = (*(real_T (*)[5])c6_inData)[c6_i28];
  }

  for (c6_i29 = 0; c6_i29 < 5; c6_i29++) {
    c6_u[c6_i29] = c6_b_inData[c6_i29];
  }

  c6_y = NULL;
  sf_mex_assign(&c6_y, sf_mex_create("y", c6_u, 0, 0U, 1U, 0U, 1, 5), FALSE);
  sf_mex_assign(&c6_mxArrayOutData, c6_y, FALSE);
  return c6_mxArrayOutData;
}

static void c6_f_emlrt_marshallIn(SFc6_sl_househeatInstanceStruct *chartInstance,
  const mxArray *c6_u, const emlrtMsgIdentifier *c6_parentId, real_T c6_y[5])
{
  real_T c6_dv4[5];
  int32_T c6_i30;
  sf_mex_import(c6_parentId, sf_mex_dup(c6_u), c6_dv4, 1, 0, 0U, 1, 0U, 1, 5);
  for (c6_i30 = 0; c6_i30 < 5; c6_i30++) {
    c6_y[c6_i30] = c6_dv4[c6_i30];
  }

  sf_mex_destroy(&c6_u);
}

static void c6_e_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c6_mxArrayInData, const char_T *c6_varName, void *c6_outData)
{
  const mxArray *c6_data;
  const char_T *c6_identifier;
  emlrtMsgIdentifier c6_thisId;
  real_T c6_y[5];
  int32_T c6_i31;
  SFc6_sl_househeatInstanceStruct *chartInstance;
  chartInstance = (SFc6_sl_househeatInstanceStruct *)chartInstanceVoid;
  c6_data = sf_mex_dup(c6_mxArrayInData);
  c6_identifier = c6_varName;
  c6_thisId.fIdentifier = c6_identifier;
  c6_thisId.fParent = NULL;
  c6_f_emlrt_marshallIn(chartInstance, sf_mex_dup(c6_data), &c6_thisId, c6_y);
  sf_mex_destroy(&c6_data);
  for (c6_i31 = 0; c6_i31 < 5; c6_i31++) {
    (*(real_T (*)[5])c6_outData)[c6_i31] = c6_y[c6_i31];
  }

  sf_mex_destroy(&c6_mxArrayInData);
}

static const mxArray *c6_f_sf_marshallOut(void *chartInstanceVoid, void
  *c6_inData)
{
  const mxArray *c6_mxArrayOutData = NULL;
  int32_T c6_i32;
  int8_T c6_b_inData[5];
  int32_T c6_i33;
  int8_T c6_u[5];
  const mxArray *c6_y = NULL;
  SFc6_sl_househeatInstanceStruct *chartInstance;
  chartInstance = (SFc6_sl_househeatInstanceStruct *)chartInstanceVoid;
  c6_mxArrayOutData = NULL;
  for (c6_i32 = 0; c6_i32 < 5; c6_i32++) {
    c6_b_inData[c6_i32] = (*(int8_T (*)[5])c6_inData)[c6_i32];
  }

  for (c6_i33 = 0; c6_i33 < 5; c6_i33++) {
    c6_u[c6_i33] = c6_b_inData[c6_i33];
  }

  c6_y = NULL;
  sf_mex_assign(&c6_y, sf_mex_create("y", c6_u, 2, 0U, 1U, 0U, 1, 5), FALSE);
  sf_mex_assign(&c6_mxArrayOutData, c6_y, FALSE);
  return c6_mxArrayOutData;
}

static void c6_g_emlrt_marshallIn(SFc6_sl_househeatInstanceStruct *chartInstance,
  const mxArray *c6_u, const emlrtMsgIdentifier *c6_parentId, int8_T c6_y[5])
{
  int8_T c6_iv0[5];
  int32_T c6_i34;
  sf_mex_import(c6_parentId, sf_mex_dup(c6_u), c6_iv0, 1, 2, 0U, 1, 0U, 1, 5);
  for (c6_i34 = 0; c6_i34 < 5; c6_i34++) {
    c6_y[c6_i34] = c6_iv0[c6_i34];
  }

  sf_mex_destroy(&c6_u);
}

static void c6_f_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c6_mxArrayInData, const char_T *c6_varName, void *c6_outData)
{
  const mxArray *c6_data;
  const char_T *c6_identifier;
  emlrtMsgIdentifier c6_thisId;
  int8_T c6_y[5];
  int32_T c6_i35;
  SFc6_sl_househeatInstanceStruct *chartInstance;
  chartInstance = (SFc6_sl_househeatInstanceStruct *)chartInstanceVoid;
  c6_data = sf_mex_dup(c6_mxArrayInData);
  c6_identifier = c6_varName;
  c6_thisId.fIdentifier = c6_identifier;
  c6_thisId.fParent = NULL;
  c6_g_emlrt_marshallIn(chartInstance, sf_mex_dup(c6_data), &c6_thisId, c6_y);
  sf_mex_destroy(&c6_data);
  for (c6_i35 = 0; c6_i35 < 5; c6_i35++) {
    (*(int8_T (*)[5])c6_outData)[c6_i35] = c6_y[c6_i35];
  }

  sf_mex_destroy(&c6_mxArrayInData);
}

static const mxArray *c6_g_sf_marshallOut(void *chartInstanceVoid, void
  *c6_inData)
{
  const mxArray *c6_mxArrayOutData = NULL;
  int32_T c6_i36;
  uint8_T c6_b_inData[2];
  int32_T c6_i37;
  uint8_T c6_u[2];
  const mxArray *c6_y = NULL;
  SFc6_sl_househeatInstanceStruct *chartInstance;
  chartInstance = (SFc6_sl_househeatInstanceStruct *)chartInstanceVoid;
  c6_mxArrayOutData = NULL;
  for (c6_i36 = 0; c6_i36 < 2; c6_i36++) {
    c6_b_inData[c6_i36] = (*(uint8_T (*)[2])c6_inData)[c6_i36];
  }

  for (c6_i37 = 0; c6_i37 < 2; c6_i37++) {
    c6_u[c6_i37] = c6_b_inData[c6_i37];
  }

  c6_y = NULL;
  sf_mex_assign(&c6_y, sf_mex_create("y", c6_u, 3, 0U, 1U, 0U, 1, 2), FALSE);
  sf_mex_assign(&c6_mxArrayOutData, c6_y, FALSE);
  return c6_mxArrayOutData;
}

static void c6_h_emlrt_marshallIn(SFc6_sl_househeatInstanceStruct *chartInstance,
  const mxArray *c6_u, const emlrtMsgIdentifier *c6_parentId, uint8_T c6_y[2])
{
  uint8_T c6_uv1[2];
  int32_T c6_i38;
  sf_mex_import(c6_parentId, sf_mex_dup(c6_u), c6_uv1, 1, 3, 0U, 1, 0U, 1, 2);
  for (c6_i38 = 0; c6_i38 < 2; c6_i38++) {
    c6_y[c6_i38] = c6_uv1[c6_i38];
  }

  sf_mex_destroy(&c6_u);
}

static void c6_g_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c6_mxArrayInData, const char_T *c6_varName, void *c6_outData)
{
  const mxArray *c6_data;
  const char_T *c6_identifier;
  emlrtMsgIdentifier c6_thisId;
  uint8_T c6_y[2];
  int32_T c6_i39;
  SFc6_sl_househeatInstanceStruct *chartInstance;
  chartInstance = (SFc6_sl_househeatInstanceStruct *)chartInstanceVoid;
  c6_data = sf_mex_dup(c6_mxArrayInData);
  c6_identifier = c6_varName;
  c6_thisId.fIdentifier = c6_identifier;
  c6_thisId.fParent = NULL;
  c6_h_emlrt_marshallIn(chartInstance, sf_mex_dup(c6_data), &c6_thisId, c6_y);
  sf_mex_destroy(&c6_data);
  for (c6_i39 = 0; c6_i39 < 2; c6_i39++) {
    (*(uint8_T (*)[2])c6_outData)[c6_i39] = c6_y[c6_i39];
  }

  sf_mex_destroy(&c6_mxArrayInData);
}

static const mxArray *c6_h_sf_marshallOut(void *chartInstanceVoid, void
  *c6_inData)
{
  const mxArray *c6_mxArrayOutData = NULL;
  int32_T c6_i40;
  real_T c6_b_inData[20];
  int32_T c6_i41;
  real_T c6_u[20];
  const mxArray *c6_y = NULL;
  SFc6_sl_househeatInstanceStruct *chartInstance;
  chartInstance = (SFc6_sl_househeatInstanceStruct *)chartInstanceVoid;
  c6_mxArrayOutData = NULL;
  for (c6_i40 = 0; c6_i40 < 20; c6_i40++) {
    c6_b_inData[c6_i40] = (*(real_T (*)[20])c6_inData)[c6_i40];
  }

  for (c6_i41 = 0; c6_i41 < 20; c6_i41++) {
    c6_u[c6_i41] = c6_b_inData[c6_i41];
  }

  c6_y = NULL;
  sf_mex_assign(&c6_y, sf_mex_create("y", c6_u, 0, 0U, 1U, 0U, 1, 20), FALSE);
  sf_mex_assign(&c6_mxArrayOutData, c6_y, FALSE);
  return c6_mxArrayOutData;
}

static void c6_i_emlrt_marshallIn(SFc6_sl_househeatInstanceStruct *chartInstance,
  const mxArray *c6_u, const emlrtMsgIdentifier *c6_parentId, real_T c6_y[20])
{
  real_T c6_dv5[20];
  int32_T c6_i42;
  sf_mex_import(c6_parentId, sf_mex_dup(c6_u), c6_dv5, 1, 0, 0U, 1, 0U, 1, 20);
  for (c6_i42 = 0; c6_i42 < 20; c6_i42++) {
    c6_y[c6_i42] = c6_dv5[c6_i42];
  }

  sf_mex_destroy(&c6_u);
}

static void c6_h_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c6_mxArrayInData, const char_T *c6_varName, void *c6_outData)
{
  const mxArray *c6_data;
  const char_T *c6_identifier;
  emlrtMsgIdentifier c6_thisId;
  real_T c6_y[20];
  int32_T c6_i43;
  SFc6_sl_househeatInstanceStruct *chartInstance;
  chartInstance = (SFc6_sl_househeatInstanceStruct *)chartInstanceVoid;
  c6_data = sf_mex_dup(c6_mxArrayInData);
  c6_identifier = c6_varName;
  c6_thisId.fIdentifier = c6_identifier;
  c6_thisId.fParent = NULL;
  c6_i_emlrt_marshallIn(chartInstance, sf_mex_dup(c6_data), &c6_thisId, c6_y);
  sf_mex_destroy(&c6_data);
  for (c6_i43 = 0; c6_i43 < 20; c6_i43++) {
    (*(real_T (*)[20])c6_outData)[c6_i43] = c6_y[c6_i43];
  }

  sf_mex_destroy(&c6_mxArrayInData);
}

static const mxArray *c6_i_sf_marshallOut(void *chartInstanceVoid, void
  *c6_inData)
{
  const mxArray *c6_mxArrayOutData = NULL;
  int32_T c6_i44;
  int8_T c6_b_inData[20];
  int32_T c6_i45;
  int8_T c6_u[20];
  const mxArray *c6_y = NULL;
  SFc6_sl_househeatInstanceStruct *chartInstance;
  chartInstance = (SFc6_sl_househeatInstanceStruct *)chartInstanceVoid;
  c6_mxArrayOutData = NULL;
  for (c6_i44 = 0; c6_i44 < 20; c6_i44++) {
    c6_b_inData[c6_i44] = (*(int8_T (*)[20])c6_inData)[c6_i44];
  }

  for (c6_i45 = 0; c6_i45 < 20; c6_i45++) {
    c6_u[c6_i45] = c6_b_inData[c6_i45];
  }

  c6_y = NULL;
  sf_mex_assign(&c6_y, sf_mex_create("y", c6_u, 2, 0U, 1U, 0U, 1, 20), FALSE);
  sf_mex_assign(&c6_mxArrayOutData, c6_y, FALSE);
  return c6_mxArrayOutData;
}

static void c6_j_emlrt_marshallIn(SFc6_sl_househeatInstanceStruct *chartInstance,
  const mxArray *c6_u, const emlrtMsgIdentifier *c6_parentId, int8_T c6_y[20])
{
  int8_T c6_iv1[20];
  int32_T c6_i46;
  sf_mex_import(c6_parentId, sf_mex_dup(c6_u), c6_iv1, 1, 2, 0U, 1, 0U, 1, 20);
  for (c6_i46 = 0; c6_i46 < 20; c6_i46++) {
    c6_y[c6_i46] = c6_iv1[c6_i46];
  }

  sf_mex_destroy(&c6_u);
}

static void c6_i_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c6_mxArrayInData, const char_T *c6_varName, void *c6_outData)
{
  const mxArray *c6_data;
  const char_T *c6_identifier;
  emlrtMsgIdentifier c6_thisId;
  int8_T c6_y[20];
  int32_T c6_i47;
  SFc6_sl_househeatInstanceStruct *chartInstance;
  chartInstance = (SFc6_sl_househeatInstanceStruct *)chartInstanceVoid;
  c6_data = sf_mex_dup(c6_mxArrayInData);
  c6_identifier = c6_varName;
  c6_thisId.fIdentifier = c6_identifier;
  c6_thisId.fParent = NULL;
  c6_j_emlrt_marshallIn(chartInstance, sf_mex_dup(c6_data), &c6_thisId, c6_y);
  sf_mex_destroy(&c6_data);
  for (c6_i47 = 0; c6_i47 < 20; c6_i47++) {
    (*(int8_T (*)[20])c6_outData)[c6_i47] = c6_y[c6_i47];
  }

  sf_mex_destroy(&c6_mxArrayInData);
}

const mxArray *sf_c6_sl_househeat_get_eml_resolved_functions_info(void)
{
  const mxArray *c6_nameCaptureInfo = NULL;
  c6_nameCaptureInfo = NULL;
  sf_mex_assign(&c6_nameCaptureInfo, sf_mex_createstruct("structure", 2, 39, 1),
                FALSE);
  c6_info_helper(&c6_nameCaptureInfo);
  sf_mex_emlrtNameCapturePostProcessR2012a(&c6_nameCaptureInfo);
  return c6_nameCaptureInfo;
}

static void c6_info_helper(const mxArray **c6_info)
{
  const mxArray *c6_rhs0 = NULL;
  const mxArray *c6_lhs0 = NULL;
  const mxArray *c6_rhs1 = NULL;
  const mxArray *c6_lhs1 = NULL;
  const mxArray *c6_rhs2 = NULL;
  const mxArray *c6_lhs2 = NULL;
  const mxArray *c6_rhs3 = NULL;
  const mxArray *c6_lhs3 = NULL;
  const mxArray *c6_rhs4 = NULL;
  const mxArray *c6_lhs4 = NULL;
  const mxArray *c6_rhs5 = NULL;
  const mxArray *c6_lhs5 = NULL;
  const mxArray *c6_rhs6 = NULL;
  const mxArray *c6_lhs6 = NULL;
  const mxArray *c6_rhs7 = NULL;
  const mxArray *c6_lhs7 = NULL;
  const mxArray *c6_rhs8 = NULL;
  const mxArray *c6_lhs8 = NULL;
  const mxArray *c6_rhs9 = NULL;
  const mxArray *c6_lhs9 = NULL;
  const mxArray *c6_rhs10 = NULL;
  const mxArray *c6_lhs10 = NULL;
  const mxArray *c6_rhs11 = NULL;
  const mxArray *c6_lhs11 = NULL;
  const mxArray *c6_rhs12 = NULL;
  const mxArray *c6_lhs12 = NULL;
  const mxArray *c6_rhs13 = NULL;
  const mxArray *c6_lhs13 = NULL;
  const mxArray *c6_rhs14 = NULL;
  const mxArray *c6_lhs14 = NULL;
  const mxArray *c6_rhs15 = NULL;
  const mxArray *c6_lhs15 = NULL;
  const mxArray *c6_rhs16 = NULL;
  const mxArray *c6_lhs16 = NULL;
  const mxArray *c6_rhs17 = NULL;
  const mxArray *c6_lhs17 = NULL;
  const mxArray *c6_rhs18 = NULL;
  const mxArray *c6_lhs18 = NULL;
  const mxArray *c6_rhs19 = NULL;
  const mxArray *c6_lhs19 = NULL;
  const mxArray *c6_rhs20 = NULL;
  const mxArray *c6_lhs20 = NULL;
  const mxArray *c6_rhs21 = NULL;
  const mxArray *c6_lhs21 = NULL;
  const mxArray *c6_rhs22 = NULL;
  const mxArray *c6_lhs22 = NULL;
  const mxArray *c6_rhs23 = NULL;
  const mxArray *c6_lhs23 = NULL;
  const mxArray *c6_rhs24 = NULL;
  const mxArray *c6_lhs24 = NULL;
  const mxArray *c6_rhs25 = NULL;
  const mxArray *c6_lhs25 = NULL;
  const mxArray *c6_rhs26 = NULL;
  const mxArray *c6_lhs26 = NULL;
  const mxArray *c6_rhs27 = NULL;
  const mxArray *c6_lhs27 = NULL;
  const mxArray *c6_rhs28 = NULL;
  const mxArray *c6_lhs28 = NULL;
  const mxArray *c6_rhs29 = NULL;
  const mxArray *c6_lhs29 = NULL;
  const mxArray *c6_rhs30 = NULL;
  const mxArray *c6_lhs30 = NULL;
  const mxArray *c6_rhs31 = NULL;
  const mxArray *c6_lhs31 = NULL;
  const mxArray *c6_rhs32 = NULL;
  const mxArray *c6_lhs32 = NULL;
  const mxArray *c6_rhs33 = NULL;
  const mxArray *c6_lhs33 = NULL;
  const mxArray *c6_rhs34 = NULL;
  const mxArray *c6_lhs34 = NULL;
  const mxArray *c6_rhs35 = NULL;
  const mxArray *c6_lhs35 = NULL;
  const mxArray *c6_rhs36 = NULL;
  const mxArray *c6_lhs36 = NULL;
  const mxArray *c6_rhs37 = NULL;
  const mxArray *c6_lhs37 = NULL;
  const mxArray *c6_rhs38 = NULL;
  const mxArray *c6_lhs38 = NULL;
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(""), "context", "context", 0);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("crcCheck"), "name", "name", 0);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 0);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[E]D:/Pa3k/Documents/School/VUT/BAMT/6SEM/BBCA/CD/D_Program_MATLAB/crcCheck.m"),
                  "resolved", "resolved", 0);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1430243974U), "fileTimeLo",
                  "fileTimeLo", 0);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 0);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 0);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 0);
  sf_mex_assign(&c6_rhs0, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs0, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs0), "rhs", "rhs", 0);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs0), "lhs", "lhs", 0);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[E]D:/Pa3k/Documents/School/VUT/BAMT/6SEM/BBCA/CD/D_Program_MATLAB/crcCheck.m"),
                  "context", "context", 1);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("bitxor"), "name", "name", 1);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("int8"), "dominantType",
                  "dominantType", 1);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/bitxor.m"), "resolved",
                  "resolved", 1);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1366162242U), "fileTimeLo",
                  "fileTimeLo", 1);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 1);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 1);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 1);
  sf_mex_assign(&c6_rhs1, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs1, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs1), "rhs", "rhs", 1);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs1), "lhs", "lhs", 1);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/bitxor.m"), "context",
                  "context", 2);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("coder.internal.assert"),
                  "name", "name", 2);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("char"), "dominantType",
                  "dominantType", 2);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[IXE]$matlabroot$/toolbox/shared/coder/coder/+coder/+internal/assert.m"),
                  "resolved", "resolved", 2);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1363714556U), "fileTimeLo",
                  "fileTimeLo", 2);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 2);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 2);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 2);
  sf_mex_assign(&c6_rhs2, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs2, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs2), "rhs", "rhs", 2);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs2), "lhs", "lhs", 2);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/bitxor.m"), "context",
                  "context", 3);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("bitbinop"), "name", "name", 3);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("function_handle"),
                  "dominantType", "dominantType", 3);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXPE]$matlabroot$/toolbox/eml/lib/matlab/ops/private/bitbinop.m"),
                  "resolved", "resolved", 3);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1366162242U), "fileTimeLo",
                  "fileTimeLo", 3);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 3);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 3);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 3);
  sf_mex_assign(&c6_rhs3, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs3, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs3), "rhs", "rhs", 3);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs3), "lhs", "lhs", 3);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXPE]$matlabroot$/toolbox/eml/lib/matlab/ops/private/bitbinop.m"),
                  "context", "context", 4);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("coder.internal.assert"),
                  "name", "name", 4);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("char"), "dominantType",
                  "dominantType", 4);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[IXE]$matlabroot$/toolbox/shared/coder/coder/+coder/+internal/assert.m"),
                  "resolved", "resolved", 4);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1363714556U), "fileTimeLo",
                  "fileTimeLo", 4);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 4);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 4);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 4);
  sf_mex_assign(&c6_rhs4, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs4, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs4), "rhs", "rhs", 4);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs4), "lhs", "lhs", 4);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXPE]$matlabroot$/toolbox/eml/lib/matlab/ops/private/bitbinop.m"),
                  "context", "context", 5);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("eml_scalexp_compatible"),
                  "name", "name", 5);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("int8"), "dominantType",
                  "dominantType", 5);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_scalexp_compatible.m"),
                  "resolved", "resolved", 5);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1286818796U), "fileTimeLo",
                  "fileTimeLo", 5);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 5);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 5);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 5);
  sf_mex_assign(&c6_rhs5, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs5, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs5), "rhs", "rhs", 5);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs5), "lhs", "lhs", 5);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXPE]$matlabroot$/toolbox/eml/lib/matlab/ops/private/bitbinop.m"),
                  "context", "context", 6);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("eml_is_integer_class"), "name",
                  "name", 6);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("char"), "dominantType",
                  "dominantType", 6);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_is_integer_class.m"),
                  "resolved", "resolved", 6);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1286818782U), "fileTimeLo",
                  "fileTimeLo", 6);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 6);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 6);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 6);
  sf_mex_assign(&c6_rhs6, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs6, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs6), "rhs", "rhs", 6);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs6), "lhs", "lhs", 6);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(""), "context", "context", 7);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("convertValueToData"), "name",
                  "name", 7);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 7);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[E]D:/Pa3k/Documents/School/VUT/BAMT/6SEM/BBCA/CD/D_Program_MATLAB/convertValueToData.m"),
                  "resolved", "resolved", 7);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1430759360U), "fileTimeLo",
                  "fileTimeLo", 7);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 7);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 7);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 7);
  sf_mex_assign(&c6_rhs7, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs7, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs7), "rhs", "rhs", 7);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs7), "lhs", "lhs", 7);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[E]D:/Pa3k/Documents/School/VUT/BAMT/6SEM/BBCA/CD/D_Program_MATLAB/convertValueToData.m"),
                  "context", "context", 8);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("floor"), "name", "name", 8);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 8);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/floor.m"), "resolved",
                  "resolved", 8);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1363713854U), "fileTimeLo",
                  "fileTimeLo", 8);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 8);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 8);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 8);
  sf_mex_assign(&c6_rhs8, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs8, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs8), "rhs", "rhs", 8);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs8), "lhs", "lhs", 8);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/floor.m"), "context",
                  "context", 9);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "coder.internal.isBuiltInNumeric"), "name", "name", 9);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 9);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[IXE]$matlabroot$/toolbox/shared/coder/coder/+coder/+internal/isBuiltInNumeric.m"),
                  "resolved", "resolved", 9);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1363714556U), "fileTimeLo",
                  "fileTimeLo", 9);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 9);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 9);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 9);
  sf_mex_assign(&c6_rhs9, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs9, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs9), "rhs", "rhs", 9);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs9), "lhs", "lhs", 9);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/floor.m"), "context",
                  "context", 10);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("eml_scalar_floor"), "name",
                  "name", 10);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 10);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/eml_scalar_floor.m"),
                  "resolved", "resolved", 10);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1286818726U), "fileTimeLo",
                  "fileTimeLo", 10);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 10);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 10);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 10);
  sf_mex_assign(&c6_rhs10, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs10, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs10), "rhs", "rhs",
                  10);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs10), "lhs", "lhs",
                  10);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[E]D:/Pa3k/Documents/School/VUT/BAMT/6SEM/BBCA/CD/D_Program_MATLAB/convertValueToData.m"),
                  "context", "context", 11);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("abs"), "name", "name", 11);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 11);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/abs.m"), "resolved",
                  "resolved", 11);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1363713852U), "fileTimeLo",
                  "fileTimeLo", 11);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 11);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 11);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 11);
  sf_mex_assign(&c6_rhs11, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs11, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs11), "rhs", "rhs",
                  11);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs11), "lhs", "lhs",
                  11);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/abs.m"), "context",
                  "context", 12);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "coder.internal.isBuiltInNumeric"), "name", "name", 12);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 12);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[IXE]$matlabroot$/toolbox/shared/coder/coder/+coder/+internal/isBuiltInNumeric.m"),
                  "resolved", "resolved", 12);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1363714556U), "fileTimeLo",
                  "fileTimeLo", 12);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 12);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 12);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 12);
  sf_mex_assign(&c6_rhs12, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs12, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs12), "rhs", "rhs",
                  12);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs12), "lhs", "lhs",
                  12);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/abs.m"), "context",
                  "context", 13);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("eml_scalar_abs"), "name",
                  "name", 13);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 13);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/eml_scalar_abs.m"),
                  "resolved", "resolved", 13);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1286818712U), "fileTimeLo",
                  "fileTimeLo", 13);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 13);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 13);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 13);
  sf_mex_assign(&c6_rhs13, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs13, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs13), "rhs", "rhs",
                  13);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs13), "lhs", "lhs",
                  13);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[E]D:/Pa3k/Documents/School/VUT/BAMT/6SEM/BBCA/CD/D_Program_MATLAB/convertValueToData.m"),
                  "context", "context", 14);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("mtimes"), "name", "name", 14);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 14);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/mtimes.m"), "resolved",
                  "resolved", 14);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1363713878U), "fileTimeLo",
                  "fileTimeLo", 14);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 14);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 14);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 14);
  sf_mex_assign(&c6_rhs14, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs14, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs14), "rhs", "rhs",
                  14);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs14), "lhs", "lhs",
                  14);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/mtimes.m!common_checks"),
                  "context", "context", 15);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "coder.internal.isBuiltInNumeric"), "name", "name", 15);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 15);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[IXE]$matlabroot$/toolbox/shared/coder/coder/+coder/+internal/isBuiltInNumeric.m"),
                  "resolved", "resolved", 15);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1363714556U), "fileTimeLo",
                  "fileTimeLo", 15);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 15);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 15);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 15);
  sf_mex_assign(&c6_rhs15, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs15, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs15), "rhs", "rhs",
                  15);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs15), "lhs", "lhs",
                  15);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[E]D:/Pa3k/Documents/School/VUT/BAMT/6SEM/BBCA/CD/D_Program_MATLAB/convertValueToData.m"),
                  "context", "context", 16);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("mod"), "name", "name", 16);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 16);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/mod.m"), "resolved",
                  "resolved", 16);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1363713854U), "fileTimeLo",
                  "fileTimeLo", 16);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 16);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 16);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 16);
  sf_mex_assign(&c6_rhs16, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs16, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs16), "rhs", "rhs",
                  16);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs16), "lhs", "lhs",
                  16);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/mod.m"), "context",
                  "context", 17);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "coder.internal.isBuiltInNumeric"), "name", "name", 17);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 17);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[IXE]$matlabroot$/toolbox/shared/coder/coder/+coder/+internal/isBuiltInNumeric.m"),
                  "resolved", "resolved", 17);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1363714556U), "fileTimeLo",
                  "fileTimeLo", 17);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 17);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 17);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 17);
  sf_mex_assign(&c6_rhs17, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs17, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs17), "rhs", "rhs",
                  17);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs17), "lhs", "lhs",
                  17);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/mod.m"), "context",
                  "context", 18);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("eml_scalar_eg"), "name",
                  "name", 18);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 18);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_scalar_eg.m"), "resolved",
                  "resolved", 18);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1286818796U), "fileTimeLo",
                  "fileTimeLo", 18);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 18);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 18);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 18);
  sf_mex_assign(&c6_rhs18, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs18, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs18), "rhs", "rhs",
                  18);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs18), "lhs", "lhs",
                  18);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/mod.m"), "context",
                  "context", 19);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("eml_scalexp_alloc"), "name",
                  "name", 19);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 19);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_scalexp_alloc.m"),
                  "resolved", "resolved", 19);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1358186140U), "fileTimeLo",
                  "fileTimeLo", 19);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 19);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 19);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 19);
  sf_mex_assign(&c6_rhs19, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs19, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs19), "rhs", "rhs",
                  19);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs19), "lhs", "lhs",
                  19);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/mod.m!floatmod"), "context",
                  "context", 20);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("eml_scalar_eg"), "name",
                  "name", 20);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 20);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_scalar_eg.m"), "resolved",
                  "resolved", 20);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1286818796U), "fileTimeLo",
                  "fileTimeLo", 20);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 20);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 20);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 20);
  sf_mex_assign(&c6_rhs20, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs20, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs20), "rhs", "rhs",
                  20);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs20), "lhs", "lhs",
                  20);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/mod.m!floatmod"), "context",
                  "context", 21);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("eml_scalar_floor"), "name",
                  "name", 21);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 21);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/eml_scalar_floor.m"),
                  "resolved", "resolved", 21);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1286818726U), "fileTimeLo",
                  "fileTimeLo", 21);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 21);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 21);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 21);
  sf_mex_assign(&c6_rhs21, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs21, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs21), "rhs", "rhs",
                  21);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs21), "lhs", "lhs",
                  21);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/mod.m!floatmod"), "context",
                  "context", 22);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("eml_scalar_round"), "name",
                  "name", 22);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 22);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/eml_scalar_round.m"),
                  "resolved", "resolved", 22);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1307651238U), "fileTimeLo",
                  "fileTimeLo", 22);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 22);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 22);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 22);
  sf_mex_assign(&c6_rhs22, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs22, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs22), "rhs", "rhs",
                  22);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs22), "lhs", "lhs",
                  22);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/mod.m!floatmod"), "context",
                  "context", 23);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("eml_scalar_abs"), "name",
                  "name", 23);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 23);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/eml_scalar_abs.m"),
                  "resolved", "resolved", 23);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1286818712U), "fileTimeLo",
                  "fileTimeLo", 23);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 23);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 23);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 23);
  sf_mex_assign(&c6_rhs23, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs23, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs23), "rhs", "rhs",
                  23);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs23), "lhs", "lhs",
                  23);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/mod.m!floatmod"), "context",
                  "context", 24);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("eps"), "name", "name", 24);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("char"), "dominantType",
                  "dominantType", 24);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elmat/eps.m"), "resolved",
                  "resolved", 24);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1326727996U), "fileTimeLo",
                  "fileTimeLo", 24);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 24);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 24);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 24);
  sf_mex_assign(&c6_rhs24, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs24, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs24), "rhs", "rhs",
                  24);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs24), "lhs", "lhs",
                  24);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elmat/eps.m"), "context",
                  "context", 25);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("eml_is_float_class"), "name",
                  "name", 25);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("char"), "dominantType",
                  "dominantType", 25);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_is_float_class.m"),
                  "resolved", "resolved", 25);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1286818782U), "fileTimeLo",
                  "fileTimeLo", 25);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 25);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 25);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 25);
  sf_mex_assign(&c6_rhs25, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs25, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs25), "rhs", "rhs",
                  25);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs25), "lhs", "lhs",
                  25);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elmat/eps.m"), "context",
                  "context", 26);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("eml_eps"), "name", "name", 26);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("char"), "dominantType",
                  "dominantType", 26);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_eps.m"), "resolved",
                  "resolved", 26);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1326727996U), "fileTimeLo",
                  "fileTimeLo", 26);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 26);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 26);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 26);
  sf_mex_assign(&c6_rhs26, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs26, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs26), "rhs", "rhs",
                  26);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs26), "lhs", "lhs",
                  26);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_eps.m"), "context",
                  "context", 27);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("eml_float_model"), "name",
                  "name", 27);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("char"), "dominantType",
                  "dominantType", 27);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_float_model.m"),
                  "resolved", "resolved", 27);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1326727996U), "fileTimeLo",
                  "fileTimeLo", 27);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 27);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 27);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 27);
  sf_mex_assign(&c6_rhs27, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs27, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs27), "rhs", "rhs",
                  27);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs27), "lhs", "lhs",
                  27);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/mod.m!floatmod"), "context",
                  "context", 28);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("mtimes"), "name", "name", 28);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 28);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/mtimes.m"), "resolved",
                  "resolved", 28);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1363713878U), "fileTimeLo",
                  "fileTimeLo", 28);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 28);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 28);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 28);
  sf_mex_assign(&c6_rhs28, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs28, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs28), "rhs", "rhs",
                  28);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs28), "lhs", "lhs",
                  28);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(""), "context", "context", 29);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("mtimes"), "name", "name", 29);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 29);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/mtimes.m"), "resolved",
                  "resolved", 29);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1363713878U), "fileTimeLo",
                  "fileTimeLo", 29);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 29);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 29);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 29);
  sf_mex_assign(&c6_rhs29, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs29, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs29), "rhs", "rhs",
                  29);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs29), "lhs", "lhs",
                  29);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(""), "context", "context", 30);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("mrdivide"), "name", "name", 30);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 30);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/mrdivide.p"), "resolved",
                  "resolved", 30);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1373306508U), "fileTimeLo",
                  "fileTimeLo", 30);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 30);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1319729966U), "mFileTimeLo",
                  "mFileTimeLo", 30);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 30);
  sf_mex_assign(&c6_rhs30, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs30, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs30), "rhs", "rhs",
                  30);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs30), "lhs", "lhs",
                  30);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/mrdivide.p"), "context",
                  "context", 31);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("rdivide"), "name", "name", 31);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 31);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/rdivide.m"), "resolved",
                  "resolved", 31);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1363713880U), "fileTimeLo",
                  "fileTimeLo", 31);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 31);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 31);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 31);
  sf_mex_assign(&c6_rhs31, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs31, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs31), "rhs", "rhs",
                  31);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs31), "lhs", "lhs",
                  31);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/rdivide.m"), "context",
                  "context", 32);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "coder.internal.isBuiltInNumeric"), "name", "name", 32);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 32);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[IXE]$matlabroot$/toolbox/shared/coder/coder/+coder/+internal/isBuiltInNumeric.m"),
                  "resolved", "resolved", 32);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1363714556U), "fileTimeLo",
                  "fileTimeLo", 32);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 32);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 32);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 32);
  sf_mex_assign(&c6_rhs32, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs32, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs32), "rhs", "rhs",
                  32);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs32), "lhs", "lhs",
                  32);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/rdivide.m"), "context",
                  "context", 33);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("eml_scalexp_compatible"),
                  "name", "name", 33);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 33);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_scalexp_compatible.m"),
                  "resolved", "resolved", 33);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1286818796U), "fileTimeLo",
                  "fileTimeLo", 33);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 33);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 33);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 33);
  sf_mex_assign(&c6_rhs33, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs33, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs33), "rhs", "rhs",
                  33);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs33), "lhs", "lhs",
                  33);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/rdivide.m"), "context",
                  "context", 34);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("eml_div"), "name", "name", 34);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 34);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_div.m"), "resolved",
                  "resolved", 34);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1363713866U), "fileTimeLo",
                  "fileTimeLo", 34);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 34);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 34);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 34);
  sf_mex_assign(&c6_rhs34, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs34, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs34), "rhs", "rhs",
                  34);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs34), "lhs", "lhs",
                  34);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(""), "context", "context", 35);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("fix"), "name", "name", 35);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 35);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/fix.m"), "resolved",
                  "resolved", 35);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1363713852U), "fileTimeLo",
                  "fileTimeLo", 35);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 35);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 35);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 35);
  sf_mex_assign(&c6_rhs35, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs35, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs35), "rhs", "rhs",
                  35);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs35), "lhs", "lhs",
                  35);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/fix.m"), "context",
                  "context", 36);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "coder.internal.isBuiltInNumeric"), "name", "name", 36);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 36);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[IXE]$matlabroot$/toolbox/shared/coder/coder/+coder/+internal/isBuiltInNumeric.m"),
                  "resolved", "resolved", 36);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1363714556U), "fileTimeLo",
                  "fileTimeLo", 36);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 36);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 36);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 36);
  sf_mex_assign(&c6_rhs36, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs36, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs36), "rhs", "rhs",
                  36);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs36), "lhs", "lhs",
                  36);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/fix.m"), "context",
                  "context", 37);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("eml_scalar_fix"), "name",
                  "name", 37);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 37);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/eml_scalar_fix.m"),
                  "resolved", "resolved", 37);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1307651238U), "fileTimeLo",
                  "fileTimeLo", 37);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 37);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 37);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 37);
  sf_mex_assign(&c6_rhs37, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs37, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs37), "rhs", "rhs",
                  37);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs37), "lhs", "lhs",
                  37);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(""), "context", "context", 38);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("mod"), "name", "name", 38);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut("double"), "dominantType",
                  "dominantType", 38);
  sf_mex_addfield(*c6_info, c6_emlrt_marshallOut(
    "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/mod.m"), "resolved",
                  "resolved", 38);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(1363713854U), "fileTimeLo",
                  "fileTimeLo", 38);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "fileTimeHi",
                  "fileTimeHi", 38);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeLo",
                  "mFileTimeLo", 38);
  sf_mex_addfield(*c6_info, c6_b_emlrt_marshallOut(0U), "mFileTimeHi",
                  "mFileTimeHi", 38);
  sf_mex_assign(&c6_rhs38, sf_mex_createcellarray(0), FALSE);
  sf_mex_assign(&c6_lhs38, sf_mex_createcellarray(0), FALSE);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_rhs38), "rhs", "rhs",
                  38);
  sf_mex_addfield(*c6_info, sf_mex_duplicatearraysafe(&c6_lhs38), "lhs", "lhs",
                  38);
  sf_mex_destroy(&c6_rhs0);
  sf_mex_destroy(&c6_lhs0);
  sf_mex_destroy(&c6_rhs1);
  sf_mex_destroy(&c6_lhs1);
  sf_mex_destroy(&c6_rhs2);
  sf_mex_destroy(&c6_lhs2);
  sf_mex_destroy(&c6_rhs3);
  sf_mex_destroy(&c6_lhs3);
  sf_mex_destroy(&c6_rhs4);
  sf_mex_destroy(&c6_lhs4);
  sf_mex_destroy(&c6_rhs5);
  sf_mex_destroy(&c6_lhs5);
  sf_mex_destroy(&c6_rhs6);
  sf_mex_destroy(&c6_lhs6);
  sf_mex_destroy(&c6_rhs7);
  sf_mex_destroy(&c6_lhs7);
  sf_mex_destroy(&c6_rhs8);
  sf_mex_destroy(&c6_lhs8);
  sf_mex_destroy(&c6_rhs9);
  sf_mex_destroy(&c6_lhs9);
  sf_mex_destroy(&c6_rhs10);
  sf_mex_destroy(&c6_lhs10);
  sf_mex_destroy(&c6_rhs11);
  sf_mex_destroy(&c6_lhs11);
  sf_mex_destroy(&c6_rhs12);
  sf_mex_destroy(&c6_lhs12);
  sf_mex_destroy(&c6_rhs13);
  sf_mex_destroy(&c6_lhs13);
  sf_mex_destroy(&c6_rhs14);
  sf_mex_destroy(&c6_lhs14);
  sf_mex_destroy(&c6_rhs15);
  sf_mex_destroy(&c6_lhs15);
  sf_mex_destroy(&c6_rhs16);
  sf_mex_destroy(&c6_lhs16);
  sf_mex_destroy(&c6_rhs17);
  sf_mex_destroy(&c6_lhs17);
  sf_mex_destroy(&c6_rhs18);
  sf_mex_destroy(&c6_lhs18);
  sf_mex_destroy(&c6_rhs19);
  sf_mex_destroy(&c6_lhs19);
  sf_mex_destroy(&c6_rhs20);
  sf_mex_destroy(&c6_lhs20);
  sf_mex_destroy(&c6_rhs21);
  sf_mex_destroy(&c6_lhs21);
  sf_mex_destroy(&c6_rhs22);
  sf_mex_destroy(&c6_lhs22);
  sf_mex_destroy(&c6_rhs23);
  sf_mex_destroy(&c6_lhs23);
  sf_mex_destroy(&c6_rhs24);
  sf_mex_destroy(&c6_lhs24);
  sf_mex_destroy(&c6_rhs25);
  sf_mex_destroy(&c6_lhs25);
  sf_mex_destroy(&c6_rhs26);
  sf_mex_destroy(&c6_lhs26);
  sf_mex_destroy(&c6_rhs27);
  sf_mex_destroy(&c6_lhs27);
  sf_mex_destroy(&c6_rhs28);
  sf_mex_destroy(&c6_lhs28);
  sf_mex_destroy(&c6_rhs29);
  sf_mex_destroy(&c6_lhs29);
  sf_mex_destroy(&c6_rhs30);
  sf_mex_destroy(&c6_lhs30);
  sf_mex_destroy(&c6_rhs31);
  sf_mex_destroy(&c6_lhs31);
  sf_mex_destroy(&c6_rhs32);
  sf_mex_destroy(&c6_lhs32);
  sf_mex_destroy(&c6_rhs33);
  sf_mex_destroy(&c6_lhs33);
  sf_mex_destroy(&c6_rhs34);
  sf_mex_destroy(&c6_lhs34);
  sf_mex_destroy(&c6_rhs35);
  sf_mex_destroy(&c6_lhs35);
  sf_mex_destroy(&c6_rhs36);
  sf_mex_destroy(&c6_lhs36);
  sf_mex_destroy(&c6_rhs37);
  sf_mex_destroy(&c6_lhs37);
  sf_mex_destroy(&c6_rhs38);
  sf_mex_destroy(&c6_lhs38);
}

static const mxArray *c6_emlrt_marshallOut(char * c6_u)
{
  const mxArray *c6_y = NULL;
  c6_y = NULL;
  sf_mex_assign(&c6_y, sf_mex_create("y", c6_u, 15, 0U, 0U, 0U, 2, 1, strlen
    (c6_u)), FALSE);
  return c6_y;
}

static const mxArray *c6_b_emlrt_marshallOut(uint32_T c6_u)
{
  const mxArray *c6_y = NULL;
  c6_y = NULL;
  sf_mex_assign(&c6_y, sf_mex_create("y", &c6_u, 7, 0U, 0U, 0U, 0), FALSE);
  return c6_y;
}

static real_T c6_mod(SFc6_sl_househeatInstanceStruct *chartInstance, real_T c6_x,
                     real_T c6_y)
{
  real_T c6_r;
  real_T c6_xk;
  real_T c6_yk;
  real_T c6_b_x;
  real_T c6_b_y;
  real_T c6_c_x;
  real_T c6_d_x;
  real_T c6_e_x;
  real_T c6_f_x;
  real_T c6_g_x;
  real_T c6_h_x;
  real_T c6_i_x;
  real_T c6_c_y;
  real_T c6_j_x;
  real_T c6_d_y;
  real_T c6_b;
  real_T c6_e_y;
  real_T c6_k_x;
  real_T c6_l_x;
  c6_eml_scalar_eg(chartInstance);
  c6_xk = c6_x;
  c6_yk = c6_y;
  c6_b_x = c6_xk;
  c6_b_y = c6_yk;
  c6_eml_scalar_eg(chartInstance);
  if (c6_b_y == 0.0) {
    c6_r = c6_b_x;
  } else {
    c6_c_x = c6_b_y;
    c6_d_x = c6_c_x;
    c6_d_x = muDoubleScalarFloor(c6_d_x);
    if (c6_b_y == c6_d_x) {
      c6_e_x = c6_b_x / c6_b_y;
      c6_f_x = c6_e_x;
      c6_f_x = muDoubleScalarFloor(c6_f_x);
      c6_r = c6_b_x - c6_f_x * c6_b_y;
    } else {
      c6_r = c6_b_x / c6_b_y;
      c6_g_x = c6_r;
      c6_h_x = c6_g_x;
      c6_h_x = muDoubleScalarRound(c6_h_x);
      c6_i_x = c6_r - c6_h_x;
      c6_c_y = muDoubleScalarAbs(c6_i_x);
      c6_j_x = c6_r;
      c6_d_y = muDoubleScalarAbs(c6_j_x);
      c6_b = c6_d_y;
      c6_e_y = 2.2204460492503131E-16 * c6_b;
      if (c6_c_y <= c6_e_y) {
        c6_r = 0.0;
      } else {
        c6_k_x = c6_r;
        c6_l_x = c6_k_x;
        c6_l_x = muDoubleScalarFloor(c6_l_x);
        c6_r = (c6_r - c6_l_x) * c6_b_y;
      }
    }
  }

  return c6_r;
}

static void c6_eml_scalar_eg(SFc6_sl_househeatInstanceStruct *chartInstance)
{
}

static const mxArray *c6_j_sf_marshallOut(void *chartInstanceVoid, void
  *c6_inData)
{
  const mxArray *c6_mxArrayOutData = NULL;
  int32_T c6_u;
  const mxArray *c6_y = NULL;
  SFc6_sl_househeatInstanceStruct *chartInstance;
  chartInstance = (SFc6_sl_househeatInstanceStruct *)chartInstanceVoid;
  c6_mxArrayOutData = NULL;
  c6_u = *(int32_T *)c6_inData;
  c6_y = NULL;
  sf_mex_assign(&c6_y, sf_mex_create("y", &c6_u, 6, 0U, 0U, 0U, 0), FALSE);
  sf_mex_assign(&c6_mxArrayOutData, c6_y, FALSE);
  return c6_mxArrayOutData;
}

static int32_T c6_k_emlrt_marshallIn(SFc6_sl_househeatInstanceStruct
  *chartInstance, const mxArray *c6_u, const emlrtMsgIdentifier *c6_parentId)
{
  int32_T c6_y;
  int32_T c6_i48;
  sf_mex_import(c6_parentId, sf_mex_dup(c6_u), &c6_i48, 1, 6, 0U, 0, 0U, 0);
  c6_y = c6_i48;
  sf_mex_destroy(&c6_u);
  return c6_y;
}

static void c6_j_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c6_mxArrayInData, const char_T *c6_varName, void *c6_outData)
{
  const mxArray *c6_b_sfEvent;
  const char_T *c6_identifier;
  emlrtMsgIdentifier c6_thisId;
  int32_T c6_y;
  SFc6_sl_househeatInstanceStruct *chartInstance;
  chartInstance = (SFc6_sl_househeatInstanceStruct *)chartInstanceVoid;
  c6_b_sfEvent = sf_mex_dup(c6_mxArrayInData);
  c6_identifier = c6_varName;
  c6_thisId.fIdentifier = c6_identifier;
  c6_thisId.fParent = NULL;
  c6_y = c6_k_emlrt_marshallIn(chartInstance, sf_mex_dup(c6_b_sfEvent),
    &c6_thisId);
  sf_mex_destroy(&c6_b_sfEvent);
  *(int32_T *)c6_outData = c6_y;
  sf_mex_destroy(&c6_mxArrayInData);
}

static uint8_T c6_l_emlrt_marshallIn(SFc6_sl_househeatInstanceStruct
  *chartInstance, const mxArray *c6_b_is_active_c6_sl_househeat, const char_T
  *c6_identifier)
{
  uint8_T c6_y;
  emlrtMsgIdentifier c6_thisId;
  c6_thisId.fIdentifier = c6_identifier;
  c6_thisId.fParent = NULL;
  c6_y = c6_m_emlrt_marshallIn(chartInstance, sf_mex_dup
    (c6_b_is_active_c6_sl_househeat), &c6_thisId);
  sf_mex_destroy(&c6_b_is_active_c6_sl_househeat);
  return c6_y;
}

static uint8_T c6_m_emlrt_marshallIn(SFc6_sl_househeatInstanceStruct
  *chartInstance, const mxArray *c6_u, const emlrtMsgIdentifier *c6_parentId)
{
  uint8_T c6_y;
  uint8_T c6_u4;
  sf_mex_import(c6_parentId, sf_mex_dup(c6_u), &c6_u4, 1, 3, 0U, 0, 0U, 0);
  c6_y = c6_u4;
  sf_mex_destroy(&c6_u);
  return c6_y;
}

static void init_dsm_address_info(SFc6_sl_househeatInstanceStruct *chartInstance)
{
}

/* SFunction Glue Code */
#ifdef utFree
#undef utFree
#endif

#ifdef utMalloc
#undef utMalloc
#endif

#ifdef __cplusplus

extern "C" void *utMalloc(size_t size);
extern "C" void utFree(void*);

#else

extern void *utMalloc(size_t size);
extern void utFree(void*);

#endif

void sf_c6_sl_househeat_get_check_sum(mxArray *plhs[])
{
  ((real_T *)mxGetPr((plhs[0])))[0] = (real_T)(1470369075U);
  ((real_T *)mxGetPr((plhs[0])))[1] = (real_T)(513249667U);
  ((real_T *)mxGetPr((plhs[0])))[2] = (real_T)(1530993586U);
  ((real_T *)mxGetPr((plhs[0])))[3] = (real_T)(3886864443U);
}

mxArray *sf_c6_sl_househeat_get_autoinheritance_info(void)
{
  const char *autoinheritanceFields[] = { "checksum", "inputs", "parameters",
    "outputs", "locals" };

  mxArray *mxAutoinheritanceInfo = mxCreateStructMatrix(1,1,5,
    autoinheritanceFields);

  {
    mxArray *mxChecksum = mxCreateString("IuXOT6I4yuR0UIVOi6jslH");
    mxSetField(mxAutoinheritanceInfo,0,"checksum",mxChecksum);
  }

  {
    const char *dataFields[] = { "size", "type", "complexity" };

    mxArray *mxData = mxCreateStructMatrix(1,5,3,dataFields);

    {
      mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
      double *pr = mxGetPr(mxSize);
      pr[0] = (double)(1);
      pr[1] = (double)(1);
      mxSetField(mxData,0,"size",mxSize);
    }

    {
      const char *typeFields[] = { "base", "fixpt" };

      mxArray *mxType = mxCreateStructMatrix(1,1,2,typeFields);
      mxSetField(mxType,0,"base",mxCreateDoubleScalar(10));
      mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
      mxSetField(mxData,0,"type",mxType);
    }

    mxSetField(mxData,0,"complexity",mxCreateDoubleScalar(0));

    {
      mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
      double *pr = mxGetPr(mxSize);
      pr[0] = (double)(1);
      pr[1] = (double)(1);
      mxSetField(mxData,1,"size",mxSize);
    }

    {
      const char *typeFields[] = { "base", "fixpt" };

      mxArray *mxType = mxCreateStructMatrix(1,1,2,typeFields);
      mxSetField(mxType,0,"base",mxCreateDoubleScalar(10));
      mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
      mxSetField(mxData,1,"type",mxType);
    }

    mxSetField(mxData,1,"complexity",mxCreateDoubleScalar(0));

    {
      mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
      double *pr = mxGetPr(mxSize);
      pr[0] = (double)(1);
      pr[1] = (double)(1);
      mxSetField(mxData,2,"size",mxSize);
    }

    {
      const char *typeFields[] = { "base", "fixpt" };

      mxArray *mxType = mxCreateStructMatrix(1,1,2,typeFields);
      mxSetField(mxType,0,"base",mxCreateDoubleScalar(10));
      mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
      mxSetField(mxData,2,"type",mxType);
    }

    mxSetField(mxData,2,"complexity",mxCreateDoubleScalar(0));

    {
      mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
      double *pr = mxGetPr(mxSize);
      pr[0] = (double)(1);
      pr[1] = (double)(1);
      mxSetField(mxData,3,"size",mxSize);
    }

    {
      const char *typeFields[] = { "base", "fixpt" };

      mxArray *mxType = mxCreateStructMatrix(1,1,2,typeFields);
      mxSetField(mxType,0,"base",mxCreateDoubleScalar(10));
      mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
      mxSetField(mxData,3,"type",mxType);
    }

    mxSetField(mxData,3,"complexity",mxCreateDoubleScalar(0));

    {
      mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
      double *pr = mxGetPr(mxSize);
      pr[0] = (double)(1);
      pr[1] = (double)(1);
      mxSetField(mxData,4,"size",mxSize);
    }

    {
      const char *typeFields[] = { "base", "fixpt" };

      mxArray *mxType = mxCreateStructMatrix(1,1,2,typeFields);
      mxSetField(mxType,0,"base",mxCreateDoubleScalar(10));
      mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
      mxSetField(mxData,4,"type",mxType);
    }

    mxSetField(mxData,4,"complexity",mxCreateDoubleScalar(0));
    mxSetField(mxAutoinheritanceInfo,0,"inputs",mxData);
  }

  {
    mxSetField(mxAutoinheritanceInfo,0,"parameters",mxCreateDoubleMatrix(0,0,
                mxREAL));
  }

  {
    const char *dataFields[] = { "size", "type", "complexity" };

    mxArray *mxData = mxCreateStructMatrix(1,1,3,dataFields);

    {
      mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
      double *pr = mxGetPr(mxSize);
      pr[0] = (double)(27);
      pr[1] = (double)(1);
      mxSetField(mxData,0,"size",mxSize);
    }

    {
      const char *typeFields[] = { "base", "fixpt" };

      mxArray *mxType = mxCreateStructMatrix(1,1,2,typeFields);
      mxSetField(mxType,0,"base",mxCreateDoubleScalar(10));
      mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
      mxSetField(mxData,0,"type",mxType);
    }

    mxSetField(mxData,0,"complexity",mxCreateDoubleScalar(0));
    mxSetField(mxAutoinheritanceInfo,0,"outputs",mxData);
  }

  {
    mxSetField(mxAutoinheritanceInfo,0,"locals",mxCreateDoubleMatrix(0,0,mxREAL));
  }

  return(mxAutoinheritanceInfo);
}

mxArray *sf_c6_sl_househeat_third_party_uses_info(void)
{
  mxArray * mxcell3p = mxCreateCellMatrix(1,0);
  return(mxcell3p);
}

mxArray *sf_c6_sl_househeat_updateBuildInfo_args_info(void)
{
  mxArray *mxBIArgs = mxCreateCellMatrix(1,0);
  return mxBIArgs;
}

static const mxArray *sf_get_sim_state_info_c6_sl_househeat(void)
{
  const char *infoFields[] = { "chartChecksum", "varInfo" };

  mxArray *mxInfo = mxCreateStructMatrix(1, 1, 2, infoFields);
  const char *infoEncStr[] = {
    "100 S1x2'type','srcId','name','auxInfo'{{M[1],M[5],T\"message\",},{M[8],M[0],T\"is_active_c6_sl_househeat\",}}"
  };

  mxArray *mxVarInfo = sf_mex_decode_encoded_mx_struct_array(infoEncStr, 2, 10);
  mxArray *mxChecksum = mxCreateDoubleMatrix(1, 4, mxREAL);
  sf_c6_sl_househeat_get_check_sum(&mxChecksum);
  mxSetField(mxInfo, 0, infoFields[0], mxChecksum);
  mxSetField(mxInfo, 0, infoFields[1], mxVarInfo);
  return mxInfo;
}

static void chart_debug_initialization(SimStruct *S, unsigned int
  fullDebuggerInitialization)
{
  if (!sim_mode_is_rtw_gen(S)) {
    SFc6_sl_househeatInstanceStruct *chartInstance;
    chartInstance = (SFc6_sl_househeatInstanceStruct *) ((ChartInfoStruct *)
      (ssGetUserData(S)))->chartInstance;
    if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) {
      /* do this only if simulation is starting */
      {
        unsigned int chartAlreadyPresent;
        chartAlreadyPresent = sf_debug_initialize_chart
          (sfGlobalDebugInstanceStruct,
           _sl_househeatMachineNumber_,
           6,
           1,
           1,
           6,
           0,
           0,
           0,
           0,
           2,
           &(chartInstance->chartNumber),
           &(chartInstance->instanceNumber),
           ssGetPath(S),
           (void *)S);
        if (chartAlreadyPresent==0) {
          /* this is the first instance */
          init_script_number_translation(_sl_househeatMachineNumber_,
            chartInstance->chartNumber);
          sf_debug_set_chart_disable_implicit_casting
            (sfGlobalDebugInstanceStruct,_sl_househeatMachineNumber_,
             chartInstance->chartNumber,1);
          sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct,
            _sl_househeatMachineNumber_,
            chartInstance->chartNumber,
            0,
            0,
            0);
          _SFD_SET_DATA_PROPS(0,1,1,0,"roomTemp");
          _SFD_SET_DATA_PROPS(1,2,0,1,"message");
          _SFD_SET_DATA_PROPS(2,1,1,0,"waterOutTemp");
          _SFD_SET_DATA_PROPS(3,1,1,0,"waterReturnTemp");
          _SFD_SET_DATA_PROPS(4,1,1,0,"outDoorTemp");
          _SFD_SET_DATA_PROPS(5,1,1,0,"currTime");
          _SFD_STATE_INFO(0,0,2);
          _SFD_CH_SUBSTATE_COUNT(0);
          _SFD_CH_SUBSTATE_DECOMP(0);
        }

        _SFD_CV_INIT_CHART(0,0,0,0);

        {
          _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL);
        }

        _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL);

        /* Initialization of MATLAB Function Model Coverage */
        _SFD_CV_INIT_EML(0,1,1,0,0,0,0,0,0,0,0);
        _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,895);
        _SFD_CV_INIT_SCRIPT(0,1,0,0,1,0,1,0,0,0);
        _SFD_CV_INIT_SCRIPT_FCN(0,0,"crcCheck",0,-1,175);
        _SFD_CV_INIT_SCRIPT_SATURATION(0,0,92,-1,102);
        _SFD_CV_INIT_SCRIPT_FOR(0,0,104,121,174);
        _SFD_CV_INIT_SCRIPT(1,1,2,0,4,0,0,0,0,0);
        _SFD_CV_INIT_SCRIPT_FCN(1,0,"convertValueToData",0,-1,313);
        _SFD_CV_INIT_SCRIPT_SATURATION(1,0,138,-1,171);
        _SFD_CV_INIT_SCRIPT_SATURATION(1,1,209,-1,242);
        _SFD_CV_INIT_SCRIPT_SATURATION(1,2,261,-1,300);
        _SFD_CV_INIT_SCRIPT_SATURATION(1,3,97,-1,119);
        _SFD_CV_INIT_SCRIPT_IF(1,0,74,87,125,183);
        _SFD_CV_INIT_SCRIPT_IF(1,1,188,200,248,309);
        _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
          (MexFcnForType)c6_b_sf_marshallOut,(MexInFcnForType)NULL);

        {
          unsigned int dimVector[1];
          dimVector[0]= 27;
          _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0,
            1.0,0,0,(MexFcnForType)c6_sf_marshallOut,(MexInFcnForType)
            c6_sf_marshallIn);
        }

        _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
          (MexFcnForType)c6_b_sf_marshallOut,(MexInFcnForType)NULL);
        _SFD_SET_DATA_COMPILED_PROPS(3,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
          (MexFcnForType)c6_b_sf_marshallOut,(MexInFcnForType)NULL);
        _SFD_SET_DATA_COMPILED_PROPS(4,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
          (MexFcnForType)c6_b_sf_marshallOut,(MexInFcnForType)NULL);
        _SFD_SET_DATA_COMPILED_PROPS(5,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
          (MexFcnForType)c6_b_sf_marshallOut,(MexInFcnForType)NULL);

        {
          real_T *c6_roomTemp;
          real_T *c6_waterOutTemp;
          real_T *c6_waterReturnTemp;
          real_T *c6_outDoorTemp;
          real_T *c6_currTime;
          real_T (*c6_message)[27];
          c6_currTime = (real_T *)ssGetInputPortSignal(chartInstance->S, 4);
          c6_outDoorTemp = (real_T *)ssGetInputPortSignal(chartInstance->S, 3);
          c6_waterReturnTemp = (real_T *)ssGetInputPortSignal(chartInstance->S,
            2);
          c6_waterOutTemp = (real_T *)ssGetInputPortSignal(chartInstance->S, 1);
          c6_message = (real_T (*)[27])ssGetOutputPortSignal(chartInstance->S, 1);
          c6_roomTemp = (real_T *)ssGetInputPortSignal(chartInstance->S, 0);
          _SFD_SET_DATA_VALUE_PTR(0U, c6_roomTemp);
          _SFD_SET_DATA_VALUE_PTR(1U, *c6_message);
          _SFD_SET_DATA_VALUE_PTR(2U, c6_waterOutTemp);
          _SFD_SET_DATA_VALUE_PTR(3U, c6_waterReturnTemp);
          _SFD_SET_DATA_VALUE_PTR(4U, c6_outDoorTemp);
          _SFD_SET_DATA_VALUE_PTR(5U, c6_currTime);
        }
      }
    } else {
      sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct,
        _sl_househeatMachineNumber_,chartInstance->chartNumber,
        chartInstance->instanceNumber);
    }
  }
}

static const char* sf_get_instance_specialization(void)
{
  return "WWZ9dsRaCSkQ7jwD9RFvu";
}

static void sf_opaque_initialize_c6_sl_househeat(void *chartInstanceVar)
{
  chart_debug_initialization(((SFc6_sl_househeatInstanceStruct*)
    chartInstanceVar)->S,0);
  initialize_params_c6_sl_househeat((SFc6_sl_househeatInstanceStruct*)
    chartInstanceVar);
  initialize_c6_sl_househeat((SFc6_sl_househeatInstanceStruct*) chartInstanceVar);
}

static void sf_opaque_enable_c6_sl_househeat(void *chartInstanceVar)
{
  enable_c6_sl_househeat((SFc6_sl_househeatInstanceStruct*) chartInstanceVar);
}

static void sf_opaque_disable_c6_sl_househeat(void *chartInstanceVar)
{
  disable_c6_sl_househeat((SFc6_sl_househeatInstanceStruct*) chartInstanceVar);
}

static void sf_opaque_gateway_c6_sl_househeat(void *chartInstanceVar)
{
  sf_c6_sl_househeat((SFc6_sl_househeatInstanceStruct*) chartInstanceVar);
}

extern const mxArray* sf_internal_get_sim_state_c6_sl_househeat(SimStruct* S)
{
  ChartInfoStruct *chartInfo = (ChartInfoStruct*) ssGetUserData(S);
  mxArray *plhs[1] = { NULL };

  mxArray *prhs[4];
  int mxError = 0;
  prhs[0] = mxCreateString("chart_simctx_raw2high");
  prhs[1] = mxCreateDoubleScalar(ssGetSFuncBlockHandle(S));
  prhs[2] = (mxArray*) get_sim_state_c6_sl_househeat
    ((SFc6_sl_househeatInstanceStruct*)chartInfo->chartInstance);/* raw sim ctx */
  prhs[3] = (mxArray*) sf_get_sim_state_info_c6_sl_househeat();/* state var info */
  mxError = sf_mex_call_matlab(1, plhs, 4, prhs, "sfprivate");
  mxDestroyArray(prhs[0]);
  mxDestroyArray(prhs[1]);
  mxDestroyArray(prhs[2]);
  mxDestroyArray(prhs[3]);
  if (mxError || plhs[0] == NULL) {
    sf_mex_error_message("Stateflow Internal Error: \nError calling 'chart_simctx_raw2high'.\n");
  }

  return plhs[0];
}

extern void sf_internal_set_sim_state_c6_sl_househeat(SimStruct* S, const
  mxArray *st)
{
  ChartInfoStruct *chartInfo = (ChartInfoStruct*) ssGetUserData(S);
  mxArray *plhs[1] = { NULL };

  mxArray *prhs[4];
  int mxError = 0;
  prhs[0] = mxCreateString("chart_simctx_high2raw");
  prhs[1] = mxCreateDoubleScalar(ssGetSFuncBlockHandle(S));
  prhs[2] = mxDuplicateArray(st);      /* high level simctx */
  prhs[3] = (mxArray*) sf_get_sim_state_info_c6_sl_househeat();/* state var info */
  mxError = sf_mex_call_matlab(1, plhs, 4, prhs, "sfprivate");
  mxDestroyArray(prhs[0]);
  mxDestroyArray(prhs[1]);
  mxDestroyArray(prhs[2]);
  mxDestroyArray(prhs[3]);
  if (mxError || plhs[0] == NULL) {
    sf_mex_error_message("Stateflow Internal Error: \nError calling 'chart_simctx_high2raw'.\n");
  }

  set_sim_state_c6_sl_househeat((SFc6_sl_househeatInstanceStruct*)
    chartInfo->chartInstance, mxDuplicateArray(plhs[0]));
  mxDestroyArray(plhs[0]);
}

static const mxArray* sf_opaque_get_sim_state_c6_sl_househeat(SimStruct* S)
{
  return sf_internal_get_sim_state_c6_sl_househeat(S);
}

static void sf_opaque_set_sim_state_c6_sl_househeat(SimStruct* S, const mxArray *
  st)
{
  sf_internal_set_sim_state_c6_sl_househeat(S, st);
}

static void sf_opaque_terminate_c6_sl_househeat(void *chartInstanceVar)
{
  if (chartInstanceVar!=NULL) {
    SimStruct *S = ((SFc6_sl_househeatInstanceStruct*) chartInstanceVar)->S;
    if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) {
      sf_clear_rtw_identifier(S);
      unload_sl_househeat_optimization_info();
    }

    finalize_c6_sl_househeat((SFc6_sl_househeatInstanceStruct*) chartInstanceVar);
    utFree((void *)chartInstanceVar);
    ssSetUserData(S,NULL);
  }
}

static void sf_opaque_init_subchart_simstructs(void *chartInstanceVar)
{
  initSimStructsc6_sl_househeat((SFc6_sl_househeatInstanceStruct*)
    chartInstanceVar);
}

extern unsigned int sf_machine_global_initializer_called(void);
static void mdlProcessParameters_c6_sl_househeat(SimStruct *S)
{
  int i;
  for (i=0;i<ssGetNumRunTimeParams(S);i++) {
    if (ssGetSFcnParamTunable(S,i)) {
      ssUpdateDlgParamAsRunTimeParam(S,i);
    }
  }

  if (sf_machine_global_initializer_called()) {
    initialize_params_c6_sl_househeat((SFc6_sl_househeatInstanceStruct*)
      (((ChartInfoStruct *)ssGetUserData(S))->chartInstance));
  }
}

static void mdlSetWorkWidths_c6_sl_househeat(SimStruct *S)
{
  if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) {
    mxArray *infoStruct = load_sl_househeat_optimization_info();
    int_T chartIsInlinable =
      (int_T)sf_is_chart_inlinable(S,sf_get_instance_specialization(),infoStruct,
      6);
    ssSetStateflowIsInlinable(S,chartIsInlinable);
    ssSetRTWCG(S,sf_rtw_info_uint_prop(S,sf_get_instance_specialization(),
                infoStruct,6,"RTWCG"));
    ssSetEnableFcnIsTrivial(S,1);
    ssSetDisableFcnIsTrivial(S,1);
    ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop(S,
      sf_get_instance_specialization(),infoStruct,6,
      "gatewayCannotBeInlinedMultipleTimes"));
    sf_update_buildInfo(S,sf_get_instance_specialization(),infoStruct,6);
    if (chartIsInlinable) {
      ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL);
      ssSetInputPortOptimOpts(S, 1, SS_REUSABLE_AND_LOCAL);
      ssSetInputPortOptimOpts(S, 2, SS_REUSABLE_AND_LOCAL);
      ssSetInputPortOptimOpts(S, 3, SS_REUSABLE_AND_LOCAL);
      ssSetInputPortOptimOpts(S, 4, SS_REUSABLE_AND_LOCAL);
      sf_mark_chart_expressionable_inputs(S,sf_get_instance_specialization(),
        infoStruct,6,5);
      sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(),
        infoStruct,6,1);
    }

    {
      unsigned int outPortIdx;
      for (outPortIdx=1; outPortIdx<=1; ++outPortIdx) {
        ssSetOutputPortOptimizeInIR(S, outPortIdx, 1U);
      }
    }

    {
      unsigned int inPortIdx;
      for (inPortIdx=0; inPortIdx < 5; ++inPortIdx) {
        ssSetInputPortOptimizeInIR(S, inPortIdx, 1U);
      }
    }

    sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,6);
    ssSetHasSubFunctions(S,!(chartIsInlinable));
  } else {
  }

  ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE);
  ssSetChecksum0(S,(3777977947U));
  ssSetChecksum1(S,(1845363903U));
  ssSetChecksum2(S,(2119738754U));
  ssSetChecksum3(S,(554507673U));
  ssSetmdlDerivatives(S, NULL);
  ssSetExplicitFCSSCtrl(S,1);
  ssSupportsMultipleExecInstances(S,1);
}

static void mdlRTW_c6_sl_househeat(SimStruct *S)
{
  if (sim_mode_is_rtw_gen(S)) {
    ssWriteRTWStrParam(S, "StateflowChartType", "Embedded MATLAB");
  }
}

static void mdlStart_c6_sl_househeat(SimStruct *S)
{
  SFc6_sl_househeatInstanceStruct *chartInstance;
  chartInstance = (SFc6_sl_househeatInstanceStruct *)utMalloc(sizeof
    (SFc6_sl_househeatInstanceStruct));
  memset(chartInstance, 0, sizeof(SFc6_sl_househeatInstanceStruct));
  if (chartInstance==NULL) {
    sf_mex_error_message("Could not allocate memory for chart instance.");
  }

  chartInstance->chartInfo.chartInstance = chartInstance;
  chartInstance->chartInfo.isEMLChart = 1;
  chartInstance->chartInfo.chartInitialized = 0;
  chartInstance->chartInfo.sFunctionGateway = sf_opaque_gateway_c6_sl_househeat;
  chartInstance->chartInfo.initializeChart =
    sf_opaque_initialize_c6_sl_househeat;
  chartInstance->chartInfo.terminateChart = sf_opaque_terminate_c6_sl_househeat;
  chartInstance->chartInfo.enableChart = sf_opaque_enable_c6_sl_househeat;
  chartInstance->chartInfo.disableChart = sf_opaque_disable_c6_sl_househeat;
  chartInstance->chartInfo.getSimState = sf_opaque_get_sim_state_c6_sl_househeat;
  chartInstance->chartInfo.setSimState = sf_opaque_set_sim_state_c6_sl_househeat;
  chartInstance->chartInfo.getSimStateInfo =
    sf_get_sim_state_info_c6_sl_househeat;
  chartInstance->chartInfo.zeroCrossings = NULL;
  chartInstance->chartInfo.outputs = NULL;
  chartInstance->chartInfo.derivatives = NULL;
  chartInstance->chartInfo.mdlRTW = mdlRTW_c6_sl_househeat;
  chartInstance->chartInfo.mdlStart = mdlStart_c6_sl_househeat;
  chartInstance->chartInfo.mdlSetWorkWidths = mdlSetWorkWidths_c6_sl_househeat;
  chartInstance->chartInfo.extModeExec = NULL;
  chartInstance->chartInfo.restoreLastMajorStepConfiguration = NULL;
  chartInstance->chartInfo.restoreBeforeLastMajorStepConfiguration = NULL;
  chartInstance->chartInfo.storeCurrentConfiguration = NULL;
  chartInstance->S = S;
  ssSetUserData(S,(void *)(&(chartInstance->chartInfo)));/* register the chart instance with simstruct */
  init_dsm_address_info(chartInstance);
  if (!sim_mode_is_rtw_gen(S)) {
  }

  sf_opaque_init_subchart_simstructs(chartInstance->chartInfo.chartInstance);
  chart_debug_initialization(S,1);
}

void c6_sl_househeat_method_dispatcher(SimStruct *S, int_T method, void *data)
{
  switch (method) {
   case SS_CALL_MDL_START:
    mdlStart_c6_sl_househeat(S);
    break;

   case SS_CALL_MDL_SET_WORK_WIDTHS:
    mdlSetWorkWidths_c6_sl_househeat(S);
    break;

   case SS_CALL_MDL_PROCESS_PARAMETERS:
    mdlProcessParameters_c6_sl_househeat(S);
    break;

   default:
    /* Unhandled method */
    sf_mex_error_message("Stateflow Internal Error:\n"
                         "Error calling c6_sl_househeat_method_dispatcher.\n"
                         "Can't handle method %d.\n", method);
    break;
  }
}
