/* Include files */
#include "commdvbs2_sfun.h"
#include "c4_commdvbs2.h"

/* Type Definitions */

/* Named Constants */
#define c4_IN_NO_ACTIVE_CHILD           (0)

/* Variable Declarations */

/* Variable Definitions */
static SFc4_commdvbs2InstanceStruct chartInstance;

/* Function Declarations */
static void initialize_c4_commdvbs2(void);
static void initialize_params_c4_commdvbs2(void);
static void enable_c4_commdvbs2(void);
static void disable_c4_commdvbs2(void);
static void finalize_c4_commdvbs2(void);
static void sf_c4_commdvbs2(void);
static void c4_c4_commdvbs2(void);
static void init_script_number_translation(uint32_T c4_machineNumber, uint32_T
 c4_chartNumber);
static void c4_info_helper(c4_ResolvedFunctionInfo c4_info[70]);
static void init_dsm_address_info(void);

/* Function Definitions */
static void initialize_c4_commdvbs2(void)
{
  _sfTime_ = (real_T)ssGetT(chartInstance.S);
}

static void initialize_params_c4_commdvbs2(void)
{
  real_T c4_dv0[193];
  int32_T c4_i0;
  sf_set_error_prefix_string("Embedded MATLAB Runtime Error (chart): Error evaluating data 'a' in the parent workspace.\n");
  sf_mex_import(sf_mex_get_sfun_param(chartInstance.S, 0, 0),
   "sf_mex_get_sfun_param", &c4_dv0, 0, 0, 0U, 1, 2, 1, 193);
  for(c4_i0 = 0; c4_i0 < 193; c4_i0 = c4_i0 + 1) {
    chartInstance.c4_a[c4_i0] = (c4_dv0[c4_i0] != 0.0);
  }
  sf_set_error_prefix_string("Stateflow Runtime Error (chart): ");
}

static void enable_c4_commdvbs2(void)
{
}

static void disable_c4_commdvbs2(void)
{
}

static void finalize_c4_commdvbs2(void)
{
}

static void sf_c4_commdvbs2(void)
{
  uint8_T c4_previousEvent;
  _sfTime_ = (real_T)ssGetT(chartInstance.S);
  c4_previousEvent = _sfEvent_;
  _sfEvent_ = CALL_EVENT;
  c4_c4_commdvbs2();
  _sfEvent_ = c4_previousEvent;
}

static void c4_c4_commdvbs2(void)
{
  int32_T c4_idx1;
  boolean_T c4_u[32208];
  boolean_T c4_b_a[193];
  boolean_T c4_u2[32208];
  boolean_T c4_reg[192];
  boolean_T c4_guard1 = false;
  boolean_T c4_b0;
  int32_T c4_idx2;
  boolean_T c4_guard2 = false;
  boolean_T (*c4_y)[32400];
  boolean_T (*c4_b_u)[32208];
  c4_b_u = (boolean_T (*)[32208])ssGetInputPortSignal(chartInstance.S, 0);
  c4_y = (boolean_T (*)[32400])ssGetOutputPortSignal(chartInstance.S, 1);
  for(c4_idx1 = 0; c4_idx1 < 32208; c4_idx1 = c4_idx1 + 1) {
    c4_u[c4_idx1] = (*c4_b_u)[c4_idx1];
  }
  for(c4_idx1 = 0; c4_idx1 < 193; c4_idx1 = c4_idx1 + 1) {
    c4_b_a[c4_idx1] = chartInstance.c4_a[c4_idx1];
  }
  /*  BCH encoder for DVB-S.2 standard */
  for(c4_idx1 = 0; c4_idx1 < 32208; c4_idx1 = c4_idx1 + 1) {
    c4_u2[c4_idx1] = (*c4_b_u)[c4_idx1];
  }
  for(c4_idx1 = 0; c4_idx1 < 192; c4_idx1 = c4_idx1 + 1) {
    c4_reg[c4_idx1] = false;
  }
  for(c4_idx1 = 0; c4_idx1 < 32208; c4_idx1 = c4_idx1 + 1) {
    c4_guard1 = false;
    if(c4_u[c4_idx1] || c4_reg[191]) {
      if(c4_u[c4_idx1] && c4_reg[191]) {
        c4_b0 = true;
      } else {
        c4_b0 = false;
      }
      if(!c4_b0) {
        /*  xor */
        for(c4_idx2 = 192; c4_idx2 > 1; c4_idx2 = c4_idx2 + -1) {
          c4_guard2 = false;
          if(c4_reg[c4_idx2 - 2] || c4_b_a[c4_idx2 - 1]) {
            if(c4_reg[c4_idx2 - 2] && c4_b_a[c4_idx2 - 1]) {
              c4_b0 = true;
            } else {
              c4_b0 = false;
            }
            if(!c4_b0) {
              c4_b0 = true;
            } else {
              c4_guard2 = true;
            }
          } else {
            c4_guard2 = true;
          }
          if(c4_guard2 == true) {
            c4_b0 = false;
          }
          c4_reg[c4_idx2 - 1] = c4_b0;
          /*  xor */
          sf_mex_listen_for_ctrl_c(chartInstance.S);
        }
        c4_reg[0] = true;
      } else {
        c4_guard1 = true;
      }
    } else {
      c4_guard1 = true;
    }
    if(c4_guard1 == true) {
      for(c4_idx2 = 192; c4_idx2 > 1; c4_idx2 = c4_idx2 + -1) {
        c4_reg[c4_idx2 - 1] = c4_reg[c4_idx2 - 2];
        sf_mex_listen_for_ctrl_c(chartInstance.S);
      }
      c4_reg[0] = false;
    }
    sf_mex_listen_for_ctrl_c(chartInstance.S);
  }
  for(c4_idx1 = 0; c4_idx1 < 32208; c4_idx1 = c4_idx1 + 1) {
    (*c4_y)[c4_idx1] = c4_u2[c4_idx1];
  }
  for(c4_idx1 = 0; c4_idx1 < 192; c4_idx1 = c4_idx1 + 1) {
    (*c4_y)[c4_idx1 + 32208] = c4_reg[191 + -1 * c4_idx1];
  }
}

