input stringlengths 16 454k | output stringlengths 13 350k | function_name stringlengths 1 100 | repo_name stringlengths 6 43 | category stringclasses 76
values | sample_id stringlengths 22 88 | decompiler stringclasses 1
value | opt_level stringclasses 1
value |
|---|---|---|---|---|---|---|---|
int get_dataset_submask_size(const DATASET *dset) {
int n;
n = 0;
if (dset) {
n = get_submask_length(dset->submask);
if (n > 0)
--n;
}
return n;
} | int get_dataset_submask_size(const DATASET *dset) {
int n = 0;
if (dset != NULL) {
n = get_submask_length(dset->submask);
if (n > 0)
n--;
}
return n;
} | get_dataset_submask_size | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_dataset_t(const double *x, int pos, int t1) {
int k;
k = 0;
while (k <= pos) {
if (fabs(x[t1]) <= 1.797693134862316e308) {
if (k == pos)
return t1;
++k;
}
++t1;
}
return 0;
} | static int get_dataset_t(const double *x, int pos, int t1) {
int t, k = 0;
for (t = t1; k <= pos; t++) {
if (!na(x[t])) {
if (k == pos) {
return t;
}
k++;
}
}
return 0;
} | get_dataset_t | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_date_order(int f0, int fn, DATASET *dset) {
if (f0 > 31 || fn > 31)
return 1;
if (f0 > 12 || fn > 12)
return 3;
if (f0 == 1 && fn == 1 && all_day_ones(dset))
return 3;
return 2;
} | static int get_date_order(int f0, int fn, DATASET *dset) {
if (f0 > 31 || fn > 31) {
return YYYYMMDD;
} else if (f0 > 12 || fn > 12) {
return DDMMYYYY;
} else if (f0 == 1 && fn == 1 && all_day_ones(dset)) {
return DDMMYYYY;
} else {
return MMDDYYYY;
}
} | get_date_order | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double get_date_x(int pd, const char *obs) {
int ed;
double x;
x = 1.0;
if (pd != 5 && pd != 6 && pd != 7 && pd != 52 || strlen(obs) <= 4)
return obs_str_to_double(obs);
ed = get_epoch_day(obs);
if (ed)
return (double)ed;
return x;
} | double get_date_x(int pd, const char *obs) {
double x = 1.0;
if ((pd == 5 || pd == 6 || pd == 7 || pd == 52) && strlen(obs) > 4) {
guint32 ed = get_epoch_day(obs);
if (ed > 0) {
x = ed;
}
} else {
x = obs_str_to_double(obs);
}
return x;
} | get_date_x | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_days_in_month(int m, int y, int wkdays, int julian) {
int v4;
int leap;
int ret;
int i;
int idx;
int dm;
leap = 0;
ret = 0;
if (m == 2) {
if (julian)
v4 = (y & 3) == 0;
else
v4 = leap_year((unsigned char)y);
leap = v4;
}
dm = days_in_month[leap][m];
if (wkdays ==... | int get_days_in_month(int m, int y, int wkdays, int julian) {
int dm, leap = 0;
int ret = 0;
if (m == 2) {
leap = julian ? (y % 4 == 0) : leap_year(y);
}
dm = days_in_month[leap][m];
if (wkdays == 7) {
ret = dm;
} else {
int i, idx = day_of_week_from_ymd(y, m, 1, julian);
for (i = 0; i ... | get_days_in_month | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *get_db_name() { return saved_db_name; } | const char *get_db_name(void) { return saved_db_name; } | get_db_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_db_series_names(const char *idxname, char ***pnames, int *pnv) {
int i;
int ia;
int j;
int nv;
int err;
char **vnames;
FILE *fp;
char line[264];
unsigned long v13;
v13 = __readfsqword(0x28u);
vnames = 0;
err = 0;
fp = gretl_fopen(idxname, "r");
if (!fp)
return 11;
nv = 0;
i ... | static int get_db_series_names(const char *idxname, char ***pnames, int *pnv) {
char line[256];
char **vnames = NULL;
FILE *fp;
int i, j, nv;
int err = 0;
fp = gretl_fopen(idxname, "r");
if (fp == NULL) {
return E_FOPEN;
}
#if DB_DEBUG
fprintf(stderr, "get_db_series_names: opened %s\n", idxname)... | get_db_series_names | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
DEBUG_OUTPUT get_debug_output_func() { return dbg_output; } | DEBUG_OUTPUT get_debug_output_func(void) { return dbg_output; } | get_debug_output_func | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
DEBUG_READLINE get_debug_read_func() { return dbg_readline; } | DEBUG_READLINE get_debug_read_func(void) { return dbg_readline; } | get_debug_read_func | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double get_dec_date(const char *datestr) {
int v2;
int y;
int m;
int d;
int nf;
int ydigits;
double yrday;
double frac;
GDate date;
unsigned long v11;
v11 = __readfsqword(0x28u);
ydigits = 0;
nf = __isoc99_sscanf(datestr, "%d-%d-%d", &y, &m, &d);
if (nf == 3) {
ydigits = strcspn(datestr... | double get_dec_date(const char *datestr) {
GDate date;
int y, m, d, nf;
int ydigits = 0;
double yrday, frac;
nf = sscanf(datestr, YMD_READ_FMT, &y, &m, &d);
if (nf == 3) {
ydigits = strcspn(datestr, "-");
} else if (strchr(datestr, '/') != NULL) {
ydigits = strcspn(datestr, "/");
nf = sscan... | get_dec_date | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double get_default_nls_toler() {
if (default_nls_toler == 0.0)
default_nls_toler = 1.818989403545856e-12;
return default_nls_toler;
} | double get_default_nls_toler(void) {
if (default_nls_toler == 0.0) {
default_nls_toler = pow(DBL_EPSILON, .75);
}
return default_nls_toler;
} | get_default_nls_toler | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *get_density_matrix(NODE *t, double bws, int ctrl, parser *p) {
int v4;
int v5;
int v6;
int free_X;
unsigned int n;
gretlopt opt;
gretl_matrix *(*kdfunc1)(const double *, int, double, gretlopt, int *);
gretl_matrix *(*kdfunc2)(const gretl_matrix *, double, gretlopt, int *);
gretl_matrix *... | static gretl_matrix *get_density_matrix(NODE *t, double bws, int ctrl,
parser *p) {
gretl_matrix *(*kdfunc1)(const double *, int, double, gretlopt, int *);
gretl_matrix *(*kdfunc2)(const gretl_matrix *, double, gretlopt, int *);
gretlopt opt = ctrl ? OPT_O : OPT_NONE;
gre... | get_density_matrix | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *get_derivative_matrix(nlspec *s, int i, int *err) {
gretl_matrix *m;
m = genr_get_output_matrix(s->params[i].dgenr);
if (!m) {
fwrite("get_derivative_matrix: got NULL result\n", 1u, 0x27u, stderr);
*err = 2;
}
return m;
} | static gretl_matrix *get_derivative_matrix(nlspec *s, int i, int *err) {
gretl_matrix *m = genr_get_output_matrix(s->params[i].dgenr);
if (m == NULL) {
fprintf(stderr, "get_derivative_matrix: got NULL result\n");
*err = E_DATA;
}
return m;
} | get_derivative_matrix | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double get_dfgls_pvalue(adf_info *ainfo) {
int v2;
int err;
int T;
int trend;
int PQ;
double pval;
double (*pvfunc)(double, int, int, int, int, int *);
unsigned long v9;
v9 = __readfsqword(0x28u);
pval = NAN;
T = ainfo->T;
err = 0;
pvfunc = (double (*)(double, int, int, int, int, int *))get_p... | static double get_dfgls_pvalue(adf_info *ainfo) {
double (*pvfunc)(double, int, int, int, int, int *);
double pval = NADBL;
int T = ainfo->T;
int PQ, trend, err = 0;
pvfunc = get_plugin_function("dfgls_pvalue");
if (pvfunc == NULL) {
return pval;
}
if (ainfo->kmax == 0 && ainfo->order > 0) {
... | get_dfgls_pvalue | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_diff(int v, double *diffvec, int ci, const DATASET *dset) {
int pd;
int t1;
double v6;
int t;
int t0;
double x0;
double x1;
if (ci == 115)
pd = dset->pd;
else
pd = 1;
t0 = pd;
t1 = dset->t1;
if (t0 >= t1)
t1 = t0;
for (t = t1; t <= dset->t2; ++t) {
if (dset->structure ... | static int get_diff(int v, double *diffvec, int ci, const DATASET *dset) {
double x0, x1;
int t, t0, t1;
t0 = (ci == SDIFF) ? dset->pd : 1;
t1 = (dset->t1 > t0) ? dset->t1 : t0;
for (t = t1; t <= dset->t2; t++) {
if (dset->structure == STACKED_TIME_SERIES &&
panel_unit_first_obs(t, dset)) {
... | get_diff | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_discdum(int v, double val, double *xvec, const DATASET *dset) {
double v4;
int t;
double xt;
for (t = dset->t1; t <= dset->t2; ++t) {
xt = dset->Z[v][t];
if (fabs(xt) <= 1.797693134862316e308) {
if (xt == val)
v4 = 1.0;
else
v4 = 0.0;
xvec[t] = v4;
} else {... | static int get_discdum(int v, double val, double *xvec, const DATASET *dset) {
double xt;
int t;
for (t = dset->t1; t <= dset->t2; t++) {
xt = dset->Z[v][t];
if (na(xt)) {
xvec[t] = NADBL;
} else {
xvec[t] = (xt == val) ? 1.0 : 0.0;
}
}
return 0;
} | get_discdum | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
FreqDist *get_discrete_freq(int v, const DATASET *dset, gretlopt opt,
int *err) {
char *v5;
char *v6;
int v7;
int v8;
double v9;
int i;
int ia;
int ib;
int t;
int ta;
int tb;
int allints;
int nv;
FreqDist *freq;
int *ifreq;
double *ivals;
double *sorted;
d... | FreqDist *get_discrete_freq(int v, const DATASET *dset, gretlopt opt,
int *err) {
FreqDist *freq;
const double *x = dset->Z[v];
int *ifreq = NULL;
double *ivals = NULL;
double *sorted = NULL;
double last;
int i, t, nv;
freq = freq_new(dset->varname[v]);
if (freq == NULL) {... | get_discrete_freq | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_dot_pos(const char *s) {
int i;
int pos;
pos = 0;
i = 0;
while (*s) {
if (*s == 46 || *s == 58 || *s == 44)
return i;
++i;
++s;
}
return pos;
} | static int get_dot_pos(const char *s) {
int i, pos = 0;
for (i = 0; *s != '\0'; i++, s++) {
if (IS_DATE_SEP(*s)) {
pos = i;
break;
}
}
return pos;
} | get_dot_pos | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void *get_dset_matrix_target() { return dset_matrix; } | void *get_dset_matrix_target(void) { return dset_matrix; } | get_dset_matrix_target | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *get_dsn_field(const char *tag, const char *src) {
size_t v2;
char *ret;
char *p;
const char *pa;
char needle[12];
unsigned long v8;
v8 = __readfsqword(0x28u);
ret = 0;
sprintf(needle, "%s=", tag);
p = strstr(src, needle);
if (p) {
pa = &p[strlen(needle)];
if (*pa == 34 || *pa == 39)... | static char *get_dsn_field(const char *tag, const char *src) {
const char *p;
char needle[12];
char *ret = NULL;
sprintf(needle, "%s=", tag);
p = strstr(src, needle);
if (p != NULL) {
p += strlen(needle);
if (*p == '"' || *p == '\'') {
ret = gretl_quoted_string_strdup(p, NULL);
} else {
... | get_dsn_field | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void *get_eachvar_by_name(const char *s, GretlType *t) {
void *ptr;
switch (*t) {
case GRETL_TYPE_LIST:
return get_list_by_name(s);
case GRETL_TYPE_STRINGS:
return get_strings_array_by_name(s);
case GRETL_TYPE_BUNDLE:
return get_bundle_by_name(s);
}
ptr = get_list_by_name(s);
if (ptr) {
... | static void *get_eachvar_by_name(const char *s, GretlType *t) {
void *ptr = NULL;
if (*t == GRETL_TYPE_LIST) {
ptr = get_list_by_name(s);
} else if (*t == GRETL_TYPE_STRINGS) {
ptr = get_strings_array_by_name(s);
} else if (*t == GRETL_TYPE_BUNDLE) {
ptr = get_bundle_by_name(s);
} else {
if ... | get_eachvar_by_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_endobs(char *datestr, int startyr, int startfrac, int pd, int n) {
int endyr;
int endfrac;
endyr = n / pd + startyr;
endfrac = startfrac - 1 + n % pd;
if (endfrac >= pd) {
++endyr;
endfrac -= pd;
}
if (!endfrac) {
--endyr;
endfrac = pd;
}
switch (pd) {
case 1:
sprintf(da... | static int get_endobs(char *datestr, int startyr, int startfrac, int pd,
int n) {
int endyr, endfrac;
endyr = startyr + n / pd;
endfrac = startfrac - 1 + n % pd;
if (endfrac >= pd) {
endyr++;
endfrac -= pd;
}
if (endfrac == 0) {
endyr--;
endfrac = pd;
}
if (pd =... | get_endobs | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
guint32 get_epoch_day(const char *datestr) {
int v2;
int y;
int m;
int d;
int nf;
int ydigits;
GDate date;
unsigned long v9;
v9 = __readfsqword(0x28u);
nf = 0;
ydigits = 0;
if (strchr(datestr, 45)) {
ydigits = strcspn(datestr, "-");
nf = __isoc99_sscanf(datestr, "%d-%d-%d", &y, &m, &d);... | guint32 get_epoch_day(const char *datestr) {
GDate date;
int y, m, d, nf = 0;
int ydigits = 0;
if (strchr(datestr, '-')) {
ydigits = strcspn(datestr, "-");
nf = sscanf(datestr, YMD_READ_FMT, &y, &m, &d);
} else if (strchr(datestr, '/')) {
ydigits = strcspn(datestr, "/");
nf = sscanf(datestr, ... | get_epoch_day | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_eqn_ref(const equation_system *sys, int j) {
int v2;
int i;
int nparm;
int pos;
nparm = 0;
for (i = 0; i < sys->neqns; ++i) {
pos = gretl_list_separator_position(sys->lists[i]);
if (pos <= 0)
v2 = *sys->lists[i] - 1;
else
v2 = pos - 2;
nparm += v2;
if (nparm > j)
... | static int get_eqn_ref(const equation_system *sys, int j) {
int i, pos, nparm = 0;
for (i = 0; i < sys->neqns; i++) {
pos = gretl_list_separator_position(sys->lists[i]);
if (pos > 0) {
nparm += pos - 2;
} else {
nparm += sys->lists[i][0] - 1;
}
if (nparm > j) {
return i;
}... | get_eqn_ref | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
equation_system *get_equation_system_by_name(const char *sname) {
return (equation_system *)get_object_by_name(sname, GRETL_OBJ_SYS, 0);
} | equation_system *get_equation_system_by_name(const char *sname) {
return get_object_by_name(sname, GRETL_OBJ_SYS, NULL);
} | get_equation_system_by_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int *get_exact_list(const gretl_matrix *R) {
int v1;
int n;
int na;
int n_exact;
int i;
int ia;
int j;
int ja;
int col;
int k;
int *list;
list = 0;
n_exact = 0;
for (i = 0; i < R->rows; ++i) {
n = 0;
for (j = 0; j < R->cols && n <= 1; ++j) {
if (R->val[j * R->rows + i] != 0.0)... | static int *get_exact_list(const gretl_matrix *R) {
int *list = NULL;
int n, n_exact = 0;
int i, j;
for (i = 0; i < R->rows; i++) {
n = 0;
for (j = 0; j < R->cols && n < 2; j++) {
if (gretl_matrix_get(R, i, j) != 0.0) {
n++;
}
}
if (n == 1) {
n_exact++;
}
}
if... | get_exact_list | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const gchar *get_export_dotdir() {
const char *v0;
if (!fdot_3) {
v0 = gretl_dotdir();
fdot_3 = (gchar *)g_strdup(v0);
}
return fdot_3;
} | static const gchar *get_export_dotdir(void) {
static gchar *fdot;
if (fdot == NULL) {
fdot = g_strdup(gretl_dotdir());
#ifdef G_OS_WIN32
if (utf8_encoded(fdot)) {
gsize bytes;
gchar *locdot;
locdot = g_locale_from_utf8(fdot, -1, NULL, &bytes, NULL);
if (locdot != NULL) {
g... | get_export_dotdir | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_extra_stats(Summary *s, int i, int t1, int t2, const double *x) {
double *v5;
double *v6;
double *v7;
int err;
unsigned long v13;
v13 = __readfsqword(0x28u);
err = 0;
if (fabs(s->mean[i]) >= 2.220446049250313e-16) {
if (fabs(s->sd[i]) >= 2.220446049250313e-16)
s->cv[i] = fabs(s->sd[i]... | static int get_extra_stats(Summary *s, int i, int t1, int t2, const double *x) {
int err = 0;
if (floateq(s->mean[i], 0.0)) {
s->cv[i] = NADBL;
} else if (floateq(s->sd[i], 0.0)) {
s->cv[i] = 0.0;
} else {
s->cv[i] = fabs(s->sd[i] / s->mean[i]);
}
s->perc05[i] = gretl_quantile(t1, t2, x, 0.05,... | get_extra_stats | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_extra_var(const MODEL *pmod) {
if (pmod->ci == 99 || pmod->ci == 84)
return gretl_model_get_int(pmod, "offset_var");
if (pmod->ci == 30)
return gretl_model_get_int(pmod, "cens_var");
return 0;
} | static int get_extra_var(const MODEL *pmod) {
if (COUNT_MODEL(pmod->ci)) {
return gretl_model_get_int(pmod, "offset_var");
} else if (pmod->ci == DURATION) {
return gretl_model_get_int(pmod, "cens_var");
} else {
return 0;
}
} | get_extra_var | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double get_extreme_eigenvalue(gretl_matrix *m, int getmax, int *err) {
int rows;
double *val;
double ev;
gretl_matrix *v;
ev = 0.0 / 0.0;
v = gretl_symmetric_matrix_eigenvals(m, 0, err);
if (!*err) {
if (v) {
if (v->cols == 1) {
rows = v->rows;
} else if (v->rows == 1) {
r... | static double get_extreme_eigenvalue(gretl_matrix *m, int getmax, int *err) {
double ev = 0.0 / 0.0;
gretl_matrix *v;
v = gretl_symmetric_matrix_eigenvals(m, 0, err);
if (!*err) {
int n = gretl_vector_get_length(v);
if (getmax) {
ev = v->val[n - 1];
} else {
ev = v->val[0];
}
... | get_extreme_eigenvalue | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *get_filename_extension(const char *fname) {
char *ext;
ext = strrchr(fname, 46);
if (ext && strchr(ext, 47))
return 0;
return ext;
} | static const char *get_filename_extension(const char *fname) {
const char *ext = strrchr(fname, '.');
if (ext != NULL && strchr(ext, '/')) {
ext = NULL;
}
#ifdef WIN32
if (ext != NULL && strchr(ext, '\\')) {
ext = NULL;
}
#endif
return ext;
} | get_filename_extension | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
long get_filesize(const char *fname) {
stat buf;
unsigned long v3;
v3 = __readfsqword(0x28u);
if (gretl_stat(fname, &buf))
return -1;
else
return buf.st_size;
} | static long get_filesize(const char *fname) {
struct stat buf;
int err;
err = gretl_stat(fname, &buf);
return (err) ? -1 : buf.st_size;
} | get_filesize | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *get_final_string_arg(parser *p, NODE *t, int sym, int eat_last) {
char c;
int wrapped;
int strvar;
int i;
int ia;
int paren;
_BOOL4 quoted;
int close;
int started;
int n;
NODE *ret;
const char *s;
const char *src;
const char *s_0;
char tmp[40];
unsigned long v22;
v22 = __readfsq... | static NODE *get_final_string_arg(parser *p, NODE *t, int sym, int eat_last) {
const char *src = NULL;
int n, wrapped = 0;
int strvar = 0;
while (p->ch == ' ') {
parser_getc(p);
}
if (!varargs_func(sym)) {
src = p->point - 1;
n = gretl_namechar_spn(src);
if (n > 0 && n < VNAMELEN && testc... | get_final_string_arg | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_first_panel_period(DATASET *dset) {
double v1;
double v2;
int i;
int d;
double xa;
double x;
xa = date_as_double(0, dset->panel_pd, dset->panel_sd0);
v1 = log10((double)dset->panel_pd);
d = (int)ceil(v1);
x = xa - floor(xa);
for (i = 0; i < d; ++i)
x = 10.0 * x;
if (x - floor(x) <= ... | static int get_first_panel_period(DATASET *dset) {
double x = date_as_double(0, dset->panel_pd, dset->panel_sd0);
int i, d = ceil(log10(dset->panel_pd));
int ret = 0;
x -= floor(x);
for (i = 0; i < d; i++) {
x *= 10;
}
x = (x - floor(x) > 0.5) ? ceil(x) : floor(x);
ret = x - 1;
return ret;
} | get_first_panel_period | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double *get_fit_or_resid(const MODEL *pmod, DATASET *dset, ModelDataIndex idx,
char *vname, gchar **pdesc, int *err) {
double v7;
unsigned int ID;
char *v9;
unsigned int v10;
char *v11;
unsigned int v12;
char *v13;
unsigned int v14;
char *v15;
unsigned int v16;
char *v17;
... | double *get_fit_or_resid(const MODEL *pmod, DATASET *dset, ModelDataIndex idx,
char *vname, gchar **pdesc, int *err) {
const double *src = NULL;
double *ret = NULL;
int t;
if (idx == M_H) {
src = gretl_model_get_data(pmod, "garch_h");
} else if (idx == M_AHAT) {
src = gretl_m... | get_fit_or_resid | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
FITRESID *get_fit_resid(const MODEL *pmod, const DATASET *dset, int *err) {
int t;
int dv;
double *uhat;
double *yhat;
gretl_matrix *uh;
gretl_matrix *yh;
FITRESID *fr;
char *dvname;
uhat = pmod->uhat;
yhat = pmod->yhat;
dv = -1;
if (!special_depvar(pmod)) {
dv = gretl_model_get_depvar(pmod... | FITRESID *get_fit_resid(const MODEL *pmod, const DATASET *dset, int *err) {
double *uhat = pmod->uhat;
double *yhat = pmod->yhat;
FITRESID *fr;
int t, dv = -1;
if (!special_depvar(pmod)) {
dv = gretl_model_get_depvar(pmod);
if (dv < 0 || dv >= dset->v) {
*err = E_DATA;
return NULL;
}
... | get_fit_resid | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_fit_type(gnuplot_info *gi) {
int err;
const char *ftype;
ftype = get_optval_string(plot_ci, OPT_F);
err = 0;
if (!ftype || !*ftype)
return 2;
if (!strcmp(ftype, "none")) {
gi->flags |= 0x40u;
} else if (!strcmp(ftype, "linear")) {
gi->fit = PLOT_FIT_OLS;
} else if (!strcmp(ftype, "q... | static int get_fit_type(gnuplot_info *gi) {
const char *ftype = get_optval_string(plot_ci, OPT_F);
int err = 0;
if (ftype == NULL || *ftype == '\0') {
err = E_DATA;
} else if (!strcmp(ftype, "none")) {
gi->flags |= GPT_FIT_OMIT;
} else if (!strcmp(ftype, "linear")) {
gi->fit = PLOT_FIT_OLS;
} e... | get_fit_type | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_fitted_line(gnuplot_info *gi, const DATASET *dset, gchar **targ) {
gretl_matrix *v4;
int rows;
double v6;
GptFlags flags;
double v8;
int allow_err;
int err;
int k;
int T;
gretl_matrix *y;
gretl_matrix *X;
double s2;
gretl_matrix *b;
gretl_matrix *V;
const double *xvar;
double x0;... | static int get_fitted_line(gnuplot_info *gi, const DATASET *dset,
gchar **targ) {
gretl_matrix *y = NULL;
gretl_matrix *X = NULL;
gretl_matrix *b = NULL;
gretl_matrix *V = NULL;
const double *yvar, *xvar = NULL;
double x0, s2 = 0, *ps2 = NULL;
int allow_err = 0;
int err = 0;
... | get_fitted_line | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
FITRESID *get_forecast(MODEL *pmod, int t1, int t2, int pre_n, DATASET *dset,
gretlopt opt, int *err) {
FITRESID *fr;
if (pmod->errcode) {
*err = 2;
return 0;
} else {
fr = fit_resid_new_for_model(pmod, dset, t1, t2, pre_n, err);
if (!*err) {
*err = real_get_fcast(fr,... | FITRESID *get_forecast(MODEL *pmod, int t1, int t2, int pre_n, DATASET *dset,
gretlopt opt, int *err) {
FITRESID *fr;
if (pmod->errcode) {
*err = E_DATA;
return NULL;
}
fr = fit_resid_new_for_model(pmod, dset, t1, t2, pre_n, err);
if (!*err) {
*err = real_get_fcast(fr, pm... | get_forecast | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *get_forecast_matrix(int idx, int *err) {
gretl_matrix *ret;
gretl_matrix *M;
ret = 0;
M = 0;
if (idx == 81) {
M = fcast_matrix;
} else if (idx == 82) {
M = fcerr_matrix;
}
if (M) {
ret = gretl_matrix_copy(M);
if (!ret)
*err = 12;
} else {
*err = 30;
}
retur... | gretl_matrix *get_forecast_matrix(int idx, int *err) {
gretl_matrix *ret = NULL;
gretl_matrix *M = NULL;
if (idx == M_FCAST) {
M = fcast_matrix;
} else if (idx == M_FCSE) {
M = fcerr_matrix;
}
if (M == NULL) {
*err = E_BADSTAT;
} else {
ret = gretl_matrix_copy(M);
if (ret == NULL) {
... | get_forecast_matrix | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_forecast_method(Forecast *fc, MODEL *pmod, const DATASET *dset,
gretlopt opt) {
int dyn_ok;
int dyn_errs_ok;
int err;
dyn_ok = 0;
dyn_errs_ok = 0;
err = incompatible_options(opt, (gretlopt)&stru_40008);
if (err)
return err;
fc->dvlags = 0;
fc->method = 0;
if (dse... | static int get_forecast_method(Forecast *fc, MODEL *pmod, const DATASET *dset,
gretlopt opt) {
int dyn_ok = 0;
int dyn_errs_ok = 0;
int err;
err = incompatible_options(opt, OPT_D | OPT_S);
if (err) {
return err;
}
fc->dvlags = NULL;
fc->method = FC_STATIC;
if (dat... | get_forecast_method | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_foreign_indent() {
int i;
int n;
int ret;
const char *s;
ret = 100;
for (i = 0; i < foreign_n_lines; ++i) {
n = 0;
for (s = foreign_lines[i]; *s == 32 || *s == 9; ++s)
++n;
if (n < ret)
ret = n;
}
return ret;
} | static int get_foreign_indent(void) {
const char *s;
int i, n, ret = 100;
for (i = 0; i < foreign_n_lines; i++) {
n = 0;
s = foreign_lines[i];
while (*s == ' ' || *s == '\t') {
n++;
s++;
}
if (n < ret) {
ret = n;
}
}
return ret;
} | get_foreign_indent | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gchar *get_foreign_scriptpath(int lang) {
int i;
for (i = 0;; ++i) {
if (i >= 5)
return 0;
if (lang == foreign_map[i].lang)
break;
}
if (!foreign_map[i].scriptpath)
foreign_map[i].scriptpath = gretl_make_dotpath(foreign_map[i].scriptname);
return foreign_map[i].scriptpath;
} | static gchar *get_foreign_scriptpath(int lang) {
int i, n = G_N_ELEMENTS(foreign_map);
for (i = 0; i < n; i++) {
if (foreign_map[i].lang == lang) {
if (foreign_map[i].scriptpath == NULL) {
foreign_map[i].scriptpath =
gretl_make_dotpath(foreign_map[i].scriptname);
}
return ... | get_foreign_scriptpath | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_format_offset(PLOTGROUP *grp) {
int L;
int i;
int n;
L = 6;
for (i = 0; i < grp->nplots; ++i) {
if (grp->plots[i].bool)
n = strlen(grp->plots[i].bool);
else
n = strlen(grp->plots[i].varname);
if (n > L)
L = n;
}
return L + 2;
} | static int get_format_offset(PLOTGROUP *grp) {
int L = 6;
int i, n;
for (i = 0; i < grp->nplots; i++) {
if (grp->plots[i].bool != NULL) {
n = strlen(grp->plots[i].bool);
} else {
n = strlen(grp->plots[i].varname);
}
if (n > L) {
L = n;
}
}
return L + 2;
} | get_format_offset | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
FreqDist *get_freq(int varno, const DATASET *dset, double fmin, double fwid,
int nbins, int params, gretlopt opt, int *err) {
int nbinsa;
int varnoa;
int n;
int t;
int k;
double xmin;
double xmax;
double binwidth;
FreqDist *freq;
const double *x;
double rshift;
double xx;
un... | FreqDist *get_freq(int varno, const DATASET *dset, double fmin, double fwid,
int nbins, int params, gretlopt opt, int *err) {
FreqDist *freq;
const double *x;
double xx, xmin, xmax;
double binwidth = fwid;
int t, k, n;
if (is_string_valued(dset, varno)) {
return get_string_freq(varno... | get_freq | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_full_filename(const char *fname, char *fullname, gretlopt opt) {
int err;
_BOOL4 script;
char *test;
const gchar *ipath;
script = (opt & 0x40100) != 0;
test = 0;
err = 0;
*fullname = 0;
if (!fname || !*fname)
return 2;
strncat(fullname, fname, 0x1FFu);
if ((opt & 0x400000) != 0)
r... | int get_full_filename(const char *fname, char *fullname, gretlopt opt) {
int script = (opt & (OPT_S | OPT_I)) ? 1 : 0;
char *test = NULL;
int err = 0;
*fullname = '\0';
if (fname == NULL || *fname == '\0') {
return E_DATA;
}
strncat(fullname, fname, MAXLEN - 1);
if (opt & OPT_W) {
return 0;... | get_full_filename | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_full_length_n() {
if (fullset)
return fullset->n;
else
return 0;
} | int get_full_length_n(void) { return (fullset != NULL) ? fullset->n : 0; } | get_full_length_n | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *get_funcerr_message(ExecState *state) {
size_t v1;
char *p;
char *s;
p = state->cmd->param;
if (p && (v1 = strlen(p), v1 == gretl_namechar_spn(p))) {
s = get_string_by_name(p);
if (s)
return s;
} else if (!p) {
return "none";
}
return p;
} | static const char *get_funcerr_message(ExecState *state) {
const char *p = state->cmd->param;
if (p != NULL && strlen(p) == gretl_namechar_spn(p)) {
const char *s = get_string_by_name(p);
if (s != NULL) {
return s;
}
} else if (p == NULL) {
return "none";
}
return p;
} | get_funcerr_message | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void *get_function_address(void *handle, const char *name) {
char *v2;
void *funp;
gchar *munged;
funp = dlsym(handle, name);
if (!funp) {
munged = (gchar *)g_strdup_printf("_%s", name);
funp = dlsym(handle, munged);
if (!funp) {
v2 = dlerror();
fprintf(stderr, "%s\n", v2);
}
... | static void *get_function_address(void *handle, const char *name) {
void *funp;
#ifdef WIN32
funp = GetProcAddress(handle, name);
#else
funp = dlsym(handle, name);
if (funp == NULL) {
gchar *munged = g_strdup_printf("_%s", name);
funp = dlsym(handle, munged);
if (funp == NULL) {
fprintf(stde... | get_function_address | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_function_file_header(const char *fname, char **pdesc, char **pver,
char **pdate, char **pauthor, int *pdfdoc) {
char *v7;
int docdone;
int err;
xmlDocPtr doc;
xmlNodePtr node;
char *tmp;
xmlNodePtr sub;
unsigned long v18;
v18 = __readfsqword(0x28u);
doc = 0;
n... | int get_function_file_header(const char *fname, char **pdesc, char **pver,
char **pdate, char **pauthor, int *pdfdoc) {
xmlDocPtr doc = NULL;
xmlNodePtr node = NULL;
xmlNodePtr sub;
int docdone = 0;
int err = 0;
err = gretl_xml_open_doc_root(fname, "gretl-functions", &doc, &nod... | get_function_file_header | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
ufunc *get_function_from_package(const char *funname, fnpkg *pkg) {
int i;
for (i = 0; i < n_ufuns; ++i) {
if (pkg == ufuns[i]->pkg && !strcmp(funname, ufuns[i]->name))
return ufuns[i];
}
return 0;
} | ufunc *get_function_from_package(const char *funname, fnpkg *pkg) {
int i;
for (i = 0; i < n_ufuns; i++) {
if (ufuns[i]->pkg == pkg && !strcmp(funname, ufuns[i]->name)) {
return ufuns[i];
}
}
return NULL;
} | get_function_from_package | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
ufunc *get_function_override(const char *sf_0, gpointer p) {
const char *sp_0;
gchar *key;
ufunc *uf;
sp_0 = function_package_get_name((fnpkg *)p);
key = (gchar *)g_strdup_printf("%s::%s", sp_0, sf_0);
uf = (ufunc *)g_hash_table_lookup(oht, key);
g_free(key);
return uf;
} | static ufunc *get_function_override(const char *sf, gpointer p) {
const char *sp = function_package_get_name(p);
gchar *key = g_strdup_printf("%s::%s", sp, sf);
ufunc *uf = g_hash_table_lookup(oht, key);
#if 0
if (uf != NULL) {
fprintf(stderr, "'%s': using package override\n", key);
}
#endif
g_free(ke... | get_function_override | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
fnpkg *get_function_package_by_filename(const char *fname, int *err) {
int i;
int ia;
int myerr;
fnpkg *pkg;
pkg = 0;
myerr = 0;
for (i = 0; i < n_pkgs; ++i) {
if (!strcmp(fname, pkgs[i]->fname)) {
pkg = pkgs[i];
break;
}
}
if (!pkg) {
myerr = include_gfn(fname, OPT_NONE, 0);
... | fnpkg *get_function_package_by_filename(const char *fname, int *err) {
fnpkg *pkg = NULL;
int i, myerr = 0;
for (i = 0; i < n_pkgs; i++) {
if (!strcmp(fname, pkgs[i]->fname)) {
pkg = pkgs[i];
break;
}
}
if (pkg == NULL) {
myerr = include_gfn(fname, OPT_NONE, NULL);
if (!myerr) {
... | get_function_package_by_filename | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
fnpkg *get_function_package_by_name(const char *pkgname) {
int i;
int ia;
fnpkg *ret;
gchar *tmp;
if (has_suffix(pkgname, ".gfn") || has_suffix(pkgname, ".zip")) {
tmp = (gchar *)g_strdup(pkgname);
ret = 0;
*strrchr(tmp, 46) = 0;
for (i = 0; i < n_pkgs; ++i) {
if (!strcmp(tmp, pkgs[i]->... | fnpkg *get_function_package_by_name(const char *pkgname) {
int i;
if (has_suffix(pkgname, ".gfn") || has_suffix(pkgname, ".zip")) {
gchar *tmp = g_strdup(pkgname);
gchar *p = strrchr(tmp, '.');
fnpkg *ret = NULL;
*p = '\0';
for (i = 0; i < n_pkgs; i++) {
if (!strcmp(tmp, pkgs[i]->name))... | get_function_package_by_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *get_function_package_path_by_name(const char *pkgname) {
int i;
for (i = 0; i < n_pkgs; ++i) {
if (!strcmp(pkgname, pkgs[i]->name))
return pkgs[i]->fname;
}
return 0;
} | const char *get_function_package_path_by_name(const char *pkgname) {
int i;
for (i = 0; i < n_pkgs; i++) {
if (!strcmp(pkgname, pkgs[i]->name)) {
return pkgs[i]->fname;
}
}
return NULL;
} | get_function_package_path_by_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double get_gdt_version(xmlNodePtr node) {
double v;
xmlChar *tmp;
tmp = (xmlChar *)xmlGetProp(node, "version");
v = 1.0;
if (tmp) {
v = dot_atof((const char *)tmp);
free(tmp);
}
return v;
} | static double get_gdt_version(xmlNodePtr node) {
xmlChar *tmp = xmlGetProp(node, (XUC) "version");
double v = 1.0;
if (tmp != NULL) {
v = dot_atof((char *)tmp);
free(tmp);
}
return v;
} | get_gdt_version | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void *get_genr_function_pointer(int f) {
int i;
for (i = 0; ptrfuncs[i].str; ++i) {
if (f == ptrfuncs[i].id)
return ptrfuncs[i].ptr;
}
return 0;
} | void *get_genr_function_pointer(int f) {
int i;
for (i = 0; ptrfuncs[i].str != NULL; i++) {
if (ptrfuncs[i].id == f) {
return ptrfuncs[i].ptr;
}
}
return NULL;
} | get_genr_function_pointer | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void *get_genr_model(GretlObjType *type) {
if (type)
*type = (GretlObjType)genr_model.type;
return genr_model.ptr;
} | void *get_genr_model(GretlObjType *type) {
if (type != NULL) {
*type = genr_model.type;
}
return genr_model.ptr;
} | get_genr_model | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_genr_model_ID() {
if (genr_model.ptr && genr_model.type == 1)
return *(_DWORD *)genr_model.ptr;
else
return 0;
} | int get_genr_model_ID(void) {
if (genr_model.ptr != NULL && genr_model.type == GRETL_OBJ_EQN) {
MODEL *pmod = genr_model.ptr;
return pmod->ID;
} else {
return 0;
}
} | get_genr_model_ID | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_gfn_info_for_zip(const char *fname, int *pdfdoc, char ***datafiles,
int *n_datafiles) {
int err;
int found;
xmlDocPtr doc;
xmlNodePtr node;
char *s;
xmlNodePtr sub;
unsigned long v13;
v13 = __readfsqword(0x28u);
doc = 0;
node = 0;
found = 0;
err = gretl_xml_open... | static int get_gfn_info_for_zip(const char *fname, int *pdfdoc,
char ***datafiles, int *n_datafiles) {
xmlDocPtr doc = NULL;
xmlNodePtr node = NULL;
xmlNodePtr sub;
int found = 0;
int err = 0;
err = gretl_xml_open_doc_root(fname, "gretl-functions", &doc, &node);
if (err) {... | get_gfn_info_for_zip | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_gfn_special(char *fname) {
int ok;
char *pkgpath;
char pkgname[72];
unsigned long v5;
v5 = __readfsqword(0x28u);
ok = 0;
if (!strchr(fname, 47) && !strchr(fname, 92)) {
pkgname[0] = 0;
strncat(pkgname, fname, 0x3Fu);
*strstr(pkgname, ".gfn") = 0;
pkgpath = gretl_function_package_g... | static int get_gfn_special(char *fname) {
int ok = 0;
if (!strchr(fname, '/') && !strchr(fname, '\\')) {
char *p, pkgname[64];
char *pkgpath;
*pkgname = '\0';
strncat(pkgname, fname, 63);
p = strstr(pkgname, ".gfn");
*p = '\0';
pkgpath = gretl_function_package_get_path(pkgname, PKG_ALL... | get_gfn_special | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void get_global_compact_params(int compfac, int startmin, int endmin,
CompactMethod default_method, int *min_startskip,
int *max_n, int *any_eop, int *all_same,
DATASET *dset) {
int startskip;
int n;
int i;
int n_not_eo... | static void get_global_compact_params(int compfac, int startmin, int endmin,
CompactMethod default_method,
int *min_startskip, int *max_n,
int *any_eop, int *all_same,
... | get_global_compact_params | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double get_gmm_crit(const double *b, void *data) {
int err;
int erra;
update_coeff_values(b, (nlspec *)data);
err = nl_calculate_fvec((nlspec *)data);
if (err) {
fprintf(stderr, "get_gmm_crit: err on nl_calculate_fvec = %d\n", err);
return NAN;
} else {
erra = gmm_update_e((nlspec *)data);
... | static double get_gmm_crit(const double *b, void *data) {
nlspec *s = (nlspec *)data;
int err;
update_coeff_values(b, s);
err = nl_calculate_fvec(s);
if (err) {
fprintf(stderr, "get_gmm_crit: err on nl_calculate_fvec = %d\n", err);
return NADBL;
}
err = gmm_update_e(s);
if (err) {
fprintf... | get_gmm_crit | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_gp_flags(gnuplot_info *gi, gretlopt opt, const int *list,
const DATASET *dset) {
GptFlags flags;
GptFlags v5;
int n_yvars;
int err;
const char *sbase;
n_yvars = *list - 1;
err = 0;
gi->flags = 0;
if ((opt & 0x2000) != 0) {
if ((opt & 0x80000) != 0) {
flags = gi->fla... | static int get_gp_flags(gnuplot_info *gi, gretlopt opt, const int *list,
const DATASET *dset) {
int n_yvars = list[0] - 1;
int err = 0;
gi->flags = 0;
if (opt & OPT_N) {
if (opt & OPT_T) {
gi->flags |= (GPT_TS | GPT_IDX);
n_yvars++;
}
gi->flags |= GPT_FIT_OMI... | get_gp_flags | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretlRGB get_graph_color(int i) {
if ((unsigned int)i >= 8)
return 0;
else
return user_color[i];
} | gretlRGB get_graph_color(int i) {
return (i >= 0 && i < N_GP_LINETYPES) ? user_color[i] : 0;
} | get_graph_color | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void get_gretl_config_from_file(FILE *fp, ConfigPaths *cpaths, char *dbproxy,
int *use_proxy, int *updated, gchar **gptheme) {
char *i;
size_t v7;
int v8;
int v9;
char key[32];
char line[512];
char val[520];
unsigned long v17;
v17 = __readfsqword(0x28u);
for (i = fge... | void get_gretl_config_from_file(FILE *fp, ConfigPaths *cpaths, char *dbproxy,
int *use_proxy, int *updated, gchar **gptheme) {
char line[MAXLEN], key[32], val[MAXLEN];
while (fgets(line, sizeof line, fp) != NULL) {
if (*line == '#') {
continue;
}
if (!strncmp(line,... | get_gretl_config_from_file | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_gretl_digits() { return gretl_digits; } | int get_gretl_digits(void) { return gretl_digits; } | get_gretl_digits | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_gretl_errno() {
int err;
err = gretl_errno;
gretl_errno = 0;
return err;
} | int get_gretl_errno(void) {
int err = gretl_errno;
gretl_errno = 0;
return err;
} | get_gretl_errno | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_gretl_matrix_err() {
int ret;
ret = gretl_matrix_err;
gretl_matrix_err = 0;
return ret;
} | int get_gretl_matrix_err(void) {
int ret = gretl_matrix_err;
gretl_matrix_err = 0;
return ret;
} | get_gretl_matrix_err | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void get_gretl_rc_path(char *rcfile) {
const char *path;
const char *patha;
path = getenv("GRETL_CONFIG_FILE");
if (path) {
*rcfile = 0;
strncat(rcfile, path, 0xFFFu);
} else {
patha = getenv("HOME");
if (patha)
sprintf(rcfile, "%s/.gretl2rc", patha);
else
strcpy(rcfile, ".gre... | void get_gretl_rc_path(char *rcfile) {
char *path = getenv("GRETL_CONFIG_FILE");
if (path != NULL) {
*rcfile = '\0';
strncat(rcfile, path, FILENAME_MAX - 1);
#if 0
fprintf(stderr, "rcfile from env: '%s'\n", rcfile);
#endif
} else {
path = getenv("HOME");
if (path != NULL) {
sprintf(... | get_gretl_rc_path | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
EXEC_CALLBACK get_gui_callback() { return gui_callback; } | EXEC_CALLBACK get_gui_callback(void) { return gui_callback; } | get_gui_callback | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_hac_lag(int T) {
check_for_state();
if (state->user_hac_lag >= 0 && state->user_hac_lag < T - 2)
return state->user_hac_lag;
if (state->auto_hac_lag == 1)
return (int)(pow((double)T / 100.0, 0.2222222222222222) * 4.0);
return (int)(pow((double)T, 0.3333333333333333) * 0.75);
} | int get_hac_lag(int T) {
int h = 0;
check_for_state();
if (state->user_hac_lag >= 0 && state->user_hac_lag < T - 2) {
h = state->user_hac_lag;
} else if (state->auto_hac_lag == AUTO_LAG_WOOLDRIDGE) {
h = 4.0 * pow(T / 100.0, 2.0 / 9.0);
} else {
h = 0.75 * pow(T, 1.0 / 3.0);
}
return h;
} | get_hac_lag | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *get_hf_diffs(const int *list, int ci, double mult,
const DATASET *dset, int *err) {
int i;
int t;
int n;
int v1;
int T;
int s;
double x1;
double dti;
gretl_matrix *dX_0;
double **Z;
double x0;
Z = dset->Z;
n = *list;
v1 = list[1];
T = dset->t2 - ds... | static gretl_matrix *get_hf_diffs(const int *list, int ci, double mult,
const DATASET *dset, int *err) {
gretl_matrix *dX = NULL;
double **Z = dset->Z;
double x0, x1, dti;
int n = list[0];
int v1 = list[1];
int i, vi, s, t, T;
T = dset->t2 - dset->t1 + 1;
dX = gretl_ze... | get_hf_diffs | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_hsk_weights(MODEL *pmod, DATASET *dset, gretlopt opt) {
double *v4;
double v5;
MODEL v6;
gretlopt opta;
DATASET *dseta;
MODEL *pmoda;
int err;
int t;
int shrink;
int oldv;
int t1;
int t2;
int *lcpy;
int *auxlist;
double xx;
MODEL aux;
unsigned long v20;
pmoda = pmod;
dseta... | static int get_hsk_weights(MODEL *pmod, DATASET *dset, gretlopt opt) {
int oldv = dset->v;
int t, t1 = dset->t1, t2 = dset->t2;
int *lcpy = NULL;
int *auxlist = NULL;
int err = 0, shrink = 0;
double xx;
MODEL aux;
if (pmod->ifc) {
lcpy = gretl_list_copy(pmod->list);
} else {
lcpy = copy_ensur... | get_hsk_weights | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_iact_column(gretl_matrix *m, int i, int *err) {
int j;
for (j = 3; j < m->cols; j += 2) {
if (m->val[j * m->rows + i] == 0.0)
return j;
}
*err = resize_listinfo_matrix(m);
if (*err)
return -1;
else
return m->cols - 2;
} | static int get_iact_column(gretl_matrix *m, int i, int *err) {
int j;
for (j = 3; j < m->cols; j += 2) {
if (gretl_matrix_get(m, i, j) == 0) {
return j;
}
}
*err = resize_listinfo_matrix(m);
return *err ? -1 : m->cols - 2;
} | get_iact_column | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_if_state(int code) {
int err;
unsigned long v3;
v3 = __readfsqword(0x28u);
err = 0;
return ifstate(code, 0, &err);
} | static int get_if_state(int code) {
int err = 0;
return ifstate(code, 0, &err);
} | get_if_state | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *get_info_on_series(NODE *n, parser *p) {
int v;
NODE *ret;
ret = get_aux_node(p, 58, 0, 2);
if (ret && (p->flags & 2) != 0) {
if (n->t == 55 && n->vnum >= 0)
v = n->vnum;
else
v = node_get_int(n, p);
if (!p->err)
ret->v.str = (char *)series_info_bundle(p->dset, v, &p->err);
... | static NODE *get_info_on_series(NODE *n, parser *p) {
NODE *ret = aux_bundle_node(p);
if (ret != NULL && starting(p)) {
int v = 0;
if (useries_node(n)) {
v = n->vnum;
} else {
v = node_get_int(n, p);
}
if (!p->err) {
ret->v.b = series_info_bundle(p->dset, v, &p->err);
}
... | get_info_on_series | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *get_initcurv() {
gretl_matrix *ic;
check_for_state();
ic = state->initcurv;
state->initcurv = 0;
return ic;
} | gretl_matrix *get_initcurv(void) {
gretl_matrix *ic;
check_for_state();
ic = state->initcurv;
state->initcurv = NULL;
return ic;
} | get_initcurv | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *get_initvals() {
gretl_matrix *iv;
check_for_state();
iv = state->initvals;
state->initvals = 0;
return iv;
} | gretl_matrix *get_initvals(void) {
gretl_matrix *iv;
check_for_state();
iv = state->initvals;
state->initvals = NULL;
return iv;
} | get_initvals | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_inner_key_id(const char *s, int n, const DATASET *dset, int *err) {
char *v4;
int id;
char vname[40];
unsigned long v10;
v10 = __readfsqword(0x28u);
id = -1;
if (n && n <= 31) {
vname[0] = 0;
strncat(vname, s, n);
if (n == gretl_namechar_spn(vname)) {
id = current_series_index(d... | static int get_inner_key_id(const char *s, int n, const DATASET *dset,
int *err) {
char vname[VNAMELEN];
int id = -1;
if (n == 0 || n >= VNAMELEN) {
*err = E_PARSE;
} else {
*vname = '\0';
strncat(vname, s, n);
if (gretl_namechar_spn(vname) != n) {
gretl_errmsg... | get_inner_key_id | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int *get_inner_keys(const char *s, DATASET *dset, int *err) {
int v3;
const char *sa;
int ikey1;
int ikey2;
int nkeys;
int n;
int *klist;
klist = 0;
ikey2 = -1;
nkeys = 0;
if (strchr(s, 44)) {
n = strcspn(s, ",");
ikey1 = get_inner_key_id(s, n, dset, err);
if (!*err) {
sa = &s[n... | static int *get_inner_keys(const char *s, DATASET *dset, int *err) {
int *klist = NULL;
int ikey1 = -1, ikey2 = -1;
int nkeys = 0;
if (strchr(s, ',') == NULL) {
ikey1 = current_series_index(dset, s);
if (ikey1 < 0) {
gretl_errmsg_sprintf("'%s': no such series", s);
*err = E_UNKVAR;
} e... | get_inner_keys | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix **get_input_matrix_target_by_id(kalman *K, int i) {
gretl_matrix **targ;
targ = 0;
switch (i) {
case 0:
return &K->F;
case 1:
return &K->A;
case 2:
return &K->H;
case 3:
if ((K->flags & 0x80) != 0)
return &K->B;
else
return &K->Q;
case 4:
if ((K->flags &... | static gretl_matrix **get_input_matrix_target_by_id(kalman *K, int i) {
gretl_matrix **targ = NULL;
if (i == K_F) {
targ = &K->F;
} else if (i == K_A) {
targ = &K->A;
} else if (i == K_H) {
targ = &K->H;
} else if (i == K_Q) {
if (kalman_xcorr(K)) {
targ = &K->B;
} else {
targ... | get_input_matrix_target_by_id | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_int_limits(SetKey key, int *min, int *max) {
unsigned int i;
for (i = 0; i <= 0xC; ++i) {
if (key == ilims_2[i].key) {
*min = ilims_2[i].min;
*max = ilims_2[i].max;
return 1;
}
}
return 0;
} | static int get_int_limits(SetKey key, int *min, int *max) {
static struct int_limits ilims[] = {
{HC_VERSION, 0, 4}, {FDJAC_QUAL, 0, 2},
{LBFGS_MEM, 3, 20}, {GRETL_DEBUG, 0, 4},
{DATACOLS, 1, 15}, {PLOT_COLLECT, 0, 2},
{CSV_DIGITS, 1, 25}, {BOOT_ITERS, 499, 999999},
... | get_int_limits | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *get_intcols(const gretl_matrix *m, int *intcast) {
int i;
int j;
int n;
char *ret;
double x;
ret = (char *)malloc(m->cols);
if (ret) {
n = 0;
for (j = 0; j < m->cols; ++j) {
ret[j] = 1;
for (i = 0; i < m->rows; ++i) {
x = m->val[j * m->rows + i];
if (floor(x) != ... | static char *get_intcols(const gretl_matrix *m, int *intcast) {
char *ret = malloc(m->cols);
if (ret != NULL) {
double x;
int i, j, n = 0;
for (j = 0; j < m->cols; j++) {
ret[j] = 1;
for (i = 0; i < m->rows; i++) {
x = gretl_matrix_get(m, i, j);
if (x != floor(x)) {
... | get_intcols | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_interaction_names(const char *s, char *targ1, char *targ2) {
const char *sa;
int ret;
int n1;
int n2;
char *p;
const char *pa;
ret = 0;
*targ2 = 0;
*targ1 = *targ2;
p = strchr(s, 42);
if (!p || strchr(p + 1, 42))
return 0;
sa = &s[strspn(s, " ")];
n1 = gretl_namechar_spn(sa);
pa... | static int get_interaction_names(const char *s, char *targ1, char *targ2) {
const char *p;
int n1, n2, ret = 0;
*targ1 = *targ2 = '\0';
p = strchr(s, '*');
if (p == NULL || strchr(p + 1, '*') != NULL) {
return 0;
}
s += strspn(s, " ");
n1 = gretl_namechar_spn(s);
p++;
p += strspn(p, " ");
... | get_interaction_names | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_inverse(int v, double *xvec, const DATASET *dset) {
int t;
double xt;
for (t = dset->t1; t <= dset->t2; ++t) {
xt = dset->Z[v][t];
if (fabs(xt) > 1.797693134862316e308 || xt == 0.0)
xvec[t] = NAN;
else
xvec[t] = 1.0 / xt;
}
return 0;
} | static int get_inverse(int v, double *xvec, const DATASET *dset) {
double xt;
int t;
for (t = dset->t1; t <= dset->t2; t++) {
xt = dset->Z[v][t];
if (na(xt) || xt == 0.0) {
xvec[t] = NADBL;
} else {
xvec[t] = 1.0 / xt;
}
}
return 0;
} | get_inverse | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *get_io_filename(int lang) {
int i;
for (i = 0; i < 5; ++i) {
if (lang == foreign_map[i].lang)
return foreign_map[i].iofile;
}
return 0;
} | static const char *get_io_filename(int lang) {
int i, n = G_N_ELEMENTS(foreign_map);
for (i = 0; i < n; i++) {
if (foreign_map[i].lang == lang) {
return foreign_map[i].iofile;
}
}
return NULL;
} | get_io_filename | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_irred_param(check32_t *ck, prescr_t *pre, _org_state *org,
mt_struct *mts, int id, int idw) {
int i;
uint32_t a;
for (i = 0; i <= 9999; ++i) {
if (idw)
a = nextA_id(org, mts->ww, id, idw);
else
a = nextA(org, mts->ww);
if (_prescreening_dc(pre, a) == 1 &&
... | static int get_irred_param(check32_t *ck, prescr_t *pre, _org_state *org,
mt_struct *mts, int id, int idw) {
int i;
uint32_t a;
for (i = 0; i < MAX_SEARCH; i++) {
if (idw == 0)
a = nextA(org, mts->ww);
else
a = nextA_id(org, mts->ww, id, idw);
if (NOT_REJECTED =... | get_irred_param | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_bundle *get_kalman_bundle_arg(NODE *n, parser *p) {
gretl_bundle *b;
NODE *e;
b = 0;
e = 0;
switch (n->t) {
case 0x53:
e = (*n->v.bn.n)->L;
break;
case 4:
e = n->L;
break;
case 0x3A:
e = n;
break;
}
if (e && e->t == 58) {
b = e->v.b;
if (gretl_bundle_get_type(b... | static gretl_bundle *get_kalman_bundle_arg(NODE *n, parser *p) {
gretl_bundle *b = NULL;
NODE *e = NULL;
if (n->t == FARGS) {
e = n->v.bn.n[0];
e = e->L;
} else if (n->t == U_ADDR) {
e = n->L;
} else if (n->t == BUNDLE) {
e = n;
}
if (e == NULL || e->t != BUNDLE) {
p->err = E_TYPES;... | get_kalman_bundle_arg | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gp_key_spec *get_keypos_spec(int t) {
int i;
for (i = 0; key_specs[i].id >= 0; ++i) {
if (t == key_specs[i].id)
return &key_specs[i];
}
return 0;
} | gp_key_spec *get_keypos_spec(int t) {
int i;
for (i = 0; key_specs[i].id >= 0; i++) {
if (t == key_specs[i].id) {
return &key_specs[i];
}
}
return NULL;
} | get_keypos_spec | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_lag(int v, int lag, double *xlag, const DATASET *dset) {
int v4;
int t;
int ta;
int t2;
int s;
const double *x;
x = dset->Z[v];
v4 = 0;
if (lag >= 0)
v4 = lag;
t2 = dset->n - 1;
for (t = 0; t < dset->n; ++t)
xlag[t] = NAN;
for (ta = v4; ta <= t2; ++ta) {
s = ta - lag;
if... | static int get_lag(int v, int lag, double *xlag, const DATASET *dset) {
const double *x = dset->Z[v];
int t1 = (lag > 0) ? lag : 0;
int t2 = dset->n - 1;
int t, s;
for (t = 0; t < dset->n; t++) {
xlag[t] = NADBL;
}
for (t = t1; t <= t2; t++) {
s = t - lag;
if (dataset_is_panel(dset) && t / d... | get_lag | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int get_lag_ID(int srcv, int lag, const DATASET *dset) {
int i;
int fd;
char *vname;
const char *parent;
fd = gretl_function_depth();
vname = dset->varname[srcv];
for (i = 1; i < dset->v; ++i) {
if (fd == series_get_stack_level(dset, i) &&
lag == series_get_lag(dset, i)) {
parent = seri... | static int get_lag_ID(int srcv, int lag, const DATASET *dset) {
#if RESPECT_LAG_LEVEL
int fd = gretl_function_depth();
#endif
const char *parent, *vname = dset->varname[srcv];
int i;
for (i = 1; i < dset->v; i++) {
#if RESPECT_LAG_LEVEL
if (series_get_stack_level(dset, i) != fd) {
continue;
}
#en... | get_lag_ID | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *get_lag_list(NODE *l, NODE *r, parser *p) {
int i;
int imax;
int lv;
long fromlag;
int *list;
NODE *ret;
int *srclist;
int *tmp;
unsigned long v13;
v13 = __readfsqword(0x28u);
ret = 0;
if ((p->flags & 2) == 0)
return get_aux_node(p, 0, 0, 0);
list = 0;
srclist = 0;
imax = 1;
l... | static NODE *get_lag_list(NODE *l, NODE *r, parser *p) {
NODE *ret = NULL;
if (starting(p)) {
int *list = NULL, *srclist = NULL;
int i, imin = 1, imax = 1;
int lv = 0;
if (!useries_node(l) && l->t != LIST) {
p->err = E_TYPES;
} else if (r->t != IVEC && r->t != NUM) {
p->err = E_T... | get_lag_list | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double get_last_break() {
return record_or_get_test_result(0.0, 0.0, 0.0, 0.0, 4);
} | double get_last_break(void) {
return record_or_get_test_result(0, 0, 0, 0, GET_TEST_BRK);
} | get_last_break | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double get_last_lnl() {
return record_or_get_test_result(0.0, 0.0, 0.0, 0.0, 3);
} | double get_last_lnl(void) {
return record_or_get_test_result(0, 0, 0, 0, GET_TEST_LNL);
} | get_last_lnl | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void *get_last_model(GretlObjType *type) {
if (type)
*type = (GretlObjType)last_model.type;
return last_model.ptr;
} | void *get_last_model(GretlObjType *type) {
if (type != NULL) {
*type = last_model.type;
}
return last_model.ptr;
} | get_last_model | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
GretlObjType get_last_model_type() { return last_model.type; } | GretlObjType get_last_model_type(void) { return last_model.type; } | get_last_model_type | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *get_last_pvals_matrix(int *err) {
return record_or_get_test_matrix(0, 0, 2, err);
} | gretl_matrix *get_last_pvals_matrix(int *err) {
return record_or_get_test_matrix(NULL, NULL, GET_TEST_PVAL, err);
} | get_last_pvals_matrix | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double get_last_pvalue() {
return record_or_get_test_result(0.0, 0.0, 0.0, 0.0, 2);
} | double get_last_pvalue(void) {
return record_or_get_test_result(0, 0, 0, 0, GET_TEST_PVAL);
} | get_last_pvalue | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void *get_last_result_data(GretlType *type, int *err) {
void *ret;
ret = 0;
if (last_result) {
*type = last_result_type;
if (*type == GRETL_TYPE_MATRIX)
return gretl_matrix_copy(last_result);
else
return gretl_bundle_copy((const gretl_bundle *)last_result, err);
} else {
*type = GRE... | void *get_last_result_data(GretlType *type, int *err) {
void *ret = NULL;
if (last_result == NULL) {
*type = GRETL_TYPE_NONE;
*err = E_BADSTAT;
} else {
*type = last_result_type;
if (*type == GRETL_TYPE_MATRIX) {
ret = gretl_matrix_copy(last_result);
} else {
ret = gretl_bundle_co... | get_last_result_data | 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.