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 process_hf_lags_input(int hf_min, int hf_max, DATASET *dset, int compfac,
int *lf_min, int *lf_max, int *skip_first,
int *n_terms) {
if (dset->pd != 1 && dset->pd != 12 && dset->pd != 4)
return 10;
*lf_min = (int)ceil((double)hf_min / (double)compfac);
*... | static int process_hf_lags_input(int hf_min, int hf_max, DATASET *dset,
int compfac, int *lf_min, int *lf_max,
int *skip_first, int *n_terms) {
if (dset->pd != 1 && dset->pd != 12 && dset->pd != 4) {
return E_PDWRONG;
}
*lf_min = (int)ceil(hf_... | process_hf_lags_input | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int process_import_name_option(char *vname) {
int err;
const char *s;
s = get_optval_string(22, OPT_N);
if (s)
err = check_varname(s);
else
err = 2;
if (!err)
strcpy(vname, s);
return err;
} | static int process_import_name_option(char *vname) {
const char *s = get_optval_string(DATA, OPT_N);
int err = 0;
if (s == NULL) {
err = E_DATA;
} else {
err = check_varname(s);
}
if (!err) {
strcpy(vname, s);
}
return err;
} | process_import_name_option | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int process_lagged_depvar(MODEL *pmod, const DATASET *dset, int **depvar_lags) {
int err;
int i;
int vi;
int lag;
const int *xlist;
int *dvlags;
const char *yname;
const char *parent;
err = 0;
if (has_depvar_lags(pmod, dset)) {
xlist = model_xlist(pmod);
dvlags = (int *)malloc(4LL * *xlist)... | static int process_lagged_depvar(MODEL *pmod, const DATASET *dset,
int **depvar_lags) {
const int *xlist = NULL;
int *dvlags = NULL;
int lag, anylags;
int err = 0;
anylags = has_depvar_lags(pmod, dset);
if (!anylags) {
*depvar_lags = NULL;
return 0;
}
xlist = ... | process_lagged_depvar | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int process_midas_bundle(gretl_bundle *mb, int idx, gretl_matrix **ptheta,
gretl_matrix **pV, int *pmtype, int *ph, int *pminlag,
const char **plname) {
int idxa;
int err;
int i0;
int i;
int j;
int k;
int leader;
int nm;
int minlag;
int maxlag;
int... | static int process_midas_bundle(gretl_bundle *mb, int idx,
gretl_matrix **ptheta, gretl_matrix **pV,
int *pmtype, int *ph, int *pminlag,
const char **plname) {
gretl_array *mt;
gretl_matrix *b, *vcv;
gretl_matrix *thet... | process_midas_bundle | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int process_object_arg(fncall *call, int i, fn_param *fp) {
void *data_0;
fn_arg *arg;
arg = &call->args[i];
if (fp->immut)
return localize_const_object(call, i, fp);
data_0 = arg_get_data_0(arg, GRETL_TYPE_NONE);
return copy_as_arg(fp->name, (GretlType)arg->type, data_0);
} | static int process_object_arg(fncall *call, int i, fn_param *fp) {
fn_arg *arg = &call->args[i];
if (fp->immut) {
return localize_const_object(call, i, fp);
} else {
return copy_as_arg(fp->name, arg->type, arg_get_data(arg, 0));
}
} | process_object_arg | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int process_object_ref_arg(fn_arg *arg, fn_param *fp) {
if (arg->upname)
return user_var_localize(arg->upname, fp->name, (GretlType)fp->type);
else
return localize_object_as_shell(arg, fp);
} | static int process_object_ref_arg(fn_arg *arg, fn_param *fp) {
if (arg->upname != NULL) {
return user_var_localize(arg->upname, fp->name, fp->type);
} else {
return localize_object_as_shell(arg, fp);
}
} | process_object_ref_arg | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int process_outer_key(const char *s, int n_keys, char *name1, char *name2,
gretlopt opt) {
const char *sa;
int n_okeys;
int err;
int n2;
int n1;
n_okeys = 0;
err = 0;
if (strchr(s, 44)) {
n2 = 0;
n1 = strcspn(s, ",");
if (n1 <= 31) {
strncat(name1, s, n1);
... | static int process_outer_key(const char *s, int n_keys, char *name1,
char *name2, gretlopt opt) {
int n_okeys = 0;
int err = 0;
if (strchr(s, ',') == NULL) {
strncat(name1, s, VNAMELEN - 1);
n_okeys = 1;
} else {
int n2 = 0, n1 = strcspn(s, ",");
if (n1 >= VNAMEL... | process_outer_key | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int process_panel_info(xmlNodePtr cur, DATASET *dset, int *repad) {
int pd;
double sd0;
char *tmp;
xmlChar *tmpa;
xmlChar *tmpb;
xmlChar *tmpc;
sd0 = 0.0;
pd = 0;
tmp = (char *)xmlGetProp(cur, "group-names");
if (tmp)
dset->pangrps = tmp;
tmpa = (xmlChar *)xmlGetProp(cur, "time-frequency");
... | static int process_panel_info(xmlNodePtr cur, DATASET *dset, int *repad) {
xmlChar *tmp;
double sd0 = 0.0;
int pd = 0;
tmp = xmlGetProp(cur, (XUC) "group-names");
if (tmp != NULL) {
dset->pangrps = (char *)tmp;
}
tmp = xmlGetProp(cur, (XUC) "time-frequency");
if (tmp != NULL) {
pd = atoi((cons... | process_panel_info | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int process_psd_root(gretl_matrix *L, const gretl_matrix *A, integer rank,
integer *piv) {
int i;
int j;
int err;
int n;
double dj;
double dmax;
gretl_matrix *LL;
n = L->rows;
err = 0;
LL = gretl_matrix_alloc(L->rows, L->rows);
if (!LL)
return 12;
dmax = 0.0;
gretl_ma... | static int process_psd_root(gretl_matrix *L, const gretl_matrix *A,
integer rank, integer *piv) {
gretl_matrix *LL = NULL;
double toler = 1.0e-8;
int i, j, n = L->rows;
int err = 0;
LL = gretl_matrix_alloc(n, n);
if (LL == NULL) {
err = E_ALLOC;
} else {
double dj, d... | process_psd_root | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int process_series_arg(fncall *call, fn_param *fp, fn_arg *arg, DATASET *dset) {
if (arg->type == 19) {
if (fp->immut)
return localize_series_ref(call, arg, fp, dset);
else
return dataset_copy_series_as(dset, arg->val.idnum, fp->name);
} else if (arg->val.px) {
return dataset_add_series_as(d... | static int process_series_arg(fncall *call, fn_param *fp, fn_arg *arg,
DATASET *dset) {
if (arg->type == GRETL_TYPE_USERIES) {
if (fp->immut) {
return localize_series_ref(call, arg, fp, dset);
} else {
return dataset_copy_series_as(dset, arg->val.idnum, fp->name);
... | process_series_arg | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int process_starting_obs(const char *stobs_in, int pd, int *pstructure,
double *psd0, guint32 *ped0, gretlopt opt) {
short opta;
int maj;
int min;
int structure;
int maybe_tseries;
int dated;
int err;
double sd0;
char stobs[24];
unsigned long v19;
opta = opt;
v19 = __re... | static int process_starting_obs(const char *stobs_in, int pd, int *pstructure,
double *psd0, guint32 *ped0, gretlopt opt) {
char stobs[OBSLEN];
int structure = *pstructure;
double sd0 = 0.0;
int maybe_tseries = 1;
int dated = 0;
int err = 0;
if (structure == CROSS_SECTION ... | process_starting_obs | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int process_string_tables(xmlDocPtr doc, xmlNodePtr node, DATASET *dset,
int subset) {
int ntabs;
int err;
int n_strs;
int v;
xmlNodePtr cur;
xmlChar *tmp;
xmlChar *owner;
char **strs;
series_table *st;
unsigned long v16;
v16 = __readfsqword(0x28u);
cur = 0;
ntabs = ... | static int process_string_tables(xmlDocPtr doc, xmlNodePtr node, DATASET *dset,
int subset) {
xmlNodePtr cur = NULL;
xmlChar *tmp;
int ntabs = 0;
int err = 0;
tmp = xmlGetProp(node, (XUC) "count");
if (tmp == NULL) {
err = E_DATA;
} else {
if (sscanf((char *)tmp,... | process_string_tables | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *process_subslice(NODE *l, NODE *r, parser *p) {
int *ivec;
int *v4;
NODE *ret;
ret = 0;
if ((p->flags & 2) == 0)
return get_aux_node(p, 90, 2, 2);
if ((l->t == 54 || l->t == 57 && l->v.str && !*((_DWORD *)l->v.str + 6) &&
*l->v.ivec == 1 && *((_DWORD *)l->v.str + 1) == 1)... | static NODE *process_subslice(NODE *l, NODE *r, parser *p) {
NODE *ret = NULL;
if (starting(p)) {
if (scalar_node(l) && null_or_scalar(r)) {
ret = aux_ivec_node(p, 2);
if (ret != NULL) {
ret->v.ivec[0] = node_get_int(l, p);
if (null_node(r)) {
ret->v.ivec[1] = MSEL_MAX;
... | process_subslice | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int process_tconvert_info(joinspec *jspec, const char *tconvcols,
const char *tconvfmt, const char *keyfmt) {
int nnames;
int i;
int j;
int err;
int *list;
char **fmts;
const char *tkeyfmt;
char *tkeyname;
char **names;
const char *colname;
const char *tmp[2];
unsigned ... | static int process_tconvert_info(joinspec *jspec, const char *tconvcols,
const char *tconvfmt, const char *keyfmt) {
int *list = NULL;
char **names = NULL;
char **fmts = NULL;
const char *colname;
const char *tkeyfmt = NULL;
char *tkeyname = NULL;
int nnames = 0;
int i, ... | process_tconvert_info | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int process_time_dummies(MODEL *pmod, const DATASET *dset, int v) {
int i;
int ia;
int ib;
int n;
n = 0;
for (i = *pmod->list; i > 1; --i) {
if (v <= pmod->list[i])
++n;
}
if (n > 0) {
gretl_model_allocate_param_names(pmod, pmod->ncoeff);
if (pmod->errcode)
return pmod->errcode;... | static int process_time_dummies(MODEL *pmod, const DATASET *dset, int v) {
int i, vi, n = 0;
for (i = pmod->list[0]; i > 1; i--) {
if (pmod->list[i] >= v) {
n++;
}
}
if (n > 0) {
gretl_model_allocate_param_names(pmod, pmod->ncoeff);
if (pmod->errcode) {
return pmod->errcode;
}... | process_time_dummies | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int process_time_key(const char *s, char *tkeyname, char *tkeyfmt) {
int v3;
int err;
char *p;
err = 0;
if (*s == 44) {
strncat(tkeyfmt, s + 1, 0x1Fu);
} else {
p = strchr(s, 44);
if (p) {
v3 = 31;
if ((int)p - (int)s <= 31)
v3 = (_DWORD)p - (_DWORD)s;
strncat(tkeyname... | static int process_time_key(const char *s, char *tkeyname, char *tkeyfmt) {
int err = 0;
if (*s == ',') {
strncat(tkeyfmt, s + 1, 31);
} else {
const char *p = strchr(s, ',');
if (p == NULL) {
strncat(tkeyname, s, VNAMELEN - 1);
} else {
int n = p - s;
n = (n > VNAMELEN - 1)... | process_time_key | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int process_values(DATASET *dset, int t, char *s, int fullv, const int *vlist,
int *n_uflow) {
int v6;
char *v7;
char *sb;
int i;
int k;
int err;
char *test;
double x;
unsigned long v19;
v19 = __readfsqword(0x28u);
k = 1;
err = 0;
gretl_error_clear();
for (i = 1; i < full... | static int process_values(DATASET *dset, int t, char *s, int fullv,
const int *vlist, int *n_uflow) {
char *test;
double x;
int i, k = 1;
int err = 0;
gretl_error_clear();
for (i = 1; i < fullv && !err; i++) {
while (isspace(*s))
s++;
if (vlist != NULL && !in_gretl_... | process_values | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int process_varlist(xmlNodePtr node, DATASET *dset, int probe) {
char *v3;
char *v4;
char *v6;
char *v7;
int v8;
int v9;
char *v10;
int nv;
int i;
int err;
int ci;
int mpd;
int mpc;
int opd;
xmlNodePtr cur;
xmlChar *tmp;
unsigned long v21;
v21 = __readfsqword(0x28u);
tmp = (xmlCha... | static int process_varlist(xmlNodePtr node, DATASET *dset, int probe) {
xmlNodePtr cur;
xmlChar *tmp = xmlGetProp(node, (XUC) "count");
int i, nv = 0, err = 0;
if (tmp != NULL) {
if (sscanf((char *)tmp, "%d", &nv) == 1) {
dset->v = nv + 1;
} else {
gretl_errmsg_set(_("Failed to parse count ... | process_varlist | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int process_varlist_subset(xmlNodePtr node, DATASET *dset, int *fullv,
const int *vlist) {
char *v5;
int v6;
int v7;
int v8;
int i;
int k;
int err;
int wanted;
int nv;
int mpd;
int mpf;
_xmlNode *cur;
xmlChar *tmp;
xmlChar *tmpa;
xmlChar *tmpb;
xmlChar *tmpc;
... | static int process_varlist_subset(xmlNodePtr node, DATASET *dset, int *fullv,
const int *vlist) {
xmlNodePtr cur;
xmlChar *tmp = xmlGetProp(node, (XUC) "count");
int nv = vlist[0];
int i, k, err = 0;
if (tmp != NULL) {
if (sscanf((char *)tmp, "%d", fullv) != 1) {
e... | process_varlist_subset | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int progress_bar_wanted(int opt) {
if (!gretl_in_gui_mode())
return 0;
return opt == 2 || opt == 3 || opt == 6 || opt == 7 || opt == 9 ||
opt == 10 || opt == 14 || opt == 15;
} | static int progress_bar_wanted(int opt) {
if (gretl_in_gui_mode()) {
return (opt == GRAB_IDX || opt == GRAB_DATA || opt == GRAB_NBO_DATA ||
opt == GRAB_FILE || opt == GRAB_FUNC || opt == GRAB_PDF ||
opt == GRAB_PKG || opt == GRAB_FOREIGN);
}
return 0;
} | progress_bar_wanted | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int progress_func(void *clientp, double dltotal, double dlnow, double ultotal,
double ulnow) {
int ret;
ret = 0;
if (*((_DWORD *)clientp + 280)) {
ret =
(*((long (**)(long, double, double))clientp + 139))(1, dlnow, dltotal);
} else if (*((_QWORD *)clientp + 139) && dltotal > 1024.... | static int progress_func(void *clientp, double dltotal, double dlnow,
double ultotal, double ulnow) {
urlinfo *u = (urlinfo *)clientp;
int ret = 0;
if (u->pstarted) {
ret = u->progfunc(dlnow, dltotal, SP_TOTAL);
} else if (u->progfunc != NULL && dltotal > 1024) {
u->progfunc(dl... | progress_func | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void progressive_loop_zero(LOOPSET *loop) {
int i;
int ia;
int ib;
if (loop->cmds) {
for (i = 0; i < loop->n_cmds; ++i) {
if (loop->cmds[i].ci == 100 || loop->cmds[i].ci == 128)
loop->cmds[i].flags &= ~0x40u;
}
}
for (ia = 0; ia < loop->n_loop_models; ++ia)
loop_model_free(&loop->... | static void progressive_loop_zero(LOOPSET *loop) {
int i;
if (loop->cmds != NULL) {
for (i = 0; i < loop->n_cmds; i++) {
if (loop->cmds[i].ci == PRINT || loop->cmds[i].ci == STORE) {
loop->cmds[i].flags &= ~LOOP_CMD_PDONE;
}
}
}
for (i = 0; i < loop->n_loop_models; i++) {
loop... | progressive_loop_zero | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int projgr_(int *n, double *l, double *u, int *nbd, double *x, double *g,
double *sbgnrm) {
double v7;
double v8;
long v9;
double *ga;
double *xa;
int *nbda;
int i__;
int i__1;
double gi;
ga = g - 1;
xa = x - 1;
nbda = nbd - 1;
*sbgnrm = 0.0;
i__1 = *n;
for (i__ = 1; i__ <= i_... | static int projgr_(int *n, double *l, double *u, int *nbd, double *x, double *g,
double *sbgnrm) {
int i__1;
double d__1, d__2;
int i__;
double gi;
--g;
--x;
--nbd;
--u;
--l;
*sbgnrm = 0.;
i__1 = *n;
for (i__ = 1; i__ <= i__1; ++i__) {
gi = g[i__];
if (nbd[i__] != 0... | projgr_ | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int proper_mersenne_exponent(int p) {
return p == 44497 ||
p <= 44497 &&
(p == 23209 ||
p <= 23209 &&
(p == 21701 ||
p <= 21701 &&
(p == 19937 ||
p <= 19937 &&
(p == 1121... | static int proper_mersenne_exponent(int p) {
switch (p) {
case 521:
case 607:
case 1279:
case 2203:
case 2281:
case 3217:
case 4253:
case 4423:
case 9689:
case 9941:
case 11213:
case 19937:
case 21701:
case 23209:
case 44497:
return 1;
default:
return 0;
}
} | proper_mersenne_exponent | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int proto_length(const char *s) {
if (!s)
return 0;
if (!strncmp(s, "http://", 7u))
return 7;
if (!strncmp(s, "https://", 8u))
return 8;
if (!strncmp(s, "ftp://", 6u))
return 6;
return 0;
} | static int proto_length(const char *s) {
if (s == NULL) {
return 0;
} else if (!strncmp(s, "http://", 7)) {
return 7;
} else if (!strncmp(s, "https://", 8)) {
return 8;
} else if (!strncmp(s, "ftp://", 6)) {
return 6;
} else {
return 0;
}
} | proto_length | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double pseries(double a, double b, double x) {
double v3;
double v4;
double v6;
double v7;
double v8;
double v9;
double s;
double sa;
double t;
double ta;
double v;
double n;
double u;
v = (1.0 - b) * x / (a + 1.0);
t = (1.0 - b) * x;
n = 2.0;
s = 0.0;
while (fabs(v) > MACHEP * (1.0... | static double pseries(double a, double b, double x) {
double s, t, u, v, n, t1, z, ai;
ai = 1.0 / a;
u = (1.0 - b) * x;
v = u / (a + 1.0);
t1 = v;
t = u;
n = 2.0;
s = 0.0;
z = MACHEP * ai;
while (fabs(v) > z) {
u = (n - b) * x / n;
t *= u;
v = t / (a + n);
s += v;
n += 1.0;
}... | pseries | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double psi(double x) {
double v2;
double xa;
int i;
int negative;
double nz;
double nza;
double s;
double w;
double y;
double ya;
double yb;
double p;
xa = x;
negative = 0;
nz = 0.0;
if (x <= 0.0) {
negative = 1;
p = floor(x);
if (p == xa) {
mtherr_with_arg("psi", 2, x... | double psi(double x) {
double p, q, nz, s, w, y, z;
int i, n, negative = 0;
nz = 0.0;
if (x <= 0.0) {
negative = 1;
q = x;
p = floor(q);
if (p == q) {
mtherr_with_arg("psi", CEPHES_SING, x);
return MAXNUM;
}
nz = q - p;
if (nz != 0.5) {
if (nz > 0.5) {
p ... | psi | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *ptr_node_get_matrix(NODE *n, parser *p) {
user_var *uv;
uv = ptr_node_get_uvar(n, 57, p);
if (uv)
return (gretl_matrix *)uv->ptr;
else
return 0;
} | static gretl_matrix *ptr_node_get_matrix(NODE *n, parser *p) {
user_var *uv = ptr_node_get_uvar(n, MAT, p);
return uv != NULL ? uv->ptr : NULL;
} | ptr_node_get_matrix | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
user_var *ptr_node_get_uvar(NODE *n, int t, parser *p) {
user_var *uv;
NODE *nb;
uv = 0;
if (n->t == 4) {
nb = n->L;
if (t == nb->t)
uv = nb->uv;
}
if (!uv)
p->err = 37;
return uv;
} | static user_var *ptr_node_get_uvar(NODE *n, int t, parser *p) {
user_var *uv = NULL;
if (n->t == U_ADDR) {
NODE *nb = n->L;
if (nb->t == t) {
uv = nb->uv;
}
}
if (uv == NULL) {
p->err = E_TYPES;
}
return uv;
} | ptr_node_get_uvar | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void purge_quoted_commas(char *s) {
_BOOL4 inquote;
inquote = 0;
while (*s) {
if (*s == 34) {
inquote = !inquote;
} else if (inquote && *s == 44) {
*s = 32;
}
++s;
}
} | static void purge_quoted_commas(char *s) {
int inquote = 0;
while (*s) {
if (*s == '"') {
inquote = !inquote;
} else if (inquote && *s == ',') {
*s = ' ';
}
s++;
}
} | purge_quoted_commas | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void purge_unquoted_spaces(char *s) {
_BOOL4 inquote;
inquote = 0;
while (*s) {
if (*s == 34) {
inquote = !inquote;
} else if (!inquote && *s == 32) {
shift_string_left(s, 1u);
}
++s;
}
} | static void purge_unquoted_spaces(char *s) {
int inquote = 0;
while (*s) {
if (*s == '"') {
inquote = !inquote;
} else if (!inquote && *s == ' ') {
shift_string_left(s, 1);
}
s++;
}
} | purge_unquoted_spaces | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int push_anon_function_arg(fncall *fc, GretlType type, void *value) {
int err;
err = 0;
if (fc && fc->fun) {
if (fc->argc < fc->fun->n_params) {
if (!fc->args)
err = fncall_add_args_array(fc);
} else {
fprintf(stderr, "function %s has %d parameters but argc = %d\n",
fc->... | int push_anon_function_arg(fncall *fc, GretlType type, void *value) {
int err = 0;
if (fc == NULL || fc->fun == NULL) {
err = E_DATA;
} else if (fc->argc >= fc->fun->n_params) {
fprintf(stderr, "function %s has %d parameters but argc = %d\n",
fc->fun->name, fc->fun->n_params, fc->argc);
e... | push_anon_function_arg | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void push_anon_system(equation_system *sys) {
equation_system *old;
old = get_anon_system_at_depth(sys->fd);
if (old) {
sysstack = (GList *)g_list_remove(sysstack, old);
gretl_object_unref(old, GRETL_OBJ_SYS);
}
gretl_object_ref(sys, GRETL_OBJ_SYS);
sysstack = (GList *)g_list_append(sysstack, sys);... | static void push_anon_system(equation_system *sys) {
equation_system *old = get_anon_system_at_depth(sys->fd);
if (old != NULL) {
sysstack = g_list_remove(sysstack, old);
gretl_object_unref(old, GRETL_OBJ_SYS);
}
gretl_object_ref(sys, GRETL_OBJ_SYS);
sysstack = g_list_append(sysstack, sys);
} | push_anon_system | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int push_bn_node(NODE *t, NODE *n) {
int k;
NODE **nn;
k = t->v.bn.n_nodes;
nn = (NODE **)realloc(t->v.bn.n, 8LL * (k + 1));
if (!nn)
return 12;
t->v.bn.n = nn;
t->v.bn.n[k] = n;
++t->v.bn.n_nodes;
return 0;
} | static int push_bn_node(NODE *t, NODE *n) {
NODE **nn;
int k = t->v.bn.n_nodes;
nn = realloc(t->v.bn.n, (k + 1) * sizeof *nn);
if (nn == NULL) {
return E_ALLOC;
}
t->v.bn.n = nn;
t->v.bn.n[k] = n;
t->v.bn.n_nodes += 1;
#if SDEBUG
fprintf(stderr,
"push_bn_node: n_nodes now = %d, "
... | push_bn_node | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int push_col_source_list(nlspec *s, const int *list) {
int cols;
int j;
int n;
int err;
if (s->oc->e)
cols = s->oc->e->cols;
else
cols = 0;
n = cols;
err = add_oc_cols(s, cols, *list);
if (!err) {
for (j = 0; j < *list; ++j)
s->oc->ecols[n + j].v = list[j + 1];
}
return err;
} | static int push_col_source_list(nlspec *s, const int *list) {
int j, n = (s->oc->e != NULL) ? s->oc->e->cols : 0;
int err = add_oc_cols(s, n, list[0]);
if (!err) {
for (j = 0; j < list[0]; j++) {
s->oc->ecols[n + j].v = list[j + 1];
}
}
return err;
} | push_col_source_list | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int push_col_source_matrix(nlspec *s, const char *mname) {
int cols;
int j;
int n;
int err;
gretl_matrix *m;
if (s->oc->e)
cols = s->oc->e->cols;
else
cols = 0;
n = cols;
m = get_matrix_by_name(mname);
err = add_oc_cols(s, n, m->cols);
if (!err) {
for (j = 0; j < m->cols; ++j)
s... | static int push_col_source_matrix(nlspec *s, const char *mname) {
int j, n = (s->oc->e != NULL) ? s->oc->e->cols : 0;
gretl_matrix *m = get_matrix_by_name(mname);
int err = add_oc_cols(s, n, m->cols);
if (!err) {
for (j = 0; j < m->cols; j++) {
strcpy(s->oc->ecols[n + j].mname, mname);
}
}
r... | push_col_source_matrix | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int push_col_source_series(nlspec *s, int v) {
int cols;
int n;
int err;
if (s->oc->e)
cols = s->oc->e->cols;
else
cols = 0;
n = cols;
err = add_oc_cols(s, cols, 1);
if (!err)
s->oc->ecols[n].v = v;
return err;
} | static int push_col_source_series(nlspec *s, int v) {
int n = (s->oc->e != NULL) ? s->oc->e->cols : 0;
int err = add_oc_cols(s, n, 1);
if (!err) {
s->oc->ecols[n].v = v;
}
return err;
} | push_col_source_series | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int push_function_arg(fncall *fc, const char *name, void *uvar, GretlType type,
void *value) {
int err;
err = 0;
if (fc && fc->fun) {
if (fc->argc < fc->fun->n_params) {
if (!fc->args)
err = fncall_add_args_array(fc);
} else {
fprintf(stderr, "function %s has %d ... | int push_function_arg(fncall *fc, const char *name, void *uvar, GretlType type,
void *value) {
int err = 0;
if (fc == NULL || fc->fun == NULL) {
err = E_DATA;
} else if (fc->argc >= fc->fun->n_params) {
fprintf(stderr, "function %s has %d parameters but argc = %d\n",
fc-... | push_function_arg | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int push_function_args(fncall *fc, ...) {
long v1;
long v2;
long v3;
long v4;
long v5;
GretlType *overflow_arg_area;
void **v7;
int i;
int err;
GretlType argtype;
va_list ap;
long v13;
long v14;
long v15;
long v16;
long v17;
va_start(ap, fc);
v3 = va_arg(ap, _QWORD);
v1 = va_arg(a... | int push_function_args(fncall *fc, ...) {
va_list ap;
int argtype;
void *value;
int i, err = 0;
va_start(ap, fc);
for (i = 0; !err; i++) {
argtype = va_arg(ap, int);
if (argtype < 0) {
break;
}
value = va_arg(ap, void *);
err = push_function_arg(fc, NULL, NULL, argtype, value);
... | push_function_args | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int push_function_line(ufunc *fun, char *s, int donate) {
int err;
int n;
int i;
fn_line *lines;
err = 0;
if (string_is_blank(s)) {
++fun->line_idx;
} else {
n = fun->n_lines + 1;
lines = (fn_line *)realloc(fun->lines, 32LL * n);
if (lines) {
i = n - 1;
fun->lines = lines;
... | static int push_function_line(ufunc *fun, char *s, int donate) {
int err = 0;
if (string_is_blank(s)) {
fun->line_idx += 1;
} else {
fn_line *lines;
int n = fun->n_lines + 1;
lines = realloc(fun->lines, n * sizeof *lines);
if (lines == NULL) {
err = E_ALLOC;
} else {
int i =... | push_function_line | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int push_mangled_name(int v, const char *s) {
mangled_name *v3;
tmp_0 = (mangled_name *)realloc(mnames, 16LL * (n_mnames + 1));
if (tmp_0) {
mnames = tmp_0;
tmp_0[n_mnames].v = v;
v3 = &mnames[n_mnames];
v3->s = gretl_strdup(s);
++n_mnames;
return 0;
} else {
destroy_mangled_names()... | static int push_mangled_name(int v, const char *s) {
static struct mangled_name *tmp;
tmp = realloc(mnames, (n_mnames + 1) * sizeof *tmp);
if (tmp == NULL) {
destroy_mangled_names();
return E_ALLOC;
}
mnames = tmp;
mnames[n_mnames].v = v;
mnames[n_mnames].s = gretl_strdup(s);
n_mnames++;
... | push_mangled_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int push_mask(eqdeg_t *eq, int l, int v, uint32_t b, uint32_t c, uint32_t *bbb,
uint32_t *ccc) {
int i;
int j;
int k;
int nbv;
int nbvt;
uint32_t bmask;
uint32_t bmaska;
uint32_t bv_buf[2];
uint32_t bvt_buf[2];
unsigned long v17;
v17 = __readfsqword(0x28u);
k = l;
if (v + eq->sh... | static int push_mask(eqdeg_t *eq, int l, int v, uint32_t b, uint32_t c,
uint32_t *bbb, uint32_t *ccc) {
int i, j, k, nbv, nbvt;
uint32_t bmask, bv_buf[2], bvt_buf[2];
k = l;
if ((eq->shift_s + v) >= eq->www) {
nbv = 1;
bv_buf[0] = 0;
} else if ((v >= eq->shift_t) && (c & eq->bitm... | push_mask | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int push_midas_coeff_array(const MODEL *pmod) {
int err;
gretl_matrix *hfb;
gretl_matrix *mhfb;
err = 0;
mhfb = (gretl_matrix *)gretl_model_get_data(pmod, "hfb");
if (mhfb) {
hfb = gretl_matrix_copy(mhfb);
if (!hfb)
err = 12;
} else {
fwrite("Couldn't retrieve gross midas coeffs\n", 1u,... | static int push_midas_coeff_array(const MODEL *pmod) {
gretl_matrix *mhfb, *hfb;
int err = 0;
mhfb = gretl_model_get_data(pmod, "hfb");
if (mhfb == NULL) {
fprintf(stderr, "Couldn't retrieve gross midas coeffs\n");
err = E_DATA;
} else {
hfb = gretl_matrix_copy(mhfb);
if (hfb == NULL) {
... | push_midas_coeff_array | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void push_object_to_caller(fn_arg *arg) {
user_var_adjust_level(arg->uvar, -1);
user_var_set_name(arg->uvar, arg->upname);
} | static void push_object_to_caller(fn_arg *arg) {
user_var_adjust_level(arg->uvar, -1);
user_var_set_name(arg->uvar, arg->upname);
} | push_object_to_caller | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int push_option_param(int ci, gretlopt opt, char *val) {
return real_push_option(ci, opt, val, 0, 0);
} | int push_option_param(int ci, gretlopt opt, char *val) {
return real_push_option(ci, opt, val, 0, 0);
} | push_option_param | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int push_program_state() {
int err;
set_state *newstate;
err = 0;
if (!n_states)
state_stack = (GPtrArray *)g_ptr_array_new();
if (++state_idx >= n_states) {
newstate = (set_state *)malloc(0x98u);
if (newstate) {
g_ptr_array_add(state_stack, newstate);
++n_states;
} else {
e... | int push_program_state(void) {
set_state *newstate;
int err = 0;
#if SVDEBUG
fprintf(stderr, "push_program_state: n_states = %d\n", n_states);
#endif
if (n_states == 0) {
state_stack = g_ptr_array_new();
}
state_idx++;
if (state_idx < n_states) {
newstate = g_ptr_array_index(state_stack, state... | push_program_state | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int push_scalar_coeff(nlspec *s, double x) {
int nc;
double *coeff;
nc = s->ncoeff;
coeff = (double *)realloc(s->coeff, 8LL * (nc + 1));
if (!coeff)
return 12;
coeff[nc] = x;
s->coeff = coeff;
s->ncoeff = nc + 1;
return 0;
} | static int push_scalar_coeff(nlspec *s, double x) {
double *coeff;
int nc = s->ncoeff;
coeff = realloc(s->coeff, (nc + 1) * sizeof *coeff);
if (coeff == NULL) {
return E_ALLOC;
}
coeff[nc] = x;
#if NLS_DEBUG
fprintf(stderr, "added coeff[%d] = %g\n", nc, x);
#endif
s->coeff = coeff;
s->ncoeff =... | push_scalar_coeff | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void push_series_to_caller(ufunc *u, fn_arg *arg, DATASET *dset) {
const char *upname;
int stack_level;
int v;
v = arg->val.idnum;
if (arg->upname) {
series_decrement_stack_level(dset, v);
if (series_get_stack_level(dset, v) < 0) {
upname = arg->upname;
stack_level = series_get_stack_leve... | static void push_series_to_caller(ufunc *u, fn_arg *arg, DATASET *dset) {
int v = arg->val.idnum;
if (arg->upname == NULL) {
fprintf(stderr, "ERROR in push_series_to_caller: arg->upname is NULL\n");
return;
}
series_decrement_stack_level(dset, v);
if (series_get_stack_level(dset, v) < 0) {
fprin... | push_series_to_caller | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int push_stack(eqdeg_t *eq, uint32_t b, uint32_t c, int v, uint32_t *bbb,
uint32_t *ccc) {
int i;
int ll;
int ncv;
uint32_t cv_buf[2];
unsigned long v14;
v14 = __readfsqword(0x28u);
ll = 0;
if (v + eq->shift_t >= eq->www) {
ncv = 1;
cv_buf[0] = c;
} else {
ncv = 2;
cv_b... | static int push_stack(eqdeg_t *eq, uint32_t b, uint32_t c, int v, uint32_t *bbb,
uint32_t *ccc) {
int i, ll, ncv;
uint32_t cv_buf[2];
ll = 0;
if ((v + eq->shift_t) < eq->www) {
ncv = 2;
cv_buf[0] = c | eq->bitmask[v];
cv_buf[1] = c;
} else {
ncv = 1;
cv_buf[0] = c;
... | push_stack | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int push_vec_coeffs(nlspec *s, gretl_matrix *m, int k) {
int i;
int nc;
double *coeff;
nc = s->ncoeff;
if (!k)
return 2;
coeff = (double *)realloc(s->coeff, 8LL * (nc + k));
if (!coeff)
return 12;
for (i = 0; i < k; ++i)
coeff[nc + i] = m->val[i];
s->coeff = coeff;
s->ncoeff = k + nc;
... | static int push_vec_coeffs(nlspec *s, gretl_matrix *m, int k) {
double *coeff;
int i, nc = s->ncoeff;
if (k == 0) {
return E_DATA;
}
coeff = realloc(s->coeff, (nc + k) * sizeof *coeff);
if (coeff == NULL) {
return E_ALLOC;
}
for (i = 0; i < k; i++) {
coeff[nc + i] = m->val[i];
}
#if NL... | push_vec_coeffs | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void push_verbosity(fncall *call) {
if (gretl_messages_on())
call->flags |= 2u;
if (gretl_echo_on())
call->flags |= 4u;
} | static void push_verbosity(fncall *call) {
if (gretl_messages_on()) {
call->flags |= FC_PREV_MSGS;
}
if (gretl_echo_on()) {
call->flags |= FC_PREV_ECHO;
}
} | push_verbosity | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void put_R_setup_content(FILE *fp) {
const char *export_dotdir;
fwrite("vnum <- as.double(R.version$major) + (as.double(R.version$minor) / "
"10.0)\n",
1u, 0x49u, fp);
fwrite("if (vnum > 2.41) library(utils)\n", 1u, 0x20u, fp);
fwrite("library(stats)\n", 1u, 0xFu, fp);
fwrite("if (vnum <= 1... | static void put_R_setup_content(FILE *fp) {
fputs("vnum <- as.double(R.version$major) + (as.double(R.version$minor) / "
"10.0)\n",
fp);
fputs("if (vnum > 2.41) library(utils)\n", fp);
fputs("library(stats)\n", fp);
fputs("if (vnum <= 1.89) library(ts)\n", fp);
write_R_io_file(fp, get_export_do... | put_R_setup_content | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void put_asts(double pv, PRN *prn) {
if (pv >= 0.01) {
if (pv >= 0.05) {
if (pv < 0.1)
pputs(prn, " *");
} else {
pputs(prn, " **");
}
} else {
pputs(prn, " ***");
}
} | static void put_asts(double pv, PRN *prn) {
if (pv < 0.01) {
pputs(prn, " ***");
} else if (pv < 0.05) {
pputs(prn, " **");
} else if (pv < 0.10) {
pputs(prn, " *");
}
} | put_asts | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int put_dynare_script(const char *buf, FILE *fp) {
int err;
const char *dpath;
FILE *fd;
dpath = gretl_make_dotpath("gretltmp.mod");
err = 0;
fd = gretl_fopen(dpath, "w");
if (fd) {
fputs(buf, fd);
fclose(fd);
fwrite("dynare gretltmp.mod noclearall\n", 1u, 0x1Fu, fp);
} else {
err = 11;... | static int put_dynare_script(const char *buf, FILE *fp) {
gchar *dpath = gretl_make_dotpath("gretltmp.mod");
FILE *fd;
int err = 0;
fd = gretl_fopen(dpath, "w");
if (fd == NULL) {
err = E_FOPEN;
} else {
fputs(buf, fd);
fclose(fd);
fputs("dynare gretltmp.mod noclearall\n", fp);
}
g_fr... | put_dynare_script | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void put_foreign_buffer(const char *buf, FILE *fp) {
char line[1032];
unsigned long v3;
v3 = __readfsqword(0x28u);
bufgets_init(buf);
while (bufgets(line, 0x400u, buf)) {
fputs(line, fp);
if (foreign_lang == 2) {
if (strstr(line, "oxstd.h"))
add_gretl_include(2, OPT_NONE, fp);
} els... | static void put_foreign_buffer(const char *buf, FILE *fp) {
char line[1024];
bufgets_init(buf);
while (bufgets(line, sizeof line, buf)) {
fputs(line, fp);
if (foreign_lang == LANG_OX) {
if (strstr(line, "oxstd.h")) {
add_gretl_include(LANG_OX, 0, fp);
}
} else if (foreign_lang ==... | put_foreign_buffer | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void put_foreign_lines(FILE *fp) {
int i;
int n;
n = get_foreign_indent();
for (i = 0; i < foreign_n_lines; ++i) {
fprintf(fp, "%s\n", &foreign_lines[i][n]);
if (foreign_lang == 2) {
if (strstr(foreign_lines[i], "oxstd.h"))
add_gretl_include(2, OPT_NONE, fp);
} else if (foreign_lang =... | static void put_foreign_lines(FILE *fp) {
int i, n = get_foreign_indent();
for (i = 0; i < foreign_n_lines; i++) {
fprintf(fp, "%s\n", foreign_lines[i] + n);
if (foreign_lang == LANG_OX) {
if (strstr(foreign_lines[i], "oxstd.h")) {
add_gretl_include(LANG_OX, 0, fp);
}
} else if (for... | put_foreign_lines | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int put_midas_nls_line(char *line, DATASET *dset, gretlopt opt, PRN *prn) {
int result;
if ((opt & 0x8000) != 0) {
pputs(prn, line);
pputc(prn, 10);
}
result = nl_parse_line(85, line, dset, prn);
*line = 0;
return result;
} | static int put_midas_nls_line(char *line, DATASET *dset, gretlopt opt,
PRN *prn) {
int err;
if (opt & OPT_P) {
pputs(prn, line);
pputc(prn, '\n');
}
err = nl_parse_line(NLS, line, dset, prn);
*line = '\0';
return err;
} | put_midas_nls_line | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void pval_max_line(const MODEL *pmod, const DATASET *dset, PRN *prn) {
char *v3;
char *v4;
int k;
if (pmod->ncoeff - pmod->ifc > 2) {
k = least_significant_coeff(pmod);
if (k > 0 && k < dset->v) {
v3 = dset->varname[k];
if (pmod->ifc)
v4 = gettext(
"Excluding the constan... | static void pval_max_line(const MODEL *pmod, const DATASET *dset, PRN *prn) {
int k = pmod->ncoeff - pmod->ifc;
if (k < 3)
return;
k = least_significant_coeff(pmod);
if (k > 0 && k < dset->v) {
if (pmod->ifc) {
pprintf(prn,
_("Excluding the constant, p-value was highest "
... | pval_max_line | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int pwe_error(double rho, int quiet, int iter, PRN *prn) {
char *v4;
v4 = gettext("Prais-Winsten: invalid rho value %g (explosive error)");
gretl_errmsg_sprintf(v4, rho);
if (!quiet) {
pprintf(prn, " %10d %12.5f", iter, rho);
pprintf(prn, " NA\n");
}
return 32;
} | static int pwe_error(double rho, int quiet, int iter, PRN *prn) {
gretl_errmsg_sprintf(_("Prais-Winsten: invalid rho value %g "
"(explosive error)"),
rho);
if (!quiet) {
pprintf(prn, " %10d %12.5f", iter, rho);
pprintf(prn, " NA\n");
}
ret... | pwe_error | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void python_check(const char *line) {
char s1[8];
char s2[24];
unsigned long v3;
v3 = __readfsqword(0x28u);
if ((unsigned int)__isoc99_sscanf(line, "%7s %15s", s1, s2) == 2) {
if (!strcmp(s1, "foreign") && strstr(s2, "ytho")) {
compiling_python = 1;
} else if (!strcmp(s1, "end") && !strcmp(s2, ... | static void python_check(const char *line) {
char s1[8], s2[16];
if (sscanf(line, "%7s %15s", s1, s2) == 2) {
if (!strcmp(s1, "foreign") && strstr(s2, "ytho")) {
compiling_python = 1;
} else if (!strcmp(s1, "end") && !strcmp(s2, "foreign")) {
compiling_python = 0;
}
}
} | python_check | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int qq_plot(const int *list, const DATASET *dset, gretlopt opt) {
if (*list == 1)
return normal_qq_plot(list, dset, opt);
if (*list == 2)
return qq_plot_two_series(list, dset);
return 2;
} | int qq_plot(const int *list, const DATASET *dset, gretlopt opt) {
int err;
if (list[0] == 1) {
err = normal_qq_plot(list, dset, opt);
} else if (list[0] == 2) {
err = qq_plot_two_series(list, dset);
} else {
err = E_DATA;
}
return err;
} | qq_plot | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int qq_plot_two_series(const int *list, const DATASET *dset) {
int v2;
char *v4;
const char *graph_name;
const char *v6;
int nx;
int ny;
int err;
int i;
int n;
int vx;
int vy;
double *x;
double *y;
double qx;
double qy;
FILE *fp;
double f;
unsigned long v20;
v20 = __readfsqword(0x... | static int qq_plot_two_series(const int *list, const DATASET *dset) {
double *x = NULL;
double *y = NULL;
double f, qx, qy;
FILE *fp = NULL;
int vx = list[1];
int vy = list[2];
int nx = 10, ny = 10;
int i, n, err = 0;
x = gretl_sorted_series(vx, dset, OPT_NONE, &nx, &err);
if (!err) {
y = gret... | qq_plot_two_series | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void qr_compute_stats(MODEL *pmod, const DATASET *dset, int n, gretlopt opt) {
int yconst;
int ifc;
int yno;
double y0;
double tss;
double den;
unsigned long v12;
v12 = __readfsqword(0x28u);
ifc = pmod->ifc;
yno = pmod->list[1];
pmod->tss = qr_get_tss(pmod, dset, &ifc, &yconst);
pmod->chisq = N... | static void qr_compute_stats(MODEL *pmod, const DATASET *dset, int n,
gretlopt opt) {
int yconst, ifc = pmod->ifc;
int yno = pmod->list[1];
pmod->tss = qr_get_tss(pmod, dset, &ifc, &yconst);
pmod->chisq = NADBL;
if (yconst && pmod->dfd > 0) {
double y0 = dset->Z[yno][pmod->t... | qr_compute_stats | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int qr_dw_stats(MODEL *pmod, const DATASET *dset, gretl_matrix *X,
gretl_matrix *u) {
int err;
int t;
int s;
double DW;
double pv;
unsigned long v12;
v12 = __readfsqword(0x28u);
err = 0;
get_data_X(X, pmod, dset);
s = 0;
for (t = pmod->t1; t <= pmod->t2; ++t)
u->val[s++] = pmo... | static int qr_dw_stats(MODEL *pmod, const DATASET *dset, gretl_matrix *X,
gretl_matrix *u) {
double DW, pv;
int t, s, err = 0;
get_data_X(X, pmod, dset);
for (s = 0, t = pmod->t1; t <= pmod->t2; s++, t++) {
gretl_vector_set(u, s, pmod->uhat[t]);
}
pv = dw_pval(u, X, &DW, &err);... | qr_dw_stats | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double qr_get_tss(MODEL *pmod, const DATASET *dset, int *ifc, int *yconst) {
int t;
int ta;
int tb;
int tc;
int yno;
int pwe;
double y0;
double y0a;
double ymean;
double ymeana;
double ymeanb;
double tss;
double ctss;
double ry;
double rya;
double ryb;
double ryc;
double rho;
doubl... | static double qr_get_tss(MODEL *pmod, const DATASET *dset, int *ifc,
int *yconst) {
int yno = pmod->list[1];
int pwe = (pmod->opt & OPT_P);
double rho = gls_rho(pmod);
double yt, y0 = 0.0, ymean = 0.0;
double x, tss = 0.0;
double ctss = 0.0;
int t;
if (*ifc == 0) {
*ifc = c... | qr_get_tss | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int qr_make_cluster_vcv(MODEL *pmod, int ci, const DATASET *dset,
gretl_matrix *XX, gretlopt opt) {
int rows;
int err;
int n_c;
int cvar;
gretl_matrix *cvals;
gretl_matrix *V;
const char *cname;
unsigned long v16;
v16 = __readfsqword(0x28u);
cvals = 0;
V = 0;
n_c = 0;
... | static int qr_make_cluster_vcv(MODEL *pmod, int ci, const DATASET *dset,
gretl_matrix *XX, gretlopt opt) {
gretl_matrix *cvals = NULL;
gretl_matrix *V = NULL;
const char *cname;
int cvar, n_c = 0;
int err = 0;
if (pmod->ci != OLS && pmod->ci != IVREG && pmod->ci != WLS) {
... | qr_make_cluster_vcv | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int qr_make_hac(MODEL *pmod, const DATASET *dset, gretl_matrix *XTXi) {
int err;
int T;
gretl_matrix *V;
gretl_matrix *X;
gretl_matrix *XOX;
VCVInfo vi;
gretl_matrix umat;
unsigned long v12;
v12 = __readfsqword(0x28u);
V = 0;
T = pmod->nobs;
err = 0;
X = make_data_X(pmod, dset);
if (!X)
... | static int qr_make_hac(MODEL *pmod, const DATASET *dset, gretl_matrix *XTXi) {
gretl_matrix *X, *XOX, *V = NULL;
gretl_matrix umat;
VCVInfo vi;
int T = pmod->nobs;
int err = 0;
X = make_data_X(pmod, dset);
if (X == NULL) {
return E_ALLOC;
}
gretl_matrix_init(&umat);
umat.rows = T;
umat.cols ... | qr_make_hac | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int qr_make_hccme(MODEL *pmod, const DATASET *dset, gretl_matrix *Q,
gretl_matrix *XTXi) {
double *v5;
double v6;
int i;
int t;
int ta;
int err;
int T;
int k;
int hc_version;
gretl_matrix *tmp1;
gretl_matrix *tmp2;
gretl_matrix *V;
gretl_matrix *u;
double ht;
gretl_matrix... | static int qr_make_hccme(MODEL *pmod, const DATASET *dset, gretl_matrix *Q,
gretl_matrix *XTXi) {
gretl_matrix *X;
gretl_matrix *diag = NULL;
gretl_matrix *tmp1 = NULL;
gretl_matrix *tmp2 = NULL;
gretl_matrix *V = NULL;
gretl_matrix *u = NULL;
int T = pmod->nobs;
int k = pmod->l... | qr_make_hccme | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int qr_make_regular_vcv(MODEL *pmod, gretl_matrix *v, gretlopt opt) {
return qr_make_vcv(pmod, v, ((unsigned int)opt >> 22) & 2);
} | static int qr_make_regular_vcv(MODEL *pmod, gretl_matrix *v, gretlopt opt) {
int flag = (opt & OPT_X) ? VCV_XPX : VCV_SIMPLE;
return qr_make_vcv(pmod, v, flag);
} | qr_make_regular_vcv | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int qr_make_vcv(MODEL *pmod, gretl_matrix *V, int flag) {
double *v4;
int i;
int j;
int k;
int idx;
double x;
k = pmod->ncoeff;
pmod->vcv = (double *)malloc(8LL * (k * (k + 1) / 2));
if (!pmod->vcv)
return 12;
if (flag == 2)
gretl_model_set_int(pmod, "vcv_xpx", 1);
for (i = 0; i < k; ++i)... | static int qr_make_vcv(MODEL *pmod, gretl_matrix *V, int flag) {
int k = pmod->ncoeff;
int m = k * (k + 1) / 2;
double x;
int i, j, idx;
pmod->vcv = malloc(m * sizeof *pmod->vcv);
if (pmod->vcv == NULL) {
return E_ALLOC;
}
if (flag == VCV_XPX) {
gretl_model_set_int(pmod, "vcv_xpx", 1);
}
... | qr_make_vcv | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int qr_matrix_hccme(const gretl_matrix *X, const gretl_matrix *h,
const gretl_matrix *XTXi, gretl_matrix *d,
gretl_matrix *VCV, int hc_version) {
double *v7;
double v8;
int t;
int ta;
int T;
int k;
gretl_matrix *tmp1;
gretl_matrix *tmp2;
double ht;
T = X->row... | int qr_matrix_hccme(const gretl_matrix *X, const gretl_matrix *h,
const gretl_matrix *XTXi, gretl_matrix *d,
gretl_matrix *VCV, int hc_version) {
gretl_matrix *tmp1 = NULL;
gretl_matrix *tmp2 = NULL;
int T = X->rows;
int k = X->cols;
int t, err = 0;
tmp1 = gretl_matr... | qr_matrix_hccme | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int qr_tsls_vcv(MODEL *pmod, const DATASET *dset, gretlopt opt) {
int err;
long k;
gretl_matrix *Q;
gretl_matrix *R;
gretl_matrix *V;
k = (unsigned int)(*pmod->list - 1);
Q = make_data_X(pmod, dset);
R = gretl_matrix_alloc(k, k);
V = gretl_matrix_alloc(k, k);
if (Q && R && V) {
err = QR_decomp_... | int qr_tsls_vcv(MODEL *pmod, const DATASET *dset, gretlopt opt) {
gretl_matrix *Q = NULL;
gretl_matrix *R = NULL;
gretl_matrix *V = NULL;
int k, err = 0;
k = pmod->list[0] - 1;
Q = make_data_X(pmod, dset);
R = gretl_matrix_alloc(k, k);
V = gretl_matrix_alloc(k, k);
if (Q == NULL || R == NULL || V =... | qr_tsls_vcv | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int qrfac_(int m, int n, double *a, int lda, int *ipvt, double *rdiag,
double *acnorm, double *wa) {
int v8;
int kmax;
int i;
int ia;
int ib;
int ic;
int j;
int ja;
int k;
int kb;
int ka;
int minmn;
double ajnorm;
double sum;
double tempa;
double temp;
double tempb;
double... | int qrfac_(int m, int n, double *a, int lda, int *ipvt, double *rdiag,
double *acnorm, double *wa) {
const double p05 = .05;
const double epsmch = DBL_EPSILON;
double ajnorm, d, sum, temp;
int kmax, minmn, jp1;
int i, j, k;
for (j = 0; j < n; ++j) {
acnorm[j] = enorm_(m, a + j * lda);
rd... | qrfac_ | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int qrsolv_(int n, double *r, int ldr, int *ipvt, double *diag, double *qtb,
double *x, double *sdiag, double *wa) {
int i;
int ia;
int ib;
int j;
int ja;
int jb;
int jc;
int jd;
int k;
int ka;
int kb;
int nsing;
int l;
double cosx;
double sinx;
double sum;
double qtbpj;
... | int qrsolv_(int n, double *r, int ldr, int *ipvt, double *diag, double *qtb,
double *x, double *sdiag, double *wa) {
const double p5 = .5;
const double p25 = .25;
double tanx, cosx, sinx, cotan;
double sum, temp, qtbpj;
int i, j, k, l;
int nsing;
for (j = 0; j < n; ++j) {
for (i = j; i < ... | qrsolv_ | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double qs_hac_weight(double bt, int i) {
double v3;
double mi;
double w;
mi = 18.84955592153876 * ((double)i / bt) / 5.0;
w = 25.0 / (118.4352528130723 * ((double)i / bt) * ((double)i / bt));
v3 = sin(mi) / mi;
return w * (v3 - cos(mi));
} | double qs_hac_weight(double bt, int i) {
double di = i / bt;
double mi = 6 * M_PI * di / 5;
double w;
w = 25 / (12 * M_PI * M_PI * di * di);
w *= sin(mi) / mi - cos(mi);
return w;
} | qs_hac_weight | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double quantile_index(int n, double p) {
int Qtype;
double h;
Qtype = libset_get_int(QUANTILE_TYPE);
if (Qtype) {
if (Qtype == 1)
h = (double)(n - 1) * p + 1.0;
else
h = ((double)n + 0.3333333333333333) * p + 0.3333333333333333;
} else {
h = (double)(n + 1) * p;
}
return h - 1.0;
... | static double quantile_index(int n, double p) {
int Qtype = libset_get_int(QUANTILE_TYPE);
double h;
if (Qtype == 0) {
h = (n + 1) * p;
} else if (Qtype == 1) {
h = (n - 1) * p + 1;
} else {
h = (n + 1.0 / 3) * p + 1.0 / 3;
}
return h - 1;
} | quantile_index | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double quantile_interp(const double *y, int n, double ftarg) {
int i;
double ret;
double f;
double f0;
ret = NAN;
for (i = 0; i < n; ++i) {
f = plotpos(i + 1, n);
if (f >= ftarg) {
if (f <= ftarg || i <= 0)
return y[i];
f0 = plotpos(i, n);
return y[i] * ((ftarg - f0) / (f ... | static double quantile_interp(const double *y, int n, double ftarg) {
double f, ret = NADBL;
int i;
for (i = 0; i < n; i++) {
f = plotpos(i + 1, n);
if (f >= ftarg) {
if (f > ftarg && i > 0) {
double f0 = plotpos(i, n);
double d = (ftarg - f0) / (f - f0);
ret = (1 - d) * y[... | quantile_interp | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
MODEL *quantreg(MODEL *__return_ptr retstr, const gretl_matrix *tau,
const int *list, DATASET *dset, gretlopt opt, PRN *prn) {
MODEL v7;
PRN *prna;
gretlopt opta;
DATASET *dseta;
const int *lista;
const gretl_matrix *taua;
MODEL *v13;
gretlopt olsopt;
int (*rq_driver)(const gretl_matri... | MODEL quantreg(const gretl_matrix *tau, const int *list, DATASET *dset,
gretlopt opt, PRN *prn) {
MODEL mod;
int (*rq_driver)(const gretl_matrix *, MODEL *, DATASET *, gretlopt, PRN *);
gretlopt olsopt = (OPT_A | OPT_M);
if (opt & OPT_R) {
olsopt |= OPT_R;
}
mod = lsq(list, dset, OLS, o... | quantreg | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
MODEL *quantreg_driver(MODEL *__return_ptr retstr, const char *param,
const int *list, DATASET *dset, gretlopt opt, PRN *prn) {
bool v6;
MODEL v8;
PRN *prna;
gretlopt opta;
DATASET *dseta;
const int *lista;
const char *parama;
MODEL *v14;
int err;
gretl_vector *tau;
MODEL mo... | MODEL quantreg_driver(const char *param, const int *list, DATASET *dset,
gretlopt opt, PRN *prn) {
gretl_vector *tau;
MODEL mod;
int err = 0;
tau = generate_matrix(param, dset, &err);
if (!err && gretl_vector_get_length(tau) == 0) {
err = E_DATA;
}
if (err) {
gretl_model_i... | quantreg_driver | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int quarter_to_month(int qtr, int ndays, int day) {
return 3 * qtr - 2 + (day - 1) / (ndays / 3);
} | static int quarter_to_month(int qtr, int ndays, int day) {
return qtr * 3 - 2 + (day - 1) / (ndays / 3);
} | quarter_to_month | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double quartiles(const double *x, int n, double *q1, double *q3) {
double v4;
double v5;
int n2;
double xx;
n2 = n / 2;
if ((n & 1) != 0)
v4 = x[n2];
else
v4 = 0.5 * (x[n2 - 1] + x[n2]);
xx = v4;
if (q1 && q3) {
if ((n & 1) != 0) {
*q1 = quartiles(x, n2 + 1, 0, 0);
v5 = quarti... | static double quartiles(const double *x, int n, double *q1, double *q3) {
int n2 = n / 2;
double xx;
xx = (n % 2) ? x[n2] : 0.5 * (x[n2 - 1] + x[n2]);
if (q1 != NULL && q3 != NULL) {
if (n % 2) {
*q1 = quartiles(x, n2 + 1, NULL, NULL);
*q3 = quartiles(x + n2, n2 + 1, NULL, NULL);
} else {
... | quartiles | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void quartiles_etc(double *x, int n, BOXPLOT *plt, double limit) {
int v4;
int v5;
int i;
int i_0;
int i_0a;
int i_0b;
int i_0c;
int nlo;
int nhi;
int j;
double d;
double xlo;
double xhi;
double p[4];
*(_QWORD *)&p[3] = __readfsqword(0x28u);
p[0] = 0.25;
p[1] = 0.5;
p[2] = 0.75;
i... | static void quartiles_etc(double *x, int n, BOXPLOT *plt, double limit) {
double p[3] = {0.25, 0.5, 0.75};
if (n <= 3) {
int i;
if (n == 1) {
plt->wmin = plt->min = x[0];
plt->wmax = plt->max = x[0];
plt->mean = plt->median = NADBL;
plt->lq = plt->uq = NADBL;
} else if (n == 2... | quartiles_etc | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int query_bufgets_init(const char *buf) {
if (matching_buffer(buf))
return 0;
else
return bufgets_init(buf);
} | int query_bufgets_init(const char *buf) {
if (matching_buffer(buf) != NULL) {
return 0;
} else {
return bufgets_init(buf);
}
} | query_bufgets_init | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *query_eval_matrix(gretl_matrix *m, NODE *n, parser *p) {
complex_double *v4;
double v5;
complex_double *v6;
double imag;
int lcomplex;
int rcomplex;
int j;
int i;
int need_z;
double y;
NODE *r;
gretl_matrix *mret;
NODE *save_aux;
NODE *l;
NODE *ret;
double x;
complex_double z;
... | static NODE *query_eval_matrix(gretl_matrix *m, NODE *n, parser *p) {
NODE *save_aux = p->aux;
NODE *ret, *l, *r;
gretl_matrix *mret;
int lcomplex = 0;
int rcomplex = 0;
if (gretl_is_null_matrix(m)) {
p->err = E_TYPES;
return NULL;
}
l = eval(n->M, p);
if (!p->err) {
r = eval(n->R, p);
... | query_eval_matrix | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *query_eval_scalar(double x, NODE *n, parser *p) {
int v3;
int branch;
NODE *l;
NODE *r;
NODE *ret;
NODE *save_aux;
save_aux = p->aux;
l = 0;
r = 0;
if (fabs(x) > 1.797693134862316e308)
v3 = 3;
else
v3 = x == 0.0;
branch = v3;
if ((p->flags & 4) != 0 || v3 != 1) {
l = eval(n-... | static NODE *query_eval_scalar(double x, NODE *n, parser *p) {
NODE *save_aux = p->aux;
NODE *l = NULL, *r = NULL, *ret = NULL;
int indef = na(x) || isnan(x);
int branch;
branch = indef ? FORK_NONE : (x != 0 ? FORK_L : FORK_R);
if (autoreg(p) || branch != FORK_R) {
l = eval(n->M, p);
if (p->err) {... | query_eval_scalar | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *query_eval_series(const double *c, NODE *n, parser *p) {
int obs;
int t2;
double v6;
double v7;
int t;
int branch;
int t1;
double *xvec;
double *yvec;
double x;
double y;
NODE *l;
NODE *r;
NODE *ret;
NODE *save_aux;
double xt;
save_aux = p->aux;
xvec = 0;
yvec = 0;
x = NAN... | static NODE *query_eval_series(const double *c, NODE *n, parser *p) {
NODE *l = NULL, *r = NULL, *ret = NULL;
NODE *save_aux = p->aux;
double *xvec = NULL, *yvec = NULL;
double x = NADBL, y = NADBL;
double xt, yt;
int t, t1, t2;
int branch;
branch = vec_branch(c, p);
if (autoreg(p) || branch != FORK... | query_eval_series | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void query_package(const char *pkgname, gretlopt opt, PRN *prn) {
int err;
fnpkg *pkg;
gchar *gfn;
const char *p;
gretl_bundle *b;
char path[520];
unsigned long v10;
v10 = __readfsqword(0x28u);
err = 0;
pkg = get_function_package_by_name(pkgname);
if (pkg) {
p = function_package_get_string(pk... | static void query_package(const char *pkgname, gretlopt opt, PRN *prn) {
char path[MAXLEN];
fnpkg *pkg = NULL;
int err = 0;
pkg = get_function_package_by_name(pkgname);
if (pkg != NULL) {
const char *p = function_package_get_string(pkg, "fname");
strcpy(path, p);
} else if (has_suffix(pkgname, ".... | query_package | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int query_sourceforge(const char *query, char **getbuf) {
return retrieve_url(sfweb, QUERY_SF, query, 0, 0, 0, getbuf);
} | int query_sourceforge(const char *query, char **getbuf) {
return retrieve_url(sfweb, QUERY_SF, query, NULL, NULL, 0, getbuf);
} | query_sourceforge | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void query_term_get_value(NODE *n, int i, int j, double *py, complex_double *pz,
int need_z) {
long v6;
double v7;
char *str;
if (n->t == 57 && *((_DWORD *)n->v.str + 6)) {
v6 = *((_QWORD *)n->v.str + 2) + 16LL * (j * *n->v.ivec + i);
v7 = *(double *)(v6 + 8);
pz->real = *... | static void query_term_get_value(NODE *n, int i, int j, double *py,
double complex *pz, int need_z) {
if (n->t == MAT && n->v.m->is_complex) {
*pz = gretl_cmatrix_get(n->v.m, i, j);
} else {
if (n->t == NUM) {
*py = n->v.xval;
} else {
*py = gretl_matrix_get(... | query_term_get_value | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int r_get_scalar(const char *s, double *x) {
int result;
const char *sa;
int n;
char tmp[40];
unsigned long v6;
v6 = __readfsqword(0x28u);
if ((unsigned int)__isoc99_sscanf(s, "%lf", x))
return 1;
sa = &s[strspn(s, " ")];
n = gretl_namechar_spn(sa);
result = 0;
if (n > 0) {
tmp[0] = 0;
... | static int r_get_scalar(const char *s, double *x) {
if (sscanf(s, "%lf", x)) {
return 1;
} else {
int n;
s += strspn(s, " ");
n = gretl_namechar_spn(s);
if (n > 0) {
char tmp[VNAMELEN];
*tmp = '\0';
strncat(tmp, s, n);
if (gretl_is_scalar(tmp)) {
*x = gretl_sca... | r_get_scalar | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
uint32_t randi32() {
if (use_dcmt)
return genrand_mt(dcmt);
else
return sfmt_genrand_uint32(&gretl_sfmt);
} | static inline uint32_t randi32(void) {
if (use_dcmt) {
return genrand_mt(dcmt);
} else {
return sfmt_genrand_uint32(&gretl_sfmt);
}
} | randi32 | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
uint64_t randi54() {
uint64_t lo;
LODWORD(lo) = randi32();
HIDWORD(lo) = randi32() & 0x3FFFFF;
return lo;
} | static uint64_t randi54(void) {
const uint32_t lo = randi32();
const uint32_t hi = randi32() & 0x3FFFFF;
return (((uint64_t)(hi) << 32) | lo);
} | randi54 | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int random_effects(panelmod_t *pan, DATASET *dset, DATASET *gset, PRN *prn) {
char *v5;
double *val;
int v7;
MODEL v8;
PRN *prna;
DATASET *gseta;
DATASET *dseta;
panelmod_t *pana;
int i;
int k;
gretlopt lsqopt;
int err;
int vi;
int *hlist;
double hres;
int *relist;
DATASET *rset;
dou... | static int random_effects(panelmod_t *pan, DATASET *dset, DATASET *gset,
PRN *prn) {
DATASET *rset;
MODEL remod;
gretlopt lsqopt = OPT_A | OPT_Z;
int *relist = NULL;
int *hlist = NULL;
double hres = NADBL;
int i, err = 0;
gretl_model_init(&remod, dset);
relist = gretl_list_... | random_effects | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
DATASET *random_effects_dataset(const DATASET *dset, const DATASET *gset,
int *relist, int *hlist, panelmod_t *pan) {
double v6;
int v2;
int i;
int ia;
int j;
int ja;
int k;
int ka;
int k2_0;
int k2_0a;
int t;
int s;
int u;
int got;
_BOOL4 hreg;
int v1;
... | static DATASET *random_effects_dataset(const DATASET *dset, const DATASET *gset,
int *relist, int *hlist,
panelmod_t *pan) {
DATASET *rset;
double xbar, theta_i;
int hreg = (hlist != NULL);
int v1 = relist[0];
int v2 = 0;
int i, j... | random_effects_dataset | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int randomize_doubles(const void *a, const void *b) {
return gretl_rand_int_max(0x1FA0u) - 4097;
} | static int randomize_doubles(const void *a, const void *b) {
return gretl_rand_int_max(8096) - 4097;
} | randomize_doubles | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double randu53() {
signed int a;
a = randi32() >> 5;
return 1.110223024625157e-16 *
(67108864.0 * (double)a + (double)(randi32() >> 6) + 0.4);
} | static double randu53(void) {
const uint32_t a = randi32() >> 5;
const uint32_t b = randi32() >> 6;
return (a * 67108864.0 + b + 0.4) * (1.0 / 9007199254740992.0);
} | randu53 | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int rank_array(const double *x, double *y, int f, int n) {
int v5;
int m;
int i;
int ia;
int t;
int ta;
int tb;
double *sx;
double *rx;
m = n;
for (t = 0; t < n; ++t) {
if (fabs(x[t]) > 1.797693134862316e308)
--m;
}
sx = (double *)malloc(8LL * m);
rx = (double *)malloc(8LL * m);
... | static int rank_array(const double *x, double *y, int f, int n) {
double *sx = NULL;
double *rx = NULL;
int m = n;
int i, t;
for (t = 0; t < n; t++) {
if (na(x[t]))
m--;
}
sx = malloc(m * sizeof *sx);
rx = malloc(m * sizeof *rx);
if (sx == NULL || rx == NULL) {
free(sx);
free(rx);... | rank_array | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int rank_series(const double *x, double *y, int f, const DATASET *dset) {
int v4;
if (dset)
v4 = dset->t2 - dset->t1 + 1;
else
v4 = 0;
return rank_array(&x[dset->t1], &y[dset->t1], f, v4);
} | int rank_series(const double *x, double *y, int f, const DATASET *dset) {
return rank_array(x + dset->t1, y + dset->t1, f, sample_size(dset));
} | rank_series | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int rank_sum_test(const double *x, const double *y, int v1, int v2,
const DATASET *dset, double *result, gretlopt opt, PRN *prn) {
char *v9;
char *v10;
char *v11;
char *v12;
char *v13;
char xc;
char yc;
int na;
int nb;
int i;
int ia;
int ib;
int ic;
int t;
int ta;
int t... | static int rank_sum_test(const double *x, const double *y, int v1, int v2,
const DATASET *dset, double *result, gretlopt opt,
PRN *prn) {
struct ranker *r;
double wa, z = NADBL, pval = NADBL;
char xc = 'a', yc = 'b';
int na = 0, nb = 0;
int quiet = (opt & OPT_... | rank_sum_test | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *rank_vector(const gretl_matrix *x, int f, int *err) {
int rows;
int n;
gretl_matrix *y;
y = 0;
if (x) {
if (x->cols == 1) {
rows = x->rows;
} else if (x->rows == 1) {
rows = x->cols;
} else {
rows = 0;
}
} else {
rows = 0;
}
n = rows;
if (rows) {
... | gretl_matrix *rank_vector(const gretl_matrix *x, int f, int *err) {
gretl_matrix *y = NULL;
int n = gretl_vector_get_length(x);
if (n == 0) {
*err = E_DATA;
} else {
y = gretl_matrix_alloc(x->rows, x->cols);
if (y == NULL) {
*err = E_ALLOC;
}
}
if (!*err) {
*err = rank_array(x->v... | rank_vector | 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.