static void init_script_number_translation(uint32_T c4_machineNumber, uint32_T
 c4_chartNumber)
{
}

const mxArray *sf_c4_commdvbs2_get_eml_resolved_functions_info(void)
{
  const mxArray *c4_nameCaptureInfo = NULL;
  c4_ResolvedFunctionInfo c4_info[70];
  c4_ResolvedFunctionInfo (*c4_b_info)[70];
  const mxArray *c4_m0 = NULL;
  int32_T c4_i1;
  c4_ResolvedFunctionInfo *c4_r0;
  c4_nameCaptureInfo = NULL;
  c4_info_helper(c4_info);
  c4_b_info = &c4_info;
  (*c4_b_info)[64].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/length.m";
  (*c4_b_info)[64].name = "gt";
  (*c4_b_info)[64].dominantType = "double";
  (*c4_b_info)[64].resolved = "[B]gt";
  (*c4_b_info)[64].fileLength = 0U;
  (*c4_b_info)[64].fileTime1 = 0U;
  (*c4_b_info)[64].fileTime2 = 0U;
  (*c4_b_info)[65].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/flipud.m";
  (*c4_b_info)[65].name = "colon";
  (*c4_b_info)[65].dominantType = "double";
  (*c4_b_info)[65].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/ops/colon.m";
  (*c4_b_info)[65].fileLength = 6738U;
  (*c4_b_info)[65].fileTime1 = 1163949226U;
  (*c4_b_info)[65].fileTime2 = 0U;
  (*c4_b_info)[66].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_assert_valid_size_arg.m/check_arg";
  (*c4_b_info)[66].name = "isfloat";
  (*c4_b_info)[66].dominantType = "double";
  (*c4_b_info)[66].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/datatypes/isfloat.m";
  (*c4_b_info)[66].fileLength = 182U;
  (*c4_b_info)[66].fileTime1 = 1160425020U;
  (*c4_b_info)[66].fileTime2 = 0U;
  (*c4_b_info)[67].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_guarded_nan.m";
  (*c4_b_info)[67].name = "nan";
  (*c4_b_info)[67].dominantType = "char";
  (*c4_b_info)[67].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/nan.m";
  (*c4_b_info)[67].fileLength = 1496U;
  (*c4_b_info)[67].fileTime1 = 1163949174U;
  (*c4_b_info)[67].fileTime2 = 0U;
  (*c4_b_info)[68].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/realmin.m";
  (*c4_b_info)[68].name = "mpower";
  (*c4_b_info)[68].dominantType = "double";
  (*c4_b_info)[68].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/ops/mpower.m";
  (*c4_b_info)[68].fileLength = 3116U;
  (*c4_b_info)[68].fileTime1 = 1177078146U;
  (*c4_b_info)[68].fileTime2 = 0U;
  (*c4_b_info)[69].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/ops/colon.m/is_flint_colon";
  (*c4_b_info)[69].name = "eps";
  (*c4_b_info)[69].dominantType = "double";
  (*c4_b_info)[69].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/eps.m";
  (*c4_b_info)[69].fileLength = 1384U;
  (*c4_b_info)[69].fileTime1 = 1163949164U;
  (*c4_b_info)[69].fileTime2 = 0U;
  sf_mex_assign(&c4_m0, sf_mex_createstruct("nameCaptureInfo", 1, 70));
  for(c4_i1 = 0; c4_i1 < 70; c4_i1 = c4_i1 + 1) {
    c4_r0 = &c4_info[c4_i1];
    sf_mex_addfield(c4_m0, sf_mex_create(c4_r0->context, "nameCaptureInfo", 13,
      0U, 0U, 2, 1, strlen(c4_r0->context)), "context",
     "nameCaptureInfo", c4_i1);
    sf_mex_addfield(c4_m0, sf_mex_create(c4_r0->name, "nameCaptureInfo", 13, 0U,
      0U, 2, 1, strlen(c4_r0->name)), "name",
     "nameCaptureInfo", c4_i1);
    sf_mex_addfield(c4_m0, sf_mex_create(c4_r0->dominantType, "nameCaptureInfo",
      13, 0U, 0U, 2, 1, strlen(c4_r0->dominantType)),
     "dominantType", "nameCaptureInfo", c4_i1);
    sf_mex_addfield(c4_m0, sf_mex_create(c4_r0->resolved, "nameCaptureInfo", 13,
      0U, 0U, 2, 1, strlen(c4_r0->resolved)), "resolved",
     "nameCaptureInfo", c4_i1);
    sf_mex_addfield(c4_m0, sf_mex_create(&c4_r0->fileLength, "nameCaptureInfo",
      7, 0U, 0U, 0), "fileLength", "nameCaptureInfo", c4_i1);
    sf_mex_addfield(c4_m0, sf_mex_create(&c4_r0->fileTime1, "nameCaptureInfo",
      7, 0U, 0U, 0), "fileTime1", "nameCaptureInfo", c4_i1);
    sf_mex_addfield(c4_m0, sf_mex_create(&c4_r0->fileTime2, "nameCaptureInfo",
      7, 0U, 0U, 0), "fileTime2", "nameCaptureInfo", c4_i1);
  }
  sf_mex_assign(&c4_nameCaptureInfo, c4_m0);
  return c4_nameCaptureInfo;
}

