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
double generate_boolean(const char *s, DATASET *dset, PRN *prn, int *err) { double x; x = generate_scalar_full(s, dset, prn, err); if (*err || fabs(x) > 1.797693134862316e308) return NAN; if (x == 0.0) return 0.0; return 1.0; }
double generate_boolean(const char *s, DATASET *dset, PRN *prn, int *err) { double x = generate_scalar_full(s, dset, prn, err); return (*err || na(x)) ? NADBL : (double)(x != 0.0); }
generate_boolean
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int generate_int(const char *s, DATASET *dset, int *err) { int ret; double x; x = generate_scalar_full(s, dset, 0, err); ret = -1; if (!*err) return gretl_int_from_double(x, err); return ret; }
int generate_int(const char *s, DATASET *dset, int *err) { double x = generate_scalar_full(s, dset, NULL, err); int ret = -1; if (!*err) { ret = gretl_int_from_double(x, err); } return ret; }
generate_int
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int *generate_list(const char *s, DATASET *dset, int *err) { int *ret; parser p; unsigned long v7; v7 = __readfsqword(0x28u); ret = 0; if (dset) { *err = realgen(s, &p, dset, 0, 524304, 56); if (!*err) { ret = node_get_list(p.ret, &p); *err = p.err; } gen_cleanup(&p); return...
int *generate_list(const char *s, DATASET *dset, int *err) { int *ret = NULL; parser p; if (dset == NULL) { *err = E_NODATA; return NULL; } *err = realgen(s, &p, dset, NULL, P_PRIV | P_ANON, LIST); if (!*err) { ret = node_get_list(p.ret, &p); *err = p.err; } gen_cleanup(&p); retur...
generate_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *generate_matrix(const char *s, DATASET *dset, int *err) { gretl_matrix *m; NODE *n; parser p; unsigned long v8; v8 = __readfsqword(0x28u); m = 0; *err = realgen(s, &p, dset, 0, 524304, 57); if (*err) { if (*err == 1) *err = 18; } else { n = p.ret; if (p.ret->t == 57) {...
gretl_matrix *generate_matrix(const char *s, DATASET *dset, int *err) { gretl_matrix *m = NULL; parser p; *err = realgen(s, &p, dset, NULL, P_PRIV | P_ANON, MAT); if (!*err) { NODE *n = p.ret; if (n->t == MAT) { if (n->flags & TMP_NODE) { m = n->v.m; n->v.m = NULL; } else...
generate_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int generate_obs_markers(const char *s, DATASET *dset) { int err; int t; int n; PRN *prn; const char *buf; char format[16]; char args[40]; unsigned long v10; v10 = __readfsqword(0x28u); memset(format, 0, sizeof(format)); memset(args, 0, 32); err = 0; n = __isoc99_sscanf(s, "\"%15[^\"]\", %31[...
int generate_obs_markers(const char *s, DATASET *dset) { char format[16] = {0}; char args[32] = {0}; PRN *prn; int n, t, err = 0; n = sscanf(s, "\"%15[^\"]\", %31[^\r\n]", format, args); if (n != 2) { return E_PARSE; } prn = gretl_print_new(GRETL_PRINT_BUFFER, &err); if (err) { return err; ...
generate_obs_markers
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double generate_scalar(const char *s, DATASET *dset, int *err) { return generate_scalar_full(s, dset, 0, err); }
double generate_scalar(const char *s, DATASET *dset, int *err) { return generate_scalar_full(s, dset, NULL, err); }
generate_scalar
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double generate_scalar_full(const char *s, DATASET *dset, PRN *prn, int *err) { double x; char *m; parser p; unsigned long v9; v9 = __readfsqword(0x28u); x = NAN; *err = realgen(s, &p, dset, prn, 524304, 54); if (*err) { if (*err == 1) *err = 18; } else if (p.ret->t == 57) { m = p.ret->...
static double generate_scalar_full(const char *s, DATASET *dset, PRN *prn, int *err) { parser p; double x = NADBL; *err = realgen(s, &p, dset, prn, P_PRIV | P_ANON, NUM); if (!*err) { if (p.ret->t == MAT) { gretl_matrix *m = p.ret->v.m; if (gretl_matrix_is_s...
generate_scalar_full
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double *generate_series(const char *s, DATASET *dset, PRN *prn, int *err) { double *x; parser p; unsigned long v8; v8 = __readfsqword(0x28u); x = 0; *err = realgen(s, &p, dset, prn, 524304, 55); if (*err) { if (*err == 1) *err = 18; } else if (p.ret->t == 55) { if ((p.ret->flags & 2) != 0...
double *generate_series(const char *s, DATASET *dset, PRN *prn, int *err) { parser p; double *x = NULL; *err = realgen(s, &p, dset, prn, P_PRIV | P_ANON, SERIES); if (!*err) { NODE *n = p.ret; if (n->t == SERIES) { if (n->flags & TMP_NODE) { x = n->v.xvec; n->v.xvec = NULL; ...
generate_series
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *generate_string(const char *s, DATASET *dset, int *err) { char *ret; parser p; unsigned long v7; v7 = __readfsqword(0x28u); ret = 0; *err = realgen(s, &p, dset, 0, 524304, 60); if (*err) { if (*err == 1) *err = 18; } else if (p.ret->t == 60) { if ((p.ret->flags & 2) != 0) { re...
char *generate_string(const char *s, DATASET *dset, int *err) { parser p; char *ret = NULL; *err = realgen(s, &p, dset, NULL, P_PRIV | P_ANON, STR); if (!*err) { NODE *n = p.ret; if (n->t == STR) { if (n->flags & TMP_NODE) { ret = n->v.str; n->v.str = NULL; } else { ...
generate_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int generate_void(const char *s, DATASET *dset, PRN *prn) { int err; parser p; unsigned long v6; v6 = __readfsqword(0x28u); err = realgen(s, &p, dset, prn, 1048592, 85); gen_cleanup(&p); return err; }
int generate_void(const char *s, DATASET *dset, PRN *prn) { parser p; int err; err = realgen(s, &p, dset, prn, P_PRIV | P_VOID, EMPTY); gen_cleanup(&p); return err; }
generate_void
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *generic_typeof_node(NODE *n, NODE *func, parser *p) { long v3; GretlType t; NODE *ret; ret = get_aux_node(p, 54, 0, 0); t = GRETL_TYPE_NONE; switch (n->t) { case '6': t = GRETL_TYPE_DOUBLE; break; case '7': t = GRETL_TYPE_SERIES; break; case '8': t = GRETL_TYPE_LIST; bre...
static NODE *generic_typeof_node(NODE *n, NODE *func, parser *p) { NODE *ret = aux_scalar_node(p); GretlType t = GRETL_TYPE_NONE; switch (n->t) { case NUM: t = GRETL_TYPE_DOUBLE; break; case SERIES: t = GRETL_TYPE_SERIES; break; case MAT: t = GRETL_TYPE_MATRIX; break; case STR: ...
generic_typeof_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double genpois(const double m) { double v1; double v3; double v4; int y; double xa; if (m <= 200.0) { y = 0; v4 = exp(m); for (xa = gretl_rand_01() * v4; xa > 1.0; xa = gretl_rand_01() * xa) ++y; return (double)y; } else { v3 = sqrt(m); v1 = gretl_one_snormal(); return f...
static double genpois(const double m) { double x; if (m > 200) { x = (m + 0.5) + sqrt(m) * gretl_one_snormal(); x = floor(x); } else { int y = 0; x = exp(m) * gretl_rand_01(); while (x > 1) { y++; x *= gretl_rand_01(); } x = (double)y; } return x; }
genpois
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
parser *genr_compile(const char *s, DATASET *dset, GretlType gtype, gretlopt opt, PRN *prn, int *err) { short opta; int flags; GretlType targtype; parser *p; opta = opt; flags = 32; targtype = GRETL_TYPE_VOID | 0x40; if (is_genr_special(s, 0, 0)) { *err = 13; return 0; } ...
parser *genr_compile(const char *s, DATASET *dset, GretlType gtype, gretlopt opt, PRN *prn, int *err) { parser *p; int flags = P_COMPILE; int targtype = UNK; #if GDEBUG fprintf(stderr, "\n*** genr_compile: s = '%s'\n", s); #endif if (is_genr_special(s, NULL, NULL)) { *err = E_EQN; ...
genr_compile
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int genr_fit_resid(const MODEL *pmod, DATASET *dset, ModelDataIndex idx) { int err; int v; gchar *vlabel; double *x; char vname[40]; unsigned long v9; v9 = __readfsqword(0x28u); vlabel = 0; err = 0; x = get_fit_or_resid(pmod, dset, idx, vname, &vlabel, &err); if (!err) err = dataset_add_alloc...
int genr_fit_resid(const MODEL *pmod, DATASET *dset, ModelDataIndex idx) { char vname[VNAMELEN]; gchar *vlabel = NULL; double *x; int err = 0; x = get_fit_or_resid(pmod, dset, idx, vname, &vlabel, &err); if (!err) { err = dataset_add_allocated_series(dset, x); } if (err) { free(x); } else {...
genr_fit_resid
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int genr_function_word(const char *s) { int ret; ret = real_function_lookup(s, 0, 0); if (!ret) ret = dvar_lookup(s); if (!ret) ret = mvar_lookup(s); if (!ret) ret = bvar_lookup(s); if (!ret) return const_lookup(s); return ret; }
int genr_function_word(const char *s) { int ret = 0; ret = real_function_lookup(s, 0, NULL); if (!ret) { ret = dvar_lookup(s); } if (!ret) { ret = mvar_lookup(s); } if (!ret) { ret = bvar_lookup(s); } if (!ret) { ret = const_lookup(s); } return ret; }
genr_function_word
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
GretlType genr_get_last_output_type() { return genr_last_type; }
GretlType genr_get_last_output_type(void) { return genr_last_type; }
genr_get_last_output_type
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *genr_get_output_matrix(parser *p) { gretl_matrix *m; m = p->lh.mret; if (p->targ != 57) p->lh.mret = 0; return m; }
gretl_matrix *genr_get_output_matrix(parser *p) { gretl_matrix *m = p->lh.mret; if (p->targ != MAT) { p->lh.mret = NULL; } return m; }
genr_get_output_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double genr_get_output_scalar(const parser *p) { if (p->targ == 54) return gretl_scalar_get_value(p->lh.name, 0); else return NAN; }
double genr_get_output_scalar(const parser *p) { if (p->targ == NUM) { return gretl_scalar_get_value(p->lh.name, NULL); } else { return NADBL; } }
genr_get_output_scalar
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
GretlType genr_get_output_type(const parser *p) { GretlType t; t = GRETL_TYPE_NONE; if (!p->err) { switch (p->targ) { case '6': return GRETL_TYPE_DOUBLE; case '7': return GRETL_TYPE_SERIES; case '9': return GRETL_TYPE_MATRIX; case '8': return GRETL_TYPE_LIST; case ...
GretlType genr_get_output_type(const parser *p) { int t = GRETL_TYPE_NONE; if (!p->err) { if (p->targ == NUM) { t = GRETL_TYPE_DOUBLE; } else if (p->targ == SERIES) { t = GRETL_TYPE_SERIES; } else if (p->targ == MAT) { t = GRETL_TYPE_MATRIX; } else if (p->targ == LIST) { t =...
genr_get_output_type
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int genr_get_output_varnum(const parser *p) { return p->lh.vnum; }
int genr_get_output_varnum(const parser *p) { return p->lh.vnum; }
genr_get_output_varnum
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int genr_is_autoregressive(const parser *p) { return p->flags & 4; }
int genr_is_autoregressive(const parser *p) { return (p->flags & P_AUTOREG); }
genr_is_autoregressive
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int genr_no_assign(const parser *p) { return p->flags & 0x100001; }
int genr_no_assign(const parser *p) { return (p->flags & (P_DISCARD | P_VOID)); }
genr_no_assign
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void genr_reset_uvars(parser *p) { real_reset_uvars(p); }
void genr_reset_uvars(parser *p) { real_reset_uvars(p); }
genr_reset_uvars
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void genr_set_na_check(parser *p) { int flags; flags = p->flags; LOBYTE(flags) = flags | 0x80; p->flags = flags; }
void genr_set_na_check(parser *p) { p->flags |= P_NATEST; }
genr_set_na_check
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void genr_setup_error(const char *s, int err, int exec) { char *v3; gchar *msg; if (exec) v3 = gettext("The formula '%s'\n produced an error on execution"); else v3 = gettext("The formula '%s'\n produced an error on compilation"); msg = (gchar *)g_strdup_printf(v3, s); gretl_errmsg_append(msg, err)...
static void genr_setup_error(const char *s, int err, int exec) { gchar *msg; if (exec) { msg = g_strdup_printf(_("The formula '%s'\n produced an error " "on execution"), s); } else { msg = g_strdup_printf(_("The formula '%s'\n produced an error " ...
genr_setup_error
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int genr_special_word(const char *s) { return !strcmp(s, "dummy") || !strcmp(s, "timedum") || !strcmp(s, "unitdum") || !strcmp(s, "time") || !strcmp(s, "index") || !strcmp(s, "unit") || !strcmp(s, "weekday"); }
int genr_special_word(const char *s) { if (!strcmp(s, "dummy") || !strcmp(s, "timedum") || !strcmp(s, "unitdum") || !strcmp(s, "time") || !strcmp(s, "index") || !strcmp(s, "unit") || !strcmp(s, "weekday")) { return 1; } else { return 0; } }
genr_special_word
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void genr_unset_na_check(parser *p) { int flags; flags = p->flags; LOBYTE(flags) = flags & 0x7F; p->flags = flags; }
void genr_unset_na_check(parser *p) { p->flags &= ~P_NATEST; }
genr_unset_na_check
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
uint32_t genrand_mt(mt_struct *mts) { uint32_t v1; uint32_t v2; uint32_t v3; int k; int n; int m; uint32_t aa; uint32_t uuu; uint32_t lll; uint32_t x; uint32_t xa; uint32_t xb; uint32_t xc; uint32_t xd; uint32_t xe; uint32_t xf; uint32_t *st; if (mts->i >= mts->nn) { n = mts->nn...
uint32_t genrand_mt(mt_struct *mts) { uint32_t *st, uuu, lll, aa, x; int k, n, m, lim; if (mts->i >= mts->nn) { n = mts->nn; m = mts->mm; aa = mts->aaa; st = mts->state; uuu = mts->umask; lll = mts->lmask; lim = n - m; for (k = 0; k < lim; k++) { x = (st[k] & uuu) | (st[k +...
genrand_mt
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void genrank(const double *sz, int m, const double *z, int n, double *rz) { int cases; int k; int i; int j; int ja; double r; r = 1.0; for (i = 0; i < m; ++i) { k = 0; cases = 0; if (i <= 0 || sz[i] != sz[i - 1]) { for (j = 0; j < n; ++j) { if (fabs(z[j]) <= 1.797693134862316e...
static void genrank(const double *sz, int m, const double *z, int n, double *rz) { int cases, k, i, j; double avg, r = 1; for (i = 0; i < m; i++) { cases = k = 0; if (i > 0 && sz[i] == sz[i - 1]) { continue; } for (j = 0; j < n; j++) { if (!na(z[j])) { ...
genrank
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gensymm_conformable(const gretl_matrix *A, const gretl_matrix *B) { if (real_gretl_matrix_is_symmetric(A, 1)) { if (real_gretl_matrix_is_symmetric(B, 1)) { if (B->rows == A->rows) { return 1; } else { fwrite( "gretl_gensymm_eigenvals: matrices A and B have different siz...
static int gensymm_conformable(const gretl_matrix *A, const gretl_matrix *B) { if (!real_gretl_matrix_is_symmetric(A, 1)) { fputs("gretl_gensymm_eigenvals: matrix A is not symmetric\n", stderr); return 0; } if (!real_gretl_matrix_is_symmetric(B, 1)) { fputs("gretl_gensymm_eigenvals: matrix B is not s...
gensymm_conformable
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double genz04(double rho, double limx, double limy) { double v3; double v5; double v6; double v7; double v8; double v9; int i; int ia; int lg; int j; int ja; double k; double hk; double bvn; double bvna; double bvnb; double absrho; double h; double as; double a; double aa; do...
static double genz04(double rho, double limx, double limy) { double w[10], x[10]; double absrho = fabs(rho); double h, k, hk, bvn, hs, asr; double a, b, as, d1, bs, c, d, tmp; double sn, xs, rs; int i, lg, j; if (absrho < 0.3) { w[0] = .1713244923791705; w[1] = .3607615730481384; w[2] = .4679...
genz04
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *geoplot_dimensions(double *xlim, double *ylim, int height, int have_payload, int *non_standard) { __m128i v5; int width; double xyr; gretl_matrix *ret; ret = gretl_matrix_alloc(1, 2); xyr = (xlim[1] - *xlim) / (ylim[1] - *ylim); if (!*non_standard && (fabs(*...
static gretl_matrix *geoplot_dimensions(double *xlim, double *ylim, int height, int have_payload, int *non_standard) { gretl_matrix *ret = gretl_matrix_alloc(1, 2); double xyr = (xlim[1] - xlim[0]) / (ylim[1] - ylim[0]); int width; if (*non_standard == 0) { if (fabs(...
geoplot_dimensions
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int geoplot_driver(const char *fname, gretl_bundle *map, const double *plx, const DATASET *dset, gretl_bundle *opts) { gretl_bundle *mapa; const char *fnamea; int err; int free_map; gretl_matrix *payload; const char *mapfile; int (*mapfunc)(const char *, gretl_bundle *, gretl_matrix *, ...
int geoplot_driver(const char *fname, gretl_bundle *map, const double *plx, const DATASET *dset, gretl_bundle *opts) { int (*mapfunc)(const char *, gretl_bundle *, gretl_matrix *, gretl_bundle *); gretl_matrix *payload = NULL; const char *mapfile = NULL; int free_map = 0; int err = 0; if...
geoplot_driver
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *geoplot_node(NODE *l, NODE *m, NODE *r, parser *p) { char *mapfile; gretl_bundle *mapbun; double *payload; gretl_bundle *opts; NODE *ret; ret = get_aux_node(p, 54, 0, 0); if (!p->err) { mapfile = 0; mapbun = 0; payload = 0; opts = 0; if (l->t == 60 || l->t == 58) { if (l->...
static NODE *geoplot_node(NODE *l, NODE *m, NODE *r, parser *p) { NODE *ret = aux_scalar_node(p); if (!p->err) { const char *mapfile = NULL; gretl_bundle *mapbun = NULL; double *payload = NULL; gretl_bundle *opts = NULL; if (l->t == STR || l->t == BUNDLE) { if (l->t == STR) { ma...
geoplot_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
FILE *get_3d_input_file(int *err) { const char *v1; FILE *fp; char fname[520]; unsigned long v5; v5 = __readfsqword(0x28u); v1 = gretl_dotdir(); sprintf(fname, "%sgpttmp.plt", v1); fp = gretl_fopen(fname, "w"); if (fp) gretl_set_path_by_name("plotfile", fname); else *err = 11; return fp; ...
static FILE *get_3d_input_file(int *err) { FILE *fp = NULL; char fname[MAXLEN]; sprintf(fname, "%sgpttmp.plt", gretl_dotdir()); fp = gretl_fopen(fname, "w"); if (fp == NULL) { *err = E_FOPEN; } else { gretl_set_path_by_name("plotfile", fname); } return fp; }
get_3d_input_file
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double get_BP_LM(MODEL *pmod, int *list, MODEL *aux, DATASET *dset, gretlopt opt, int *err) { double v6; MODEL *v7; MODEL v9; int *erra; gretlopt opta; DATASET *dseta; MODEL *auxa; int *lista; MODEL *pmoda; int t; int v; double V; double LM; double s2; double u2t; double...
static double get_BP_LM(MODEL *pmod, int *list, MODEL *aux, DATASET *dset, gretlopt opt, int *err) { double s2, u2t, gt; double V = 0.0, LM = NADBL; int t, v = list[1]; s2 = pmod->ess / pmod->nobs; if (opt & OPT_R) { for (t = pmod->t1; t <= pmod->t2; t++) { if (!na(pmod->u...
get_BP_LM
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double get_DW_pvalue_for_model(MODEL *pmod, DATASET *dset, int *err) { MODEL v5; int *erra; DATASET *dseta; MODEL *pmoda; int save_t1; int save_t2; int *list; double pv; MODEL dwmod; unsigned long v14; pmoda = pmod; dseta = dset; erra = err; v14 = __readfsqword(0x28u); save_t1 = dset->t1;...
double get_DW_pvalue_for_model(MODEL *pmod, DATASET *dset, int *err) { MODEL dwmod; int save_t1 = dset->t1; int save_t2 = dset->t2; int *list = NULL; double pv = NADBL; pv = gretl_model_get_double(pmod, "dw_pval"); if (!na(pv)) { return pv; } if (pmod->ci == PANEL && panel_DW_pval_ok(pmod)) { ...
get_DW_pvalue_for_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double get_MIC(MODEL *pmod, int k, double sum_ylag2, int kmethod, const DATASET *dset) { double v5; int t; _BYTE T[12]; double g; double ttk; *(_DWORD *)&T[8] = 0; *(_QWORD *)T = (unsigned int)pmod->nobs; for (t = pmod->t1; t <= pmod->t2; ++t) *(double *)&T[4] = pmod->uhat[t] * pmod-...
static double get_MIC(MODEL *pmod, int k, double sum_ylag2, int kmethod, const DATASET *dset) { double g, CT, ttk, s2k = 0; int t, T = pmod->nobs; g = pmod->coeff[pmod->ifc]; for (t = pmod->t1; t <= pmod->t2; t++) { s2k += pmod->uhat[t] * pmod->uhat[t]; } s2k /= pmod->nobs; tt...
get_MIC
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double get_QLR_pval(double test, int df_0, int k1_0, int k2_0, MODEL *pmod) { double (*qlr_asy_pvalue)(double, int, double); double pi_1; double pi_2; qlr_asy_pvalue = (double (*)(double, int, double))get_plugin_function("qlr_asy_pvalue"); if (!qlr_asy_pvalue) return NAN; pi_1 = (double)(k1_0 - p...
static double get_QLR_pval(double test, int df, int k1, int k2, MODEL *pmod) { double (*qlr_asy_pvalue)(double, int, double); double pi_1, pi_2, lam0; double pval; qlr_asy_pvalue = get_plugin_function("qlr_asy_pvalue"); if (qlr_asy_pvalue == NULL) { return NADBL; } pi_1 = (k1 - pmod->t1 + 1) / (dou...
get_QLR_pval
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int get_R_rank(const gretl_matrix *R) { int i; int rank; double d; rank = R->rows; for (i = 0; i < R->rows; ++i) { d = R->val[i * R->rows + i]; if (fabs(d) > 1.797693134862316e308 || fabs(d) < 0.00000001) --rank; } return rank; }
static int get_R_rank(const gretl_matrix *R) { double d; int i, rank = R->rows; #if 0 gretl_matrix_print(R, "R, in get_R_rank"); #endif for (i = 0; i < R->rows; i++) { d = gretl_matrix_get(R, i, i); if (isnan(d) || isinf(d) || fabs(d) < R_DIAG_MIN) { rank--; } } return rank; }
get_R_rank
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int get_R_sys_column(const gretl_restriction *rset, int i, int j) { int col; int k; int n; const rrow *r; equation_system *sys; r = rset->rows[i]; sys = (equation_system *)rset->obj; col = r->bnum[j]; for (k = 0; k < r->eq[j]; ++k) { n = system_get_list_length(sys, k); if (n > 0) col +=...
static int get_R_sys_column(const gretl_restriction *rset, int i, int j) { const rrow *r = rset->rows[i]; equation_system *sys = rset->obj; int col = r->bnum[j]; int k, n; for (k = 0; k < r->eq[j]; k++) { n = system_get_list_length(sys, k); if (n > 0) { col += n - 1; } } return col; }
get_R_sys_column
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int get_R_var_column(const gretl_restriction *rset, int i, int j) { int k; int col; const rrow *r; r = rset->rows[i]; col = r->bnum[j]; for (k = 0; k < r->eq[j]; ++k) col += *((_DWORD *)rset->obj + 10); return col; }
static int get_R_var_column(const gretl_restriction *rset, int i, int j) { const rrow *r = rset->rows[i]; GRETL_VAR *var = rset->obj; int k, col = r->bnum[j]; for (k = 0; k < r->eq[j]; k++) { col += var->ncoeff; } return col; }
get_R_var_column
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int get_R_vecm_column(const gretl_restriction *rset, int i, int j, char letter) { int v4; int v5; int col; const rrow *r; GRETL_VAR *var; r = rset->rows[i]; var = (GRETL_VAR *)rset->obj; col = 0; if (letter == 98) { col = r->bnum[j]; if (rset->bmulti) { v4 = r->eq[...
static int get_R_vecm_column(const gretl_restriction *rset, int i, int j, char letter) { const rrow *r = rset->rows[i]; GRETL_VAR *var = rset->obj; int col = 0; if (letter == 'b') { col = r->bnum[j]; if (rset->bmulti) { col += r->eq[j] * gretl_VECM_n_beta(var); } ...
get_R_vecm_column
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int get_SVD_ols_vcv(const gretl_matrix *A, const gretl_matrix *B, const double *s, gretl_matrix *V, double *s2) { int i; int ia; int j; int k; int m; int T; double vij; double sigma2; double sigma2a; m = A->cols; for (i = 0; i < m; ++i) { for (j = i; j < m; ++j) { vi...
static int get_SVD_ols_vcv(const gretl_matrix *A, const gretl_matrix *B, const double *s, gretl_matrix *V, double *s2) { double aik, ajk, vij; int m = A->cols; int i, j, k; for (i = 0; i < m; i++) { for (j = i; j < m; j++) { vij = 0.0; for (k = 0; k < m; k++) { ...
get_SVD_ols_vcv
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
GRETL_VAR *get_VAR_by_name(const char *vname) { return (GRETL_VAR *)get_object_by_name(vname, GRETL_OBJ_VAR, 0); }
GRETL_VAR *get_VAR_by_name(const char *vname) { return get_object_by_name(vname, GRETL_OBJ_VAR, NULL); }
get_VAR_by_name
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
GRETL_VAR *get_VECM_by_name(const char *vname) { GRETL_VAR *var; var = (GRETL_VAR *)get_object_by_name(vname, GRETL_OBJ_VAR, 0); if (var && var->ci == 138) return var; else return 0; }
GRETL_VAR *get_VECM_by_name(const char *vname) { GRETL_VAR *var = get_object_by_name(vname, GRETL_OBJ_VAR, NULL); if (var != NULL && var->ci == VECM) { return var; } else { return NULL; } }
get_VECM_by_name
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
fnpkg *get_active_function_package(gretlopt opt) { ufunc *u; u = currently_called_function(); if (!u || !u->pkg) return 0; if (opt == OPT_NONE) return u->pkg; if ((opt & 0x4000) != 0 && u->pkg->overrides) return u->pkg; else return 0; }
fnpkg *get_active_function_package(gretlopt opt) { ufunc *u = currently_called_function(); if (u != NULL && u->pkg != NULL) { if (opt == OPT_NONE) { return u->pkg; } else if ((opt & OPT_O) && u->pkg->overrides) { return u->pkg; } } return NULL; }
get_active_function_package
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *get_addon_examples_dir(const char *addon) { char *ret; char *path; char *s; char epath[520]; unsigned long v6; v6 = __readfsqword(0x28u); path = gretl_addon_get_path(addon); ret = 0; if (path) { s = strrslash(path); if (s) *s = 0; gretl_build_path(epath, path, "examples", 0); ...
char *get_addon_examples_dir(const char *addon) { char epath[MAXLEN]; char *s, *path = gretl_addon_get_path(addon); char *ret = NULL; if (path != NULL) { s = strrslash(path); if (s != NULL) { *s = '\0'; } gretl_build_path(epath, path, "examples", NULL); if (g_file_test(epath, G_FILE_T...
get_addon_examples_dir
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char **get_addon_names(int *n) { if (n) *n = n_addons; return addon_names; }
const char **get_addon_names(int *n) { if (n != NULL) { *n = n_addons; } return addon_names; }
get_addon_names
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *get_addon_pdf_path(const char *addon) { size_t v1; char *path; char *ret; gchar *tmp; char *s; ret = 0; if (has_suffix(addon, ".pdf")) { v1 = strlen(addon) - 4; tmp = (gchar *)g_strndup(addon, v1); path = gretl_addon_get_path(tmp); g_free(tmp); } else { path = gretl_addon_get_...
char *get_addon_pdf_path(const char *addon) { char *s, *path = NULL; char *ret = NULL; if (has_suffix(addon, ".pdf")) { gchar *tmp = g_strndup(addon, strlen(addon) - 4); path = gretl_addon_get_path(tmp); g_free(tmp); } else { path = gretl_addon_get_path(addon); } if (path != NULL && has_...
get_addon_pdf_path
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *get_addon_version(const char *fname, char **date) { int v3; int got; int targ; char *version; xmlDocPtr doc; xmlNodePtr node; xmlNodePtr n1; xmlNodePtr n2; unsigned long v11; v11 = __readfsqword(0x28u); version = 0; doc = 0; got = 0; if (gretl_stat(fname, 0)) return 0; gretl_xml...
char *get_addon_version(const char *fname, char **date) { char *version = NULL; xmlDocPtr doc = NULL; xmlNodePtr node, n1, n2; int targ, got = 0; if (gretl_stat(fname, NULL) != 0) { return NULL; } gretl_xml_open_doc_root(fname, "gretl-functions", &doc, &node); if (doc == NULL || node == NULL) { ...
get_addon_version
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int get_all_inner_key_values(joiner *jr, const int *ikeyvars, jr_matcher *matcher) { int v3; int v5; keynum v6; int *v7; int err; int y; int m; int d; int i; int j; int n; guint32 ed; double dk2; keynum k1_0; keynum k2_0; DATASET *dset; double dk1; char o...
static int get_all_inner_key_values(joiner *jr, const int *ikeyvars, jr_matcher *matcher) { DATASET *dset = jr->l_dset; int i, j, n = sample_size(dset); int err; err = jr_matcher_init(matcher, n, jr->n_keys); if (err) { return err; } for (i = dset->t1, j = 0; i <=...
get_all_inner_key_values
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char **get_all_option_strings(int *pn) { int n; int i; char **optstrs[3]; optstrs[1] = (char **)__readfsqword(0x28u); n = 0; for (i = 0; gretl_opts[i].ci; ++i) ++n; optstrs[0] = strings_array_new(n); if (optstrs[0]) { for (i = 0; i < n; ++i) { optstrs[0][i] = gretl_strdup(gretl_opts[i].lo...
char **get_all_option_strings(int *pn) { char **optstrs; int i, n = 0; for (i = 0; gretl_opts[i].ci != 0; i++) { n++; } optstrs = strings_array_new(n); if (optstrs != NULL) { for (i = 0; i < n; i++) { optstrs[i] = gretl_strdup(gretl_opts[i].longopt); if (optstrs[i] == NULL) { ...
get_all_option_strings
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
equation_system *get_anon_system_at_depth(int fd) { GList *tmp; for (tmp = sysstack; tmp; tmp = tmp->next) { if (fd == *((_DWORD *)tmp->data + 3)) return (equation_system *)tmp->data; } return 0; }
static equation_system *get_anon_system_at_depth(int fd) { equation_system *sys; GList *tmp = sysstack; while (tmp != NULL) { sys = tmp->data; if (sys->fd == fd) { return sys; } tmp = tmp->next; } return NULL; }
get_anon_system_at_depth
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
equation_system *get_anonymous_equation_system() { int fd; fd = gretl_function_depth(); return get_anon_system_at_depth(fd); }
equation_system *get_anonymous_equation_system(void) { int fd = gretl_function_depth(); return get_anon_system_at_depth(fd); }
get_anonymous_equation_system
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int get_ar_data(const MODEL *pmod, double **pb, double **pse, int *pk) { int i; int ia; int k; double *b; double *se; if (!pmod->arinfo || !pmod->arinfo->arlist || !pmod->arinfo->rho || !pmod->arinfo->sderr) return 2; k = *pmod->arinfo->arlist; b = (double *)malloc(8LL * (pmod->ncoeff + k)); ...
static int get_ar_data(const MODEL *pmod, double **pb, double **pse, int *pk) { double *b, *se; int i, k, err = 0; if (pmod->arinfo == NULL || pmod->arinfo->arlist == NULL || pmod->arinfo->rho == NULL || pmod->arinfo->sderr == NULL) { return E_DATA; } k = pmod->arinfo->arlist[0]; b = malloc((pm...
get_ar_data
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int get_arch_data(const MODEL *pmod, double **pb, double **pse, int *pk) { int err; int i; int ia; int order; int k; double *ab; double *ase; double *b; double *se; ab = (double *)gretl_model_get_data(pmod, "arch_coeff"); ase = (double *)gretl_model_get_data(pmod, "arch_sderr"); order = gretl_m...
static int get_arch_data(const MODEL *pmod, double **pb, double **pse, int *pk) { double *ab = gretl_model_get_data(pmod, "arch_coeff"); double *ase = gretl_model_get_data(pmod, "arch_sderr"); int order = gretl_model_get_int(pmod, "arch_order"); double *b, *se; int err = 0; if (ab ...
get_arch_data
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void get_args(NODE *t, parser *p, int f, int np, int opt, int *next) { int v6; int flags; int v8; NODE *v9; char v10; char cexp; int i; NODE *child; const int *callargs; cexp = 0; i = 0; if (p->sym == 43) { if (f == 587) p->flags |= 0x40000u; callargs = get_callargs(f); if (!c...
static void get_args(NODE *t, parser *p, int f, int np, int opt, int *next) { NODE *child; const int *callargs; char cexp = 0; int i = 0; #if SDEBUG fprintf(stderr, "get_args: f=%s, np=%d, ch='%c', point='%s'\n", getsymb(f), np, p->ch, p->point); #endif if (p->sym != G_LPR) { expected_symbol...
get_args
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_vector *get_arma_yvec(const MODEL *pmod, const DATASET *dset, int *err) { int v4; int i; int ia; int j; int t; int nx; int k; int xdiff; int yno; int T; int t1; int d; int D; int s; gretl_matrix *y; const double *beta; double yt; double xti; int *delta; int *xlist; y = 0...
static gretl_vector *get_arma_yvec(const MODEL *pmod, const DATASET *dset, int *err) { gretl_vector *y = NULL; const double *beta = NULL; double yt, xti; int *xlist = NULL; int *delta = NULL; int yno = gretl_model_get_depvar(pmod); int T = pmod->nobs; int i, j, t, t1 =...
get_arma_yvec
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_array *get_array_by_name(const char *name) { gretl_array *a; user_var *u; a = 0; if (name) { if (*name) { u = get_user_var_of_type_by_name(name, GRETL_TYPE_ARRAY); if (u) return (gretl_array *)user_var_get_value(u); } } return a; }
gretl_array *get_array_by_name(const char *name) { gretl_array *a = NULL; if (name != NULL && *name != '\0') { user_var *u = get_user_var_of_type_by_name(name, GRETL_TYPE_ARRAY); if (u != NULL) { a = user_var_get_value(u); } } return a; }
get_array_by_name
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void get_assertion(NODE *t, parser *p) { long v2; int next; int n; char *s; char *str; unsigned long v7; v7 = __readfsqword(0x28u); s = strrchr(p->point, 41); n = (_DWORD)s - (unsigned long)p->point + 1; next = 0; str = gretl_strndup(p->point - 1, n); get_args(t, p, 522, 1, 0, &next); if (!p-...
static void get_assertion(NODE *t, parser *p) { char *str, *s = strrchr(p->point, ')'); int n = s - p->point + 1; int next = 0; str = gretl_strndup(p->point - 1, n); get_args(t, p, F_ASSERT, 1, 0, &next); if (!p->err) { str = g_strchomp(g_strchug(str)); t->R = newstr(str); } }
get_assertion
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *get_aux_node(parser *p, int t, int n, int flags) { NODE *ret; ret = p->aux; if (ret && (ret->flags & 8) != 0) ret = 0; if (ret) { if ((p->flags & 2) != 0) { if (t == ret->t) { if ((ret->flags & 2) != 0 && (p->flags & 0x400000) == 0) clear_tmp_node_data(ret, p); } els...
static NODE *get_aux_node(parser *p, int t, int n, int flags) { NODE *ret = p->aux; #if EDEBUG fprintf(stderr, "get_aux_node: t=%s, tmp=%d, starting=%d, " "p->aux=%p\n", getsymb(t), (flags & TMP_NODE) ? 1 : 0, starting(p) ? 1 : 0, (void *)p->aux); #endif if (is_proxy_node...
get_aux_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int get_bkbp_k(const DATASET *dset) { switch (dset->pd) { case 1: return 3; case 4: return 12; case 0xC: return 36; } return 3; }
int get_bkbp_k(const DATASET *dset) { if (dset->pd == 1) { return 3; } else if (dset->pd == 4) { return 12; } else if (dset->pd == 12) { return 36; } else { return 3; } }
get_bkbp_k
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void get_bkbp_periods(const DATASET *dset, int *l, int *u) { int v3; int v4; if (dset->pd == 4) { v3 = 6; } else if (dset->pd == 12) { v3 = 18; } else { v3 = 2; } *l = v3; if (dset->pd == 4) { v4 = 32; } else if (dset->pd == 12) { v4 = 96; } else { v4 = 8; } *u = v4; }
void get_bkbp_periods(const DATASET *dset, int *l, int *u) { *l = (dset->pd == 4) ? 6 : (dset->pd == 12) ? 18 : 2; *u = (dset->pd == 4) ? 32 : (dset->pd == 12) ? 96 : 8; }
get_bkbp_periods
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int get_blas_mnk_min() { return blas_mnk_min; }
int get_blas_mnk_min(void) { return blas_mnk_min; }
get_blas_mnk_min
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void get_box_y_range(PLOTGROUP *grp, double gyrange, double *ymin, double *ymax) { if (grp->gmin < 0.0 || grp->gmin >= 0.05 || grp->gmax > 1.0 || grp->gmax <= 0.95) { *ymin = grp->gmin - 0.04 * gyrange; *ymax = 0.04 * gyrange + grp->gmax; } else { *ymin = 0.0; *ymax = 1.0;...
static void get_box_y_range(PLOTGROUP *grp, double gyrange, double *ymin, double *ymax) { if (grp->gmin >= 0 && grp->gmin < 0.05 && grp->gmax <= 1 && grp->gmax > 0.95) { *ymin = 0.0; *ymax = 1.0; } else { *ymin = grp->gmin - 0.04 * gyrange; *ymax = grp->gmax + 0.04...
get_box_y_range
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretlRGB get_boxcolor() { return user_extra_color[0]; }
gretlRGB get_boxcolor(void) { return user_extra_color[0]; }
get_boxcolor
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int *get_break_list(const MODEL *pmod, int ci, int *err) { int i; int *list; const char *lname; lname = get_optval_string(ci, OPT_L); list = 0; if (lname) list = get_list_by_name(lname); else *err = 2; if (list) { if (*list) { for (i = 1; i <= *list && !*err; ++i) { if (in_gre...
static int *get_break_list(const MODEL *pmod, int ci, int *err) { const char *lname = get_optval_string(ci, OPT_L); int *list = NULL; if (lname == NULL) { *err = E_DATA; } else { list = get_list_by_name(lname); } if (list != NULL) { if (list[0] == 0) { *err = E_DATA; } else { i...
get_break_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *get_built_in_string_by_name(const char *name) { int i; for (i = 0;; ++i) { if (i >= 12) return 0; if (!strcmp(name, built_ins[i].name)) break; } if (built_ins[i].s) return built_ins[i].s; else return (char *)&byte_33E93F; }
char *get_built_in_string_by_name(const char *name) { int i, n = sizeof built_ins / sizeof built_ins[0]; for (i = 0; i < n; i++) { if (!strcmp(name, built_ins[i].name)) { char *s = built_ins[i].s; return s != NULL ? s : ""; } } return NULL; }
get_built_in_string_by_name
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *get_bundle_array(NODE *n, int f, parser *p) { NODE *ret; gretl_array *(*jfunc)(gretl_bundle *, int *); ret = get_aux_node(p, 59, 0, 2); if (ret) { if (f == 403) { ret->v.str = (char *)gretl_bundle_get_keys(n->v.b, &p->err); } else { jfunc = (gretl_array * (*)(gretl_bundle *, int *)) ...
static NODE *get_bundle_array(NODE *n, int f, parser *p) { NODE *ret = aux_array_node(p); if (ret != NULL) { if (f == F_GETKEYS) { ret->v.a = gretl_bundle_get_keys(n->v.b, &p->err); } else { gretl_array *(*jfunc)(gretl_bundle *, int *); jfunc = get_plugin_function("json_bundle_get_termi...
get_bundle_array
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_bundle *get_bundle_by_name(const char *name) { gretl_bundle *b; user_var *u; b = 0; if (name) { if (*name) { u = get_user_var_of_type_by_name(name, GRETL_TYPE_BUNDLE); if (u) return (gretl_bundle *)user_var_get_value(u); } } return b; }
gretl_bundle *get_bundle_by_name(const char *name) { gretl_bundle *b = NULL; if (name != NULL && *name != '\0') { user_var *u = get_user_var_of_type_by_name(name, GRETL_TYPE_BUNDLE); if (u != NULL) { b = user_var_get_value(u); } } return b; }
get_bundle_by_name
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *get_bundle_member(NODE *l, NODE *r, parser *p) { char *v4; char *v5; GretlType type; int size; int t; void *val; NODE *ret; char *key; const double *x; double *dp; int *ip_0; unsigned long v16; v16 = __readfsqword(0x28u); key = r->v.str; size = 0; val = 0; ret = 0; if ((p->fla...
static NODE *get_bundle_member(NODE *l, NODE *r, parser *p) { char *key = r->v.str; GretlType type; int size = 0; void *val = NULL; NODE *ret = NULL; #if EDEBUG fprintf(stderr, "get_bundle_member: %s[\"%s\"]\n", l->vname, key); #endif if (p->flags & P_OBJQRY) { val = gretl_bundle_get_data(l->v.b, ke...
get_bundle_member
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *get_bundle_member_name(parser *p, int dollarize) { int i; int n; NODE *ret; ret = 0; if (p->ch == 91) { parser_getc(p); if (!p->err) { lex(p); ret = expr(p); } if (!p->err) { if (p->sym == 46) lex(p); else unmatched_symbol_error(91, p); } } ...
static NODE *get_bundle_member_name(parser *p, int dollarize) { NODE *ret = NULL; #if SDEBUG fprintf(stderr, "bundle_member_name: sym='%s', ch='%c', point='%s'\n", getsymb(p->sym), p->ch, p->point); #endif if (p->ch == '[') { parser_getc(p); if (!p->err) { lex(p); ret = expr(p); ...
get_bundle_member_name
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void get_bundle_pairs(NODE *t, parser *p, int *next) { int v3; int v4; char *v5; int j; int i; int n; NODE *childa; NODE *child; const char *src; i = 0; while (p->ch && !p->err) { while (p->ch == 32) parser_getc(p); src = p->point - 1; n = gretl_namechar_spn(src); if (!n) { ...
static void get_bundle_pairs(NODE *t, parser *p, int *next) { NODE *child; const char *src; int n, j, i = 0; #if SDEBUG fprintf(stderr, "get_bundle_pairs: ch='%c', point='%s'\n", p->ch, p->point); #endif while (p->ch && !p->err) { while (p->ch == ' ') parser_getc(p); src = p->point - 1; n...
get_bundle_pairs
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const int *get_callargs(int f) { const char *v2; int i; for (i = 0; i < 9; ++i) { if (f == fncall_argrec[i].f) return fncall_argrec[i].vec; } if (f == 531 || f == 605 || f == 571 || f == 552 || f == 619 || f == 566 || f == 567 || f == 572 || f == 582) { v2 = getsymb(f); fprintf(stderr...
static const int *get_callargs(int f) { int i, n = G_N_ELEMENTS(fncall_argrec); for (i = 0; i < n; i++) { if (f == fncall_argrec[i].f) { return fncall_argrec[i].vec; } } if (fncall_func(f)) { fprintf(stderr, "ERROR: function %s has an 'fncall' arg" " but no argrecord...
get_callargs
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int get_cephes_errno() { int ret; ret = cephes_errno; cephes_errno = 0; return ret; }
int get_cephes_errno(void) { int ret = cephes_errno; cephes_errno = 0; return ret; }
get_cephes_errno
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int get_cephes_sgngam() { return cephes_sgngam; }
int get_cephes_sgngam(void) { return cephes_sgngam; }
get_cephes_sgngam
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
LOOPSET *get_child_loop_by_line(LOOPSET *loop, int lno) { int i; for (i = 0; i < loop->n_children; ++i) { if (lno == loop->children[i]->parent_line) return loop->children[i]; } return 0; }
static LOOPSET *get_child_loop_by_line(LOOPSET *loop, int lno) { int i; for (i = 0; i < loop->n_children; i++) { if (loop->children[i]->parent_line == lno) { return loop->children[i]; } } return NULL; }
get_child_loop_by_line
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int get_chow_dummy(const char *s, const DATASET *dset, int *err) { int v; v = current_series_index(dset, s); if (v >= 0) { if (!gretl_isdummy(dset->t1, dset->t2, dset->Z[v])) *err = 2; } else { *err = 14; } return v; }
static int get_chow_dummy(const char *s, const DATASET *dset, int *err) { int v = current_series_index(dset, s); if (v < 0) { *err = E_UNKVAR; } else if (!gretl_isdummy(dset->t1, dset->t2, dset->Z[v])) { *err = E_DATA; } return v; }
get_chow_dummy
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int get_col_and_lag(int vnum, const equation_system *sys, int *col, int *lag) { int err; int vp; int pos; err = 0; vp = get_predet_parent(sys, vnum, lag); pos = in_gretl_list(sys->ylist, vp); if (pos <= 0) { *col = 0; return 1; } else { *col = pos - 1; } return err; }
static int get_col_and_lag(int vnum, const equation_system *sys, int *col, int *lag) { int vp, pos, err = 0; vp = get_predet_parent(sys, vnum, lag); pos = in_gretl_list(sys->ylist, vp); if (pos > 0) { *col = pos - 1; } else { *col = 0; err = 1; } return err; }
get_col_and_lag
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *get_col_heading(const char **S, int j, int slopes, int intervals) { if (j == 3 && slopes) return gettext(S[4]); if (intervals && (j == 1 || j == 2)) return gettext(S[j + 4]); return gettext(S[j]); }
static const char *get_col_heading(const char **S, int j, int slopes, int intervals) { if (j == 3 && slopes) { return _(S[j + 1]); } else if (intervals && (j == 1 || j == 2)) { return _(S[j + 4]); } else { return _(S[j]); } }
get_col_heading
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const double *get_colvec_as_series(NODE *n, int f, parser *p) { char *m; if (n->t == 57) { m = n->v.str; if (*(_QWORD *)m == ((unsigned int)p->dset->n | 0x100000000LL)) return (const double *)*((_QWORD *)m + 1); } node_type_error(f, 1, 55, n, p); return 0; }
const double *get_colvec_as_series(NODE *n, int f, parser *p) { if (n->t != MAT) { node_type_error(f, 1, SERIES, n, p); return NULL; } else { const gretl_matrix *m = n->v.m; if (m->rows == p->dset->n && m->cols == 1) { return m->val; } else { node_type_error(f, 1, SERIES, n, p); ...
get_colvec_as_series
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int get_command_index(ExecState *s, int cmode) { size_t v3; int err; const char *s_0; CMD *cmd; char *line; cmd = s->cmd; line = s->line; gretl_cmd_clear(cmd); if ((cmd->context == 42 || cmd->context == 82) && !ends_foreign_block(line)) { cmd->opt = OPT_NONE; cmd->ci = cmd->context; retur...
int get_command_index(ExecState *s, int cmode) { CMD *cmd = s->cmd; char *line = s->line; int err = 0; gretl_cmd_clear(cmd); #if CMD_DEBUG fprintf(stderr, "get_command_index2: line='%s'\n", line); #endif if ((cmd->context == FOREIGN || cmd->context == MPI) && !ends_foreign_block(line)) { cmd->o...
get_command_index
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *get_compact_method_and_advance(const char *s, CompactMethod *method) { int v2; int i; char *p; const char *pa; char *pb; char *pc; char comp[8]; unsigned long v10; v10 = __readfsqword(0x28u); *method = COMPACT_NONE; p = strstr(s, "(compact");...
static const char *get_compact_method_and_advance(const char *s, CompactMethod *method) { const char *p; *method = COMPACT_NONE; if ((p = strstr(s, "(compact")) != NULL) { char comp[8]; int i = 0; p += 8; while (*p && *p != ')' && i < 7) { ...
get_compact_method_and_advance
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double *get_compacted_xt(const double *src, int n, CompactMethod method, int compfac, int skip) { int t; int i; int p; int st; double *x; x = (double *)malloc(8LL * n); if (!x) return 0; for (t = 0; t < n; ++t) { p = (t + 1) * compfac; x[t] = 0.0; switch (method...
static double *get_compacted_xt(const double *src, int n, CompactMethod method, int compfac, int skip) { int p, t; double *x; x = malloc(n * sizeof *x); if (x == NULL) { return NULL; } for (t = 0; t < n; t++) { p = (t + 1) * compfac; x[t] = 0.0; if (method =...
get_compacted_xt
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void *get_complex_counterpart(void *func) { if (func == &acos) return &cacos; if (func == &asin) return &casin; if (func == &atan) return &catan; if (func == &cos) return &ccos; if (func == &sin) return &csin; if (func == &tan) return &ctan; if (func == &acosh) return &cacosh; ...
static void *get_complex_counterpart(void *func) { if (func == acos) return cacos; if (func == asin) return casin; if (func == atan) return catan; if (func == cos) return ccos; if (func == sin) return csin; if (func == tan) return ctan; if (func == acosh) return cacosh; if (f...
get_complex_counterpart
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int get_compression_option(int ci) { int level; stored_opt *so; so = matching_stored_opt(ci, OPT_Z); if (!so || !so->val) return 1; level = atoi(so->val); if (level < 0) return 0; if (level > 9) return 9; return level; }
int get_compression_option(int ci) { stored_opt *so = matching_stored_opt(ci, OPT_Z); int level = 0; if (so == NULL || so->val == NULL) { level = 1; } else { level = atoi(so->val); if (level < 0) { level = 0; } else if (level > 9) { level = 9; } } return level; }
get_compression_option
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double get_const_by_id(int id) { switch (id) { case 1: return 3.141592653589793; case 6: return 2.220446049250313e-16; case 3: return INFINITY; case 4: return NAN; case 5: return 0.0; case 7: return 0.0; case 8: return (double)mpi_rank; case 9: return (double)mpi_size; ...
static double get_const_by_id(int id) { if (id == CONST_PI) { return M_PI; } else if (id == CONST_EPS) { return pow(2.0, -52); } else if (id == CONST_INF) { #ifdef INFINITY return INFINITY; #else return 1.0 / 0.0; #endif } else if (id == CONST_NAN) { #ifdef NAN return NAN; #else return ...
get_const_by_id
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double get_const_by_name(const char *name, int *err) { int id; id = const_lookup(name); if (id > 0) return get_const_by_id(id); if (err) *err = 2; return NAN; }
double get_const_by_name(const char *name, int *err) { int id = const_lookup(name); if (id > 0) { return get_const_by_id(id); } else { if (err != NULL) { *err = E_DATA; } return NADBL; } }
get_const_by_name
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *get_corrgm_matrix(NODE *l, NODE *m, NODE *r, parser *p) { int xtype; _BOOL4 xcf; int k; int *list; xcf = r->t != 85; list = 0; k = node_get_int(m, p); if (p->err) return 0; if (l->t == 56) list = l->v.ivec; if (r->t != 57) goto LABEL_10; if (*((_DWORD *)r->v.str + 1) != ...
static gretl_matrix *get_corrgm_matrix(NODE *l, NODE *m, NODE *r, parser *p) { int xcf = (r->t != EMPTY); int *list = NULL; gretl_matrix *A = NULL; int k; k = node_get_int(m, p); if (p->err) { return NULL; } if (l->t == LIST) { list = l->v.ivec; } if (r->t == MAT) { if (r->v.m->cols !...
get_corrgm_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *get_csv_descrip(csvdata *c, gzFile fp) { size_t v3; char *desc; char *line; size_t llen; char *tmp; line = c->line; desc = 0; while (csv_fgets(c, fp)) { tailstrip(line); llen = strlen(line); if (desc) { v3 = llen + strlen(desc) + 4; tmp = (char *)realloc(desc, v3); i...
static char *get_csv_descrip(csvdata *c, gzFile fp) { char *line = c->line; char *desc = NULL; size_t llen, totlen; while (csv_fgets(c, fp)) { tailstrip(line); llen = strlen(line); if (desc == NULL) { totlen = llen + 4; desc = malloc(totlen); if (desc == NULL) { return NUL...
get_csv_descrip
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *get_csv_na_read_string() { if (check_for_state()) return "default"; else return state->csv_read_na; }
const char *get_csv_na_read_string(void) { if (check_for_state()) { return "default"; } else { return state->csv_read_na; } }
get_csv_na_read_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *get_csv_na_write_string() { if (check_for_state()) return "NA"; else return state->csv_write_na; }
const char *get_csv_na_write_string(void) { if (check_for_state()) { return "NA"; } else { return state->csv_write_na; } }
get_csv_na_write_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_bundle *get_current_map(const DATASET *dset, const int *list, int *err) { int v3; const char *string_for_obs; int ntarg; int fmax; int fmaxa; int i; int j; int ja; int dsi; int fidx; int nobs; int skip; gretl_bundle *jb; gretl_array *features; const char *fname; gretl_bundle *fi; ...
gretl_bundle *get_current_map(const DATASET *dset, const int *list, int *err) { const char *sj, *id, *fname; gretl_bundle *fi, *pp, *jb = NULL; gretl_array *features = NULL; int ntarg, fmax = 0; int i, j, dsi, fidx; double xj; fname = dataset_get_mapfile(dset); if (fname == NULL) { gretl_errmsg_se...
get_current_map
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void get_daily_compact_params(CompactMethod default_method, int *any_eop, int *any_sop, int *all_same, const DATASET *dset) { int i; int n_not_eop; int n_not_sop; CompactMethod method; n_not_eop = 0; n_not_sop = 0; *all_same = 1; *any_eop = de...
static void get_daily_compact_params(CompactMethod default_method, int *any_eop, int *any_sop, int *all_same, const DATASET *dset) { int i, n_not_eop = 0, n_not_sop = 0; *all_same = 1; *any_eop = (default_method == COMPACT_EOP) ? 1 : 0; ...
get_daily_compact_params
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int get_daily_offset(const DATASET *dset, int y, int m, int d, int skip, int any_eop) { if (skip || any_eop && !day_starts_month(d, m, y, dset->pd, 0)) return days_in_month_after(y, m, d, dset->pd) + 1; else return days_in_month_before(y, m, d, dset->pd); }
static int get_daily_offset(const DATASET *dset, int y, int m, int d, int skip, int any_eop) { int ret = 0; if (skip) { ret = days_in_month_after(y, m, d, dset->pd) + 1; } else if (any_eop && !day_starts_month(d, m, y, dset->pd, NULL)) { ret = days_in_month_after(y, m, d, dse...
get_daily_offset
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int get_daily_skip(const DATASET *dset, int t) { int v2; int dd; v2 = calendar_obs_number(dset->S[t], dset); dd = v2 - calendar_obs_number(dset->S[t - 1], dset); if (!dd) fprintf(stderr, "get_daily_skip: S[%d] = '%s', S[%d] = '%s'\n", t, dset->S[t], t - 1, dset->S[t - 1]); return dd - 1; }
static int get_daily_skip(const DATASET *dset, int t) { int dd = calendar_obs_number(dset->S[t], dset) - calendar_obs_number(dset->S[t - 1], dset); if (dd == 0) { fprintf(stderr, "get_daily_skip: S[%d] = '%s', S[%d] = '%s'\n", t, dset->S[t], t - 1, dset->S[t - 1]); } return dd - 1; ...
get_daily_skip
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void get_data_X(gretl_matrix *X, const MODEL *pmod, const DATASET *dset) { double v3; int v4; int v5; int i; int ia; int t; int s; int wt; int T; int vi; wt = pmod->nwt; s = 0; if (wt || pmod->missmask) { for (ia = 2; ia <= *pmod->list; ++ia) { vi = pmod->list[ia]; for (t = pm...
static void get_data_X(gretl_matrix *X, const MODEL *pmod, const DATASET *dset) { int wt = pmod->nwt; int i, t, vi, s = 0; if (!wt && pmod->missmask == NULL) { int T = pmod->t2 - pmod->t1 + 1; size_t sz = T * sizeof(double); for (i = 2; i <= pmod->list[0]; i++) { vi = p...
get_data_X
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char get_data_export_decpoint() { char c; c = export_decpoint[0]; export_decpoint[0] = 46; return c; }
char get_data_export_decpoint(void) { char c = export_decpoint; export_decpoint = '.'; return c; }
get_data_export_decpoint
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char get_data_export_delimiter() { return data_delim[0]; }
char get_data_export_delimiter(void) { return data_delim; }
get_data_export_delimiter
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0