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 transcribe_db_data(DATASET *dset, int targv, const double *src, int pd, int nobs, char *stobs, CompactMethod cmethod) { int nobsa; const double *srca; int pda; int targva; DATASET *dseta; int free_xvec; double *xvec; dseta = dset; targva = targv; srca = src; pda = pd; ...
int transcribe_db_data(DATASET *dset, int targv, const double *src, int pd, int nobs, char *stobs, CompactMethod cmethod) { double *xvec = (double *)src; int free_xvec = 0; if (pd != dset->pd) { if (pd < dset->pd) { xvec = expand_db_series(src, pd, &nobs, stobs, dset); } els...
transcribe_db_data
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int transcribe_geoplot_file(const char *src, const char *dest, const char *datname) { int integrate; int err; int i; int n; int na; FILE *fdat; FILE *f1; FILE *f2; gchar *dattmp; char *s; char buf[8200]; unsigned long v16; v16 = __readfsqword(0x28u); integrate = ...
int transcribe_geoplot_file(const char *src, const char *dest, const char *datname) { FILE *f1 = NULL, *f2 = NULL; const char *mapdata = "$MapData"; char buf[8196]; int integrate = -1; int n, err = 0; f1 = gretl_fopen(src, "rb"); f2 = gretl_fopen(dest, "wb"); if (f1 == NULL...
transcribe_geoplot_file
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void transcribe_graph_name(DATASET *targ, int i, const DATASET *src, int j) { const char *s; s = series_get_display_name(src, j); if (s) { if (*s) series_record_display_name(targ, i, s); } }
static void transcribe_graph_name(DATASET *targ, int i, const DATASET *src, int j) { const char *s = series_get_display_name(src, j); if (s != NULL && *s != '\0') { series_record_display_name(targ, i, s); } }
transcribe_graph_name
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int transcribe_lbfgs_bounds(const gretl_matrix *m, int nparm, int *nbd, double *l, double *u) { int cols; int i; int ia; int err; int j; int ja; double h; h = libset_get_double(CONV_HUGE); if (m) cols = m->cols; else cols = 0; err = 0; if (cols == 3) { fo...
static int transcribe_lbfgs_bounds(const gretl_matrix *m, int nparm, int *nbd, double *l, double *u) { double h = libset_get_double(CONV_HUGE); int i, j, c = gretl_matrix_cols(m); int err = 0; if (c != 3) { fprintf(stderr, "lbfgs_bounds: matrix should have 3 cols\n"); ...
transcribe_lbfgs_bounds
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int transcribe_ld_vcv(MODEL *targ, MODEL *src) { double *vcv; double *v3; double *v4; int i; int j; int err; int nv; nv = targ->ncoeff; err = makevcv(src, src->sigma); if (!err && !targ->vcv) { targ->vcv = (double *)malloc(8LL * ((nv * nv + nv) / 2)); if (!targ->vcv) err = 12; } i...
static int transcribe_ld_vcv(MODEL *targ, MODEL *src) { int nv = targ->ncoeff; int nxpx = (nv * nv + nv) / 2; int i, j, err = 0; err = makevcv(src, src->sigma); if (!err && targ->vcv == NULL) { targ->vcv = malloc(nxpx * sizeof *targ->vcv); if (targ->vcv == NULL) { err = E_ALLOC; } } i...
transcribe_ld_vcv
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int transcribe_nls_function(MODEL *pmod, const char *s) { const char *sa; int err; char *formula; err = 0; sa = &s[strcspn(s, " ") + 3]; formula = gretl_strdup(sa); if (!sa) return 12; gretl_model_set_string_as_data(pmod, "nl_regfunc", formula); return err; }
static int transcribe_nls_function(MODEL *pmod, const char *s) { char *formula; int err = 0; s += strcspn(s, " ") + 3; formula = gretl_strdup(s); if (s != NULL) { gretl_model_set_string_as_data(pmod, "nl_regfunc", formula); } else { err = E_ALLOC; } return err; }
transcribe_nls_function
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void transcribe_obs_label(csvdata *c, int t) { char c0; int n; const char *s; s = c->str; c0 = c->str[0]; n = strlen(c->str); if (c0 == 34 || c0 == 39) { if (c0 == s[n - 1]) s[--n] = 0; s = &c->str[1]; --n; if (c->str[1] == 39) { s = &c->str[2]; --n; } } if (n > ...
static void transcribe_obs_label(csvdata *c, int t) { char *s = c->str; char c0 = *s; int n = strlen(s); if (c0 == '"' || c0 == '\'') { if (s[n - 1] == c0) { s[n - 1] = '\0'; n--; } s++; n--; if (s[0] == '\'') { s++; n--; } } if (n > OBSLEN - 1) { n = O...
transcribe_obs_label
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretlopt transcribe_option_flags(gretlopt *targ, gretlopt src, gretlopt test) { *targ |= test & src; return *targ; }
gretlopt transcribe_option_flags(gretlopt *targ, gretlopt src, gretlopt test) { *targ |= (src & test); return *targ; }
transcribe_option_flags
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void transcribe_string(char *targ, const char *src, int maxlen) { *targ = 0; strncat(targ, src, maxlen - 1); }
static void transcribe_string(char *targ, const char *src, int maxlen) { *targ = '\0'; strncat(targ, src, maxlen - 1); }
transcribe_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int transcribe_style(const char *s) { size_t v1; gretlRGB rgb; int i; int got; const char *p; unsigned long v7; v7 = __readfsqword(0x28u); p = s; for (i = 0; i <= 7; ++i) { p = strstr(p, " lc rgb "); got = 0; if (p) { p += 8; v1 = strspn(p, " "); p += v1; if ((unsi...
static int transcribe_style(const char *s) { const char *p = s; gretlRGB rgb; int i, got; for (i = 0; i < N_GP_LINETYPES; i++) { p = strstr(p, " lc rgb "); got = 0; if (p != NULL) { p += 8; p += strspn(p, " "); if (sscanf(p + 1, "#%x", &rgb) == 1) { user_color[i] = rgb; ...
transcribe_style
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void transcribe_to_matrix(gretl_matrix *fc, double yt, double fct, char **S, const DATASET *dset, int t, int j) { double *val; long v8; char obsstr[24]; unsigned long v11; v11 = __readfsqword(0x28u); if (S) { ntolabel(obsstr, t, dset); S[j] = gretl_strdup(obsstr); } if...
static void transcribe_to_matrix(gretl_matrix *fc, double yt, double fct, char **S, const DATASET *dset, int t, int j) { if (S != NULL) { char obsstr[OBSLEN]; ntolabel(obsstr, t, dset); S[j] = gretl_strdup(obsstr); } if (fc->cols == 2) { gretl_matrix_set(fc, j, 0,...
transcribe_to_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int transcribe_to_nlspec(nlspec *s, midas_info *mi, gretlopt opt) { int err; s->ncoeff = mi->theta->rows + mi->b->rows; err = make_full_coeff_vector(mi, s->ncoeff); if (!err) { s->ci = 77; s->opt = opt; s->dv = *((_DWORD *)mi->list + 1); s->coeff = mi->b->val; s->t1 = mi->dset->t1; s->t...
static int transcribe_to_nlspec(nlspec *s, midas_info *mi, gretlopt opt) { int err = 0; s->ncoeff = mi->b->rows + mi->theta->rows; err = make_full_coeff_vector(mi, s->ncoeff); if (err) { return err; } s->ci = MIDASREG; s->opt = opt; s->dv = mi->list[1]; s->coeff = mi->b->val; s->t1 = mi->dset-...
transcribe_to_nlspec
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int transform_daily_dates(DATASET *dset, int dorder, char sep) { int yr; int mon; int day; int t; int n; int err; char *label; char fmt[24]; unsigned long v12; v12 = __readfsqword(0x28u); err = 0; if (sep <= 0) strcpy(fmt, "%4d%2d%2d"); else sprintf(fmt, "%%d%c%%d%c%%d", (unsigned int...
static int transform_daily_dates(DATASET *dset, int dorder, char sep) { char *label, fmt[16]; int t, yr, mon, day; int n, err = 0; if (sep > 0) { sprintf(fmt, "%%d%c%%d%c%%d", sep, sep); } else { strcpy(fmt, "%4d%2d%2d"); } for (t = 0; t < dset->n && !err; t++) { label = dset->S[t]; if (...
transform_daily_dates
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int transform_handle_duplicate(int ci, int lag, int v, const double *x, const char *label, DATASET *dset, int parent, int origv) { int ret; _BOOL4 no_overwrite; int t; _BOOL4 ok; const char *vlabel; vlabel = series_get_label(dset, v); ret = 3;...
static int transform_handle_duplicate(int ci, int lag, int v, const double *x, const char *label, DATASET *dset, int parent, int origv) { const char *vlabel = series_get_label(dset, v); int ret = VARNAME_DUPLICATE; int no_overwrite = 0; ...
transform_handle_duplicate
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int transform_preprocess_list(int *list, const DATASET *dset, int f) { char *v3; _BOOL4 v4; int v5; size_t v6; int mangled_name; int longnames; int maxc; int i; int ok; int err; int j; int herr; int v; char **S[2]; S[1] = (char **)__readfsqword(0x28u); maxc = 29; longnames = 0; S[0]...
static int transform_preprocess_list(int *list, const DATASET *dset, int f) { int maxc = VNAMELEN - 3; int longnames = 0; char **S = NULL; int i, v, ok; int err = 0; if (f == SQUARE || f == LDIFF || f == SDIFF || f == RESAMPLE) { maxc--; } else if (f == DUMMIFY) { maxc--; } for (i = 1; i <...
transform_preprocess_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int transpose_data(DATASET *dset) { int i; int t; int ta; int k; int T; int k_0; DATASET *tset; char *targ; k = dset->n + 1; T = dset->v - 1; tset = create_new_dataset(k, T, 0); if (!tset) return 12; for (i = 1; i < dset->v; ++i) { for (t = 0; t < dset->n; ++t) tset->Z[t + 1][i ...
int transpose_data(DATASET *dset) { DATASET *tset; int k = dset->n + 1; int T = dset->v - 1; int i, t; tset = create_new_dataset(k, T, 0); if (tset == NULL) { return E_ALLOC; } for (i = 1; i < dset->v; i++) { for (t = 0; t < dset->n; t++) { tset->Z[t + 1][i - 1] = dset->Z[i][t]; } ...
transpose_data
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int transpose_varname_used(const char *vname, DATASET *dinfo, int imax) { int i; for (i = 0; i < imax; ++i) { if (!strcmp(vname, dinfo->varname[i])) return 1; } return 0; }
static int transpose_varname_used(const char *vname, DATASET *dinfo, int imax) { int i; for (i = 0; i < imax; i++) { if (!strcmp(vname, dinfo->varname[i])) { return 1; } } return 0; }
transpose_varname_used
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void trash_param_info(char *name, fn_param *param) { free(name); free(param->descrip); param->descrip = 0; if (param->nlabels > 0) { strings_array_free(param->labels, param->nlabels); param->labels = 0; param->nlabels = 0; } }
static void trash_param_info(char *name, fn_param *param) { free(name); free(param->descrip); param->descrip = NULL; if (param->nlabels > 0) { strings_array_free(param->labels, param->nlabels); param->labels = NULL; param->nlabels = 0; } }
trash_param_info
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int traverse_left(parser *p) { int level; int err; NODE *t; NODE *prev; t = p->lhtree; prev = 0; level = 0; err = 0; while (t && !err) { err = explore_node(t, level, prev, p); if (t->aux && t->aux->t == 57) prev = t; else prev = 0; t = t->L; ++level; } return err; ...
static int traverse_left(parser *p) { NODE *t = p->lhtree; NODE *prev = NULL; int level = 0; int err = 0; while (t && !err) { err = explore_node(t, level, prev, p); if (t->aux != NULL && t->aux->t == MAT) { prev = t; } else { prev = NULL; } t = t->L; level++; } return...
traverse_left
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *trend_node(parser *p) { NODE *ret; ret = 0; if ((p->flags & 2) != 0) { ret = aux_empty_series_node(p); if (!p->err) { p->err = gen_time(p->dset, 1, &ret->vnum); if (!p->err) { ret->v.str = (char *)p->dset->Z[ret->vnum]; ret->flags &= ~2u; } } } return ret; ...
static NODE *trend_node(parser *p) { NODE *ret = NULL; if (starting(p)) { ret = aux_empty_series_node(p); if (!p->err) { p->err = gen_time(p->dset, 1, &ret->vnum); if (!p->err) { ret->v.xvec = p->dset->Z[ret->vnum]; ret->flags &= ~TMP_NODE; } } } return ret; }
trend_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double **triangular_array_new(int n) { int i; int ia; double **m; m = (double **)malloc(8LL * n); if (m) { for (i = 0; i < n; ++i) m[i] = 0; for (ia = 0; ia < n; ++ia) { m[ia] = (double *)malloc(8LL * (ia + 1)); if (!m[ia]) { free_triangular_array(m, n); return 0; ...
static double **triangular_array_new(int n) { double **m = malloc(n * sizeof *m); int i; if (m != NULL) { for (i = 0; i < n; i++) { m[i] = NULL; } for (i = 0; i < n; i++) { m[i] = malloc((i + 1) * sizeof **m); if (m[i] == NULL) { free_triangular_array(m, n); return N...
triangular_array_new
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void tricky_print_palette(const char *p, const double *zlim, FILE *fp) { const char *v3; int i; int j; double z; double step; const char *hc[6]; const char *colors[3][3]; unsigned long v11; v11 = __readfsqword(0x28u); colors[0][0] = "#D4E4F2"; colors[0][1] = "steelblue"; colors[0][2] = 0; col...
static void tricky_print_palette(const char *p, const double *zlim, FILE *fp) { const char *colors[3][3] = {{"#D4E4F2", "steelblue", NULL}, {"#E9D9B5", "dark-orange", NULL}, {"#58996E", "#E1D99A", "#C0414C"}}; int i = 3; if (p == NULL) { i = 3; } ...
tricky_print_palette
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double trigamma(double x) { double ret; double z; double y; ret = 0.0; if (x <= 0.0) return NAN; if (x < 0.000001) return 1.0 / (x * x); for (z = x; z < 5.0; z = z + 1.0) ret = 1.0 / (z * z) + ret; y = 1.0 / (z * z); return 0.5 * y + (((((((y * 1.166666666666667 + -0.253113553113...
double trigamma(double x) { double ret = 0; double A = 0.000001; double B = 5.0; double b2 = 1.0 / 6; double b4 = -1.0 / 30; double b6 = 1.0 / 42; double b8 = -1.0 / 30; double b10 = 5.0 / 66; double b12 = -691.0 / 2730; double b14 = 7.0 / 6; if (x <= 0) { ret = NADBL; } else if (x < A) { ...
trigamma
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *trim_text(char *s) { while (((*__ctype_b_loc())[*s] & 0x2000) != 0) ++s; return tailstrip(s); }
static char *trim_text(char *s) { while (isspace(*s)) s++; return tailstrip(s); }
trim_text
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void trim_to_length(char *s) { int i; int n; n = strlen(s); if (n > 76) { for (i = n - 1; i > 0; --i) { if (s[i] == 32) { s[i] = 0; return; } } } }
static void trim_to_length(char *s) { int i, n = strlen(s); if (n < SAFELEN - 1) return; for (i = n - 1; i > 0; i--) { if (s[i] == ' ') { s[i] = '\0'; break; } } }
trim_to_length
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
uint32_t trnstmp(eqdeg_t *eq, uint32_t tmp) { return (tmp >> eq->shift_0) & eq->greal_mask ^ tmp; }
static inline uint32_t trnstmp(eqdeg_t *eq, uint32_t tmp) { tmp ^= (tmp >> eq->shift_0) & eq->greal_mask; return tmp; }
trnstmp
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int true_const(int v, const DATASET *dset) { if (v >= 0 && v < dset->v) return gretl_isunits(dset->t1, dset->t2, dset->Z[v]); else return 0; }
int true_const(int v, const DATASET *dset) { if (v < 0 || v >= dset->v) { return 0; } return gretl_isunits(dset->t1, dset->t2, dset->Z[v]); }
true_const
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int try_for_daily_subset(char *selected, const DATASET *dset, DATASET *subset, gretlopt *optp) { int v4; int v5; gretlopt v6; signed int ed0; guint32 edbak; int t; int ta; int ngaps; int delta_max; int started; int any_sat; int newpd; int err; int wd; int wda; in...
static int try_for_daily_subset(char *selected, const DATASET *dset, DATASET *subset, gretlopt *optp) { char datestr[OBSLEN]; guint32 ed, ed0 = 0, edbak = 0; int t, wd, ngaps = 0; int delta, mon_delta; int delta_max = 0; int started = 0; int any_sat = 0; int newpd = 5; ...
try_for_daily_subset
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int try_for_listvar(const DATASET *dset, const char *s) { int i; int vi; int *list; char fmt[16]; char vname[32]; char lname[40]; unsigned long v9; v9 = __readfsqword(0x28u); sprintf(fmt, "%%%d[^.].%%%ds", 31, 31); if ((unsigned int)__isoc99_sscanf(s, fmt, lname, vname) == 2) { list = get_list_...
static int try_for_listvar(const DATASET *dset, const char *s) { char vname[VNAMELEN]; char lname[VNAMELEN]; char fmt[16]; sprintf(fmt, "%%%d[^.].%%%ds", VNAMELEN - 1, VNAMELEN - 1); if (sscanf(s, fmt, lname, vname) == 2) { int *list = get_list_by_name(lname); if (list != NULL) { int i, vi; ...
try_for_listvar
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void try_for_string_var(parser *p, int close, int anyquote) { int err; char *sname; const char *sval; err = 0; if (anyquote) { err = 1; } else { sname = gretl_strndup(p->point - 1, close + 1); sval = get_string_by_name(sname); if (sval) p->idstr = gretl_strdup(sval); else er...
static void try_for_string_var(parser *p, int close, int anyquote) { int err = 0; if (!anyquote) { char *sname = gretl_strndup(p->point - 1, close + 1); char *sval = get_string_by_name(sname); if (sval != NULL) { p->idstr = gretl_strdup(sval); } else { err = 1; } free(sname); ...
try_for_string_var
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int try_http(const char *s, char *fname, int *http) { int err; err = 0; if (!strncmp(s, "http://", 7u) || !strncmp(s, "https://", 8u)) { err = retrieve_public_file(s, fname); if (!err && http) *http = 1; } return err; }
int try_http(const char *s, char *fname, int *http) { int err = 0; if (strncmp(s, "http://", 7) == 0 || strncmp(s, "https://", 8) == 0) { #ifdef USE_CURL err = retrieve_public_file(s, fname); if (!err && http != NULL) { *http = 1; } #else gretl_errmsg_set(_("Internet access not supported")); ...
try_http
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int try_iso_8601(const char *s, DATASET *dset) { int v2; int y; int m; int d; int t; char obsstr[24]; unsigned long v9; v9 = __readfsqword(0x28u); t = -1; if (dset && (dset->structure == 1 || dset->structure == 5)) { memset(obsstr, 0, 16); if ((unsigned int)__isoc99_sscanf(s, "%d-%d-%d", &y...
static int try_iso_8601(const char *s, DATASET *dset) { int t = -1; if (dataset_is_time_series(dset)) { char obsstr[OBSLEN] = {0}; int y, m, d; if (sscanf(s, "%d-%d-%d", &y, &m, &d) == 3) { if (dset->pd == 4 && d == 1) { sprintf(obsstr, "%04d:%d", y, m2q(m)); } else if (dset->pd ==...
try_iso_8601
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int try_list_vname(char *chkname, const char *pfx, int j, int n) { int err; gchar *tmp; tmp = (gchar *)g_strdup_printf("%s%0*d", pfx, n, j); err = check_varname(tmp); if (!err && gretl_is_user_var(tmp)) { gretl_errmsg_sprintf("'%s': name conflicts with different type", tmp); err = 37; } if (!err)...
static int try_list_vname(char *chkname, const char *pfx, int j, int n) { gchar *tmp = g_strdup_printf("%s%0*d", pfx, n, j); int err = check_varname(tmp); if (!err && gretl_is_user_var(tmp)) { gretl_errmsg_sprintf("'%s': name conflicts with different type", tmp); err = E_TYPES; } if (!err) { strc...
try_list_vname
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int try_mp_midas_grad(const double *theta, gretl_matrix *G, int method) { int err; int i; int (*mpfun)(const double *, gretl_matrix *, int); mpfun = (int (*)(const double *, gretl_matrix *, int))get_plugin_function( "mp_midas_gradient"); if (!mpfun) return 11; err = mpfun(theta, G, method); if ...
static int try_mp_midas_grad(const double *theta, gretl_matrix *G, int method) { int (*mpfun)(const double *, gretl_matrix *, int); int err = 0; mpfun = get_plugin_function("mp_midas_gradient"); if (mpfun == NULL) { return E_FOPEN; } err = (*mpfun)(theta, G, method); if (!err) { int i, n = G->...
try_mp_midas_grad
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int try_mp_midas_weights(const double *theta, int k, gretl_matrix *w, int method) { int rows; int err; int i; int (*mpfun)(const double *, int, gretl_matrix *, int); mpfun = (int (*)(const double *, int, gretl_matrix *, int))get_plugin_function("mp_midas_weights");...
static int try_mp_midas_weights(const double *theta, int k, gretl_matrix *w, int method) { int (*mpfun)(const double *, int, gretl_matrix *, int); int err = 0; mpfun = get_plugin_function("mp_midas_weights"); if (mpfun == NULL) { return E_FOPEN; } err = (*mpfun)(theta,...
try_mp_midas_weights
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int try_open_file(char *targ, const char *finddir, const gchar *dname, int flags) { char flagsa; int err; int found; char tmp[520]; unsigned long v10; flagsa = flags; v10 = __readfsqword(0x28u); found = 0; strcpy(tmp, finddir); strcat(tmp, dname); *(_WORD *)&tmp[strlen(tmp)] = 4...
static int try_open_file(char *targ, const char *finddir, const gchar *dname, int flags) { char tmp[MAXLEN]; int err, found = 0; strcpy(tmp, finddir); strcat(tmp, dname); strcat(tmp, SLASHSTR); strcat(tmp, targ); err = gretl_test_fopen(tmp, "r"); if (err && (flags & ADD_GDT))...
try_open_file
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int try_set_alt_sty() { const char *v0; int err; GError *gerr; gsize len; gchar *s; gchar *fname; unsigned long v7; v7 = __readfsqword(0x28u); gerr = 0; len = 0; s = 0; v0 = gretl_home(); fname = g_build_filename(v0, "data", "gnuplot"); if ((unsigned int)g_file_get_contents(fname, &s, &len,...
static int try_set_alt_sty(void) { GError *gerr = NULL; gsize len = 0; gchar *try = NULL; gchar *fname; int err = 0; fname = g_build_filename(gretl_home(), "data", "gnuplot", gp_style, NULL); if (g_file_get_contents(fname, &try, &len, &gerr)) { err = transcribe_style(try); if (err) { fpri...
try_set_alt_sty
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int ts_contig(const char *ts, int T) { int contig; int stopped; int t; int n; contig = 1; stopped = 0; n = 0; for (t = 0; t < T && contig; ++t) { if (ts[t]) { if (stopped) contig = 0; else ++n; } else if (n > 0) { stopped = 1; } } return n > 1 && contig...
static int ts_contig(const char *ts, int T) { int contig = 1; int stopped = 0; int t, n = 0; for (t = 0; t < T && contig; t++) { if (ts[t]) { if (stopped) { contig = 0; } else { n++; } } else if (n > 0) { stopped = 1; } } return n >= 2 && contig; }
ts_contig
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int tsld1(const double *a1, const double *a2, const double *b, double *x, int m) { int n; int i; int ia; int ib; int ic; int n1; double r1; double r2; double r5; double r5b; double r5a; double r6; double r6a; double r6b; double *c1; double *c2; double r3; if (fabs(*a1) < 9...
static int tsld1(const double *a1, const double *a2, const double *b, double *x, int m) { double r1, r2, r3, r5, r6; int n, i, n1; double *c1 = NULL; double *c2 = NULL; if (fabs(a1[0]) < TOEPLITZ_SMALL) { return E_SINGULAR; } r1 = a1[0]; x[0] = b[0] / r1; if (m == 1) { retu...
tsld1
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
MODEL *tsls(MODEL *__return_ptr retstr, const int *list, DATASET *dset, gretlopt opt) { unsigned int v4; char *v5; gretlopt v6; MODEL v8; gretlopt opta; DATASET *dseta; const int *lista; MODEL *v12; int addconst; int err; int nendo; int OverIdRank; int i; int orig_t1; int orig_...
MODEL tsls(const int *list, DATASET *dset, gretlopt opt) { MODEL tsls; gretl_matrix *Q = NULL, *g = NULL; char *missmask = NULL; int orig_t1 = dset->t1, orig_t2 = dset->t2; int *reglist = NULL, *instlist = NULL; int *hatlist = NULL, *s2list = NULL; int *exolist = NULL, *endolist = NULL; int *idroplist =...
tsls
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *tsls_Q(int *instlist, int **pdlist, const DATASET *dset, char *mask, int *err) { int cols; unsigned int rows; char *v8; int v9; int ndrop; int i; int j; int k; int ka; int rank; gretl_matrix *Q; gretl_matrix *R; int *droplist; R = 0; ndrop = 0; droplis...
static gretl_matrix *tsls_Q(int *instlist, int **pdlist, const DATASET *dset, char *mask, int *err) { gretl_matrix *Q = NULL; gretl_matrix *R = NULL; int rank, ndrop = 0; int *droplist = NULL; double test; int i, j, k; Q = gretl_matrix_data_subset_masked(instlist, dset, dset->...
tsls_Q
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int tsls_adjust_sample(const int *list, DATASET *dset, char **pmask) { int i; int ia; int ib; int ic; int t; int ta; int tb; int tc; int t1min; int t2max; int missobs; int missobsa; int missobsb; int err; int vi; int via; int vib; int vic; int T; char *mask; t1min = dset->t1; ...
static int tsls_adjust_sample(const int *list, DATASET *dset, char **pmask) { int i, t, t1min = dset->t1, t2max = dset->t2; char *mask = NULL; int T, vi, missobs; int err = 0; for (t = t1min; t < t2max; t++) { missobs = 0; for (i = 1; i <= list[0]; i++) { vi = list[i]; if (vi == 0 || vi =...
tsls_adjust_sample
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void tsls_extra_stats(MODEL *pmod, int yno, int overid, gretlopt opt, const DATASET *dset) { short opta; opta = opt; pmod->rsq = gretl_corr_rsq(pmod->t1, pmod->t2, dset->Z[yno], pmod->yhat); pmod->adjrsq = 1.0 - (double)(pmod->nobs - 1) * (1.0 - pmod->rsq) / (double)pmod->dfd; pmo...
static void tsls_extra_stats(MODEL *pmod, int yno, int overid, gretlopt opt, const DATASET *dset) { double r; pmod->rsq = gretl_corr_rsq(pmod->t1, pmod->t2, dset->Z[yno], pmod->yhat); r = 1 - pmod->rsq; pmod->adjrsq = 1.0 - (r * (pmod->nobs - 1) / pmod->dfd); pmod->fstt = pmod-...
tsls_extra_stats
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int tsls_form_xhat(gretl_matrix *Q, gretl_matrix *g, DATASET *dset, int v0, int v1, const char *mask) { int cols; int v7; char *v8; char *v9; int allzero; int i; int ia; int t; int ta; int s; int sa; int err; int k; const double *x; double *xhat; x = dset->Z[v0]; xh...
static int tsls_form_xhat(gretl_matrix *Q, gretl_matrix *g, DATASET *dset, int v0, int v1, const char *mask) { const double *x = dset->Z[v0]; double *xhat = dset->Z[v1]; int k = gretl_matrix_cols(Q); int allzero = 1; int i, t, s = 0; int err = 0; #if TDEBUG > 1 fprintf(stderr, "...
tsls_form_xhat
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void tsls_free_data(const MODEL *pmod) { int i; int ia; int m; gretl_matrix *endog; double **X; endog = (gretl_matrix *)gretl_model_get_data(pmod, "endog"); X = (double **)gretl_model_get_data(pmod, "tslsX"); m = 0; if (endog && X) { for (i = 0; i < pmod->ncoeff; ++i) { if (endog->val[i] !=...
void tsls_free_data(const MODEL *pmod) { gretl_matrix *endog = gretl_model_get_data(pmod, "endog"); double **X = gretl_model_get_data(pmod, "tslsX"); int i, m = 0; if (endog != NULL && X != NULL) { for (i = 0; i < pmod->ncoeff; i++) { if (endog->val[i] != 0) m++; } for (i = 0; i < m; ...
tsls_free_data
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int tsls_hausman_test(MODEL *tmod, int *reglist, int *hatlist, DATASET *dset) { double v5; MODEL v6; DATASET *dseta; int *hatlista; int *reglista; MODEL *tmoda; int err; int t; int nv; int ku; int df_0; int *HT_list; double URSS; double DRSS; double HTest; ModelTest *test; MODEL hmod; ...
static int tsls_hausman_test(MODEL *tmod, int *reglist, int *hatlist, DATASET *dset) { MODEL hmod; double URSS; int *HT_list = NULL; int t, df; int nv = dset->v; int ku = 0; int err = 0; #if HTDBG int nobs1; PRN *dbgprn = NULL; dbgprn = gretl_print_new(GRETL_PRINT_STDOU...
tsls_hausman_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int tsls_hetero_test(MODEL *pmod, DATASET *dset, gretlopt opt, PRN *prn) { double v5; MODEL v6; PRN *prna; gretlopt opta; DATASET *dseta; MODEL *pmoda; int i; int t; int err; int newv; int save_t1; int save_t2; int pos; int h; int *ptlist; int *testlist; double z; double pval; Mode...
static int tsls_hetero_test(MODEL *pmod, DATASET *dset, gretlopt opt, PRN *prn) { int pos, newv = dset->v; int *ptlist = NULL, *testlist = NULL; int save_t1 = dset->t1; int save_t2 = dset->t2; MODEL ptmod; double x; int i, h, t; int err = 0; pos = gretl_list_separator_posi...
tsls_hetero_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int tsls_loglik(MODEL *pmod, const int *endolist, const int *reglist, const int *instlist, const char *missmask, DATASET *dset) { int err; int T; int k; gretl_matrix *E; gretl_matrix *S; double ldet; unsigned long v17; v17 = __readfsqword(0x28u); T = pmod->nobs; k = *endolist + 1; ...
static int tsls_loglik(MODEL *pmod, const int *endolist, const int *reglist, const int *instlist, const char *missmask, DATASET *dset) { gretl_matrix *E, *S; int T = pmod->nobs; int k = 1 + endolist[0]; int err = 0; pmod->lnL = NADBL; E = gretl_matrix_alloc(T,...
tsls_loglik
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int *tsls_make_endolist(const int *reglist, int **instlist, int *addconst, int *err) { int i; int vi; int *endolist[2]; endolist[1] = (int *)__readfsqword(0x28u); endolist[0] = 0; for (i = 2; i <= *reglist; ++i) { vi = reglist[i]; if (!in_gretl_list(*instlist, vi)) { i...
int *tsls_make_endolist(const int *reglist, int **instlist, int *addconst, int *err) { int *endolist = NULL; int i, vi; for (i = 2; i <= reglist[0]; i++) { vi = reglist[i]; if (!in_gretl_list(*instlist, vi)) { if (vi == 0) { if (addconst != NULL) { *addcon...
tsls_make_endolist
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void tsls_omitzero(int *list, const DATASET *dset, const char *mask) { int i; int t; int allzero; for (i = *list; i > 1; --i) { allzero = 1; for (t = dset->t1; t <= dset->t2; ++t) { if ((!mask || !mask[t - dset->t1]) && dset->Z[list[i]][t] != 0.0) { allzero = 0; break; } ...
static void tsls_omitzero(int *list, const DATASET *dset, const char *mask) { int i, v, t, allzero; for (i = list[0]; i > 1; i--) { v = list[i]; allzero = 1; for (t = dset->t1; t <= dset->t2; t++) { if (mask != NULL && mask[t - dset->t1]) { continue; } if (dset->Z[v][t] != 0.0...
tsls_omitzero
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void tsls_recreate_full_list(MODEL *pmod, const int *reglist, const int *instlist) { int *full_list; if (instlist && *instlist > 0) full_list = gretl_lists_join_with_separator(reglist, instlist); else full_list = gretl_list_copy(reglist); if (full_list) { free(pmod->lis...
static void tsls_recreate_full_list(MODEL *pmod, const int *reglist, const int *instlist) { int *full_list; if (instlist != NULL && instlist[0] > 0) { full_list = gretl_lists_join_with_separator(reglist, instlist); } else { full_list = gretl_list_copy(reglist); } ...
tsls_recreate_full_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void tsls_residuals(MODEL *pmod, const int *reglist, const DATASET *dset, gretlopt opt) { int nobs; short opta; int i; int ia; int t; int yno; double yh; double sigma0; double corr; opta = opt; yno = reglist[1]; sigma0 = pmod->sigma; pmod->ess = 0.0; for (t = pmod->t1; t...
static void tsls_residuals(MODEL *pmod, const int *reglist, const DATASET *dset, gretlopt opt) { int yno = reglist[1]; double yh, sigma0 = pmod->sigma; int i, t; pmod->ess = 0.0; for (t = pmod->t1; t <= pmod->t2; t++) { if (model_missing(pmod, t)) { continue; } y...
tsls_residuals
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int tsls_save_data(MODEL *pmod, const int *hatlist, const int *exolist, DATASET *dset) { int rows; double v6; int recycle_X; int recycle_e; int i; int ia; int v; size_t xs_old; gretl_matrix *endog; double **X; size_t Xsize; unsigned long v18; v18 = __readfsqword(0x28u); e...
static int tsls_save_data(MODEL *pmod, const int *hatlist, const int *exolist, DATASET *dset) { gretl_matrix *endog = NULL; double **X = NULL; size_t Xsize, xs_old; int recycle_X = 0; int recycle_e = 0; int i, v, err = 0; Xsize = hatlist[0] * sizeof *X; X = gretl_model_get_da...
tsls_save_data
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int tsls_style_augment_ylist(equation_system *sys, int **pylist) { int ny; int i; int j; int pos; int vj; int *list; ny = **pylist; for (i = 0; i < sys->neqns; ++i) { list = sys->lists[i]; pos = gretl_list_separator_position(list); if (pos) { for (j = 2; j < pos; ++j) { vj = l...
static int tsls_style_augment_ylist(equation_system *sys, int **pylist) { const int *list; int pos, ny = (*pylist)[0]; int i, j, vj; for (i = 0; i < sys->neqns; i++) { list = sys->lists[i]; pos = gretl_list_separator_position(list); if (pos == 0) { continue; } for (j = 2; j < pos; j++...
tsls_style_augment_ylist
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void tsls_style_shift_vars(equation_system *sys, int *xplist) { int i; int nxp; int vi; nxp = *xplist; for (i = *sys->ylist; i > sys->neqns; --i) { vi = sys->ylist[i]; gretl_list_delete_at_pos(sys->ylist, i); xplist[++nxp] = vi; } *xplist = nxp; }
static void tsls_style_shift_vars(equation_system *sys, int *xplist) { int i, vi, nxp = xplist[0]; for (i = sys->ylist[0]; i > sys->neqns; i--) { vi = sys->ylist[i]; gretl_list_delete_at_pos(sys->ylist, i); xplist[++nxp] = vi; } xplist[0] = nxp; }
tsls_style_shift_vars
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *two_scalars_func(NODE *l, NODE *r, int t, parser *p) { double v4; double v5; int k; NODE *ret; double xl; double xr; unsigned long v13; v13 = __readfsqword(0x28u); ret = get_aux_node(p, 54, 0, 0); if (ret) { if ((p->flags & 2) != 0) { xl = node_get_scalar(l, p); xr = node_get_...
static NODE *two_scalars_func(NODE *l, NODE *r, int t, parser *p) { NODE *ret = aux_scalar_node(p); if (ret != NULL && starting(p)) { double xl = node_get_scalar(l, p); double xr = node_get_scalar(r, p); if (!na(xl) && !na(xr)) { if (t == F_XMIN) { ret->v.xval = (xl < xr) ? xl : xr; ...
two_scalars_func
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *two_string_func(NODE *l, NODE *r, NODE *x, int f, parser *p) { NODE *aux_node; long v7; int *v8; char *v9; char *str; int *v11; char *v12; int nobj; int n1; int n2; NODE *ret; const char *sr; char *(*jfunc)(const char *, const char *, int *, int *); user_var *uv; char *(*xfunc)(const...
static NODE *two_string_func(NODE *l, NODE *r, NODE *x, int f, parser *p) { NODE *ret = NULL; if (starting(p)) { const char *sl = l->v.str; const char *sr = NULL; if (f == F_JSONGETB) { ; } else if (f == F_XMLGET && r->t == ARRAY) { if (gretl_array_get_type(r->v.a) != GRETL_TYPE_STRING...
two_string_func
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int type_can_be_bundled(GretlType type) { GretlType typea; typea = type; if (type == GRETL_TYPE_INT || type == GRETL_TYPE_UNSIGNED || type == GRETL_TYPE_BOOL) typea = GRETL_TYPE_DOUBLE; return typea == GRETL_TYPE_DOUBLE || typea == GRETL_TYPE_STRING || typea == GRETL_TYPE_MATRIX || typea == ...
int type_can_be_bundled(GretlType type) { if (type == GRETL_TYPE_INT || type == GRETL_TYPE_UNSIGNED || type == GRETL_TYPE_BOOL) { type = GRETL_TYPE_DOUBLE; } return (type == GRETL_TYPE_DOUBLE || type == GRETL_TYPE_STRING || type == GRETL_TYPE_MATRIX || type == GRETL_TYPE_SERIES || t...
type_can_be_bundled
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int type_from_type_string(const char *s) { int i; int ia; if (((*__ctype_b_loc())[*s] & 0x800) != 0) { for (i = 0; mapper[i].type; ++i) { if (*s == *mapper[i].compat) return mapper[i].type; } if (*s == 55) return 9; } else { for (ia = 0; mapper[ia].type; ++ia) { if (!s...
static int type_from_type_string(const char *s) { int i; if (isdigit(*s)) { for (i = 0; mapper[i].type != GRETL_TYPE_NONE; i++) { if (*s == mapper[i].compat[0]) { return mapper[i].type; } } if (*s == '7') { return GRETL_TYPE_STRING; } } else { for (i = 0; mapper[i]...
type_from_type_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *type_string_node(NODE *n, parser *p) { int t; const char *s; NODE *ret; ret = get_aux_node(p, 60, 0, 2); if (ret) { t = node_get_int(n, p); if (!p->err) { s = "null"; switch (t) { case 1: s = "scalar"; break; case 2: s = "series"; break; ...
static NODE *type_string_node(NODE *n, parser *p) { NODE *ret = aux_string_node(p); if (ret != NULL) { int t = node_get_int(n, p); if (!p->err) { const char *s = "null"; if (t == 1) { s = "scalar"; } else if (t == 2) { s = "series"; } else if (t == 3) { s =...
type_string_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *typestr(int t) { const char *result; if (t == 4) return "address"; if (t < 4 || t > 92 || t < 54) return "?"; switch (t) { case '6': result = "scalar"; break; case '7': result = "series"; break; case '8': result = "list"; break; case '9': result = "matrix...
static const char *typestr(int t) { switch (t) { case NUM: return "scalar"; case SERIES: return "series"; case MAT: return "matrix"; case STR: return "string"; case U_ADDR: return "address"; case LIST: return "list"; case BUNDLE: return "bundle"; case DBUNDLE: return "$...
typestr
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *u8_to_ascii_convert(char *targ, const char *src, int maxlen, char sub) { char *v4; char *v5; char *v6; char *v7; char *v8; char *v9; char *v10; char *v11; char *v12; char *v13; char *v14; char *v15; char *v16; char *v17; char *v18; char *v19; char *v20; char *v21; char *v22; ...
char *u8_to_ascii_convert(char *targ, const char *src, int maxlen, char sub) { int prevspace = 0; const char *q = src; char *p = targ; gunichar u; int c, skip; int len = 0; *p = '\0'; while (q && *q) { skip = 0; c = *q; if (sub > 0 && ((c >= 32 && c <= 126) || c == 9 || c == 10)) { ...
u8_to_ascii_convert
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *u_addr_base(parser *p) { char *v1; NODE *t; t = base(p, 0); if (t && !p->err) { switch (t->t) { case '6': case '8': case '9': case ':': case ';': case '<': if (!t->uv) p->err = 37; break; case '7': if (!t->v.str) p->err = 37; break; ...
static NODE *u_addr_base(parser *p) { NODE *t = base(p, NULL); if (t != NULL && !p->err) { switch (t->t) { case SERIES: if (t->v.xvec == NULL) { p->err = E_TYPES; } break; case NUM: case MAT: case BUNDLE: case ARRAY: case STR: case LIST: if (t->uv == ...
u_addr_base
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void ufunc_free(ufunc *fun) { free_lines_array(fun->lines, fun->n_lines); free_params_array(fun->params, fun->n_params); free(fun); }
static void ufunc_free(ufunc *fun) { free_lines_array(fun->lines, fun->n_lines); free_params_array(fun->params, fun->n_params); free(fun); }
ufunc_free
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
ufunc *ufunc_new() { ufunc *fun; fun = (ufunc *)malloc(0x58u); if (!fun) return 0; fun->name[0] = 0; fun->pkg = 0; fun->flags = 0; fun->pkg_role = 0; fun->n_lines = 0; fun->line_idx = 1; fun->lines = 0; fun->n_params = 0; fun->params = 0; fun->rettype = 0; fun->debug = 0; return fun; ...
static ufunc *ufunc_new(void) { ufunc *fun = malloc(sizeof *fun); if (fun == NULL) { return NULL; } fun->name[0] = '\0'; fun->pkg = NULL; fun->flags = 0; fun->pkg_role = 0; fun->n_lines = 0; fun->line_idx = 1; fun->lines = NULL; fun->n_params = 0; fun->params = NULL; fun->rettype = GR...
ufunc_new
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void ufunc_unload(ufunc *fun) { int i; int j; int found; found = 0; if (n_ufuns && fun) { for (i = 0; i < n_ufuns; ++i) { if (fun == ufuns[i]) { for (j = i; j < n_ufuns - 1; ++j) ufuns[j] = ufuns[j + 1]; found = 1; break; } } if (fun->pkg && fun->pkg-...
static void ufunc_unload(ufunc *fun) { int i, j, found = 0; if (n_ufuns == 0 || fun == NULL) { return; } #if PKG_DEBUG fprintf(stderr, "ufunc_unload: name %s, pkg %p\n", fun->name, (void *)fun->pkg); #endif for (i = 0; i < n_ufuns; i++) { if (ufuns[i] == fun) { for (j = i; j < n_ufu...
ufunc_unload
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double uhess_callback(const double *b, void *data) { int err; double ret; uhess_data *uh; unsigned long v6; v6 = __readfsqword(0x28u); uh = (uhess_data *)data; ret = NAN; err = execute_genr(*(parser **)data, *((DATASET **)data + 1), 0); if (!err) return get_scalar_value_by_name("$umax", &err); ...
static double uhess_callback(const double *b, void *data) { struct uhess_data *uh = data; double ret = NADBL; int err; err = execute_genr(uh->genr, uh->dset, NULL); if (!err) { ret = get_scalar_value_by_name("$umax", &err); } return ret; }
uhess_callback
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int umatrix_set_names_from_array(gretl_matrix *M, void *data, int byrow) { int rows; int ns; int err; int i; int n; gretl_array *A; char **AS; char **S; unsigned long v13; v13 = __readfsqword(0x28u); A = (gretl_array *)data; err = 0; if (byrow) rows = M->rows; else rows = M->cols; ...
int umatrix_set_names_from_array(gretl_matrix *M, void *data, int byrow) { gretl_array *A = data; int n, err = 0; n = (byrow) ? M->rows : M->cols; if (A == NULL || gretl_array_get_length(A) == 0) { if (byrow) { gretl_matrix_set_rownames(M, NULL); } else { gretl_matrix_set_colnames(M, NULL)...
umatrix_set_names_from_array
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int umatrix_set_names_from_list(gretl_matrix *M, const int *list, const DATASET *dset, int byrow) { int rows; int i; int err; int n; char **S; err = 0; if (byrow) rows = M->rows; else rows = M->cols; n = rows; if (list && *list) { if (rows == *list) { ...
int umatrix_set_names_from_list(gretl_matrix *M, const int *list, const DATASET *dset, int byrow) { int i, n, err = 0; n = (byrow) ? M->rows : M->cols; if (list == NULL || list[0] == 0) { if (byrow) { gretl_matrix_set_rownames(M, NULL); } else { gretl_matrix_s...
umatrix_set_names_from_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int umatrix_set_names_from_string(gretl_matrix *M, const char *s, int byrow) { int rows; int err; int ns; int n; char **S; unsigned long v10; v10 = __readfsqword(0x28u); err = 0; if (byrow) rows = M->rows; else rows = M->cols; n = rows; if (s && *s) { S = gretl_string_split(s, &ns, ...
int umatrix_set_names_from_string(gretl_matrix *M, const char *s, int byrow) { int n, err = 0; n = (byrow) ? M->rows : M->cols; if (s == NULL || *s == '\0') { if (byrow) { gretl_matrix_set_rownames(M, NULL); } else { gretl_matrix_set_colnames(M, NULL); } } else { char **S; int ...
umatrix_set_names_from_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void umax_destroy(umax *u) { if (u->dset) dataset_drop_listed_variables(0, u->dset, 0, 0); umax_unset_no_replace_flag(u); user_var_delete_by_name("$umax", 0); free(u->pxname); destroy_genr(u->gf); destroy_genr(u->gg); destroy_genr(u->gh); free(u); }
static void umax_destroy(umax *u) { if (u->dset != NULL) { dataset_drop_listed_variables(NULL, u->dset, NULL, NULL); } umax_unset_no_replace_flag(u); user_var_delete_by_name("$umax", NULL); free(u->pxname); destroy_genr(u->gf); destroy_genr(u->gg); destroy_genr(u->gh); free(u); }
umax_destroy
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
umax *umax_new(GretlType t) { umax *u; u = (umax *)malloc(0xA8u); if (u) { u->gentype = t; u->pxname = 0; u->b = 0; u->g = 0; u->h = 0; u->ncoeff = 0; u->gf = 0; u->gg = 0; u->gh = 0; u->fx_out = NAN; u->fm_out = 0; u->gmname[0] = 0; u->hmname[0] = 0; u->ds...
static umax *umax_new(GretlType t) { umax *u = malloc(sizeof *u); if (u != NULL) { u->gentype = t; u->pxname = NULL; u->b = NULL; u->g = NULL; u->h = NULL; u->ncoeff = 0; u->gf = NULL; u->gg = NULL; u->gh = NULL; u->fx_out = NADBL; u->fm_out = NULL; u->gmname[0] = '\...
umax_new
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void umax_unset_no_replace_flag(umax *u) { user_var *uv; uv = get_user_var_by_data(u->b); if (uv) user_var_unset_flag(uv, UV_NOREPL); }
static void umax_unset_no_replace_flag(umax *u) { user_var *uv = get_user_var_by_data(u->b); if (uv != NULL) { user_var_unset_flag(uv, UV_NOREPL); } }
umax_unset_no_replace_flag
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int umidas_check(midas_info *mi, int n_umidas) { gretl_matrix *auto_theta; int err; int i; midas_term *mt; unsigned long v7; v7 = __readfsqword(0x28u); err = 0; if (n_umidas == mi->nmidas) { mi->method = 1; return 0; } else { for (i = 0; i < mi->nmidas && !err; ++i) { mt = &mi->mter...
static int umidas_check(midas_info *mi, int n_umidas) { int i, err = 0; if (n_umidas == mi->nmidas) { mi->method = MDS_OLS; return 0; } for (i = 0; i < mi->nmidas && !err; i++) { midas_term *mt = &mi->mterms[i]; if (mt->type == MIDAS_U && mt->theta == NULL) { mt->flags |= M_AUTO; ...
umidas_check
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int umidas_ols(MODEL *pmod, midas_info *mi, DATASET *dset, gretlopt opt) { MODEL *v5; MODEL v6; gretlopt opta; DATASET *dseta; midas_info *mia; MODEL *pmoda; int *biglist; unsigned long v12; pmoda = pmod; mia = mi; dseta = dset; opta = opt; v12 = __readfsqword(0x28u); biglist = make_midas_b...
static int umidas_ols(MODEL *pmod, midas_info *mi, DATASET *dset, gretlopt opt) { int *biglist; biglist = make_midas_biglist(mi->list, mi->mterms, mi->nmidas); if (biglist == NULL) { return E_ALLOC; } else { *pmod = lsq(biglist, dset, OLS, opt | OPT_Z); free(biglist); } ...
umidas_ols
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int unassigned_fncall(const char *s) { int ret; int n; char word[40]; unsigned long v5; v5 = __readfsqword(0x28u); n = gretl_namechar_spn(s); ret = 0; if (n > 0 && n <= 31 && s[n] == 40) { word[0] = 0; strncat(word, s, n); if (function_lookup(word) || get_user_function_by_name(word)) ...
static int unassigned_fncall(const char *s) { int n = gretl_namechar_spn(s); int ret = 0; if (n > 0 && n < FN_NAMELEN && s[n] == '(') { char word[FN_NAMELEN]; *word = '\0'; strncat(word, s, n); if (function_lookup(word) || get_user_function_by_name(word)) { ret = 1; } } return ret...
unassigned_fncall
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int unbalanced_SA_s2v(panelmod_t *pan, DATASET *dset) { int i; int j; int s; int t; int ta; int p; int got; unsigned int k; int Ti; int bigt; gretl_matrix *ZmZ; gretl_matrix *PZ; gretl_matrix *Z; gretl_matrix *ZPZ; gretl_matrix *D2; double zjt; gretl_matrix *trmat; gretl_matrix_block...
static int unbalanced_SA_s2v(panelmod_t *pan, DATASET *dset) { gretl_matrix_block *B; gretl_matrix *ZmZ = NULL; gretl_matrix *PZ = NULL; gretl_matrix *Z = NULL; gretl_matrix *ZPZ = NULL; gretl_matrix *D2 = NULL; gretl_matrix *trmat = NULL; int k = pan->pooled->ncoeff; double zjt, z, tr; int i, j, s,...
unbalanced_SA_s2v
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void uncentered_r_squared(MODEL *pmod, const DATASET *dset) { double y0; y0 = dset->Z[pmod->list[1]][pmod->t1]; if (y0 != 0.0) { pmod->rsq = 1.0 - pmod->ess / ((double)pmod->nobs * y0 * y0); gretl_model_set_int(pmod, "uncentered", 1); } }
static void uncentered_r_squared(MODEL *pmod, const DATASET *dset) { double y0 = dset->Z[pmod->list[1]][pmod->t1]; if (y0 != 0) { double den = pmod->nobs * y0 * y0; pmod->rsq = 1 - (pmod->ess / den); gretl_model_set_int(pmod, "uncentered", 1); } }
uncentered_r_squared
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void undefined_symbol_error(const char *s, parser *p) { char *v2; parser_ensure_error_buffer(p); parser_print_input(p); if (p->ch == 46) v2 = gettext("%s: no such object"); else v2 = gettext("The symbol '%s' is undefined"); pprintf(p->prn, v2, s); p->err = 2; }
void undefined_symbol_error(const char *s, parser *p) { parser_ensure_error_buffer(p); parser_print_input(p); if (p->ch == '.') { pprintf(p->prn, _("%s: no such object"), s); } else { pprintf(p->prn, _("The symbol '%s' is undefined"), s); } p->err = E_DATA; }
undefined_symbol_error
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int undo_panel_padding(DATASET *dset) { int real_n; int i; int t; int ta; int s; int padded_n; char **S; char *mask; double *Zi; mask = dset->padmask; S = 0; padded_n = dset->n; real_n = padded_n; for (t = 0; t < dset->n; ++t) { if (mask[t]) --real_n; } fprintf(stderr, ...
int undo_panel_padding(DATASET *dset) { char *mask = dset->padmask; double *Zi; char **S = NULL; int padded_n = dset->n; int real_n = dset->n; int i, t; int err = 0; for (t = 0; t < dset->n; t++) { if (mask[t]) { real_n--; } } fprintf(stderr, "undo_panel_padding: padded n*T...
undo_panel_padding
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int uniform_corrcov_matrix(VMatrix *v, const DATASET *dset, int ci, int flag) { int v5; int i; int ia; int ib; int ic; int id; int ie; int ig; int ih; int ii; int ij; int j; int ja; int t; int ta; int miss; int missa; int n; int m; int mm; int nija; int nij; double *ssx; ...
static int uniform_corrcov_matrix(VMatrix *v, const DATASET *dset, int ci, int flag) { double **Z = dset->Z; double *xbar = NULL, *ssx = NULL; double *x; int m = v->dim; int mm = (m * (m + 1)) / 2; double d1, d2; int i, j, jmin, nij, t; int miss, n = 0; xbar = malloc...
uniform_corrcov_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int uninstall_function_package(const char *package, gretlopt opt, PRN *prn) { char *v3; int err; gchar *gfnname; gchar *pkgname; char fname[520]; unsigned long v10; v10 = __readfsqword(0x28u); if (has_suffix(package, ".gfn")) { gfnname = (gchar *)g_strdup(package); pkgname = (gchar *)g_strdup(p...
int uninstall_function_package(const char *package, gretlopt opt, PRN *prn) { gchar *gfnname = NULL; gchar *pkgname = NULL; char *p, fname[MAXLEN]; int err; if (has_suffix(package, ".gfn")) { gfnname = g_strdup(package); pkgname = g_strdup(package); p = strrchr(pkgname, '.'); *p = '\0'; } e...
uninstall_function_package
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void unit_error_variances(double *uvar, const MODEL *pmod, panelmod_t *pan, int *df_0) { int i; int t; double uit; *df_0 = 0; for (i = 0; i < pan->nunits; ++i) { if (pan->unit_obs[i] > 0) { uvar[i] = 0.0; for (t = 0; t < pan->T; ++t) { uit = pmod->uhat[t + i ...
static void unit_error_variances(double *uvar, const MODEL *pmod, panelmod_t *pan, int *df) { int i, t; double uit; *df = 0; for (i = 0; i < pan->nunits; i++) { if (pan->unit_obs[i] < S2MINOBS) { uvar[i] = NADBL; } else { uvar[i] = 0.0; for (t = 0; t ...
unit_error_variances
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int univariate_arch_test(GRETL_VAR *var, int order, DATASET *dset, gretlopt opt, PRN *prn) { char *v5; char *v6; gretlopt v7; double *v8; double *v9; int i; int err; gretl_matrix *tests; gretl_matrix *pvals; err = 0; tests = gretl_matrix_alloc(var->neqns, 1); pvals = gr...
static int univariate_arch_test(GRETL_VAR *var, int order, DATASET *dset, gretlopt opt, PRN *prn) { gretl_matrix *tests, *pvals; int i, err = 0; tests = gretl_column_vector_alloc(var->neqns); pvals = gretl_column_vector_alloc(var->neqns); if (tests == NULL || pvals == NULL) {...
univariate_arch_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int univariate_autocorr_test(GRETL_VAR *var, int order, DATASET *dset, gretlopt opt, PRN *prn) { char *v5; int v6; char *v7; double *v8; char *v9; char *v10; double v12; int err; int i; int quiet; gretl_matrix *tests; gretl_matrix *pvals; MODEL *pmod; double lb; ...
static int univariate_autocorr_test(GRETL_VAR *var, int order, DATASET *dset, gretlopt opt, PRN *prn) { MODEL *pmod; gretl_matrix *tests, *pvals; double lb; int i, quiet = (opt & OPT_Q); int err = 0; tests = gretl_column_vector_alloc(var->neqns); pvals = gretl_column_v...
univariate_autocorr_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double unix_scan_NA(FILE *fp, int *err) { char *v3; char test[3]; unsigned long v5; v5 = __readfsqword(0x28u); memset(test, 0, sizeof(test)); if ((int)__isoc99_fscanf(fp, "%2s", test) > 0) { if (!strcmp(test, "NA") || !strcmp(test, ".")) { return NAN; } else { v3 = gettext("got invalid ...
static double unix_scan_NA(FILE *fp, int *err) { char test[3] = {0}; if (fscanf(fp, "%2s", test) < 1) { *err = E_DATA; return 0; } else if (!strcmp(test, "NA") || !strcmp(test, ".")) { return NADBL; } else { gretl_errmsg_sprintf(_("got invalid field '%s'"), test); *err = E_DATA; return ...
unix_scan_NA
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int unlocalize_list(fncall *call, const char *lname, fn_arg *arg, void *ret, DATASET *dset) { int i; int ia; int j; int overwrite; int d; int upd; int vi; int via; int lev; int *list; char *vname; list = get_list_by_name(lname); d = gretl_function_depth(); upd = d - 1; ...
static int unlocalize_list(fncall *call, const char *lname, fn_arg *arg, void *ret, DATASET *dset) { int *list = get_list_by_name(lname); int d = gretl_function_depth(); int upd = d - 1; int i, vi; #if UDEBUG fprintf(stderr, "\n*** unlocalize_list: '%s', function depth = %d\n", lna...
unlocalize_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void unmatched_message(int code) { const char *v1; char *v2; if (code == 2) { v1 = "else"; } else if (code == 3) { v1 = "elif"; } else { v1 = "endif"; } v2 = gettext("Unmatched \"%s\""); gretl_errmsg_sprintf(v2, v1); }
static void unmatched_message(int code) { gretl_errmsg_sprintf(_("Unmatched \"%s\""), (code == SET_ELSE) ? "else" : (code == SET_ELIF) ? "elif" : "endif"); }
unmatched_message
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void unmatched_symbol_error(int c, parser *p) { char *v2; if (c == 40 || c == 41) fprintf(stderr, "*** gensyntax: unmatched_symbol_error '%c'\n", (unsigned int)c); else fprintf(stderr, "*** gensyntax: unmatched_symbol_error (%c)\n", (unsigned int)c); parser_print_input(p); v2 ...
static void unmatched_symbol_error(int c, parser *p) { if (c == '(' || c == ')') { fprintf(stderr, "*** gensyntax: unmatched_symbol_error '%c'\n", c); } else { fprintf(stderr, "*** gensyntax: unmatched_symbol_error (%c)\n", c); } parser_print_input(p); pprintf(p->prn, _("Unmatched '%c'\n"), c); p->e...
unmatched_symbol_error
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void unset_auxiliary_scalars() { real_destroy_user_vars_at_level(0, 6, scalar_imin); scalar_imin = 0; }
void unset_auxiliary_scalars(void) { real_destroy_user_vars_at_level(0, GRETL_TYPE_DOUBLE, scalar_imin); scalar_imin = 0; }
unset_auxiliary_scalars
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void unset_genr_model() { genr_model.type = 0; genr_model.ptr = 0; }
void unset_genr_model(void) { genr_model.type = GRETL_OBJ_NULL; genr_model.ptr = NULL; }
unset_genr_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int unstable_comp(double a, double b) { return (a > b) - (b > a); }
static int unstable_comp(double a, double b) { int ret = 0; if (isnan(a) || isnan(b)) { if (!isnan(a)) { ret = -1; } else if (!isnan(b)) { ret = 1; } } else { ret = (a > b) - (a < b); } return ret; }
unstable_comp
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int untar(gzFile in) { const char *v1; unsigned int v3; int err; int getheader; int remaining; int tarmode; int len; unsigned int bytes; FILE *outfile; time_t tartime; char *p; utimbuf settime; tar_buffer buffer; char fname[520]; unsigned long v16; v16 = __readfsqword(0x28u); getheade...
static int untar(gzFile in) { union tar_buffer buffer; int getheader = 1; int len, remaining = 0; FILE *outfile = NULL; char fname[BLOCKSIZE]; int tarmode = 0; time_t tartime = (time_t)0; int err = 0; while (!err) { len = gzread(in, &buffer, BLOCKSIZE); if (len < 0) { gretl_errmsg_set(...
untar
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void unwrap_string_arg(parser *p) { int n; n = strlen(p->idstr); if (p->idstr[n - 1] == 34) p->idstr[n - 1] = 0; else unmatched_symbol_error(34, p); }
static void unwrap_string_arg(parser *p) { int n = strlen(p->idstr); if (p->idstr[n - 1] == '"') { p->idstr[n - 1] = '\0'; } else { unmatched_symbol_error('"', p); } }
unwrap_string_arg
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int update_addons_index(PRN *prn) { const char *rbx6; const char *v3; double v4; double v5; const char *v6; int i; const char *idxname; char *pkgver1; char *pkgver2; FILE *fp; double v1; double v2; char gfnname[64]; char syspath[512]; char usrpath[520]; unsigned long v17; v17 = __read...
int update_addons_index(PRN *prn) { gchar *idxname = gretl_make_dotpath("addons.idx"); char *pkgver1 = NULL; char *pkgver2 = NULL; char syspath[MAXLEN]; char usrpath[MAXLEN]; char gfnname[64]; int verbose = (prn != NULL); double v1, v2; FILE *fp; int i; fp = gretl_fopen(idxname, "wb"); if (fp =...
update_addons_index
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int update_case_markers(const DATASET *dset) { int v1; int err; int t; int subt; err = 0; if (fullset->markers != 2 && (!fullset || fullset->structure != 1 || fullset->pd != 5 && fullset->pd != 6 && fullset->pd != 7 || fullset->sd0 <= 10000.0) && dset->markers && !fullset->markers...
static int update_case_markers(const DATASET *dset) { int err = 0; if (fullset->markers == DAILY_DATE_STRINGS) { ; } else if (dated_daily_data(fullset)) { ; } else if (dset->markers && !fullset->markers) { dataset_allocate_obs_markers(fullset); if (fullset->S == NULL) { err = 1; } els...
update_case_markers
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int update_coeff_values(const double *b, nlspec *s) { int v2; int v3; int i; int j; int k; int err; parm *p; gretl_matrix *m; k = 0; err = 0; for (i = 0; i < s->nparam; ++i) { p = &s->params[i]; if (p->type == 6) { v2 = k++; if (p->bundle) err = gretl_bundle_set_scalar...
int update_coeff_values(const double *b, nlspec *s) { int i, j, k = 0; int err = 0; for (i = 0; i < s->nparam; i++) { parm *p = &s->params[i]; if (scalar_param(s, i)) { if (p->bundle != NULL) { err = gretl_bundle_set_scalar(p->bundle, p->name, b[k++]); } else { err = gretl_sc...
update_coeff_values
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void update_full_data_values(const DATASET *dset) { int v1; int i; int s; int t; for (i = 1; i < fullset->v && i < dset->v; ++i) { s = 0; for (t = 0; t < fullset->n; ++t) { if (dset->submask[t] == 1) { v1 = s++; fullset->Z[i][t] = dset->Z[i][v1]; } else if (dset->submask[t...
static void update_full_data_values(const DATASET *dset) { int i, s, t; #if SUBDEBUG fprintf(stderr, "update_full_data_values: fullset->Z=%p, dset->Z=%p, dset=%p\n", (void *)fullset->Z, (void *)dset->Z, (void *)dset); #endif for (i = 1; i < fullset->v && i < dset->v; i++) { s = 0; fo...
update_full_data_values
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int update_join_cols_list(csvdata *c, int k) { int err; err = 0; if (!gretl_list_append_term(&c->cols_list, k)) return 12; return err; }
static int update_join_cols_list(csvdata *c, int k) { int *test; int err = 0; test = gretl_list_append_term(&c->cols_list, k); if (test == NULL) { err = E_ALLOC; } #if CDEBUG printlist(c->cols_list, "c->cols_list for join"); #endif return err; }
update_join_cols_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int upload_function_package(const char *login, const char *pass, const char *fname, const char *buf, size_t buflen, char **retbuf) { const char *v7; int v8; int buflena; int saveopt; int err; int zipfile; CURLcode res; curl_httppost *post; curl_h...
int upload_function_package(const char *login, const char *pass, const char *fname, const char *buf, size_t buflen, char **retbuf) { struct curl_httppost *post = NULL; struct curl_httppost *last = NULL; int zipfile = has_suffix(fname, ".zip"); char sizestr...
upload_function_package
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0