static void c4_info_helper(c4_ResolvedFunctionInfo c4_info[70])
{
  c4_info[0].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/ops/mpower.m";
  c4_info[0].name = "power";
  c4_info[0].dominantType = "double";
  c4_info[0].resolved = "[I]$matlabroot$/toolbox/eml/lib/matlab/ops/power.m";
  c4_info[0].fileLength = 4842U;
  c4_info[0].fileTime1 = 1177078146U;
  c4_info[0].fileTime2 = 0U;
  c4_info[1].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_assert_valid_size_arg.m/check_arg";
  c4_info[1].name = "ne";
  c4_info[1].dominantType = "double";
  c4_info[1].resolved = "[B]ne";
  c4_info[1].fileLength = 0U;
  c4_info[1].fileTime1 = 0U;
  c4_info[1].fileTime2 = 0U;
  c4_info[2].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_assert_valid_size_arg.m/check_arg";
  c4_info[2].name = "true";
  c4_info[2].dominantType = "";
  c4_info[2].resolved = "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/true.m";
  c4_info[2].fileLength = 625U;
  c4_info[2].fileTime1 = 1163949186U;
  c4_info[2].fileTime2 = 0U;
  c4_info[3].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/ops/colon.m";
  c4_info[3].name = "isreal";
  c4_info[3].dominantType = "double";
  c4_info[3].resolved = "[B]isreal";
  c4_info[3].fileLength = 0U;
  c4_info[3].fileTime1 = 0U;
  c4_info[3].fileTime2 = 0U;
  c4_info[4].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_assert_valid_size_arg.m/check_arg";
  c4_info[4].name = "isnumeric";
  c4_info[4].dominantType = "double";
  c4_info[4].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/datatypes/isnumeric.m";
  c4_info[4].fileLength = 250U;
  c4_info[4].fileTime1 = 1160425022U;
  c4_info[4].fileTime2 = 0U;
  c4_info[5].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_alloc.m";
  c4_info[5].name = "isstruct";
  c4_info[5].dominantType = "double";
  c4_info[5].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/datatypes/isstruct.m";
  c4_info[5].fileLength = 179U;
  c4_info[5].fileTime1 = 1160425024U;
  c4_info[5].fileTime2 = 0U;
  c4_info[6].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_alloc.m";
  c4_info[6].name = "plus";
  c4_info[6].dominantType = "double";
  c4_info[6].resolved = "[B]plus";
  c4_info[6].fileLength = 0U;
  c4_info[6].fileTime1 = 0U;
  c4_info[6].fileTime2 = 0U;
  c4_info[7].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/ops/colon.m";
  c4_info[7].name = "isinteger";
  c4_info[7].dominantType = "double";
  c4_info[7].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/datatypes/isinteger.m";
  c4_info[7].fileLength = 254U;
  c4_info[7].fileTime1 = 1160425020U;
  c4_info[7].fileTime2 = 0U;
  c4_info[8].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/datatypes/isa.m";
  c4_info[8].name = "eml_is_float_class";
  c4_info[8].dominantType = "char";
  c4_info[8].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_is_float_class.m";
  c4_info[8].fileLength = 273U;
  c4_info[8].fileTime1 = 1160425144U;
  c4_info[8].fileTime2 = 0U;
  c4_info[9].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/false.m";
  c4_info[9].name = "eml_assert_valid_size_arg";
  c4_info[9].dominantType = "double";
  c4_info[9].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_assert_valid_size_arg.m";
  c4_info[9].fileLength = 1097U;
  c4_info[9].fileTime1 = 1163949188U;
  c4_info[9].fileTime2 = 0U;
  c4_info[10].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/isfinite.m";
  c4_info[10].name = "and";
  c4_info[10].dominantType = "logical";
  c4_info[10].resolved = "[B]and";
  c4_info[10].fileLength = 0U;
  c4_info[10].fileTime1 = 0U;
  c4_info[10].fileTime2 = 0U;
  c4_info[11].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_min_or_max.m/eml_bin_extremum";
  c4_info[11].name = "eml_index_class";
  c4_info[11].dominantType = "";
  c4_info[11].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_index_class.m";
  c4_info[11].fileLength = 953U;
  c4_info[11].fileTime1 = 1160425142U;
  c4_info[11].fileTime2 = 0U;
  c4_info[12].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/length.m";
  c4_info[12].name = "size";
  c4_info[12].dominantType = "logical";
  c4_info[12].resolved = "[B]size";
  c4_info[12].fileLength = 0U;
  c4_info[12].fileTime1 = 0U;
  c4_info[12].fileTime2 = 0U;
  c4_info[13].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/ops/colon.m/checkrange";
  c4_info[13].name = "realmax";
  c4_info[13].dominantType = "char";
  c4_info[13].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/realmax.m";
  c4_info[13].fileLength = 672U;
  c4_info[13].fileTime1 = 1160425116U;
  c4_info[13].fileTime2 = 0U;
  c4_info[14].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_assert_valid_size_arg.m/check_arg";
  c4_info[14].name = "isvector";
  c4_info[14].dominantType = "double";
  c4_info[14].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/isvector.m";
  c4_info[14].fileLength = 284U;
  c4_info[14].fileTime1 = 1160425106U;
  c4_info[14].fileTime2 = 0U;
  c4_info[15].context = "";
  c4_info[15].name = "not";
  c4_info[15].dominantType = "logical";
  c4_info[15].resolved = "[B]not";
  c4_info[15].fileLength = 0U;
  c4_info[15].fileTime1 = 0U;
  c4_info[15].fileTime2 = 0U;
  c4_info[16].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/datafun/max.m";
  c4_info[16].name = "le";
  c4_info[16].dominantType = "double";
  c4_info[16].resolved = "[B]le";
  c4_info[16].fileLength = 0U;
  c4_info[16].fileTime1 = 0U;
  c4_info[16].fileTime2 = 0U;
  c4_info[17].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/datafun/max.m";
  c4_info[17].name = "nargout";
  c4_info[17].dominantType = "";
  c4_info[17].resolved = "[B]nargout";
  c4_info[17].fileLength = 0U;
  c4_info[17].fileTime1 = 0U;
  c4_info[17].fileTime2 = 0U;
  c4_info[18].context = "";
  c4_info[18].name = "false";
  c4_info[18].dominantType = "double";
  c4_info[18].resolved = "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/false.m";
  c4_info[18].fileLength = 631U;
  c4_info[18].fileTime1 = 1163949166U;
  c4_info[18].fileTime2 = 0U;
  c4_info[19].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/length.m";
  c4_info[19].name = "eml_numel";
  c4_info[19].dominantType = "double";
  c4_info[19].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_numel.m";
  c4_info[19].fileLength = 278U;
  c4_info[19].fileTime1 = 1163949202U;
  c4_info[19].fileTime2 = 0U;
  c4_info[20].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/ops/power.m";
  c4_info[20].name = "eml_error";
  c4_info[20].dominantType = "char";
  c4_info[20].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_error.m";
  c4_info[20].fileLength = 585U;
  c4_info[20].fileTime1 = 1177078120U;
  c4_info[20].fileTime2 = 0U;
  c4_info[21].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/datatypes/isa.m";
  c4_info[21].name = "eml_is_integer_class";
  c4_info[21].dominantType = "char";
  c4_info[21].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_is_integer_class.m";
  c4_info[21].fileLength = 462U;
  c4_info[21].fileTime1 = 1160425144U;
  c4_info[21].fileTime2 = 0U;
  c4_info[22].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/isfinite.m";
  c4_info[22].name = "isnan";
  c4_info[22].dominantType = "double";
  c4_info[22].resolved = "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/isnan.m";
  c4_info[22].fileLength = 514U;
  c4_info[22].fileTime1 = 1160425104U;
  c4_info[22].fileTime2 = 0U;
  c4_info[23].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/ops/mrdivide.m";
  c4_info[23].name = "rdivide";
  c4_info[23].dominantType = "double";
  c4_info[23].resolved = "[I]$matlabroot$/toolbox/eml/lib/matlab/ops/rdivide.m";
  c4_info[23].fileLength = 4533U;
  c4_info[23].fileTime1 = 1177078148U;
  c4_info[23].fileTime2 = 0U;
  c4_info[24].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/eps.m";
  c4_info[24].name = "eml_guarded_nan";
  c4_info[24].dominantType = "";
  c4_info[24].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_guarded_nan.m";
  c4_info[24].fileLength = 549U;
  c4_info[24].fileTime1 = 1160425140U;
  c4_info[24].fileTime2 = 0U;
  c4_info[25].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/length.m";
  c4_info[25].name = "eml_assert";
  c4_info[25].dominantType = "char";
  c4_info[25].resolved = "[B]eml_assert";
  c4_info[25].fileLength = 0U;
  c4_info[25].fileTime1 = 0U;
  c4_info[25].fileTime2 = 0U;
  c4_info[26].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_min_or_max.m";
  c4_info[26].name = "eml_scalexp_compatible";
  c4_info[26].dominantType = "double";
  c4_info[26].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_scalexp_compatible.m";
  c4_info[26].fileLength = 422U;
  c4_info[26].fileTime1 = 1160425154U;
  c4_info[26].fileTime2 = 0U;
  c4_info[27].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_min_or_max.m/eml_bin_extremum";
  c4_info[27].name = "eml_alloc";
  c4_info[27].dominantType = "double";
  c4_info[27].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_alloc.m";
  c4_info[27].fileLength = 2151U;
  c4_info[27].fileTime1 = 1179442870U;
  c4_info[27].fileTime2 = 0U;
  c4_info[28].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/elfun/floor.m";
  c4_info[28].name = "isempty";
  c4_info[28].dominantType = "double";
  c4_info[28].resolved = "[B]isempty";
  c4_info[28].fileLength = 0U;
  c4_info[28].fileTime1 = 0U;
  c4_info[28].fileTime2 = 0U;
  c4_info[29].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/ops/colon.m/is_flint_colon";
  c4_info[29].name = "max";
  c4_info[29].dominantType = "double";
  c4_info[29].resolved = "[I]$matlabroot$/toolbox/eml/lib/matlab/datafun/max.m";
  c4_info[29].fileLength = 672U;
  c4_info[29].fileTime1 = 1160425006U;
  c4_info[29].fileTime2 = 0U;
  c4_info[30].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_assert_valid_size_arg.m";
  c4_info[30].name = "isscalar";
  c4_info[30].dominantType = "double";
  c4_info[30].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/isscalar.m";
  c4_info[30].fileLength = 243U;
  c4_info[30].fileTime1 = 1160425104U;
  c4_info[30].fileTime2 = 0U;
  c4_info[31].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/length.m";
  c4_info[31].name = "eq";
  c4_info[31].dominantType = "double";
  c4_info[31].resolved = "[B]eq";
  c4_info[31].fileLength = 0U;
  c4_info[31].fileTime1 = 0U;
  c4_info[31].fileTime2 = 0U;
  c4_info[32].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_assert_valid_size_arg.m/check_arg";
  c4_info[32].name = "imag";
  c4_info[32].dominantType = "double";
  c4_info[32].resolved = "[B]imag";
  c4_info[32].fileLength = 0U;
  c4_info[32].fileTime1 = 0U;
  c4_info[32].fileTime2 = 0U;
  c4_info[33].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_min_or_max.m/eml_bin_extremum";
  c4_info[33].name = "ones";
  c4_info[33].dominantType = "char";
  c4_info[33].resolved = "[B]ones";
  c4_info[33].fileLength = 0U;
  c4_info[33].fileTime1 = 0U;
  c4_info[33].fileTime2 = 0U;
  c4_info[34].context = "";
  c4_info[34].name = "flipud";
  c4_info[34].dominantType = "logical";
  c4_info[34].resolved = "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/flipud.m";
  c4_info[34].fileLength = 301U;
  c4_info[34].fileTime1 = 1160425092U;
  c4_info[34].fileTime2 = 0U;
  c4_info[35].context = "";
  c4_info[35].name = "logical";
  c4_info[35].dominantType = "logical";
  c4_info[35].resolved = "[B]logical";
  c4_info[35].fileLength = 0U;
  c4_info[35].fileTime1 = 0U;
  c4_info[35].fileTime2 = 0U;
  c4_info[36].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/ops/colon.m/is_flint_colon";
  c4_info[36].name = "floor";
  c4_info[36].dominantType = "double";
  c4_info[36].resolved = "[I]$matlabroot$/toolbox/eml/lib/matlab/elfun/floor.m";
  c4_info[36].fileLength = 595U;
  c4_info[36].fileTime1 = 1163949136U;
  c4_info[36].fileTime2 = 0U;
  c4_info[37].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/isfinite.m";
  c4_info[37].name = "isinf";
  c4_info[37].dominantType = "double";
  c4_info[37].resolved = "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/isinf.m";
  c4_info[37].fileLength = 514U;
  c4_info[37].fileTime1 = 1160425102U;
  c4_info[37].fileTime2 = 0U;
  c4_info[38].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/false.m";
  c4_info[38].name = "zeros";
  c4_info[38].dominantType = "double";
  c4_info[38].resolved = "[B]zeros";
  c4_info[38].fileLength = 0U;
  c4_info[38].fileTime1 = 0U;
  c4_info[38].fileTime2 = 0U;
  c4_info[39].context = "";
  c4_info[39].name = "minus";
  c4_info[39].dominantType = "double";
  c4_info[39].resolved = "[B]minus";
  c4_info[39].fileLength = 0U;
  c4_info[39].fileTime1 = 0U;
  c4_info[39].fileTime2 = 0U;
  c4_info[40].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/ops/colon.m/unrounded_npoints";
  c4_info[40].name = "mrdivide";
  c4_info[40].dominantType = "double";
  c4_info[40].resolved = "[I]$matlabroot$/toolbox/eml/lib/matlab/ops/mrdivide.m";
  c4_info[40].fileLength = 653U;
  c4_info[40].fileTime1 = 1160425202U;
  c4_info[40].fileTime2 = 0U;
  c4_info[41].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_assert_valid_size_arg.m/check_arg";
  c4_info[41].name = "real";
  c4_info[41].dominantType = "double";
  c4_info[41].resolved = "[B]real";
  c4_info[41].fileLength = 0U;
  c4_info[41].fileTime1 = 0U;
  c4_info[41].fileTime2 = 0U;
  c4_info[42].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/ops/colon.m";
  c4_info[42].name = "ge";
  c4_info[42].dominantType = "double";
  c4_info[42].resolved = "[B]ge";
  c4_info[42].fileLength = 0U;
  c4_info[42].fileTime1 = 0U;
  c4_info[42].fileTime2 = 0U;
  c4_info[43].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/datatypes/isa.m";
  c4_info[43].name = "strcmp";
  c4_info[43].dominantType = "char";
  c4_info[43].resolved = "[B]strcmp";
  c4_info[43].fileLength = 0U;
  c4_info[43].fileTime1 = 0U;
  c4_info[43].fileTime2 = 0U;
  c4_info[44].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/false.m";
  c4_info[44].name = "lt";
  c4_info[44].dominantType = "double";
  c4_info[44].resolved = "[B]lt";
  c4_info[44].fileLength = 0U;
  c4_info[44].fileTime1 = 0U;
  c4_info[44].fileTime2 = 0U;
  c4_info[45].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/flipud.m";
  c4_info[45].name = "ndims";
  c4_info[45].dominantType = "logical";
  c4_info[45].resolved = "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/ndims.m";
  c4_info[45].fileLength = 236U;
  c4_info[45].fileTime1 = 1163949176U;
  c4_info[45].fileTime2 = 0U;
  c4_info[46].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/eps.m";
  c4_info[46].name = "realmin";
  c4_info[46].dominantType = "";
  c4_info[46].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/realmin.m";
  c4_info[46].fileLength = 649U;
  c4_info[46].fileTime1 = 1160425118U;
  c4_info[46].fileTime2 = 0U;
  c4_info[47].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/elfun/abs.m";
  c4_info[47].name = "islogical";
  c4_info[47].dominantType = "double";
  c4_info[47].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/datatypes/islogical.m";
  c4_info[47].fileLength = 186U;
  c4_info[47].fileTime1 = 1160425022U;
  c4_info[47].fileTime2 = 0U;
  c4_info[48].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_min_or_max.m/eml_bin_extremum";
  c4_info[48].name = "eml_scalexp_size";
  c4_info[48].dominantType = "double";
  c4_info[48].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_scalexp_size.m";
  c4_info[48].fileLength = 923U;
  c4_info[48].fileTime1 = 1160425156U;
  c4_info[48].fileTime2 = 0U;
  c4_info[49].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_is_float_class.m";
  c4_info[49].name = "ischar";
  c4_info[49].dominantType = "char";
  c4_info[49].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/strfun/ischar.m";
  c4_info[49].fileLength = 244U;
  c4_info[49].fileTime1 = 1160425234U;
  c4_info[49].fileTime2 = 0U;
  c4_info[50].context = "";
  c4_info[50].name = "uminus";
  c4_info[50].dominantType = "double";
  c4_info[50].resolved = "[B]uminus";
  c4_info[50].fileLength = 0U;
  c4_info[50].fileTime1 = 0U;
  c4_info[50].fileTime2 = 0U;
  c4_info[51].context = "";
  c4_info[51].name = "length";
  c4_info[51].dominantType = "logical";
  c4_info[51].resolved = "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/length.m";
  c4_info[51].fileLength = 347U;
  c4_info[51].fileTime1 = 1163949170U;
  c4_info[51].fileTime2 = 0U;
  c4_info[52].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_alloc.m";
  c4_info[52].name = "cast";
  c4_info[52].dominantType = "double";
  c4_info[52].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/datatypes/cast.m";
  c4_info[52].fileLength = 907U;
  c4_info[52].fileTime1 = 1160425018U;
  c4_info[52].fileTime2 = 0U;
  c4_info[53].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/datafun/max.m";
  c4_info[53].name = "eml_min_or_max";
  c4_info[53].dominantType = "char";
  c4_info[53].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_min_or_max.m";
  c4_info[53].fileLength = 7178U;
  c4_info[53].fileTime1 = 1163949200U;
  c4_info[53].fileTime2 = 0U;
  c4_info[54].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/eps.m";
  c4_info[54].name = "int32";
  c4_info[54].dominantType = "double";
  c4_info[54].resolved = "[B]int32";
  c4_info[54].fileLength = 0U;
  c4_info[54].fileTime1 = 0U;
  c4_info[54].fileTime2 = 0U;
  c4_info[55].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/length.m";
  c4_info[55].name = "nargin";
  c4_info[55].dominantType = "";
  c4_info[55].resolved = "[B]nargin";
  c4_info[55].fileLength = 0U;
  c4_info[55].fileTime1 = 0U;
  c4_info[55].fileTime2 = 0U;
  c4_info[56].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/datatypes/isa.m";
  c4_info[56].name = "class";
  c4_info[56].dominantType = "char";
  c4_info[56].resolved = "[B]class";
  c4_info[56].fileLength = 0U;
  c4_info[56].fileTime1 = 0U;
  c4_info[56].fileTime2 = 0U;
  c4_info[57].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/datatypes/cast.m";
  c4_info[57].name = "double";
  c4_info[57].dominantType = "double";
  c4_info[57].resolved = "[B]double";
  c4_info[57].fileLength = 0U;
  c4_info[57].fileTime1 = 0U;
  c4_info[57].fileTime2 = 0U;
  c4_info[58].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/ops/colon.m/is_flint_colon";
  c4_info[58].name = "abs";
  c4_info[58].dominantType = "double";
  c4_info[58].resolved = "[I]$matlabroot$/toolbox/eml/lib/matlab/elfun/abs.m";
  c4_info[58].fileLength = 1031U;
  c4_info[58].fileTime1 = 1163949102U;
  c4_info[58].fileTime2 = 0U;
  c4_info[59].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_numel.m";
  c4_info[59].name = "numel";
  c4_info[59].dominantType = "double";
  c4_info[59].resolved = "[B]numel";
  c4_info[59].fileLength = 0U;
  c4_info[59].fileTime1 = 0U;
  c4_info[59].fileTime2 = 0U;
  c4_info[60].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/datatypes/isnumeric.m";
  c4_info[60].name = "isa";
  c4_info[60].dominantType = "double";
  c4_info[60].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/datatypes/isa.m";
  c4_info[60].fileLength = 791U;
  c4_info[60].fileTime1 = 1160425018U;
  c4_info[60].fileTime2 = 0U;
  c4_info[61].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/realmax.m";
  c4_info[61].name = "mtimes";
  c4_info[61].dominantType = "double";
  c4_info[61].resolved = "[B]mtimes";
  c4_info[61].fileLength = 0U;
  c4_info[61].fileTime1 = 0U;
  c4_info[61].fileTime2 = 0U;
  c4_info[62].context =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/ops/colon.m/is_flint_colon";
  c4_info[62].name = "isfinite";
  c4_info[62].dominantType = "double";
  c4_info[62].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/elmat/isfinite.m";
  c4_info[62].fileLength = 387U;
  c4_info[62].fileTime1 = 1160425102U;
  c4_info[62].fileTime2 = 0U;
  c4_info[63].context = "[I]$matlabroot$/toolbox/eml/lib/matlab/elfun/abs.m";
  c4_info[63].name = "eml_isa_uint";
  c4_info[63].dominantType = "double";
  c4_info[63].resolved =
    "[I]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_isa_uint.m";
  c4_info[63].fileLength = 288U;
  c4_info[63].fileTime1 = 1163949198U;
  c4_info[63].fileTime2 = 0U;
}

