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
NODE *complex_matrix_node(NODE *l, NODE *r, parser *p) { char *str; char *v4; char *v5; char *v6; NODE *ret; gretl_matrix *Re; double x; ret = get_aux_node(p, 57, 0, 2); if (ret) { if (l->t == 57) str = l->v.str; else str = 0; Re = (gretl_matrix *)str; if (r->t == 57) ...
static NODE *complex_matrix_node(NODE *l, NODE *r, parser *p) { NODE *ret = aux_matrix_node(p); if (ret != NULL) { gretl_matrix *Re = l->t == MAT ? l->v.m : NULL; gretl_matrix *Im = r->t == MAT ? r->v.m : NULL; double x = l->t == NUM ? l->v.xval : 0; double y = r->t == NUM ? r->v.xval : 0; if ...
complex_matrix_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int complex_strcalc_ok(NODE *n, parser *p) { if (n != p->tree) return 0; if (p->targ != 55 && p->targ != 99) return 0; return p->lh.t != 55 || !dataset_is_subsampled(p->dset); }
static int complex_strcalc_ok(NODE *n, parser *p) { if (n != p->tree) { return 0; } else if (p->targ != SERIES && p->targ != UNK) { return 0; } else if (p->lh.t == SERIES && dataset_is_subsampled(p->dset)) { return 0; } else { return 1; } }
complex_strcalc_ok
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int complex_subsampled() { return fullset && fullset->Z; }
int complex_subsampled(void) { return (fullset != NULL && fullset->Z != NULL); }
complex_subsampled
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int *compose_ivreg_list(const equation_system *sys, int i) { int j; int k1_0; int *list; if (i >= sys->neqns) return 0; k1_0 = *sys->lists[i]; list = gretl_list_new(k1_0 + *sys->ilist + 1); if (!list) return 0; for (j = 1; j <= *list; ++j) { if (j > k1_0) { if (j == k1_0 + 1) ...
int *compose_ivreg_list(const equation_system *sys, int i) { int *list; int j, k1, k2; if (i >= sys->neqns) { return NULL; } k1 = sys->lists[i][0]; k2 = sys->ilist[0]; list = gretl_list_new(k1 + k2 + 1); if (list == NULL) { return NULL; } for (j = 1; j <= list[0]; j++) { if (j <= k1)...
compose_ivreg_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int compose_panel_droplist(MODEL *pmod, panelmod_t *pan) { int v3; int i; int ndrop; int j; int fixed_effects; int vj; int *pooldrop; int *dlist; fixed_effects = pmod->opt & 0x20; ndrop = 0; pooldrop = gretl_model_get_list(pan->pooled, "droplist"); if (pooldrop) ndrop = *pooldrop; if (fix...
static int compose_panel_droplist(MODEL *pmod, panelmod_t *pan) { int fixed_effects = (pmod->opt & OPT_F); const int *pooldrop; int *dlist; int i, ndrop = 0; pooldrop = gretl_model_get_list(pan->pooled, "droplist"); if (pooldrop != NULL) { ndrop += pooldrop[0]; } if (fixed_effects) { ndrop +=...
compose_panel_droplist
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int compound_const_check(NODE *lhs, parser *p) { int i; int err; NODE *n; n = lhs; i = 0; err = 0; if (lhs->t == 80 && lhs->R && lhs->R->t == 60 && gretl_bundle_get_member_type(lhs->L->v.b, lhs->R->v.str, 0) == GRETL_TYPE_LIST) { p->flags |= 0x40000u; } while (n->t == 69 || n->t =...
static int compound_const_check(NODE *lhs, parser *p) { NODE *n = lhs; int i = 0, err = 0; if (n->t == BMEMB && n->R != NULL && n->R->t == STR) { GretlType t; t = gretl_bundle_get_member_type(n->L->v.b, n->R->v.str, NULL); if (t == GRETL_TYPE_LIST) { p->flags |= P_LISTDEF; } } while (...
compound_const_check
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void compress_csv_line(csvdata *c, int nospace) { int n; char *p; p = &c->line[(int)strlen(c->line) - 1]; if (*p == 10) *p-- = 0; if (*p == 13) *p = 0; if ((c->flags & 0x8000) == 0 && c->delim == 44) purge_quoted_commas(c->line); if (c->delim == 32) { compress_spaces(c->line); } else if...
static void compress_csv_line(csvdata *c, int nospace) { int n = strlen(c->line); char *p = c->line + n - 1; if (*p == 0x0a) { *p = '\0'; p--; } if (*p == 0x0d) { *p = '\0'; } if (!csv_keep_quotes(c) && c->delim == ',') { purge_quoted_commas(c->line); } if (c->delim != ' ') { i...
compress_csv_line
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void compute_VAR_dataset(irfboot *b, GRETL_VAR *var, const GRETL_VAR *vbak, int iter) { int order; int v5; int i; int j; int k; int t; int nl; double x; if (var->lags) order = *var->lags; else order = var->order; nl = order; for (t = 0; t < var->T; ++t) { gr...
static void compute_VAR_dataset(irfboot *b, GRETL_VAR *var, const GRETL_VAR *vbak, int iter) { double x; int i, j, k, t; int nl = var_n_lags(var); #if BDEBUG if (iter == 0) { fprintf(stderr, "ifc = %d, nl = %d, T = %d\n", var->ifc, nl, var->T); } #endif for (t = 0; t < ...
compute_VAR_dataset
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void compute_VECM_dataset(irfboot *b, GRETL_VAR *var, int iter) { int v3; int v4; int v5; int v6; int v7; int v8; int v9; int v10; int v11; int v12; int v13; int i; int ia; int j; int ja; int jb; int jc; int jd; int k; int ka; int s; int sa; int t; int ta; int xcol; i...
static void compute_VECM_dataset(irfboot *b, GRETL_VAR *var, int iter) { int order = var->order + 1; int nexo = (var->xlist != NULL) ? var->xlist[0] : 0; int nseas = var->jinfo->seasonals; double cij, eti, xti; int i, j, k, s, t; #if BDEBUG fprintf(stderr, "compute_VECM_dataset: order=%d, nexo=%d, nseas=%d...
compute_VECM_dataset
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int compute_ar_stats(MODEL *pmod, const DATASET *dset, double rho) { int i; int ia; int t; int yno; int pwe; int v; double x; double pw1; yno = pmod->list[1]; pwe = pmod->opt & 0x8000; pw1 = 0.0; if (pwe) pw1 = sqrt(1.0 - rho * rho); for (t = pmod->t1; t <= pmod->t2; ++t) { if (t == p...
static int compute_ar_stats(MODEL *pmod, const DATASET *dset, double rho) { int i, v, t, yno = pmod->list[1]; int pwe = (pmod->opt & OPT_P); double x, pw1 = 0.0; if (pwe) { pw1 = sqrt(1.0 - rho * rho); } for (t = pmod->t1; t <= pmod->t2; t++) { if (t == pmod->t1 && pwe) { x = pw1 * dset->Z[y...
compute_ar_stats
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int compute_first_stage_F(MODEL *pmod, const int *endolist, const int *reglist, const int *instlist, DATASET *dset, gretlopt opt) { MODEL v7; gretlopt opta; DATASET *dseta; const int *instlista; const int *reglista; const int *endolista; MODEL *pmoda; int i; int err; int ev...
static int compute_first_stage_F(MODEL *pmod, const int *endolist, const int *reglist, const int *instlist, DATASET *dset, gretlopt opt) { MODEL mod1; int *list1 = NULL; int *flist = NULL; double F; int i, ev, vi; int err = 0; gretl_model_...
compute_first_stage_F
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void compute_r_squared(MODEL *pmod, const DATASET *dset, int *ifc) { int t; int yno; double den; double yt; yno = pmod->list[1]; pmod->rsq = 1.0 - pmod->ess / pmod->tss; if (!*ifc) *ifc = check_for_effective_const(pmod, dset); if (pmod->dfd > 0) { den = 0.0; if (*ifc) { pmod->adjrsq =...
static void compute_r_squared(MODEL *pmod, const DATASET *dset, int *ifc) { int yno = pmod->list[1]; pmod->rsq = 1.0 - (pmod->ess / pmod->tss); if (*ifc == 0) { *ifc = check_for_effective_const(pmod, dset); } if (pmod->dfd > 0) { double yt, den = 0.0; if (*ifc) { den = pmod->tss * pmod->...
compute_r_squared
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int compute_stock_yogo(MODEL *pmod, const int *endolist, const int *instlist, const int *hatlist, const DATASET *dset) { int v6; const double *v7; double *val; int v9; int v10; const double *v11; double *v12; int v13; int v14; const double *v15; double *v16; int v17; int...
static int compute_stock_yogo(MODEL *pmod, const int *endolist, const int *instlist, const int *hatlist, const DATASET *dset) { const double **dZ = (const double **)dset->Z; gretl_matrix_block *B = NULL; gretl_matrix_block *B2 = NULL; gretl_matrix *G, ...
compute_stock_yogo
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int compute_ubPub(panelmod_t *pan, MODEL *bmod, int *blist, DATASET *gset) { MODEL v5; DATASET *gseta; int *blista; MODEL *bmoda; panelmod_t *pana; int err; unsigned long v11; pana = pan; bmoda = bmod; blista = blist; gseta = gset; v11 = __readfsqword(0x28u); adjust_gset_data(pan, gset, 0); ...
static int compute_ubPub(panelmod_t *pan, MODEL *bmod, int *blist, DATASET *gset) { int err; adjust_gset_data(pan, gset, 0); clear_model(bmod); *bmod = lsq(blist, gset, OLS, OPT_A); err = bmod->errcode; if (!err) { pan->ubPub = bmod->ess; } adjust_gset_data(pan, gset, 1); ...
compute_ubPub
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int cond_ols_GNR(MODEL *pmod, midas_info *mi, gretlopt opt, PRN *prn) { int *v5; int v6; double *val; int v8; int v9; MODEL *v10; MODEL v11; PRN *prna; gretlopt opta; midas_info *mia; MODEL *pmoda; int err; int zcol; int i; int j; int k; int kk; int t; int s; int v; int cpi; ...
static int cond_ols_GNR(MODEL *pmod, midas_info *mi, gretlopt opt, PRN *prn) { DATASET *dset = mi->dset; DATASET *gdset = NULL; int *glist = NULL; gretl_matrix *w, *G; int nc, zcol, vi; int i, j, k, kk, t, s, v; int cpi, *cpos = NULL; int err = 0; #if MIDAS_DEBUG fprintf(stderr, "cond_ols_GNR, starti...
cond_ols_GNR
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double cond_ols_callback(double *theta, double *g, int n, void *ptr) { int v4; double *v5; int v6; double *val; int v8; double v9; int err; int i; int j; int k; int t; int s; int xcol; int p; int vj; int vp; double xit; midas_info *mi; DATASET *dset; midas_term *mt; gretl_matri...
static double cond_ols_callback(double *theta, double *g, int n, void *ptr) { midas_info *mi = ptr; DATASET *dset = mi->dset; gretl_matrix *w; gretl_matrix *mg; int i, j, k, t, s; int vj, xcol; int err = 0; #if MIDAS_DEBUG > 1 fprintf(stderr, "cond_ols_callback: starting\n"); for (i = 0; i < n; i++) ...
cond_ols_callback
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int condense_listinfo_matrix(gretl_matrix *m, const int *list, const DATASET *dset) { int i; int ia; int j; int ic; int n; gretl_matrix *mc; char **S; n = 0; for (i = 0; i < m->rows; ++i) { if (m->val[i] == 1.0) ++n; } if (n == m->rows) return 0; mc = ...
static int condense_listinfo_matrix(gretl_matrix *m, const int *list, const DATASET *dset) { gretl_matrix *mc = NULL; char **S = NULL; double x; int i, j, ic, n = 0; for (i = 0; i < m->rows; i++) { if (m->val[i] == 1) { n++; } } if (n == m->rows) { ...
condense_listinfo_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int confidence_ellipse_plot(gretl_matrix *V, double *b, double tcrit, double Fcrit, double alpha, const char *iname, const char *jname) { double *v8; char *v9; int err; int i; FILE *fp; double cval; gretl_matrix *e; gchar *title; double maxerr[2]...
int confidence_ellipse_plot(gretl_matrix *V, double *b, double tcrit, double Fcrit, double alpha, const char *iname, const char *jname) { FILE *fp = NULL; double maxerr[2]; double xcoeff[2]; double ycoeff[2]; double cval = 100 * (1 - alpha); gretl_matr...
confidence_ellipse_plot
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
MaskNode *cons_MaskNode(MaskNode *head, uint32_t b, uint32_t c, int leng) { MaskNode *t; t = (MaskNode *)malloc(0x18u); if (!t) { puts("malloc error in \"cons_MaskNode\""); exit(1); } t->b = b; t->c = c; t->leng = leng; t->next = head; return t; }
static MaskNode *cons_MaskNode(MaskNode *head, uint32_t b, uint32_t c, int leng) { MaskNode *t; t = (MaskNode *)malloc(sizeof(MaskNode)); if (t == NULL) { printf("malloc error in \"cons_MaskNode\"\n"); exit(1); } t->b = b; t->c = c; t->leng = leng; t->next = head...
cons_MaskNode
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int consistent_qm_labels(DATASET *dset, int reversed, int convert_pd, char *skipstr, int *ppd, const char *fmt, int *extra_zero, PRN *prn) { int v8; int v10; int v11; int v12; int yr; int per; int t; int pmin; int pd; int pd0; int ret; int s; i...
static int consistent_qm_labels(DATASET *dset, int reversed, int convert_pd, char *skipstr, int *ppd, const char *fmt, int *extra_zero, PRN *prn) { char bad[16], skip[8]; char label[OBSLEN]; int Ey; int Ep; int t, s, yr, per; int pmin = 1; in...
consistent_qm_labels
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int consistent_year_labels(const DATASET *dset, int reversed, int convert_pd) { int v3; int v4; int t; int yr; int yprev; int ret; char label[24]; unsigned long v12; v12 = __readfsqword(0x28u); ret = 1; if (reversed) v3 = dset->n - 1; else v3 = 0; yprev = atoi(dset->S[v3]); for (t =...
static int consistent_year_labels(const DATASET *dset, int reversed, int convert_pd) { char label[OBSLEN]; int s, t, yr, yprev; int ret = 1; s = (reversed) ? (dset->n - 1) : 0; yprev = atoi(dset->S[s]); for (t = 1; t < dset->n; t++) { s = reversed ? (dset->n - 1 - t) ...
consistent_year_labels
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int const_lookup(const char *s) { int i; for (i = 0; consts[i].id; ++i) { if (!strcmp(s, consts[i].str)) return consts[i].id; } return 0; }
int const_lookup(const char *s) { int i; for (i = 0; consts[i].id != 0; i++) { if (!strcmp(s, consts[i].str)) { return consts[i].id; } } return 0; }
const_lookup
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *constname(int c) { int i; for (i = 0; consts[i].id; ++i) { if (c == consts[i].id) return consts[i].str; } return "unknown"; }
const char *constname(int c) { int i; for (i = 0; consts[i].id != 0; i++) { if (c == consts[i].id) { return consts[i].str; } } return "unknown"; }
constname
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int construct_Pini(kalman *K) { int err; int r2; gretl_matrix *Svar; gretl_matrix *vQ; if ((K->flags & 8) != 0) { diffuse_Pini(K); return 0; } else { r2 = K->r * K->r; Svar = gretl_matrix_alloc(r2, r2); vQ = gretl_matrix_alloc(r2, 1); if (Svar && vQ) { gretl_matrix_kronecker_p...
static int construct_Pini(kalman *K) { gretl_matrix *Svar; gretl_matrix *vQ; int r2, err = 0; if (K->flags & KALMAN_DIFFUSE) { diffuse_Pini(K); return 0; } r2 = K->r * K->r; Svar = gretl_matrix_alloc(r2, r2); vQ = gretl_column_vector_alloc(r2); if (Svar == NULL || vQ == NULL) { gretl_m...
construct_Pini
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *construct_literal_arg(int *err) { int i; int ia; char *literal; size_t litlen; literal = 0; litlen = 0; for (i = 0; i < plot.nlines; ++i) litlen += strlen(plot.lines[i]); if (litlen) { literal = (char *)calloc(2 * (plot.nlines + 2) + litlen, 1u); if (literal) { strcpy(literal, "...
static char *construct_literal_arg(int *err) { char *literal = NULL; size_t litlen = 0; int i; for (i = 0; i < plot.nlines; i++) { litlen += strlen(plot.lines[i]); } if (litlen > 0) { litlen += 2 * plot.nlines + 4; literal = calloc(litlen, 1); if (literal == NULL) { *err = E_ALLOC; ...
construct_literal_arg
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *contains_node(NODE *val, NODE *set, parser *p) { int i; int ia; int ib; int t; int k; int n; int nv; NODE *ret; char *m; char *v; double x; double xa; double xb; m = set->v.str; ret = 0; if ((p->flags & 2) == 0) return get_aux_node(p, 0, 0, 0); switch (val->t) { case '6': ...
static NODE *contains_node(NODE *val, NODE *set, parser *p) { gretl_matrix *m = set->v.m; NODE *ret = NULL; if (starting(p)) { if (val->t == NUM) { ret = aux_scalar_node(p); } else if (val->t == SERIES) { ret = aux_series_node(p); } else if (val->t == MAT) { ret = aux_matrix_node(p)...
contains_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void context_error(int c, parser *p, const char *func) { char *v3; char *v4; char *v5; char *v6; const char *v7; char *v8; const char *s; parser_ensure_error_buffer(p); if (c) { parser_print_input(p); v3 = gettext("The symbol '%c' is not valid in this context\n"); pprintf(p->prn, v3, (uns...
void context_error(int c, parser *p, const char *func) { #if LDEBUG if (func != NULL) { fprintf(stderr, "context error in %s()\n", func); } #endif parser_ensure_error_buffer(p); if (c != 0) { parser_print_input(p); pprintf(p->prn, _("The symbol '%c' is not valid in this context\n"), c); if (c ==...
context_error
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int contig_cols(matrix_subspec *spec, const gretl_matrix *m) { int cols; if (spec->rtype == SEL_ALL) return m->cols; if (spec->rtype != SEL_RANGE) return 1; if (spec->rsel.range[1] == 0x80000000) cols = m->cols; else cols = spec->rsel.range[1]; return cols - spec->rsel.range[0] + 1; }
static int contig_cols(matrix_subspec *spec, const gretl_matrix *m) { if (spec->rtype == SEL_ALL) { return m->cols; } else if (spec->rtype == SEL_RANGE) { int r1 = spec->rsel.range[1]; int cmax = r1 == MSEL_MAX ? m->cols : r1; return cmax - spec->rsel.range[0] + 1; } else { return 1; } }
contig_cols
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int continues_unit(const DATASET *dset, int t) { return t / dset->pd == (t - 1) / dset->pd; }
static int continues_unit(const DATASET *dset, int t) { return t / dset->pd == (t - 1) / dset->pd; }
continues_unit
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void controller_free(controller *clr) { if (clr->expr) { free(clr->expr); clr->expr = 0; } if (clr->genr) { destroy_genr(clr->genr); clr->genr = 0; } }
static void controller_free(controller *clr) { if (clr->expr != NULL) { free(clr->expr); clr->expr = NULL; } if (clr->genr != NULL) { destroy_genr(clr->genr); clr->genr = NULL; } }
controller_free
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double controller_get_val(controller *clr, LOOPSET *loop, DATASET *dset, int *err) { char *v4; double scalar; int done; gchar *msg; char expr[72]; unsigned long v12; v12 = __readfsqword(0x28u); if (clr->uv) { clr->val = (double)clr->vsign * *(double *)clr->uv->ptr; } els...
static double controller_get_val(controller *clr, LOOPSET *loop, DATASET *dset, int *err) { if (clr->uv != NULL) { clr->val = uvar_get_scalar_value(clr->uv) * clr->vsign; } else if (clr->genr != NULL) { clr->val = evaluate_scalar_genr(clr->genr, dset, NULL, err); } else i...
controller_get_val
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void controller_init(controller *clr) { clr->val = NAN; clr->vname[0] = 0; clr->uv = 0; clr->vsign = 1; clr->expr = 0; clr->genr = 0; clr->subst = -1; }
static void controller_init(controller *clr) { clr->val = NADBL; clr->vname[0] = '\0'; clr->uv = NULL; clr->vsign = 1; clr->expr = NULL; clr->genr = NULL; clr->subst = -1; }
controller_init
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void convert_daily_label(char *targ, const char *src, int pd) { int y; int m; int d; unsigned long v7; v7 = __readfsqword(0x28u); __isoc99_sscanf(src, "%d-%d-%d", &y, &m, &d); switch (pd) { case 1: sprintf(targ, "%d", y); break; case 12: sprintf(targ, "%d:%02d", y, m); break; case 4...
static void convert_daily_label(char *targ, const char *src, int pd) { int y, m, d; sscanf(src, YMD_READ_FMT, &y, &m, &d); if (pd == 1) { sprintf(targ, "%d", y); } else if (pd == 12) { sprintf(targ, "%d:%02d", y, m); } else if (pd == 4) { sprintf(targ, "%d:%d", y, m / 3 + (m % 3 != 0)); } }
convert_daily_label
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int converted_ok(const char *s, char *test, double x) { if (*test) { if (*__errno_location()) perror(s); return 0; } else if (*__errno_location() == 34 && fabs(x) > 0.0 && fabs(x) < 0.001) { return 1; } else if (*__errno_location()) { perror(s); return 0; } else { return 1; } }
static int converted_ok(const char *s, char *test, double x) { if (*test != '\0') { if (errno) perror(s); return 0; } else if (errno == ERANGE && fabs(x) > 0 && fabs(x) < 0.001) { return 1; } else if (errno) { perror(s); return 0; } else { return 1; } }
converted_ok
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
ARINFO *copy_ar_info(const ARINFO *src) { int m; ARINFO *targ; targ = (ARINFO *)malloc(0x18u); if (!targ) return 0; if (!src->arlist) return targ; m = *src->arlist; targ->rho = copyvec(src->rho, m); if (!targ->rho) { free(targ); return 0; } targ->sderr = copyvec(src->sderr, m); if...
static ARINFO *copy_ar_info(const ARINFO *src) { ARINFO *targ; targ = malloc(sizeof *targ); if (targ == NULL) return NULL; if (src->arlist != NULL) { int m = src->arlist[0]; if ((targ->rho = copyvec(src->rho, m)) == NULL) { free(targ); return NULL; } if ((targ->sderr = copyve...
copy_ar_info
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void copy_arrow_content(GPT_ARROW *targ, GPT_ARROW *src) { *targ = *src; }
static void copy_arrow_content(GPT_ARROW *targ, GPT_ARROW *src) { targ->x0 = src->x0; targ->y0 = src->y0; targ->x1 = src->x1; targ->y1 = src->y1; targ->flags = src->flags; }
copy_arrow_content
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int copy_as_arg(const char *param_name, GretlType type, void *value) { int err; GretlType cpytype; void *copyval; gretl_array *acpy; gretl_bundle *bcpy; double *px; char *scpy; int *lcpy; gretl_matrix *mcpy; unsigned long v14; v14 = __readfsqword(0x28u); copyval = 0; cpytype = type; err = 0...
int copy_as_arg(const char *param_name, GretlType type, void *value) { void *copyval = NULL; GretlType cpytype = type; int err = 0; if (type == GRETL_TYPE_MATRIX) { gretl_matrix *mcpy = gretl_matrix_copy((gretl_matrix *)value); if (mcpy == NULL) { err = E_ALLOC; } else { copyval = mcpy...
copy_as_arg
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void copy_bundled_item(gpointer key, gpointer value, gpointer p) { real_bundle_set_data((gretl_bundle *)p, (const char *)key, *((void **)value + 1), *(GretlType *)value, *((_DWORD *)value + 1), 1, *((const char **)value + 2)); }
static void copy_bundled_item(gpointer key, gpointer value, gpointer p) { bundled_item *item = (bundled_item *)value; gretl_bundle *targ = (gretl_bundle *)p; real_bundle_set_data(targ, (const char *)key, item->data, item->type, item->size, 1, item->note); }
copy_bundled_item
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void copy_data_to_subsample(DATASET *subset, const DATASET *dset, int maxv, const char *mask) { int v4; int v5; int v6; int v7; int i; int t; int ta; int s; int sa; for (i = 1; i < maxv; ++i) { s = 0; for (t = 0; t < dset->n; ++t) { if (mask) { if (...
static void copy_data_to_subsample(DATASET *subset, const DATASET *dset, int maxv, const char *mask) { int i, t, s; #if SUBDEBUG fprintf(stderr, "copy_data_to_subsample: subset = %p, dset = %p\n", (void *)subset, (void *)dset); #endif for (i = 1; i < maxv; i++) { ...
copy_data_to_subsample
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void copy_dataset_obs_info(DATASET *targ, const DATASET *src) { strcpy(targ->stobs, src->stobs); strcpy(targ->endobs, src->endobs); targ->sd0 = src->sd0; targ->pd = src->pd; targ->structure = src->structure; }
void copy_dataset_obs_info(DATASET *targ, const DATASET *src) { strcpy(targ->stobs, src->stobs); strcpy(targ->endobs, src->endobs); targ->sd0 = src->sd0; targ->pd = src->pd; targ->structure = src->structure; }
copy_dataset_obs_info
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *copy_dataset_submask(const DATASET *dset, int *err) { char *mask; mask = 0; if (complex_subsampled()) return copy_subsample_mask(dset->submask, err); return mask; }
char *copy_dataset_submask(const DATASET *dset, int *err) { char *mask = NULL; if (complex_subsampled()) { mask = copy_subsample_mask(dset->submask, err); } return mask; }
copy_dataset_submask
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int copy_dummy_to_mask(char *mask, const double *x, int n) { int t; int nsel; _BOOL4 err; nsel = 0; err = 0; for (t = 0; t < n && !err; ++t) { if (x[t] == 1.0) { mask[t] = 1; ++nsel; } else if (fabs(x[t]) <= 1.797693134862316e308) { err = x[t] != 0.0; } } if (!err && !nsel...
static int copy_dummy_to_mask(char *mask, const double *x, int n) { int t, nsel = 0, err = 0; #if SUBDEBUG fprintf(stderr, "copy_dummy_to_mask, n = %d\n", n); #endif for (t = 0; t < n && !err; t++) { if (x[t] == 1.0) { mask[t] = 1; nsel++; } else if (!na(x[t]) && x[t] != 0.0) { err = 1...
copy_dummy_to_mask
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int *copy_ensure_const(const int *orig) { int i; int *list; list = gretl_list_new(*orig + 1); if (list) { list[1] = orig[1]; list[2] = 0; for (i = 3; i <= *list; ++i) list[i] = orig[i - 1]; } return list; }
static int *copy_ensure_const(const int *orig) { int *list = gretl_list_new(orig[0] + 1); int i; if (list != NULL) { list[1] = orig[1]; list[2] = 0; for (i = 3; i <= list[0]; i++) { list[i] = orig[i - 1]; } } return list; }
copy_ensure_const
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int copy_initial_hessian(double **H, const gretl_matrix *A, int n) { int rows; int i; int ia; int ib; int j; int ja; int jb; int err; if (A) { if (A->cols == 1) { rows = A->rows; } else if (A->rows == 1) { rows = A->cols; } else { rows = 0; } } else { rows = 0;...
static int copy_initial_hessian(double **H, const gretl_matrix *A, int n) { int i, j, vlen = gretl_vector_get_length(A); int err = 0; #if BFGS_DEBUG > 1 gretl_matrix_print(A, "BFGS: initial Hessian inverse"); #endif if (gretl_is_null_matrix(A)) { for (i = 0; i < n; i++) { for (j = 0; j < i; j++) { ...
copy_initial_hessian
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void copy_label(VARINFO *vinfo, const char *src) { free(vinfo->label); if (src) vinfo->label = gretl_strdup(src); else vinfo->label = 0; }
static void copy_label(VARINFO *vinfo, const char *src) { free(vinfo->label); if (src == NULL) { vinfo->label = NULL; } else { vinfo->label = gretl_strdup(src); } }
copy_label
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void copy_label_content(GPT_LABEL *targ, GPT_LABEL *src) { strcpy(targ->text, src->text); *(_OWORD *)targ->pos = *(_OWORD *)src->pos; targ->just = src->just; }
static void copy_label_content(GPT_LABEL *targ, GPT_LABEL *src) { strcpy(targ->text, src->text); targ->pos[0] = src->pos[0]; targ->pos[1] = src->pos[1]; targ->just = src->just; }
copy_label_content
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void copy_line_content(GPT_LINE *targ, GPT_LINE *src) { targ->varnum = src->varnum; targ->style = src->style; targ->pscale = src->pscale; strcpy(targ->rgb, src->rgb); targ->yaxis = src->yaxis; targ->type = src->type; targ->ptype = src->ptype; targ->dtype = src->dtype; targ->width = src->width; targ-...
static void copy_line_content(GPT_LINE *targ, GPT_LINE *src) { targ->varnum = src->varnum; targ->style = src->style; targ->pscale = src->pscale; strcpy(targ->rgb, src->rgb); targ->yaxis = src->yaxis; targ->type = src->type; targ->ptype = src->ptype; targ->dtype = src->dtype; targ->width = src->width; ...
copy_line_content
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int *copy_list_as_arg(const char *param_name, int *list, int *err) { int *ret; ret = 0; *err = copy_as_arg(param_name, GRETL_TYPE_LIST, list); if (!*err) return (int *)uvars[n_vars_0 - 1]->ptr; return ret; }
int *copy_list_as_arg(const char *param_name, int *list, int *err) { int *ret = NULL; *err = copy_as_arg(param_name, GRETL_TYPE_LIST, list); if (!*err) { ret = uvars[n_vars - 1]->ptr; } return ret; }
copy_list_as_arg
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void copy_list_values(int *targ, const int *src) { int i; for (i = 0; i <= *src; ++i) targ[i] = src[i]; }
static void copy_list_values(int *targ, const int *src) { int i; for (i = 0; i <= src[0]; i++) { targ[i] = src[i]; } }
copy_list_values
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int copy_matrix_as(const gretl_matrix *m, const char *newname, int fnarg) { gretl_matrix *m2; m2 = gretl_matrix_copy(m); if (m2) return real_user_var_add(newname, GRETL_TYPE_MATRIX, m2, (gretlopt)(fnarg != 0)); else return 12; }
int copy_matrix_as(const gretl_matrix *m, const char *newname, int fnarg) { gretl_matrix *m2 = gretl_matrix_copy(m); int err = 0; if (m2 == NULL) { err = E_ALLOC; } else { gretlopt opt = fnarg ? OPT_A : OPT_NONE; err = real_user_var_add(newname, GRETL_TYPE_MATRIX, m2, opt); } return err; }
copy_matrix_as
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int copy_model(MODEL *targ, MODEL *src) { int err; int k; int m; unsigned long v6; v6 = __readfsqword(0x28u); k = src->ncoeff; m = k * (k + 1) / 2; err = 0; qmemcpy(targ, src, sizeof(MODEL)); targ->ntests = 0; targ->nparams = 0; targ->n_data_items = 0; gretl_model_init_pointers(targ); if (s...
static int copy_model(MODEL *targ, MODEL *src) { int k = src->ncoeff; int m = k * (k + 1) / 2; int err = 0; *targ = *src; targ->ntests = 0; targ->nparams = 0; targ->n_data_items = 0; gretl_model_init_pointers(targ); if (src->coeff != NULL && (targ->coeff = copyvec(src->coeff, src->ncoeff)) =...
copy_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int copy_model_data_items(MODEL *targ, const MODEL *src) { model_data_item **v3; int i; int ia; int ib; int err; int n; n = src->n_data_items; err = 0; targ->data_items = (model_data_item **)malloc(8LL * n); if (!targ->data_items) return 1; for (i = 0; i < n; ++i) targ->data_items[i] = 0;...
static int copy_model_data_items(MODEL *targ, const MODEL *src) { int i, n = src->n_data_items; int err = 0; targ->data_items = malloc(n * sizeof *targ->data_items); if (targ->data_items == NULL) { return 1; } for (i = 0; i < n; i++) { targ->data_items[i] = NULL; } for (i = 0; i < n; i++) { ...
copy_model_data_items
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int copy_model_params(MODEL *targ, const MODEL *src) { int err; err = 0; if (src->nparams > 0) { targ->params = strings_array_dup(src->params, src->nparams); if (targ->params) targ->nparams = src->nparams; else return 12; } return err; }
static int copy_model_params(MODEL *targ, const MODEL *src) { int err = 0; if (src->nparams > 0) { targ->params = strings_array_dup(src->params, src->nparams); if (targ->params == NULL) { err = E_ALLOC; } else { targ->nparams = src->nparams; } } return err; }
copy_model_params
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int copy_model_tests(MODEL *targ, const MODEL *src) { int i; int n; n = src->ntests; if (n <= 0 || !src->tests) return 0; targ->tests = (ModelTest *)malloc(72LL * n); if (!targ->tests) return 1; for (i = 0; i < n; ++i) copy_test(&targ->tests[i], &src->tests[i]); return 0; }
static int copy_model_tests(MODEL *targ, const MODEL *src) { int i, n = src->ntests; if (n <= 0 || src->tests == NULL) { return 0; } targ->tests = malloc(n * sizeof *targ->tests); if (targ->tests == NULL) return 1; for (i = 0; i < n; i++) { copy_test(&targ->tests[i], &src->tests[i]); } r...
copy_model_tests
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void copy_new_bundled_item(gpointer key, gpointer value, gpointer p) { if (!gretl_bundle_has_data((gretl_bundle *)p, (const char *)key)) real_bundle_set_data((gretl_bundle *)p, (const char *)key, *((void **)value + 1), *(GretlType *)value, *((_DWORD *)value + 1), ...
static void copy_new_bundled_item(gpointer key, gpointer value, gpointer p) { bundled_item *item = (bundled_item *)value; gretl_bundle *targ = (gretl_bundle *)p; if (!gretl_bundle_has_data(targ, (const char *)key)) { real_bundle_set_data(targ, (const char *)key, item->data, item->type, ...
copy_new_bundled_item
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void copy_north_west(gretl_matrix *targ, const gretl_matrix *src, int add) { int i; int j; int k; double xij; k = src->cols; if (!add) gretl_matrix_zero(targ); for (j = 0; j < k; ++j) { for (i = 0; i < k; ++i) { xij = src->val[j * src->rows + i]; if (add) xij = targ->val[j * t...
void copy_north_west(gretl_matrix *targ, const gretl_matrix *src, int add) { int i, j, k = src->cols; double xij; if (!add) { gretl_matrix_zero(targ); } for (j = 0; j < k; j++) { for (i = 0; i < k; i++) { xij = gretl_matrix_get(src, i, j); if (add) { xij += gretl_matrix_get(targ,...
copy_north_west
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void copy_params_of_mt_struct(mt_struct *src, mt_struct *dst) { dst->nn = src->nn; dst->mm = src->mm; dst->rr = src->rr; dst->ww = src->ww; dst->wmask = src->wmask; dst->umask = src->umask; dst->lmask = src->lmask; }
static void copy_params_of_mt_struct(mt_struct *src, mt_struct *dst) { dst->nn = src->nn; dst->mm = src->mm; dst->rr = src->rr; dst->ww = src->ww; dst->wmask = src->wmask; dst->umask = src->umask; dst->lmask = src->lmask; }
copy_params_of_mt_struct
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void copy_part(gretl_matrix *targ, const gretl_matrix *src, int offset, int rmax) { int j; double *tval; double *sval; long sz; tval = &targ->val[offset]; sval = src->val; sz = 8LL * rmax; for (j = 0; j < targ->cols; ++j) { memcpy(tval, sval, sz); tval += targ->rows; sval += ...
static void copy_part(gretl_matrix *targ, const gretl_matrix *src, int offset, int rmax) { double *tval = targ->val + offset; double *sval = src->val; size_t sz = rmax * sizeof *tval; int j; for (j = 0; j < targ->cols; j++) { memcpy(tval, sval, sz); tval += targ->rows; sval ...
copy_part
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void copy_paths_with_fallback(ConfigPaths *cpaths) { path_init(paths.workdir, cpaths->workdir, 1); path_init(paths.gnuplot, cpaths->gnuplot, 0); path_init(paths.x12a, cpaths->x12a, 0); path_init(paths.tramo, cpaths->tramo, 0); path_init(paths.rbinpath, cpaths->rbinpath, 0); path_init(paths.rlibpath, cpaths-...
static void copy_paths_with_fallback(ConfigPaths *cpaths) { path_init(paths.workdir, cpaths->workdir, 1); #if defined(WIN32) && defined(PKGBUILD) sprintf(paths.gnuplot, "%swgnuplot.exe", paths.gretldir); #else path_init(paths.gnuplot, cpaths->gnuplot, 0); #endif path_init(paths.x12a, cpaths->x12a, 0); pat...
copy_paths_with_fallback
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int copy_periods_list(int *T0, const int *Ti) { int j; int ret; ret = 1; for (j = 0; j <= *Ti && ret; ++j) { if (j <= 1 || Ti[j] == Ti[j - 1] + 1) T0[j] = Ti[j]; else ret = 0; } return ret; }
static int copy_periods_list(int *T0, const int *Ti) { int j, ret = 1; for (j = 0; j <= Ti[0] && ret; j++) { if (j > 1 && Ti[j] != Ti[j - 1] + 1) { ret = 0; } else { T0[j] = Ti[j]; } } return ret; }
copy_periods_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void copy_plus(double *targ, const double *src, double step, const double *a, int n) { int i; for (i = 0; i < n; ++i) targ[i] = a[i] * step + src[i]; }
static void copy_plus(double *targ, const double *src, double step, const double *a, int n) { int i; for (i = 0; i < n; i++) { targ[i] = src[i] + step * a[i]; } }
copy_plus
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void copy_series_info(DATASET *dest, const DATASET *src, int maxv) { int i; for (i = 1; i < maxv; ++i) { strcpy(dest->varname[i], src->varname[i]); if (src->varinfo) copy_varinfo(dest->varinfo[i], src->varinfo[i]); } }
static void copy_series_info(DATASET *dest, const DATASET *src, int maxv) { int i; for (i = 1; i < maxv; i++) { strcpy(dest->varname[i], src->varname[i]); if (src->varinfo != NULL) { copy_varinfo(dest->varinfo[i], src->varinfo[i]); } } }
copy_series_info
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *copy_string_by_name(const char *name, int *err) { char *s; char *ret; user_var *u; ret = 0; u = get_user_var_of_type_by_name(name, GRETL_TYPE_STRING); if (u) s = (char *)u->ptr; else s = get_built_in_string_by_name(name); if (s) { ret = gretl_strdup(s); if (!ret) *err = 12; ...
char *copy_string_by_name(const char *name, int *err) { user_var *u; const char *s; char *ret = NULL; u = get_user_var_of_type_by_name(name, GRETL_TYPE_STRING); if (u != NULL) { s = u->ptr; } else { s = get_built_in_string_by_name(name); } if (s == NULL) { *err = E_DATA; } else { re...
copy_string_by_name
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void copy_string_stripped(char *targ, const char *src, int strip) { size_t v3; char *v4; char *tmp; tmp = gretl_strdup(src); v3 = strlen(tmp) - strip; v4 = gretl_utf8_truncate(tmp, v3); strcpy(targ, v4); free(tmp); }
static void copy_string_stripped(char *targ, const char *src, int strip) { char *tmp = gretl_strdup(src); size_t len = strlen(tmp) - strip; strcpy(targ, gretl_utf8_truncate(tmp, len)); free(tmp); }
copy_string_stripped
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *copy_subsample_mask(const char *src, int *err) { int n; char *ret; ret = 0; if (src == (const char *)3735928559LL) return (char *)3735928559LL; if (src) { n = get_submask_length(src); ret = (char *)malloc(n); if (ret) memcpy(ret, src, n); else *err = 12; } return ret...
char *copy_subsample_mask(const char *src, int *err) { char *ret = NULL; if (src == RESAMPLED) { ret = RESAMPLED; } else if (src != NULL) { int n = get_submask_length(src); ret = malloc(n * sizeof *ret); if (ret != NULL) { memcpy(ret, src, n); } else { *err = E_ALLOC; } } ...
copy_subsample_mask
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void copy_test(ModelTest *targ, const ModelTest *src) { targ->type = src->type; if (src->param && *src->param) targ->param = gretl_strdup(src->param); else targ->param = 0; targ->teststat = src->teststat; targ->dfn = src->dfn; targ->dfd = src->dfd; targ->order = src->order; targ->value = src->va...
static void copy_test(ModelTest *targ, const ModelTest *src) { targ->type = src->type; if (src->param != NULL && *src->param != '\0') { targ->param = gretl_strdup(src->param); } else { targ->param = NULL; } targ->teststat = src->teststat; targ->dfn = src->dfn; targ->dfd = src->dfd; targ->order...
copy_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void copy_to(double *targ, const double *src, int n) { int i; for (i = 0; i < n; ++i) targ[i] = src[i]; }
static void copy_to(double *targ, const double *src, int n) { int i; for (i = 0; i < n; i++) { targ[i] = src[i]; } }
copy_to
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int copy_to_reference_missmask(const char *mask) { if (refmask) { free(refmask); refmask = 0; } refmask = gretl_strdup(mask); if (refmask) return 0; else return 12; }
int copy_to_reference_missmask(const char *mask) { if (refmask != NULL) { free(refmask); refmask = NULL; } refmask = gretl_strdup(mask); #if MASKDEBUG fprintf(stderr, "copy_to_reference_missmask: refmask = %p\n", (void *)refmask); #endif return (refmask == NULL) ? E_ALLOC : 0; }
copy_to_reference_missmask
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int copy_user_parnames(MODEL *pmod, nlspec *spec) { char **v2; char *v4; char **v5; char **v6; int ns; int i; int err; const char *sep; char *tmp; const char *pname; gretl_array *a; char **S; unsigned long v15; v15 = __readfsqword(0x28u); sep = ","; err = 0; if ((spec->flags & 0x20) !...
static int copy_user_parnames(MODEL *pmod, nlspec *spec) { const char *sep = ","; const char *pname; char *tmp; int i, err = 0; if (spec->flags & NL_NAMES_ARRAY) { gretl_array *a = get_array_by_name(spec->parnames); int ns = 0; if (a != NULL) { char **S = gretl_array_get_strings(a, &ns); ...
copy_user_parnames
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void copy_varinfo(VARINFO *targ, const VARINFO *src) { if (src && targ) { copy_label(targ, src->label); strcpy(targ->display_name, src->display_name); strcpy(targ->parent, src->parent); targ->flags = src->flags; targ->transform = src->transform; targ->lag = src->lag; targ->midas_period = s...
void copy_varinfo(VARINFO *targ, const VARINFO *src) { if (src == NULL || targ == NULL) { return; } copy_label(targ, src->label); strcpy(targ->display_name, src->display_name); strcpy(targ->parent, src->parent); targ->flags = src->flags; targ->transform = src->transform; targ->lag = src->lag; targ...
copy_varinfo
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double *copy_vcv_subset(const MODEL *pmod) { double *vcv; double *v3; int i; int j; int nc; int k; double *V; nc = pmod->ncoeff; k = *pmod->list - 1; V = (double *)malloc(8LL * (k * *pmod->list / 2)); if (!V) return 0; for (i = 0; i < k; ++i) { for (j = 0; j <= i; ++j) { vcv = pmo...
static double *copy_vcv_subset(const MODEL *pmod) { double *V; int nc = pmod->ncoeff; int k = pmod->list[0] - 1; int n = k * (k + 1) / 2; int i, j; V = malloc(n * sizeof *V); if (V == NULL) { return NULL; } for (i = 0; i < k; i++) { for (j = 0; j <= i; j++) { V[ijton(i, j, k)] = pmod->...
copy_vcv_subset
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double *copyvec(const double *src, int n) { double *targ; long sz; targ = 0; sz = 8LL * n; if (n > 0 && src) targ = (double *)malloc(sz); if (targ) memcpy(targ, src, sz); return targ; }
double *copyvec(const double *src, int n) { double *targ = NULL; size_t sz = n * sizeof *targ; if (n > 0 && src != NULL) { targ = malloc(sz); } if (targ != NULL) { memcpy(targ, src, sz); } return targ; }
copyvec
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void corc_header(gretlopt opt, PRN *prn) { char *v2; char *v3; if ((opt & 0x80) != 0) v2 = gettext("\nFine-tune rho using the CORC procedure...\n\n"); else v2 = gettext("\nPerforming iterative calculation of rho...\n\n"); pputs(prn, v2); v3 = gettext(" ITER RHO ESS"); ...
static void corc_header(gretlopt opt, PRN *prn) { if (opt & OPT_H) { pputs(prn, _("\nFine-tune rho using the CORC procedure...\n\n")); } else { pputs(prn, _("\nPerforming iterative calculation of rho...\n\n")); } pputs(prn, _(" ITER RHO ESS")); pputc(prn, '\n'); }
corc_header
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double correct_to_int(double x) { if (x - floor(x) < 0.000001) return floor(x); if (ceil(x) - x >= 0.000001) return x; return ceil(x); }
static double correct_to_int(double x) { if (x - floor(x) < 1.0e-6) { return floor(x); } else if (ceil(x) - x < 1.0e-6) { return ceil(x); } return x; }
correct_to_int
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int correlogram_plot(const char *vname, const double *acf, const double *pacf, const gretl_matrix *PM, int m, double pm, gretlopt opt) { int err; FILE *fp; unsigned long v14; v14 = __readfsqword(0x28u); err = 0; fp = open_plot_input_file(PLOT_CORRELOGRAM, (GptFlags)0, &err); if (!err...
int correlogram_plot(const char *vname, const double *acf, const double *pacf, const gretl_matrix *PM, int m, double pm, gretlopt opt) { FILE *fp; int err = 0; fp = open_plot_input_file(PLOT_CORRELOGRAM, 0, &err); if (!err) { real_correlogram_print_plot(vname, acf, pacf, PM, m, pm, op...
correlogram_plot
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int corrgm_ascii_plot(const char *vname, const gretl_matrix *A, PRN *prn) { int rows; char *v5; char *v6; int k; int m; double *xk; if (A) rows = A->rows; else rows = 0; m = rows; xk = (double *)malloc(8LL * rows); if (!xk) return 12; for (k = 0; k < m; ++k) xk[k] = (double)k + ...
static int corrgm_ascii_plot(const char *vname, const gretl_matrix *A, PRN *prn) { int k, m = gretl_matrix_rows(A); double *xk = malloc(m * sizeof *xk); if (xk == NULL) { return E_ALLOC; } for (k = 0; k < m; k++) { xk[k] = k + 1.0; } pprintf(prn, "\n\n%s\n\n", _("Co...
corrgm_ascii_plot
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void corrgm_min_max(const double *acf, const double *pacf, int m, double pm, double *ymin, double *ymax) { int k; *ymax = 1.2 * pm; if (*ymax > 1.0) *ymax = 1.0; *ymin = 1.2 * -pm; if (*ymin < -1.0) *ymin = -1.0; for (k = 0; k < m; ++k) { if (acf[k] <= *ymax) { if (*ym...
static void corrgm_min_max(const double *acf, const double *pacf, int m, double pm, double *ymin, double *ymax) { int k; *ymax = pm * 1.2; if (*ymax > 1) *ymax = 1; *ymin = -pm * 1.2; if (*ymin < -1) *ymin = -1; for (k = 0; k < m; k++) { if (acf[k] > *ymax) { *...
corrgm_min_max
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int corrgram(int varno, int order, int nparam, DATASET *dset, gretlopt opt, PRN *prn) { char *v6; char *v8; char *v9; double *v10; char *v11; char *v12; char *v13; char *v14; char *v15; double v16; char *v17; int v18; double *v19; double v20; int ascii_plot; int use_gnuplot;...
int corrgram(int varno, int order, int nparam, DATASET *dset, gretlopt opt, PRN *prn) { const double z[] = {1.65, 1.96, 2.58}; gretl_matrix *PM = NULL; gretl_matrix *A = NULL; double ybar, ssr, lbox; double pval = NADBL; double pm[3]; double *acf, *pacf; const char *vname; int i, k, m, T,...
corrgram
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
VMatrix *corrlist(int ci, int *list, const DATASET *dset, gretlopt opt, int *err) { char *v6; int *v7; int v8; char **v9; int v10; short opta; int nmiss; int i; int flag; int m; int mm; VMatrix *v; unsigned long v20; opta = opt; v20 = __readfsqword(0x28u); flag = ((uns...
VMatrix *corrlist(int ci, int *list, const DATASET *dset, gretlopt opt, int *err) { int flag = (opt & OPT_C) ? COVMAT : CORRMAT; VMatrix *v; int i, m, mm; int nmiss = 0; if (list == NULL) { fprintf(stderr, "corrlist: list is NULL\n"); *err = E_DATA; return NULL; } v = vmatr...
corrlist
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double cosm1(double x) { if (-PIO4 <= x && x <= PIO4) return polevl(x * x, coscof, 6) * (x * x * (x * x)) + x * x * -0.5; else return cos(x) - 1.0; }
double cosm1(double x) { double xx; if (x < -PIO4 || x > PIO4) { return cos(x) - 1.0; } xx = x * x; xx = -0.5 * xx + xx * xx * polevl(xx, coscof, 6); return xx; }
cosm1
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double cotan(double theta) { double s; s = sin(theta); if (fabs(s) < 1.0e-35) s = copysign(1.0e-35, s); return cos(theta) / s; }
static double cotan(double theta) { double s = sin(theta); if (fabs(s) < NEAR_ZERO) { s = copysign(NEAR_ZERO, s); } return cos(theta) / s; }
cotan
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int could_be_series_id(NODE *n, parser *p) { int result; int k; result = 0; if (n->t == 54) { if (p->dset) { if (p->dset->n > 0) { k = node_get_int(n, p); if (!p->err && k >= 0 && k < p->dset->v) return 1; } } } return result; }
static int could_be_series_id(NODE *n, parser *p) { if (n->t == NUM && p->dset != NULL && p->dset->n > 0) { int k = node_get_int(n, p); if (!p->err && k >= 0 && k < p->dset->v) { return 1; } } return 0; }
could_be_series_id
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int count_coeffs(int p, const char *pmask, int q, const char *qmask, int P, int Q, int r, int ifc) { int i; int ia; int n; n = r + Q + P + ifc; for (i = 0; i < p; ++i) { if (!pmask || pmask[i] == 49) ++n; } for (ia = 0; ia < q; ++ia) { if (!qmask || qmask[ia] == 49) +...
static int count_coeffs(int p, const char *pmask, int q, const char *qmask, int P, int Q, int r, int ifc) { int i, n = P + Q + r + ifc; for (i = 0; i < p; i++) { if (arma_included(pmask, i)) { n++; } } for (i = 0; i < q; i++) { if (arma_included(qmask, i)) { n++...
count_coeffs
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int count_csv_fields(csvdata *c) { _BOOL4 inquote; int nf; int cbak; char *s; s = c->line; inquote = 0; nf = 0; if (*s == c->delim && *s == 32) ++s; while (*s) { if ((c->flags & 0x8000) != 0 && *s == c->qchar) { inquote = !inquote; } else if (!inquote && *s == c->delim) { ++nf...
' && d != '\t') static int count_csv_fields(csvdata *c) { const char *s = c->line; int inquote = 0; int cbak, nf = 0; if (*s == c->delim && *s == ' ') { s++; } while (*s) { if (csv_keep_quotes(c) && *s == c->qchar) { inquote = !inquote; } else if (!inquote && *s == c->delim) { ...
count_csv_fields
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int count_distinct_int_values(const int *x, int n) { int i; int c; c = 1; for (i = 1; i < n; ++i) { if (x[i] != x[i - 1]) ++c; } return c; }
int count_distinct_int_values(const int *x, int n) { int i, c = 1; for (i = 1; i < n; i++) { if (x[i] != x[i - 1]) c++; } return c; }
count_distinct_int_values
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int count_distinct_values(const double *x, int n) { int i; int c; c = 1; for (i = 1; i < n; ++i) { if (x[i] != x[i - 1]) ++c; } return c; }
int count_distinct_values(const double *x, int n) { int i, c = 1; for (i = 1; i < n; i++) { if (x[i] != x[i - 1]) { c++; } } return c; }
count_distinct_values
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int count_each_fields(const char *s) { const char *sa; int nf; char *p; nf = 0; if (s && *s) { sa = &s[strspn(s, " ")]; if (*sa && *sa != 10) { ++sa; nf = 1; } while (*sa) { p = strpbrk(sa, " \n"); if (!p) break; sa = &p[strspn(p, " \n")]; if (*sa) ...
static int count_each_fields(const char *s) { int nf = 0; if (s != NULL && *s != '\0') { const char *p; s += strspn(s, " "); if (*s != '\0' && *s != '\n') { s++; nf++; } while (*s) { p = strpbrk(s, " \n"); if (p != NULL) { s = p + strspn(p, " \n"); if ...
count_each_fields
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int count_in7_series(FILE *fp, int *err) { int y0; int p0; int y1; int p1; int pd; int offset; int i; int nseries; int nf; char fmt[32]; char sname[32]; char line[1032]; unsigned long v15; v15 = __readfsqword(0x28u); i = 0; nseries = 0; sprintf(fmt, "%%%ds %%d %%d %%d %%d %%d %%d", 31...
static int count_in7_series(FILE *fp, int *err) { char line[1024]; char sname[VNAMELEN]; char fmt[24]; int y0, p0, y1, p1; int pd, offset; int nf, i = 0, nseries = 0; sprintf(fmt, "%%%ds %%d %%d %%d %%d %%d %%d", VNAMELEN - 1); while (fgets(line, sizeof line, fp)) { if (i == 0 && strncmp(line, "pc...
count_in7_series
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int count_markers(FILE *fp, char *line, int linelen, char *marker) { long v4; int n; n = 0; while (fgets(line, linelen, fp)) { if ((unsigned int)__isoc99_sscanf(line, "%31[^\n\r]", marker) == 1) { v4 = g_strchug(marker); g_strchomp(v4); if (*marker) ++n; } } rewind(fp); ...
static int count_markers(FILE *fp, char *line, int linelen, char *marker) { int n = 0; while (fgets(line, linelen, fp)) { if (sscanf(line, "%31[^\n\r]", marker) == 1) { g_strstrip(marker); if (*marker != '\0') { n++; } } } rewind(fp); return n; }
count_markers
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int count_missing_values(const DATASET *dset, gretlopt opt, PRN *prn, int *err) { char *v5; char *v6; char *v7; char *v8; char *v9; int v10; char *v11; int missval; int missobs; int totvals; int oldmiss; int t1; int t2; int i; int ia; int ib; int t; int T; ...
int count_missing_values(const DATASET *dset, gretlopt opt, PRN *prn, int *err) { int missval = 0, missobs = 0, totvals = 0, oldmiss = 0; int T, t1, t2; int *missvec; double missfrac; int i, t, tmiss; if (opt & OPT_A) { t1 = 0; t2 = dset->n - 1; } else { t1 = dset->t1...
count_missing_values
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
MODEL *count_model(MODEL *__return_ptr retstr, const int *list, int ci, DATASET *dset, gretlopt opt, PRN *prn) { const char *v6; char *v7; MODEL v9; PRN *prna; DATASET *dseta; gretlopt opta; int cia; const int *lista; MODEL *v15; int offvar; int *listcpy; int (*count_data_esti...
MODEL count_model(const int *list, int ci, DATASET *dset, gretlopt opt, PRN *prn) { MODEL cmod; int *listcpy; int offvar; int (*count_data_estimate)(MODEL *, int, int, DATASET *, gretlopt, PRN *); gretl_error_clear(); gretl_model_init(&cmod, dset); if (!gretl_iscount(dset->t1, dset->t...
count_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int count_new_vars(const DATASET *d1, const DATASET *d2, PRN *prn) { int addvars; int i; int j; char *vname; addvars = d2->v - 1; for (i = 1; i < d2->v && addvars >= 0; ++i) { vname = d2->varname[i]; if (gretl_is_user_var(vname)) { merge_name_error(vname, prn); addvars = -1; } else ...
static int count_new_vars(const DATASET *d1, const DATASET *d2, PRN *prn) { const char *vname; int addvars = d2->v - 1; int i, j; for (i = 1; i < d2->v && addvars >= 0; i++) { vname = d2->varname[i]; if (gretl_is_user_var(vname)) { merge_name_error(vname, prn); addvars = -1; } else if (...
count_new_vars
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int count_nonshifts(const gretl_matrix *F) { int result; int v2; int i; int j; int ja; int n; int ret; int rmax; double x; if (F) result = F->rows; else result = 0; rmax = result; n = 0; ret = result; for (j = 0; j < result; ++j) { x = F->val[j * F->rows - 1 + result]; if ...
static int count_nonshifts(const gretl_matrix *F) { int rmax = gretl_matrix_rows(F); double x; int i, j, n = 0; int ret = rmax; for (j = 0; j < rmax; j++) { x = gretl_matrix_get(F, rmax - 1, j); if (x != 0.0) { if (n == 0 && j > 0 && x == 1.0) { n = j; } else { return rmax...
count_nonshifts
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int count_ops(const char *p) { int n; n = 0; while (*p) { if (*p == 43 || *p == 45) ++n; if (*p == 61) break; ++p; } return n; }
static int count_ops(const char *p) { int n = 0; while (*p) { if (*p == '+' || *p == '-') n++; if (*p == '=') break; p++; } return n; }
count_ops
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int count_panel_units(const char *mask, const DATASET *dset) { int ubak; int i; int n; ubak = -1; n = 0; for (i = 0; i < dset->n; ++i) { if (mask[i] && i / dset->pd != ubak) { ++n; ubak = i / dset->pd; } } return n; }
static int count_panel_units(const char *mask, const DATASET *dset) { int u, ubak = -1; int i, n = 0; for (i = 0; i < dset->n; i++) { if (mask[i]) { u = i / dset->pd; if (u != ubak) { n++; ubak = u; } } } #if SUBDEBUG fprintf(stderr, "count_panel_units: got n = %d\n...
count_panel_units
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int count_selected_cases(const char *mask, const DATASET *dset) { int i; int n; n = 0; for (i = 0; i < dset->n; ++i) { if (mask[i]) ++n; } return n; }
static int count_selected_cases(const char *mask, const DATASET *dset) { int i, n = 0; for (i = 0; i < dset->n; i++) { if (mask[i]) { n++; } } return n; }
count_selected_cases
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int count_selection(const char *s, int n) { int i; int c; c = 0; for (i = 0; i < n; ++i) { if (s[i]) ++c; } return c; }
static int count_selection(const char *s, int n) { int i, c = 0; for (i = 0; i < n; i++) { if (s[i] != 0) c++; } return c; }
count_selection
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int count_unmasked_elements(const char *mask, int n) { int i; int c; c = 0; for (i = 0; i < n; ++i) c += mask[i] == 0; return c; }
static int count_unmasked_elements(const char *mask, int n) { int i, c = 0; for (i = 0; i < n; i++) { c += (mask[i] == 0); } return c; }
count_unmasked_elements
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *country_code_node(NODE *n, NODE *r, parser *p) { int v3; int v4; unsigned int output; unsigned int nx; int k; NODE *ret; char *src; char *tmp; const double *x; char *(*cfunc)(const char *, int, PRN *, int *); gretl_array *(*cfunc_0)(gretl_array *, int, PRN *, int *); gretl_array *(*cfunc_1...
static NODE *country_code_node(NODE *n, NODE *r, parser *p) { NODE *ret = NULL; char *src = NULL; char *tmp = NULL; if (n->t == STR) { src = n->v.str; ret = aux_string_node(p); } else if (n->t == ARRAY || n->t == SERIES || n->t == MAT) { ret = aux_array_node(p); } else if (n->t == NUM) { in...
country_code_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void covhdr(PRN *prn) { char *v1; v1 = gettext("Covariance matrix of regression coefficients"); pprintf(prn, "%s:\n\n", v1); }
static void covhdr(PRN *prn) { pprintf(prn, "%s:\n\n", _("Covariance matrix of regression coefficients")); }
covhdr
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0