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 *single_equation_liml(MODEL *__return_ptr retstr, const int *list, DATASET *dset, gretlopt opt) { int err; int *mlist; int *ilist; equation_system *sys; MODEL model; unsigned long v11; v11 = __readfsqword(0x28u); mlist = 0; ilist = 0; sys = 0; gretl_model_init(&m...
MODEL single_equation_liml(const int *list, DATASET *dset, gretlopt opt) { int *mlist = NULL, *ilist = NULL; equation_system *sys = NULL; MODEL model; int err = 0; gretl_model_init(&model, dset); err = ivreg_process_lists(list, &mlist, &ilist); if (!err) { sys = equation_system_new(SYS_METHOD_LIML,...
single_equation_liml
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *single_string_func(NODE *n, NODE *x, int f, parser *p) { char *vname; int uscore; const char *deflt; NODE *ret; char *s; ret = get_aux_node(p, 60, 0, 2); if (ret && (p->flags & 2) != 0) { s = n->v.str; switch (f) { case 418: deflt = 0; if (x && x->t != 85) { if (x->t...
static NODE *single_string_func(NODE *n, NODE *x, int f, parser *p) { NODE *ret = aux_string_node(p); if (ret != NULL && starting(p)) { const char *s = n->v.str; if (f == F_ARGNAME) { char *deflt = NULL; if (!null_node(x)) { if (x->t == STR) { deflt = x->v.str; } els...
single_string_func
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int single_year_sample(const DATASET *dset, int t1, int t2) { int y1; char obs[24]; unsigned long v7; v7 = __readfsqword(0x28u); ntolabel(obs, t1, dset); y1 = atoi(obs); ntolabel(obs, t2, dset); return atoi(obs) == y1; }
static int single_year_sample(const DATASET *dset, int t1, int t2) { char obs[OBSLEN]; int y1, y2; ntolabel(obs, t1, dset); y1 = atoi(obs); ntolabel(obs, t2, dset); y2 = atoi(obs); return y2 == y1; }
single_year_sample
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int singleton_check(const int *unit_obs, int nunits) { int i; for (i = 0; i < nunits; ++i) { if (unit_obs[i] == 1) return 1; } return 0; }
static int singleton_check(const int *unit_obs, int nunits) { int i; for (i = 0; i < nunits; i++) { if (unit_obs[i] == 1) { return 1; } } return 0; }
singleton_check
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void six_numbers(BOXPLOT *p, int do_mean, PRN *prn) { int i; double vals[6]; *(_QWORD *)&vals[5] = __readfsqword(0x28u); vals[0] = p->min; vals[1] = p->lq; vals[2] = p->median; vals[3] = p->uq; vals[4] = p->max; if (do_mean) { if (fabs(p->mean) <= 1.797693134862316e308 && p->mean <= 1.0e308) ...
static void six_numbers(BOXPLOT *p, int do_mean, PRN *prn) { double vals[5] = {p->min, p->lq, p->median, p->uq, p->max}; int i; if (do_mean) { if (bpna(p->mean)) { pprintf(prn, "%9s", "NA"); } else { pprintf(prn, "%#9.5g", p->mean); } } for (i = 0; i < 5; i++) { if (bpna(vals[i])...
six_numbers
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int skew_kurt_test(const double *x, int t1, int t2, double *test, double *pval, gretlopt opt) { short opta; int n; int err; double skew; double xkurt[2]; opta = opt; *(_QWORD *)&xkurt[1] = __readfsqword(0x28u); err = 0; err = series_get_moments(t1, t2, x, &skew, xkurt, &n); if (!...
static int skew_kurt_test(const double *x, int t1, int t2, double *test, double *pval, gretlopt opt) { double skew, xkurt; int n, err = 0; err = series_get_moments(t1, t2, x, &skew, &xkurt, &n); if (!err) { if (opt & OPT_J) { *test = (n / 6.0) * (skew * skew + xkurt * xkur...
skew_kurt_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int skip_data_column(csvdata *c, int k) { int v2; if ((c->flags & 0x30) != 0) v2 = k; else v2 = k + 1; return in_gretl_list(c->cols_list, v2) == 0; }
static int skip_data_column(csvdata *c, int k) { int col = csv_skip_col_1(c) ? k : k + 1; if (!in_gretl_list(c->cols_list, col)) { return 1; } else { return 0; } }
skip_data_column
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int skip_matrix_comment(FILE *fp, int *rows, int *cols, int *is_complex, int *err) { int n; int c; int ret; int i; char *p; char test[24]; unsigned long v15; v15 = __readfsqword(0x28u); ret = 0; c = fgetc(fp); if (c == 35) { memset(test, 0, 16); i = 0; ret = 1;...
static int skip_matrix_comment(FILE *fp, int *rows, int *cols, int *is_complex, int *err) { int c, ret = 0; c = fgetc(fp); if (c == '#') { char *p, test[16] = {0}; int n, i = 0; ret = 1; while (c != '\n' && c != EOF && c != -1) { c = fgetc(fp); if (i <...
skip_matrix_comment
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int skip_private_func(ufunc *ufun) { int skip; skip = 0; if ((ufun->flags & 1) != 0) { skip = 1; if (ufun->pkg) return ufun->pkg != current_pkg; } return skip; }
static int skip_private_func(ufunc *ufun) { int skip = 0; if (function_is_private(ufun)) { skip = 1; if (ufun->pkg != NULL && ufun->pkg == current_pkg) { skip = 0; } } return skip; }
skip_private_func
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int slash_terminate(char *path) { if (!path || !*path || path[strlen(path) - 1] == 47) return 0; *(_WORD *)&path[strlen(path)] = 47; return 1; }
int slash_terminate(char *path) { #ifdef WIN32 if (path != NULL && *path != '\0') { int n = strlen(path); if (path[n - 1] != '\\' && path[n - 1] != '/') { char sep = getsep(path); strcat(path, sep == '/' ? "/" : "\\"); return 1; } } #else if (path != NULL && *path != '\0') { if...
slash_terminate
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int smpl_get_int(const char *s, DATASET *dset, int *err) { int k; double x; k = -1; if (integer_string(s)) return atoi(s); if (gretl_is_scalar(s)) x = gretl_scalar_get_value(s, 0); else x = generate_scalar(s, dset, err); if (fabs(x) <= 1.797693134862316e308 && x < 2147483647.0) return (in...
static int smpl_get_int(const char *s, DATASET *dset, int *err) { int k = -1; if (integer_string(s)) { k = atoi(s); } else { double x; if (gretl_is_scalar(s)) { x = gretl_scalar_get_value(s, NULL); } else { x = generate_scalar(s, dset, err); } if (!na(x) && x < INT_MAX) { ...
smpl_get_int
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int smpl_restrict(gretlopt opt) { return (opt & 0xFFF6FFFF) != 0; }
static int smpl_restrict(gretlopt opt) { opt &= ~OPT_Q; opt &= ~OPT_T; return opt != OPT_NONE; }
smpl_restrict
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double snedecor_cdf(double dfn, double dfd, double x) { double p; p = NAN; if (dfn > 0.0 && dfd > 0.0 && x >= 0.0) { p = fdtr(dfn, dfd, x); if (get_cephes_errno()) return NAN; } return p; }
double snedecor_cdf(double dfn, double dfd, double x) { double p = NADBL; if (dfn > 0 && dfd > 0 && x >= 0) { p = fdtr(dfn, dfd, x); if (get_cephes_errno()) { p = NADBL; } } return p; }
snedecor_cdf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double snedecor_cdf_comp(double dfn, double dfd, double x) { double p; p = NAN; if (dfn > 0.0 && dfd > 0.0 && x >= 0.0) { p = fdtrc(dfn, dfd, x); if (get_cephes_errno()) return NAN; } return p; }
double snedecor_cdf_comp(double dfn, double dfd, double x) { double p = NADBL; if (dfn > 0 && dfd > 0 && x >= 0) { p = fdtrc(dfn, dfd, x); if (get_cephes_errno()) { p = NADBL; } } return p; }
snedecor_cdf_comp
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double snedecor_cdf_inverse(double dfn, double dfd, double a) { double x; x = NAN; if (dfn > 0.0 && dfd > 0.0 && a >= 0.0) { x = fdtri(dfn, dfd, 1.0 - a); if (get_cephes_errno()) return NAN; } return x; }
static double snedecor_cdf_inverse(double dfn, double dfd, double a) { double x = NADBL; if (dfn > 0 && dfd > 0 && a >= 0) { x = fdtri(dfn, dfd, 1 - a); if (get_cephes_errno()) { x = NADBL; } } return x; }
snedecor_cdf_inverse
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double snedecor_critval(double dfn, double dfd, double a) { double x; x = NAN; if (dfn > 0.0 && dfd > 0.0 && a >= 0.0) { x = fdtri(dfn, dfd, a); if (get_cephes_errno()) return NAN; } return x; }
double snedecor_critval(double dfn, double dfd, double a) { double x = NADBL; if (dfn > 0 && dfd > 0 && a >= 0) { x = fdtri(dfn, dfd, a); if (get_cephes_errno()) { x = NADBL; } } return x; }
snedecor_critval
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double snedecor_pdf(double m, double n, double x) { double xa; double na; double ma; ma = m; na = n; xa = x; snedecor_pdf_array(m, n, &xa, 1); return xa; }
static double snedecor_pdf(double m, double n, double x) { snedecor_pdf_array(m, n, &x, 1); return x; }
snedecor_pdf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int snedecor_pdf_array(double v1, double v2, double *x, int n) { int i; int ia; int err; double x1; double x2; double x3; err = 0; *__errno_location() = 0; if (v1 <= 0.0 || v2 <= 0.0) { err = 2; } else { x1 = Binv(v1 * 0.5, v2 * 0.5); x2 = pow(v1 / v2, 0.5 * v1); if (*__errno_locati...
static int snedecor_pdf_array(double v1, double v2, double *x, int n) { int i, err = 0; errno = 0; if (v1 > 0 && v2 > 0) { double xm = v1, xn = v2; double vr = xm / xn; double x1 = Binv(0.5 * xm, 0.5 * xn); double x2 = pow(vr, 0.5 * xm); double x3, x4; if (errno) { err = E_NAN; ...
snedecor_pdf_array
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double sneq_reldiff(double x, double y) { if (x == 0.0) return fabs(y); if (y != 0.0) { if (x <= y) x = (y - x) / x; else x = (x - y) / y; } return fabs(x); }
static double sneq_reldiff(double x, double y) { double rd; if (x == 0.0) { rd = fabs(y); } else if (y == 0.0) { rd = fabs(x); } else if (x > y) { rd = fabs((x - y) / y); } else { rd = fabs((y - x) / x); } return rd; }
sneq_reldiff
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gint sort_bundled_items(const void *a, const void *b) { gint ret; int ta; ta = gretl_type_get_order(*(GretlType *)a); ret = ta - gretl_type_get_order(*(GretlType *)b); if (!ret) return g_ascii_strcasecmp(*((_QWORD *)a + 3), *((_QWORD *)b + 3)); return ret; }
static gint sort_bundled_items(const void *a, const void *b) { const bundled_item *ia = a; const bundled_item *ib = b; int ta = gretl_type_get_order(ia->type); int tb = gretl_type_get_order(ib->type); int ret = ta - tb; if (ret == 0) { ret = g_ascii_strcasecmp(ia->name, ib->name); } return ret; }
sort_bundled_items
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int sort_pairs_by_x(gretl_matrix *x, gretl_matrix *y, int **order, char **labels) { int rows; int v5; int t; int ta; int tb; int err; int T; pair_sorter *s; int *idx; if (x) { if (x->cols == 1) { rows = x->rows; } else if (x->rows == 1) { rows = x->cols; ...
int sort_pairs_by_x(gretl_matrix *x, gretl_matrix *y, int **order, char **labels) { struct pair_sorter *s = NULL; int t, T = gretl_vector_get_length(x); int err = 0; if (T == 0 || gretl_vector_get_length(y) != T) { return E_NONCONF; } s = malloc(T * sizeof *s); if (s == NULL) { ...
sort_pairs_by_x
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int sort_series(const double *x, double *y, int f, const DATASET *dset) { int v4; int v6; int v7; int i; int ia; int t; int ta; double *z; if (dset) v4 = dset->t2 - dset->t1 + 1; else v4 = 0; z = (double *)malloc(8LL * v4); if (!z) return 12; i = 0; for (t = dset->t1; t <= dset-...
int sort_series(const double *x, double *y, int f, const DATASET *dset) { double *z = NULL; int n = sample_size(dset); int i, t; z = malloc(n * sizeof *z); if (z == NULL) { return E_ALLOC; } i = 0; for (t = dset->t1; t <= dset->t2; t++) { if (!na(x[t])) { z[i++] = x[t]; } } if (...
sort_series
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void sorter_fill_points(sorter *s, const double **Z, int n) { int t; for (t = 0; t < n; ++t) { *(_DWORD *)(*(_QWORD *)&s->t + 24LL * t) = t; *(double *)(*(_QWORD *)&s->t + 24LL * t + 8) = Z[SLODWORD(s->x)][t]; *(double *)(*(_QWORD *)&s->t + 24LL * t + 16) = Z[SHIDWORD(s->x)][t]; } }
static void sorter_fill_points(sorter *s, const double **Z, int n) { int t; for (t = 0; t < n; t++) { s->points[t].obsnum = t; s->points[t].val1 = Z[s->sortvar1][t]; s->points[t].val2 = Z[s->sortvar2][t]; } }
sorter_fill_points
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int spearman_rho(const int *list, const DATASET *dset, gretlopt opt, PRN *prn) { char *v4; double **p_ry; double **p_rx; char *v8; char *v9; char *v10; char *v11; double v12; char *v13; char *v14; double v15; double v16; char *v17; double v18; char *v19; double v20; unsigned int v21; ...
int spearman_rho(const int *list, const DATASET *dset, gretlopt opt, PRN *prn) { int T = dset->t2 - dset->t1 + 1; double *rx = NULL, *ry = NULL; const double *x, *y; double zval, rho = 0; int vx, vy, m; int err; if (list == NULL || list[0] != 2) { pputs(prn, _("This command requires two variables\n")...
spearman_rho
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *spearman_rho_func(const double *x, const double *y, int n, int *err) { double *v4; double v5; double *v6; double *v7; int m; double z; double rho; gretl_matrix *ret; unsigned long v14; v14 = __readfsqword(0x28u); ret = 0; rho = NAN; m = 0; *err ...
gretl_matrix *spearman_rho_func(const double *x, const double *y, int n, int *err) { gretl_matrix *ret = NULL; double z, rho = NADBL; int m = 0; *err = real_spearman_rho(x, y, n, &rho, &z, NULL, NULL, &m); if (!*err) { ret = gretl_matrix_alloc(1, 3); if (ret == NULL) ...
spearman_rho_func
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double spearman_signif(double rho, int n) { const double *x; if (n <= 6) return 1.0; x = rhocrit[n - 7]; if (rho > *x) return 0.01; if (rho > x[1]) return 0.05; if (rho <= x[2]) return 1.0; return 0.1; }
static double spearman_signif(double rho, int n) { const double *x; if (n < 7) { return 1.0; } x = rhocrit[n - 7]; if (rho > x[0]) return .01; if (rho > x[1]) return .05; if (rho > x[2]) return .10; return 1.0; }
spearman_signif
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int spec_check_dimensions(matrix_subspec *spec, const gretl_matrix *m) { int err; SelType lt; SelType rt; lt = spec->ltype; rt = spec->rtype; err = 0; if (lt == SEL_MATRIX) { err = bad_sel_vector(spec->lsel.m, m->rows); } else if (lt == SEL_RANGE || lt == SEL_ELEMENT) { err = bad_sel_range((int...
static int spec_check_dimensions(matrix_subspec *spec, const gretl_matrix *m) { int lt = spec->ltype; int rt = spec->rtype; int err = 0; if (lt == SEL_MATRIX) { err = bad_sel_vector(spec->lsel.m, m->rows); } else if (lt == SEL_RANGE || lt == SEL_ELEMENT) { err = bad_sel_range(spec->lsel.range, m->row...
spec_check_dimensions
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int special_depvar(const MODEL *pmod) { int ret; ret = 0; if (pmod->ci == 60) return 1; if (pmod->ci == 93) return (pmod->opt & 2) != 0; return ret; }
static int special_depvar(const MODEL *pmod) { int ret = 0; if (pmod->ci == INTREG) { ret = 1; } else if (pmod->ci == PANEL) { if (pmod->opt & OPT_B) { ret = 1; } } return ret; }
special_depvar
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void special_print_fc_stats(gretl_matrix *fc, PRN *prn) { int n_used; int err; const double *y; const double *f; gretl_matrix *fcs; unsigned long v7; v7 = __readfsqword(0x28u); y = fc->val; f = &y[fc->rows]; err = 0; fcs = forecast_stats(y, f, 0, fc->rows - 1, &n_used, OPT_O, &err); if (fcs) { ...
static void special_print_fc_stats(gretl_matrix *fc, PRN *prn) { const double *y = fc->val; const double *f = y + fc->rows; gretl_matrix *fcs; int n_used; int err = 0; fcs = forecast_stats(y, f, 0, fc->rows - 1, &n_used, OPT_O, &err); if (fcs != NULL) { print_fcast_stats_matrix(fcs, n_used, OPT_NONE,...
special_print_fc_stats
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void special_set_fcast_matrix(gretl_matrix *fc) { memcpy(fc->val, &fc->val[fc->rows], 8LL * fc->rows); gretl_matrix_realloc(fc, fc->rows, 1); set_fcast_matrices(fc, 0); }
static void special_set_fcast_matrix(gretl_matrix *fc) { size_t sz; sz = fc->rows * sizeof(double); memcpy(fc->val, fc->val + fc->rows, sz); gretl_matrix_realloc(fc, fc->rows, 1); set_fcast_matrices(fc, NULL); }
special_set_fcast_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int special_size_is_set() { return special_width > 0.0 && special_height > 0.0; }
static int special_size_is_set(void) { return special_width > 0 && special_height > 0; }
special_size_is_set
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double special_time_val(const char *s, const char *fmt, int m_means_q) { int m; int d; char *test; tm t; unsigned long v9; v9 = __readfsqword(0x28u); memset(&t, 0, sizeof(t)); test = strptime(s, fmt, &t); if (!test || *test) return NAN; m = t.tm_mon + 1; d = t.tm_mday; if (m_means_q) { ...
static double special_time_val(const char *s, const char *fmt, int m_means_q) { struct tm t = {0}; char *test; test = strptime(s, fmt, &t); if (test == NULL || *test != '\0') { return NADBL; } else { int y, m, d; y = t.tm_year + 1900; m = t.tm_mon + 1; d = t.tm_mday; if (m_means_q...
special_time_val
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int specified_gp_output_format() { return this_term_type; }
int specified_gp_output_format(void) { return this_term_type; }
specified_gp_output_format
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int split_graph_fontspec(const char *s, char *name, int *psz) { int i; int k; int nf; int n; char ptstr[8]; unsigned long v10; v10 = __readfsqword(0x28u); k = 0; n = strlen(s); nf = 0; for (i = n - 1; i > 0 && ((*__ctype_b_loc())[s[i]] & 0x800) != 0; --i) ++k; if (k <= 0) { if (*s) { ...
int split_graph_fontspec(const char *s, char *name, int *psz) { int i, k = 0, n = strlen(s); int nf = 0; for (i = n - 1; i > 0; i--) { if (isdigit(s[i])) k++; else break; } if (k > 0) { char ptstr[8]; *ptstr = *name = '\0'; strncat(ptstr, s + n - k, k); *psz = atoi(ptst...
split_graph_fontspec
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int split_matrix_by_chunks(gretl_array *A, int n, const gretl_matrix *X, int chunk, int colwise) { int v5; int v6; int i; int ia; int ib; int err; int k; int j; int ii; int rows; int cols; double *src; gretl_matrix *tmp; gretl_matrix *tmpa; if (colwise) v5 =...
static int split_matrix_by_chunks(gretl_array *A, int n, const gretl_matrix *X, int chunk, int colwise) { int rows = colwise ? X->rows : chunk; int cols = colwise ? chunk : X->cols; gretl_matrix *tmp; int i, err = 0; for (i = 0; i < n && !err; i++) { tmp = gretl_matrix_a...
split_matrix_by_chunks
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int split_matrix_by_vector(gretl_array *A, int n, const gretl_matrix *X, int dim, int colwise, gretl_matrix *vals, const double *sel) { int v7; int cols; int v9; int i; int ia; int ib; int ic; int ja; int j; int err; int jj; int rows; int k...
static int split_matrix_by_vector(gretl_array *A, int n, const gretl_matrix *X, int dim, int colwise, gretl_matrix *vals, const double *sel) { int *nj = NULL; gretl_matrix *tmp; int rows, cols; int i, j, k; int err = 0; nj = calloc(n, size...
split_matrix_by_vector
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *sprint_l2_to_ascii(char *targ, const char *s, size_t len) { iso_to_ascii_translate(targ, s, 2); return targ; }
char *sprint_l2_to_ascii(char *targ, const char *s, size_t len) { iso_to_ascii_translate(targ, s, 2); return targ; }
sprint_l2_to_ascii
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int sscanf_driver(const char *args, DATASET *dset, PRN *prn) { size_t v3; int err; char *tmp; if (!warned_0) { pputs(prn, "*** \"sscanf\": obsolete command, please use the function of " "the same name\n"); warned_0 = 1; } if (!args) return 2; v3 = strlen(args); tmp = (char *)...
static int sscanf_driver(const char *args, DATASET *dset, PRN *prn) { static int warned; int err; if (!warned) { pputs(prn, "*** \"sscanf\": obsolete command, please use the " "function of the same name\n"); warned = 1; } if (args == NULL) { err = E_DATA; } else { char *tmp ...
sscanf_driver
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void ssrline(const MODEL *pmod, PRN *prn) { double ess; int gretl_digits; char *v4; if (fabs(pmod->ess) <= 1.797693134862316e308 && plain_format(prn)) { ess = pmod->ess; if (pmod->ci == 83) gretl_digits = 12; else gretl_digits = get_gretl_digits(); v4 = gettext("Sum of squared resid...
static void ssrline(const MODEL *pmod, PRN *prn) { if (!na(pmod->ess) && plain_format(prn)) { pprintf(prn, " %s = %.*g\n", _("Sum of squared residuals"), XDIGITS(pmod), pmod->ess); } }
ssrline
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int stack_update_parser_input(parser *p) { int offset; char *arg; char *opt1; char *opt2; GString *gs_0; gchar *tmp; char *start; char *s; unsigned long v10; v10 = __readfsqword(0x28u); arg = 0; opt1 = 0; opt2 = 0; tmp = 0; offset = LODWORD(p->point) - LODWORD(p->input); start = gretl_s...
int stack_update_parser_input(parser *p) { char *arg = NULL, *opt1 = NULL, *opt2 = NULL; char *s, *start; gchar *tmp = NULL; GString *gs; int offset; offset = p->point - p->input; start = gretl_strndup(p->input, offset); gs = g_string_new(start); free(start); s = strstr(p->input, "stack(") + 6; ...
stack_update_parser_input
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int standard_lag_of(int v, int parent, const DATASET *dset) { int ret; ret = 0; if (!dset || v <= 0 || v >= dset->v) return 0; if (series_get_transform(dset, v) == 65 && series_get_parent_id(dset, v) == parent) return series_get_lag(dset, v); return ret; }
int standard_lag_of(int v, int parent, const DATASET *dset) { int pv = 0, ret = 0; if (dset == NULL || v <= 0 || v >= dset->v) { return 0; } if (series_get_transform(dset, v) == LAGS) { pv = series_get_parent_id(dset, v); if (pv == parent) { ret = series_get_lag(dset, v); } } return...
standard_lag_of
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int standardize_series(const double *x, double *y, int dfc, const DATASET *dset) { int t; int ta; int tb; int tc; int n; double xbar; double xbara; double TSS; double sd; double d; xbar = 0.0; n = 0; for (t = dset->t1; t <= dset->t2; ++t) { if (fabs(x[t]) <= 1.79769...
int standardize_series(const double *x, double *y, int dfc, const DATASET *dset) { double d, xbar = 0; int t, n = 0; for (t = dset->t1; t <= dset->t2; t++) { if (!na(x[t])) { xbar += x[t]; n++; } } if (dfc >= 0 && n < dfc + 1) { return E_TOOFEW; } xbar /= ...
standardize_series
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int start_fncall(fncall *call, DATASET *dset, PRN *prn) { int v3; GList *tmp; for (tmp = callstack; tmp; tmp = tmp->next) { if (*(ufunc **)tmp->data == call->fun) { call->flags |= 1u; break; } } set_previous_depth(fn_executing); ++fn_executing; if ((call->fun->flags & 0x10) != 0) ...
static int start_fncall(fncall *call, DATASET *dset, PRN *prn) { GList *tmp = callstack; fncall *prevcall; while (tmp != NULL) { prevcall = tmp->data; if (prevcall->fun == call->fun) { set_call_recursing(call); break; } tmp = tmp->next; } set_previous_depth(fn_executing); fn_ex...
start_fncall
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int start_new_Z(DATASET *dset, gretlopt opt) { if (allocate_Z(dset, opt)) return 12; dset->t1 = 0; dset->t2 = dset->n - 1; if ((opt & 0x20000) != 0) { dset->varname = 0; dset->varinfo = 0; } else if (dataset_allocate_varnames(dset)) { free_Z(dset); dset->Z = 0; return 12; } if ((op...
int start_new_Z(DATASET *dset, gretlopt opt) { if (allocate_Z(dset, opt)) { return E_ALLOC; } dset->t1 = 0; dset->t2 = dset->n - 1; if (opt & OPT_R) { dset->varname = NULL; dset->varinfo = NULL; } else if (dataset_allocate_varnames(dset)) { free_Z(dset); dset->Z = NULL; return E_A...
start_new_Z
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
LOOPSET *start_new_loop(char *s, LOOPSET *inloop, DATASET *dset, gretlopt opt, int *nested, int *err) { char *v6; LOOPSET *loop; gretl_error_clear(); if (inloop && inloop->level < compile_level) { loop = gretl_loop_new(inloop); *nested = 1; } else { loop = gretl_loop_new(0...
static LOOPSET *start_new_loop(char *s, LOOPSET *inloop, DATASET *dset, gretlopt opt, int *nested, int *err) { LOOPSET *loop = NULL; gretl_error_clear(); #if LOOP_DEBUG fprintf(stderr, "start_new_loop: inloop=%p, line='%s'\n", (void *)inloop, s); #endif if (inloop == NULL || co...
start_new_loop
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int starts_b(const char *s, gretl_restriction *r) { char c; if (*s != 98 && (!r->vecm || *s != 97)) return 0; c = s[1]; return ((*__ctype_b_loc())[c] & 0x800) != 0 || c == 91 || c == 40; }
static int starts_b(const char *s, gretl_restriction *r) { if (*s == 'b' || (r->vecm && *s == 'a')) { char c = *(s + 1); return isdigit(c) || c == '[' || c == '('; } return 0; }
starts_b
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void state_vars_copy(set_state *sv) { set_state *v1; long v2; long v3; long v4; double conv_huge; double bfgs_toler; double bhhh_toler; double nadarwat_trim; long v9; gretl_matrix *initcurv; v1 = state; v2 = *(_QWORD *)&state->arma_vcv; *(_QWORD *)&sv->flags = *(_QWORD *)&state->flags; *(_Q...
static void state_vars_copy(set_state *sv) { #if PDEBUG fprintf(stderr, "state_vars_copy() called\n"); #endif *sv = *state; sv->initvals = NULL; sv->initcurv = NULL; sv->matmask = NULL; }
state_vars_copy
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void state_vars_init(set_state *sv) { long v1; long v2; long v3; double conv_huge; double bfgs_toler; double bhhh_toler; double nadarwat_trim; long v8; gretl_matrix *initcurv; v1 = *(_QWORD *)&default_state.arma_vcv; *(_QWORD *)&sv->flags = *(_QWORD *)&default_state.flags; *(_QWORD *)&sv->arma_...
static void state_vars_init(set_state *sv) { *sv = default_state; }
state_vars_init
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int static_fcast_with_errs(Forecast *fc, MODEL *pmod, const DATASET *dset, gretlopt opt) { double *v4; double *v5; double *v6; double *v7; short opta; int err; int i; int t; int missing; int k; int same_data; int vi; gretl_vector *Xt; gretl_vector *b; double vyh;...
static int static_fcast_with_errs(Forecast *fc, MODEL *pmod, const DATASET *dset, gretlopt opt) { gretl_matrix *V = NULL; gretl_vector *Xt = NULL; gretl_vector *b = NULL; double s2 = pmod->sigma * pmod->sigma; double vyh, xval; int k = pmod->ncoeff; int same_data = 0; i...
static_fcast_with_errs
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double stdtr(double rk, double t) { int j; int ja; int k; double x; double f; double fa; double tz; double tza; double p; double pa; double pb; double z; double xsqk; if (rk > 0.0) { k = (int)rk; if (t == 0.0) { return 0.5; } else if (t >= -2.0) { if (rk - (double)(i...
double stdtr(double rk, double t) { double x, z, f, tz, p, xsqk; int k, j, is_int; if (rk <= 0) { mtherr("stdtr", CEPHES_DOMAIN); return 0.0; } else { k = (int)rk; is_int = (rk - k) == 0.0; } if (t == 0) { return 0.5; } if (t < -2.0) { z = rk / (rk + t * t); p = 0.5 * incb...
stdtr
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double stdtri(double rk, double p) { double pa; int rflg; double t; double za; double z; pa = p; if (rk > 0.0 && p > 0.0 && p < 1.0) { if (p <= 0.25 || p >= 0.75) { rflg = -1; if (p >= 0.5) { pa = 1.0 - p; rflg = 1; } z = incbi(rk * 0.5, 0.5, pa + pa); if...
double stdtri(double rk, double p) { double t, z; int rflg; if (rk <= 0 || p <= 0.0 || p >= 1.0) { mtherr("stdtri", CEPHES_DOMAIN); return 0.0; } if (p > 0.25 && p < 0.75) { if (p == 0.5) { return 0.0; } z = 1.0 - 2.0 * p; z = incbi(0.5, 0.5 * rk, fabs(z)); t = sqrt(rk * z ...
stdtri
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *steal_matrix_by_name(const char *name) { gretl_matrix *ret; user_var *u; ret = 0; if (name) { if (*name) { u = get_user_var_of_type_by_name(name, GRETL_TYPE_MATRIX); if (u) return (gretl_matrix *)user_var_steal_value(u); } } return ret; }
gretl_matrix *steal_matrix_by_name(const char *name) { gretl_matrix *ret = NULL; if (name != NULL && *name != '\0') { user_var *u; u = get_user_var_of_type_by_name(name, GRETL_TYPE_MATRIX); if (u != NULL) { ret = user_var_steal_value(u); } } return ret; }
steal_matrix_by_name
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int steal_string_table(DATASET *l_dset, int lvar, DATASET *r_dset, int rvar) { if (l_dset != r_dset || lvar != rvar) { l_dset->varinfo[lvar]->st = r_dset->varinfo[rvar]->st; r_dset->varinfo[rvar]->st = 0; series_set_discrete(l_dset, lvar, 1); } return 0; }
int steal_string_table(DATASET *l_dset, int lvar, DATASET *r_dset, int rvar) { if (l_dset != r_dset || lvar != rvar) { l_dset->varinfo[lvar]->st = r_dset->varinfo[rvar]->st; r_dset->varinfo[rvar]->st = NULL; series_set_discrete(l_dset, lvar, 1); } return 0; }
steal_string_table
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void stick_row_into(gretl_matrix *targ, gretl_matrix *src, int t) { int j; for (j = 0; j < src->cols; ++j) targ->val[j * targ->rows + t] = src->val[j]; }
static void stick_row_into(gretl_matrix *targ, gretl_matrix *src, int t) { int j; for (j = 0; j < src->cols; j++) { gretl_matrix_set(targ, t, j, src->val[j]); } }
stick_row_into
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double stirf(double x) { double y; double ya; double w; double v; w = polevl(1.0 / x, STIR, 4) * (1.0 / x) + 1.0; y = exp(x); if (x <= 143.01608) { ya = pow(x, x - 0.5) / y; } else { v = pow(x, 0.5 * x - 0.25); ya = v / y * v; } return SQTPI * ya * w; }
static double stirf(double x) { double y, w, v; w = 1.0 / x; w = 1.0 + w * polevl(w, STIR, 4); y = exp(x); if (x > MAXSTIR) { v = pow(x, 0.5 * x - 0.25); y = v * (v / y); } else { y = pow(x, x - 0.5) / y; } y = SQTPI * y * w; return y; }
stirf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int stop_fncall(fncall *call, int rtype, void *ret, DATASET *dset, PRN *prn, int redir_level) { int *list_by_name; int i; int ia; int ib; int delv; int err; int d; int anyerr; int anyerra; int anyerrb; int vi; int *lret; d = gretl_function_depth(); err = 0; if (dset) { ...
static int stop_fncall(fncall *call, int rtype, void *ret, DATASET *dset, PRN *prn, int redir_level) { int i, d = gretl_function_depth(); int delv, anyerr = 0; int err = 0; #if FN_DEBUG fprintf(stderr, "stop_fncall: terminating call to " "function '%s' at depth %d, ds...
stop_fncall
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void stop_progress_bar(urlinfo *u) { if (u->progfunc) { if (u->pstarted) { u->progfunc(0, 1024, 6); u->pstarted = 0; } } }
static void stop_progress_bar(urlinfo *u) { if (u->progfunc != NULL && u->pstarted) { u->progfunc(0, 1024, SP_FINISH); u->pstarted = 0; } }
stop_progress_bar
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int stored_list_check(const int *list, const DATASET *dset) { int badv; int err; int i; badv = 0; err = 0; if (dset && dset->n) { for (i = 1; i <= *list && !err; ++i) { if (list[i] >= dset->v || list[i] < 0 && list[i] != -100) { badv = list[i]; err = 2; } } } else { ...
static int stored_list_check(const int *list, const DATASET *dset) { int badv = 0; int err = 0; if (dset == NULL || dset->n == 0) { err = E_NODATA; } else { int i; for (i = 1; i <= list[0] && !err; i++) { if (list[i] >= dset->v || (list[i] < 0 && list[i] != LISTSEP)) { badv = list[i]...
stored_list_check
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void stored_options_cleanup() { int i; for (i = 0; i < n_stored_opts; ++i) free(optinfo[i].val); free(optinfo); optinfo = 0; n_stored_opts = 0; }
void stored_options_cleanup(void) { int i; #if OPTDEBUG fprintf(stderr, "stored_options_cleanup\n"); #endif for (i = 0; i < n_stored_opts; i++) { free(optinfo[i].val); } free(optinfo); optinfo = NULL; n_stored_opts = 0; }
stored_options_cleanup
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void stretch_limits(double *targ, const gretl_matrix *minmax, int col, double margin) { double lo; double hi; double hlf; lo = minmax->val[col * minmax->rows]; hi = minmax->val[col * minmax->rows + 1]; hlf = (margin + margin + 1.0) * ((hi - lo) * 0.5); *targ = 0.5 * (lo + hi) - hlf; ...
static void stretch_limits(double *targ, const gretl_matrix *minmax, int col, double margin) { double lo = gretl_matrix_get(minmax, 0, col); double hi = gretl_matrix_get(minmax, 1, col); double mid = 0.5 * (lo + hi); double hlf = 0.5 * (hi - lo) * (1 + 2 * margin); targ[0] = mid - ...
stretch_limits
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *strftime_node(NODE *l, NODE *r, parser *p) { const char *v4; char *v5; int bytes; time_t t; const char *fmt; NODE *ret; double tx; tm tm; char buf[72]; unsigned long v14; v14 = __readfsqword(0x28u); ret = get_aux_node(p, 60, 0, 2); fmt = 0; if (!ret) return 0; tx = node_get_scal...
static NODE *strftime_node(NODE *l, NODE *r, parser *p) { NODE *ret = aux_string_node(p); const char *fmt = NULL; double tx; time_t t; if (ret == NULL) { return NULL; } tx = node_get_scalar(l, p); if (na(tx)) { p->err = E_INVARG; } else { t = (time_t)floor(tx); } if (r->t == STR) { ...
strftime_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int string_is_blank(const char *s) { const char *sa; int ret; sa = s; ret = 1; if (s) { while (*sa) { if (((*__ctype_b_loc())[*(unsigned char *)sa] & 0x2000) == 0 && *sa != 13 && *sa != 26) return 0; ++sa; } } return ret; }
int string_is_blank(const char *s) { int ret = 1; if (s != NULL) { while (*s) { if (!isspace((unsigned char)*s) && *s != '\r' && *s != CTRLZ) { ret = 0; break; } s++; } } return ret; }
string_is_blank
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int string_is_double(const char *s) { char *test[2]; test[1] = (char *)__readfsqword(0x28u); *__errno_location() = 0; strtod(s, test); return !*__errno_location() && !*test[0]; }
static int string_is_double(const char *s) { char *test; errno = 0; strtod(s, &test); return errno == 0 && *test == '\0'; }
string_is_double
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int string_is_translated(const char *s) { char *v1; if (!strcmp(s, "Hannan-Quinn") || !strcmp(s, "rho")) return 1; v1 = gettext(s); return strcmp(s, v1); }
static int string_is_translated(const char *s) { if (strcmp(s, "Hannan-Quinn") && strcmp(s, "rho")) { return strcmp(s, _(s)); } else { return 1; } }
string_is_translated
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *string_offset(NODE *l, NODE *r, parser *p) { char *v3; int n; int k; NODE *ret; char *p_0; ret = get_aux_node(p, 60, 0, 2); if (ret && (p->flags & 2) != 0) { n = g_utf8_strlen(l->v.str, -1); k = (int)r->v.xval; if (k >= 0) { if (k < n) { p_0 = (char *)g_utf8_offset_to_poin...
static NODE *string_offset(NODE *l, NODE *r, parser *p) { NODE *ret = aux_string_node(p); if (ret != NULL && starting(p)) { int n = g_utf8_strlen(l->v.str, -1); int k = r->v.xval; if (k < 0) { p->err = E_DATA; } else if (k >= n) { ret->v.str = gretl_strdup(""); } else { char ...
string_offset
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void string_print_range(const char *s, int lmin, int lmax, PRN *prn) { int l; int len; for (l = 0; *s && l < lmax; ++l) { len = strcspn(s, "\r\n"); if (l >= lmin) pprintf(prn, "%.*s\n", len, s); s += len; if (*s == 13) ++s; if (*s == 10) ++s; } }
static void string_print_range(const char *s, int lmin, int lmax, PRN *prn) { int len, l = 0; while (*s && l < lmax) { len = strcspn(s, "\r\n"); if (l >= lmin) { pprintf(prn, "%.*s\n", len, s); } s += len; if (*s == '\r') s++; if (*s == '\n') s++; l++; } }
string_print_range
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *string_range_node(const char *s, int r1, int r2, parser *p) { NODE *ret; if ((p->flags & 2) == 0) return get_aux_node(p, 0, 0, 0); ret = get_aux_node(p, 60, 0, 2); if (ret) ret->v.str = gretl_substring(s, r1, r2, &p->err); return ret; }
static NODE *string_range_node(const char *s, int r1, int r2, parser *p) { NODE *ret = NULL; if (starting(p)) { ret = aux_string_node(p); if (ret != NULL) { ret->v.str = gretl_substring(s, r1, r2, &p->err); } } else { ret = aux_any_node(p); } return ret; }
string_range_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *string_replace(NODE *src, NODE *n0, NODE *n1, NODE *call, parser *p) { char *v6; char *v7; int ns; int i; int f; NODE *ret; char **Ssrc; char **Snew; char **targ; NODE *n[2]; const char *S[3]; unsigned long v19; v19 = __readfsqword(0x28u); f = call->t; if ((p->flags & 2) == 0) r...
static NODE *string_replace(NODE *src, NODE *n0, NODE *n1, NODE *call, parser *p) { int f = call->t; if (!starting(p)) { return aux_any_node(p); } else { NODE *ret = NULL; NODE *n[2] = {n0, n1}; char const *S[3] = {NULL}; char **Ssrc = NULL; char **Snew = NULL;...
string_replace
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int string_series_assign_value(DATASET *dset, int i, int t, double x) { int err; series_table *st; err = 0; if (i <= 0 || i >= dset->v) return 2; if (fabs(x) <= 1.797693134862316e308) { if (floor(x) == x) { st = dset->varinfo[i]->st; if (st) { if (series_table_get_string(st, x)) ...
int string_series_assign_value(DATASET *dset, int i, int t, double x) { series_table *st = NULL; int err = 0; if (i <= 0 || i >= dset->v) { err = E_DATA; } else if (na(x)) { dset->Z[i][t] = x; } else if (x != floor(x)) { err = E_TYPES; } else if ((st = dset->varinfo[i]->st) == NULL) { err =...
string_series_assign_value
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int *string_table_copy_list(gretl_string_table *gst) { if (gst) return gretl_list_copy(gst->cols_list); else return 0; }
int *string_table_copy_list(gretl_string_table *gst) { if (gst != NULL) { return gretl_list_copy(gst->cols_list); } else { return NULL; } }
string_table_copy_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int string_table_count(const DATASET *dset, const int *list, int nvars) { int v3; int i; int n; n = 0; for (i = 1; i <= nvars; ++i) { v3 = savenum(list, i); if (is_string_valued(dset, v3)) ++n; } return n; }
static int string_table_count(const DATASET *dset, const int *list, int nvars) { int i, v, n = 0; for (i = 1; i <= nvars; i++) { v = savenum(list, i); if (is_string_valued(dset, v)) { n++; } } return n; }
string_table_count
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int string_table_replace_list(gretl_string_table *gst, int *newlist) { if (gst) { free(gst->cols_list); gst->cols_list = newlist; } return 2; }
int string_table_replace_list(gretl_string_table *gst, int *newlist) { if (gst != NULL) { free(gst->cols_list); gst->cols_list = newlist; } return E_DATA; }
string_table_replace_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *stringify_series(NODE *l, NODE *r, parser *p) { NODE *ret; ret = get_aux_node(p, 54, 0, 0); if (ret) { ret->v.xval = (double)series_set_string_vals(p->dset, l->vnum, r->v.a); if (ret->v.xval != 0.0) p->err = 2; } return ret; }
static NODE *stringify_series(NODE *l, NODE *r, parser *p) { NODE *ret = aux_scalar_node(p); if (ret != NULL) { ret->v.xval = series_set_string_vals(p->dset, l->vnum, r->v.a); if (ret->v.xval != 0.0) { p->err = E_DATA; } } return ret; }
stringify_series
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_array *strings_array_from_string(const char *s, int n, int *err) { char *v4; char *v5; int i; gretl_array *names; const char *sep; char *name; char *tmp; sep = ","; if (s) { tmp = gretl_strdup(s); if (tmp) { names = gretl_array_new(GRETL_TYPE_STRINGS, n, err); if (*err) { ...
static gretl_array *strings_array_from_string(const char *s, int n, int *err) { gretl_array *names = NULL; const char *sep = ","; char *tmp; int i; if (s == NULL) { *err = E_DATA; return NULL; } tmp = gretl_strdup(s); if (tmp == NULL) { *err = E_ALLOC; return NULL; } names = gretl...
strings_array_from_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int strings_array_null_check(gretl_array *A) { void **v1; int i; for (i = 0; i < A->n; ++i) { if (!A->data[i]) { v1 = &A->data[i]; *v1 = gretl_strdup(byte_330CC0); if (!A->data[i]) return 12; } } return 0; }
static int strings_array_null_check(gretl_array *A) { int i; for (i = 0; i < A->n; i++) { if (A->data[i] == NULL) { A->data[i] = gretl_strdup(""); if (A->data[i] == NULL) { return E_ALLOC; } } } return 0; }
strings_array_null_check
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char **strings_array_singleton(const char *s, int *err) { int len; char **S; len = strlen(s) + 1; S = strings_array_new_with_length(1, len); if (S) strcat(*S, s); else *err = 12; return S; }
static char **strings_array_singleton(const char *s, int *err) { int len = strlen(s) + 1; char **S = strings_array_new_with_length(1, len); if (S == NULL) { *err = E_ALLOC; } else { strcat(S[0], s); } return S; }
strings_array_singleton
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int strings_array_splice(char ***pS1, int *pn1, char **S2, int n2) { int i; int ia; int err; int n; int j; char **S; err = 0; if (!S2 || !n2) return 0; n = *pn1 + n2; S = (char **)realloc(*pS1, 8LL * n); if (!S) return 12; for (i = 0; i < n2; ++i) (&S[*pn1])[i] = 0; for (ia = 0; i...
static int strings_array_splice(char ***pS1, int *pn1, char **S2, int n2) { char **S = NULL; int i, j, n; int err = 0; if (S2 == NULL || n2 == 0) { return 0; } n = *pn1 + n2; S = realloc(*pS1, n * sizeof *S); if (S == NULL) { return E_ALLOC; } for (i = 0; i < n2; i++) { S[*pn1 + i] =...
strings_array_splice
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *stringvec_calc(NODE *l, NODE *r, NODE *n, parser *p) { long v5; size_t v6; double v7; int nr; int nl; int nx; int i; int t; int j; int f; int vl; int vr; int ll; int eq; int il; int ir; char **Sx; NODE *ret; char **Sl; char **Sr; char *slr; const char *sl; const char ...
static NODE *stringvec_calc(NODE *l, NODE *r, NODE *n, parser *p) { NODE *ret = NULL; const char *sl, *sr; char **Sx = NULL; int nr = 0, nx = 0; int vl, vr, f = n->t; int i, t, eq; if (f == B_POW && complex_strcalc_ok(n, p)) { ; } else if (f != B_EQ && f != B_NEQ) { p->err = E_TYPES; } if (...
stringvec_calc
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void strip_cr(gchar *s) { size_t v1; while (*s) { if (*s == 13 && s[1] == 10) { v1 = strlen(s); memmove(s, s + 1, v1); ++s; } ++s; } }
static void strip_cr(gchar *s) { while (*s) { if (*s == 0x0d && *(s + 1) == 0x0a) { memmove(s, s + 1, strlen(s)); s++; } s++; } }
strip_cr
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void strip_illegals(char *s) { int v1; int i; int j; char name[40]; unsigned long v5; v5 = __readfsqword(0x28u); memset(name, 0, 32); j = 0; for (i = 0; s[i]; ++i) { if (((*__ctype_b_loc())[s[i]] & 8) != 0 || s[i] == 95) { v1 = j++; name[v1] = s[i]; } } name[j] = 0; strcpy(s...
static void strip_illegals(char *s) { char name[VNAMELEN] = {0}; int i, j = 0; for (i = 0; s[i] != '\0'; i++) { if (isalnum(s[i]) || s[i] == '_') { name[j++] = s[i]; } } name[j] = '\0'; strcpy(s, name); }
strip_illegals
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int strip_inline_comments(char *s) { int ret; _BOOL4 quoted; int braced; char *p; ret = 0; if (*s == 35) return 1; if (strchr(s, 35)) { quoted = 0; braced = 0; for (p = s; *p; ++p) { if (*p == 34 && (p == s || *(p - 1) != 92)) { quoted = !quoted; } else if (!quoted) { ...
static int strip_inline_comments(char *s) { int ret = 0; if (*s == '#') { ret = 1; } else if (strstr(s, "#")) { int quoted = 0; int braced = 0; char *p = s; while (*p) { if (bare_quote(p, s)) { quoted = !quoted; } else if (!quoted) { if (*p == '{') { br...
strip_inline_comments
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void strip_newline(char *s) { int i; if (s && *s) { for (i = strlen(s) - 1; i >= 0 && (s[i] == 10 || s[i] == 13); --i) s[i] = 0; } }
static void strip_newline(char *s) { if (s != NULL && *s != '\0') { int i, len = strlen(s); for (i = len - 1; i >= 0; i--) { if (s[i] == '\n' || s[i] == '\r') { s[i] = '\0'; } else { break; } } } }
strip_newline
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *strptime_node(NODE *l, NODE *r, parser *p) { int ymd; char *fmt; char *src; char *s; NODE *ret; gchar *buf; tm tm; unsigned long v12; v12 = __readfsqword(0x28u); ret = get_aux_node(p, 54, 0, 0); fmt = 0; src = 0; ymd = -1; if (!ret) return 0; if (l->t == 60) src = l->v.str; ...
static NODE *strptime_node(NODE *l, NODE *r, parser *p) { NODE *ret = aux_scalar_node(p); const char *fmt = NULL; const char *src = NULL; int ymd = -1; if (ret == NULL) { return NULL; } if (l->t == STR) { src = l->v.str; } else { ymd = node_get_int(l, p); } if (src == NULL) { if...
strptime_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *strsplit_node(int f, NODE *l, NODE *m, NODE *r, parser *p) { NODE *aux_node; const char *v6; char *v7; char *v8; int ns; int k; NODE *ret; const char *sep0; char *sep; const char *s; char **S; unsigned long v19; v19 = __readfsqword(0x28u); ret = 0; if ((p->flags & 2) == 0) retur...
static NODE *strsplit_node(int f, NODE *l, NODE *m, NODE *r, parser *p) { NODE *ret = NULL; if (starting(p)) { const char *s = l->v.str; const char *sep0 = NULL; char *sep = NULL; int k = 0; if (m != NULL) { if (m->t == STR) { sep0 = m->v.str; } else if (m->t != EMPTY) { ...
strsplit_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void strstr_escape(char *s) { int i; int n; n = strlen(s); for (i = 0; i < n; ++i) { if (s[i] == 92 && (!i || s[i - 1] != 92)) { if (s[i + 1] == 110) { s[i] = 10; shift_string_left(&s[++i], 1u); } else if (s[i + 1] == 116) { s[i] = 9; shift_string_left(&s[++i], 1...
static void strstr_escape(char *s) { int i, n = strlen(s); for (i = 0; i < n; i++) { if (s[i] == '\\' && (i == 0 || s[i - 1] != '\\')) { if (s[i + 1] == 'n') { s[i] = '\n'; shift_string_left(s + i + 1, 1); i++; } else if (s[i + 1] == 't') { s[i] = '\t'; shift...
strstr_escape
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double struve(double v, double x) { double v2; double v4; double onef2err; double threef0err; double y; double ya; double f; double g; double t; double h; unsigned long v14; v14 = __readfsqword(0x28u); f = floor(v); if (v < 0.0 && v - f == 0.5) { y = cephes_bessel_Jv(-v, x); f = 1.0...
double struve(double v, double x) { double y, ya, f, g, h, t; double onef2err, threef0err; f = floor(v); if ((v < 0) && (v - f == 0.5)) { y = cephes_bessel_Jv(-v, x); f = 1.0 - f; g = 2.0 * floor(f / 2.0); if (g != f) y = -y; return y; } t = 0.25 * x * x; f = fabs(x); g = 1.5...
struve
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void strval_saver_destroy(strval_saver *ss_0) { if (ss_0) { free(ss_0->list); gretl_matrix_free(ss_0->X); free(ss_0->st); free(ss_0); } }
static void strval_saver_destroy(strval_saver *ss) { if (ss != NULL) { free(ss->list); gretl_matrix_free(ss->X); free(ss->st); free(ss); } }
strval_saver_destroy
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void strval_saver_restore(DATASET *dset, strval_saver *ss_0) { int i; int n; int v; double *x; x = ss_0->X->val; n = ss_0->X->rows; for (i = 1; i <= *ss_0->list; ++i) { v = ss_0->list[i]; if (ss_0->st[i - 1]) { series_destroy_string_table(dset, v); series_attach_string_table(dset, v, ...
static void strval_saver_restore(DATASET *dset, strval_saver *ss) { double *x = ss->X->val; int n = ss->X->rows; int i, v; for (i = 1; i <= ss->list[0]; i++) { v = ss->list[i]; if (ss->st[i - 1] != NULL) { series_destroy_string_table(dset, v); series_attach_string_table(dset, v, ss->st[i - ...
strval_saver_restore
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
strval_saver *strval_saver_setup(DATASET *dset, int nvars, int nsv, int *list, int *err) { int v6; series_table **v7; int changed; int n_changed; int i; int j; int n; int v; strval_saver *ss_0; double *x; unsigned long v19; v19 = __readfsqword(0x28u); n_change...
static strval_saver *strval_saver_setup(DATASET *dset, int nvars, int nsv, int *list, int *err) { strval_saver *ss; int n_changed = 0; int i, n; ss = calloc(1, sizeof *ss); if (ss == NULL) { *err = E_ALLOC; return NULL; } n = sample_size(dset); ss->list ...
strval_saver_setup
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double student_cdf(double df_0, double x) { double p; p = NAN; if (df_0 > 0.0) { p = stdtr(df_0, x); if (get_cephes_errno()) return NAN; } return p; }
double student_cdf(double df, double x) { double p = NADBL; if (df > 0) { p = stdtr(df, x); if (get_cephes_errno()) { p = NADBL; } } return p; }
student_cdf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double student_cdf_comp(double df_0, double x) { double p; double pa; p = NAN; if (df_0 > 0.0) { if (x <= 0.0) { pa = stdtr(df_0, x); if (get_cephes_errno()) return NAN; else return 1.0 - pa; } else { p = stdtr(df_0, -x); if (get_cephes_errno()) ret...
static double student_cdf_comp(double df, double x) { double p = NADBL; if (df > 0) { if (x > 0) { p = stdtr(df, -x); if (get_cephes_errno()) { p = NADBL; } } else { p = stdtr(df, x); if (get_cephes_errno()) { p = NADBL; } else { p = 1 - p; ...
student_cdf_comp
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double student_cdf_inverse(double df_0, double a) { double x; if (df_0 < 0.0) return NAN; x = stdtri(df_0, a); if (get_cephes_errno()) return NAN; return x; }
double student_cdf_inverse(double df, double a) { double x; if (df < 0) { return NADBL; } x = stdtri(df, a); if (get_cephes_errno()) { x = NADBL; } return x; }
student_cdf_inverse
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double student_critval(double df_0, double a) { double x; if (df_0 < 0.0) return NAN; if (a <= 0.1) x = -stdtri(df_0, a); else x = stdtri(df_0, 1.0 - a); if (get_cephes_errno()) return NAN; return x; }
double student_critval(double df, double a) { double x; if (df < 0) { return NADBL; } if (a > .10) { x = stdtri(df, 1 - a); } else { x = -stdtri(df, a); } if (get_cephes_errno()) { x = NADBL; } return x; }
student_critval
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double student_pdf(double m, double x) { double xa; double ma; ma = m; xa = x; student_pdf_array(m, &xa, 1); return xa; }
static double student_pdf(double m, double x) { student_pdf_array(m, &x, 1); return x; }
student_pdf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int student_pdf_array(double m, double *x, int n) { double v3; int i; int ia; int err; double x1; err = 0; *__errno_location() = 0; if (m <= 0.0 || fabs(m) > 1.797693134862316e308) { err = 2; } else { v3 = Binv(m * 0.5, 0.5); x1 = v3 / sqrt(m); if (*__errno_location()) { err = 3...
static int student_pdf_array(double m, double *x, int n) { int i, err = 0; errno = 0; if (m > 0 && !na(m)) { double x1 = Binv(0.5 * m, 0.5) / sqrt(m); double x3 = 0.5 * (m + 1.0); double x2; if (errno) { err = E_NAN; } else { for (i = 0; i < n; i++) { if (!na(x[i])) { ...
student_pdf_array
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double student_pvalue_1(double df_0, double x) { double p; double pa; p = NAN; if (df_0 > 0.0) { pa = stdtr(df_0, x); if (get_cephes_errno()) { return NAN; } else if (pa < 1.0) { return 1.0 - pa; } else { return 0.0; } } return p; }
double student_pvalue_1(double df, double x) { double p = NADBL; if (df > 0) { p = stdtr(df, x); if (get_cephes_errno()) { p = NADBL; } else { p = (p >= 1.0) ? 0.0 : 1 - p; } } return p; }
student_pvalue_1
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double student_pvalue_2(double df_0, double x) { double p; double pa; p = NAN; if (df_0 > 0.0) { if (x >= 0.0) pa = stdtr(df_0, -x); else pa = stdtr(df_0, x); if (get_cephes_errno()) return NAN; else return pa + pa; } return p; }
double student_pvalue_2(double df, double x) { double p = NADBL; if (df > 0) { if (x < 0.0) { p = stdtr(df, x); } else { p = stdtr(df, -x); } if (get_cephes_errno()) { p = NADBL; } else { p *= 2; } } return p; }
student_pvalue_2
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void *sub_addr_get_data(NODE *t, GretlType *ptype, user_var **puv) { GretlType ref_type; GretlType type; int err; int idx; NODE *l; NODE *r; gretl_array *a; void *elem; unsigned long v13; v13 = __readfsqword(0x28u); l = t->L; r = t->R; a = l->v.a; type = GRETL_TYPE_NONE; err = 0; idx = ...
static void *sub_addr_get_data(NODE *t, GretlType *ptype, user_var **puv) { NODE *l = t->L, *r = t->R; gretl_array *a = l->v.ptr; GretlType type = 0; void *elem; int idx, err = 0; idx = get_single_element(r->v.mspec, NULL); elem = gretl_array_get_element(a, idx - 1, &type, &err); *ptype = (elem == NULL...
sub_addr_get_data
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int submask_cmp(const char *m1, const char *m2) { const char *v2; long v4; long v5; const char *m2a; const char *m1a; m1a = m1; m2a = v2; if (*(_OWORD *)&m1 == 0) return 0; if (!m1 || !v4) return 1; if (m1 == (const char *)3735928559LL || v5 == 3735928559LL) return *(_OWORD *)&m1 != __P...
int submask_cmp(const char *m1, const char *m2) { if (m1 == NULL && m2 == NULL) { return 0; } else if (m1 == NULL || m2 == NULL) { return 1; } if (m1 == RESAMPLED || m2 == RESAMPLED) { return m1 != RESAMPLED || m2 != RESAMPLED; } while (*m1 != SUBMASK_SENTINEL && *m2 != SUBMASK_SENTINEL) { ...
submask_cmp
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int submasks_match(const DATASET *dset, const MODEL *pmod) { __int128 s1; *(_QWORD *)&s1 = dset->submask; *((_QWORD *)&s1 + 1) = pmod->submask; if (s1 == __PAIR128__(3735928559LL, 3735928559LL)) return dset->n == pmod->full_n && dset->rseed == pmod->smpl.rseed; return (_QWORD)s1 != 3735928559LL && *((_QW...
static int submasks_match(const DATASET *dset, const MODEL *pmod) { char *s1 = dset->submask; char *s2 = pmod->submask; if (s1 == RESAMPLED && s2 == RESAMPLED) { return dset->n == pmod->full_n && dset->rseed == pmod->smpl.rseed; } else if (s1 == RESAMPLED || s2 == RESAMPLED) { return 0; } else { ...
submasks_match
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0