static void init_dsm_address_info(void)
{
}

/* SFunction Glue Code */
void sf_c4_commdvbs2_get_check_sum(mxArray *plhs[])
{
  ((real_T *)mxGetPr((plhs[0])))[0] = (real_T)(4083276031U);
  ((real_T *)mxGetPr((plhs[0])))[1] = (real_T)(2536259234U);
  ((real_T *)mxGetPr((plhs[0])))[2] = (real_T)(1146135856U);
  ((real_T *)mxGetPr((plhs[0])))[3] = (real_T)(3276032661U);
}

mxArray *sf_c4_commdvbs2_get_autoinheritance_info(void)
{
  const char *autoinheritanceFields[] =
  {"checksum","inputs","parameters","outputs"};
  mxArray *mxAutoinheritanceInfo =
  mxCreateStructMatrix(1,1,4,autoinheritanceFields);
  {
    mxArray *mxChecksum = mxCreateDoubleMatrix(4,1,mxREAL);
    double *pr = mxGetPr(mxChecksum);
    pr[0] = (double)(622923660U);
    pr[1] = (double)(2388839800U);
    pr[2] = (double)(408902283U);
    pr[3] = (double)(732935737U);
    mxSetField(mxAutoinheritanceInfo,0,"checksum",mxChecksum);
  }
  {
    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)(32208);
      pr[1] = (double)(1);
      mxSetField(mxData,0,"size",mxSize);
    }
    {
      const char *typeFields[] = {"base","aliasId","fixpt"};
      mxArray *mxType = mxCreateStructMatrix(1,1,3,typeFields);
      mxSetField(mxType,0,"base",mxCreateDoubleScalar(1));
      mxSetField(mxType,0,"aliasId",mxCreateDoubleScalar(8));
      mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
      mxSetField(mxData,0,"type",mxType);
    }
    mxSetField(mxData,0,"complexity",mxCreateDoubleScalar(0));
    mxSetField(mxAutoinheritanceInfo,0,"inputs",mxData);
  }
  {
    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)(1);
      pr[1] = (double)(193);
      mxSetField(mxData,0,"size",mxSize);
    }
    {
      const char *typeFields[] = {"base","aliasId","fixpt"};
      mxArray *mxType = mxCreateStructMatrix(1,1,3,typeFields);
      mxSetField(mxType,0,"base",mxCreateDoubleScalar(1));
      mxSetField(mxType,0,"aliasId",mxCreateDoubleScalar(0));
      mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
      mxSetField(mxData,0,"type",mxType);
    }
    mxSetField(mxData,0,"complexity",mxCreateDoubleScalar(0));
    mxSetField(mxAutoinheritanceInfo,0,"parameters",mxData);
  }
  {
    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)(32400);
      pr[1] = (double)(1);
      mxSetField(mxData,0,"size",mxSize);
    }
    {
      const char *typeFields[] = {"base","aliasId","fixpt"};
      mxArray *mxType = mxCreateStructMatrix(1,1,3,typeFields);
      mxSetField(mxType,0,"base",mxCreateDoubleScalar(1));
      mxSetField(mxType,0,"aliasId",mxCreateDoubleScalar(0));
      mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
      mxSetField(mxData,0,"type",mxType);
    }
    mxSetField(mxData,0,"complexity",mxCreateDoubleScalar(0));
    mxSetField(mxAutoinheritanceInfo,0,"outputs",mxData);
  }
  return(mxAutoinheritanceInfo);
}

