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 |
|---|---|---|---|---|---|---|---|
void *get_plugin_handle_by_index(int i) {
const char *v1;
void *handle;
char pluginpath[520];
unsigned long v5;
v5 = __readfsqword(0x28u);
handle = plugins[i].handle;
if (!handle) {
v1 = gretl_plugin_path();
strcpy(pluginpath, v1);
strcat(pluginpath, plugins[i].pname);
*(_DWORD *)&pluginp... | static void *get_plugin_handle_by_index(int i) {
void *handle = plugins[i].handle;
if (handle == NULL) {
char pluginpath[MAXLEN];
strcpy(pluginpath, gretl_plugin_path());
strcat(pluginpath, plugins[i].pname);
strcat(pluginpath, PLUGIN_EXT);
handle = gretl_dlopen(pluginpath, 0);
plugins[... | get_plugin_handle_by_index | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void *get_plugin_handle_by_name(const char *name) {
const char *v1;
char pluginpath[520];
unsigned long v4;
v4 = __readfsqword(0x28u);
v1 = gretl_plugin_path();
strcpy(pluginpath, v1);
strcat(pluginpath, name);
*(_DWORD *)&pluginpath[strlen(pluginpath)] = 7303982;
return gretl_dlopen(pluginpath, 0);
... | static void *get_plugin_handle_by_name(const char *name) {
char pluginpath[MAXLEN];
strcpy(pluginpath, gretl_plugin_path());
strcat(pluginpath, name);
strcat(pluginpath, PLUGIN_EXT);
return gretl_dlopen(pluginpath, 0);
} | get_plugin_handle_by_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int *get_pmax_array(const int *list, const DATASET *dset) {
int v2;
int i;
int T;
int *pmax;
pmax = (int *)malloc(4LL * *list);
if (dset)
v2 = dset->t2 - dset->t1 + 1;
else
v2 = 0;
T = v2;
if (!pmax)
return 0;
for (i = 1; i <= *list; ++i)
pmax[i - 1] = get_signif(&dset->Z[list[i]][d... | static int *get_pmax_array(const int *list, const DATASET *dset) {
int *pmax = malloc(list[0] * sizeof *pmax);
int i, vi, T = sample_size(dset);
if (pmax == NULL) {
return NULL;
}
for (i = 1; i <= list[0]; i++) {
vi = list[i];
pmax[i - 1] = get_signif(dset->Z[vi] + dset->t1, T);
}
return pm... | get_pmax_array | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *get_png_line_for_plotspec(const GPT_SPEC *spec) {
real_png_term_line(term_line_1, spec->code, spec->flags, spec->fontstr,
spec->scale);
return term_line_1;
} | const char *get_png_line_for_plotspec(const GPT_SPEC *spec) {
static char term_line[TERMLEN];
real_png_term_line(term_line, spec->code, spec->flags, spec->fontstr,
spec->scale);
return term_line;
} | get_png_line_for_plotspec | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_precision(const double *x, int n, int placemax) {
char *v4;
int t;
int ta;
int p;
int pmax;
int len;
int n_ok;
char *s;
double z;
char numstr[72];
unsigned long v15;
v15 = __readfsqword(0x28u);
pmax = 0;
n_ok = 0;
for (t = 0; t < n; ++t) {
if (fabs(x[t]) <= 1.797693134862316e3... | int get_precision(const double *x, int n, int placemax) {
int t, p, pmax = 0;
char *s, numstr[64];
int len, n_ok = 0;
double z;
for (t = 0; t < n; t++) {
if (!na(x[t])) {
z = fabs(x[t]);
if (z > 0 && (z < 1.0e-6 || z > 1.0e+8)) {
return PMAX_NOT_AVAILABLE;
}
n_ok++;
}... | get_precision | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_predet_parent(const equation_system *sys, int v, int *lag) {
int i;
for (i = 0; i < *sys->plist; ++i) {
if (v == sys->pre_vars[i].id) {
*lag = sys->pre_vars[i].lag;
return sys->pre_vars[i].src;
}
}
*lag = 0;
return -1;
} | static int get_predet_parent(const equation_system *sys, int v, int *lag) {
int i;
for (i = 0; i < sys->plist[0]; i++) {
if (v == sys->pre_vars[i].id) {
*lag = sys->pre_vars[i].lag;
return sys->pre_vars[i].src;
}
}
*lag = 0;
return -1;
} | get_predet_parent | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_previous_depth() { return previous_d; } | static int get_previous_depth(void) { return previous_d; } | get_previous_depth | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_print_range(int len, int *start, int *stop) {
int err;
int nf;
int k1_0;
int k2_0;
const char *s;
char **S;
unsigned long v11;
v11 = __readfsqword(0x28u);
s = get_optval_string(100, OPT_R);
err = 0;
if (!s || !*s || !strchr(s, 58))
return 2;
k1_0 = 0;
k2_0 = 0;
nf = 0;
S = gre... | static int get_print_range(int len, int *start, int *stop) {
const char *s = get_optval_string(PRINT, OPT_R);
int err = 0;
if (s == NULL || *s == '\0' || strchr(s, ':') == NULL) {
err = E_DATA;
} else {
int k1 = 0, k2 = 0, nf = 0;
char **S = gretl_string_split(s, &nf, ":");
if (S == NULL || nf... | get_print_range | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *get_printf_format_chunk(const char *s, char *conv, int *len, int *wstar,
int *pstar, int *err) {
int n;
int na;
int nb;
char *chunk;
const char *p;
const char *pa;
const char *pb;
chunk = 0;
p = s + 1;
if (s[1] == 35)
p = s + 2;
if (*p == 48)
++p;
if ... | static char *get_printf_format_chunk(const char *s, char *conv, int *len,
int *wstar, int *pstar, int *err) {
const char *cnvchars = "eEfgGduxs";
const char *numchars = "0123456789";
char *chunk = NULL;
const char *p = s;
int n;
p++;
if (*p == '#') {
p++;
}
... | get_printf_format_chunk | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretlopt get_printmodel_opt(const MODEL *pmod, gretlopt opt) {
gretlopt ret;
ret = OPT_NONE;
if ((opt & 0x10000) != 0)
return OPT_Q;
if (pmod->ci == 78 && (opt & 1) != 0 && (opt & 0x200000) == 0)
return OPT_Q;
if ((opt & 0x4000) != 0)
ret = OPT_O;
if ((opt & 0x40000) != 0)
ret |= 0x40000u;
... | gretlopt get_printmodel_opt(const MODEL *pmod, gretlopt opt) {
gretlopt ret = OPT_NONE;
if (opt & OPT_Q) {
return OPT_Q;
} else if (pmod->ci == MLE && (opt & OPT_A) && !(opt & OPT_V)) {
return OPT_Q;
}
if (opt & OPT_O) {
ret |= OPT_O;
}
if (opt & OPT_S) {
ret |= OPT_S;
}
if (pmod->c... | get_printmodel_opt | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *get_quoted_arg(const char *s, int *err) {
char *sa;
int n;
int matched;
const char *p;
char *ret;
n = 0;
matched = 0;
ret = 0;
sa = strchr(s, 34) + 1;
for (p = sa; *p; ++p) {
if (*p == 34) {
matched = 1;
break;
}
++n;
}
if (matched) {
ret = gretl_strndup(sa, n)... | static char *get_quoted_arg(const char *s, int *err) {
const char *p;
int n = 0, matched = 0;
char *ret = NULL;
p = s = strchr(s, '"') + 1;
while (*p) {
if (*p == '"') {
matched = 1;
break;
} else {
n++;
}
p++;
}
if (!matched) {
*err = E_PARSE;
} else {
ret =... | get_quoted_arg | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *get_quoted_string(parser *p, int prevsym) {
char *v2;
int n;
char *s;
gchar *gs_0;
s = 0;
if (prevsym != 484 && parsing_query ||
(n = double_quote_position(p->point), n < 0))
n = gretl_charpos(34, p->point);
if (n < 0) {
parser_print_input(p);
v2 = gettext("Unmatched '%c'\n");
... | static char *get_quoted_string(parser *p, int prevsym) {
char *s = NULL;
int n;
#if 0
fprintf(stderr, "get_quoted_string: sym = '%s', prevsym '%s'\n",
getsymb(p->sym), getsymb(prevsym));
#endif
if (prevsym != F_SPRINTF && parsing_query) {
n = gretl_charpos('"', p->point);
} else {
n = doubl... | get_quoted_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_rats_db_data(const char *fname, SERIESINFO *sinfo, double **Z) {
int err;
FILE *fp;
fp = gretl_fopen(fname, "rb");
if (!fp)
return 11;
err = get_rats_series(sinfo->offset, sinfo, fp, Z);
fclose(fp);
return err;
} | int get_rats_db_data(const char *fname, SERIESINFO *sinfo, double **Z) {
FILE *fp;
int err = 0;
fp = gretl_fopen(fname, "rb");
if (fp == NULL) {
err = E_FOPEN;
} else {
err = get_rats_series(sinfo->offset, sinfo, fp, Z);
fclose(fp);
}
return err;
} | get_rats_db_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_rats_series(int offset, SERIESINFO *sinfo, FILE *fp, double **Z) {
int v4;
int i;
int t;
int T;
int err;
int v;
RATSData rdata;
unsigned long v14;
v14 = __readfsqword(0x28u);
v = sinfo->v;
err = 0;
fprintf(stderr, "get_rats_series: starting from offset %d\n", offset);
if (sinfo->t2 <=... | static int get_rats_series(int offset, SERIESINFO *sinfo, FILE *fp,
double **Z) {
RATSData rdata;
double x;
int v = sinfo->v;
int i, t, T;
int miss = 0;
int err = 0;
fprintf(stderr, "get_rats_series: starting from offset %d\n", offset);
if (sinfo->t2 > 0) {
T = sinfo->t2... | get_rats_series | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_rats_series_info(const char *series_name, SERIESINFO *sinfo) {
char *v3;
int err;
long forward;
FILE *fp;
unsigned long v7;
v7 = __readfsqword(0x28u);
forward = 0;
err = 0;
gretl_error_clear();
fp = gretl_fopen(saved_db_name, "rb");
if (!fp)
return 11;
fseek(fp, 30, 0);
if (fread(... | static int get_rats_series_info(const char *series_name, SERIESINFO *sinfo) {
FILE *fp;
long forward = 0;
int err = 0;
gretl_error_clear();
fp = gretl_fopen(saved_db_name, "rb");
if (fp == NULL) {
return E_FOPEN;
}
#if DB_DEBUG
fprintf(stderr, "Opened %s\n", saved_db_name);
#endif
fseek(fp, 30... | get_rats_series_info | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_real_list_length(const int *list) {
int i;
int len;
len = *list;
for (i = 1; i <= *list; ++i) {
if (list[i] == -100)
return i - 1;
}
return len;
} | static int get_real_list_length(const int *list) {
int i, len = list[0];
for (i = 1; i <= list[0]; i++) {
if (list[i] == LISTSEP) {
len = i - 1;
break;
}
}
return len;
} | get_real_list_length | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double get_real_lmax(const double *y, const DATASET *dset, double user_lmax) {
char *v4;
double ymax;
double lmax[2];
*(_QWORD *)&lmax[1] = __readfsqword(0x28u);
if (logistic_ymax_lmax(y, dset, &ymax, lmax))
return NAN;
if (fabs(user_lmax) <= 1.797693134862316e308) {
if (ymax < user_lmax) {
l... | static double get_real_lmax(const double *y, const DATASET *dset,
double user_lmax) {
double ymax, lmax;
int err;
err = logistic_ymax_lmax(y, dset, &ymax, &lmax);
if (err) {
return NADBL;
}
if (!na(user_lmax)) {
if (user_lmax <= ymax) {
gretl_errmsg_set(_("Invalid... | get_real_lmax | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_remote_db_data(const char *dbbase, SERIESINFO *sinfo, double **Z) {
int t2;
double v5;
float x;
int t;
int v;
char *getbuf;
size_t offset;
unsigned long v12;
v12 = __readfsqword(0x28u);
getbuf = 0;
v = sinfo->v;
if (retrieve_remote_db_data(dbbase, sinfo->varname, &getbuf, 3)) {
free... | int get_remote_db_data(const char *dbbase, SERIESINFO *sinfo, double **Z) {
char *getbuf = NULL;
int t, t2, err;
int v = sinfo->v;
dbnumber x;
size_t offset;
#if G_BYTE_ORDER == G_BIG_ENDIAN
netfloat nf;
#endif
#if G_BYTE_ORDER == G_BIG_ENDIAN
err = retrieve_remote_db_data(dbbase, sinfo->varname, &getbuf... | get_remote_db_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_resampled(int v, double *rsvec, const DATASET *dset, const int *z) {
int v4;
int v5;
int t;
int ta;
int s;
int sa;
int i;
int n;
int T;
int j;
const double *x;
x = dset->Z[v];
if (dset && dset->structure == 2) {
n = panel_sample_size(dset);
T = dset->pd;
s = dset->t1;
... | static int get_resampled(int v, double *rsvec, const DATASET *dset,
const int *z) {
const double *x = dset->Z[v];
int t, j, s;
if (dataset_is_panel(dset)) {
int n = panel_sample_size(dset);
int i, T = dset->pd;
s = dset->t1;
for (i = 0; i < n; i++) {
j = z[i] * T;
... | get_resampled | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
unsigned int get_resampling_seed() { return resample_seed; } | unsigned int get_resampling_seed(void) { return resample_seed; } | get_resampling_seed | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void get_resids_and_SSR(MODEL *pmod, const DATASET *dset, gretl_matrix *yhat,
int fulln) {
double *v4;
double *v5;
double v6;
double *v7;
int t;
int ta;
int tb;
int i;
int pwe;
int yvar;
double yt;
double yta;
double ytb;
double rho;
double *u;
double wt;
rho =... | static void get_resids_and_SSR(MODEL *pmod, const DATASET *dset,
gretl_matrix *yhat, int fulln) {
double rho = gls_rho(pmod);
int qdiff = (rho != 0.0);
int pwe = (pmod->opt & OPT_P);
int yvar = pmod->list[1];
double *u = pmod->uhat;
double yt;
int t, i = 0;
pmod->ess = 0.... | get_resids_and_SSR | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_restriction_boot_method(int *method) {
char *v1;
int err;
const char *s;
s = get_optval_string(110, OPT_B);
err = 0;
if (s) {
if (!strcmp(s, "pairs")) {
*method = 2;
} else if (!strcmp(s, "wild")) {
*method = 3;
} else if (!strcmp(s, "parametric")) {
*method = 4;
}... | static int get_restriction_boot_method(int *method) {
const char *s = get_optval_string(RESTRICT, OPT_B);
int err = 0;
if (s != NULL) {
if (!strcmp(s, "pairs")) {
*method = BOOT_METHOD_PAIRS;
} else if (!strcmp(s, "wild")) {
*method = BOOT_METHOD_WILD;
} else if (!strcmp(s, "parametric"))... | get_restriction_boot_method | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_restriction_mode(gretlopt opt) {
int mode;
mode = 7;
if ((opt & 0x1004) != 0)
return 1;
if ((opt & 0x20000) != 0)
return 5;
if ((opt & 0x2000) != 0)
return 6;
if ((opt & 0x4000) != 0)
return 4;
if ((opt & 1) != 0)
return 2;
if ((opt & 0x400000) != 0)
return 3;
return m... | int get_restriction_mode(gretlopt opt) {
int mode = SUBSAMPLE_UNKNOWN;
if (opt & (OPT_M | OPT_C)) {
mode = SUBSAMPLE_DROP_MISSING;
} else if (opt & OPT_R) {
mode = SUBSAMPLE_BOOLEAN;
} else if (opt & OPT_N) {
mode = SUBSAMPLE_RANDOM;
} else if (opt & OPT_O) {
mode = SUBSAMPLE_USE_DUMMY;
} e... | get_restriction_mode | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double get_restriction_param(const rrow *r, int k) {
int i;
for (i = 0; i < r->nterms; ++i) {
if (k == r->bnum[i])
return r->mult[i];
}
return 0.0;
} | static double get_restriction_param(const rrow *r, int k) {
int i;
for (i = 0; i < r->nterms; i++) {
if (r->bnum[i] == k) {
return r->mult[i];
}
}
return 0.0;
} | get_restriction_param | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_return_line(ExecState *state) {
if (!return_line)
return 0;
strcpy(state->line, return_line);
g_free(return_line);
return_line = 0;
return 1;
} | static int get_return_line(ExecState *state) {
if (return_line == NULL) {
return 0;
} else {
strcpy(state->line, return_line);
g_free(return_line);
return_line = NULL;
return 1;
}
} | get_return_line | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_sample_limit(const char *s, DATASET *dset, int code) {
char *v3;
char *v4;
int t2;
int i;
int t;
int err;
int ret;
int incr;
unsigned long v13;
v13 = __readfsqword(0x28u);
ret = -1;
err = 0;
if (dset && dset->structure == 2 && got_two_ints(s, &i, &t)) {
if (code || t == 1) {
... | static int get_sample_limit(const char *s, DATASET *dset, int code) {
int ret = -1;
int i, t;
int err = 0;
#if SUBDEBUG
fprintf(stderr, "get_sample_limit: s = '%s'\n", s);
#endif
if (dataset_is_panel(dset) && got_two_ints(s, &i, &t)) {
if (code == SMPL_T1 && t != 1) {
gretl_errmsg_sprintf(_("'%s':... | get_sample_limit | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double get_scalar_value_by_name(const char *name, int *err) {
char *v2;
double ret;
user_var *u;
gretl_matrix *m;
ret = NAN;
if (strchr(name, 46)) {
ret = maybe_get_bundled_scalar(name, err);
} else {
u = get_user_var_by_name(name);
if (u) {
if (u->type == GRETL_TYPE_DOUBLE) {
r... | double get_scalar_value_by_name(const char *name, int *err) {
double ret = NADBL;
user_var *u;
if (strchr(name, '.')) {
ret = maybe_get_bundled_scalar(name, err);
goto bailout;
}
u = get_user_var_by_name(name);
if (u != NULL) {
if (u->type == GRETL_TYPE_DOUBLE) {
ret = *(double *)u->ptr... | get_scalar_value_by_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *get_scanf_format_chunk(const char *s, int *fc, int *len, int *width,
int *supp, bracket_scan *bscan, int *err) {
const char *v8;
int n;
int na;
const char *p;
char *chunk;
const char *cnvchars;
const char *numchars;
unsigned long v18;
v18 = __readfsqword(0x28u);
c... | static char *get_scanf_format_chunk(const char *s, int *fc, int *len,
int *width, int *supp,
struct bracket_scan *bscan, int *err) {
const char *cnvchars = "dfgsmx";
const char *numchars = "0123456789";
char *chunk = NULL;
const char *p = s... | get_scanf_format_chunk | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_selected_import_names(const char *s, int ci, DATASET *dset,
char ***pvnames, int *pnvars) {
int ns;
int err;
char **S;
gretl_array *A;
unsigned long v13;
v13 = __readfsqword(0x28u);
S = 0;
A = 0;
ns = 0;
err = 0;
if (!s)
return 18;
if (strchr(s, 32)) {
... | static int get_selected_import_names(const char *s, int ci, DATASET *dset,
char ***pvnames, int *pnvars) {
char **S = NULL;
gretl_array *A = NULL;
int ns = 0;
int err = 0;
if (s == NULL) {
return E_PARSE;
}
if (strchr(s, ' ') != NULL) {
S = gretl_string_spli... | get_selected_import_names | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int *get_send_data_list(int ci, const DATASET *dset, int *err) {
char *v3;
int i;
int vi;
int *list;
const char *dname;
dname = get_optval_string(ci, OPT_D);
list = 0;
if (dname) {
list = get_list_by_name(dname);
if (list) {
for (i = 1; i <= *list && !*err; ++i) {
if (list[i] < 0 ... | static int *get_send_data_list(int ci, const DATASET *dset, int *err) {
const char *dname = get_optval_string(ci, OPT_D);
static int list1[2] = {1, 0};
int *list = NULL;
if (dname != NULL) {
list = get_list_by_name(dname);
if (list != NULL) {
int i;
for (i = 1; i <= list[0] && !*err; i++) ... | get_send_data_list | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int *get_series_indices(const char **vnames, int nvars, DATASET *dset,
int *n_add, int *any_wild, int *err) {
char *v6;
int i;
int v;
int *ret;
ret = gretl_list_new(nvars);
if (ret) {
for (i = 0; i < nvars && !*err; ++i) {
if (strchr(vnames[i], 42) || strchr(vnames[i], 63)... | static int *get_series_indices(const char **vnames, int nvars, DATASET *dset,
int *n_add, int *any_wild, int *err) {
int *ret = gretl_list_new(nvars);
if (ret == NULL) {
*err = E_ALLOC;
} else {
int i, v;
for (i = 0; i < nvars && !*err; i++) {
if (is_wildstr(vnam... | get_series_indices | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *get_series_name(const DATASET *dset, int i, gchar **altname,
int debug) {
const char *lname;
gchar *showname;
const char *sname;
unsigned long v10;
v10 = __readfsqword(0x28u);
showname = 0;
sname = dset->varname[i];
if (debug)
return sname;
if (!series_is_l... | static const char *get_series_name(const DATASET *dset, int i, gchar **altname,
int debug) {
gchar *showname = NULL;
const char *sname = dset->varname[i];
const char *lname;
const char *ret;
if (debug) {
ret = sname;
} else if (series_is_listarg(dset, i, &lname)) {
... | get_series_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *get_series_stringvals(NODE *l, NODE *r, parser *p) {
char *v3;
int n_strs;
int v;
int sub;
NODE *ret;
char **S;
unsigned long v11;
v11 = __readfsqword(0x28u);
ret = get_aux_node(p, 59, 0, 2);
if (!p->err) {
v = l->vnum;
if (is_string_valued(p->dset, v)) {
sub = node_get_bool(r, ... | static NODE *get_series_stringvals(NODE *l, NODE *r, parser *p) {
NODE *ret = aux_array_node(p);
if (!p->err) {
int v = l->vnum;
if (is_string_valued(p->dset, v)) {
int sub = node_get_bool(r, p, 0);
int n_strs = 0;
char **S;
S = series_get_string_vals(p->dset, v, &n_strs, sub);
... | get_series_stringvals | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
setvar *get_setvar_by_name(const char *name) {
setvar *ret;
if (!svht)
svht = libset_hash_init();
ret = (setvar *)g_hash_table_lookup(svht, name);
if (!ret) {
if (!strcmp(name, "csv_na")) {
return (setvar *)g_hash_table_lookup(svht, "csv_write_na");
} else if (!strcmp(name, "mp_mnk_min")) {
... | static setvar *get_setvar_by_name(const char *name) {
setvar *ret = NULL;
if (svht == NULL) {
svht = libset_hash_init();
}
ret = g_hash_table_lookup(svht, name);
if (ret == NULL) {
if (!strcmp(name, "csv_na")) {
ret = g_hash_table_lookup(svht, "csv_write_na");
} else if (!strcmp(name, "m... | get_setvar_by_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretlRGB get_shadecolor() { return user_extra_color[1]; } | gretlRGB get_shadecolor(void) { return user_extra_color[1]; } | get_shadecolor | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_signif(const double *x, int n) {
char decpoint;
int i;
int j;
int ja;
int s;
int smax;
int lead;
int leadmax;
int leadmin;
int gotdec;
int trail;
int trailmax;
int allfrac;
double xx;
smax = 0;
leadmax = 0;
leadmin = 99;
trailmax = 0;
allfrac = 1;
decpoint = get_local_de... | static int get_signif(const double *x, int n) {
static char numstr[48];
int i, j, s, smax = 0;
int lead, leadmax = 0, leadmin = 99;
int gotdec, trail, trailmax = 0;
double xx;
int allfrac = 1;
char decpoint;
decpoint = get_local_decpoint();
for (i = 0; i < n; i++) {
if (na(x[i])) {
contin... | get_signif | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_simd_k_max() { return simd_k_max; } | int get_simd_k_max(void) { return simd_k_max; } | get_simd_k_max | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_simd_mn_min() { return simd_mn_min; } | int get_simd_mn_min(void) { return simd_mn_min; } | get_simd_mn_min | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_single_element(matrix_subspec *spec, parser *p) {
if (spec->ltype == SEL_SINGLE)
return spec->lsel.range[0];
if (p)
p->err = 37;
return -1;
} | static int get_single_element(matrix_subspec *spec, parser *p) {
int ret = 0;
if (spec->ltype == SEL_SINGLE) {
ret = spec->lsel.range[0];
} else {
if (p != NULL) {
p->err = E_TYPES;
}
ret = -1;
}
return ret;
} | get_single_element | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void get_slice_parts(NODE *t, parser *p) {
int flags;
NODE *v3;
NODE *L;
NODE *v5;
int v6;
NODE *v7;
NODE *R;
int v9;
char cexp;
int slice_upsym;
slice_upsym = p->upsym;
cexp = 0;
flags = p->flags;
BYTE1(flags) |= 0x20u;
p->flags = flags;
if (p->sym == 45) {
lex(p);
if (p->sym =... | static void get_slice_parts(NODE *t, parser *p) {
int slice_upsym = p->upsym;
char cexp = 0;
#if SDEBUG
fprintf(stderr, "get_slice_parts, p->sym = %d (%s), upsym %s\n", p->sym,
getsymb(p->sym), getsymb(p->upsym));
#endif
set_slice_on(p);
if (p->sym == G_LBR) {
lex(p);
if (p->sym == P_COM)... | get_slice_parts | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_slices(matrix_subspec *spec, const gretl_matrix *M) {
int err;
unsigned long v4;
v4 = __readfsqword(0x28u);
err = 0;
spec->rslice = mspec_make_list(spec->ltype, &spec->lsel, M->rows, &err);
if (!err)
spec->cslice = mspec_make_list(spec->rtype, &spec->rsel, M->cols, &err);
return err;
} | static int get_slices(matrix_subspec *spec, const gretl_matrix *M) {
int err = 0;
spec->rslice = mspec_make_list(spec->ltype, &spec->lsel, M->rows, &err);
if (!err) {
spec->cslice = mspec_make_list(spec->rtype, &spec->rsel, M->cols, &err);
}
#if MDEBUG
if (err) {
fprintf(stderr, "usermat: get_slices... | get_slices | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_square_parent_name(const char *s, char *targ, char *targ2) {
const char *sa;
int ret;
int n1;
int n1a;
char *p;
char *pa;
const char *pb;
sa = s;
ret = 0;
*targ = 0;
if (*s == 61 && (p = strstr(s, "squared")) != 0) {
sa = &s[strspn(s + 1, " ") + 1];
n1 = gretl_namechar_spn(sa);
... | static int get_square_parent_name(const char *s, char *targ, char *targ2) {
const char *p;
int n1, n2, ret = 0;
*targ = '\0';
if (*s == '=' && (p = strstr(s, "squared")) != NULL) {
s++;
s += strspn(s, " ");
n1 = gretl_namechar_spn(s);
n2 = p - s - 1;
if (n1 > 0 && n1 < VNAMELEN && n2 == n... | get_square_parent_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
GretlObjType get_stacked_type_by_data(void *ptr) {
int i;
for (i = 0; i < n_obj; ++i) {
if (ptr == ostack[i].ptr)
return ostack[i].type;
}
return GRETL_OBJ_NULL;
} | static GretlObjType get_stacked_type_by_data(void *ptr) {
int i;
for (i = 0; i < n_obj; i++) {
if (ostack[i].ptr == ptr) {
return ostack[i].type;
}
}
return GRETL_OBJ_NULL;
} | get_stacked_type_by_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
stacker *get_stacker_by_name(const char *oname, GretlObjType type, int *onum) {
char *name;
int i;
stacker *s;
s = 0;
if (!oname)
return 0;
for (i = 0; i < n_obj; ++i) {
if (type == GRETL_OBJ_ANY || ostack[i].type == type) {
name = gretl_object_get_name(ostack[i].ptr, (GretlObjType)ostack[i].... | static stacker *get_stacker_by_name(const char *oname, GretlObjType type,
int *onum) {
stacker *s = NULL;
const char *test;
int i;
if (oname == NULL) {
return NULL;
}
for (i = 0; i < n_obj; i++) {
if (type == GRETL_OBJ_ANY || type == ostack[i].type) {
test... | get_stacker_by_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_starting_length(const int *list, DATASET *dset, int trim) {
int len;
int lena;
int lenb;
int maxlen;
_BOOL4 conflict;
int i;
int ia;
int j;
int width;
char *vni;
width = 29 - trim;
maxlen = 0;
if (*list == 1)
return 31;
for (i = 1; i <= *list; ++i) {
len = strlen(dset->varna... | static int get_starting_length(const int *list, DATASET *dset, int trim) {
int width = VNAMELEN - 3 - trim;
const char *vni, *vnj;
int len, maxlen = 0;
int conflict = 0;
int i, j;
if (list[0] == 1) {
return VNAMELEN - 1;
}
for (i = 1; i <= list[0]; i++) {
len = strlen(dset->varname[list[i]]);
... | get_starting_length | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void get_startskip_etc(int compfac, int startmin, int endmin, int oldn,
CompactMethod method, int *startskip, int *newn) {
int ss_0;
int n;
if (method == COMPACT_EOP) {
ss_0 = (compfac - startmin % compfac) % compfac;
n = oldn / compfac;
if (oldn - 1 - ss_0 - compfac * (oldn / ... | static void get_startskip_etc(int compfac, int startmin, int endmin, int oldn,
CompactMethod method, int *startskip, int *newn) {
int ss = 0, n = 0;
if (method == COMPACT_EOP) {
int unused;
ss = (compfac - (startmin % compfac)) % compfac;
n = oldn / compfac;
unused = ... | get_startskip_etc | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_std(int v, int dfc, double *targ, const DATASET *dset) {
return standardize_series(dset->Z[v], targ, dfc, dset);
} | static int get_std(int v, int dfc, double *targ, const DATASET *dset) {
double *x = dset->Z[v];
return standardize_series(x, targ, dfc, dset);
} | get_std | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *get_stderr_vec(const gretl_matrix *V) {
double *v1;
int i;
int k;
gretl_matrix *se;
k = V->rows;
se = gretl_matrix_alloc(V->rows, 1);
if (se) {
for (i = 0; i < k; ++i) {
v1 = &se->val[i];
*v1 = sqrt(V->val[i * V->rows + i]);
}
}
return se;
} | static gretl_matrix *get_stderr_vec(const gretl_matrix *V) {
gretl_matrix *se;
int k = V->rows;
se = gretl_column_vector_alloc(k);
if (se != NULL) {
double x;
int i;
for (i = 0; i < k; i++) {
x = gretl_matrix_get(V, i, i);
se->val[i] = sqrt(x);
}
}
return se;
} | get_stderr_vec | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_stobs_maj_min(char *stobs, int structure, int *maj, int *min) {
int dotc;
int err;
char *p;
dotc = 0;
p = stobs;
err = 0;
while (*p) {
if (*p == 58) {
*p = 46;
++dotc;
} else if (*p == 46) {
++dotc;
} else if (((*__ctype_b_loc())[(unsigned char)*p] & 0x800) == 0) {
... | static int get_stobs_maj_min(char *stobs, int structure, int *maj, int *min) {
int dotc = 0;
char *p = stobs;
int err = 0;
while (*p) {
if (*p == ':') {
*p = '.';
dotc++;
} else if (*p == '.') {
dotc++;
} else if (!isdigit((unsigned char)*p)) {
err = 1;
break;
}
... | get_stobs_maj_min | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void get_stock_yogo_critvals(int n, int K2_0, gretlopt opt, gretl_matrix **p1,
gretl_matrix **p2) {
gretl_matrix *v5;
short opta;
gretl_matrix *(*lookup)(int, int, int);
opta = opt;
lookup = (gretl_matrix * (*)(int, int, int))
get_plugin_function("stock_yogo_lookup");
if ... | static void get_stock_yogo_critvals(int n, int K2, gretlopt opt,
gretl_matrix **p1, gretl_matrix **p2) {
gretl_matrix *(*lookup)(int, int, int);
lookup = get_plugin_function("stock_yogo_lookup");
if (lookup != NULL) {
if (opt & OPT_L) {
*p2 = (*lookup)(n, K2, 3);
... | get_stock_yogo_critvals | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *get_string_by_name(const char *name) {
user_var *u;
u = get_user_var_of_type_by_name(name, GRETL_TYPE_STRING);
if (u)
return (char *)u->ptr;
else
return get_built_in_string_by_name(name);
} | char *get_string_by_name(const char *name) {
user_var *u;
u = get_user_var_of_type_by_name(name, GRETL_TYPE_STRING);
if (u != NULL) {
return (char *)u->ptr;
} else {
return get_built_in_string_by_name(name);
}
} | get_string_by_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
FreqDist *get_string_freq(int v, const DATASET *dset, int *err) {
char **v4;
int ns;
int i;
int t;
int n;
FreqDist *freq;
const double *x;
series_table *st;
char **S;
strval_sorter *ss_0;
unsigned long v15;
v15 = __readfsqword(0x28u);
x = dset->Z[v];
freq = freq_new(dset->varname[v]);
if ... | FreqDist *get_string_freq(int v, const DATASET *dset, int *err) {
FreqDist *freq;
struct strval_sorter *ss;
const double *x = dset->Z[v];
series_table *st;
char **S;
int i, t, n, ns;
freq = freq_new(dset->varname[v]);
if (freq == NULL) {
*err = E_ALLOC;
return NULL;
}
st = series_get_strin... | get_string_freq | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_array *get_strings_array_by_name(const char *name) {
gretl_array *ret;
user_var *u;
ret = 0;
if (name) {
if (*name) {
u = get_user_var_of_type_by_name(name, GRETL_TYPE_ARRAY);
if (u) {
ret = (gretl_array *)user_var_get_value(u);
if (ret->type != GRETL_TYPE_STRINGS)
... | gretl_array *get_strings_array_by_name(const char *name) {
gretl_array *ret = NULL;
if (name != NULL && *name != '\0') {
user_var *u = get_user_var_of_type_by_name(name, GRETL_TYPE_ARRAY);
if (u != NULL) {
ret = user_var_get_value(u);
if (ret->type != GRETL_TYPE_STRINGS) {
ret = NULL;
... | get_strings_array_by_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gp_style_spec *get_style_spec(int t) {
int i;
for (i = 0; style_specs[i].id; ++i) {
if (t == style_specs[i].id)
return &style_specs[i];
}
return 0;
} | gp_style_spec *get_style_spec(int t) {
int i;
for (i = 0; style_specs[i].id != 0; i++) {
if (t == style_specs[i].id) {
return &style_specs[i];
}
}
return NULL;
} | get_style_spec | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_submask_length(const char *s) {
const char *sa;
int n;
sa = s;
n = 1;
if (!s || s == (const char *)3735928559LL)
return 0;
while (*sa != 127) {
++n;
++sa;
}
return n;
} | static int get_submask_length(const char *s) {
int n = 1;
if (s == NULL || s == RESAMPLED) {
n = 0;
} else {
while (*s != SUBMASK_SENTINEL) {
n++;
s++;
}
}
return n;
} | get_submask_length | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_subperiod(int t, const DATASET *dset, int *err) {
double v4;
double v5;
int i;
int d;
double xa;
double x;
char datestr[12];
unsigned long v12;
v12 = __readfsqword(0x28u);
if (dset && (dset->structure == 1 || dset->structure == 5) && dset->pd > 1) {
if (dset->structure == 1 && dset->pd ... | int get_subperiod(int t, const DATASET *dset, int *err) {
int ret = 0;
if (!dataset_is_seasonal(dset)) {
if (err != NULL) {
*err = E_PDWRONG;
}
return 0;
}
if (dataset_is_weekly(dset)) {
ret = t % dset->pd;
} else if (calendar_data(dset)) {
char datestr[12];
calendar_date_st... | get_subperiod | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double get_sum_y2(adf_info *ainfo, MODEL *pmod, const DATASET *dset) {
_BYTE t[12];
const double *ylag;
*(_DWORD *)&t[8] = 0;
*(_QWORD *)t = (unsigned int)pmod->t1;
while (*(int *)t <= pmod->t2) {
ylag = dset->Z[ainfo->list[2]];
*(double *)&t[4] = ylag[*(int *)t] * ylag[*(int *)t] + *(double *)&t[4];... | static double get_sum_y2(adf_info *ainfo, MODEL *pmod, const DATASET *dset) {
const double *ylag = dset->Z[ainfo->list[2]];
double sumy2 = 0;
int t;
for (t = pmod->t1; t <= pmod->t2; t++) {
sumy2 += ylag[t] * ylag[t];
}
return sumy2;
} | get_sum_y2 | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
Summary *get_summary(const int *list, const DATASET *dset, gretlopt opt,
PRN *prn, int *err) {
int v6;
char *v7;
char *v8;
double *v9;
int i;
int ni;
int t1;
int t2;
int nmax;
int vi;
int strvals;
double x0;
double *pskew;
double *pkurt;
const double *x;
Summary *s;
... | Summary *get_summary(const int *list, const DATASET *dset, gretlopt opt,
PRN *prn, int *err) {
int t1 = dset->t1;
int t2 = dset->t2;
Summary *s;
int i, nmax;
s = summary_new(list, 0, opt, err);
if (s == NULL) {
return NULL;
}
nmax = sample_size(dset);
for (i = 0; i < s->lis... | get_summary | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
Summary *get_summary_restricted(const int *list, const DATASET *dset,
const double *rv, gretlopt opt, PRN *prn,
int *err) {
char *v7;
char *v8;
double *v9;
int i;
int t;
int ni;
int ntot;
int t1;
int t2;
int vi;
int strvals;
double ... | Summary *get_summary_restricted(const int *list, const DATASET *dset,
const double *rv, gretlopt opt, PRN *prn,
int *err) {
int t1 = dset->t1;
int t2 = dset->t2;
Summary *s;
double *x;
int i, t;
s = summary_new(list, 0, opt, err);
if (s == N... | get_summary_restricted | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
Summary *get_summary_weighted(const int *list, const DATASET *dset, int wtvar,
gretlopt opt, PRN *prn, int *err) {
char *v7;
char *v8;
int i;
int t;
int ni;
int ntot;
int t1;
int t2;
int vi;
double *pskew;
double *pkurt;
Summary *s;
double *x;
double *wts;
dou... | Summary *get_summary_weighted(const int *list, const DATASET *dset, int wtvar,
gretlopt opt, PRN *prn, int *err) {
const double *wts;
double *x, ostats[5];
int t1 = dset->t1;
int t2 = dset->t2;
Summary *s;
int i, t;
s = summary_new(list, wtvar, opt, err);
if (s == NULL) {
... | get_summary_weighted | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_sys_fcast_var(const int *ylist, const char *vname, DATASET *dset) {
int i;
for (i = 0; i < *ylist; ++i) {
if (!strcmp(vname, dset->varname[ylist[i + 1]]))
return i;
}
return -1;
} | static int get_sys_fcast_var(const int *ylist, const char *vname,
DATASET *dset) {
int i, vi;
for (i = 0; i < ylist[0]; i++) {
vi = ylist[i + 1];
if (!strcmp(vname, dset->varname[vi])) {
return i;
}
}
return -1;
} | get_sys_fcast_var | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_bundle *get_sysinfo_bundle(int *err) {
double v1;
double v2;
int v3;
const char *host_name;
const char *v5;
char *v6;
char **v7;
char *s1;
char *s2;
gretl_matrix *memvals;
gretl_bundle *b;
gretl_bundle *fb;
char **S;
unsigned long v15;
v15 = __readfsqword(0x28u);
memvals = 0;
if... | gretl_bundle *get_sysinfo_bundle(int *err) {
gretl_matrix *memvals = NULL;
if (sysinfo_bundle == NULL) {
gretl_bundle *b = gretl_bundle_new();
if (b == NULL) {
*err = E_ALLOC;
} else {
gretl_bundle *fb;
char *s1, *s2;
int ival = 0;
#if HAVE_MPI
ival = check_for_mpiexec()... | get_sysinfo_bundle | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
FITRESID *get_system_forecast(void *p, int ci, int i, int t1, int t2, int pre_n,
DATASET *dset, gretlopt opt, int *err) {
int df_0;
int yno;
FITRESID *fr;
GRETL_VAR *var;
equation_system *sys;
const gretl_matrix *F;
var = 0;
sys = 0;
F = 0;
df_0 = 0;
yno = 0;
if (t... | FITRESID *get_system_forecast(void *p, int ci, int i, int t1, int t2, int pre_n,
DATASET *dset, gretlopt opt, int *err) {
FITRESID *fr;
GRETL_VAR *var = NULL;
equation_system *sys = NULL;
const gretl_matrix *F = NULL;
int nf = t2 - t1 + 1;
int asy, df = 0, yno = 0;
if (nf <=... | get_system_forecast | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_system_install_path(char *path, const char *subdir) {
const char *v2;
v2 = gretl_home();
sprintf(path, "%s%s", v2, subdir);
if (dir_is_writable(path))
return 0;
else
return 11;
} | static int get_system_install_path(char *path, const char *subdir) {
sprintf(path, "%s%s", gretl_home(), subdir);
if (dir_is_writable(path)) {
return 0;
} else {
return E_FOPEN;
}
} | get_system_install_path | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *get_system_name_from_line(const char *s) {
const char *sa;
char c;
int pchars;
const char *p;
const char *pb;
const char *pc;
const char *pa;
char *name;
sa = s;
name = 0;
pchars = 0;
if (!strncmp(s, "method", 6u)) {
c = s[6];
if (c == 32 || c == 61) {
p = &s[strspn(s, " ") ... | char *get_system_name_from_line(const char *s) {
const char *p = NULL;
char *name = NULL;
int pchars = 0;
if (!strncmp(s, "method", 6)) {
char c = *(s + 6);
if (c == ' ' || c == '=') {
p = s + 6;
p += strspn(s, " ");
if (*p == '=')
p++;
p += strspn(s, " ");
p += ... | get_system_name_from_line | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_t_from_obs_string(const char *s, const DATASET *dset) {
char *v2;
int err;
int t;
char obs[24];
unsigned long v7;
v7 = __readfsqword(0x28u);
if (*s == 34) {
err = 0;
obs[0] = 0;
strncat(obs, s, 0x11u);
gretl_unquote(obs, &err);
t = dateton(obs, dset);
} else {
t = dateto... | int get_t_from_obs_string(const char *s, const DATASET *dset) {
int t;
if (*s == '"') {
char obs[OBSLEN + 2];
int err = 0;
*obs = '\0';
strncat(obs, s, OBSLEN + 1);
gretl_unquote(obs, &err);
t = dateton(obs, dset);
} else {
t = dateton(s, dset);
}
#if OBS_DEBUG
fprintf(stderr, "... | get_t_from_obs_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gchar *get_test_pval_string(const ModelTest *test, PRN *prn) {
double value;
int dfn;
char *v4;
double pvalue;
int tex;
gchar *ret;
tex = tex_format(prn);
ret = 0;
switch (test->teststat) {
case 1u:
case 7u:
case 8u:
case 9u:
case 0xAu:
if (fabs(test->value) <= 1.797693134862316e308) {
... | static gchar *get_test_pval_string(const ModelTest *test, PRN *prn) {
int tex = tex_format(prn);
gchar *ret = NULL;
switch (test->teststat) {
case GRETL_STAT_LM:
if (tex) {
ret = g_strdup_printf("$P$($\\chi^2(%d) >$ %g) = %g", test->dfn,
test->value, test->pvalue);
} e... | get_test_pval_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gchar *get_test_stat_string(const ModelTest *test, PRN *prn) {
char *param;
double v3;
unsigned int v4;
char *v5;
double value;
char *v7;
char *v8;
char *v9;
int v10;
char *v11;
double v12;
int dfn;
char *v14;
int tex;
gchar *ret;
tex = tex_format(prn);
ret = 0;
switch (test->testst... | static gchar *get_test_stat_string(const ModelTest *test, PRN *prn) {
int tex = tex_format(prn);
gchar *ret = NULL;
switch (test->teststat) {
case GRETL_STAT_LM:
ret = g_strdup_printf("LM = %g", test->value);
break;
case GRETL_STAT_F:
case GRETL_STAT_RESET:
if (tex) {
ret = g_strdup_print... | get_test_stat_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_tex_use_pdf() { return use_pdf; } | int get_tex_use_pdf(void) { return use_pdf; } | get_tex_use_pdf | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_trailing_var(int *list) {
int ret;
ret = 0;
if (list[*list - 1] == -100) {
ret = list[*list];
*list -= 2;
}
return ret;
} | static int get_trailing_var(int *list) {
int l0 = list[0];
int ret = 0;
if (list[l0 - 1] == LISTSEP) {
ret = list[l0];
list[0] -= 2;
}
return ret;
} | get_trailing_var | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_transform(int ci, int v, int aux, double x, DATASET *dset, int startlen,
int origv, int *idxvec) {
char *v9;
char *v10;
char *v11;
char *v12;
char *v13;
char *v14;
char *v15;
char *v16;
int vno;
unsigned int err;
int len;
int lag;
char *srcname;
char *s;
double *v... | static int get_transform(int ci, int v, int aux, double x, DATASET *dset,
int startlen, int origv, int *idxvec) {
char vname[VNAMELEN] = {0};
char label[MAXLABEL] = {0};
int vno = -1, err = 0;
int len, lag = 0;
const char *srcname;
double *vx;
vx = testvec(dset->n);
if (vx == N... | get_transform | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_translated_width(const char *str) {
int v1;
v1 = strlen(str);
return v1 - g_utf8_strlen(str, -1) + v1;
} | int get_translated_width(const char *str) {
int w = strlen(str);
w += w - g_utf8_strlen(str, -1);
return w;
} | get_translated_width | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_two_words(const char *s, char *w1, char *w2, int *err) {
char *v4;
const char *sa;
int nf;
int n;
nf = 0;
if (!strncmp(s, "function ", 9u)) {
*w2 = 0;
*w1 = *w2;
sa = &s[strspn(s + 9, " ") + 9];
n = strcspn(sa, " ");
if (n && n <= 31) {
strncat(w1, sa, n);
nf = 1;
... | static int get_two_words(const char *s, char *w1, char *w2, int *err) {
int nf = 0;
if (strncmp(s, "function ", 9)) {
*err = E_PARSE;
} else {
int n;
*w1 = *w2 = '\0';
s += 9;
s += strspn(s, " ");
n = strcspn(s, " ");
if (n == 0 || n >= FN_NAMELEN) {
*err = E_PARSE;
} el... | get_two_words | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
ufunc *get_uf_array_member(const char *name, fnpkg *pkg) {
int i;
for (i = 0; i < n_ufuns; ++i) {
if ((pkg == ufuns[i]->pkg || !ufuns[i]->pkg) &&
!strcmp(name, ufuns[i]->name))
return ufuns[i];
}
return 0;
} | static ufunc *get_uf_array_member(const char *name, fnpkg *pkg) {
int i;
for (i = 0; i < n_ufuns; i++) {
if (ufuns[i]->pkg == pkg || ufuns[i]->pkg == NULL) {
if (!strcmp(name, ufuns[i]->name)) {
return ufuns[i];
}
}
}
return NULL;
} | get_uf_array_member | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *get_unquoted(const char *s) {
_BYTE n[12];
*(_DWORD *)&n[8] = 0;
*(_QWORD *)n = (unsigned int)strlen(s);
if (s[*(int *)n - 1] == *s)
*(_QWORD *)&n[4] = gretl_strndup(s + 1, *(_DWORD *)n - 2);
return *(char **)&n[4];
} | static char *get_unquoted(const char *s) {
char *tmp = NULL;
int n = strlen(s);
if (s[n - 1] == s[0]) {
tmp = gretl_strndup(s + 1, n - 2);
}
return tmp;
} | get_unquoted | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_update_info(char **saver, int verbose) {
int err;
urlinfo u;
unsigned long v5;
v5 = __readfsqword(0x28u);
err = 0;
urlinfo_init(&u, sfweb, 2, 0);
strcat(u.url, updatecgi);
if (verbose)
strcpy(&u.url[strlen(u.url)], "?opt=MANUAL_QUERY");
else
strcpy(&u.url[strlen(u.url)], "?opt=QUERY")... | int get_update_info(char **saver, int verbose) {
urlinfo u;
int err = 0;
urlinfo_init(&u, sfweb, SAVE_TO_BUFFER, NULL);
strcat(u.url, updatecgi);
if (verbose) {
strcat(u.url, "?opt=MANUAL_QUERY");
} else {
strcat(u.url, "?opt=QUERY");
}
err = curl_get(&u);
urlinfo_finalize(&u, saver, &err);... | get_update_info | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double get_urc_pvalue(double tau, int n, int niv, int itv) {
double (*pvfunc)(double, int, int, int);
pvfunc = (double (*)(double, int, int, int))get_plugin_function(
"mackinnon_pvalue");
if (pvfunc)
return ((double (*)(_QWORD, _QWORD, _QWORD, double))pvfunc)(
(unsigned int)n, (unsigned int)niv... | double get_urc_pvalue(double tau, int n, int niv, int itv) {
double (*pvfunc)(double, int, int, int);
double pval = NADBL;
pvfunc = get_plugin_function("mackinnon_pvalue");
if (pvfunc == NULL) {
return pval;
}
pval = (*pvfunc)(tau, n, niv, itv);
#if ADF_DEBUG
fprintf(stderr, "get_urc_pvalue: tau=%g... | get_urc_pvalue | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *get_uri_for_addon(const char *pkgname, int *err) {
char *v2;
int v3;
int v4;
int v5;
char *buf;
char *uri;
const char *SF_0;
gchar *pkgbase;
char *p;
gchar *query;
char pkgdir[24];
unsigned long v14;
v14 = __readfsqword(0x28u);
SF_0 = "http://downloads.sourceforge.net/project/gretl/ad... | char *get_uri_for_addon(const char *pkgname, int *err) {
const char *SF = "http://downloads.sourceforge.net/"
"project/gretl/addons";
char *p, pkgdir[16];
gchar *query, *pkgbase;
char *buf = NULL;
char *uri = NULL;
pkgbase = g_strdup(pkgname);
if ((p = strrchr(pkgbase, '.')) != NULL) {... | get_uri_for_addon | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const ufunc *get_user_function_by_index(int idx) {
if (idx < 0 || idx >= n_ufuns)
return 0;
else
return ufuns[idx];
} | const ufunc *get_user_function_by_index(int idx) {
return (idx < 0 || idx >= n_ufuns) ? NULL : ufuns[idx];
} | get_user_function_by_index | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
ufunc *get_user_function_by_name(const char *name) {
int i;
int ia;
int ib;
int ic;
fnpkg *pkg;
ufunc *fun;
fnpkg *ppkg;
pkg = current_pkg;
fun = 0;
if (!n_ufuns)
return 0;
if (!current_pkg) {
fun = currently_called_function();
if (fun) {
pkg = fun->pkg;
fun = 0;
}
}... | ufunc *get_user_function_by_name(const char *name) {
fnpkg *pkg = current_pkg;
ufunc *fun = NULL;
int i;
if (n_ufuns == 0) {
return NULL;
}
if (pkg == NULL) {
fun = currently_called_function();
if (fun != NULL) {
pkg = fun->pkg;
fun = NULL;
}
}
#ifdef HAVE_MPI
if (pkg == N... | get_user_function_by_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_user_install_path(char *path, const char *subdir) {
const char *dirname;
dirname = gretl_dotdir();
if (!dirname || !*dirname)
return 11;
sprintf(path, "%s%s", dirname, subdir);
return dir_is_writable(path) == 0;
} | static int get_user_install_path(char *path, const char *subdir) {
#ifdef OS_OSX
const char *dirname = gretl_app_support_dir();
#else
const char *dirname = gretl_dotdir();
#endif
int err = 0;
if (dirname == NULL || *dirname == '\0') {
err = E_FOPEN;
} else {
sprintf(path, "%s%s", dirname, subdir);
... | get_user_install_path | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *get_user_path(char *targ, const char *pgkname, const char *gfnname) {
const char *v3;
v3 = gretl_dotdir();
return gretl_build_path(targ, v3, "functions", pgkname, gfnname, 0);
} | static char *get_user_path(char *targ, const char *pgkname,
const char *gfnname) {
#ifdef OS_OSX
return gretl_build_path(targ, gretl_app_support_dir(), "functions", pgkname,
gfnname, NULL);
#else
return gretl_build_path(targ, gretl_dotdir(), "functions", pgkname,... | get_user_path | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
user_var *get_user_var_by_data(const void *data) {
int i;
int d;
d = gretl_function_depth();
if (!data)
return 0;
for (i = 0; i < n_vars_0; ++i) {
if (uvars[i] && d == uvars[i]->level && data == uvars[i]->ptr)
return uvars[i];
}
return 0;
} | user_var *get_user_var_by_data(const void *data) {
int i, d = gretl_function_depth();
if (data == NULL) {
return NULL;
}
for (i = 0; i < n_vars; i++) {
if (uvars[i] != NULL && uvars[i]->level == d && uvars[i]->ptr == data) {
return uvars[i];
}
}
return NULL;
} | get_user_var_by_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
user_var *get_user_var_by_name(const char *name) {
return get_user_var_of_type_by_name(name, GRETL_TYPE_ANY);
} | user_var *get_user_var_by_name(const char *name) {
return get_user_var_of_type_by_name(name, GRETL_TYPE_ANY);
} | get_user_var_by_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
user_var *get_user_var_of_type_by_name(const char *name, GretlType type) {
int i;
int imin;
int prev_d;
int d;
user_var *u;
prev_d = get_previous_depth();
d = gretl_function_depth();
imin = 0;
u = 0;
if (!name || !*name)
return 0;
if (type == GRETL_TYPE_DOUBLE)
imin = scalar_imin;
if (d... | user_var *get_user_var_of_type_by_name(const char *name, GretlType type) {
int prev_d = get_previous_depth();
int d = gretl_function_depth();
int i, imin = 0;
user_var *u = NULL;
if (name == NULL || *name == '\0') {
return NULL;
}
if (type == GRETL_TYPE_DOUBLE) {
imin = scalar_imin;
}
#if HD... | get_user_var_of_type_by_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_utf_width(const char *str, int width) {
int v2;
v2 = strlen(str);
return width + v2 - g_utf8_strlen(str, -1);
} | int get_utf_width(const char *str, int width) {
int invis = strlen(str) - g_utf8_strlen(str, -1);
return width + invis;
} | get_utf_width | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_vals_from_tics(PLOTGROUP *grp, const char *s) {
int i;
int err;
double x;
unsigned long v7;
v7 = __readfsqword(0x28u);
err = 0;
grp->dvals = gretl_matrix_alloc(grp->nplots, 1);
if (!grp->dvals)
return 12;
for (i = 0; i < grp->nplots && !err; ++i) {
s = strchr(s, 34);
if (s) {
... | static int get_vals_from_tics(PLOTGROUP *grp, const char *s) {
double x;
int i, err = 0;
grp->dvals = gretl_column_vector_alloc(grp->nplots);
if (grp->dvals == NULL) {
return E_ALLOC;
}
for (i = 0; i < grp->nplots && !err; i++) {
s = strchr(s, '"');
if (s == NULL) {
err = E_DATA;
} e... | get_vals_from_tics | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double get_vcv_element(MODEL *pmod, const char *s, const DATASET *dset) {
int v1;
int v2;
int i;
int j;
int ka;
int k;
int gotit;
double ret;
char fmt[16];
char v1str[32];
char v2str[40];
unsigned long v16;
v16 = __readfsqword(0x28u);
ret = NAN;
if (!pmod || !pmod->list)
return NAN;
... | static double get_vcv_element(MODEL *pmod, const char *s, const DATASET *dset) {
char v1str[VNAMELEN], v2str[VNAMELEN];
char fmt[16];
int v1 = 0, v2 = 0;
int i, j, k, gotit;
double ret = NADBL;
if (pmod == NULL || pmod->list == NULL) {
return NADBL;
}
sprintf(fmt, "%%%d[^,],%%%ds", VNAMELEN - 1, V... | get_vcv_element | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_vector_x(const double **px, int *n, const char **pvname) {
int rows;
int err;
const char *mname;
gretl_matrix *m;
mname = get_optval_string(9, OPT_X);
err = 0;
if (!mname)
return 17;
m = get_matrix_by_name(mname);
if (!m || !m->rows || !m->cols)
return 17;
if (m->cols == 1) {
ro... | static int get_vector_x(const double **px, int *n, const char **pvname) {
const char *mname = get_optval_string(BDS, OPT_X);
int err = 0;
if (mname != NULL) {
gretl_matrix *m = get_matrix_by_name(mname);
if (gretl_is_null_matrix(m)) {
err = E_INVARG;
} else {
*n = gretl_vector_get_length... | get_vector_x | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_wald_dfu(const equation_system *sys, const gretl_matrix *R) {
int dfu;
dfu = 0;
if (sys->method == 4 || sys->method == 5)
dfu = maybe_get_single_equation_dfu(sys, R);
if (!dfu)
return system_get_dfu(sys);
return dfu;
} | static int get_wald_dfu(const equation_system *sys, const gretl_matrix *R) {
int dfu = 0;
if (sys->method == SYS_METHOD_OLS || sys->method == SYS_METHOD_TSLS) {
dfu = maybe_get_single_equation_dfu(sys, R);
}
if (dfu == 0) {
dfu = system_get_dfu(sys);
}
return dfu;
} | get_wald_dfu | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_whites_aux(const MODEL *pmod, const double **Z) {
int v2;
int aux;
int rem;
int nsq;
int nxpx;
int i;
int v;
aux = 7;
rem = pmod->ncoeff - pmod->ifc - 1;
nsq = 0;
nxpx = 0;
for (i = 2; i <= *pmod->list; ++i) {
v = pmod->list[i];
if (v > 0) {
if (!gretl_isdummy(pmod->t1, pm... | static int get_whites_aux(const MODEL *pmod, const double **Z) {
int aux = AUX_WHITE;
int rem = pmod->ncoeff - pmod->ifc - 1;
int nsq = 0, nxpx = 0;
int i, v;
for (i = 2; i <= pmod->list[0]; i++) {
v = pmod->list[i];
if (v > 0) {
if (!gretl_isdummy(pmod->t1, pmod->t2, Z[v])) {
nsq++;
... | get_whites_aux | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void get_wls_stats(MODEL *pmod, const DATASET *dset, gretlopt opt) {
int t;
int ta;
int yno;
double x;
double wmean;
double wmeana;
double wsum;
double dy;
wmean = 0.0;
wsum = 0.0;
yno = pmod->list[1];
for (t = pmod->t1; t <= pmod->t2; ++t) {
if (!model_missing(pmod, t) && dset->Z[pmod->nwt... | static void get_wls_stats(MODEL *pmod, const DATASET *dset, gretlopt opt) {
double x, dy, wmean = 0.0, wsum = 0.0;
int yno = pmod->list[1];
int t;
for (t = pmod->t1; t <= pmod->t2; t++) {
if (model_missing(pmod, t)) {
continue;
}
if (dset->Z[pmod->nwt][t] > 0) {
wmean += dset->Z[pmod->n... | get_wls_stats | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *get_word_and_advance(const char *s, char *word, size_t maxlen) {
size_t v3;
size_t i;
i = 0;
while (((*__ctype_b_loc())[*s] & 0x2000) != 0)
++s;
*word = 0;
while (*s && ((*__ctype_b_loc())[*s] & 0x2000) == 0) {
if (i < maxlen) {
v3 = i++;
word[v3] = *s;
}
++s;
}
... | static const char *get_word_and_advance(const char *s, char *word,
size_t maxlen) {
size_t i = 0;
while (isspace(*s))
s++;
*word = '\0';
while (*s && !isspace(*s)) {
if (i < maxlen)
word[i++] = *s;
s++;
}
word[i] = '\0';
return (*word != '\0')... | get_word_and_advance | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_x12a_maxpd() {
char *sout;
const char *x12a;
char *p;
unsigned long v4;
v4 = __readfsqword(0x28u);
if (!n_0) {
x12a = gretl_x12_arima();
sout = 0;
gretl_glib_grab_output(x12a, &sout);
if (sout) {
p = strstr(sout, "PSP = ");
if (p)
n_0 = atoi(p + 6);
free(so... | int get_x12a_maxpd(void) {
static int n;
if (n == 0) {
const char *x12a = gretl_x12_arima();
char *sout = NULL;
#ifdef WIN32
gretl_win32_grab_output(x12a, gretl_dotdir(), &sout);
#else
gretl_glib_grab_output(x12a, &sout);
#endif
if (sout != NULL) {
char *p = strstr(sout, "PSP = ");
... | get_x12a_maxpd | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int *get_x_sorted_order(const FITRESID *fr, const double *x, int t1, int *pt2) {
int nmiss;
int i;
int ia;
int t;
int ta;
int t2;
long n;
int *order;
fsorter *fs_0;
nmiss = 0;
t2 = *pt2;
n = (unsigned int)(*pt2 - t1 + 1);
for (t = t1; t <= t2; ++t) {
if (fabs(fr->actual[t]) > 1.7976931348... | static int *get_x_sorted_order(const FITRESID *fr, const double *x, int t1,
int *pt2) {
int *order = NULL;
struct fsorter *fs;
int nmiss = 0;
int t2 = *pt2;
int n = t2 - t1 + 1;
int i, t;
for (t = t1; t <= t2; t++) {
if (na(fr->actual[t])) {
nmiss++;
}
}
... | get_x_sorted_order | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double get_xlag(int lag, int t1, gretl_vector *x0, int n) {
int i;
i = n - (t1 - lag);
if (i < 0 || i >= n)
return 0.0;
else
return x0->val[i];
} | static double get_xlag(int lag, int t1, gretl_vector *x0, int n) {
int p = t1 - lag;
int i = n - p;
if (i >= 0 && i < n) {
return x0->val[i];
} else {
return 0;
}
} | get_xlag | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_xon_xoff(const double *x, int n, int pd, double *xon, double *xoff) {
int t;
int ret;
double x0;
double y0;
x0 = 999.0;
y0 = 999.0;
ret = 1;
for (t = 0; t < n && ret; ++t) {
if (x[t] == 1.0) {
if (x0 == 999.0) {
x0 = 1.0;
} else if (x[t] != x0) {
ret = 0;
}... | static int get_xon_xoff(const double *x, int n, int pd, double *xon,
double *xoff) {
double cfac = 1.0 / pd;
double xc = 1.0 - cfac, yc = -cfac;
double x0 = 999, y0 = 999;
int t, ret = 1;
for (t = 0; t < n && ret; t++) {
if (x[t] == 1.0) {
if (x0 == 999)
x0 = 1.0;
... | get_xon_xoff | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_xpx(int vi, int vj, double *xvec, const DATASET *dset) {
int t;
double xit;
double xjt;
for (t = dset->t1; t <= dset->t2; ++t) {
xit = dset->Z[vi][t];
xjt = dset->Z[vj][t];
if (fabs(xit) <= 1.797693134862316e308 &&
fabs(xjt) <= 1.797693134862316e308)
xvec[t] = xit * xjt;
e... | static int get_xpx(int vi, int vj, double *xvec, const DATASET *dset) {
double xit, xjt;
int t;
for (t = dset->t1; t <= dset->t2; t++) {
xit = dset->Z[vi][t];
xjt = dset->Z[vj][t];
if (na(xit) || na(xjt)) {
xvec[t] = NADBL;
} else {
xvec[t] = xit * xjt;
}
}
return 0;
} | get_xpx | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void get_xtab_col_widths(const Xtab *tab, int stdwidth, int *cwidth,
int *twidth) {
double v4;
int v5;
int v6;
double v7;
int v8;
int v9;
int i;
int ia;
int dmax;
int dmaxa;
dmax = 0;
for (i = 0; i < tab->cols; ++i) {
v4 = log10((double)tab->ctotal[i]);
v5 = (in... | static void get_xtab_col_widths(const Xtab *tab, int stdwidth, int *cwidth,
int *twidth) {
int i, di, dmax = 0;
for (i = 0; i < tab->cols; i++) {
di = (int)(floor(log10(tab->ctotal[i])));
dmax = di > dmax ? di : dmax;
}
*cwidth = (dmax >= stdwidth - 2) ? dmax + 3 : stdwi... | get_xtab_col_widths | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double get_xtime() { return omp_get_wtime(); } | static double get_xtime(void) {
#if defined(HAVE_MPI)
if (gretl_mpi_initialized()) {
return gretl_mpi_time();
}
#endif
#if defined(WIN32)
return win32_get_time();
#elif defined(_OPENMP)
return omp_get_wtime();
#endif
return 0;
} | get_xtime | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.