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 |
|---|---|---|---|---|---|---|---|
gretl_matrix *get_last_test_matrix(int *err) {
return record_or_get_test_matrix(0, 0, 1, err);
} | gretl_matrix *get_last_test_matrix(int *err) {
return record_or_get_test_matrix(NULL, NULL, GET_TEST_STAT, err);
} | get_last_test_matrix | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double get_last_test_statistic() {
return record_or_get_test_result(0.0, 0.0, 0.0, 0.0, 1);
} | double get_last_test_statistic(void) {
return record_or_get_test_result(0, 0, 0, 0, GET_TEST_STAT);
} | get_last_test_statistic | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_last_test_type() { return last_test_type; } | int get_last_test_type(void) { return last_test_type; } | get_last_test_type | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_line_continuation(char *line, FILE *fp, PRN *prn) {
size_t v4;
char *v5;
int err;
char tmp[65544];
unsigned long v9;
v9 = __readfsqword(0x28u);
err = 0;
if (!strncmp(line, "quit", 4u))
return 0;
while (top_n_tail(line, 0x10000u, &err) && !err) {
tmp[0] = 0;
if (fgets(tmp, 0x10000,... | static int get_line_continuation(char *line, FILE *fp, PRN *prn) {
char tmp[MAXLINE];
int err = 0;
if (!strncmp(line, "quit", 4)) {
return 0;
}
while (top_n_tail(line, MAXLINE, &err)) {
if (err) {
break;
}
*tmp = '\0';
if (fgets(tmp, sizeof tmp, fp) && *tmp != '\0') {
if (str... | get_line_continuation | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int *get_list_by_name(const char *name) {
int *ret;
user_var *u;
ret = 0;
u = get_user_var_of_type_by_name(name, GRETL_TYPE_LIST);
if (u)
return (int *)user_var_get_value(u);
return ret;
} | int *get_list_by_name(const char *name) {
user_var *u;
int *ret = NULL;
u = get_user_var_of_type_by_name(name, GRETL_TYPE_LIST);
if (u != NULL) {
ret = user_var_get_value(u);
}
return ret;
} | get_list_by_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *get_listname_by_consecutive_content(int l0, int l1) {
int i;
int j;
int found;
int level;
int *list;
level = gretl_function_depth();
for (i = 0; i < n_vars_0; ++i) {
if (uvars[i]->type == GRETL_TYPE_LIST && level == uvars[i]->level) {
list = (int *)uvars[i]->ptr;
if (l0 == *li... | const char *get_listname_by_consecutive_content(int l0, int l1) {
int level = gretl_function_depth();
const char *ret = NULL;
int i, j, *list;
for (i = 0; i < n_vars; i++) {
if (uvars[i]->type == GRETL_TYPE_LIST && uvars[i]->level == level) {
list = uvars[i]->ptr;
if (list[0] == l0 && list[1] =... | get_listname_by_consecutive_content | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *get_literal_string_arg(parser *p, int opt) {
int v3;
int close;
int closea;
int gotparen;
_BOOL4 quoted;
int anyquote;
int paren;
int i;
int i1;
int i2;
const char *s;
close = 0;
while (p->ch == 32)
parser_getc(p);
if (p->ch == 34) {
closea = parser_char_index(p, 34);
if (... | static NODE *get_literal_string_arg(parser *p, int opt) {
int close = 0;
while (p->ch == ' ') {
parser_getc(p);
}
if (p->ch == '"') {
close = parser_char_index(p, '"');
if (close < 0) {
unmatched_symbol_error('"', p);
return NULL;
}
p->idstr = gretl_strndup(p->point, close);
... | get_literal_string_arg | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
fnpkg *get_loaded_pkg_by_filename(const char *fname, const char **version) {
int i;
if (!fname)
return 0;
for (i = 0;; ++i) {
if (i >= n_pkgs)
return 0;
if (!strcmp(fname, pkgs[i]->fname))
break;
}
if (version)
*version = pkgs[i]->version;
return pkgs[i];
} | static fnpkg *get_loaded_pkg_by_filename(const char *fname,
const char **version) {
int i;
if (fname == NULL) {
return NULL;
}
for (i = 0; i < n_pkgs; i++) {
if (!strcmp(fname, pkgs[i]->fname)) {
if (version != NULL) {
*version = pkgs[i]->version;... | get_loaded_pkg_by_filename | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
user_var *get_local_scalar_by_name(const char *s, int *err) {
user_var *u;
u = get_user_var_by_name(s);
if (!u)
return 0;
if (u->type == GRETL_TYPE_DOUBLE)
return u;
gretl_errmsg_set("loop index must be a scalar");
*err = 37;
return 0;
} | static user_var *get_local_scalar_by_name(const char *s, int *err) {
user_var *u = get_user_var_by_name(s);
if (u == NULL) {
return NULL;
} else if (u->type != GRETL_TYPE_DOUBLE) {
gretl_errmsg_set("loop index must be a scalar");
*err = E_TYPES;
return NULL;
} else {
return u;
}
} | get_local_scalar_by_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_log(int v, double *logvec, const DATASET *dset) {
int t;
double xx;
for (t = dset->t1; t <= dset->t2; ++t) {
xx = dset->Z[v][t];
if (fabs(xx) <= 1.797693134862316e308 && xx > 0.0) {
logvec[t] = log(xx);
} else {
logvec[t] = NAN;
set_gretl_warning(2);
}
}
return 0;
} | static int get_log(int v, double *logvec, const DATASET *dset) {
double xx;
int t, err = 0;
for (t = dset->t1; t <= dset->t2 && !err; t++) {
xx = dset->Z[v][t];
if (na(xx) || xx <= 0.0) {
logvec[t] = NADBL;
set_gretl_warning(W_GENMISS);
} else {
logvec[t] = log(xx);
}
}
ret... | get_log | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_logtrans(const char *s) { return s && *s != 84 && strchr(s, 108); } | static int get_logtrans(const char *s) {
if (s != NULL) {
if (*s != 'T' && strchr(s, 'l')) {
return 1;
}
}
return 0;
} | get_logtrans | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *get_longopt(int ci, gretlopt opt) {
int i;
int got_ci;
got_ci = 0;
for (i = 0; gretl_opts[i].ci; ++i) {
if (ci == gretl_opts[i].ci) {
if (opt == gretl_opts[i].o)
return gretl_opts[i].longopt;
got_ci = 1;
} else if (got_ci) {
return "??";
}
}
return "??";
} | static const char *get_longopt(int ci, gretlopt opt) {
int i, got_ci = 0;
for (i = 0; gretl_opts[i].ci; i++) {
if (gretl_opts[i].ci == ci) {
if (gretl_opts[i].o == opt) {
return gretl_opts[i].longopt;
}
got_ci = 1;
} else if (got_ci) {
break;
}
}
return "??";
} | get_longopt | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
LOOP_MODEL *get_loop_model_by_line(LOOPSET *loop, int lno, int *err) {
int i;
int n;
LOOP_MODEL *lmods;
n = loop->n_loop_models;
for (i = 0; i < n; ++i) {
if (lno == loop->lmodels[i].lineno)
return &loop->lmodels[i];
}
lmods = (LOOP_MODEL *)realloc(loop->lmodels, 96LL * (n + 1));
if (lmods) {... | static LOOP_MODEL *get_loop_model_by_line(LOOPSET *loop, int lno, int *err) {
LOOP_MODEL *lmods;
int n = loop->n_loop_models;
int i;
#if LOOP_DEBUG > 1
fprintf(stderr, "get_loop_model_by_line: loop->n_loop_models = %d\n",
loop->n_loop_models);
#endif
for (i = 0; i < n; i++) {
if (loop->lmodels... | get_loop_model_by_line | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
LOOP_PRINT *get_loop_print_by_line(LOOPSET *loop, int lno, int *err) {
int i;
int np;
LOOP_PRINT *prns;
np = loop->n_prints;
for (i = 0; i < np; ++i) {
if (lno == loop->prns[(long)i].lineno)
return &loop->prns[(long)i];
}
prns = (LOOP_PRINT *)realloc(loop->prns, (long)(np + 1) << 6);
if (prns... | static LOOP_PRINT *get_loop_print_by_line(LOOPSET *loop, int lno, int *err) {
LOOP_PRINT *prns;
int i, np = loop->n_prints;
for (i = 0; i < np; i++) {
if (loop->prns[i].lineno == lno) {
return &loop->prns[i];
}
}
prns = realloc(loop->prns, (np + 1) * sizeof *prns);
if (prns == NULL) {
*e... | get_loop_print_by_line | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_loop_renaming() { return loop_renaming; } | int get_loop_renaming(void) { return loop_renaming; } | get_loop_renaming | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double get_mackinnon_pvalue(adf_info *ainfo) {
_BOOL4 v1;
int T;
double result;
int v4;
int asy;
v1 = ainfo->kmax > 0 || ainfo->order > 0;
asy = v1;
if (v1)
T = 0;
else
T = ainfo->T;
if ((ainfo->flags & 2) != 0)
result = get_urc_pvalue(ainfo->tau, T, ainfo->niv, ainfo->det);
else
... | static double get_mackinnon_pvalue(adf_info *ainfo) {
int asy = (ainfo->kmax > 0 || ainfo->order > 0);
int niv, T = asy ? 0 : ainfo->T;
double pval;
if (ainfo->flags & ADF_EG_RESIDS) {
niv = ainfo->niv;
} else {
niv = 1;
}
pval = get_urc_pvalue(ainfo->tau, T, niv, ainfo->det);
if (!na(pval)) {... | get_mackinnon_pvalue | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
MahalDist *get_mahal_distances(const int *list, DATASET *dset, gretlopt opt,
PRN *prn, int *err) {
MahalDist *md;
md = mahal_dist_new(list, dset->n);
if (md) {
*err = real_mahalanobis_distance(list, dset, opt, md, prn);
if (*err) {
free_mahal_dist(md);
return 0;... | MahalDist *get_mahal_distances(const int *list, DATASET *dset, gretlopt opt,
PRN *prn, int *err) {
MahalDist *md = mahal_dist_new(list, dset->n);
if (md == NULL) {
*err = E_ALLOC;
} else {
*err = real_mahalanobis_distance(list, dset, opt, md, prn);
if (*err) {
fre... | get_mahal_distances | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *get_mangled_name_by_id(int v) {
int i;
for (i = 0; i < n_mnames; ++i) {
if (v == mnames[i].v)
return mnames[i].s;
}
return 0;
} | static char *get_mangled_name_by_id(int v) {
int i;
for (i = 0; i < n_mnames; i++) {
if (mnames[i].v == v) {
return mnames[i].s;
}
}
return NULL;
} | get_mangled_name_by_id | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_mask_count(const char *mask, int n) {
int i;
int k;
k = 0;
for (i = 0; i < n; ++i) {
if (mask[i])
++k;
}
return k;
} | static int get_mask_count(const char *mask, int n) {
int i, k = 0;
for (i = 0; i < n; i++) {
if (mask[i])
k++;
}
return k;
} | get_mask_count | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *get_matrix_by_name(const char *name) {
gretl_matrix *ret;
user_var *u;
ret = 0;
if (name) {
if (*name) {
u = get_user_var_of_type_by_name(name, GRETL_TYPE_MATRIX);
if (u)
return (gretl_matrix *)user_var_get_value(u);
}
}
return ret;
} | gretl_matrix *get_matrix_by_name(const char *name) {
gretl_matrix *ret = NULL;
if (name != NULL && *name != '\0') {
user_var *u;
u = get_user_var_of_type_by_name(name, GRETL_TYPE_MATRIX);
if (u != NULL) {
ret = user_var_get_value(u);
}
}
return ret;
} | get_matrix_by_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *get_matrix_copy_by_name(const char *name, int *err) {
gretl_matrix *ret;
const gretl_matrix *m;
m = get_matrix_by_name(name);
ret = 0;
if (m) {
ret = gretl_matrix_copy(m);
if (!ret)
*err = 12;
} else {
*err = 14;
}
return ret;
} | gretl_matrix *get_matrix_copy_by_name(const char *name, int *err) {
gretl_matrix *m = get_matrix_by_name(name);
gretl_matrix *ret = NULL;
if (m == NULL) {
*err = E_UNKVAR;
} else {
ret = gretl_matrix_copy(m);
if (ret == NULL) {
*err = E_ALLOC;
}
}
return ret;
} | get_matrix_copy_by_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void get_matrix_def(NODE *t, parser *p, int *sub) {
NODE *v3;
char cexp;
NODE *n;
cexp = 0;
if (p->sym == 47) {
lex(p);
if (!p->err && p->sym == 48) {
lex(p);
return;
}
while (p->ch) {
if (p->err)
break;
n = expr(p);
if (p->err)
break;
p->er... | static void get_matrix_def(NODE *t, parser *p, int *sub) {
NODE *n;
char cexp = 0;
#if SDEBUG
fprintf(stderr, "get_matrix_def, p->sym = %d ('%s')\n", p->sym,
getsymb(p->sym));
#endif
if (p->sym == G_LCB) {
lex(p);
if (!p->err && p->sym == G_RCB) {
lex(p);
return;
}
while... | get_matrix_def | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const gretl_matrix *get_matrix_mask() {
check_for_state();
return state->matmask;
} | const gretl_matrix *get_matrix_mask(void) {
check_for_state();
return state->matmask;
} | get_matrix_mask | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_matrix_mask_nobs() {
int n;
int i;
n = 0;
check_for_state();
if (state->matmask) {
for (i = 0; i < state->matmask->rows; ++i) {
if (state->matmask->val[i] != 0.0)
++n;
}
}
return n;
} | int get_matrix_mask_nobs(void) {
int n = 0;
check_for_state();
if (state->matmask != NULL) {
int i;
for (i = 0; i < state->matmask->rows; i++) {
if (state->matmask->val[i] != 0.0) {
n++;
}
}
}
return n;
} | get_matrix_mask_nobs | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_matrix_size(gretl_matrix *a, gretl_matrix *b, int *r, int *c) {
int err;
err = 0;
if (a) {
*r = a->rows;
*c = b->cols;
if (b && (b->rows != *r || b->cols != *c))
return 36;
} else if (b) {
*r = b->rows;
*c = b->cols;
} else {
*c = 0;
*r = *c;
}
return err;
} | static int get_matrix_size(gretl_matrix *a, gretl_matrix *b, int *r, int *c) {
int err = 0;
if (a != NULL) {
*r = a->rows;
*c = b->cols;
if (b != NULL && (b->rows != *r || b->cols != *c)) {
err = E_NONCONF;
}
} else if (b != NULL) {
*r = b->rows;
*c = b->cols;
} else {
*r = *c... | get_matrix_size | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_matrix_values_via_file(gretl_matrix *m, const char *s) {
int err;
int i;
int j;
double x;
gchar *fname;
FILE *fp;
unsigned long v9;
v9 = __readfsqword(0x28u);
err = 0;
fname = gretl_make_dotpath("matrix.xml.XXXXXX");
if (!fname)
return 12;
fp = gretl_mktemp(fname, "wb");
if (fp) {... | static int get_matrix_values_via_file(gretl_matrix *m, const char *s) {
gchar *fname;
FILE *fp;
int err = 0;
fname = gretl_make_dotpath("matrix.xml.XXXXXX");
if (fname == NULL) {
return E_ALLOC;
}
fp = gretl_mktemp(fname, "wb");
if (fp == NULL) {
g_free(fname);
return E_FOPEN;
}
fputs... | get_matrix_values_via_file | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_max_line_length(FILE *fp, PRN *prn) {
char *v2;
char *v4;
unsigned int c;
int cc;
int maxlen;
int c1;
cc = 0;
maxlen = 0;
while (1) {
c = fgetc(fp);
if (c == -1)
break;
if (c == 13) {
c1 = fgetc(fp);
if (c1 == -1)
break;
c = 10;
if (c1 != 10)
... | static int get_max_line_length(FILE *fp, PRN *prn) {
int c, c1, cc = 0;
int maxlen = 0;
while ((c = fgetc(fp)) != EOF) {
if (c == 0x0d) {
c1 = fgetc(fp);
if (c1 == EOF) {
break;
} else if (c1 == 0x0a) {
c = c1;
} else {
c = 0x0a;
ungetc(c1, fp);
... | get_max_line_length | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretlopt get_merge_opts(gretlopt opt) {
gretlopt merge_opt;
merge_opt = OPT_NONE;
if ((opt & 0x80000) != 0)
merge_opt = OPT_T;
if ((opt & 0x100000) != 0)
merge_opt |= 0x100000u;
if ((opt & 0x800000) != 0)
return merge_opt | 0x800000;
return merge_opt;
} | gretlopt get_merge_opts(gretlopt opt) {
gretlopt merge_opt = OPT_NONE;
if (opt & OPT_T) {
merge_opt |= OPT_T;
}
if (opt & OPT_U) {
merge_opt |= OPT_U;
}
if (opt & OPT_X) {
merge_opt |= OPT_X;
}
return merge_opt;
} | get_merge_opts | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_midas_frequency(const DATASET *dset, int m) {
if (dset->pd == 1 && (m == 4 || m == 12))
return m;
if (dset->pd == 4 && m == 3)
return 12;
if (dset->pd == 4 || dset->pd == 12)
return midas_days_to_freq(dset->pd, m);
return 0;
} | int get_midas_frequency(const DATASET *dset, int m) {
if (dset->pd == 1 && (m == 4 || m == 12)) {
return m;
} else if (dset->pd == 4 && m == 3) {
return 12;
} else if (dset->pd == 4 || dset->pd == 12) {
return midas_days_to_freq(dset->pd, m);
}
return 0;
} | get_midas_frequency | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_midas_pd(int pd, int m, int *err) {
int mpd;
mpd = 0;
if (pd == 1) {
if (m == 4 || m == 12)
return m;
else
*err = 17;
} else if (pd == 4) {
if (m == 3) {
return 12;
} else if (m == midas_days_per_period(5, 4)) {
return 5;
} else if (m == midas_days_per_period... | static int get_midas_pd(int pd, int m, int *err) {
int mpd = 0;
if (pd == 1) {
if (m != 4 && m != 12) {
*err = E_INVARG;
} else {
mpd = m;
}
} else if (pd == 4) {
if (m == 3) {
mpd = 12;
} else if (m == midas_days_per_period(5, 4)) {
mpd = 5;
} else if (m == mida... | get_midas_pd | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *get_midas_term_line(const MODEL *pmod, int i) {
char *v2;
int err;
int n;
int l1;
int l2;
gretl_bundle *b;
char *ret;
gretl_array *A;
const char *lname;
unsigned long v12;
v12 = __readfsqword(0x28u);
A = (gretl_array *)gretl_model_get_data(pmod, "midas_info");
b = 0;
ret = 0;
if (A)... | char *get_midas_term_line(const MODEL *pmod, int i) {
gretl_array *A = gretl_model_get_data(pmod, "midas_info");
gretl_bundle *b = NULL;
char *ret = NULL;
if (A != NULL) {
int n = gretl_array_get_length(A);
if (i >= 0 && i < n) {
b = gretl_array_get_bundle(A, i);
}
}
if (b != NULL) {
... | get_midas_term_line | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_mle_gradient(double *b, double *g, int n, BFGS_CRIT_FUNC llfunc,
void *p) {
int v6;
int err;
int i;
int j;
int k;
int t;
int v;
nlspec *spec;
double x;
gretl_matrix *m;
unsigned long v16;
v16 = __readfsqword(0x28u);
spec = (nlspec *)p;
err = 0;
update_coeff_va... | static int get_mle_gradient(double *b, double *g, int n, BFGS_CRIT_FUNC llfunc,
void *p) {
nlspec *spec = (nlspec *)p;
gretl_matrix *m;
double x;
int i, j, k, t;
int err = 0;
update_coeff_values(b, spec);
i = 0;
for (j = 0; j < spec->nparam && !err; j++) {
if (nls_calc... | get_mle_gradient | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_mle_hessian(double *b, gretl_matrix *H, void *p) {
int err;
int k;
gretl_matrix *uH;
k = H->rows;
if (b)
update_coeff_values(b, (nlspec *)p);
err = execute_genr(*((parser **)p + 32), *((DATASET **)p + 33),
*((PRN **)p + 34));
if (!err) {
uH = get_matrix_by_name((const... | static int get_mle_hessian(double *b, gretl_matrix *H, void *p) {
nlspec *spec = (nlspec *)p;
int k = H->rows;
int err;
if (b != NULL) {
update_coeff_values(b, spec);
}
err = execute_genr(spec->hgen, spec->dset, spec->prn);
if (!err) {
gretl_matrix *uH = get_matrix_by_name(spec->hname);
if... | get_mle_hessian | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double get_mle_ll(const double *b, void *p) {
int v3;
int t;
int ta;
int k;
double x;
double xa;
update_coeff_values(b, (nlspec *)p);
if (nl_calculate_fvec((nlspec *)p))
return NAN;
if (*((_DWORD *)p + 5) == 6) {
*((double *)p + 22) = gretl_scalar_get_value((const char *)p + 24, 0);
retur... | static double get_mle_ll(const double *b, void *p) {
nlspec *s = (nlspec *)p;
double x;
int t, k, err;
update_coeff_values(b, s);
err = nl_calculate_fvec(s);
if (err) {
return NADBL;
}
if (s->lhtype == GRETL_TYPE_DOUBLE) {
s->crit = gretl_scalar_get_value(s->lhname, NULL);
return s->crit;... | get_mle_ll | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void *get_mod_assign_result(void *lp, GretlType ltype, NODE *r, int *size,
parser *p) {
double v5;
int saveflags;
int savetarg;
void *ret;
NODE *l;
NODE *op;
NODE *ev;
ret = 0;
if (p->op == 94 || p->op == 95) {
if (ltype == GRETL_TYPE_DOUBLE) {
if (fabs(*(double ... | static void *get_mod_assign_result(void *lp, GretlType ltype, NODE *r,
int *size, parser *p) {
void *ret = NULL;
NODE *l, *op;
if (p->op == INC || p->op == DEC) {
if (ltype == GRETL_TYPE_DOUBLE) {
double x = *(double *)lp;
if (!na(x)) {
x += (p->op == ... | get_mod_assign_result | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
MODEL *get_model_by_ID(int ID) {
int i;
for (i = 0; i < n_obj; ++i) {
if (ostack[i].type == 1 && ID == *(_DWORD *)ostack[i].ptr)
return (MODEL *)ostack[i].ptr;
}
return 0;
} | MODEL *get_model_by_ID(int ID) {
MODEL *pmod;
int i;
for (i = 0; i < n_obj; i++) {
if (ostack[i].type == GRETL_OBJ_EQN) {
pmod = (MODEL *)ostack[i].ptr;
if (pmod->ID == ID) {
return pmod;
}
}
}
return NULL;
} | get_model_by_ID | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
MODEL *get_model_by_name(const char *mname) {
return (MODEL *)get_object_by_name(mname, GRETL_OBJ_EQN, 0);
} | MODEL *get_model_by_name(const char *mname) {
return get_object_by_name(mname, GRETL_OBJ_EQN, NULL);
} | get_model_by_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_model_count() { return gretl_model_count; } | int get_model_count(void) { return gretl_model_count; } | get_model_count | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void get_model_data(MODEL *pmod, const DATASET *dset, gretl_matrix *Q,
gretl_matrix *y) {
int v4;
int v5;
int i;
int ia;
int s;
int sa;
int sb;
int t;
int ta;
int pwe;
int T;
int vy;
int vi;
double xt;
double xta;
double pw1;
double rho;
long sz;
rho = gretl_mo... | static void get_model_data(MODEL *pmod, const DATASET *dset, gretl_matrix *Q,
gretl_matrix *y) {
double rho = gls_rho(pmod);
int qdiff = (rho != 0.0);
int pwe = (pmod->opt & OPT_P);
double xt, pw1 = 0.0;
int i, s, t;
if (pmod->missmask == NULL && !pwe && !qdiff && !pmod->nwt) {
... | get_model_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_model_df(MODEL *pmod) {
unsigned int ncoeff;
unsigned int nobs;
char *v3;
int err;
err = 0;
pmod->ncoeff = *pmod->list - 1;
pmod->dfd = pmod->nobs - pmod->ncoeff;
if (pmod->dfd >= 0) {
pmod->dfn = pmod->ncoeff - pmod->ifc;
} else {
pmod->errcode = 4;
ncoeff = pmod->ncoeff;
nob... | static int get_model_df(MODEL *pmod) {
int err = 0;
pmod->ncoeff = pmod->list[0] - 1;
pmod->dfd = pmod->nobs - pmod->ncoeff;
if (pmod->dfd < 0) {
pmod->errcode = E_DF;
gretl_errmsg_sprintf(_("No. of obs (%d) is less than no. "
"of parameters (%d)"),
... | get_model_df | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void *get_model_object_and_type(const char *name, GretlObjType *type) {
char *v3;
int i;
GretlObjType ti;
void *ret;
ret = 0;
*type = GRETL_OBJ_NULL;
if (!name)
return 0;
for (i = 0; i < n_obj; ++i) {
ti = ostack[i].type;
if (ti == GRETL_OBJ_EQN || ti == GRETL_OBJ_VAR || ti == GRETL_OBJ_SYS... | void *get_model_object_and_type(const char *name, GretlObjType *type) {
void *ret = NULL;
GretlObjType ti;
const char *test;
int i;
*type = GRETL_OBJ_NULL;
if (name == NULL) {
return NULL;
}
for (i = 0; i < n_obj; i++) {
ti = ostack[i].type;
if (ti == GRETL_OBJ_EQN || ti == GRETL_OBJ_VAR ... | get_model_object_and_type | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
MODEL *get_model_record_by_line(LOOPSET *loop, int lno, int *err) {
int i;
int n;
int *modlines;
MODEL **models;
MODEL *pmod;
n = loop->n_models;
for (i = 0; i < n; ++i) {
if (lno == loop->model_lines[i])
return loop->models[i];
}
modlines = (int *)realloc(loop->model_lines, 4LL * (n + 1));... | static MODEL *get_model_record_by_line(LOOPSET *loop, int lno, int *err) {
MODEL **models, *pmod;
int *modlines;
int n = loop->n_models;
int i;
for (i = 0; i < n; i++) {
if (lno == loop->model_lines[i]) {
return loop->models[i];
}
}
modlines = realloc(loop->model_lines, (n + 1) * sizeof *m... | get_model_record_by_line | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_model_submask_size(const MODEL *pmod) {
int n;
n = 0;
if (pmod) {
n = get_submask_length(pmod->submask);
if (n > 0)
--n;
}
return n;
} | int get_model_submask_size(const MODEL *pmod) {
int n = 0;
if (pmod != NULL) {
n = get_submask_length(pmod->submask);
if (n > 0)
n--;
}
return n;
} | get_model_submask_size | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_moments(const gretl_matrix *M, int row, double *skew, double *kurt) {
int cols;
int j;
int ja;
int err;
int n;
double dev;
double s;
double sa;
double s_8;
double s_8a;
double s_16;
double s_24;
if (M)
cols = M->cols;
else
cols = 0;
n = cols;
s = 0.0;
s_8 = 0.0;
s_16... | static int get_moments(const gretl_matrix *M, int row, double *skew,
double *kurt) {
int j, n = gretl_matrix_cols(M);
double dev, s[4] = {0.0};
int err = 0;
for (j = 0; j < n; j++) {
s[0] += gretl_matrix_get(M, row, j);
}
s[0] /= n;
for (j = 0; j < n; j++) {
dev = gretl_m... | get_moments | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_mp_bits() {
int b;
const char *s;
if (globals.gmp_bits > 256)
return globals.gmp_bits;
s = getenv("GRETL_MP_BITS");
if (s && (b = atoi(s), b > 255) && b <= 0x2000)
return b;
else
return 256;
} | int get_mp_bits(void) {
if (globals.gmp_bits > DEFAULT_MP_BITS) {
return globals.gmp_bits;
} else {
char *s = getenv("GRETL_MP_BITS");
int b;
if (s != NULL) {
b = atoi(s);
if (mp_bits_ok(b)) {
return b;
}
}
}
return DEFAULT_MP_BITS;
} | get_mp_bits | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
mt_struct *get_mt_parameter_id_st(int w, int p, int id, uint32_t seed) {
mt_struct *mts;
check32_t ck;
prescr_t pre;
_org_state org;
unsigned long v10;
v10 = __readfsqword(0x28u);
_sgenrand_dc(&org, seed);
if (id <= 0xFFFF) {
if (id >= 0) {
mts = init_mt_search(&ck, &pre, w, p);
if (mts... | mt_struct *get_mt_parameter_id_st(int w, int p, int id, uint32_t seed) {
mt_struct *mts;
prescr_t pre;
_org_state org;
check32_t ck;
_sgenrand_dc(&org, seed);
if (id > 0xffff) {
printf("\"id\" must be less than 65536\n");
return NULL;
}
if (id < 0) {
printf("\"id\" must be positive\n");
... | get_mt_parameter_id_st | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
mt_struct *get_mt_parameter_st(int w, int p, uint32_t seed) {
mt_struct *mts;
check32_t ck;
prescr_t pre;
_org_state org;
unsigned long v8;
v8 = __readfsqword(0x28u);
_sgenrand_dc(&org, seed);
mts = init_mt_search(&ck, &pre, w, p);
if (!mts)
return 0;
if (get_irred_param(&ck, &pre, &org, mts, 0... | mt_struct *get_mt_parameter_st(int w, int p, uint32_t seed) {
mt_struct *mts;
prescr_t pre;
_org_state org;
check32_t ck;
_sgenrand_dc(&org, seed);
mts = init_mt_search(&ck, &pre, w, p);
if (mts == NULL)
return NULL;
if (NOT_FOUND == get_irred_param(&ck, &pre, &org, mts, 0, 0)) {
free_mt_struc... | get_mt_parameter_st | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
mt_struct **get_mt_parameters_st(int w, int p, int start_id, int max_id,
uint32_t seed, int *count) {
int i;
mt_struct **mtss;
mt_struct *template_mts;
check32_t ck;
prescr_t pre;
_org_state org;
unsigned long v16;
v16 = __readfsqword(0x28u);
if (start_id <= max_id &&... | mt_struct **get_mt_parameters_st(int w, int p, int start_id, int max_id,
uint32_t seed, int *count) {
mt_struct **mtss, *template_mts;
int i;
prescr_t pre;
_org_state org;
check32_t ck;
if (start_id > max_id || max_id > 0xffff || start_id < 0) {
printf("\"id\" error\n")... | get_mt_parameters_st | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void get_multiplot_layout(int n, int tseries, int *rows, int *cols) {
if (n > 2) {
if (n > 4) {
if (n > 6) {
if (n > 9) {
if (n > 12) {
if (n > 16)
*rows = 0;
else
*rows = 4;
*cols = *rows;
} else {
*cols... | static void get_multiplot_layout(int n, int tseries, int *rows, int *cols) {
if (n < 3) {
if (tseries) {
*cols = 1;
*rows = 2;
} else {
*cols = 2;
*rows = 1;
}
} else if (n < 5) {
*cols = *rows = 2;
} else if (n < 7) {
*cols = 3;
*rows = 2;
} else if (n < 10) {
... | get_multiplot_layout | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_n_ok_months(const DATASET *dset, CompactMethod default_method,
int *startyr, int *startmon, int *endyr, int *endmon,
int *offset, int *p_any_eop) {
int v9;
int v10;
int y1;
int m1;
int d1;
int y2;
int m2;
int d2;
int any_eop;
int any_sop;
int all_sam... | static int get_n_ok_months(const DATASET *dset, CompactMethod default_method,
int *startyr, int *startmon, int *endyr, int *endmon,
int *offset, int *p_any_eop) {
int y1, m1, d1, y2, m2, d2;
int any_eop, any_sop, all_same;
int skip = 0, pad = 0, nm = -1;
if... | get_n_ok_months | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_named_param(const char *s, MODEL *pmod, int *bnum) {
int i;
char test[40];
unsigned long v7;
v7 = __readfsqword(0x28u);
if ((pmod->ci == 85 || pmod->ci == 78 || pmod->ci == 49 || pmod->ci == 77) &&
pmod->params) {
test[0] = 0;
strncat(test, s, 0x1Fu);
tailstrip(test);
for (i = 0... | static int get_named_param(const char *s, MODEL *pmod, int *bnum) {
if (NONLIST_MODEL(pmod->ci) && pmod->params != NULL) {
char test[VNAMELEN];
int i;
*test = '\0';
strncat(test, s, VNAMELEN - 1);
tailstrip(test);
for (i = 0; i < pmod->nparams; i++) {
if (!strcmp(test, pmod->params[i])... | get_named_param | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_native_db_data(const char *dbbase, SERIESINFO *sinfo, double **Z) {
int v4;
double *v5;
dbnumber x;
int err;
int t;
int v;
int t2;
FILE *fp;
char numstr[40];
unsigned long v14;
v14 = __readfsqword(0x28u);
v = sinfo->v;
err = 0;
fp = open_binfile(dbbase, 16, sinfo->offset, &err);
i... | int get_native_db_data(const char *dbbase, SERIESINFO *sinfo, double **Z) {
char numstr[32];
FILE *fp;
dbnumber x;
int v = sinfo->v;
int t, t2, err = 0;
fp = open_binfile(dbbase, GRETL_NATIVE_DB, sinfo->offset, &err);
if (err) {
return err;
}
t2 = (sinfo->t2 > 0) ? sinfo->t2 : sinfo->nobs - 1;
... | get_native_db_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void get_native_series_comment(SERIESINFO *sinfo, const char *s) {
const char *v2;
const char *sa;
sa = &s[strcspn(s, " ")];
v2 = &sa[strspn(sa, " ")];
series_info_set_description(sinfo, v2);
tailstrip(sinfo->descrip);
} | static void get_native_series_comment(SERIESINFO *sinfo, const char *s) {
s += strcspn(s, " ");
s += strspn(s, " ");
series_info_set_description(sinfo, s);
tailstrip(sinfo->descrip);
} | get_native_series_comment | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_native_series_info(const char *series, SERIESINFO *sinfo,
const char *idxname) {
char *v4;
char *v5;
char pdc;
int n;
int offset;
int gotit;
int err;
FILE *fp;
char stobs[16];
char endobs[16];
char sername[32];
char s2[80];
char s1[1032];
unsigned long v17;... | static int get_native_series_info(const char *series, SERIESINFO *sinfo,
const char *idxname) {
FILE *fp = NULL;
char sername[VNAMELEN];
char s1[1024], s2[72];
char stobs[OBSLEN], endobs[OBSLEN];
char pdc;
int offset = 0;
int gotit = 0, err = 0;
int n;
fp = gretl_fo... | get_native_series_info | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_native_series_obs(SERIESINFO *sinfo, const char *stobs,
const char *endobs) {
char dc;
char *p;
dc = 0;
if (strchr(stobs, 45)) {
dc = 45;
} else if (strchr(stobs, 47)) {
dc = 47;
}
if (dc) {
if (strchr(stobs, dc) - stobs == 4)
strcpy(sinfo->stobs, stobs... | static int get_native_series_obs(SERIESINFO *sinfo, const char *stobs,
const char *endobs) {
char dc = 0;
if (strchr(stobs, '-')) {
dc = '-';
} else if (strchr(stobs, '/')) {
dc = '/';
}
if (dc != 0) {
const char *q = stobs;
const char *p = strchr(stobs, dc)... | get_native_series_obs | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_native_series_pd(SERIESINFO *sinfo, char pdc) {
sinfo->pd = 1;
sinfo->undated = 0;
switch (pdc) {
case 'M':
sinfo->pd = 12;
break;
case 'Q':
sinfo->pd = 4;
break;
case 'B':
sinfo->pd = 5;
break;
case 'S':
sinfo->pd = 6;
break;
case 'D':
sinfo->pd = 7;
brea... | static int get_native_series_pd(SERIESINFO *sinfo, char pdc) {
sinfo->pd = 1;
sinfo->undated = 0;
if (pdc == 'M')
sinfo->pd = 12;
else if (pdc == 'Q')
sinfo->pd = 4;
else if (pdc == 'B')
sinfo->pd = 5;
else if (pdc == 'S')
sinfo->pd = 6;
else if (pdc == 'D')
sinfo->pd = 7;
else if (... | get_native_series_pd | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
Xtab *get_new_xtab(int rv, int cv, const DATASET *dset, int *err) {
int jmatch;
int i;
int j;
int t;
int ta;
int n;
series_table *sti;
series_table *stj;
const char *s1;
const char *s2;
Xtab *tab;
double x1;
double x2;
unsigned long v20;
v20 = __readfsqword(0x28u);
sti = 0;
stj = 0;
... | static Xtab *get_new_xtab(int rv, int cv, const DATASET *dset, int *err) {
series_table *sti = NULL;
series_table *stj = NULL;
const char *s1 = NULL;
const char *s2 = NULL;
double x1 = 0, x2 = 0;
Xtab *tab = NULL;
int imatch, jmatch;
int i, j, t, n = 0;
for (t = dset->t1; t <= dset->t2; t++) {
if... | get_new_xtab | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *get_next_arg(const char *s, int *len, int *err) {
const char *sa;
int par;
int br;
_BOOL4 quoted;
const char *p;
char *arg;
arg = 0;
par = 0;
br = 0;
quoted = 0;
if (s) {
*len = strspn(s, ", ");
sa = &s[*len];
for (p = sa; *p; ++p) {
if (*p == 34 && (p == sa || *(p - 1) !=... | static char *get_next_arg(const char *s, int *len, int *err) {
const char *p;
char *arg = NULL;
int par = 0, br = 0;
int quoted = 0;
int n = 0;
if (s == NULL) {
*err = E_PARSE;
return NULL;
}
*len = strspn(s, ", ");
s += *len;
p = s;
while (*p) {
if (*p == '"' && (p == s || *(p - 1)... | get_next_arg | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_nl_count(const char *s) {
int i;
int nnl;
nnl = 0;
for (i = strlen(s) - 1; i >= 0 && s[i] == 10; --i)
++nnl;
return nnl;
} | static int get_nl_count(const char *s) {
int i, n = strlen(s) - 1;
int nnl = 0;
for (i = n; i >= 0; i--) {
if (s[i] == '\n')
nnl++;
else
break;
}
return nnl;
} | get_nl_count | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_nls_derivs(int T, double *g, DATASET *gdset, void *p) {
double v5;
double v6;
parm *v7;
double v8;
int err;
int j;
int t;
int k;
int i;
int v;
int s;
double *gi;
double x;
nlspec *spec;
gretl_matrix *m;
unsigned long v21;
v21 = __readfsqword(0x28u);
spec = (nlspec *)p;
err... | static int get_nls_derivs(int T, double *g, DATASET *gdset, void *p) {
nlspec *spec = (nlspec *)p;
double *gi;
double x;
int j, t, k;
int err = 0;
if (g != NULL) {
gi = g;
} else if (gdset != NULL) {
gi = gdset->Z[2];
} else {
return 1;
}
k = 0;
for (j = 0; j < spec->nparam && !er... | get_nls_derivs | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretlopt get_normtest_option(NODE *n, parser *p) {
gretlopt opt;
char *s;
opt = OPT_NONE;
if (n && n->t != 85) {
if (n->t == 60) {
s = n->v.str;
if (!strcmp(s, "swilk")) {
return OPT_W;
} else if (!strcmp(s, "lillie")) {
return OPT_L;
} else if (!strcmp(s, "jbera")) ... | static gretlopt get_normtest_option(NODE *n, parser *p) {
gretlopt opt = OPT_NONE;
if (null_node(n)) {
;
} else if (n->t == STR) {
const char *s = n->v.str;
if (!strcmp(s, "swilk")) {
opt = OPT_W;
} else if (!strcmp(s, "lillie")) {
opt = OPT_L;
} else if (!strcmp(s, "jbera")) {
... | get_normtest_option | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretlopt get_npcorr_option(NODE *n, parser *p) {
gretlopt opt;
char *s;
opt = OPT_NONE;
if (n && n->t != 85) {
s = n->v.str;
if (!strcmp(s, "kendall")) {
return OPT_K;
} else if (!strcmp(s, "spearman")) {
return OPT_S;
} else {
p->err = 17;
}
}
return opt;
} | static gretlopt get_npcorr_option(NODE *n, parser *p) {
gretlopt opt = OPT_NONE;
if (null_node(n)) {
;
} else {
const char *s = n->v.str;
if (!strcmp(s, "kendall")) {
opt = OPT_K;
} else if (!strcmp(s, "spearman")) {
opt = OPT_S;
} else {
p->err = E_INVARG;
}
}
re... | get_npcorr_option | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_ntdum(const int *orig, const int *a2) {
int i;
int n;
n = 0;
for (i = 2; i <= *a2; ++i) {
if (!in_gretl_list(orig, a2[i]))
++n;
}
return n;
} | static int get_ntdum(const int *orig, const int *new) {
int i, n = 0;
for (i = 2; i <= new[0]; i++) {
if (!in_gretl_list(orig, new[i])) {
n++;
}
}
return n;
} | get_ntdum | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void get_number_dims(printval *v, int *lmax, int *rmax) {
int i;
int n;
int na;
printval *s;
char *p;
char tmp[40];
unsigned long v10;
v10 = __readfsqword(0x28u);
for (s = v; s->s[0] == 32; s = (printval *)((char *)s + 1))
;
n = strlen(s->s);
for (i = n - 1; i > 0 && s->s[i] == 32; --i)
-... | static void get_number_dims(struct printval *v, int *lmax, int *rmax) {
char tmp[36];
const char *s = v->s;
char *p;
int i, n;
while (*s == ' ')
s++;
n = strlen(s);
for (i = n - 1; i > 0 && s[i] == ' '; i--) {
n--;
}
*tmp = '\0';
strncat(tmp, s, n);
p = strchr(tmp, '.');
if (p == NULL... | get_number_dims | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void *get_object_by_name(const char *oname, GretlObjType type, int *onum) {
char *name;
int i;
void *ptr;
ptr = 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].typ... | static void *get_object_by_name(const char *oname, GretlObjType type,
int *onum) {
void *ptr = 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 = gretl_... | get_object_by_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_obs_maj_min(const char *obs, int *maj, int *min) {
int np;
np = __isoc99_sscanf(obs, "%d:%d", maj, min);
if (np <= 1)
np = __isoc99_sscanf(obs, "%d.%d", maj, min);
return np == 2;
} | static int get_obs_maj_min(const char *obs, int *maj, int *min) {
int np = sscanf(obs, "%d:%d", maj, min);
if (np < 2) {
np = sscanf(obs, "%d.%d", maj, min);
}
return (np == 2);
} | get_obs_maj_min | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_observation_number(const char *s, const DATASET *dset) {
const char *v2;
int t;
int ta;
int tb;
int tc;
size_t n;
char test[16];
char datestr[24];
unsigned long v11;
v11 = __readfsqword(0x28u);
test[0] = 0;
if (*s == 34)
v2 = s + 1;
else
v2 = s;
strncat(test, v2, 0xFu);
n ... | int get_observation_number(const char *s, const DATASET *dset) {
char test[OBSLEN];
size_t n;
int t;
*test = 0;
strncat(test, (*s == '"') ? s + 1 : s, OBSLEN - 1);
n = strlen(test);
if (test[n - 1] == '"') {
test[n - 1] = '\0';
}
if (dataset_has_markers(dset)) {
for (t = 0; t < dset->n; t++... | get_observation_number | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double get_obsx(const double *obs, int t, int s) {
if (obs)
return obs[t];
else
return (double)s;
} | static double get_obsx(const double *obs, int t, int s) {
return (obs != NULL) ? obs[t] : s;
} | get_obsx | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_offset_nelem(matrix_subspec *spec, const gretl_matrix *m, int *poff,
int *pn) {
int rows;
int cols;
int v6;
int v7;
SelType stype;
int offset;
int nelem;
msel *sel;
msel *sela;
stype = spec->ltype;
sel = &spec->lsel;
offset = 0;
if (m->cols == 1) {
if (stype =... | static int get_offset_nelem(matrix_subspec *spec, const gretl_matrix *m,
int *poff, int *pn) {
SelType stype = spec->ltype;
union msel *sel = &spec->lsel;
int offset = 0, nelem = 0;
if (m->cols == 1) {
if (stype == SEL_ALL) {
nelem = m->rows;
} else {
int rmax =... | get_offset_nelem | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_oldstyle_stack_args(const char *s, char **arg, char **opt1,
char **opt2) {
size_t v4;
int len;
int lena;
char *p1;
char *p2;
p1 = strstr(s, "--length=");
if (p1) {
len = strcspn(p1 + 9, " \n");
*opt1 = gretl_strndup(p1 + 9, len);
}
p2 = strstr(s, "--offset=... | static int get_oldstyle_stack_args(const char *s, char **arg, char **opt1,
char **opt2) {
const char *p1, *p2;
int len;
p1 = strstr(s, "--length=");
if (p1 != NULL) {
len = strcspn(p1 + 9, " \n");
*opt1 = gretl_strndup(p1 + 9, len);
}
p2 = strstr(s, "--offset=");... | get_oldstyle_stack_args | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double get_ols_error_variance(const gretl_vector *y, const gretl_matrix *X,
const gretl_vector *b, int nr) {
int i;
int j;
int k;
int n;
double u;
double s2;
s2 = 0.0;
k = X->cols;
n = X->rows;
for (i = 0; i < n; ++i) {
u = y->val[i];
for (j = 0; j < k; ++j)
... | static double get_ols_error_variance(const gretl_vector *y,
const gretl_matrix *X,
const gretl_vector *b, int nr) {
double u, s2 = 0.0;
int k = X->cols;
int n = X->rows;
int i, j;
for (i = 0; i < n; i++) {
u = y->val[i];
for (j... | get_ols_error_variance | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void get_ols_uhat(const gretl_vector *y, const gretl_matrix *X,
const gretl_vector *b, gretl_vector *uhat) {
int rows;
int cols;
int i;
int j;
int ncoeff;
double uh;
if (b) {
if (b->cols == 1) {
rows = b->rows;
} else if (b->rows == 1) {
rows = b->cols;
} else {
... | static void get_ols_uhat(const gretl_vector *y, const gretl_matrix *X,
const gretl_vector *b, gretl_vector *uhat) {
int ncoeff = gretl_vector_get_length(b);
int n = gretl_vector_get_length(uhat);
int i, j;
double uh;
for (i = 0; i < n; i++) {
uh = y->val[i];
for (j = 0; j < n... | get_ols_uhat | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_ols_vcv(gretl_matrix *V, double *s2) {
if (gretl_invert_general_matrix(V)) {
gretl_matrix_print(V, "get_ols_vcv: inversion failed");
return 1;
} else {
if (s2)
gretl_matrix_multiply_by_scalar(V, *s2);
return 0;
}
} | static int get_ols_vcv(gretl_matrix *V, double *s2) {
if (gretl_invert_general_matrix(V)) {
gretl_matrix_print(V, "get_ols_vcv: inversion failed");
return 1;
}
if (s2 != NULL) {
gretl_matrix_multiply_by_scalar(V, *s2);
}
return 0;
} | get_ols_vcv | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_omp_mnk_min() { return omp_mnk_min; } | int get_omp_mnk_min(void) { return omp_mnk_min; } | get_omp_mnk_min | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_omp_n_threads() { return omp_n_threads; } | int get_omp_n_threads(void) {
#if defined(_OPENMP)
return omp_n_threads;
#else
gretl_warnmsg_set(_("set_omp_n_threads: OpenMP is not enabled"));
return 0;
#endif
} | get_omp_n_threads | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_one_db_series(const char *sername, const char *altname, DATASET *dset,
CompactMethod cmethod, const char *idxname, PRN *prn) {
const char *v6;
char *v8;
CompactMethod this_method;
int err;
int erra;
int v;
double **dbZ;
SERIESINFO sinfo;
unsigned long v19;
v19 = __read... | static int get_one_db_series(const char *sername, const char *altname,
DATASET *dset, CompactMethod cmethod,
const char *idxname, PRN *prn) {
CompactMethod this_method = cmethod;
const char *impname;
SERIESINFO sinfo;
double **dbZ;
int v, err = 0;
s... | get_one_db_series | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_op(char *s) {
int i;
if (*s == 61) {
s[1] = 0;
return 6;
} else if (!strcmp(s, "++")) {
return 94;
} else if (!strcmp(s, "--")) {
return 95;
} else {
if (s[1] == 61) {
for (i = 0; m_assign[i].c; ++i) {
if (*s == m_assign[i].c)
return m_assign[i].op;
}... | static int get_op(char *s) {
if (s[0] == '=') {
s[1] = '\0';
return B_ASN;
}
if (!strcmp(s, "++")) {
return INC;
}
if (!strcmp(s, "--")) {
return DEC;
}
if (s[1] == '=') {
int i;
for (i = 0; m_assign[i].c; i++) {
if (s[0] == m_assign[i].c) {
return m_assign[i].op;... | get_op | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_openblas_details(char **s1, char **s2) {
if (!OB_core[0] || !OB_parallel[0])
return 0;
*s1 = OB_core;
*s2 = OB_parallel;
return 1;
} | int get_openblas_details(char **s1, char **s2) {
if (*OB_core == '\0' || *OB_parallel == '\0') {
return 0;
} else {
*s1 = OB_core;
*s2 = OB_parallel;
return 1;
}
} | get_openblas_details | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *get_opstr(int op) {
int i;
switch (op) {
case 6:
return "=";
case 94:
return "++";
case 95:
return "--";
}
for (i = 0; m_assign[i].c; ++i) {
if (op == m_assign[i].op) {
opstr_0[0] = m_assign[i].c;
opstr_0[1] = 61;
return opstr_0;
}
}
return "??";
} | static char *get_opstr(int op) {
static char opstr[4] = {0};
if (op == B_ASN) {
return "=";
} else if (op == INC) {
return "++";
} else if (op == DEC) {
return "--";
} else {
int i;
for (i = 0; m_assign[i].c; i++) {
if (op == m_assign[i].op) {
opstr[0] = m_assign[i].c;
... | get_opstr | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char **get_opts_for_command(int ci, int *nopt) {
_BOOL4 v2;
_BOOL4 v3;
_BOOL4 v4;
int v6;
int v7;
int v8;
int i;
int ia;
int j;
int got_ci;
int n;
int na;
int nb;
const char **ret;
n = 0;
if (ci != 88) {
v2 = ci == 5 || ci == 6 || ci == 7 || ci == 8 || ci == 28 || ci == 30 ||
... | const char **get_opts_for_command(int ci, int *nopt) {
int i, j, got_ci, n = 0;
const char **ret = NULL;
if (ci != OLS) {
n += vcv_opt_ok(ci);
n += quiet_opt_ok(ci);
n += window_opt_ok(ci);
}
for (i = 0; gretl_opts[i].ci != 0; i++) {
n += (gretl_opts[i].ci == ci);
}
if (n == 0) {
*... | get_opts_for_command | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double get_optval_double(int ci, gretlopt opt, int *err) {
char *val;
char *v4;
double ret;
stored_opt *so;
so = matching_stored_opt(ci, opt);
ret = NAN;
if (so && so->val) {
ret = gretl_double_from_string(so->val, err);
if (err)
ret = generate_scalar(so->val, 0, err);
if (*err) {
... | double get_optval_double(int ci, gretlopt opt, int *err) {
stored_opt *so = matching_stored_opt(ci, opt);
double ret = NADBL;
if (so != NULL && so->val != NULL) {
ret = gretl_double_from_string(so->val, err);
if (err) {
ret = generate_scalar(so->val, NULL, err);
}
if (*err) {
gretl_er... | get_optval_double | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_optval_int(int ci, gretlopt opt, int *err) {
char *val;
char *v4;
char *v5;
int ret;
int status;
stored_opt *so;
const char *longopt;
so = matching_stored_opt(ci, opt);
status = option_parm_status(ci, opt);
ret = 0;
if (so && so->val) {
ret = gretl_int_from_string(so->val, err);
i... | int get_optval_int(int ci, gretlopt opt, int *err) {
stored_opt *so = matching_stored_opt(ci, opt);
int status = option_parm_status(ci, opt);
int ret = 0;
if (so != NULL && so->val != NULL) {
ret = gretl_int_from_string(so->val, err);
if (*err) {
ret = generate_int(so->val, NULL, err);
}
... | get_optval_int | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *get_optval_string(int ci, gretlopt opt) {
stored_opt *so;
so = matching_stored_opt(ci, opt);
if (so)
return so->val;
else
return 0;
} | const char *get_optval_string(int ci, gretlopt opt) {
stored_opt *so = matching_stored_opt(ci, opt);
return (so != NULL) ? so->val : NULL;
} | get_optval_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_orthdev(int v, double *xvec, const DATASET *dset) {
return orthdev_series(dset->Z[v], xvec, dset);
} | static int get_orthdev(int v, double *xvec, const DATASET *dset) {
return orthdev_series(dset->Z[v], xvec, dset);
} | get_orthdev | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_p1_p2(const char *s1, const char *s2, int *p1, int *p2) {
int err;
unsigned long v7;
v7 = __readfsqword(0x28u);
err = 0;
*p1 = gretl_int_from_string(s1, &err);
if (!err)
*p2 = gretl_int_from_string(s2, &err);
return err;
} | static int get_p1_p2(const char *s1, const char *s2, int *p1, int *p2) {
int err = 0;
*p1 = gretl_int_from_string(s1, &err);
if (!err) {
*p2 = gretl_int_from_string(s2, &err);
}
return err;
} | get_p1_p2 | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_pacf(gretl_matrix *A) {
int rows;
int i;
int j;
int ja;
int jb;
int m;
double num;
double den;
double *acf;
double *pacf;
gretl_matrix *phi;
if (A)
rows = A->rows;
else
rows = 0;
m = rows;
acf = A->val;
pacf = &acf[rows];
phi = gretl_matrix_alloc(rows, rows);
if (!ph... | static int get_pacf(gretl_matrix *A) {
int m = gretl_matrix_rows(A);
gretl_matrix *phi;
double *acf = A->val;
double *pacf = acf + m;
double x, num, den;
int i, j;
phi = gretl_matrix_alloc(m, m);
if (phi == NULL) {
return E_ALLOC;
}
gretl_matrix_set(A, 0, 1, acf[0]);
gretl_matrix_set(phi, 0,... | get_pacf | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_package_data_path(const char *fname, char *fullname) {
char *v2;
char *v3;
int err;
char *gfnpath;
char *needle;
const char *needlea;
const char *pkgname;
const char *ppath;
char *p;
err = 0;
*fullname = 0;
pkgname = get_optval_string(90, OPT_K);
if (!pkgname)
return 2;
ppath = ... | int get_package_data_path(const char *fname, char *fullname) {
const char *pkgname;
int err = 0;
*fullname = '\0';
pkgname = get_optval_string(OPEN, OPT_K);
if (pkgname == NULL) {
err = E_DATA;
} else {
const char *ppath;
char *gfnpath;
ppath = get_function_package_path_by_name(pkgname);
... | get_package_data_path | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void *get_packaged_C_function(const char *pkgname, const char *funcname,
void **handle) {
char *v4;
void *funp;
*handle = get_plugin_handle_by_name(pkgname);
if (!*handle)
return 0;
funp = get_function_address(*handle, funcname);
if (!funp) {
v4 = gettext("Couldn't loa... | void *get_packaged_C_function(const char *pkgname, const char *funcname,
void **handle) {
void *funp;
*handle = get_plugin_handle_by_name(pkgname);
if (*handle == NULL) {
return NULL;
}
funp = get_function_address(*handle, funcname);
if (funp == NULL) {
gretl_errmsg_... | get_packaged_C_function | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *get_panel_group_name(const DATASET *dset, int obs) {
int v;
const char *s;
series_table *st;
s = 0;
if (dset) {
if (dset->structure == 2) {
if (dset->pangrps) {
if (obs >= 0 && obs < dset->n) {
v = current_series_index(dset, dset->pangrps);
st = series_get_st... | const char *get_panel_group_name(const DATASET *dset, int obs) {
const char *s = NULL;
if (dataset_is_panel(dset) && dset->pangrps != NULL && obs >= 0 &&
obs < dset->n) {
int v = current_series_index(dset, dset->pangrps);
series_table *st;
if ((st = series_get_string_table(dset, v)) != NULL) {
... | get_panel_group_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
series_table *get_panel_group_table(const DATASET *dset, int maxlen, int *pv) {
int v3;
int vpg;
int altv;
series_table *st;
st = 0;
vpg = 0;
if (dset->pangrps)
vpg = current_series_index(dset, dset->pangrps);
if (vpg > 0 && panel_group_names_ok(dset, maxlen))
st = dset->varinfo[vpg]->st;
if ... | series_table *get_panel_group_table(const DATASET *dset, int maxlen, int *pv) {
series_table *st = NULL;
int vpg = 0;
if (dset->pangrps != NULL) {
vpg = current_series_index(dset, dset->pangrps);
}
if (vpg > 0 && panel_group_names_ok(dset, maxlen)) {
st = dset->varinfo[vpg]->st;
}
if (st == NUL... | get_panel_group_table | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double get_param_scalar(parm *p) {
int err;
double x;
unsigned long v4;
v4 = __readfsqword(0x28u);
x = NAN;
if (!p->bundle)
return gretl_scalar_get_value(p->name, 0);
err = 0;
return gretl_bundle_get_scalar(p->bundle, p->name, &err);
} | static double get_param_scalar(parm *p) {
double x = NADBL;
if (p->bundle != NULL) {
int err = 0;
x = gretl_bundle_get_scalar(p->bundle, p->name, &err);
} else {
x = gretl_scalar_get_value(p->name, NULL);
}
return x;
} | get_param_scalar | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *get_param_vector(parm *p) {
int err;
gretl_matrix *m;
unsigned long v4;
v4 = __readfsqword(0x28u);
m = 0;
if (!p->bundle)
return get_matrix_by_name(p->name);
err = 0;
return gretl_bundle_get_matrix(p->bundle, p->name, &err);
} | static gretl_matrix *get_param_vector(parm *p) {
gretl_matrix *m = NULL;
if (p->bundle != NULL) {
int err = 0;
m = gretl_bundle_get_matrix(p->bundle, p->name, &err);
} else {
m = get_matrix_by_name(p->name);
}
return m;
} | get_param_vector | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
size_t get_payload(void *buf, size_t size, size_t nitems, void *ptr) {
size_t ret;
size_t bufmax;
bufmax = nitems * size;
if (!size || !nitems || !bufmax)
return 0;
if (!*((_QWORD *)ptr + 2))
return 0;
if (bufmax < *((_QWORD *)ptr + 2)) {
memcpy(buf, *((const void **)ptr + 1), bufmax);
*((_... | static size_t get_payload(void *buf, size_t size, size_t nitems, void *ptr) {
struct uploader *ul = ptr;
size_t bufmax = size * nitems;
size_t ret = 0;
if (size == 0 || nitems == 0 || bufmax < 1) {
return 0;
} else if (ul->length == 0) {
return 0;
}
if (ul->length <= bufmax) {
memcpy(buf, ul... | get_payload | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_pcgive_db_data(const char *dbbase, SERIESINFO *sinfo, double **Z) {
int v4;
int err;
int t;
int v;
int t2;
double x;
FILE *fp;
unsigned long v12;
v12 = __readfsqword(0x28u);
v = sinfo->v;
err = 0;
fp = open_binfile(dbbase, 19, sinfo->offset, &err);
if (err)
return err;
if (sinfo... | int get_pcgive_db_data(const char *dbbase, SERIESINFO *sinfo, double **Z) {
FILE *fp;
double x;
int v = sinfo->v;
int t, t2, err = 0;
fp = open_binfile(dbbase, GRETL_PCGIVE_DB, sinfo->offset, &err);
if (err) {
return err;
}
t2 = (sinfo->t2 > 0) ? sinfo->t2 : sinfo->nobs - 1;
for (t = sinfo->t1;... | get_pcgive_db_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_pcgive_series_info(const char *series, SERIESINFO *sinfo) {
char *v2;
char *v3;
char *v5;
int y0;
int p0;
int y1;
int p1;
int gotit;
int err;
int nf;
char *p;
FILE *fp;
char fmt[32];
char dbidx[512];
char line[1032];
unsigned long v18;
v18 = __readfsqword(0x28u);
gotit = 0;
... | static int get_pcgive_series_info(const char *series, SERIESINFO *sinfo) {
FILE *fp;
char dbidx[MAXLEN];
char line[1024];
char fmt[24];
char *p;
int y0, p0, y1, p1;
int nf, gotit = 0;
int err = 0;
strcpy(dbidx, saved_db_name);
p = strstr(dbidx, ".bn7");
if (p != NULL) {
strcpy(p, ".in7");
}... | get_pcgive_series_info | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
fncall *get_pkg_function_call(const char *funcname, const char *pkgname,
const char *pkgpath) {
char *v3;
int err;
fncall *fc;
ufunc *uf;
fnpkg *pkg;
char *mypath;
unsigned long v11;
v11 = __readfsqword(0x28u);
fc = 0;
uf = 0;
pkg = get_function_package_by_name(pkgna... | fncall *get_pkg_function_call(const char *funcname, const char *pkgname,
const char *pkgpath) {
fncall *fc = NULL;
ufunc *uf = NULL;
fnpkg *pkg;
pkg = get_function_package_by_name(pkgname);
if (pkg == NULL) {
int err = 0;
if (pkgpath != NULL) {
pkg = get_functio... | get_pkg_function_call | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char **get_plausible_search_dirs(SearchType stype, int *n_dirs) {
const char *v3;
const char *v4;
const char *v5;
const char *v6;
int err;
char **dirs;
const char *subdir;
char *forcepath;
const char *wd;
char dirname[520];
unsigned long v13;
v13 = __readfsqword(0x28u);
dirs = 0;
*n_dirs = ... | char **get_plausible_search_dirs(SearchType stype, int *n_dirs) {
char **dirs = NULL;
const char *subdir;
char dirname[MAXLEN];
int err = 0;
*n_dirs = 0;
if (stype == FUNCS_SEARCH) {
char *forcepath = getenv("FORCE_GFN_PATH");
if (forcepath != NULL) {
err = strings_array_add(&dirs, n_dirs,... | get_plausible_search_dirs | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *get_plot_field_and_advance(const char *s, char *field,
size_t maxlen, int flag, int *err) {
size_t v5;
char *v7;
char *sa;
const char *sb;
_BOOL4 quoted;
size_t i;
sa = (char *)s;
quoted = 0;
i = 0;
while (((*__ctype_b_loc())[*sa] & 0x2000) != 0)
... | static const char *get_plot_field_and_advance(const char *s, char *field,
size_t maxlen, int flag,
int *err) {
const char *p = s;
int quoted = 0;
size_t i = 0;
while (isspace(*s))
s++;
*field = '\0';
while (*s... | get_plot_field_and_advance | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *get_plotstyle() {
char *p;
strcpy(pstyle_3, gp_style);
p = strrchr(pstyle_3, 46);
if (p)
*p = 0;
return pstyle_3;
} | const char *get_plotstyle(void) {
static char pstyle[32];
char *p;
strcpy(pstyle, gp_style);
p = strrchr(pstyle, '.');
if (p != NULL) {
*p = '\0';
}
return pstyle;
} | get_plotstyle | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void *get_plugin_function(const char *funcname) {
char *v1;
int i;
void *funp;
void *handle;
i = plugin_index_lookup(funcname);
funp = 0;
if (i <= 0) {
fprintf(stderr, "%s: plugin_index_lookup failed\n", funcname);
} else {
handle = get_plugin_handle_by_index(i);
if (handle)
funp = ge... | void *get_plugin_function(const char *funcname) {
int i = plugin_index_lookup(funcname);
void *funp = NULL;
#if !HAVE_GMP
if (i == P_MP_OLS) {
gretl_errmsg_set("GMP is not supported in this build");
return NULL;
}
#endif
if (i > 0) {
void *handle = get_plugin_handle_by_index(i);
if (handle ... | get_plugin_function | 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.