static void sf_opaque_initialize_c4_commdvbs2(void *chartInstanceVar)
{
  initialize_params_c4_commdvbs2();
  initialize_c4_commdvbs2();
}

static void sf_opaque_enable_c4_commdvbs2(void *chartInstanceVar)
{
  enable_c4_commdvbs2();
}

static void sf_opaque_disable_c4_commdvbs2(void *chartInstanceVar)
{
  disable_c4_commdvbs2();
}

static void sf_opaque_gateway_c4_commdvbs2(void *chartInstanceVar)
{
  sf_c4_commdvbs2();
}

static void sf_opaque_terminate_c4_commdvbs2(void *chartInstanceVar)
{
  if (sim_mode_is_rtw_gen(chartInstance.S) ||
   sim_mode_is_external(chartInstance.S)) {
    sf_clear_rtw_identifier(chartInstance.S);
  }
  finalize_c4_commdvbs2();
}

extern unsigned int sf_machine_global_initializer_called(void);
static void mdlProcessParameters_c4_commdvbs2(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_c4_commdvbs2();
  }
}

static void mdlSetWorkWidths_c4_commdvbs2(SimStruct *S)
{
  /* Actual parameters from chart:
     a 
   */
  const char_T *rtParamNames[] = {"p1"};

  ssSetNumRunTimeParams(S,ssGetSFcnParamsCount(S));
  /* registration for a*/
  ssRegDlgParamAsRunTimeParam(S, 0, 0, rtParamNames[0], SS_BOOLEAN);

  if(sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) {
    int_T chartIsInlinable =
      (int_T)sf_is_chart_inlinable("commdvbs2",4);
    ssSetStateflowIsInlinable(S,chartIsInlinable);
    ssSetEnableFcnIsTrivial(S,1);
    ssSetDisableFcnIsTrivial(S,1);
    ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop("commdvbs2",4,"gatewayCannotBeInlinedMultipleTimes"));
    if(chartIsInlinable) {
      ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL);
      sf_mark_chart_expressionable_inputs(S,"commdvbs2",4,1);
      sf_mark_chart_reusable_outputs(S,"commdvbs2",4,1);
    }
    sf_set_rtw_dwork_info(S,"commdvbs2",4);
    ssSetHasSubFunctions(S,!(chartIsInlinable));
    ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE);
  }

  ssSetChecksum0(S,(1530959265U));
  ssSetChecksum1(S,(1178246349U));
  ssSetChecksum2(S,(1611805455U));
  ssSetChecksum3(S,(3209866064U));

  ssSetmdlDerivatives(S, NULL);

  ssSetExplicitFCSSCtrl(S,1);
}

