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
int set_odbc_dsn(const char *line, PRN *prn) { int got_plugin; int err; char *dbname; char *uname; char *pword; int (*check_dsn)(ODBC_info *); got_plugin = 0; gretl_odbc_cleanup(); dbname = get_dsn_field("dsn", line); if (dbname) { uname = get_dsn_field("user", line); pword = get_dsn_field(...
int set_odbc_dsn(const char *line, PRN *prn) { int (*check_dsn)(ODBC_info *); char *dbname = NULL; char *uname = NULL; char *pword = NULL; int got_plugin = 0; int err = 0; gretl_odbc_cleanup(); dbname = get_dsn_field("dsn", line); if (dbname == NULL) { pputs(prn, "You must specify a DSN using 'd...
set_odbc_dsn
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_omp_mnk_min(int n) { if (n < -1) return 2; omp_mnk_min = n; return 0; }
int set_omp_mnk_min(int n) { if (n < -1) { return E_DATA; } else { omp_mnk_min = n; return 0; } }
set_omp_mnk_min
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_omp_n_threads(int n) { unsigned int v1; char *v2; if (n > 0 && n <= gretl_n_processors()) { omp_n_threads = n; omp_set_num_threads((unsigned int)n); if (blas_is_openblas()) blas_set_num_threads(n); return 0; } else { v1 = gretl_n_processors(); v2 = gettext("omp_num_threads...
int set_omp_n_threads(int n) { #if defined(_OPENMP) if (n < 1 || n > gretl_n_processors()) { gretl_errmsg_sprintf(_("omp_num_threads: must be >= 1 and <= %d"), gretl_n_processors()); return E_DATA; } else { omp_n_threads = n; omp_set_num_threads(n); if (blas_is_openblas(...
set_omp_n_threads
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_options_for_command(const char *cmdword, const char *param, gretlopt opt) { char *v3; char *v5; int flags; int clear; int err; int target_ci; target_ci = gretl_command_number(cmdword); flags = 1; clear = 0; err = 0; if (!target_ci || target_ci == 119) { v3 ...
int set_options_for_command(const char *cmdword, const char *param, gretlopt opt) { int target_ci = gretl_command_number(cmdword); int flags = OPT_SETOPT; int clear = 0; int err = 0; if (target_ci == 0 || target_ci == SETOPT) { gretl_errmsg_sprintf(_("field '%s' in command is ...
set_options_for_command
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_optval_double(int ci, gretlopt opt, double x) { char *v3; char s[40]; unsigned long v6; v6 = __readfsqword(0x28u); gretl_push_c_numeric_locale(); sprintf(s, "%g", x); gretl_pop_c_numeric_locale(); v3 = gretl_strdup(s); return real_push_option(ci, opt, v3, 1, 0); }
int set_optval_double(int ci, gretlopt opt, double x) { char s[32]; gretl_push_c_numeric_locale(); sprintf(s, "%g", x); gretl_pop_c_numeric_locale(); return real_push_option(ci, opt, gretl_strdup(s), 1, 0); }
set_optval_double
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_optval_int(int ci, gretlopt opt, int k) { char *s; s = gretl_strdup_printf("%d", k); return real_push_option(ci, opt, s, 1, 0); }
int set_optval_int(int ci, gretlopt opt, int k) { char *s = gretl_strdup_printf("%d", k); return real_push_option(ci, opt, s, 1, 0); }
set_optval_int
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_optval_string(int ci, gretlopt opt, const char *s) { char *scpy; scpy = gretl_strdup(s); if (scpy) return real_push_option(ci, opt, scpy, 1, 0); else return 12; }
int set_optval_string(int ci, gretlopt opt, const char *s) { char *scpy = gretl_strdup(s); if (scpy == NULL) { return E_ALLOC; } else { return real_push_option(ci, opt, scpy, 1, 0); } }
set_optval_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_panel_group_strings(const char *vname, const char *grpnames, DATASET *dset) { int err; int ns; int v; int i; int g; int ng; int orig_v; const char *namestr; char **S; char *gen; series_table *st; unsigned long v16; v16 = __readfsqword(0x28u); namestr = 0;...
int set_panel_group_strings(const char *vname, const char *grpnames, DATASET *dset) { const char *namestr = NULL; char **S = NULL; int ng = dset->n / dset->pd; int v, orig_v = dset->v; int err = 0; if (vname == NULL || *vname == '\0') { return E_DATA; } if (grpnames == ...
set_panel_group_strings
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_panel_groups_name(DATASET *dset, const char *vname) { if (dset->pangrps) free(dset->pangrps); dset->pangrps = gretl_strdup(vname); if (dset->pangrps) return 0; else return 12; }
int set_panel_groups_name(DATASET *dset, const char *vname) { if (dset->pangrps != NULL) { free(dset->pangrps); } dset->pangrps = gretl_strdup(vname); return (dset->pangrps == NULL) ? E_ALLOC : 0; }
set_panel_groups_name
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_panel_hccme(const char *s) { if (!check_for_state()) { if (!strcmp(s, "Arellano")) { state->flags &= ~0x10u; } else if (!strcmp(s, "PCSE")) { state->flags |= 0x10u; } } }
void set_panel_hccme(const char *s) { if (check_for_state()) return; if (!strcmp(s, "Arellano")) { state->flags &= ~USE_PCSE; } else if (!strcmp(s, "PCSE")) { state->flags |= USE_PCSE; } }
set_panel_hccme
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_panel_sample(const char *start, const char *stop, gretlopt opt, DATASET *dset) { const char *v4; char *v5; char *v7; char *v8; char *v9; int err; int tmin; int tmax; int s2; int s1; int t1; int t2; unsigned long v18; v18 = __readfsqword(0x28u); err = 0; if (...
int set_panel_sample(const char *start, const char *stop, gretlopt opt, DATASET *dset) { int s1, s2, err = 0; if (!dataset_is_panel(dset)) { gretl_errmsg_sprintf(_("%s: inapplicable option"), print_flags(opt, SMPL)); return E_BADOPT; } s1 = smpl_get_int(start, dset, &err); if (!...
set_panel_sample
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_panel_structure_from_varnames(const char *uname, const char *tname, DATASET *dset) { int uv; int tv; int err; int n; unsigned long v9; v9 = __readfsqword(0x28u); n = dset->n; uv = 0; tv = 0; err = 0; err = uv_tv_from_varnames(uname, tname, dset, &uv, ...
int set_panel_structure_from_varnames(const char *uname, const char *tname, DATASET *dset) { int n = dset->n; int uv = 0, tv = 0; int err = 0; err = uv_tv_from_varnames(uname, tname, dset, &uv, &tv); if (!err) { err = check_index_values(dset->Z[uv], n); } if (!...
set_panel_structure_from_varnames
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_panel_structure_from_vars(int uv, int tv, DATASET *dset) { char *v4; int ustrs; int err; int n; int totmiss; int fulln; int nunits; int nperiods; int subsampled; char *mask; double *uid; double *tid; unsigned long v18; v18 = __readfsqword(0x28u); uid = 0; tid = 0; mask = 0; ...
int set_panel_structure_from_vars(int uv, int tv, DATASET *dset) { int subsampled, presorted; double *uid = NULL; double *tid = NULL; char *mask = NULL; int n = dset->n; int totmiss = 0; int fulln = 0; int nunits = 0; int nperiods = 0; int ustrs = 0; int err = 0; subsampled = complex_subsampled...
set_panel_structure_from_vars
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_parsing_query(int s) { parsing_query = s; }
void set_parsing_query(int s) { parsing_query = s; }
set_parsing_query
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_pkgdir(fnpkg *pkg) { char *p; char *pkgdir; p = strrslash(pkg->fname); if (p) { pkgdir = gretl_strndup(pkg->fname, p - pkg->fname); gretl_insert_builtin_string("pkgdir", pkgdir); free(pkgdir); } }
static void set_pkgdir(fnpkg *pkg) { const char *p = strrslash(pkg->fname); if (p != NULL) { char *pkgdir = gretl_strndup(pkg->fname, p - pkg->fname); gretl_insert_builtin_string("pkgdir", pkgdir); free(pkgdir); } }
set_pkgdir
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_plot_limits(gretl_bundle *opts, const gretl_matrix *bbox, double *xlim, double *ylim, double margin) { gretl_matrix *mxy; gretl_matrix *mx; gretl_matrix *my; mxy = gretl_bundle_get_matrix(opts, "mxy__", 0); if (mxy) { *xlim = *mxy->val; xlim[1] = mxy->val[1]; *ylim =...
static void set_plot_limits(gretl_bundle *opts, const gretl_matrix *bbox, double *xlim, double *ylim, double margin) { const gretl_matrix *mxy, *mx, *my; mxy = gretl_bundle_get_matrix(opts, "mxy__", NULL); if (mxy != NULL) { xlim[0] = mxy->val[0]; xlim[1] = mxy->val[1]; yl...
set_plot_limits
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_plot_produced() { plot_ok = 1; }
void set_plot_produced(void) { plot_ok = 1; }
set_plot_produced
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_plotfit_formula(GPT_LINE *line, FitType f, const double *b, double x0, double pd) { gchar *s; char x[40]; unsigned long v8; v8 = __readfsqword(0x28u); s = 0; g_free(line->formula); line->formula = 0; gretl_push_c_numeric_locale(); if (fabs(x0) > 1.797693134862316e308...
static void set_plotfit_formula(GPT_LINE *line, FitType f, const double *b, double x0, double pd) { gchar *s = NULL; char x[32]; g_free(line->formula); line->formula = NULL; gretl_push_c_numeric_locale(); if (!na(x0)) { if (pd > 1) { sprintf(x, "(%.1f*(x-%.8g)+1)"...
set_plotfit_formula
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_plotfit_line(GPT_LINE *line, FitType f, const double *b, double x0, double pd) { char v5; double v6; unsigned int v7; double v8; unsigned int v9; double v10; long v11; double v12; unsigned int v13; double v14; unsigned int v15; double v16; unsigned int v17; dou...
void set_plotfit_line(GPT_LINE *line, FitType f, const double *b, double x0, double pd) { char xc = (na(x0)) ? 'X' : 't'; gchar *s = NULL; g_free(line->title); line->title = NULL; if (f == PLOT_FIT_OLS) { s = g_strdup_printf("Y = %#.3g %c %#.3g%c", b[0], (b[1] > 0) ? '+' : '-', ...
set_plotfit_line
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_plotstyle(const char *style) { int to_classic; to_classic = 0; if (!strcmp(style, "classic") || !strcmp(style, "default")) to_classic = 1; if (!strcmp(style, gp_style)) return 0; if (to_classic && !gp_style[0]) return 0; if (to_classic) { g_free(alt_sty); alt_sty = 0; gp_sty...
int set_plotstyle(const char *style) { int to_classic = 0; if (!strcmp(style, "classic") || !strcmp(style, "default")) { to_classic = 1; } if (!strcmp(style, gp_style)) { return 0; } else if (to_classic && *gp_style == '\0') { return 0; } else if (to_classic) { g_free(alt_sty); alt_s...
set_plotstyle
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_previous_depth(int d) { previous_d = d; }
void set_previous_depth(int d) { previous_d = d; }
set_previous_depth
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_query_stop_func(QUERY_STOP query) { query_stop = query; }
void set_query_stop_func(QUERY_STOP query) { query_stop = query; }
set_query_stop_func
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_reference_missmask_from_model(const MODEL *pmod) { if (pmod) { if (refmask) { free(refmask); refmask = 0; } if (pmod->missmask) { refmask = gretl_strdup(pmod->missmask); } else if (model_has_missing_obs(pmod)) { refmask = build_refmask_from_model(pmod); } } }
void set_reference_missmask_from_model(const MODEL *pmod) { if (pmod != NULL) { if (refmask != NULL) { free(refmask); refmask = NULL; } if (pmod->missmask != NULL) { refmask = gretl_strdup(pmod->missmask); } else if (model_has_missing_obs(pmod)) { refmask = build_refmask_from_m...
set_reference_missmask_from_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_row(gretl_matrix *targ, int t, double x) { int i; for (i = 0; i < targ->cols; ++i) targ->val[i * targ->rows + t] = x; }
static void set_row(gretl_matrix *targ, int t, double x) { int i; for (i = 0; i < targ->cols; i++) { gretl_matrix_set(targ, t, i, x); } }
set_row
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_sample(const char *start, const char *stop, DATASET *dset, gretlopt opt) { char *v5; char *v6; char *v7; char *v8; gretlopt opta; int tmin; int tmax; int new_t1; int new_t2; int err; int nf; int T; unsigned long v18; v18 = __readfsqword(0x28u); new_t1 = dset->t1; ...
int set_sample(const char *start, const char *stop, DATASET *dset, gretlopt opt) { int nf, new_t1 = dset->t1, new_t2 = dset->t2; int tmin = 0, tmax = 0; int err = 0; if (dset == NULL) { return E_NODATA; } opt &= ~OPT_Q; if (opt != OPT_NONE && opt != OPT_T) { return E_BADOPT; } ...
set_sample
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_scalar_edit_callback(void *callback) { scalar_edit_callback = (void (*)(void))callback; }
void set_scalar_edit_callback(void(*callback)) { scalar_edit_callback = callback; }
set_scalar_edit_callback
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_sel_vector(matrix_subspec *spec, int r, gretl_matrix *m) { int rows; int i; int err; int nneg; int n; double x; if (m) { if (m->cols == 1) { rows = m->rows; } else if (m->rows == 1) { rows = m->cols; } else { rows = 0; } } else { rows = 0; } n = rows; ...
static int set_sel_vector(matrix_subspec *spec, int r, gretl_matrix *m) { int i, n = gretl_vector_get_length(m); int err = 0; if (n > 0) { double x; int nneg = 0; for (i = 0; i < n && !err; i++) { x = m->val[i]; if (x == 0 || na(x) || x != floor(x)) { err = E_DATA; } ...
set_sel_vector
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_series_obs_value(NODE *lhs, NODE *rhs, parser *p) { double *v4; int op; int t; int ta; int v; const char *label; double x; double xa; NODE *lh1; NODE *lh2; double **Z; lh1 = lhs->L; lh2 = lhs->R; Z = p->dset->Z; label = 0; x = NAN; op = p->op; if (lh1->t != 55 || lh2->t != 5...
static int set_series_obs_value(NODE *lhs, NODE *rhs, parser *p) { NODE *lh1 = lhs->L; NODE *lh2 = lhs->R; double **Z = p->dset->Z; char *label = NULL; double x = NADBL; int op = p->op; int v, t; if (lh1->t == SERIES && (lh2->t == NUM || lh2->t == MSPEC)) { ; } else { return E_TYPES; } v...
set_series_obs_value
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_server_paths() { if (SF_CGI <= 0) { dbserver = wf_dbserver; dbcgi = wf_dbcgi; } else { dbserver = sf_dbserver; dbcgi = sf_dbcgi; } if (SF_CGI <= 1) { gretlhost = wf_gretlhost; datacgi = wf_datacgi; } else { gretlhost = sf_gretlhost; datacgi = sf_datacgi; } }
static void set_server_paths(void) { if (SF_CGI > 0) { dbserver = sf_dbserver; dbcgi = sf_dbcgi; } else { dbserver = wf_dbserver; dbcgi = wf_dbcgi; } if (SF_CGI > 1) { gretlhost = sf_gretlhost; datacgi = sf_datacgi; } else { gretlhost = wf_gretlhost; datacgi = wf_datacgi; } }
set_server_paths
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_shadecolor(gretlRGB color) { user_extra_color[1] = color; }
void set_shadecolor(gretlRGB color) { user_extra_color[1] = color; }
set_shadecolor
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_show_activity_func(SHOW_ACTIVITY_FUNC func) { sfunc = func; }
void set_show_activity_func(SHOW_ACTIVITY_FUNC func) { sfunc = func; }
set_show_activity_func
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_simd_k_max(int k) { simd_k_max = k; }
void set_simd_k_max(int k) { simd_k_max = k; }
set_simd_k_max
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_simd_mn_min(int mn) { simd_mn_min = mn; }
void set_simd_mn_min(int mn) { simd_mn_min = mn; }
set_simd_mn_min
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_special_plot_size(float width, float height) { special_width = width; special_height = height; }
void set_special_plot_size(float width, float height) { special_width = width; special_height = height; }
set_special_plot_size
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_stored_options(int ci, gretlopt opt, int flags) { gretlopt opta; int i; int got_ci; gretl_option *gopt; opta = opt; got_ci = 0; if ((ci == 5 || ci == 6 || ci == 7 || ci == 8 || ci == 28 || ci == 30 || ci == 47 || ci == 49 || ci == 52 || ci == 55 || ci == 60 || ci == 134 || ci == 64...
static void set_stored_options(int ci, gretlopt opt, int flags) { int i, got_ci = 0; #if OPTDEBUG fprintf(stderr, "setting stored options for %s (%d): ", gretl_command_word(ci), ci); debug_print_option_flags(NULL, opt); #endif if (vcv_opt_ok(ci) && (opt & OPT_O)) { real_push_option(ci, OPT_O, NU...
set_stored_options
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_string(gretl_array *A, int i, char *s, int copy) { void **v4; int err; err = 0; if (copy) { v4 = &A->data[i]; *v4 = gretl_strdup(s); if (!A->data[i]) return 12; } else { A->data[i] = s; } return err; }
static int set_string(gretl_array *A, int i, char *s, int copy) { int err = 0; if (copy) { A->data[i] = gretl_strdup(s); if (A->data[i] == NULL) { err = E_ALLOC; } } else { A->data[i] = s; } return err; }
set_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_string_setvar(char *targ, const char *s, int len) { char *p; *targ = 0; if (*s == 34) { p = strchr(s + 1, 34); if (!p) return 18; strncat(targ, s + 1, p - s - 1); } else { strncat(targ, s, len); } return 0; }
static int set_string_setvar(char *targ, const char *s, int len) { *targ = '\0'; if (*s == '"') { const char *p = strchr(s + 1, '"'); if (p == NULL) { return E_PARSE; } else { strncat(targ, s + 1, p - s - 1); } } else { strncat(targ, s, len); } return 0; }
set_string_setvar
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_string_table_written() { paths.status |= 1u; }
void set_string_table_written(void) { paths.status |= STRING_TABLE_WRITTEN; }
set_string_table_written
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_string_value(NODE *lhs, NODE *rhs, parser *p) { char *opstr; char *v4; long v6; char *v7; long v8; size_t v9; int err; int idx; NODE *lh1; NODE *lh2; char *s1; char *s2; char *tmp; user_var *uv; unsigned long v19; v19 = __readfsqword(0x28u); lh1 = lhs->L; lh2 = lhs->R; s1 ...
static int set_string_value(NODE *lhs, NODE *rhs, parser *p) { NODE *lh1 = lhs->L; NODE *lh2 = lhs->R; char *s1 = NULL; char *s2 = NULL; int idx = 0, err = 0; if (p->op != B_ASN) { gretl_errmsg_sprintf(_("'%s' : not implemented for this type"), get_opstr(p->op)); return E_T...
set_string_value
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_sys_flags_from_opt(equation_system *sys, gretlopt opt) { int flags; char *v3; int v5; int v6; sys->flags = 0; if ((opt & 0x20000) != 0) { if (sys->method != 4) { v3 = gettext("Invalid option '--%s'"); gretl_errmsg_sprintf(v3, "robust"); return 38; } flags = sys->flags;...
static int set_sys_flags_from_opt(equation_system *sys, gretlopt opt) { sys->flags = 0; if (opt & OPT_R) { if (sys->method == SYS_METHOD_OLS) { sys->flags |= SYSTEM_ROBUST; } else { gretl_errmsg_sprintf(_("Invalid option '--%s'"), "robust"); return E_BADOPT; } } if (opt & OPT_I) ...
set_sys_flags_from_opt
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_term_type_from_fname(const char *fname) { if (has_suffix(fname, ".eps")) { this_term_type = 2; } else if (has_suffix(fname, ".ps")) { this_term_type = 2; } else if (has_suffix(fname, ".pdf")) { this_term_type = 3; } else if (has_suffix(fname, ".png")) { this_term_type = 1; } else if (h...
static int set_term_type_from_fname(const char *fname) { if (has_suffix(fname, ".eps")) { this_term_type = GP_TERM_EPS; } else if (has_suffix(fname, ".ps")) { this_term_type = GP_TERM_EPS; } else if (has_suffix(fname, ".pdf")) { this_term_type = GP_TERM_PDF; } else if (has_suffix(fname, ".png")) { ...
set_term_type_from_fname
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *set_tex_locale_filename(char *local) { const char *lang; char lstr[3]; unsigned long v4; v4 = __readfsqword(0x28u); lang = getenv("LANG"); *local = 0; if (lang) { memset(lstr, 0, sizeof(lstr)); strncat(lstr, lang, 2u); sprintf(local, "gretlpre_%s.tex", lstr); } return local; }
static const char *set_tex_locale_filename(char *local) { char *lang = getenv("LANG"); *local = '\0'; if (lang != NULL) { char lstr[3] = {0}; strncat(lstr, lang, 2); sprintf(local, "gretlpre_%s.tex", lstr); } return local; }
set_tex_locale_filename
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_tex_param_format(const char *s) { const char *sa; int i; int ia; int ib; int ic; int n; int na; int err; const char *p; sa = s; p = s; n = 0; err = 0; if (s && strcmp(s, "default")) { for (i = 0; i <= 3; ++i) colspec[8 * i] = 0; ia = 0; while (ia <= 3) { if (...
int set_tex_param_format(const char *s) { const char *p = s; int i, n = 0; int err = 0; if (s == NULL || !strcmp(s, "default")) { use_custom = 0; return 0; } for (i = 0; i < 4; i++) { colspec[i][0] = '\0'; } i = 0; while (i < 4) { if (*s == '|' || *s == '\0') { if (n > 7) { ...
set_tex_param_format
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_tex_use_pdf(const char *prog) { const char *v1; char *p; char test[4]; unsigned long v4; v4 = __readfsqword(0x28u); p = strrslash(prog); if (p) v1 = p + 1; else v1 = prog; test[0] = 0; strncat(test, v1, 3u); gretl_lower(test); use_pdf = strcmp(test, "pdf") == 0; }
void set_tex_use_pdf(const char *prog) { const char *p = strrslash(prog); char test[4]; p = (p == NULL) ? prog : p + 1; *test = '\0'; strncat(test, p, 3); gretl_lower(test); use_pdf = !strcmp(test, "pdf"); }
set_tex_use_pdf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_time_format(obskey *auto_keys, const char *fmt) { if (auto_keys->timefmt) free(auto_keys->timefmt); auto_keys->timefmt = gretl_strdup(fmt); if (auto_keys->timefmt) return 0; else return 12; }
static int set_time_format(obskey *auto_keys, const char *fmt) { if (auto_keys->timefmt != NULL) { free(auto_keys->timefmt); } auto_keys->timefmt = gretl_strdup(fmt); return auto_keys->timefmt == NULL ? E_ALLOC : 0; }
set_time_format
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_to_NA(double *x, int n) { int i; for (i = 0; i < n; ++i) x[i] = NAN; }
static void set_to_NA(double *x, int n) { int i; for (i = 0; i < n; i++) { x[i] = NADBL; } }
set_to_NA
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_tseries_hccme(const char *s) { const char *sa; sa = s; if (!check_for_state()) { if (!strcmp(s, "HAC")) { libset_set_bool(FORCE_HC, 0); } else { if (!strncmp(s, "HC", 2u)) sa = s + 2; if (!parse_libset_int_code(HC_VERSION, sa)) libset_set_bool(FORCE_HC, 1); ...
void set_tseries_hccme(const char *s) { if (check_for_state()) return; if (!strcmp(s, "HAC")) { libset_set_bool(FORCE_HC, 0); } else { if (!strncmp(s, "HC", 2)) { s += 2; } if (parse_libset_int_code(HC_VERSION, s) == 0) { libset_set_bool(FORCE_HC, 1); } } }
set_tseries_hccme
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_type_error(gretl_array *A, GretlType required) { const char *name; const char *v4; GretlType reqt; if (A->type == GRETL_TYPE_ANY) { A->type = required; return 0; } else if (required == A->type) { return 0; } else { reqt = gretl_type_get_singular(required); name = gretl_type_get_...
static int set_type_error(gretl_array *A, GretlType required) { if (A->type == GRETL_TYPE_ANY) { A->type = required; return 0; } else if (A->type != required) { GretlType reqt = gretl_type_get_singular(required); gretl_errmsg_sprintf("Cannot add %s to array of %s", gretl_ty...
set_type_error
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_uf_array_from_names(fnpkg *pkg, char **names, int n, int priv) { int i; int ia; int j; ufunc **uf; ufunc *fun; uf = 0; for (i = 0; i < n; ++i) { for (j = 0; j < i; ++j) { if (!strcmp(names[j], names[i])) { gretl_errmsg_sprintf("Duplicated function name '%s'", names[i]); ...
static int set_uf_array_from_names(fnpkg *pkg, char **names, int n, int priv) { ufunc **uf = NULL; ufunc *fun; int i, j; for (i = 0; i < n; i++) { for (j = 0; j < i; j++) { if (!strcmp(names[j], names[i])) { gretl_errmsg_sprintf("Duplicated function name '%s'", names[i]); return E_DAT...
set_uf_array_from_names
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_underflow_warning(int n) { char *v1; gchar *msg; v1 = gettext("Data file contains %d subnormal values"); msg = (gchar *)g_strdup_printf(v1, (unsigned int)n); gretl_warnmsg_set(msg); g_free(msg); }
static void set_underflow_warning(int n) { gchar *msg; msg = g_strdup_printf(_("Data file contains %d subnormal values"), n); gretl_warnmsg_set(msg); g_free(msg); }
set_underflow_warning
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_up_ar_fcast_variance(const MODEL *pmod, int pmax, int npsi, double **pphi, double **ppsi, double **perrphi) { int err; double *errphi; double *psi; double *phi; err = 0; errphi = make_phi_from_arinfo(pmod->arinfo, pmax); psi = (double *)malloc(8LL * npsi); phi = (do...
static int set_up_ar_fcast_variance(const MODEL *pmod, int pmax, int npsi, double **pphi, double **ppsi, double **perrphi) { double *errphi = NULL; double *psi = NULL; double *phi = NULL; int err = 0; errphi = make_phi_from_arinfo(pmod->...
set_up_ar_fcast_variance
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_up_dcmt(int n, int self, unsigned int seed) { guint32 v4; int count; int i; int w; int p; int dseed; mt_struct **mtss; unsigned long v12; v12 = __readfsqword(0x28u); w = 32; p = 521; dseed = 4172; count = 0; mtss = get_mt_parameters_st(32, 521, 0, n - 1, 0x104Cu, &count); if (mtss...
static int set_up_dcmt(int n, int self, unsigned int seed) { mt_struct **mtss; int w = 32; int p = 521; int dseed = 4172; int i, count = 0; mtss = get_mt_parameters_st(w, p, 0, n - 1, dseed, &count); if (mtss == NULL) { fprintf(stderr, "Couldn't get MT parameters\n"); return E_DATA; } #if 0 ...
set_up_dcmt
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_up_jspec(joinspec *jspec, const char **vnames, int nvars, gretlopt opt, int any_wild, AggrType aggr, int midas_pd) { int v8; int i; int ia; int j; int ncols; ncols = nvars + 6; jspec->colnames = (const char **)malloc(8LL * (nvars + 6)); jspec->colnums = (int *)malloc(4LL * ncol...
static int set_up_jspec(joinspec *jspec, const char **vnames, int nvars, gretlopt opt, int any_wild, AggrType aggr, int midas_pd) { int i, j, ncols = JOIN_TARG + nvars; jspec->colnames = malloc(ncols * sizeof *jspec->colnames); jspec->colnums = malloc(ncols * sizeo...
set_up_jspec
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_up_outer_keys(joinspec *jspec, const DATASET *l_dset, gretlopt opt, const int *ikeyvars, int *okeyvars, obskey *auto_keys, int *str_keys) { short opta; int err; int lstr; int lstra; int rstrb; int rstr; int rstra; DATASET *r_dset; opta = opt; r_ds...
static int set_up_outer_keys(joinspec *jspec, const DATASET *l_dset, gretlopt opt, const int *ikeyvars, int *okeyvars, obskey *auto_keys, int *str_keys) { const DATASET *r_dset = outer_dataset(jspec); int lstr, rstr; int err = 0; if (jspec->colnums[JOIN...
set_up_outer_keys
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_user_var_callback(USER_VAR_FUNC callback) { user_var_callback = callback; }
void set_user_var_callback(USER_VAR_FUNC callback) { user_var_callback = callback; }
set_user_var_callback
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_var_info(const int *list, const char *parm1, const char *parm2, gretlopt opt, DATASET *dset) { char *v6; short opta; int i; int err; int v; int vi; int ivals; int isdum; const char *s; const char *s_0; opta = opt; v = list[1]; err = 0; if (!dset || !dset->varinfo) ...
static int set_var_info(const int *list, const char *parm1, const char *parm2, gretlopt opt, DATASET *dset) { int vi, v = list[1]; int i, err = 0; if (dset == NULL || dset->varinfo == NULL) { return E_NODATA; } else if (v <= 0 || v >= dset->v) { return E_DATA; } if (opt & O...
set_var_info
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_verbosity(const char *arg) { int err; err = 0; if (!strcmp(arg, "on")) { set_gretl_messages(1); set_gretl_echo(1); } else if (!strcmp(arg, "off")) { set_gretl_messages(0); set_gretl_echo(0); comments_on = 0; } else if (!strcmp(arg, "comments")) { set_gretl_messages(0); set...
static int set_verbosity(const char *arg) { int err = 0; if (!strcmp(arg, "on")) { set_gretl_messages(1); set_gretl_echo(1); } else if (!strcmp(arg, "off")) { set_gretl_messages(0); set_gretl_echo(0); comments_on = 0; } else if (!strcmp(arg, "comments")) { set_gretl_messages(0); set...
set_verbosity
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_wald_R_ones(gretl_matrix *R, int k, int r0, int neq, int stride) { int ka; int i; ka = k; if (k < 0) return 2; for (i = r0; i < r0 + neq; ++i) { R->val[ka * R->rows + i] = 1.0; ka += stride; } return 0; }
static int set_wald_R_ones(gretl_matrix *R, int k, int r0, int neq, int stride) { if (k < 0) { return E_DATA; } else { int i, rmax = r0 + neq; for (i = r0; i < rmax; i++) { gretl_matrix_set(R, i, k, 1.0); k += stride; } return 0; } }
set_wald_R_ones
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_withstr(gnuplot_info *gi, int i, char *str) { int withval; if ((gi->flags & 0x80) != 0) { *str = 0; return; } if (gi->withlist) { withval = 0; if (i > 0 && i <= *gi->withlist) withval = gi->withlist[i]; switch (withval) { case 1: *(_QWORD *)str = 0x73656E696C2077LL;...
static void set_withstr(gnuplot_info *gi, int i, char *str) { if (gi->flags & GPT_DATA_STYLE) { *str = '\0'; } else if (gi->withlist != NULL) { int withval = W_POINTS; if (i > 0 && i <= gi->withlist[0]) { withval = gi->withlist[i]; } if (withval == W_LINES) { strcpy(str, "w lines")...
set_withstr
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int set_workdir(const char *s) { char workdir[520]; unsigned long v4; v4 = __readfsqword(0x28u); if (gretl_function_depth() <= 0) { if (*s) { workdir[0] = 0; strncat(workdir, s, 0x1FFu); if (workdir_callback) return workdir_callback(workdir); else return gretl_set_pa...
static int set_workdir(const char *s) { int err = 0; if (gretl_function_depth() > 0) { gretl_errmsg_set("set workdir: cannot be done inside a function"); return 1; } else if (*s == '\0') { return E_DATA; } else { char workdir[MAXLEN]; *workdir = '\0'; strncat(workdir, s, MAXLEN - 1); ...
set_workdir
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_workdir_callback(int (*callback)(...)) { workdir_callback = callback; }
void set_workdir_callback(int (*callback)()) { workdir_callback = callback; }
set_workdir_callback
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_xprod_label(int v, int vi, int vj, double val, DATASET *dset) { char label[136]; unsigned long v7; v7 = __readfsqword(0x28u); sprintf(label, "interaction of %s and (%s == %g)", dset->varname[vi], dset->varname[vj], val); series_record_label(dset, v, label); }
static void set_xprod_label(int v, int vi, int vj, double val, DATASET *dset) { const char *si = dset->varname[vi]; const char *sj = dset->varname[vj]; char label[MAXLABEL]; sprintf(label, "interaction of %s and (%s == %g)", si, sj, val); series_record_label(dset, v, label); }
set_xprod_label
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void set_xsect_hccme(const char *s) { const char *sa; sa = s; if (!check_for_state()) { if (!strncmp(s, "HC", 2u)) sa = s + 2; parse_libset_int_code(HC_VERSION, sa); } }
void set_xsect_hccme(const char *s) { if (check_for_state()) return; if (!strncmp(s, "HC", 2)) { s += 2; } parse_libset_int_code(HC_VERSION, s); }
set_xsect_hccme
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *setkey_get_name(SetKey key) { unsigned int i; for (i = 0; i <= 0x52; ++i) { if (key == setvars[i].key) return setvars[i].name; } return 0; }
static const char *setkey_get_name(SetKey key) { int i; for (i = 0; i < G_N_ELEMENTS(setvars); i++) { if (setvars[i].key == key) { return setvars[i].name; } } return NULL; }
setkey_get_name
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void *setkey_get_target(SetKey key, SVType t) { const char *name; const char *v3; setvar *sv; sv = &setvars[(int)((double)(int)key + 18.0 - 131073.0)]; if (key == sv->key) { if (t == SV_INT && ((unsigned int)key <= STATE_FLAG_MAX || (unsigned int)key > GMM_MAXITER) && ...
static void *setkey_get_target(SetKey key, SVType t) { int i = INTS_OFFSET + key - GRETL_OPTIM; setvar *sv = &setvars[i]; if (sv->key != key) { fprintf(stderr, "*** internal error, looking for %s, found %s ***\n", setkey_get_name(key), sv->name); return NULL; } else if ((t == SV_INT && !lib...
setkey_get_target
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void setopt_cleanup() { int i; int n; n = n_stored_opts; for (i = 0; i < n_stored_opts; ++i) { if ((optinfo[i].flags & 1) != 0) { clear_one_option(&optinfo[i]); --n; } } if (!n) { free(optinfo); optinfo = 0; } n_stored_opts = n; }
void setopt_cleanup(void) { int i, n = n_stored_opts; #if OPTDEBUG fprintf(stderr, "setopt_cleanup\n"); #endif for (i = 0; i < n_stored_opts; i++) { if (optinfo[i].flags & OPT_SETOPT) { clear_one_option(&optinfo[i]); n--; } } if (n == 0) { free(optinfo); optinfo = NULL; } n...
setopt_cleanup
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int setulb_(int *n, int *m, double *x, double *l, double *u, int *nbd, double *f, double *g, double *factr, double *pgtol, double *wa, int *iwa, char *task, char *csave, logical *lsave, int *isave, double *dsave) { int *nbda; double *ua; double *la; double *xa; double *ga; ...
int setulb_(int *n, int *m, double *x, double *l, double *u, int *nbd, double *f, double *g, double *factr, double *pgtol, double *wa, int *iwa, char *task, char *csave, logical *lsave, int *isave, double *dsave) { int i__1; int ld, lr, lt, lz, lwa, lwn, lss, lxp, lws, lwt, lsy,...
setulb_
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void *setvar_get_target(setvar *sv) { global_vars_ *v2; if ((!sv->offset || sv->key > (unsigned int)GMP_BITS) && sv->key != GRETL_DEBUG) return 0; if (sv->key > (unsigned int)MATMASK) v2 = &globals; else v2 = (global_vars_ *)state; return &v2->gretl_debug + sv->offset; }
static void *setvar_get_target(setvar *sv) { void *p; if (sv->offset == 0 || sv->key > GMP_BITS) { if (sv->key != GRETL_DEBUG) { return NULL; } } p = (sv->key < STATE_VARS_MAX) ? (void *)state : (void *)&globals; #if SVDEBUG fprintf(stderr, "setvar_get_target: '%s': %s=%p, offset=%lu, ret=%p\...
setvar_get_target
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void sgenrand_mt(uint32_t seed, mt_struct *mts) { int i; int ia; for (i = 0; i < mts->nn; ++i) { mts->state[i] = seed; seed = 1812433253 * (seed ^ (seed >> 30)) + i + 1; } mts->i = mts->nn; for (ia = 0; ia < mts->nn; ++ia) mts->state[ia] &= mts->wmask; }
void sgenrand_mt(uint32_t seed, mt_struct *mts) { int i; for (i = 0; i < mts->nn; i++) { mts->state[i] = seed; seed = (UINT32_C(1812433253) * (seed ^ (seed >> 30))) + i + 1; } mts->i = mts->nn; for (i = 0; i < mts->nn; i++) mts->state[i] &= mts->wmask; }
sgenrand_mt
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int sgn(double x) { if (x == 0.0) return 0; if (x >= 0.0) return 1; return -1; }
static int sgn(double x) { return x == 0 ? 0 : x < 0 ? -1 : 1; }
sgn
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int shapiro_wilk(const double *x, int t1, int t2, double *W, double *pval) { int v6; int v7; float v8; int i; int t; int ta; int n; int err; int erra; int n2; float *a; float *xf; n = 0; *pval = NAN; *W = *pval; for (t = t1; t <= t2; ++t) { if (fabs(x[t]) <= 1.797693134862316e308) ...
int shapiro_wilk(const double *x, int t1, int t2, double *W, double *pval) { int n1 = 0; float *a = NULL; float *xf = NULL; int i, t, n2, n = 0; int err = 0; *W = *pval = NADBL; for (t = t1; t <= t2; t++) { if (!na(x[t])) n++; } n1 = n; err = sw_sample_check(n, n1); if (err) { re...
shapiro_wilk
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int shell_grab(const char *arg, char **sout) { char *v3; int err; int n; char *content; unsigned long v7; v7 = __readfsqword(0x28u); err = 0; if (!arg || !*arg) return 18; if (libset_get_bool(SHELL_OK)) { gretl_shell_grab(arg, sout); if (sout && *sout) { content = *sout; if (!...
static int shell_grab(const char *arg, char **sout) { int err = 0; if (arg == NULL || *arg == '\0') { return E_PARSE; } if (!libset_get_bool(SHELL_OK)) { gretl_errmsg_set(_("The shell command is not activated.")); return 1; } gretl_shell_grab(arg, sout); if (sout != NULL && *sout != NULL) ...
shell_grab
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int shorten_the_constant(double **Z, int n) { double *tmp; tmp = (double *)realloc(*Z, 8LL * n); if (!tmp) return 12; *Z = tmp; return 0; }
static int shorten_the_constant(double **Z, int n) { double *tmp = realloc(Z[0], n * sizeof *tmp); if (tmp == NULL) { return E_ALLOC; } else { Z[0] = tmp; return 0; } }
shorten_the_constant
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int should_rebuild_gfn(const char *gfnname) { stat b1; stat b2; stat b3; char testname[4104]; unsigned long v6; v6 = __readfsqword(0x28u); if (gretl_stat(gfnname, &b1)) return 1; switch_ext(testname, gfnname, "inp"); if (gretl_stat(testname, &b2)) return 0; switch_ext(testname, gfnname, "sp...
static int should_rebuild_gfn(const char *gfnname) { char testname[FILENAME_MAX]; struct stat b1, b2, b3; int err; err = gretl_stat(gfnname, &b1); if (err) { return 1; } switch_ext(testname, gfnname, "inp"); err = gretl_stat(testname, &b2); if (err) { return 0; } switch_ext(testname, ...
should_rebuild_gfn
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void show_activity_callback() { if (sfunc) sfunc(); }
void show_activity_callback(void) { if (sfunc != NULL) { (*sfunc)(); } }
show_activity_callback
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int show_activity_func_installed() { return sfunc != 0; }
int show_activity_func_installed(void) { return sfunc != NULL; }
show_activity_func_installed
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int show_alias(int i) { return strstr(func_alias[i].str, "min") != 0; }
static int show_alias(int i) { if (strstr(func_alias[i].str, "min")) { return 1; } else { return 0; } }
show_alias
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void show_lags_test(MODEL *pmod, int order, PRN *prn) { double v3; int dfd; char *v5; int i; int *llist; double F; llist = gretl_list_new(order); if (llist) { for (i = 0; i < order; ++i) llist[i + 1] = pmod->list[pmod->ifc + 3 + i]; F = wald_omit_F(llist, pmod); if (fabs(F) <= 1.79769...
static void show_lags_test(MODEL *pmod, int order, PRN *prn) { int *llist = gretl_list_new(order); double F; int i; if (llist != NULL) { for (i = 0; i < order; i++) { llist[i + 1] = pmod->list[pmod->ifc + 3 + i]; } F = wald_omit_F(llist, pmod); if (!na(F)) { pprintf(prn, " %s: F...
show_lags_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void show_paths() { char *v0; v0 = gettext("gretl: using these basic search paths:\n"); printf(v0); printf("gretldir: %s\n", paths.gretldir); printf("workdir: %s\n", paths.workdir); printf("dotdir: %s\n", paths.dotdir); printf("gnuplot: %s\n", paths.gnuplot); }
void show_paths(void) { printf(_("gretl: using these basic search paths:\n")); printf("gretldir: %s\n", paths.gretldir); printf("workdir: %s\n", paths.workdir); printf("dotdir: %s\n", paths.dotdir); printf("gnuplot: %s\n", paths.gnuplot); }
show_paths
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int show_pkg_pdf(const char *fname) { int err; char *syscmd; syscmd = (char *)g_strdup_printf("xdg-open \"%s\"", fname); err = system(syscmd); g_free(syscmd); return err; }
static int show_pkg_pdf(const char *fname) { int err = 0; #if defined(G_OS_WIN32) if ((int)ShellExecute(NULL, "open", fname, NULL, NULL, SW_SHOW) <= 32) { err = E_FOPEN; } #elif defined(OS_OSX) #if defined(HAVE_CARBON) FSRef ref; err = FSPathMakeRef((const UInt8 *)fname, &ref, NULL); if (!err) { e...
show_pkg_pdf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int show_series(int i, int fd, const DATASET *dset, int debug) { if (debug) return 1; return !i || !fd || fd == series_get_stack_level(dset, i); }
static int show_series(int i, int fd, const DATASET *dset, int debug) { if (debug) { return 1; } else { return (i == 0 || fd == 0 || series_get_stack_level(dset, i) == fd); } }
show_series
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void showlabels(const int *list, gretlopt opt, const DATASET *dset, PRN *prn) { char *v4; int v5; int v6; char *v7; int v8; int i; int ia; int nl; int vmax; int v; const char *label; const char *labela; gchar *tmp; nl = 0; if (dset && dset->v) { if (list) v5 = *list; else ...
static void showlabels(const int *list, gretlopt opt, const DATASET *dset, PRN *prn) { const char *label; gchar *tmp; int i, v, vmax, nl = 0; if (dset == NULL || dset->v == 0) { pprintf(prn, _("No series are defined\n")); return; } vmax = list == NULL ? dset->v - 1 : list[0]...
showlabels
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int shrink_b_and_vcv(const gretl_matrix *b, equation_system *sys) { int rows; int i; int j; int nc; gretl_matrix *V; if (b) { if (b->cols == 1) { rows = b->rows; } else if (b->rows == 1) { rows = b->cols; } else { rows = 0; } } else { rows = 0; } nc = rows; if ...
static int shrink_b_and_vcv(const gretl_matrix *b, equation_system *sys) { int nc = gretl_vector_get_length(b); gretl_matrix *V; double x; int i, j; if (sys->vcv == NULL) { return E_DATA; } if (sys->vcv->rows == nc) { return 0; } V = gretl_matrix_alloc(nc, nc); if (V == NULL) { retur...
shrink_b_and_vcv
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int shrink_dataset_to_size(DATASET *dset, int nv, int drop) { char **varname; VARINFO **varinfo; double **newZ; if (!drop) { varname = (char **)realloc(dset->varname, 8LL * nv); varinfo = (VARINFO **)realloc(dset->varinfo, 8LL * nv); if (!varname || !varinfo) { free(varname); free(varin...
static int shrink_dataset_to_size(DATASET *dset, int nv, int drop) { double **newZ; #if DDEBUG fprintf(stderr, "shrink_dataset_to_size: dset at %p, dset->v=%d, nv=%d\n" " drop = %s\n", (void *)dset, dset->v, nv, (drop == DROP_NORMAL) ? "DROP_NORMAL" : "DROP_SPECIAL"); #endif...
shrink_dataset_to_size
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int shrink_varinfo(DATASET *dset, int nv) { int i; int err; char **vnames; VARINFO **vi; err = 0; if (nv > dset->v) return 2; if (nv == dset->v) return 0; for (i = nv; i < dset->v; ++i) { free(dset->varname[i]); free_varinfo(dset, i); } vnames = (char **)realloc(dset->varname, 8LL *...
int shrink_varinfo(DATASET *dset, int nv) { char **vnames; VARINFO **vi; int i, err = 0; if (nv > dset->v) { return E_DATA; } else if (nv == dset->v) { return 0; } for (i = nv; i < dset->v; i++) { free(dset->varname[i]); free_varinfo(dset, i); } vnames = realloc(dset->varname, nv * ...
shrink_varinfo
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int sign(int a) { if (!a) return 0; if (a >= 0) return 1; return -1; }
static int sign(int a) { return (a == 0) ? 0 : ((a < 0) ? -1 : 1); }
sign
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int sign_test(const double *x, const double *y, int v1, int v2, const DATASET *dset, double *result, gretlopt opt, PRN *prn) { char *v9; char *v10; char *v11; char *v12; char *v13; char *v14; double v15; char *v16; char *v17; unsigned int n; int w; int t; double pv; w = 0; n...
static int sign_test(const double *x, const double *y, int v1, int v2, const DATASET *dset, double *result, gretlopt opt, PRN *prn) { double pv; int n, w, t; n = w = 0; for (t = dset->t1; t <= dset->t2; t++) { if (!na(x[t]) && !na(y[t]) && x[t] != y[t]) { w +...
sign_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int signed_rank_test(const double *x, const double *y, int v1, int v2, const DATASET *dset, double *result, gretlopt opt, PRN *prn) { char v9; char *v10; char *v11; char *v12; char *v13; char *v14; char *v15; char *v16; char *v17; char *v18; int N; int i...
static int signed_rank_test(const double *x, const double *y, int v1, int v2, const DATASET *dset, double *result, gretlopt opt, PRN *prn) { struct ranker *r; double d, T, wp, wm; double z = NADBL, pval = NADBL; int quiet = (opt & OPT_Q); int Z = 0, N = ...
signed_rank_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int sim_state_0(kalman *K, const gretl_matrix *U, const gretl_matrix *Sim0) { int v4; int getroot; int i; int err; gretl_matrix *Q; gretl_matrix *v0; gretl_matrix *bv; v0 = 0; bv = 0; getroot = 1; err = 0; if ((K->flags & 0x400) != 0) { if (Sim0) { Q = extract_Q(K, Sim0); getroo...
static int sim_state_0(kalman *K, const gretl_matrix *U, const gretl_matrix *Sim0) { gretl_matrix *Q, *v0 = NULL, *bv = NULL; int getroot = 1; int i, err = 0; if (!kalman_ssfsim(K)) { if (Sim0 != NULL) { err = gretl_matrix_copy_values(K->S0, Sim0); } return err; } ...
sim_state_0
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double simann_call(BFGS_CRIT_FUNC cfunc, double *b, void *data, int minimize) { double ret; ret = cfunc(b, data); if (fabs(ret) > 1.797693134862316e308) return NAN; if (minimize) return -ret; return ret; }
static double simann_call(BFGS_CRIT_FUNC cfunc, double *b, void *data, int minimize) { double ret = cfunc(b, data); return na(ret) ? NADBL : minimize ? -ret : ret; }
simann_call
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int simdata_refresh_QR(kalman *K, PRN *prn) { int err; err = 0; if (matrix_is_varying(K, 3) || matrix_is_varying(K, 4)) return kalman_update_matrices(K, prn); return err; }
static int simdata_refresh_QR(kalman *K, PRN *prn) { int err = 0; if (matrix_is_varying(K, K_Q) || matrix_is_varying(K, K_R)) { err = kalman_update_matrices(K, prn); } return err; }
simdata_refresh_QR
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *simple_estimator_string(int ci, PRN *prn) { switch (ci) { case 88: case 135: return "OLS"; case 140: return "WLS"; case 7: return "WLS (ARCH)"; case 55: return "Heteroskedasticity-corrected"; case 5: return "AR"; case 64: return "LAD"; case 83: return "High-Prec...
static const char *simple_estimator_string(int ci, PRN *prn) { if (ci == OLS || ci == VAR) return N_("OLS"); else if (ci == WLS) return N_("WLS"); else if (ci == ARCH) return N_("WLS (ARCH)"); else if (ci == HSK) return N_("Heteroskedasticity-corrected"); else if (ci == AR) return N_("AR")...
simple_estimator_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *simple_fname(char *dest, const char *src) { char *s; char *p; s = strrslash(src); if (s) strcpy(dest, s + 1); else strcpy(dest, src); p = strrchr(dest, 46); if (p && strlen(dest) > 3) *p = 0; return dest; }
static char *simple_fname(char *dest, const char *src) { char *p; const char *s; s = strrslash(src); if (s != NULL) { strcpy(dest, s + 1); } else { strcpy(dest, src); } p = strrchr(dest, '.'); if (p != NULL && strlen(dest) > 3) { *p = '\0'; } return dest; }
simple_fname
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int simple_gradient(double *b, double *g, int n, BFGS_CRIT_FUNC func, void *data, int *redo) { int i; double bi0; double f1; double f2; for (i = 0; i < n; ++i) { bi0 = b[i]; b[i] = bi0 - 0.00000001; if (bi0 != 0.0 && fabs((bi0 - b[i]) / bi0) < 1.0e-14) { fwrite("numerica...
static int simple_gradient(double *b, double *g, int n, BFGS_CRIT_FUNC func, void *data, int *redo) { const double h = 1.0e-8; double bi0, f1, f2; int i; for (i = 0; i < n; i++) { bi0 = b[i]; b[i] = bi0 - h; if (bi0 != 0.0 && fabs((bi0 - b[i]) / bi0) < B_RELMIN) { f...
simple_gradient
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void simple_print_palette(const char *p, FILE *fp) { if (!strcmp(p, "blues")) { fwrite("set palette defined (0 '#D4E4F2', 1 'steelblue')\n", 1u, 0x31u, fp); } else if (!strcmp(p, "oranges")) { fwrite("set palette defined (0 '#E9D9B5', 1 'dark-orange')\n", 1u, 0x33u, fp); } else if (!strcmp(p, "...
static void simple_print_palette(const char *p, FILE *fp) { if (!strcmp(p, "blues")) { fputs("set palette defined (0 '#D4E4F2', 1 'steelblue')\n", fp); } else if (!strcmp(p, "oranges")) { fputs("set palette defined (0 '#E9D9B5', 1 'dark-orange')\n", fp); } else if (!strcmp(p, "green-to-red")) { fputs(...
simple_print_palette
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void simple_print_panel_model(MODEL *pmod, DATASET *dset, const int *xlist, PRN *prn) { int i; int *savelist; savelist = gretl_list_copy(pmod->list); for (i = 0; i < pmod->ncoeff; ++i) pmod->list[i + 2] = xlist[i + 2]; printmodel(pmod, dset, OPT_P, prn); free(pmod->list); ...
static void simple_print_panel_model(MODEL *pmod, DATASET *dset, const int *xlist, PRN *prn) { int *savelist = gretl_list_copy(pmod->list); int i; for (i = 0; i < pmod->ncoeff; i++) { pmod->list[i + 2] = xlist[i + 2]; } printmodel(pmod, dset, OPT_P, prn); free(pmod-...
simple_print_panel_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int simple_range_match(const DATASET *targ, const DATASET *src, int *offset) { int ret; ret = 0; if (src->pd == 1 && !src->structure) { if (src->n == targ->n) { return 1; } else if (src->n == targ->t2 - targ->t1 + 1) { ret = 1; *offset = targ->t1; } } return ret; }
static int simple_range_match(const DATASET *targ, const DATASET *src, int *offset) { int ret = 0; if (src->pd == 1 && src->structure == CROSS_SECTION) { if (src->n == targ->n) { ret = 1; } else if (src->n == targ->t2 - targ->t1 + 1) { ret = 1; *offset = targ...
simple_range_match
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int simple_set_obs(DATASET *dset, int pd, const char *stobs, gretlopt opt) { char *v5; unsigned int n; char *v7; int structure; guint32 ed0; int panel; int err; int sts; double sd0[4]; *(_QWORD *)&sd0[1] = __readfsqword(0x28u); structure = 6; sd0[0] = dset->sd0; ed0 = 0; panel = 0; err = ...
int simple_set_obs(DATASET *dset, int pd, const char *stobs, gretlopt opt) { int structure = STRUCTURE_UNKNOWN; double sd0 = dset->sd0; guint32 ed0 = 0; int panel = 0; int err = 0; if (opt == OPT_X) { structure = CROSS_SECTION; } else if (opt == OPT_T) { structure = TIME_SERIES; } else if (opt ...
simple_set_obs
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double simple_slen(int n, int *pndelta, double *b, double *X, double *t, double *pf_0, BFGS_CRIT_FUNC cfunc, void *data, double g0, double f0, int *pfcount, int minimize) { _BOOL4 v12; int i; int crit_ok; int fcount; int ndelta; double steplen; double f1; steplen =...
static double simple_slen(int n, int *pndelta, double *b, double *X, double *t, double *pf, BFGS_CRIT_FUNC cfunc, void *data, double g0, double f0, int *pfcount, int minimize) { double d, steplen = 1.0; double f1 = *pf; int i, crit_ok = 0, fcount = 0; int ndel...
simple_slen
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
Xtab *single_crosstab(const int *list, const DATASET *dset, gretlopt opt, PRN *prn, int *err) { int rv; int cv; Xtab *tab; tab = 0; if (*list == 2) { rv = list[1]; cv = list[2]; if (accept_as_discrete(dset, rv, 0) && accept_as_discrete(dset, cv, 0)) tab = get_new_xtab(...
Xtab *single_crosstab(const int *list, const DATASET *dset, gretlopt opt, PRN *prn, int *err) { Xtab *tab = NULL; int rv, cv; if (list[0] != 2) { *err = E_DATA; return NULL; } rv = list[1]; cv = list[2]; if (accept_as_discrete(dset, rv, 0) && accept_as_discrete(dset, cv, 0...
single_crosstab
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0