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 rankcorr_get_rankings(const double *x, const double *y, int n, double **rxout, double **ryout, int *pm, int *ties) { double *v8; int i; int ia; int ib; int m; int ma; double *sx; double *sy; double *rx; double *ry; m = 0; for (i = 0; i < n; ++i) { if (fabs(x[i]...
static int rankcorr_get_rankings(const double *x, const double *y, int n, double **rxout, double **ryout, int *pm, int *ties) { double *sx = NULL, *sy = NULL; double *rx = NULL, *ry = NULL; int i, m = 0; for (i = 0; i < n; i++) { if (!na(x[i...
rankcorr_get_rankings
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *rbuf_get_point(const char *s) { readbuf *rbuf; rbuf = matching_buffer(s); if (rbuf) return rbuf->point; else return 0; }
static const char *rbuf_get_point(const char *s) { readbuf *rbuf = matching_buffer(s); return (rbuf == NULL) ? NULL : rbuf->point; }
rbuf_get_point
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void rbuf_set_point(const char *s, const char *p) { readbuf *rbuf; rbuf = matching_buffer(s); if (rbuf) rbuf->point = p; }
static void rbuf_set_point(const char *s, const char *p) { readbuf *rbuf = matching_buffer(s); if (rbuf != NULL) { rbuf->point = p; } }
rbuf_set_point
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int rc_bool(const char *s) { return !strcmp(s, "true") || !strcmp(s, "1"); }
static int rc_bool(const char *s) { if (!strcmp(s, "true") || !strcmp(s, "1")) { return 1; } else { return 0; } }
rc_bool
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void rc_set_gp_extra_colors(const char *s) { char cstr[2][8]; unsigned long v2; v2 = __readfsqword(0x28u); cstr[1][0] = 0; cstr[0][0] = 0; if ((unsigned int)__isoc99_sscanf(s, "%7s %7s", cstr, cstr[1]) == 2) { set_graph_color_from_string(0, cstr[0]); set_graph_color_from_string(1, cstr[1]); } }
static void rc_set_gp_extra_colors(const char *s) { char cstr[2][8]; *cstr[0] = *cstr[1] = '\0'; if (sscanf(s, "%7s %7s", cstr[0], cstr[1]) == 2) { set_graph_color_from_string(0, cstr[0]); set_graph_color_from_string(1, cstr[1]); } }
rc_set_gp_extra_colors
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int re_estimate_VAR(irfboot *b, GRETL_VAR *v, int targ, int shock, int iter) { int err; err = gretl_matrix_multi_ols(v->Y, v->X, v->B, v->E, 0); if (!err) { VAR_write_A_matrix(v, GRETL_MOD_TRANSPOSE); gretl_matrix_multiply_mod(v->E, GRETL_MOD_TRANSPOSE, v->E, GRETL_MOD_NONE, ...
static int re_estimate_VAR(irfboot *b, GRETL_VAR *v, int targ, int shock, int iter) { int err; err = gretl_matrix_multi_ols(v->Y, v->X, v->B, v->E, NULL); if (!err) { VAR_write_A_matrix(v, GRETL_MOD_TRANSPOSE); #if BDEBUG gretl_matrix_print(v->A, "var->A"); #endif } if (!...
re_estimate_VAR
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int re_estimate_VECM(irfboot *b, GRETL_VAR *v, int targ, int shock, int iter, int scount) { int err; gretl_error_clear(); if (!jbr_0) { jbr_0 = (int (*)(GRETL_VAR *, const DATASET *))get_plugin_function( "johansen_boot_round"); if (!jbr_0) return 11; } maybe_resize_...
static int re_estimate_VECM(irfboot *b, GRETL_VAR *v, int targ, int shock, int iter, int scount) { static int (*jbr)(GRETL_VAR *, const DATASET *) = NULL; int err = 0; gretl_error_clear(); if (jbr == NULL) { jbr = get_plugin_function("johansen_boot_round"); if (jbr == NULL...
re_estimate_VECM
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int re_hatvars_prep(panelmod_t *pan) { int t; int n; n = pan->pooled->full_n; pan->re_uhat = (double *)malloc(8LL * n); if (!pan->re_uhat) return 12; for (t = 0; t < n; ++t) pan->re_uhat[t] = NAN; return 0; }
static int re_hatvars_prep(panelmod_t *pan) { int t, n = pan->pooled->full_n; pan->re_uhat = malloc(n * sizeof *pan->re_uhat); if (pan->re_uhat == NULL) { return E_ALLOC; } else { for (t = 0; t < n; t++) { pan->re_uhat[t] = NADBL; } return 0; } }
re_hatvars_prep
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int read_binary_data(const char *fname, DATASET *dset, int order, double gdtversion, int fullv, const int *vlist) { int err; int i; int k; int T; char *bname; FILE *fp; bname = switch_ext_new(fname, "bin"); fp = gretl_fopen(bname, "rb"); if (fp) { T = dset->n; k = 1; ...
static int read_binary_data(const char *fname, DATASET *dset, int order, double gdtversion, int fullv, const int *vlist) { char *bname; FILE *fp; int err = 0; bname = switch_ext_new(fname, "bin"); fp = gretl_fopen(bname, "rb"); if (fp == NULL) { err = E_FOPEN; } else { ...
read_binary_data
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int read_binary_header(FILE *fp, int order) { int err; int bin_order; char hdr[24]; unsigned long v6; v6 = __readfsqword(0x28u); memset(hdr, 0, sizeof(hdr)); err = 0; if ((unsigned int)fread(hdr, 1u, 0x18u, fp) == 24) { bin_order = 0; if (!strncmp(hdr, "gretl-bin:", 0xAu)) { if (!strcmp(&...
static int read_binary_header(FILE *fp, int order) { char hdr[BIN_HDRLEN] = {0}; unsigned chk; int err = 0; chk = fread(hdr, 1, BIN_HDRLEN, fp); if (chk != BIN_HDRLEN) { err = E_DATA; } else { int bin_order = 0; if (strncmp(hdr, "gretl-bin:", 10)) { err = E_DATA; } else if (!strcmp(...
read_binary_header
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *read_binary_matrix_file(FILE *fp, int *err) { int is_complex; gretl_matrix *A; size_t n; gint32 dim[2]; char header[24]; unsigned long v8; v8 = __readfsqword(0x28u); A = 0; memset(header, 0, 20); is_complex = 0; if (fread(header, 1u, 0x13u, fp) > 0x12) { if (fread(dim, 4u, 2u, f...
static gretl_matrix *read_binary_matrix_file(FILE *fp, int *err) { gretl_matrix *A = NULL; char header[20] = {0}; int is_complex = 0; gint32 dim[2]; if (fread(header, 1, 19, fp) < 19) { *err = E_DATA; } else if (fread(dim, sizeof *dim, 2, fp) < 2) { *err = E_DATA; } else if (dim[0] <= 0 || dim[1]...
read_binary_matrix_file
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int read_fncall_line(const char *s, gretl_restriction *rset) { size_t v3; const char *sa; const char *sb; char fname[40]; unsigned long v7; v7 = __readfsqword(0x28u); if (rset->rows || rset->R || rset->q) return 18; sa = &s[strspn(s, " ")]; if (*sa != 61) return 18; sb = &sa[strspn(sa + 1, ...
static int read_fncall_line(const char *s, gretl_restriction *rset) { char fname[FN_NAMELEN]; if (rset->rows != NULL || rset->R != NULL || rset->q != NULL) { return E_PARSE; } s += strspn(s, " "); if (*s != '=') { return E_PARSE; } s++; s += strspn(s, " "); if (sscanf(s, "%31s", fname) !...
read_fncall_line
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int read_gbin(const char *fname, DATASET *dset, gretlopt opt, PRN *prn) { int (*reader)(const char *, DATASET *, gretlopt, PRN *); reader = (int (*)(const char *, DATASET *, gretlopt, PRN *))get_plugin_function("purebin_read_data"); if (reader) return reader(fname, dset, opt, prn); else...
static int read_gbin(const char *fname, DATASET *dset, gretlopt opt, PRN *prn) { int (*reader)(const char *, DATASET *, gretlopt, PRN *prn); int err = 0; reader = get_plugin_function("purebin_read_data"); if (reader == NULL) { err = 1; } else { err = (*reader)(fname, dset, opt, prn); } return e...
read_gbin
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int read_gbin_subset(const char *fname, DATASET *dset, int *vlist, gretlopt opt) { int (*reader)(const char *, DATASET *, int *, gretlopt); reader = (int (*)(const char *, DATASET *, int *, gretlopt))get_plugin_function("purebin_read_subset"); if (reader) return reade...
static int read_gbin_subset(const char *fname, DATASET *dset, int *vlist, gretlopt opt) { int (*reader)(const char *, DATASET *, int *, gretlopt); int err = 0; reader = get_plugin_function("purebin_read_subset"); if (reader == NULL) { err = 1; } else { err = (*reader)(fna...
read_gbin_subset
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int read_gbin_varnames(const char *fname, char ***pS, int *pns) { int (*reader)(const char *, char ***, int *); reader = (int (*)(const char *, char ***, int *))get_plugin_function( "purebin_read_varnames"); if (reader) return reader(fname, pS, pns); else return 1; }
static int read_gbin_varnames(const char *fname, char ***pS, int *pns) { int (*reader)(const char *, char ***, int *); int err = 0; reader = get_plugin_function("purebin_read_varnames"); if (reader == NULL) { err = 1; } else { err = (*reader)(fname, pS, pns); } return err; }
read_gbin_varnames
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int read_in7_series_info(FILE *fp, dbwrapper *dw) { SERIESINFO *sinfo; int v3; int y0; int p0; int y1; int p1; int pd; int offset; int pos; int i; int err; int nf; int rem; char fmt[32]; char sname[32]; char desc[128]; char line[1032]; unsigned long v20; v20 = __readfsqword(0x28u)...
static int read_in7_series_info(FILE *fp, dbwrapper *dw) { char line[1024]; char sname[VNAMELEN]; char desc[MAXLABEL]; char fmt[24]; int y0, p0, y1, p1; int pd, offset, pos; int i, nf; int err = 0; sprintf(fmt, "%%%ds %%d %%d %%d %%d %%d %%d", VNAMELEN - 1); i = 0; while (fgets(line, sizeof line...
read_in7_series_info
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int read_iso_basic(joiner *jr, int j, int i) { double v3; int err; int y; int m; int ed; double x; tm t; unsigned long v11; v11 = __readfsqword(0x28u); err = 0; x = jr->r_dset->Z[jr->auto_keys->keycol][i]; if (fabs(x) > 1.797693134862316e308) return 34; y = (int)floor(x / 10000.0); m = ...
static int read_iso_basic(joiner *jr, int j, int i) { int tcol = jr->auto_keys->keycol; double x; int err = 0; x = jr->r_dset->Z[tcol][i]; if (na(x)) { err = E_MISSDATA; } else { int y = (int)floor(x / 10000); int m = (int)floor((x - 10000 * y) / 100); int d = (int)(x - 10000 * y - 100 * m...
read_iso_basic
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_bundle *read_json_bundle(const char *fname, int *err) { GError *gerr; gchar *JSON; gsize len; gretl_bundle *b; gretl_bundle *(*jfunc)(const char *, const char *, int *); unsigned long v8; v8 = __readfsqword(0x28u); b = 0; gerr = 0; JSON = 0; len = 0; if ((unsigned int)g_file_get_contents(...
static gretl_bundle *read_json_bundle(const char *fname, int *err) { gretl_bundle *(*jfunc)(const char *, const char *, int *); gretl_bundle *b = NULL; GError *gerr = NULL; gchar *JSON = NULL; gsize len = 0; gboolean ok; ok = g_file_get_contents(fname, &JSON, &len, &gerr); if (ok) { jfunc = get_pl...
read_json_bundle
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int read_matrix_line(const char *s, gretl_restriction *rset) { const char *sa; const char *sb; char job; int err; gretl_matrix *m; char mname[40]; unsigned long v9; v9 = __readfsqword(0x28u); job = *s; err = 0; if (rset->rows) return 18; if (job == 82 && rset->R) return 18; if (job ==...
static int read_matrix_line(const char *s, gretl_restriction *rset) { const gretl_matrix *m; char mname[VNAMELEN]; char job = *s; int err = 0; if (rset->rows != NULL) { return E_PARSE; } else if (job == 'R' && rset->R != NULL) { return E_PARSE; } else if (job == 'q' && rset->q != NULL) { r...
read_matrix_line
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int read_min_max_deflt(char **ps, fn_param *param, const char *name, int *nvals) { int err; int i; int nf; int len; char *test; char *q; char *p; double x[4]; char valstr[40]; unsigned long v16; v16 = __readfsqword(0x28u); p = *ps; err = 0; gretl_push_c_numeric_locale...
static int read_min_max_deflt(char **ps, fn_param *param, const char *name, int *nvals) { char *p = *ps; int err = 0; gretl_push_c_numeric_locale(); errno = 0; if (!strcmp(p, "[null]")) { gretl_errmsg_set("'null' is not a valid default for scalars"); err = E_TYPES; }...
read_min_max_deflt
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *read_object_func(NODE *n, NODE *r, int f, parser *p) { char *v5; char *v6; char *v7; int csv; int gdt; int import; int done; NODE *ret; const char *realpath; gchar *tmp; const char *fname; unsigned long v18; v18 = __readfsqword(0x28u); if (f == 477) ret = get_aux_node(p, 57, 0, 2)...
static NODE *read_object_func(NODE *n, NODE *r, int f, parser *p) { NODE *ret; if (f == F_MREAD) { ret = aux_matrix_node(p); } else { ret = aux_bundle_node(p); } if (ret != NULL && starting(p)) { const char *fname = n->v.str; const char *realpath = fname; gchar *tmp = NULL; int impor...
read_object_func
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int read_observations(xmlDocPtr doc, xmlNodePtr node, DATASET *dset, double dsize, int binary, double gdtversion, const char *fname) { char *v8; double **v9; char *v10; unsigned int v11; char *v12; unsigned int v13; char *v14; char *v15; int n; int n_uflow...
static int read_observations(xmlDocPtr doc, xmlNodePtr node, DATASET *dset, double dsize, int binary, double gdtversion, const char *fname) { xmlNodePtr cur; xmlChar *tmp; int n, i, t; int (*show_progress)(double, double, int) = NULL; int progbar = 0; ...
read_observations
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int read_observations_subset(xmlDocPtr doc, xmlNodePtr node, DATASET *dset, int binary, double gdtversion, const char *fname, int fullv, const int *vlist, gretlopt opt) { char *v10; xmlChar *Prop; double **v12; char *v13; unsigned int v14; char *v15;...
static int read_observations_subset(xmlDocPtr doc, xmlNodePtr node, DATASET *dset, int binary, double gdtversion, const char *fname, int fullv, const int *vlist, gretlopt opt) { xmlNodePtr cur; xmlChar *tmp; ...
read_observations_subset
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int read_or_write_obs_markers(gretlopt opt, DATASET *dset, PRN *prn) { char *v4; const char *optval_string; int err; const char *fname; const char *fnamea; fname = 0; err = incompatible_options(opt, OPT_T | OPT_F | OPT_D); if (err) return err; if ((opt & 0x80020) != 0) { fnamea = get_optval_s...
int read_or_write_obs_markers(gretlopt opt, DATASET *dset, PRN *prn) { const char *fname = NULL; int err; err = incompatible_options(opt, OPT_D | OPT_T | OPT_F); if (err) { return err; } if (opt & (OPT_T | OPT_F)) { fname = get_optval_string(MARKERS, opt); if (fname == NULL) { return E_B...
read_or_write_obs_markers
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int read_or_write_var_labels(gretlopt opt, DATASET *dset, PRN *prn) { int err; int i; const char *lname; lname = 0; err = incompatible_options(opt, OPT_T | OPT_R | OPT_F | OPT_D | OPT_A); if (err) return err; if ((opt & 0xA0021) != 0) { lname = get_optval_string(63, opt); if (!lname) re...
int read_or_write_var_labels(gretlopt opt, DATASET *dset, PRN *prn) { const char *lname = NULL; int err; err = incompatible_options(opt, OPT_D | OPT_T | OPT_F | OPT_A | OPT_R); if (err) { return err; } if (opt & (OPT_T | OPT_F | OPT_A | OPT_R)) { lname = get_optval_string(LABELS, opt); if (lna...
read_or_write_var_labels
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int read_outer_auto_keys(joiner *jr, int j, int i) { const char *v3; const char *v4; int s_src; int err; int numdates; int tcol; int pd; char *s; char *test; const char *tfmt; char *chk; tm t; char sconv[40]; unsigned long v17; v17 = __readfsqword(0x28u); tfmt = jr->auto_keys->timefmt; ...
static int read_outer_auto_keys(joiner *jr, int j, int i) { char *tfmt = jr->auto_keys->timefmt; int numdates = jr->auto_keys->numdates; int tcol = jr->auto_keys->keycol; int pd = jr->l_dset->pd; struct tm t = {0}; const char *s = NULL; char *test = NULL; char sconv[32]; int s_src = 0; int err = 0; ...
read_outer_auto_keys
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
fnpkg *read_package_file(const char *fname, int get_funcs, int *err) { xmlDocPtr doc; xmlNodePtr node; fnpkg *pkg; xmlNodePtr cur; unsigned long v9; v9 = __readfsqword(0x28u); pkg = 0; doc = 0; node = 0; *err = gretl_xml_open_doc_root(fname, "gretl-functions", &doc, &node); if (*err) return 0...
static fnpkg *read_package_file(const char *fname, int get_funcs, int *err) { fnpkg *pkg = NULL; xmlDocPtr doc = NULL; xmlNodePtr node = NULL; xmlNodePtr cur; #if PKG_DEBUG fprintf(stderr, "read_package_file: got '%s'\n", fname); #endif *err = gretl_xml_open_doc_root(fname, "gretl-functions", &doc, &node)...
read_package_file
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int read_param_descrip(char **ps, fn_param *param) { int len; int err; char *p; char *pa; p = *ps + 1; len = 0; err = 18; while (*p) { if (*p == 34) { err = 0; break; } ++len; ++p; } if (!err && len > 0) { pa = *ps + 1; param->descrip = gretl_strndup(pa, len); ...
static int read_param_descrip(char **ps, fn_param *param) { char *p = *ps + 1; int len = 0; int err = E_PARSE; while (*p) { if (*p == '"') { err = 0; break; } len++; p++; } if (!err && len > 0) { p = *ps + 1; param->descrip = gretl_strndup(p, len); if (param->descr...
read_param_descrip
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int read_param_labels(char **ps, fn_param *param, const char *name, int nvals) { int err; int len; char *p; char *tmp; unsigned long v11; v11 = __readfsqword(0x28u); p = *ps + 1; len = 0; err = 18; while (*p) { if (*p == 125) { err = 0; break; } ++len; ++p; } if (!er...
static int read_param_labels(char **ps, fn_param *param, const char *name, int nvals) { char *p = *ps + 1; int len = 0; int err = E_PARSE; while (*p) { if (*p == '}') { err = 0; break; } len++; p++; } if (!err && len > 0) { char *tmp; p = ...
read_param_labels
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int read_param_option(char **ps, fn_param *param) { char *v2; char *v3; int err; err = 0; if (!strncmp(*ps, "[null]", 6u)) { param->flags |= 2u; *ps += 6; } else { v2 = *ps; v3 = gettext("got invalid field '%s'"); gretl_errmsg_sprintf(v3, v2); return 18; } return err; }
static int read_param_option(char **ps, fn_param *param) { int err = 0; #if FNPARSE_DEBUG fprintf(stderr, "read_param_option: got '%s'\n", *ps); #endif if (!strncmp(*ps, "[null]", 6)) { param->flags |= FP_OPTIONAL; *ps += 6; } else { gretl_errmsg_sprintf(_("got invalid field '%s'"), *ps); err ...
read_param_option
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
dbwrapper *read_pcgive_db(const char *fname, FILE *fp) { char *v2; char *v4; int err; int ns; dbwrapper *dw; unsigned long v8; v8 = __readfsqword(0x28u); err = 0; gretl_error_clear(); ns = count_in7_series(fp, &err); if (ns) { dw = dbwrapper_new(ns, fname, 19); if (dw) { rewind(fp);...
dbwrapper *read_pcgive_db(const char *fname, FILE *fp) { dbwrapper *dw; int ns, err = 0; gretl_error_clear(); ns = count_in7_series(fp, &err); if (ns == 0) { if (!err) { gretl_errmsg_set(_("No valid series found")); } return NULL; } #if DB_DEBUG fprintf(stderr, "in7: found %d series\n...
read_pcgive_db
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int read_plot_data_block(PLOTGROUP *grp, char *line, size_t lsize, int *block, FILE *fp) { int lsizea; int j; int i; int nf; int targ; int err; BOXPLOT *plot; unsigned long v15; lsizea = lsize; v15 = __readfsqword(0x28u); err = 0; for (i = 0; i < grp->nplots && !err; ++...
static int read_plot_data_block(PLOTGROUP *grp, char *line, size_t lsize, int *block, FILE *fp) { BOXPLOT *plot; int i, j, nf, targ; int err = 0; for (i = 0; i < grp->nplots && !err; i++) { plot = &grp->plots[i]; targ = 2; nf = 0; if (*block == 0) { targ ...
read_plot_data_block
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int read_plot_outliers(PLOTGROUP *grp, char *line, size_t lsize, FILE *fp) { int lsizea; int k; int n; int i; int err; double x; BOXPLOT *plot; unsigned long v13; lsizea = lsize; v13 = __readfsqword(0x28u); err = 0; if ((unsigned int)__isoc99_sscanf(line + 9, "%d", &n) != 1) return 2; for...
static int read_plot_outliers(PLOTGROUP *grp, char *line, size_t lsize, FILE *fp) { BOXPLOT *plot; double x; int i, k, n; int err = 0; if (sscanf(line + 9, "%d", &n) != 1) { return E_DATA; } for (i = 0; i < n && !err; i++) { if (fgets(line, lsize, fp) == NULL) { ...
read_plot_outliers
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
dbwrapper *read_rats_db(const char *fname, FILE *fp) { char *v2; char *v4; char *v5; int v6; int i; int err; long forward; dbwrapper *dw; unsigned long v11; v11 = __readfsqword(0x28u); forward = 0; err = 0; gretl_error_clear(); fseek(fp, 30, 0); if (fread(&forward, 8u, 1u, fp) == 1) f...
dbwrapper *read_rats_db(const char *fname, FILE *fp) { dbwrapper *dw; long forward = 0; int i, err = 0; gretl_error_clear(); fseek(fp, 30L, SEEK_SET); if (fread(&forward, sizeof forward, 1, fp) == 1) { fseek(fp, 4L, SEEK_CUR); } if (forward <= 0) { gretl_errmsg_set(_("This is not a valid RATS...
read_rats_db
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gint32 read_rats_directory(FILE *fp, const char *series_name, SERIESINFO *sinfo) { size_t v4; int i; int err; int nread; int nreada; int nreadb; int nreadc; int nreadd; DATEINFO dinfo; RATSDirect rdir; unsigned long v15; v15 = __readfsqword(0x28u); memset(rdir.serie...
static RECNUM read_rats_directory(FILE *fp, const char *series_name, SERIESINFO *sinfo) { RATSDirect rdir; DATEINFO dinfo; RECNUM ret; int nread; int i, err = 0; memset(rdir.series_name, 0, NAMELENGTH); if (fread(&rdir.back_point, sizeof(RECNUM), 1, fp) != 1) { err ...
read_rats_directory
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int read_session_functions_file(const char *fname) { int err; xmlDocPtr doc; xmlNodePtr node; xmlNodePtr cur; fnpkg *pkg; unsigned long v7; v7 = __readfsqword(0x28u); pkg = 0; doc = 0; node = 0; err = gretl_xml_open_doc_root(fname, "gretl-functions", &doc, &node); if (err) return err; for...
int read_session_functions_file(const char *fname) { fnpkg *pkg = NULL; xmlDocPtr doc = NULL; xmlNodePtr node = NULL; xmlNodePtr cur; #ifdef HAVE_MPI int get_caller = 0; #endif int err = 0; #if PKG_DEBUG fprintf(stderr, "read_session_functions_file: starting on '%s'\n", fname); #endif err = gretl_xml_...
read_session_functions_file
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_bundle *read_shapefile_bundle(const char *fname, int *err) { gretl_bundle *b; gretl_bundle *(*bfunc)(const char *, int *); b = 0; bfunc = (gretl_bundle * (*)(const char *, int *)) get_plugin_function("shp_get_bundle"); if (bfunc) return bfunc(fname, err); *err = 11; return b; }
static gretl_bundle *read_shapefile_bundle(const char *fname, int *err) { gretl_bundle *(*bfunc)(const char *, int *); gretl_bundle *b = NULL; bfunc = get_plugin_function("shp_get_bundle"); if (bfunc == NULL) { *err = E_FOPEN; } else { b = bfunc(fname, err); } return b; }
read_shapefile_bundle
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int read_true_variances(panelmod_t *pan) { int err; gretl_matrix *m; unsigned long v4; v4 = __readfsqword(0x28u); err = 0; m = gretl_matrix_read_from_file(glsmat, 0, &err); if (m) { pan->s2v = *m->val; pan->s2e = m->val[1]; } else { fwrite("read_true_variances: no matrix!\n", 1u, 0x20u, std...
static int read_true_variances(panelmod_t *pan) { gretl_matrix *m; int err = 0; m = gretl_matrix_read_from_file(glsmat, 0, &err); if (m == NULL) { fprintf(stderr, "read_true_variances: no matrix!\n"); if (!err) { err = E_DATA; } } else { pan->s2v = m->val[0]; pan->s2e = m->val[1]; ...
read_true_variances
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int read_ufunc_from_xml(xmlNodePtr node, xmlDocPtr doc, fnpkg *pkg) { GretlType v4; int role; int err; char *tmp; xmlNodePtr cur; ufunc *fun; unsigned long v11; v11 = __readfsqword(0x28u); fun = ufunc_new(); err = 0; if (!fun) return 12; if (gretl_xml_get_prop_as_string(node, "name", &tmp))...
static int read_ufunc_from_xml(xmlNodePtr node, xmlDocPtr doc, fnpkg *pkg) { ufunc *fun = ufunc_new(); xmlNodePtr cur; char *tmp; int err = 0; if (fun == NULL) { return E_ALLOC; } if (!gretl_xml_get_prop_as_string(node, "name", &tmp)) { ufunc_free(fun); return E_DATA; } strncat(fun->nam...
read_ufunc_from_xml
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int read_user_bundles(xmlDocPtr doc, xmlNodePtr cur) { _xmlNode *cura; int err; char *creator; char *name; gretl_bundle *b; unsigned long v8; v8 = __readfsqword(0x28u); err = 0; gretl_push_c_numeric_locale(); for (cura = cur->children; cura && !err; cura = cura->next) { if (!(unsigned int)xmlSt...
static int read_user_bundles(xmlDocPtr doc, xmlNodePtr cur) { int err = 0; gretl_push_c_numeric_locale(); cur = cur->xmlChildrenNode; while (cur != NULL && !err) { if (!xmlStrcmp(cur->name, (XUC) "gretl-bundle")) { char *name = (char *)xmlGetProp(cur, (XUC) "name"); if (name == NULL) { ...
read_user_bundles
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int read_user_lists(xmlDocPtr doc, xmlNodePtr cur) { _xmlNode *cura; int err; char *name; int *list; unsigned long v7; v7 = __readfsqword(0x28u); err = 0; for (cura = cur->children; cura && !err; cura = cura->next) { if (!(unsigned int)xmlStrcmp(cura->name, "list")) { if (gretl_xml_get_prop_a...
static int read_user_lists(xmlDocPtr doc, xmlNodePtr cur) { int *list; char *name; int err = 0; cur = cur->xmlChildrenNode; while (cur != NULL && !err) { if (!xmlStrcmp(cur->name, (XUC) "list")) { if (!gretl_xml_get_prop_as_string(cur, "name", &name)) { err = E_DATA; } else { ...
read_user_lists
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int read_user_matrices(xmlDocPtr doc, xmlNodePtr cur) { _xmlNode *cura; int err; char *name; gretl_matrix *m; unsigned long v7; v7 = __readfsqword(0x28u); err = 0; for (cura = cur->children; cura && !err; cura = cura->next) { if (!(unsigned int)xmlStrcmp(cura->name, "gretl-matrix")) { name = ...
static int read_user_matrices(xmlDocPtr doc, xmlNodePtr cur) { gretl_matrix *m; char *name; int err = 0; cur = cur->xmlChildrenNode; while (cur != NULL && !err) { if (!xmlStrcmp(cur->name, (XUC) "gretl-matrix")) { name = (char *)xmlGetProp(cur, (XUC) "name"); if (name == NULL) { err ...
read_user_matrices
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int read_user_scalars(xmlDocPtr doc, xmlNodePtr cur) { _xmlNode *cura; int err; double x; char *name; char *val; unsigned long v8; v8 = __readfsqword(0x28u); err = 0; cura = cur->children; gretl_push_c_numeric_locale(); while (cura && !err) { if (!(unsigned int)xmlStrcmp(cura->name, "gretl-sc...
static int read_user_scalars(xmlDocPtr doc, xmlNodePtr cur) { char *name, *val; double x; int n, err = 0; cur = cur->xmlChildrenNode; gretl_push_c_numeric_locale(); while (cur != NULL && !err) { if (!xmlStrcmp(cur->name, (XUC) "gretl-scalar")) { name = (char *)xmlGetProp(cur, (XUC) "name"); ...
read_user_scalars
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *readfile_node(NODE *l, NODE *r, parser *p) { char *codeset; NODE *ret; ret = get_aux_node(p, 60, 0, 2); if (ret && (p->flags & 2) != 0) { codeset = 0; if (r && r->t != 85) { if (r->t == 60) codeset = r->v.str; else node_type_error(482, 2, 60, r, p); } if (!p->e...
static NODE *readfile_node(NODE *l, NODE *r, parser *p) { NODE *ret = aux_string_node(p); if (ret != NULL && starting(p)) { const char *codeset = NULL; if (!null_node(r)) { if (r->t == STR) { codeset = r->v.str; } else { node_type_error(F_READFILE, 2, STR, r, p); } } ...
readfile_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int *real_FE_list(panelmod_t *pan) { int v1; int i; int *list; list = gretl_list_copy(pan->pooled->list); if (list) { for (i = 2; i <= *list; ++i) { if (!in_gretl_list(pan->vlist, list[i])) { v1 = i--; gretl_list_delete_at_pos(list, v1); } } } return list; }
static int *real_FE_list(panelmod_t *pan) { int *list = gretl_list_copy(pan->pooled->list); int i; if (list != NULL) { for (i = 2; i <= list[0]; i++) { if (!in_gretl_list(pan->vlist, list[i])) { gretl_list_delete_at_pos(list, i--); } } } return list; }
real_FE_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_add_scalar_arg(fn_param *param, double x) { char *name; char *v3; double xa; fn_param *parama; int err; unsigned long v8; parama = param; xa = x; v8 = __readfsqword(0x28u); err = 0; if (fabs(x) > 1.797693134862316e308) return copy_as_arg(parama->name, GRETL_TYPE_DOUBLE, &xa); if (p...
static int real_add_scalar_arg(fn_param *param, double x) { int err = 0; if (na(x)) { err = copy_as_arg(param->name, GRETL_TYPE_DOUBLE, &x); } else { if (param->type == GRETL_TYPE_BOOL) { if (x != 0.0) { x = 1.0; } } else if (param->type == GRETL_TYPE_INT || param->type == GRETL_...
real_add_scalar_arg
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_add_series(int newvars, double *x, DATASET *dset) { int i; int err; int v0; double **newZ; v0 = dset->v; err = 0; if (!newvars) return 0; newZ = (double **)realloc(dset->Z, 8LL * (v0 + newvars)); if (newZ) dset->Z = newZ; else err = 12; if (!err) { if (newvars == 1 && x) ...
static int real_add_series(int newvars, double *x, DATASET *dset) { double **newZ; int v0 = dset->v; int i, err = 0; if (newvars == 0) { return 0; } newZ = realloc(dset->Z, (v0 + newvars) * sizeof *newZ); #if DDEBUG fprintf(stderr, "real_add_series: add %d vars, Z = %p\n", newvars, (void...
real_add_series
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_add_test_to_model(MODEL *pmod, ModelTest *test) { int err; _BYTE nt[12]; *(_QWORD *)nt = (unsigned int)pmod->ntests; err = 0; *(_QWORD *)&nt[4] = realloc(pmod->tests, 72LL * (*(_DWORD *)nt + 1)); if (!*(_QWORD *)&nt[4]) return 12; pmod->tests = *(ModelTest **)&nt[4]; ++pmod->ntests; copy...
static int real_add_test_to_model(MODEL *pmod, ModelTest *test) { ModelTest *tests = NULL; int nt = pmod->ntests; int err = 0; tests = realloc(pmod->tests, (nt + 1) * sizeof *tests); if (tests == NULL) { err = E_ALLOC; } else { pmod->tests = tests; pmod->ntests += 1; copy_test(&pmod->tests...
real_add_test_to_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_adf_form_list(adf_info *ainfo, DATASET *dset) { int altv; int *v3; int *v5; int *list; int v7; int err; int k; int j; int save_t1; int v; int vk; unsigned long v14; v14 = __readfsqword(0x28u); save_t1 = dset->t1; err = 0; if (ainfo->altv <= 0) altv = ainfo->v; else al...
static int real_adf_form_list(adf_info *ainfo, DATASET *dset) { int v, save_t1 = dset->t1; int k, j, err = 0; v = ainfo->altv > 0 ? ainfo->altv : ainfo->v; dset->t1 = 0; ainfo->list[1] = diffgenr(v, DIFF, dset); if (ainfo->list[1] < 0) { dset->t1 = save_t1; return E_DATA; } ainfo->list[2] = ...
real_adf_form_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_adf_test(adf_info *ainfo, DATASET *dset, gretlopt opt, PRN *prn) { const char *vname; char *v6; int v7; double dfgls_pvalue; MODEL v9; PRN *prna; gretlopt opta; DATASET *dseta; adf_info *ainfoa; int blurb_done; int err; gretlopt eg_opt; int demean_mode; int test_down; int test_num...
static int real_adf_test(adf_info *ainfo, DATASET *dset, gretlopt opt, PRN *prn) { MODEL dfmod; gretlopt eg_opt = OPT_NONE; gretlopt df_mod_opt = (OPT_A | OPT_Z); int *biglist = NULL; int orig_nvars = dset->v; int blurb_done = 0; int demean_mode = 0; int test_down = 0; int tes...
real_adf_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *real_aggregate_by(const double *x, const double *y, const int *xlist, const int *ylist, const DATASET *dset, double *tmp, double (*builtin)(...), gchar *usercall, DATASET *tmpset...
static gretl_matrix *real_aggregate_by(const double *x, const double *y, const int *xlist, const int *ylist, const DATASET *dset, double *tmp, double (*builtin)(), gchar *usercall, ...
real_aggregate_by
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_append_line(ExecState *s, LOOPSET *loop) { loop_command *v3; int err; int n; n = loop->n_cmds; err = 0; if ((((_BYTE)n + 1) & 0x1F) == 0 && add_more_loop_commands(loop)) return 12; v3 = &loop->cmds[n]; v3->line = gretl_strdup(s->line); if (!loop->cmds[n].line) return 12; switch (s-...
static int real_append_line(ExecState *s, LOOPSET *loop) { int n = loop->n_cmds; int err = 0; #if LOOP_DEBUG > 1 fprintf(stderr, "real_append_line: s->line = '%s'\n", s->line); #endif if ((n + 1) % LOOP_BLOCK == 0) { if (add_more_loop_commands(loop)) { return E_ALLOC; } } loop->cmds[n].line...
real_append_line
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double real_apply_func(double x, int f, parser *p) { double v3; *__errno_location() = 0; if (fabs(x) > 1.797693134862316e308) { if (f == 304) return 1.0; if (f < 304 || (unsigned int)(f - 305) > 1) return NAN; return 0.0; } if (f == 393) return easterdate((int)x); if (f >= 308) ...
static double real_apply_func(double x, int f, parser *p) { double y; errno = 0; if (na(x)) { switch (f) { case F_MISSING: return 1.0; case F_DATAOK: case F_MISSZERO: return 0.0; default: return NADBL; } } switch (f) { case U_NEG: return -x; case U_POS: ...
real_apply_func
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_arch_test(const double *u, int T, int order, MODEL *pmod, gretlopt opt, PRN *prn) { char *v6; int Ta; int err; int i; int t; int k; int s; double s2; gretl_matrix *V; double rsq; double *ps2; gretl_matrix *X; gretl_matrix *y; gretl_matrix *b; double x; unsigne...
static int real_arch_test(const double *u, int T, int order, MODEL *pmod, gretlopt opt, PRN *prn) { gretl_matrix *X = NULL; gretl_matrix *y = NULL; gretl_matrix *b = NULL; gretl_matrix *V = NULL; int i, k, s, t; double x, s2, rsq; double *ps2 = NULL; int err = 0; gretl_error...
real_arch_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_bootstrap(boot *bs, gretl_matrix *ci, PRN *prn) { int err; int tail; int use_qr; int use_h; int j; int nz; int k; int p; gretl_matrix *r; double s2; gretl_matrix *XTX; gretl_matrix *Q; gretl_matrix *R; gretl_matrix *g; gretl_matrix *h; gretl_matrix *V; int *z; double *xz; ...
static int real_bootstrap(boot *bs, gretl_matrix *ci, PRN *prn) { gretl_matrix *XTX = NULL; gretl_matrix *XTXI = NULL; gretl_matrix *Q = NULL; gretl_matrix *R = NULL; gretl_matrix *g = NULL; gretl_matrix *h = NULL; gretl_matrix *d = NULL; gretl_matrix *b = NULL; gretl_matrix *V = NULL; gretl_matrix ...
real_bootstrap
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_boxplots(const int *list, const DATASET *dset, const char *literal, int pan_min, gretlopt opt) { char *v6; char *v7; char *xlabel; char *ylabel; char *v10; char *v11; char *v12; char *v13; const char *graph_name; char *v15; const char *string; char *v17; int err; i...
static int real_boxplots(const int *list, const DATASET *dset, const char *literal, int pan_min, gretlopt opt) { PLOTGROUP *grp; series_table *st = NULL; double lim = NADBL; int i, k, np; int err = 0; if (opt & OPT_L) { lim = get_optval_double(BXPLOT, OPT_L, &err); if (err...
real_boxplots
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void real_build_path(char *targ, const gchar *first_element, va_list *args) { const gchar **overflow_arg_area; gboolean is_first; gboolean have_leading; const char *single_element; const char *last_trailing; const gchar *start; const gchar *end; const char *element; is_first = 1; have_leading = 0; ...
static void real_build_path(char *targ, const gchar *first_element, va_list *args) { gboolean is_first = TRUE; gboolean have_leading = FALSE; const gchar *single_element = NULL; const gchar *next_element; const gchar *last_trailing = NULL; next_element = first_element; while ...
real_build_path
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void real_bundle_package_info(const fnpkg *pkg, const char *fname, gretl_bundle *b) { double v3; char *v4; const char *v5; int err; gretl_array *D; unsigned long v9; v9 = __readfsqword(0x28u); err = 0; if ((unsigned int)g_path_is_absolute(fname) && !strstr(fname, "dltmp....
static void real_bundle_package_info(const fnpkg *pkg, const char *fname, gretl_bundle *b) { int err = 0; if (g_path_is_absolute(fname) && !strstr(fname, "dltmp.")) { gretl_bundle_set_string(b, "file", fname); } if (pkg->name[0] == '\0' || pkg->author == NULL || pkg->mi...
real_bundle_package_info
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_bundle_print(gretl_bundle *bundle, int indent, int tree, PRN *prn) { int n_items_0; int n_items; const char *name; GList *L; user_var *u; b_item_printer bip; unsigned long v12; v12 = __readfsqword(0x28u); bip.prn = prn; bip.indent = indent; bip.tree = tree; if (!bundle) return 2; ...
static int real_bundle_print(gretl_bundle *bundle, int indent, int tree, PRN *prn) { struct b_item_printer bip = {prn, indent, tree}; GList *L; if (bundle == NULL) { return E_DATA; } L = gretl_bundle_get_sorted_items(bundle); if (indent > 0) { int n_items = g_hash_ta...
real_bundle_print
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_bundle_set_data(gretl_bundle *b, const char *key, void *ptr, GretlType type, int size, int copy, const char *note) { char *v8; int err; int done; int replace; bundled_item *item; unsigned long v17; v17 = __readfsqword(0x28u); err = 0; done = 0; if (!key || !*key) {...
static int real_bundle_set_data(gretl_bundle *b, const char *key, void *ptr, GretlType type, int size, int copy, const char *note) { int err = 0, done = 0; if (key == NULL || key[0] == '\0') { gretl_errmsg_sprintf("real_bundle_set_data: missing ke...
real_bundle_set_data
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_check_varname(const char *vname, int is_series) { char *v3; char *v4; char *v5; char *v6; char *v7; unsigned int testchar; int firstbad; int err; const char *p; testchar = 97; firstbad = 0; err = 0; gretl_error_clear(); if (vname && *vname) { if (strlen(vname) <= 0x1F) { ...
static int real_check_varname(const char *vname, int is_series) { int testchar = 'a'; int firstbad = 0; int err = 0; gretl_error_clear(); if (vname == NULL || *vname == '\0') { gretl_errmsg_set("Expected an identifier"); return E_PARSE; } if (strlen(vname) >= VNAMELEN) { gretl_errmsg_set(_(...
real_check_varname
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_chow_test(int chowparm, MODEL *pmod, DATASET *dset, int ci, gretlopt opt, PRN *prn) { double v7; int v8; char *v9; char *v10; char *v11; double v12; char *v13; double v14; int v15; char *v16; char *v17; double t1; double v19; MODEL v20; PRN *prna; gretlopt opt...
static int real_chow_test(int chowparm, MODEL *pmod, DATASET *dset, int ci, gretlopt opt, PRN *prn) { int save_t1 = dset->t1; int save_t2 = dset->t2; int *chowlist = NULL; int origv = dset->v; MODEL chow_mod; int QLR = (opt & OPT_T); int dumv = 0, split = 0, smax = 0; int err =...
real_chow_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double real_clogit_fi(int T, int k, int r, gretl_matrix *z, gretl_matrix *df_0, int *err) { int i; int ia; int ib; int ic; int id; int ie; int ig; int ih; int j; int ja; _BOOL4 do_score; double ret; double reta; double S; gretl_matrix *df1; double x_0; double f2_0...
static double real_clogit_fi(int T, int k, int r, gretl_matrix *z, gretl_matrix *df, int *err) { double x, ret = NADBL; int do_score = (df != NULL); int i, j; if (do_score) { for (i = 0; i < r; i++) { gretl_vector_set(df, i, 0); } } if (T < k) { ret = 0.0; ...
real_clogit_fi
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *real_cmatrix_hdp(const gretl_matrix *A, const gretl_matrix *B, int *err) { gretl_matrix *v4; complex_double *v5; complex_double *v6; long v7; complex_double *v8; long v9; int do_symmetric; int i; int j; int k; int ka; int ndx; int q; int r; int ...
static gretl_matrix *real_cmatrix_hdp(const gretl_matrix *A, const gretl_matrix *B, int *err) { gretl_matrix *C = NULL; double complex aij, bik; int do_symmetric = 0; int i, j, k, ndx; int r, p, q, ccols; if (!cmatrix_validate(A, 0)) { *err = E_INVARG; } else if ...
real_cmatrix_hdp
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *real_cmatrix_kron(const gretl_matrix *A, const gretl_matrix *B, int *err) { complex_double *v4; complex_double *v5; double *p_real; int i; int j; int k; int l; int p; int q; int r; int s; gretl_matrix *K; double real; double imag; long v19; ...
static gretl_matrix *real_cmatrix_kron(const gretl_matrix *A, const gretl_matrix *B, int *err) { gretl_matrix *K = NULL; int p, q, r, s; if (!cmatrix_validate(A, 0) || !cmatrix_validate(B, 0)) { *err = E_INVARG; return NULL; } p = A->rows; q = A->cols; r = ...
real_cmatrix_kron
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *real_cmatrix_multiply(const gretl_matrix *A, const gretl_matrix *B, char transa, int *err) { gretl_matrix *C; gretl_matrix *T; C = 0; T = 0; if (A->is_complex && B->is_complex) { if (transa == 78 && (A->rows == ...
static gretl_matrix *real_cmatrix_multiply(const gretl_matrix *A, const gretl_matrix *B, char transa, int *err) { gretl_matrix *C = NULL; gretl_matrix *T = NULL; if (A->is_complex && B->is_complex) { if (transa == 'N' && (c...
real_cmatrix_multiply
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_correlogram_print_plot(const char *vname, const double *acf, const double *pacf, const gretl_matrix *PM, int m, double pm, gretlopt opt, FILE *fp) { char *v8; char *v9; char *v10; char *v11; char *v12; char *v13; int k; int ka; i...
static int real_correlogram_print_plot(const char *vname, const double *acf, const double *pacf, const gretl_matrix *PM, int m, double pm, gretlopt opt, FILE *fp) { const char *PM_title = N_("95% inte...
real_correlogram_print_plot
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
DATASET *real_create_new_dataset(int nvar, int nobs, gretlopt opt) { DATASET *dset; dset = datainfo_new(); if (!dset) return 0; dset->v = nvar; dset->n = nobs; dset->Z = 0; if (start_new_Z(dset, opt)) { free(dset); return 0; } else if ((opt & 0x1000) != 0 && dataset_allocate_obs_markers(dse...
static DATASET *real_create_new_dataset(int nvar, int nobs, gretlopt opt) { DATASET *dset = datainfo_new(); if (dset == NULL) return NULL; dset->v = nvar; dset->n = nobs; dset->Z = NULL; if (start_new_Z(dset, opt)) { free(dset); return NULL; } if (opt & OPT_M) { if (dataset_allocate_...
real_create_new_dataset
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_dataset_add_observations(DATASET *dset, int n, gretlopt opt) { double v4; char opta; int i; int t; int ta; int oldn; int bign; double *x; opta = opt; oldn = dset->n; if (dset->auxiliary == 2) { fwrite("*** Internal error: modifying borrowed data\n", 1u, 0x2Cu, stderr); return 2; ...
static int real_dataset_add_observations(DATASET *dset, int n, gretlopt opt) { double *x; int oldn = dset->n; int i, t, bign; int err = 0; if (dset_zcols_borrowed(dset)) { fprintf(stderr, "*** Internal error: modifying borrowed data\n"); return E_DATA; } if (n <= 0) { return 0; } if (da...
real_dataset_add_observations
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_dateton(const char *date, const DATASET *dset, int nolimit) { int v4; char *v5; char *v6; char *v7; int y21; int slash1; int y22; int slash2; int handled; int t; int n; int tryit; int pos1; int pos2; int maj; int min; int maj0; int min0; char tmp[24]; unsigned long v24; ...
static int real_dateton(const char *date, const DATASET *dset, int nolimit) { int handled = 0; int t, n = -1; if (calendar_data(dset)) { #if DATES_DEBUG fprintf(stderr, "dateton: treating as calendar data\n"); #endif if (dataset_has_markers(dset)) { int tryit, y21 = 0, slash1 = 0; int y22 = ...
real_dateton
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_delete_recursive(const char *path) { int v1; int err; GDir *dir; const char *fname; *__errno_location() = 0; dir = (GDir *)g_dir_open(path, 0, 0); if (dir) { err = g_chdir(path); while (1) { fname = (const char *)g_dir_read_name(dir); if (!fname || err) break; i...
static int real_delete_recursive(const char *path) { GDir *dir; int err = 0; errno = 0; dir = g_dir_open(path, 0, NULL); if (dir == NULL) { err = 1; } else { const gchar *fname; err = g_chdir(path); while ((fname = g_dir_read_name(dir)) != NULL && !err) { if (strcmp(fname, ".") && ...
real_delete_recursive
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_destroy_user_vars_at_level(int level, int type, int imin) { int i; int j; int nv; nv = imin; for (i = imin; i < n_vars_0 && uvars[i]; ++i) { if (type <= 0 || uvars[i]->type == type) { if (uvar_levels_match(uvars[i], level)) { user_var_destroy(uvars[i]); for (j = i; j < n_va...
static int real_destroy_user_vars_at_level(int level, int type, int imin) { int i, j, nv = imin; int err = 0; #if HDEBUG fprintf(stderr, "real_destroy_user_vars_at_level: level %d, " "type %d (%s), imin=%d\n", level, type, gretl_type_get_name(type), imin); #endif for (i = imin; i...
real_destroy_user_vars_at_level
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_do_printf(const char *format, const char *args, DATASET *dset, PRN *inprn, int *nchars, int t) { const char *v7; char *v8; int err; const char *p; const char *q; PRN *prn; const char *buf; unsigned long v18; v18 = __readfsqword(0x28u); prn = 0; err = 0; if (!inprn) ...
static int real_do_printf(const char *format, const char *args, DATASET *dset, PRN *inprn, int *nchars, int t) { PRN *prn = NULL; int err = 0; if (inprn == NULL) { return 0; } gretl_error_clear(); #if PSDEBUG fprintf(stderr, "real_do_printf:\n"); fprintf(stderr, " format =...
real_do_printf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_dpanel_fcast(double *yhat, gretl_matrix *fc, char **rlabels, MODEL *pmod, const char *mask, const DATASET *dset, gretlopt opt) { int v8; int v9; int v10; int v11; int free_ylags; int fc_static; int t1min; int t1mina; int tdt; int i; int ia; in...
static int real_dpanel_fcast(double *yhat, gretl_matrix *fc, char **rlabels, MODEL *pmod, const char *mask, const DATASET *dset, gretlopt opt) { const double *y, *xi, *b; double *yi = NULL; int *xlist, *ylags = NULL; int yno, free_ylags = 0; int fc_sta...
real_dpanel_fcast
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_drop_listed_vars(int *list, DATASET *dset, int *renumber, int drop, PRN *prn) { char *v6; char *v7; char *v8; char *v9; char *v10; char *v11; int vmax; int delmin; int i; int ia; int ib; int ic; int v; int va; int vb; int ndel; int err; int gap; i...
static int real_drop_listed_vars(int *list, DATASET *dset, int *renumber, int drop, PRN *prn) { int oldv = dset->v, vmax = dset->v; char vname[VNAMELEN] = {0}; int d0, d1; int delmin = oldv; int i, v, ndel = 0; int err = 0; if (renumber != NULL) { *renumber = 0; } ...
real_drop_listed_vars
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void real_echo_command(CMD *cmd, const char *line, int recording, PRN *prn) { int commented_store; int compiling; const char *leader; leader = 0; commented_store = 0; compiling = 0; if (line && *line && prn && (!cmd || cmd->ci <= 146)) { if (gretl_compiling_function() || gretl_compiling_loop()) ...
static void real_echo_command(CMD *cmd, const char *line, int recording, PRN *prn) { const char *leader = NULL; int commented_store = 0; int compiling = 0; if (line == NULL || *line == '\0' || prn == NULL) { return; } if (cmd != NULL && cmd->ci >= NC) { return; } ...
real_echo_command
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *real_format_obs(char *obs, int maj, int min, int pd, char sep) { int pdp; int minlen; char fmt[24]; unsigned long v10; v10 = __readfsqword(0x28u); if (pd <= 9) { sprintf(obs, "%d%c%d", maj, (unsigned int)sep, min); } else { pdp = pd / 10; for (minlen = 2;; ++minlen) { pdp /= 10; ...
static char *real_format_obs(char *obs, int maj, int min, int pd, char sep) { if (pd >= 10) { int pdp = pd / 10, minlen = 2; char fmt[18]; while ((pdp = pdp / 10)) minlen++; sprintf(fmt, "%%d%c%%0%dd", sep, minlen); sprintf(obs, fmt, maj, min); } else { sprintf(obs, "%d%c%d", maj, sep...
real_format_obs
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_function_lookup(const char *s, int aliases, parser *p) { int i; gpointer fnp; if (s) { if (!fht_1) fht_1 = gretl_function_hash_init(); fnp = (gpointer)g_hash_table_lookup(fht_1, s); if (fnp) { if (p && *(int *)fnp > 0 && *(int *)fnp <= 291) p->data = (void *)*((_QWORD *)f...
static int real_function_lookup(const char *s, int aliases, parser *p) { static GHashTable *fht; gpointer fnp; if (s == NULL) { if (fht != NULL) { g_hash_table_destroy(fht); fht = NULL; } return 0; } if (fht == NULL) { fht = gretl_function_hash_init(); } fnp = g_hash_table_...
real_function_lookup
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void real_function_package_free(fnpkg *pkg, int full) { int i; int ia; int ib; if (pkg) { if (full) { for (i = 0; i < pkg->n_pub; ++i) ufunc_free(pkg->pub[i]); for (ia = 0; ia < pkg->n_priv; ++ia) ufunc_free(pkg->priv[ia]); } else { for (ib = 0; ib < n_ufuns; ++ib) { ...
static void real_function_package_free(fnpkg *pkg, int full) { if (pkg != NULL) { int i; if (full) { for (i = 0; i < pkg->n_pub; i++) { ufunc_free(pkg->pub[i]); } for (i = 0; i < pkg->n_priv; i++) { ufunc_free(pkg->priv[i]); } } else { for (i = 0; i < n_ufuns...
real_function_package_free
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void real_function_package_unload(fnpkg *pkg, int full) { int i; int ia; int ib; int j; int found; found = 0; if (full) { for (i = 0; i < pkg->n_priv; ++i) ufunc_unload(pkg->priv[i]); for (ia = 0; ia < pkg->n_pub; ++ia) ufunc_unload(pkg->pub[ia]); } for (ib = 0; ib < n_pkgs; ++ib)...
static void real_function_package_unload(fnpkg *pkg, int full) { int i, j, found = 0; #if PKG_DEBUG fprintf(stderr, "function_package_unload: unloading '%s', full=%d\n", pkg->name, full); #endif if (full) { for (i = 0; i < pkg->n_priv; i++) { ufunc_unload(pkg->priv[i]); } for (i = 0;...
real_function_package_unload
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_get_fcast(FITRESID *fr, MODEL *pmod, DATASET *dset, gretlopt opt) { double *v5; double v6; int yno; int dummy_AR; int DM_errs; int dyn_errs; int asy_errs; int int_errs; int nf; int t; int err; int integrate; int same_data; const double **Z; Forecast fc; unsigned long v23; v23...
static int real_get_fcast(FITRESID *fr, MODEL *pmod, DATASET *dset, gretlopt opt) { Forecast fc; const double **Z = (const double **)dset->Z; int yno = gretl_model_get_depvar(pmod); int integrate = (opt & OPT_I); int dummy_AR = 0; int DM_errs = 0; int dyn_errs = 0; int asy_errs...
real_get_fcast
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int *real_get_obj_list(void *p, GretlObjType type, int idx, int *err) { const MODEL *pmod; const GRETL_VAR *var; const equation_system *sys; const int *list; int *ret; pmod = 0; var = 0; sys = 0; ret = 0; if (idx <= 0 || !p || type != GRETL_OBJ_EQN && type != GRETL_OBJ_VAR && type != GRETL_OB...
static int *real_get_obj_list(void *p, GretlObjType type, int idx, int *err) { const MODEL *pmod = NULL; const GRETL_VAR *var = NULL; const equation_system *sys = NULL; const int *list = NULL; int *ret = NULL; if (idx <= 0 || p == NULL || !list_carrying_type(type)) { *err = E_DATA; return NULL; }...
real_get_obj_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *real_get_obj_matrix(void *p, GretlObjType type, int idx, int *err) { gretl_matrix *M; M = 0; if (idx > 0) { switch (type) { case GRETL_OBJ_EQN: return gretl_model_get_matrix((MODEL *)p, (ModelDataIndex)idx, err); case GRETL_OBJ_SYS: return e...
static gretl_matrix *real_get_obj_matrix(void *p, GretlObjType type, int idx, int *err) { gretl_matrix *M = NULL; if (idx <= 0) { *err = 1; return M; } if (type == GRETL_OBJ_EQN) { MODEL *pmod = (MODEL *)p; M = gretl_model_get_matrix(pmod, idx, err); ...
real_get_obj_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double real_get_obj_scalar(void *p, GretlObjType type, DATASET *dset, int idx) { int err; double x; GRETL_VAR *var; equation_system *sys; MODEL *pmod; unsigned long v10; v10 = __readfsqword(0x28u); x = -999.999; err = 0; if (idx <= 0) return x; switch (type) { case GRETL_OBJ_EQN: pmod =...
static double real_get_obj_scalar(void *p, GretlObjType type, DATASET *dset, int idx) { double x = INVALID_STAT; int err = 0; if (idx <= 0) { return x; } if (type == GRETL_OBJ_EQN) { MODEL *pmod = (MODEL *)p; x = gretl_model_get_scalar(pmod, idx, dset, &err); ...
real_get_obj_scalar
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *real_get_obj_string(void *p, GretlObjType type, int idx, const DATASET *dset, int *err) { const char *v6; const char *v7; const char *v8; char *str; const char *s; str = 0; if (idx > 0) { if (idx == 95) { switch (type) { case GRETL_OBJ_EQN: v6 = gre...
static char *real_get_obj_string(void *p, GretlObjType type, int idx, const DATASET *dset, int *err) { char *str = NULL; if (idx <= 0) { *err = 1; return str; } if (idx == M_COMMAND) { if (type == GRETL_OBJ_EQN) { MODEL *pmod = (MODEL *)p; str = gretl_...
real_get_obj_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *real_gretl_dgeev(const gretl_matrix *A, gretl_matrix *VR, gretl_matrix *VL, int legacy, int *err) { char v5; char v6; integer v8; integer v9; char jobvl; char jobvr; integer n; integer info; integer lwork; integer ldvl; integer ldvr; gretl_matrix *Ltm...
static gretl_matrix *real_gretl_dgeev(const gretl_matrix *A, gretl_matrix *VR, gretl_matrix *VL, int legacy, int *err) { gretl_matrix *ret = NULL; gretl_matrix *Acpy = NULL; gretl_matrix *Ltmp = NULL; gretl_matrix *Rtmp = NULL; gretl_matrix *VLz = NULL; gretl_matrix *VR...
real_gretl_dgeev
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_gretl_matrix_SVD(const gretl_matrix *x, gretl_matrix **pu, gretl_vector **ps, gretl_matrix **pvt, int full) { integer v6; integer v7; integer v8; char v9; char v10; integer v11; char v12; _BYTE jobu[3]; integer m; integer n; integer lda; integer ldu; integer ...
static int real_gretl_matrix_SVD(const gretl_matrix *x, gretl_matrix **pu, gretl_vector **ps, gretl_matrix **pvt, int full) { integer m, n, lda; integer ldu = 1, ldvt = 1; integer lwork = -1; integer *iwork = NULL; integer info; gretl_matrix ...
real_gretl_matrix_SVD
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *real_gretl_matrix_data_subset(const int *list, const DATASET *dset, int t1, int t2, const char *mask, int op, int *err) { int v8; int v9; int v10; int t2a; int t1a;...
static gretl_matrix *real_gretl_matrix_data_subset(const int *list, const DATASET *dset, int t1, int t2, const char *mask, int op, int *err) { gretl_matrix *M = NULL...
real_gretl_matrix_data_subset
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_gretl_matrix_is_symmetric(const gretl_matrix *m, int verbose) { int i; int j; double x; double y; double rd; if (!m || !m->rows || !m->cols) return 0; i = 1; LABEL_15: if (i >= m->rows) return 1; for (j = 0;; ++j) { if (j >= i) { ++i; goto LABEL_15; } x = m->v...
static int real_gretl_matrix_is_symmetric(const gretl_matrix *m, int verbose) { double x, y, rd; int i, j; if (gretl_is_null_matrix(m)) { return 0; } for (i = 1; i < m->rows; i++) { for (j = 0; j < i; j++) { x = gretl_matrix_get(m, i, j); y = gretl_matrix_get(m, j, i); if ((rd = sn...
real_gretl_matrix_is_symmetric
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
PRN *real_gretl_print_new(PrnType ptype, const char *fname, char *buf, FILE *fp, int zcomp, int *perr) { int err; PRN *prn; prn = (PRN *)malloc(0x48u); err = 0; if (!prn) { if (perr) *perr = 12; return 0; } prn->fp = 0; prn->fz = 0; prn->fplist = 0; prn->buf ...
static PRN *real_gretl_print_new(PrnType ptype, const char *fname, char *buf, FILE *fp, int zcomp, int *perr) { PRN *prn = malloc(sizeof *prn); int err = 0; if (prn == NULL) { if (perr != NULL) { *perr = E_ALLOC; } return NULL; } prn->fp = NULL; prn->fz =...
real_gretl_print_new
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_gretl_rand_int_minmax(int *a, int n, int min, int max, int alt) { int maxa; guint32 mina; int i; int ia; int err; int offset; mina = min; maxa = max; err = 0; if (max < min) return 17; if (min == max) { for (i = 0; i < n; ++i) a[i] = min; } else { offset = 0; if (...
static int real_gretl_rand_int_minmax(int *a, int n, int min, int max, int alt) { int i, err = 0; if (max < min) { err = E_INVARG; } else if (min == max) { for (i = 0; i < n; i++) { a[i] = min; } } else { int offset = 0; if (min < 0) { offs...
real_gretl_rand_int_minmax
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
GRETL_VAR *real_gretl_restricted_vecm(GRETL_VAR *orig, gretl_restriction *rset, const DATASET *dset, PRN *prn, int *err) { double v6; gretlopt jopt; gretlopt prnopt; int df_0; gretlopt ropt; GRETL_VAR *jvar; int *list; double x; double pv; if (orig && orig->jin...
GRETL_VAR *real_gretl_restricted_vecm(GRETL_VAR *orig, gretl_restriction *rset, const DATASET *dset, PRN *prn, int *err) { GRETL_VAR *jvar = NULL; gretlopt jopt = OPT_NONE; int *list = NULL; if (orig == NULL || orig->jinfo == NULL || rset == NULL) { *err = E_DATA; ...
real_gretl_restricted_vecm
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double real_gretl_variance(int t1, int t2, const double *x, int asy) { double v5; int t; int n; double v; double va; double xbar; if (t2 - t1 == -1) return NAN; xbar = j_gretl_mean(t1, t2, x); if (fabs(xbar) > 1.797693134862316e308) return NAN; v = 0.0; n = 0; for (t = t1; t <= t2; ++t)...
double real_gretl_variance(int t1, int t2, const double *x, int asy) { int t, n = t2 - t1 + 1; double v, dx, xbar; if (n == 0) { return NADBL; } xbar = gretl_mean(t1, t2, x); if (na(xbar)) { return NADBL; } v = 0.0; n = 0; for (t = t1; t <= t2; t++) { if (!na(x[t])) { dx = x[t...
real_gretl_variance
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_import_csv(const char *fname, DATASET *dset, const char *cols, const char *rows, joinspec *join, void *probe, gretl_matrix **pm, gretlopt opt, PRN *prn) { char *v9; char *v10; int flags; int v12; int v13; int v14; int v15; unsigned int delim; char *v17;...
int real_import_csv(const char *fname, DATASET *dset, const char *cols, const char *rows, joinspec *join, void *probe, gretl_matrix **pm, gretlopt opt, PRN *prn) { csvdata *c = NULL; gzFile fp = NULL; PRN *mprn = NULL; gchar *altname = NULL; int recode = 0; int popit ...
real_import_csv
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_insert_observation(int pos, DATASET *dset) { double v3; int i; int t; int ta; int n; double *x; n = dset->n + 1; for (i = 0; i < dset->v; ++i) { x = (double *)realloc(dset->Z[i], 8LL * n); if (!x) return 12; dset->Z[i] = x; for (t = dset->n; t > pos; --t) dset->Z[i]...
static int real_insert_observation(int pos, DATASET *dset) { double *x; int n = dset->n + 1; int i, t; int err = 0; for (i = 0; i < dset->v; i++) { x = realloc(dset->Z[i], n * sizeof *x); if (x == NULL) { return E_ALLOC; } dset->Z[i] = x; for (t = dset->n; t > pos; t--) { dset...
real_insert_observation
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_invert_symmetric_matrix(gretl_matrix *a, int checked, int verbose) { int v4; char uplo; integer n; integer info; int err; double *aval; size_t bytes; unsigned long v12; v12 = __readfsqword(0x28u); aval = 0; uplo = 76; err = 0; if (!a || !a->rows || !a->cols) return 2; if (a->co...
static int real_invert_symmetric_matrix(gretl_matrix *a, int checked, int verbose) { integer n, info; double *aval = NULL; size_t bytes; char uplo = 'L'; int err = 0; if (gretl_is_null_matrix(a)) { return E_DATA; } if (a->cols != a->rows) { fputs("real_i...
real_invert_symmetric_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void real_irf_print_plot(const gretl_matrix *resp, const char *targname, const char *shockname, const char *perlabel, double alpha, int confint, int use_fill, FILE *fp) { int rows; char *v9; char *v10; char *v11; char *v12; char *v13; int t; int ta; in...
static void real_irf_print_plot(const gretl_matrix *resp, const char *targname, const char *shockname, const char *perlabel, double alpha, int confint, int use_fill, FILE *fp) { int periods = gretl_matrix_rows(resp); gch...
real_irf_print_plot
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *real_iso_to_ascii(char *s, int latin) { size_t v2; int latina; char *tmp; latina = latin; v2 = strlen(s); tmp = (char *)malloc(v2 + 1); if (!tmp) return 0; if (latin != 1 && latin != 2) latina = 1; iso_to_ascii_translate(tmp, s, latina); strcpy(s, tmp); free(tmp); return s; }
static char *real_iso_to_ascii(char *s, int latin) { char *tmp; tmp = malloc(strlen(s) + 1); if (tmp == NULL) { return NULL; } if (latin != 1 && latin != 2) { latin = 1; } iso_to_ascii_translate(tmp, s, latin); strcpy(s, tmp); free(tmp); return s; }
real_iso_to_ascii
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_kendall_tau(const double *x, const double *y, int n, xy_pair *xy, int nn, double *ptau, double *pz) { int tx; int txa; int ty; int tya; int Tx; int Ty; int Tx2; int Ty2; int Tx25; int Ty25; int N0; int N1; int i; int ia; int ib; int j; int ja; int S; d...
static int real_kendall_tau(const double *x, const double *y, int n, struct xy_pair *xy, int nn, double *ptau, double *pz) { double tau, nn1, s2, z; int tt1, tx = 0, ty = 0; int Tx = 0, Ty = 0; int Tx2 = 0, Ty2 = 0; int Tx25 = 0, Ty25 = 0; int tie, N0,...
real_kendall_tau
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int real_kpss_test(int order, int varno, DATASET *dset, gretlopt opt, kpss_info *kinfo, PRN *prn) { char *v7; char *v8; int v9; char *v10; char *v11; char *v12; char *v13; char *v14; char *v15; char *v16; char *v17; char *v18; char *v19; char *v20; MODEL v21; PRN *prna...
static int real_kpss_test(int order, int varno, DATASET *dset, gretlopt opt, kpss_info *kinfo, PRN *prn) { MODEL KPSSmod; int *list = NULL; int hastrend = 0, hasseas = 0; double et, s2 = 0.0; double cumsum = 0.0, cumsum2 = 0.0; double teststat, pval = NADBL; double *autocov; in...
real_kpss_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0