static void mdlRTW_c4_commdvbs2(SimStruct *S)
{
  if(sim_mode_is_rtw_gen(S)) {
    sf_write_symbol_mapping(S, "commdvbs2", 4);
    ssWriteRTWStrParam(S, "StateflowChartType", "Embedded MATLAB");
  }
}

static void mdlStart_c4_commdvbs2(SimStruct *S)
{
  chartInstance.chartInfo.chartInstance = NULL;
  chartInstance.chartInfo.isEMLChart = 1;
  chartInstance.chartInfo.chartInitialized = 0;
  chartInstance.chartInfo.sFunctionGateway = sf_opaque_gateway_c4_commdvbs2;
  chartInstance.chartInfo.initializeChart = sf_opaque_initialize_c4_commdvbs2;
  chartInstance.chartInfo.terminateChart = sf_opaque_terminate_c4_commdvbs2;
  chartInstance.chartInfo.enableChart = sf_opaque_enable_c4_commdvbs2;
  chartInstance.chartInfo.disableChart = sf_opaque_disable_c4_commdvbs2;
  chartInstance.chartInfo.zeroCrossings = NULL;
  chartInstance.chartInfo.outputs = NULL;
  chartInstance.chartInfo.derivatives = NULL;
  chartInstance.chartInfo.mdlRTW = mdlRTW_c4_commdvbs2;
  chartInstance.chartInfo.mdlStart = mdlStart_c4_commdvbs2;
  chartInstance.chartInfo.mdlSetWorkWidths = mdlSetWorkWidths_c4_commdvbs2;
  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 */

  if(!sim_mode_is_rtw_gen(S)) {
    init_dsm_address_info();
  }
}

void c4_commdvbs2_method_dispatcher(SimStruct *S, int_T method, void *data)
{
  switch (method) {
   case SS_CALL_MDL_START:
    mdlStart_c4_commdvbs2(S);
    break;
   case SS_CALL_MDL_SET_WORK_WIDTHS:
    mdlSetWorkWidths_c4_commdvbs2(S);
    break;
   case SS_CALL_MDL_PROCESS_PARAMETERS:
    mdlProcessParameters_c4_commdvbs2(S);
    break;
   default:
    /* Unhandled method */
    sf_mex_error_message("Stateflow Internal Error:\n"
     "Error calling c4_commdvbs2_method_dispatcher.\n"
     "Can't handle method %d.\n", method);
    break;
  }
}

