input
stringlengths
16
454k
output
stringlengths
13
350k
function_name
stringlengths
1
100
repo_name
stringlengths
6
43
category
stringclasses
76 values
sample_id
stringlengths
22
88
decompiler
stringclasses
1 value
opt_level
stringclasses
1 value
MODEL *ar_model(MODEL *__return_ptr retstr, const int *list, DATASET *dset, gretlopt opt, PRN *prn) { char *v5; char *v6; int v7; int v8; MODEL v10; PRN *prna; gretlopt opta; DATASET *dseta; const int *lista; MODEL *v15; int i; int j; int t; int vc; int ryno; int iter; ...
MODEL ar_model(const int *list, DATASET *dset, gretlopt opt, PRN *prn) { double diff, ess, tss, xx; int i, j, vi, t, t1, t2, vc, yno, ryno, iter; int k, pmax, v = dset->v; int *arlist = NULL, *rholist = NULL; int *reglist = NULL, *reglist2 = NULL; int cpos, nvadd; MODEL ar, rhomod; gretl_error_clear();...
ar_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int arbond_get_depvar(const MODEL *pmod) { int i; for (i = 1; i <= *pmod->list; ++i) { if (pmod->list[i] == -100 && i < *pmod->list) return pmod->list[i + 1]; } return 0; }
static int arbond_get_depvar(const MODEL *pmod) { int i; for (i = 1; i <= pmod->list[0]; i++) { if (pmod->list[i] == LISTSEP && i < pmod->list[0]) { return pmod->list[i + 1]; } } return 0; }
arbond_get_depvar
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
MODEL *arch_model(MODEL *__return_ptr retstr, const int *list, int order, DATASET *dset, gretlopt opt) { int v5; char *v6; int *v7; MODEL v9; DATASET *dseta; gretlopt opta; int ordera; const int *lista; MODEL *v14; int i; int t; int T; int oldv; int n; int k; int nwt; ...
MODEL arch_model(const int *list, int order, DATASET *dset, gretlopt opt) { MODEL amod; int *wlist = NULL, *alist = NULL; int T = sample_size(dset); int oldv = dset->v; int i, t, nwt, k, n = dset->n; double *a = NULL; double *se = NULL; double xx; gretl_error_clear(); gretl_model_init(&amod, dset);...
arch_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int arch_test(MODEL *pmod, int order, const DATASET *dset, gretlopt opt, PRN *prn) { int ordera; ordera = order; if (pmod->missmask) return 34; if (!order) ordera = dset->pd; return real_arch_test(&pmod->uhat[pmod->t1], pmod->nobs, ordera, pmod, opt, prn); }
int arch_test(MODEL *pmod, int order, const DATASET *dset, gretlopt opt, PRN *prn) { int err; if (pmod->missmask != NULL) { err = E_MISSDATA; } else { const double *u = pmod->uhat + pmod->t1; if (order == 0) { order = dset->pd; } err = real_arch_test(u, pmod->nobs, orde...
arch_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void arch_test_print_simple(int order, double LM, double pval, gretlopt opt, PRN *prn) { char *v5; char *v6; char *v7; char *v8; char *v9; if ((opt & 0x1000) != 0) { v5 = gettext("Test statistic"); pprintf(prn, "%s: TR^2 = %f,\n", v5, LM); } else { v6 = gettext("Te...
static void arch_test_print_simple(int order, double LM, double pval, gretlopt opt, PRN *prn) { if (opt & OPT_M) { pprintf(prn, "%s: TR^2 = %f,\n", _("Test statistic"), LM); } else { pprintf(prn, "\n%s %d\n", _("Test for ARCH of order"), order); pprintf(prn, "\n%s: TR...
arch_test_print_simple
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void arch_test_save_or_print(const gretl_matrix *b, const gretl_matrix *V, int T, int order, double rsq, MODEL *pmod, gretlopt opt, PRN *prn) { double LM; double pv; ModelTest *test; LM = (double)T * rsq; pv = chisq_cdf_comp((double)order, LM); reco...
static void arch_test_save_or_print(const gretl_matrix *b, const gretl_matrix *V, int T, int order, double rsq, MODEL *pmod, gretlopt opt, PRN *prn) { double LM = T * rsq; double pv = chisq_cdf_comp(order, LM...
arch_test_save_or_print
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int arellano_vcv(MODEL *pmod, panelmod_t *pan, const DATASET *dset, gretl_matrix *XX, gretl_matrix *W, gretl_matrix *V) { int v6; int i; int j; int t; int err; int p; int T; int k; int Ti; int s; gretl_matrix *e; gretl_matrix *Xi; double Nfac; gretl_vector *eXi; T = pan->...
static int arellano_vcv(MODEL *pmod, panelmod_t *pan, const DATASET *dset, gretl_matrix *XX, gretl_matrix *W, gretl_matrix *V) { gretl_vector *e = NULL; gretl_matrix *Xi = NULL; gretl_vector *eXi = NULL; int T = pan->Tmax; int k = pmod->ncoeff; double Nfac = 1.0; int i, j, v, s, t;...
arellano_vcv
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int arg_add_as_shell(const char *name, GretlType type, void *value) { return real_user_var_add(name, type, value, OPT_S | OPT_A); }
int arg_add_as_shell(const char *name, GretlType type, void *value) { return real_user_var_add(name, type, value, OPT_S | OPT_A); }
arg_add_as_shell
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *arg_from_delim(char c) { int i; for (i = 0; csv_delims[i]; ++i) { if (c == csv_delims[i]) return csv_strs[i]; } return "unset"; }
static const char *arg_from_delim(char c) { int i; for (i = 0; csv_delims[i] != '\0'; i++) { if (c == csv_delims[i]) { return csv_strs[i]; } } return "unset"; }
arg_from_delim
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double arg_get_double_val(fn_arg *arg) { if (arg->type == 1 || arg->type == 2 || arg->type == 3 || arg->type == 4 || arg->type == 6) return arg->val.x; if (arg->type == 12) return **((double **)arg->val.px + 1); return NAN; }
static double arg_get_double_val(fn_arg *arg) { if (gretl_scalar_type(arg->type)) { return arg->val.x; } else if (arg->type == GRETL_TYPE_MATRIX) { return arg->val.m->val[0]; } else { return NADBL; } }
arg_get_double_val
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int arg_may_be_optional(GretlType t) { return t == GRETL_TYPE_SCALAR_REF || t == GRETL_TYPE_SERIES_REF || t == GRETL_TYPE_MATRIX_REF || t == GRETL_TYPE_BUNDLE_REF || t == GRETL_TYPE_STRING_REF || t == GRETL_TYPE_STRINGS_REF || t == GRETL_TYPE_MATRICES_REF || t == GRETL_TYPE_BUNDLES_REF || ...
static int arg_may_be_optional(GretlType t) { return gretl_ref_type(t) || gretl_is_array_type(t) || t == GRETL_TYPE_SERIES || t == GRETL_TYPE_MATRIX || t == GRETL_TYPE_BUNDLE || t == GRETL_TYPE_LIST || t == GRETL_TYPE_STRING; }
arg_may_be_optional
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void arg_tail_strip(char *s) { int i; for (i = strlen(s) - 1; i >= 0 && (((*__ctype_b_loc())[s[i]] & 0x2000) != 0 || s[i] == 41); --i) s[i] = 0; }
static void arg_tail_strip(char *s) { int i, n = strlen(s); for (i = n - 1; i >= 0; i--) { if (isspace(s[i]) || s[i] == ')') { s[i] = '\0'; } else { break; } } }
arg_tail_strip
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *arg_type_xml_string(int t) { switch (t) { case 14: return "scalarref"; case 15: return "seriesref"; case 16: return "matrixref"; case 22: return "bundleref"; case 17: return "stringref"; case 30: return "stringsref"; case 31: return "matricesref"; case 32: r...
static const char *arg_type_xml_string(int t) { if (t == GRETL_TYPE_SCALAR_REF) { return "scalarref"; } else if (t == GRETL_TYPE_SERIES_REF) { return "seriesref"; } else if (t == GRETL_TYPE_MATRIX_REF) { return "matrixref"; } else if (t == GRETL_TYPE_BUNDLE_REF) { return "bundleref"; } else if...
arg_type_xml_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *argname_from_uvar(NODE *n, NODE *r, parser *p) { char *vname; NODE *ret; ret = get_aux_node(p, 60, 0, 2); if (ret && (p->flags & 2) != 0) { if (r && r->t != 85 && r->t != 60) { p->err = 37; return ret; } if (n->t == 55) vname = p->dset->varname[n->vnum]; else vname...
static NODE *argname_from_uvar(NODE *n, NODE *r, parser *p) { NODE *ret = aux_string_node(p); if (ret != NULL && starting(p)) { const char *vname = NULL; if (!null_or_string(r)) { p->err = E_TYPES; return ret; } if (n->t == SERIES) { vname = p->dset->varname[n->vnum]; } els...
argname_from_uvar
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int argval_get_int(fn_param *param, double x, int *err) { char *name; char *v4; int ret; ret = gretl_int_from_double(x, err); if (*err) { name = param->name; v4 = gettext("%s: expected an integer but found %g"); gretl_errmsg_sprintf(v4, name, x); } return ret; }
static int argval_get_int(fn_param *param, double x, int *err) { int ret = gretl_int_from_double(x, err); if (*err) { gretl_errmsg_sprintf(_("%s: expected an integer but found %g"), param->name, x); } return ret; }
argval_get_int
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int *arima_delta_coeffs(int d, int D, int s) { int i; int k; int *c; k = D * s + d; c = (int *)malloc(4LL * k); if (!c) return 0; for (i = 0; i < k; ++i) c[i] = 0; if (d == 1) { *c = 1; } else if (d == 2) { *c = 2; c[1] = -1; } if (D > 0) { ++c[s - 1]; if (d > 0) ...
int *arima_delta_coeffs(int d, int D, int s) { int i, k = d + s * D; int *c = malloc(k * sizeof *c); if (c == NULL) { return NULL; } for (i = 0; i < k; i++) { c[i] = 0; } if (d == 1) { c[0] = 1; } else if (d == 2) { c[0] = 2; c[1] = -1; } if (D > 0) { c[s - 1] += 1; i...
arima_delta_coeffs
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double arima_diff(const double *x, int t, int *delta, int k, int *err) { int i; int p; double dxt; dxt = x[t]; if (fabs(dxt) > 1.797693134862316e308) *err = 34; for (i = 0; i < k && !*err; ++i) { if (delta[i]) { p = t - i - 1; if (p >= 0 && fabs(x[p]) <= 1.797693134862316e308) { ...
static double arima_diff(const double *x, int t, int *delta, int k, int *err) { double dxt = x[t]; int i, p; if (na(dxt)) { *err = E_MISSDATA; } for (i = 0; i < k && !*err; i++) { if (delta[i] != 0) { p = t - i - 1; if (p < 0 || na(x[p])) { dxt = NADBL; *err = E_MISSDATA;...
arima_diff
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double arima_difference_obs(const double *x, int t, int *c, int k) { int i; int s; double dx_0; dx_0 = x[t]; if (fabs(dx_0) <= 1.797693134862316e308) { for (i = 0; i < k; ++i) { if (c[i]) { s = t - i - 1; if (s < 0 || fabs(x[s]) > 1.797693134862316e308) return NAN; ...
static double arima_difference_obs(const double *x, int t, int *c, int k) { double dx = x[t]; if (!na(dx)) { int i, s; for (i = 0; i < k; i++) { if (c[i] != 0) { s = t - i - 1; if (s < 0 || na(x[s])) { dx = NADBL; break; } else { dx -= c[i] * x[s...
arima_difference_obs
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int arinfo_from_xml(xmlNodePtr node, xmlDocPtr doc, MODEL *pmod) { ARINFO *v4; ARINFO *v5; ARINFO *arinfo; int n; int err; xmlNodePtr cur; unsigned long v11; v11 = __readfsqword(0x28u); err = 0; if (gretl_model_add_arinfo(pmod, 0)) return 1; for (cur = node->children; cur && !err; cur = cur->...
static int arinfo_from_xml(xmlNodePtr node, xmlDocPtr doc, MODEL *pmod) { xmlNodePtr cur; int n, err = 0; if (gretl_model_add_arinfo(pmod, 0)) { return 1; } cur = node->xmlChildrenNode; while (cur != NULL && !err) { if (!xmlStrcmp(cur->name, (XUC) "arlist")) { pmod->arinfo->arlist = gretl_x...
arinfo_from_xml
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
MODEL *arma(MODEL *__return_ptr retstr, const int *list, const int *pqlags, DATASET *dset, gretlopt opt, PRN *prn) { char *v6; _BYTE v8[368]; PRN *prna; gretlopt opta; DATASET *dseta; const int *pqlagsa; const int *lista; MODEL *v14; int err; int pdmax; MODEL (*arma_model)(const int *,...
MODEL arma(const int *list, const int *pqlags, DATASET *dset, gretlopt opt, PRN *prn) { MODEL (*arma_model)(const int *, const int *, DATASET *, gretlopt, PRN *); MODEL (*arma_x12_model)(const int *, const int *, const DATASET *, int, gretlopt, PRN *); MODEL armod; int err =...
arma
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int arma_AR_lags(const MODEL *pmod) { int p; const char *pmask; pmask = (const char *)gretl_model_get_data(pmod, "pmask"); p = arma_model_nonseasonal_AR_order(pmod); return arma_included_lags(p, pmask); }
static int arma_AR_lags(const MODEL *pmod) { const char *pmask = gretl_model_get_data(pmod, "pmask"); int p = arma_model_nonseasonal_AR_order(pmod); return arma_included_lags(p, pmask); }
arma_AR_lags
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int arma_MA_lags(const MODEL *pmod) { int q; const char *qmask; qmask = (const char *)gretl_model_get_data(pmod, "qmask"); q = arma_model_nonseasonal_MA_order(pmod); return arma_included_lags(q, qmask); }
static int arma_MA_lags(const MODEL *pmod) { const char *qmask = gretl_model_get_data(pmod, "qmask"); int q = arma_model_nonseasonal_MA_order(pmod); return arma_included_lags(q, qmask); }
arma_MA_lags
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int arma_depvar_pos(const MODEL *pmod) { int v1; int v2; int sep1; int sep2; int seasonal; int arima; int i; int dvpos; sep1 = 0; sep2 = 0; seasonal = 0; arima = 0; for (i = 1; i < *pmod->list; ++i) { if (pmod->list[i] == -100) { if (sep1) sep2 = i; else sep1 =...
static int arma_depvar_pos(const MODEL *pmod) { int sep1 = 0, sep2 = 0; int seasonal = 0; int arima = 0; int i, dvpos; for (i = 1; i < pmod->list[0]; i++) { if (pmod->list[i] == LISTSEP) { if (sep1 == 0) { sep1 = i; } else { sep2 = i; } } } if (sep2) { dvpos...
arma_depvar_pos
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void arma_extra_info(const MODEL *pmod, PRN *prn) { char *v2; char *v3; char *v4; char *v5; char *v6; char *v7; char *v8; char *v9; char *v10; char acode; int asnum; acode = gretl_model_get_int(pmod, "arma_flags"); if ((acode & 1) != 0) { if (gretl_x12_is_x13()) v2 = gettext("Estima...
static void arma_extra_info(const MODEL *pmod, PRN *prn) { int acode = gretl_model_get_int(pmod, "arma_flags"); if (acode & ARMA_X12A) { if (gretl_x12_is_x13()) { pputs(prn, _("Estimated using X-13-ARIMA")); } else { pputs(prn, _("Estimated using X-12-ARIMA")); } pputs(prn, " ("); p...
arma_extra_info
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int arma_fcast(Forecast *fc, MODEL *pmod, const DATASET *dset) { int v4; int v5; int v6; int v7; double *val; double *v9; double v10; double sigma; int px; int npsi; int fcstart; int ar_smax; int ma_smax; int regarma; int i; int t; int err; int miss; int j; int p; int q; int ...
static int arma_fcast(Forecast *fc, MODEL *pmod, const DATASET *dset) { double *psi = NULL; gretl_vector *phi = NULL; gretl_vector *theta = NULL; double *phi0 = NULL; double *Xb = NULL; const double *beta; const double *y; double xval, yval, vl; double mu = NADBL; int xvars, yno; const int *xlist ...
arma_fcast
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int arma_included_lags(int k, const char *mask) { int i; int nk; nk = k; if (mask) { nk = 0; for (i = 0; i < k; ++i) { if (mask[i] == 49) ++nk; } } return nk; }
static int arma_included_lags(int k, const char *mask) { int i, nk = k; if (mask != NULL) { nk = 0; for (i = 0; i < k; i++) { if (mask[i] == '1') nk++; } } return nk; }
arma_included_lags
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int arma_model_AR_MA_coeffs(const MODEL *pmod, gretl_vector **phi_star, gretl_vector **theta_star, gretlopt opt) { unsigned long v4; int v5; double v6; long v7; int v8; double v9; short opta; int err; int i; int ia; int j; int ja; int k; int ka; int p; int q; ...
int arma_model_AR_MA_coeffs(const MODEL *pmod, gretl_vector **phi_star, gretl_vector **theta_star, gretlopt opt) { gretl_vector *ac = NULL; gretl_vector *mc = NULL; int *ainfo; int err = 0; if (pmod->ci != ARMA) { err = E_DATA; } else if ((ainfo = gretl_model_get_data(pmod, ...
arma_model_AR_MA_coeffs
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int arma_model_get_n_arma_coeffs(const MODEL *pmod) { int npq; int npqa; int npqb; int npqc; npq = 0; if (pmod->ci == 8) { npqa = arma_AR_lags(pmod); npqb = arma_MA_lags(pmod) + npqa; npqc = gretl_model_get_int(pmod, "arma_P") + npqb; return gretl_model_get_int(pmod, "arma_Q") + npqc; } ...
int arma_model_get_n_arma_coeffs(const MODEL *pmod) { int npq = 0; if (pmod->ci == ARMA) { npq += arma_AR_lags(pmod); npq += arma_MA_lags(pmod); npq += gretl_model_get_int(pmod, "arma_P"); npq += gretl_model_get_int(pmod, "arma_Q"); } return npq; }
arma_model_get_n_arma_coeffs
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const double *arma_model_get_x_coeffs(const MODEL *pmod) { const double *xc; const double *xca; const double *xcb; const double *xcc; const double *xcd; xc = 0; if (pmod->ci == 8 && gretl_model_get_int(pmod, "armax")) { xca = &pmod->coeff[pmod->ifc]; xcb = &xca[arma_AR_lags(pmod)]; xcc = &xcb...
const double *arma_model_get_x_coeffs(const MODEL *pmod) { const double *xc = NULL; if (pmod->ci == ARMA && gretl_model_get_int(pmod, "armax")) { xc = pmod->coeff; xc += pmod->ifc; xc += arma_AR_lags(pmod); xc += arma_MA_lags(pmod); xc += gretl_model_get_int(pmod, "arma_P"); xc += gretl_mod...
arma_model_get_x_coeffs
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int arma_model_max_AR_lag(const MODEL *pmod) { int pmax; int p; int P; int s; int d; pmax = 0; if (pmod->ci == 8) { p = arma_model_nonseasonal_AR_order(pmod); P = gretl_model_get_int(pmod, "arma_P"); s = gretl_model_get_int(pmod, "arma_pd"); d = gretl_model_get_int(pmod, "arima_d"); r...
int arma_model_max_AR_lag(const MODEL *pmod) { int pmax = 0; if (pmod->ci == ARMA) { int p = arma_model_nonseasonal_AR_order(pmod); int P = gretl_model_get_int(pmod, "arma_P"); int s = gretl_model_get_int(pmod, "arma_pd"); int d = gretl_model_get_int(pmod, "arima_d"); int D = gretl_model_get_in...
arma_model_max_AR_lag
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int arma_model_max_MA_lag(const MODEL *pmod) { int qmax; int q; int Q; qmax = 0; if (pmod->ci == 8) { q = arma_model_nonseasonal_MA_order(pmod); Q = gretl_model_get_int(pmod, "arma_Q"); if (Q) return gretl_model_get_int(pmod, "arma_pd") * Q + q; else return q; } return qmax; }
int arma_model_max_MA_lag(const MODEL *pmod) { int qmax = 0; if (pmod->ci == ARMA) { int q, Q, pd; q = arma_model_nonseasonal_MA_order(pmod); Q = gretl_model_get_int(pmod, "arma_Q"); if (Q == 0) { qmax = q; } else { pd = gretl_model_get_int(pmod, "arma_pd"); qmax = Q * pd + ...
arma_model_max_MA_lag
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int arma_model_nonseasonal_AR_order(const MODEL *pmod) { int p; p = 0; if (pmod->ci == 8) return pmod->list[1]; return p; }
int arma_model_nonseasonal_AR_order(const MODEL *pmod) { int p = 0; if (pmod->ci == ARMA) { p = pmod->list[1]; } return p; }
arma_model_nonseasonal_AR_order
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int arma_model_nonseasonal_MA_order(const MODEL *pmod) { int q; q = 0; if (pmod->ci == 8) { if (gretl_is_arima_model(pmod)) return pmod->list[3]; else return pmod->list[2]; } return q; }
int arma_model_nonseasonal_MA_order(const MODEL *pmod) { int q = 0; if (pmod->ci == ARMA) { if (gretl_is_arima_model(pmod)) { q = pmod->list[3]; } else { q = pmod->list[2]; } } return q; }
arma_model_nonseasonal_MA_order
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *arma_model_spectrum(gretl_matrix *phi, gretl_matrix *theta, double s2, int T, int *err) { int rows; int v7; int v8; long v9; double v10; double v11; double v12; int i; int t; int nar; int nma; int n; double nre_t; double nim_t; double dre_t; ...
static gretl_matrix *arma_model_spectrum(gretl_matrix *phi, gretl_matrix *theta, double s2, int T, int *err) { gretl_vector *ret = NULL; double num, den, nre_t, nim_t, dre_t, dim_t, xt; double c, s; double ar, ma; double scale; int nar, nma; int i, n, t; ret = g...
arma_model_spectrum
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int arma_spectrum_plot(MODEL *pmod, const DATASET *dset, gretlopt opt) { int pd; char *v5; char *v6; char *v7; char *v8; double v9; double v10; int err; int i; int grid; gretl_matrix *pdata; FILE *fp; double scale; double pRe; double pIm; double px; unsigned long v20; v20 = __readfs...
int arma_spectrum_plot(MODEL *pmod, const DATASET *dset, gretlopt opt) { gretl_matrix *pdata = NULL; FILE *fp; int err = 0; pdata = arma_spectrum_plot_data(pmod, dset, &err); if (err) { return err; } fp = open_plot_input_file(PLOT_PERIODOGRAM, 0, &err); if (!err) { double px, pRe, pIm, scale ...
arma_spectrum_plot
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *arma_spectrum_plot_data(const MODEL *pmod, const DATASET *dset, int *err) { int i; _BYTE grid[12]; gretl_matrix *theta; gretl_matrix *pdata; gretl_matrix *pergm; gretl_matrix *y; gretl_matrix *spec; double s2; unsigned long v13; v13 = __readfsqwor...
gretl_matrix *arma_spectrum_plot_data(const MODEL *pmod, const DATASET *dset, int *err) { gretl_matrix *pdata = NULL; gretl_matrix *phi = NULL; gretl_matrix *theta = NULL; gretl_matrix *spec = NULL; gretl_matrix *pergm = NULL; gretl_matrix *y = NULL; int i, T = pmod->...
arma_spectrum_plot_data
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double arma_variance(const double *phi, int p, const double *theta, int q, double *psi, int npsi, int l) { int i; int j; if (l == 1) { *psi = 1.0; for (j = 1; j < npsi; ++j) { psi[j] = 0.0; for (i = 1; i <= j; ++i) { if (i <= p) psi[j] = psi[j - i] * phi...
static double arma_variance(const double *phi, int p, const double *theta, int q, double *psi, int npsi, int l) { static double sspsi; DPRINTF(("arma_variance: p=%d, q=%d, npsi=%d, l=%d\n", p, q, npsi, l)); if (l == 1) { int i, j; psi[0] = 1.0; for (j = 1; j < npsi; j++...
arma_variance
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *arma_vcv_string() { if (state->arma_vcv == 1) return avc_strs[0]; if (state->arma_vcv == 3) return avc_strs[1]; return "unset"; }
static const char *arma_vcv_string(void) { if (state->arma_vcv == ML_HESSIAN) { return avc_strs[0]; } else if (state->arma_vcv == ML_OP) { return avc_strs[1]; } else { return "unset"; } }
arma_vcv_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int array_allocate_storage(gretl_array *A) { int i; int err; err = 0; A->data = (void **)malloc(8LL * A->n); if (!A->data) return 12; for (i = 0; i < A->n; ++i) A->data[i] = 0; return err; }
static int array_allocate_storage(gretl_array *A) { int i, err = 0; A->data = malloc(A->n * sizeof *A->data); if (A->data == NULL) { err = E_ALLOC; } else { for (i = 0; i < A->n; i++) { A->data[i] = NULL; } } return err; }
array_allocate_storage
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int array_arch_test(const double *u, int n, int order, gretlopt opt, PRN *prn) { return real_arch_test(u, n, order, 0, opt, prn); }
int array_arch_test(const double *u, int n, int order, gretlopt opt, PRN *prn) { return real_arch_test(u, n, order, NULL, opt, prn); }
array_arch_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *array_element_node(gretl_array *a, int i, parser *p) { char *v3; char *v4; GretlType type; NODE *ret; void *data; unsigned long v10; v10 = __readfsqword(0x28u); ret = 0; type = GRETL_TYPE_NONE; data = gretl_array_get_element(a, i - 1, &type, &p->err); if (p->err == 17) { v3 = gettext("I...
static NODE *array_element_node(gretl_array *a, int i, parser *p) { NODE *ret = NULL; GretlType type = 0; void *data; data = gretl_array_get_element(a, i - 1, &type, &p->err); if (p->err == E_INVARG) { gretl_errmsg_sprintf(_("Index value %d is out of bounds"), i); } if (!p->err) { if (type == G...
array_element_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int array_extend_content(gretl_array *A, int plus) { int i; int err; int n; void **data; if (!plus) return 0; if (plus < 0) return 2; n = A->n + plus; err = 0; data = (void **)realloc(A->data, 8LL * n); if (!data) return 12; for (i = A->n; i < n - 1; ++i) data[i] = 0; A->data = ...
static int array_extend_content(gretl_array *A, int plus) { if (plus == 0) { return 0; } else if (plus < 0) { return E_DATA; } else { void **data; int n = A->n + plus; int i, err = 0; data = realloc(A->data, n * sizeof *A->data); if (data == NULL) { err = E_ALLOC; } else { ...
array_extend_content
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void array_free_callback(void *p) { gretl_array_destroy((gretl_array *)p); }
static void array_free_callback(void *p) { gretl_array_destroy((gretl_array *)p); }
array_free_callback
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *array_func_node(NODE *l, NODE *r, int f, parser *p) { GretlType t; int space; int vcat; NODE *ret; t = gretl_array_get_type(l->v.a); ret = 0; if (f == 517) { if (t == GRETL_TYPE_STRINGS && r->t == 60) { ret = get_aux_node(p, 57, 0, 2); if (!p->err) ret->v.str = (char *)gretl...
static NODE *array_func_node(NODE *l, NODE *r, int f, parser *p) { GretlType t = gretl_array_get_type(l->v.a); NODE *ret = NULL; if (f == F_INSTRINGS) { if (t != GRETL_TYPE_STRINGS || r->t != STR) { p->err = E_TYPES; } else { ret = aux_matrix_node(p); if (!p->err) { ret->v.m = g...
array_func_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *array_last_node(parser *p) { NODE *ret; ret = 0; if ((p->flags & 2) != 0) { ret = get_aux_node(p, 54, 0, 0); if (!p->err) ret->v.str = (char *)0x41DFFFFFFFC00000LL; } return ret; }
static NODE *array_last_node(parser *p) { NODE *ret = NULL; if (starting(p)) { ret = aux_scalar_node(p); if (!p->err) { ret->v.xval = IDX_TBD; } } return ret; }
array_last_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *array_op(NODE *l, NODE *r, int f, parser *p) { NODE *ret; gretl_array *al_0; gretl_array *ar; ret = get_aux_node(p, 59, 0, 2); if (ret) { if ((p->flags & 2) != 0) { al_0 = l->v.a; ar = r->v.a; if (!p->err) { switch (f) { case 7: ret->v.str = (char *)gretl...
static NODE *array_op(NODE *l, NODE *r, int f, parser *p) { NODE *ret = aux_array_node(p); if (ret != NULL && starting(p)) { gretl_array *al = l->v.a; gretl_array *ar = r->v.a; if (!p->err) { if (f == B_ADD) { ret->v.a = gretl_arrays_join(al, ar, &p->err); } else if (f == B_OR) { ...
array_op
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int array_ref_type(GretlType type) { return type == GRETL_TYPE_STRINGS_REF || type == GRETL_TYPE_MATRICES_REF || type == GRETL_TYPE_BUNDLES_REF || type == GRETL_TYPE_LISTS_REF; }
static int array_ref_type(GretlType type) { return type == GRETL_TYPE_STRINGS_REF || type == GRETL_TYPE_MATRICES_REF || type == GRETL_TYPE_BUNDLES_REF || type == GRETL_TYPE_LISTS_REF; }
array_ref_type
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *array_sort_node(NODE *n, int f, parser *p) { NODE *ret; ret = 0; if (gretl_array_get_type(n->v.a) == GRETL_TYPE_STRINGS) { ret = get_aux_node(p, 59, 0, 2); if (!p->err) ret->v.str = (char *)gretl_strings_sort(n->v.a, f == 299, &p->err); } else { p->err = 37; } return ret; }
static NODE *array_sort_node(NODE *n, int f, parser *p) { NODE *ret = NULL; if (gretl_array_get_type(n->v.a) != GRETL_TYPE_STRINGS) { p->err = E_TYPES; } else { ret = aux_array_node(p); if (!p->err) { ret->v.a = gretl_strings_sort(n->v.a, f == F_DSORT, &p->err); } } return ret; }
array_sort_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *array_str_calc(NODE *l, NODE *r, int op, parser *p) { int i; int n; NODE *ret; gretl_array *a; const char *si_0; ret = get_aux_node(p, 57, 0, 2); if (ret && (p->flags & 2) != 0) { a = l->v.a; if (gretl_array_get_type(a) == GRETL_TYPE_STRINGS) { n = gretl_array_get_length(a); ret...
static NODE *array_str_calc(NODE *l, NODE *r, int op, parser *p) { NODE *ret = aux_matrix_node(p); if (ret != NULL && starting(p)) { gretl_array *a = l->v.a; if (gretl_array_get_type(a) != GRETL_TYPE_STRINGS) { p->err = E_TYPES; } else { int i, n = gretl_array_get_length(a); const ch...
array_str_calc
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int *array_subspec_list(NODE *l, NODE *r, parser *p) { int len; int lena; int *list; msel *spec; spec = (msel *)r->v.str; list = 0; if (spec[1].range[0]) { p->err = 17; } else { switch (l->t) { case ';': len = gretl_array_get_length(l->v.a); return mspec_make_list(spec->range[1]...
static int *array_subspec_list(NODE *l, NODE *r, parser *p) { matrix_subspec *spec = r->v.mspec; int *list = NULL; if (spec->rtype != SEL_NULL) { p->err = E_INVARG; } else { int len; if (l->t == ARRAY) { len = gretl_array_get_length(l->v.a); } else if (l->t == STR) { len = g_utf8_...
array_subspec_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *array_subspec_node(gretl_array *a, int *list, parser *p) { NODE *ret; ret = get_aux_node(p, 59, 0, 2); if (ret) ret->v.str = (char *)gretl_array_copy_subspec(a, list, &p->err); return ret; }
static NODE *array_subspec_node(gretl_array *a, int *list, parser *p) { NODE *ret = aux_array_node(p); if (ret != NULL) { ret->v.a = gretl_array_copy_subspec(a, list, &p->err); } return ret; }
array_subspec_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int ascii_plot(const int *list, const DATASET *dset, gretlopt opt, PRN *prn) { _BOOL4 v5; char *v6; int v7; double v8; double v9; char *v10; char *v11; int v13; int v14; int v15; int v16; short opta; int i; int ia; int ix; int ixa; int iy; int iya; int iz; int t; int ta; int ...
static int ascii_plot(const int *list, const DATASET *dset, gretlopt opt, PRN *prn) { int i, nc2, vy, vz, cntrline; int ix = 0, iy = 0, iz = 0, n = 0; int ncols = 70; int t1 = dset->t1; int t2 = dset->t2; char word[32], px[132]; char s1[10], s2[10]; double xmin, xmax, xrange, ymin,...
ascii_plot
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int ascii_scatter(const int *list, const DATASET *dset, gretlopt opt, PRN *prn) { int v4; const char *v6; int T; int Ta; int vx; int vy2; int err; int vy1; double *x; double *y2; double *y1; if (dset) v4 = dset->t2 - dset->t1 + 1; else v4 = 0; T = v4; vy2 = -1; ...
static int ascii_scatter(const int *list, const DATASET *dset, gretlopt opt, PRN *prn) { int T = sample_size(dset); int vx, vy1, vy2 = -1; double *x = NULL; double *y1, *y2 = NULL; int err = 0; if (list[0] > 2) { x = malloc(3 * T * sizeof *x); } else { x = malloc(2 * T * ...
ascii_scatter
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *asciify_utf8_varname(char *s) { char *tmp; tmp = (char *)malloc(0x20u); if (tmp) { u8_to_ascii_convert(tmp, s, 31, 0); strcpy(s, tmp); free(tmp); } return s; }
char *asciify_utf8_varname(char *s) { char *tmp = malloc(32); if (tmp != NULL) { u8_to_ascii_convert(tmp, s, 31, 0); strcpy(s, tmp); free(tmp); } return s; }
asciify_utf8_varname
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *assemble_matrix(GPtrArray *a, int nnodes, parser *p) { int v4; int v5; int i; int ia; int j; int k; int ka; gretl_matrix *m; double **Z; NODE *n; NODE *na; NODE *nb; int *dumlist; const int *list; DATASET dumset; unsigned long v20; v20 = __readfsqword(0x28u); m = 0; ...
static gretl_matrix *assemble_matrix(GPtrArray *a, int nnodes, parser *p) { NODE *n; gretl_matrix *m = NULL; const int *list; double **Z = NULL; int *dumlist; int i, j, k = 0; #if EDEBUG fprintf(stderr, "assemble_matrix...\n"); #endif if (nnodes == 1 && get_matrix_mask() == NULL) { n = g_ptr_arra...
assemble_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int assign_null_to_array(parser *p) { int err; gretl_array *a; unsigned long v4; v4 = __readfsqword(0x28u); err = 0; if (p->lh.t == 59) { a = (gretl_array *)gen_get_lhs_var(p, GRETL_TYPE_ARRAY); gretl_array_void_content(a); } else { a = gretl_array_new(p->lh.gtype, 0, &err); if (!err) ...
static int assign_null_to_array(parser *p) { gretl_array *a; int err = 0; if (p->lh.t == ARRAY) { a = gen_get_lhs_var(p, GRETL_TYPE_ARRAY); gretl_array_void_content(a); } else { a = gretl_array_new(p->lh.gtype, 0, &err); if (!err) { err = gen_add_uvar(p, p->lh.gtype, a); } } retu...
assign_null_to_array
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int assign_null_to_bundle(parser *p) { int err; gretl_bundle *ba; gretl_bundle *b; err = 0; if (p->lh.t == 58) { ba = (gretl_bundle *)gen_get_lhs_var(p, GRETL_TYPE_BUNDLE); gretl_bundle_void_content(ba); } else { b = gretl_bundle_new(); if (b) return gen_add_uvar(p, GRETL_TYPE_BUNDLE,...
static int assign_null_to_bundle(parser *p) { gretl_bundle *b; int err = 0; if (p->lh.t == BUNDLE) { b = gen_get_lhs_var(p, GRETL_TYPE_BUNDLE); gretl_bundle_void_content(b); } else { b = gretl_bundle_new(); if (b == NULL) { err = E_ALLOC; } else { err = gen_add_uvar(p, GRETL_TYP...
assign_null_to_bundle
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int assign_scalar_to_submatrix(gretl_matrix *M, const gretl_matrix *S, double x, matrix_subspec *spec) { complex_double *v5; double real; double imag; complex_double *v8; int v9; int v10; int v11; int v12; complex_double *v13; int i; int ia; int err; int j; int...
int assign_scalar_to_submatrix(gretl_matrix *M, const gretl_matrix *S, double x, matrix_subspec *spec) { double complex z = NADBL; int mr = M->rows; int mc = M->cols; int i, err = 0; if (spec == NULL) { fprintf(stderr, "matrix_replace_submatrix: spec is NULL!\n"); retur...
assign_scalar_to_submatrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *assign_to_matrix(parser *p) { int v2; int free_tmp; gretl_matrix *m; gretl_matrix *tmp; double x; unsigned long v7; v7 = __readfsqword(0x28u); m = 0; tmp = 0; free_tmp = 1; if (p->ret->t == 55) { tmp = series_to_matrix(p->ret->v.xvec, p); if (p->err) return 0; } if...
static gretl_matrix *assign_to_matrix(parser *p) { gretl_matrix *m = NULL; gretl_matrix *tmp = NULL; int free_tmp = 1; double x; if (p->ret->t == SERIES) { tmp = series_to_matrix(p->ret->v.xvec, p); if (p->err) { return NULL; } } if (LHS_matrix_reusable(p, &m, tmp)) { #if EDEBUG ...
assign_to_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *assign_to_matrix_mod(gretl_matrix *m1, parser *p) { _BOOL4 v2; gretl_matrix *m2; double x; gretl_matrix *tmp; unsigned long v7; v7 = __readfsqword(0x28u); m2 = 0; if (!m1) p->err = 2; v2 = p->op == 36 || p->op == 37; if (!p->err) { if (p->op == 34) { p->err = dot_assign_...
static gretl_matrix *assign_to_matrix_mod(gretl_matrix *m1, parser *p) { gretl_matrix *m2 = NULL; int mcat; if (m1 == NULL) { p->err = E_DATA; } mcat = (p->op == B_HCAT || p->op == B_VCAT); if (!p->err) { if (p->op == B_DOTASN) { p->err = dot_assign_to_matrix(m1, p); m2 = m1; } el...
assign_to_matrix_mod
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void assignment_type_errmsg(int targ, int rhs, int op) { char *opstr; const char *v4; char *v5; const char *rhstr; rhstr = typestr(rhs); if (*rhstr == 63) rhstr = getsymb(rhs); opstr = get_opstr(op); v4 = typestr(targ); v5 = gettext("Incompatible types in assignment: %s %s %s"); gretl_errmsg_sp...
static void assignment_type_errmsg(int targ, int rhs, int op) { const char *rhstr = typestr(rhs); if (*rhstr == '?') { rhstr = getsymb(rhs); } gretl_errmsg_sprintf(_("Incompatible types in assignment: " "%s %s %s"), typestr(targ), get_opstr(op), rhstr); }
assignment_type_errmsg
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *atof_node(NODE *l, parser *p) { double v2; double *v3; int t; int v; char *endptr; NODE *ret; const char *st; unsigned long v10; v10 = __readfsqword(0x28u); ret = 0; endptr = 0; *__errno_location() = 0; if (l->t == 60) { ret = get_aux_node(p, 54, 0, 0); if (ret && (p->flags & 2)...
static NODE *atof_node(NODE *l, parser *p) { NODE *ret = NULL; char *endptr = NULL; errno = 0; if (l->t == STR) { ret = aux_scalar_node(p); if (ret != NULL && starting(p)) { gretl_push_c_numeric_locale(); ret->v.xval = strtod(l->v.str, &endptr); if (errno || endptr == l->v.str) { ...
atof_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void attach_child(NODE *parent, NODE *child, int f, int np, int i, parser *p) { char *v6; const char *v7; if (!p->err) { if (np > 0 && i == np) { v6 = gettext("too many arguments"); v7 = getsymb_full(f, p); gretl_errmsg_sprintf("%s: %s", v7, v6); p->err = 15; } else if (child->t =...
static void attach_child(NODE *parent, NODE *child, int f, int np, int i, parser *p) { if (p->err) { return; } #if SDEBUG fprintf(stderr, "attach_child: np=%d, i=%d, type '%s'\n", np, i, getsymb(child->t)); #endif if (np > 0 && i == np) { gretl_errmsg_sprintf("%s: %s...
attach_child
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int attach_loop_to_function(void *ptr) { int err; ufunc *u; fncall *call; call = current_function_call(); u = 0; err = 0; if (call && (call->flags & 1) == 0) u = call->fun; if (!u) return 2; if (u->lines[u->line_idx].loop) return 2; u->lines[u->line_idx].loop = (LOOPSET *)ptr; return ...
int attach_loop_to_function(void *ptr) { fncall *call = current_function_call(); ufunc *u = NULL; int err = 0; if (call != NULL && !is_recursing(call)) { u = call->fun; } if (u == NULL) { return E_DATA; } else { if (u->lines[u->line_idx].loop != NULL) { err = E_DATA; } else { ...
attach_loop_to_function
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int attach_model_params_from_xml(xmlNodePtr node, xmlDocPtr doc, MODEL *pmod) { int np; int err; int slop; char **S; unsigned long v9; v9 = __readfsqword(0x28u); slop = pmod->ci == 47; np = 0; err = 0; S = gretl_xml_get_strings_array(node, doc, &np, slop, &err); if (!err) { pmod->params = S; ...
static int attach_model_params_from_xml(xmlNodePtr node, xmlDocPtr doc, MODEL *pmod) { char **S; int slop = (pmod->ci == GARCH); int np = 0; int err = 0; S = gretl_xml_get_strings_array(node, doc, &np, slop, &err); if (!err) { pmod->params = S; pmod->nparams...
attach_model_params_from_xml
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int attach_model_tests_from_xml(MODEL *pmod, xmlNodePtr node) { int err; int got; int gota; int gotb; int gotc; int gotd; int gote; int gotf; int gotg; _xmlNode *cur; ModelTest test; unsigned long v14; v14 = __readfsqword(0x28u); cur = node->children; err = 0; while (cur && !err) { ...
int attach_model_tests_from_xml(MODEL *pmod, xmlNodePtr node) { ModelTest test; xmlNodePtr cur = node->xmlChildrenNode; int got, err = 0; while (cur != NULL && !err) { gretl_test_init(&test, 0); got = 0; got += gretl_xml_get_prop_as_int(cur, "type", &test.type); got += gretl_xml_get_prop_as_uch...
attach_model_tests_from_xml
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int attach_subsample_to_model(MODEL *pmod, const DATASET *dset) { int err; unsigned long v4; v4 = __readfsqword(0x28u); err = 0; if (fullset) { sync_datainfo_members(dset); if (pmod->submask) free_subsample_mask(pmod->submask); pmod->submask = copy_subsample_mask(dset->submask, &err); } ...
int attach_subsample_to_model(MODEL *pmod, const DATASET *dset) { int err = 0; #if SUBDEBUG fprintf(stderr, "attach_subsample_to_model: fullset = %p\n", (void *)fullset); #endif if (fullset != NULL) { sync_datainfo_members(dset); if (pmod->submask != NULL) { free_subsample_mask(pmod->submask); ...
attach_subsample_to_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int attach_ufunc_to_package(ufunc *fun, fnpkg *pkg) { int err; int n; int na; ufunc **ufs; ufunc **ufsa; err = 0; if ((fun->flags & 1) != 0) { n = pkg->n_priv; ufs = (ufunc **)realloc(pkg->priv, 8LL * (n + 1)); if (ufs) { pkg->priv = ufs; pkg->priv[n] = fun; ++pkg->n_priv; ...
static int attach_ufunc_to_package(ufunc *fun, fnpkg *pkg) { ufunc **ufs; int n, err = 0; if (function_is_private(fun)) { n = pkg->n_priv; ufs = realloc(pkg->priv, (n + 1) * sizeof *ufs); if (ufs == NULL) { err = E_ALLOC; } else { pkg->priv = ufs; pkg->priv[n] = fun; pkg->...
attach_ufunc_to_package
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *augment_array_node(NODE *l, NODE *r, parser *p) { GretlType lt; NODE *ret; ret = get_aux_node(p, 59, 0, 2); if (ret && (p->flags & 2) != 0) { lt = gretl_array_get_content_type(l->v.a); if (gretl_type_from_gen_type(r->t) == lt) { ret->v.str = (char *)gretl_array_copy(l->v.a, &p->err); ...
static NODE *augment_array_node(NODE *l, NODE *r, parser *p) { NODE *ret = aux_array_node(p); if (ret != NULL && starting(p)) { GretlType lt = gretl_array_get_content_type(l->v.a); GretlType rt = gretl_type_from_gen_type(r->t); if (rt == lt) { ret->v.a = gretl_array_copy(l->v.a, &p->err); ...
augment_array_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int *augment_regression_list(const int *orig, int aux, DATASET *dset, int *err) { int listlen; int cnum; int i; int ia; int k; int trv; int j; int cpos; int vi; int vnew; int vnewa; int vnewb; int vj; int *list; cnum = 0; if (aux == 7) { cpos = gretl_lis...
int *augment_regression_list(const int *orig, int aux, DATASET *dset, int *err) { int *list; int listlen; int cnum = 0; int i, k; if (aux == AUX_WHITE) { int cpos = gretl_list_const_pos(orig, 2, dset); int nt, trv = orig[0] - 1; if (cpos > 0) { trv--; cnu...
augment_regression_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int augment_vecm_restriction(gretl_restriction *rset, char letter) { double v3; int err; int i; int n; const gretl_matrix *R0; const gretl_matrix *q0; gretl_matrix *q2; GRETL_VAR *vecm; gretl_matrix *R2; unsigned long v12; v12 = __readfsqword(0x28u); vecm = (GRETL_VAR *)rset->obj; R2 = 0; q...
static int augment_vecm_restriction(gretl_restriction *rset, char letter) { GRETL_VAR *vecm = rset->obj; const gretl_matrix *R0, *q0; gretl_matrix *R2 = NULL, *q2 = NULL; int err = 0; if (letter == 'b') { R0 = gretl_VECM_R_matrix(vecm); q0 = gretl_VECM_q_matrix(vecm); } else { R0 = gretl_VECM_R...
augment_vecm_restriction
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int auto_acf_order(int T) { int p; p = (int)(log10((double)T) * 10.0); if (p > T / 5) return T / 5; return p; }
int auto_acf_order(int T) { int p = 10 * log10(T); if (p > T / 5) { p = T / 5; } return p; }
auto_acf_order
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int auto_drop_var(const MODEL *pmod, int *list, const int *cands, DATASET *dset, double alpha_max, int starting, gretlopt opt, PRN *prn) { int ifc; char *v9; char *v10; short opta; int imax; int i; int k; int ret; double pv; double tmin; double tstat; char pname[40]; unsigned...
static int auto_drop_var(const MODEL *pmod, int *list, const int *cands, DATASET *dset, double alpha_max, int starting, gretlopt opt, PRN *prn) { double tstat, pv = 0.0, tmin = 4.0; int imin, imax = pmod->ncoeff; int i, k = -1; int ret = 0; if ((pmod->ci == L...
auto_drop_var
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int auto_dummify_list(int **plist, DATASET *dset) { int err; int i; int vi; int *list; int *dlist; int *orig; unsigned long v9; v9 = __readfsqword(0x28u); orig = *plist; dlist = 0; err = 0; list = gretl_null_list(); for (i = 1; i <= *orig && !err; ++i) { vi = orig[i]; if (series_is_co...
int auto_dummify_list(int **plist, DATASET *dset) { int *orig = *plist; int *list = NULL; int *dlist = NULL; int i, vi; int err = 0; list = gretl_null_list(); for (i = 1; i <= orig[0] && !err; i++) { vi = orig[i]; if (series_is_coded(dset, vi)) { dlist = gretl_list_new(1); dlist[1] ...
auto_dummify_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int auto_keys_check(const DATASET *l_dset, const DATASET *r_dset, gretlopt opt, const char *tkeyfmt, obskey *auto_keys, int *n_keys, int *do_tsjoin) { short opta; int rpd; int err; int lpd; opta = opt; lpd = l_dset->pd; rpd = 0; if (l_dset && (l_dset->structure =...
static int auto_keys_check(const DATASET *l_dset, const DATASET *r_dset, gretlopt opt, const char *tkeyfmt, obskey *auto_keys, int *n_keys, int *do_tsjoin) { int lpd = l_dset->pd; int rpd = 0; int err = 0; if (!dataset_is_time_series(l_dset)) { err = E...
auto_keys_check
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int auto_mpi_ok() { return 0; }
int auto_mpi_ok(void) { int ret = 0; #ifdef HAVE_MPI if (gretl_mpi_initialized()) { ; } else if (gretl_n_processors() < 2) { ; } else { ret = check_for_mpiexec(); } #endif return ret; }
auto_mpi_ok
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
MODEL *auto_omit(MODEL *__return_ptr retstr, MODEL *orig, const int *omitlist, DATASET *dset, gretlopt opt, PRN *prn) { char *v6; MODEL v8; PRN *prna; gretlopt opta; DATASET *dseta; const int *omitlista; MODEL *origa; MODEL *v14; int err; int allgone; int i; int drop; gretlopt...
static MODEL auto_omit(MODEL *orig, const int *omitlist, DATASET *dset, gretlopt opt, PRN *prn) { MODEL omod; double amax; int *tmplist; int allgone = 0; int i, drop; int err = 0; gretl_model_init(&omod, dset); tmplist = gretl_list_copy(orig->list); if (tmplist == NULL) { ...
auto_omit
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int auto_spectrum_order(int T, gretlopt opt) { double v2; double v3; int v4; double m1; double m2; if ((opt & 0x4000) != 0) { v2 = sqrt((double)T); return (int)(v2 + v2); } else { m1 = floor((double)T / 2.0); v3 = pow((double)T, 0.6); m2 = floor(v3); if (m2 <= m1) v4 = (int)...
int auto_spectrum_order(int T, gretlopt opt) { int m; if (opt & OPT_O) { m = (int)2.0 * sqrt((double)T); } else { double m1 = floor((double)T / 2.0); double m2 = floor(pow((double)T, 0.6)); m = (m1 < m2) ? m1 : m2; m--; } return m; }
auto_spectrum_order
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int autocorr_test(MODEL *pmod, int order, DATASET *dset, gretlopt opt, PRN *prn) { if (pmod->ci == 134) return ivreg_autocorr_test(pmod, order, dset, opt, prn); if (pmod->ci == 8) return lb_autocorr_test(pmod, order, opt, prn); if (gretl_is_regular_panel_model(pmod)) { if (dset->pd >...
int autocorr_test(MODEL *pmod, int order, DATASET *dset, gretlopt opt, PRN *prn) { if (pmod->ci == IVREG) { return ivreg_autocorr_test(pmod, order, dset, opt, prn); } else if (pmod->ci == ARMA) { return lb_autocorr_test(pmod, order, opt, prn); } else if (gretl_is_regular_panel_model(pmod...
autocorr_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void autoreg_error(parser *p, int t) { fprintf(stderr, "*** autoreg error at obs t = %d (t1 = %d):\n", t, p->dset->t1); if (!p->ret || p->ret->t == 55) { if (!p->ret) fprintf(stderr, " ret = NULL, p->err = %d\n", p->err); } else { fprintf(stderr, " ret type != SERIES (=%d), p->err = %d\n",...
static void autoreg_error(parser *p, int t) { fprintf(stderr, "*** autoreg error at obs t = %d (t1 = %d):\n", t, p->dset->t1); if (p->ret != NULL && p->ret->t != SERIES) { fprintf(stderr, " ret type != SERIES (=%d), p->err = %d\n", p->ret->t, p->err); } else if (p->ret == NULL) { fp...
autoreg_error
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double autores(MODEL *pmod, DATASET *dset, gretlopt opt) { int t1; int t; int i; int yno; double ut; double num; double den; double *uhat; uhat = pmod->uhat; num = 0.0; den = 0.0; yno = pmod->list[1]; t1 = pmod->t1; if ((opt & 0x8000) == 0) --t1; for (t = t1; t <= pmod->t2; ++t) { ...
static double autores(MODEL *pmod, DATASET *dset, gretlopt opt) { double *uhat = pmod->uhat; double ut, num = 0.0, den = 0.0; int yno = pmod->list[1]; int t1 = pmod->t1; int t, i, v; if (!(opt & OPT_P)) { t1--; } for (t = t1; t <= pmod->t2; t++) { ut = dset->Z[yno][t]; for (i = 0; i < pmo...
autores
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *aux_empty_series_node(parser *p) { if (p->dset && p->dset->n) return get_aux_node(p, 55, 0, 2); no_data_error(p); return 0; }
static NODE *aux_empty_series_node(parser *p) { if (p->dset == NULL || p->dset->n == 0) { no_data_error(p); return NULL; } else { return get_aux_node(p, SERIES, 0, TMP_NODE); } }
aux_empty_series_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *aux_list_node(parser *p) { if (p->dset && p->dset->n) return get_aux_node(p, 56, 0, 2); no_data_error(p); return 0; }
static NODE *aux_list_node(parser *p) { if (p->dset == NULL || p->dset->n == 0) { no_data_error(p); return NULL; } else { return get_aux_node(p, LIST, 0, TMP_NODE); } }
aux_list_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int aux_nlspec_add_param_list(nlspec *spec, int np, double *vals, char **names) { return nlspec_add_scalar_params(spec, np, vals, names, OPT_A); }
int aux_nlspec_add_param_list(nlspec *spec, int np, double *vals, char **names) { return nlspec_add_scalar_params(spec, np, vals, names, OPT_A); }
aux_nlspec_add_param_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void aux_print_info_criteria(const MODEL *pmod, PRN *prn) { double v2; char *v3; int i; int n; const char *istrs[3]; unsigned long v7; v7 = __readfsqword(0x28u); istrs[0] = "AIC"; istrs[1] = "BIC"; istrs[2] = "HQC"; n = 0; for (i = 0; i <= 2; ++i) { if (fabs(pmod->criterion[i]) <= 1.7976931...
static void aux_print_info_criteria(const MODEL *pmod, PRN *prn) { const char *istrs[] = {N_("AIC"), N_("BIC"), N_("HQC")}; int i, n = 0; for (i = 0; i < C_MAX; i++) { if (!na(pmod->criterion[i])) { if (n > 0) { pputc(prn, ' '); } pprintf(prn, " %s: %g", _(istrs[i]), pmod->criterio...
aux_print_info_criteria
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *aux_series_node(parser *p) { if (p->dset && p->dset->n) return get_aux_node(p, 55, p->dset->n, 2); no_data_error(p); return 0; }
static NODE *aux_series_node(parser *p) { if (p->dset == NULL || p->dset->n == 0) { no_data_error(p); return NULL; } else { return get_aux_node(p, SERIES, p->dset->n, TMP_NODE); } }
aux_series_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *aux_sized_matrix_node(parser *p, int m, int n, int cmplx) { gretl_matrix *v4; NODE *ret; gretl_matrix *a; ret = p->aux; if (ret && (ret->flags & 8) != 0) ret = 0; if (ret) { if (ret->t == 54) { ret->t = 57; ret->v.str = 0; ret->flags |= 2u; } else if (ret->t == 57) { ...
static NODE *aux_sized_matrix_node(parser *p, int m, int n, int cmplx) { NODE *ret = p->aux; if (is_proxy_node(ret)) { ret = NULL; } if (ret != NULL) { if (ret->t == NUM) { ret->t = MAT; ret->v.m = NULL; ret->flags |= TMP_NODE; } else if (ret->t != MAT) { p->err = E_TYPE...
aux_sized_matrix_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *auxempty(int *del) { NODE *result; result = newempty(); *del = 1; return result; }
static NODE *auxempty(int *del) { NODE *n = newempty(); *del = 1; return n; }
auxempty
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bXb(panelmod_t *pan) { int err; unsigned long v3; v3 = __readfsqword(0x28u); err = gretl_invert_symmetric_matrix(pan->Sigma); if (!err) pan->H = gretl_scalar_qform(pan->bdiff, pan->Sigma, &err); if (err) pan->H = NAN; return err; }
static int bXb(panelmod_t *pan) { int err; err = gretl_invert_symmetric_matrix(pan->Sigma); if (!err) { pan->H = gretl_scalar_qform(pan->bdiff, pan->Sigma, &err); } if (err) { pan->H = NADBL; } return err; }
bXb
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
GRETL_VAR *back_up_VAR(GRETL_VAR *v) { _BOOL4 v2; int err; int save_k; GRETL_VAR *vbak; vbak = (GRETL_VAR *)malloc(0x128u); if (!vbak) return 0; gretl_VAR_clear(vbak); clear_gretl_matrix_err(); if (v->Y) matrix_swap_copy(&vbak->Y, &v->Y); if (v->B) matrix_swap_copy(&vbak->B, &v->B); i...
static GRETL_VAR *back_up_VAR(GRETL_VAR *v) { GRETL_VAR *vbak; int err = 0; vbak = malloc(sizeof *vbak); if (vbak == NULL) { return NULL; } gretl_VAR_clear(vbak); clear_gretl_matrix_err(); if (v->Y != NULL) { matrix_swap_copy(&vbak->Y, &v->Y); } if (v->B != NULL) { matrix_swap_copy(&v...
back_up_VAR
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int backup_full_dataset(DATASET *dset) { DATASET *v2; long v3; long v4; long v5; long v6; char **varname; long v8; char *descrip; char *restriction; char *mapfile; char *pangrps; double panel_sd0; if (!fullset) { fullset = (DATASET *)malloc(0xB0u); if (!fullset) return 12; } ...
int backup_full_dataset(DATASET *dset) { #if SUBDEBUG int newfull = 0; #endif if (fullset == NULL) { fullset = malloc(sizeof *fullset); if (fullset == NULL) { return E_ALLOC; } #if SUBDEBUG newfull = 1; #endif } if (dset != NULL) { *fullset = *dset; peerset = dset; } #if SUBDE...
backup_full_dataset
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void bad_date_message(int y, int m, int d) { char *v3; v3 = gettext("non-existent date"); gretl_warnmsg_sprintf("%04d-%02d-%02d: %s", y, m, d, v3); }
static void bad_date_message(int y, int m, int d) { gretl_warnmsg_sprintf("%04d-%02d-%02d: %s", y, m, d, _("non-existent date")); }
bad_date_message
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bad_date_string(const char *s) { unsigned int v1; char *v2; int err; err = 0; gretl_error_clear(); while (*s && !err) { if (((*__ctype_b_loc())[*(unsigned char *)s] & 0x800) == 0 && *s != 46 && *s != 58 && *s != 44) { if (((*__ctype_b_loc())[*(unsigned char *)s] & 0x4000) != 0) { ...
static int bad_date_string(const char *s) { int err = 0; gretl_error_clear(); while (*s && !err) { if (!isdigit((unsigned char)*s) && !IS_DATE_SEP(*s)) { if (isprint((unsigned char)*s)) { gretl_errmsg_sprintf(_("Bad character '%c' in date string"), *s); } else { gretl_errmsg_spri...
bad_date_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bad_sel_range(int *range, int n) { char *v2; int i; int k; int err; err = 0; for (i = 0; i <= 1; ++i) { k = range[i]; if (k != 0x80000000 && (k <= 0 || k > n)) { err = 17; if (k > n && k > 2000000000) { k -= 0x7FFFFFFF - n; if (k > 0) { range[i] = k; ...
static int bad_sel_range(int *range, int n) { int i, k, err = 0; for (i = 0; i < 2; i++) { k = range[i]; if (k != MSEL_MAX && (k < 1 || k > n)) { err = E_INVARG; if (k > n && k > 2000000000) { k -= IDX_TBD - n; if (k > 0) { range[i] = k; err = 0; } ...
bad_sel_range
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bad_sel_single(int *pk, int n) { unsigned int v2; char *v3; int err; int k; err = 0; if (*pk != 0x80000000 && (*pk <= 0 || n < *pk)) { err = 17; if (n < *pk && *pk > 2000000000) { k = *pk + n - 0x7FFFFFFF; *pk = k; if (k > 0) err = 0; } if (err) { v2 = *p...
static int bad_sel_single(int *pk, int n) { int err = 0; if (*pk != MSEL_MAX && (*pk < 1 || *pk > n)) { err = E_INVARG; if (*pk > n && *pk > 2000000000) { int k = *pk + (n - IDX_TBD); *pk = k; if (k > 0) { err = 0; } } if (err) { gretl_errmsg_sprintf(_("Index ...
bad_sel_single
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bad_sel_vector(const gretl_vector *v, int n) { int rows; double v3; char *v4; int i; int k; if (v) { if (v->cols == 1) { rows = v->rows; } else if (v->rows == 1) { rows = v->cols; } else { rows = 0; } } else { rows = 0; } for (i = 0; i < rows; ++i) { if (...
static int bad_sel_vector(const gretl_vector *v, int n) { int i, k, len = gretl_vector_get_length(v); int exclude = v->val[0] < 0; for (i = 0; i < len; i++) { k = exclude ? -v->val[i] : v->val[i]; if (k < 1 || k > n) { gretl_errmsg_sprintf(_("Index value %d is out of bounds"), k); return E_IN...
bad_sel_vector
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int balanced_panel(const DATASET *dset) { int ret; char unit[16]; char period[24]; unsigned long v5; v5 = __readfsqword(0x28u); ret = 0; if (!((dset->t2 - dset->t1 + 1) % dset->pd) && (unsigned int)__isoc99_sscanf(dset->endobs, "%[^:]:%s", unit, period) == 2) { return atoi(period) == ...
int balanced_panel(const DATASET *dset) { int n = dset->t2 - dset->t1 + 1; int ret = 0; if (n % dset->pd == 0) { char unit[OBSLEN], period[OBSLEN]; if (sscanf(dset->endobs, "%[^:]:%s", unit, period) == 2) { if (atoi(period) == dset->pd) { ret = 1; } } } return ret; }
balanced_panel
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int band_straddles_zero(const double *c, const double *w, double factor, int t1, int t2) { int lt0; int gt0; double b1; double b2; lt0 = 0; gt0 = 0; while (t1 <= t2) { b1 = c[t1] - w[t1] * factor; b2 = w[t1] * factor + c[t1]; if (b1 < 0.0 || b2 < 0.0) lt0 = 1; ...
static int band_straddles_zero(const double *c, const double *w, double factor, int t1, int t2) { int t, lt0 = 0, gt0 = 0; double b1, b2; for (t = t1; t <= t2; t++) { b1 = c[t] - w[t] * factor; b2 = c[t] + w[t] * factor; if (b1 < 0 || b2 < 0) { lt0 = 1; } ...
band_straddles_zero
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *base(parser *p, NODE *up) { NODE *t; t = 0; if (p->err) return 0; switch (p->sym) { case 0x16: case 0x32: lex(p); t = expr(p); break; case 0x29: t = newempty(); break; case 0x2B: lex(p); t = expr(p); if (p->sym == 44) goto LABEL_19; if (!p->err) ...
static NODE *base(parser *p, NODE *up) { NODE *t = NULL; if (p->err) { return NULL; } #if SDEBUG fprintf(stderr, "base(): on input sym = %d ('%s'), ch = '%c'\n", p->sym, getsymb_full(p->sym, p), p->ch ? p->ch : '0'); #endif switch (p->sym) { case CNUM: t = newdbl(p->xval); lex(p); ...
base
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void basic_trim_to_length(char *s, int len) { int i; int bp0; int bp1; int n; n = strlen(s); if (n > len) { bp0 = 0; bp1 = 0; for (i = 1; i < n - 1; ++i) { if (s[i] == 32) { if (i >= len) { bp1 = i; break; } bp0 = i; } } if (bp0 <=...
static void basic_trim_to_length(char *s, int len) { int n = strlen(s); if (n > len) { int i; int bp0 = 0, bp1 = 0; for (i = 1; i < n - 1; i++) { if (s[i] == ' ') { if (i < len) { bp0 = i; } else { bp1 = i; break; } } } if (bp0 ...
basic_trim_to_length
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0