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 dataset_drop_variable(int v, DATASET *dset) {
int list[2];
unsigned long v4;
v4 = __readfsqword(0x28u);
list[0] = 1;
list[1] = v;
if (v <= 0 || v >= dset->v)
return 2;
if (dset->auxiliary != 2)
return dataset_drop_listed_variables(list, dset, 0, 0);
fwrite("*** Internal error: modifying bor... | int dataset_drop_variable(int v, DATASET *dset) {
int list[2] = {1, v};
if (v <= 0 || v >= dset->v) {
return E_DATA;
}
if (dset_zcols_borrowed(dset)) {
fprintf(stderr, "*** Internal error: modifying borrowed data\n");
return E_DATA;
}
return dataset_drop_listed_variables(list, dset, NULL, NUL... | dataset_drop_variable | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dataset_expand_varinfo(int v0, int newvars, DATASET *dset) {
char **v3;
VARINFO **v4;
int i;
int ia;
int err;
char **varname;
VARINFO **varinfo;
err = 0;
varname = (char **)realloc(dset->varname, 8LL * (v0 + newvars));
if (varname)
dset->varname = varname;
else
err = 12;
for (i = 0;... | static int dataset_expand_varinfo(int v0, int newvars, DATASET *dset) {
char **varname = NULL;
VARINFO **varinfo = NULL;
int bigv = v0 + newvars;
int i, v, err = 0;
varname = realloc(dset->varname, bigv * sizeof *varname);
if (varname == NULL) {
err = E_ALLOC;
} else {
dset->varname = varname;
... | dataset_expand_varinfo | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *dataset_get_mapfile(const DATASET *dset) {
if (dset)
return dset->mapfile;
else
return 0;
} | const char *dataset_get_mapfile(const DATASET *dset) {
return dset == NULL ? NULL : dset->mapfile;
} | dataset_get_mapfile | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *dataset_get_matrix_name(const DATASET *dset) {
if (dset->descrip && strlen(dset->descrip) > 7 &&
!strncmp(dset->descrip, "matrix:", 7u))
return dset->descrip + 7;
else
return 0;
} | const char *dataset_get_matrix_name(const DATASET *dset) {
if (dset->descrip != NULL && strlen(dset->descrip) > 7 &&
!strncmp(dset->descrip, "matrix:", 7)) {
return dset->descrip + 7;
} else {
return NULL;
}
} | dataset_get_matrix_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dataset_get_structure(const DATASET *dset) {
if (!dset || !dset->n)
return 0;
if (dset->structure == 2)
return 3;
if (dset->structure == 1 || dset->structure == 5)
return 2;
return 1;
} | int dataset_get_structure(const DATASET *dset) {
if (dset == NULL || dset->n == 0) {
return 0;
} else if (dataset_is_panel(dset)) {
return 3;
} else if (dataset_is_time_series(dset)) {
return 2;
} else {
return 1;
}
} | dataset_get_structure | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dataset_has_panel_labels(const DATASET *dset, int maxlen, int *use,
int *strip) {
int t;
int ta;
int tb;
int ubak;
int ubaka;
int lmax;
int fail;
int faila;
int ret;
int i;
int len2t;
int len2;
int obslen;
int u;
int ua;
int len;
int n;
char *s;
cha... | static int dataset_has_panel_labels(const DATASET *dset, int maxlen, int *use,
int *strip) {
int t, u, ubak = -1;
int len, lmax = 0, fail = 0;
int ret = 0;
if (dset->S == NULL) {
return 0;
}
for (t = dset->t1; t <= dset->t2 && !fail; t++) {
u = t / dset->pd;
... | dataset_has_panel_labels | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dataset_has_var_labels(const DATASET *dset) {
char *v1;
int i;
int imin;
const char *vlabel;
const char *vlabela;
imin = 1;
if (dset->v > 1 && !strcmp(*((const char **)dset->varname + 1), "index")) {
vlabel = series_get_label(dset, 1);
if (vlabel) {
v1 = gettext("index variable");
... | int dataset_has_var_labels(const DATASET *dset) {
const char *vlabel;
int i, imin = 1;
if (dset->v > 1) {
if (!strcmp(dset->varname[1], "index")) {
vlabel = series_get_label(dset, 1);
if (vlabel != NULL && !strcmp(vlabel, _("index variable"))) {
imin = 2;
}
}
}
for (i = imi... | dataset_has_var_labels | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dataset_int_param(const char **ps, int op, DATASET *dset, int *err) {
const char *v5;
int k;
const char *s;
char test[40];
unsigned long v11;
v11 = __readfsqword(0x28u);
s = *ps;
if (op != 2 && op != 3 ||
dset && (dset->structure == 1 || dset->structure == 5)) {
if (op != 14 || dset && ds... | static int dataset_int_param(const char **ps, int op, DATASET *dset, int *err) {
const char *s = *ps;
char test[32];
int k = 0;
if ((op == DS_COMPACT || op == DS_EXPAND) && !dataset_is_time_series(dset)) {
*err = E_PDWRONG;
return 0;
}
if (op == DS_PAD_DAILY && !dated_daily_data(dset)) {
*err ... | dataset_int_param | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dataset_is_resampled(const DATASET *dset) {
return dset && dset->submask == (char *)3735928559LL;
} | int dataset_is_resampled(const DATASET *dset) {
return (dset != NULL && dset->submask == RESAMPLED);
} | dataset_is_resampled | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dataset_is_subsampled(const DATASET *dset) {
if (fullset && fullset->Z)
return 1;
return dset->t1 > 0 || dset->t2 < dset->n - 1;
} | int dataset_is_subsampled(const DATASET *dset) {
if (fullset != NULL && fullset->Z != NULL) {
return 1;
} else if (dset->t1 > 0 || dset->t2 < dset->n - 1) {
return 1;
} else {
return 0;
}
} | dataset_is_subsampled | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *dataset_list_node(parser *p) {
NODE *ret;
int *list;
ret = 0;
if (gretl_function_depth() <= 0) {
ret = aux_list_node(p);
} else {
gretl_errmsg_set("'dataset' is not recognized as a list within functions");
p->err = 2;
}
if (ret && (p->flags & 2) != 0) {
list = full_var_list(p->dset,... | static NODE *dataset_list_node(parser *p) {
NODE *ret = NULL;
if (gretl_function_depth() > 0) {
gretl_errmsg_set("'dataset' is not recognized as a list within functions");
p->err = E_DATA;
} else {
ret = aux_list_node(p);
}
if (ret != NULL && starting(p)) {
int *list = full_var_list(p->dset,... | dataset_list_node | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void dataset_obs_info_default(DATASET *dset) {
*(_WORD *)dset->stobs = 49;
sprintf(dset->endobs, "%d", dset->n);
dset->sd0 = 1.0;
dset->pd = 1;
dset->structure = 0;
} | void dataset_obs_info_default(DATASET *dset) {
strcpy(dset->stobs, "1");
sprintf(dset->endobs, "%d", dset->n);
dset->sd0 = 1.0;
dset->pd = 1;
dset->structure = CROSS_SECTION;
} | dataset_obs_info_default | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dataset_op_from_string(const char *s) {
int op;
op = 0;
if (!s || !*s)
return 0;
if (!strcmp(s, "addobs"))
return 1;
if (!strcmp(s, "compact"))
return 2;
if (!strcmp(s, "expand"))
return 3;
if (!strcmp(s, "transpose"))
return 4;
if (!strcmp(s, "delete"))
return 5;
if (!str... | int dataset_op_from_string(const char *s) {
int op = DS_NONE;
if (s == NULL || *s == '\0') {
return DS_NONE;
}
if (!strcmp(s, "addobs")) {
op = DS_ADDOBS;
} else if (!strcmp(s, "compact")) {
op = DS_COMPACT;
} else if (!strcmp(s, "expand")) {
op = DS_EXPAND;
} else if (!strcmp(s, "transp... | dataset_op_from_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *dataset_period_label(const DATASET *dset) {
if (!dset)
return gettext("periods");
if (dset->structure != 1 || dset->pd != 4 && dset->pd != 12) {
if (dset->structure == 1 && dset->pd == 1)
return gettext("years");
if (dset->structure == 1 && dset->pd == 52)
return gettext("weeks")... | const char *dataset_period_label(const DATASET *dset) {
if (dset == NULL) {
return _("periods");
} else if (quarterly_or_monthly(dset)) {
return dset->pd == 4 ? _("quarters") : _("months");
} else if (annual_data(dset)) {
return _("years");
} else if (dataset_is_weekly(dset)) {
return _("weeks")... | dataset_period_label | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dataset_purge_missing_rows(DATASET *dset) {
int missrow;
int missrowa;
int totmiss;
int t1;
int t2;
int i;
int ia;
int ib;
int ic;
int t;
int ta;
int tb;
int s;
int err;
int new_n;
char **S;
double *Zi;
long sz;
totmiss = 0;
t1 = dset->t1;
t2 = dset->t2;
err = 0;
for (... | int dataset_purge_missing_rows(DATASET *dset) {
int new_n, missrow, totmiss = 0;
int t1 = dset->t1;
int t2 = dset->t2;
char **S = NULL;
double *Zi = NULL;
size_t sz;
int i, t, s;
int err = 0;
for (t = 0; t < dset->n; t++) {
missrow = 1;
for (i = 1; i < dset->v; i++) {
if (!na(dset->Z[i]... | dataset_purge_missing_rows | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dataset_rename_series(DATASET *dset, int v, const char *name) {
int err;
if (v > 0 && v < dset->v && name)
err = check_varname(name);
else
err = 2;
if (!err && user_var_get_type_by_name(name)) {
gretl_errmsg_set("There is already an object of this name");
err = 2;
}
if (!err && current_... | int dataset_rename_series(DATASET *dset, int v, const char *name) {
int err = 0;
if (v <= 0 || v >= dset->v || name == NULL) {
err = E_DATA;
} else {
err = check_varname(name);
}
if (!err) {
GretlType type;
type = user_var_get_type_by_name(name);
if (type != GRETL_TYPE_NONE) {
gre... | dataset_rename_series | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dataset_renumber_variable(int v_old, int v_new, DATASET *dset) {
char *v3;
int i;
int ia;
double *x;
VARINFO *vinfo;
char vname[40];
unsigned long v11;
v11 = __readfsqword(0x28u);
if (complex_subsampled()) {
v3 = gettext("dataset is subsampled");
gretl_errmsg_set(v3);
return 2;
} el... | int dataset_renumber_variable(int v_old, int v_new, DATASET *dset) {
double *x;
VARINFO *vinfo;
char vname[VNAMELEN];
int i;
if (complex_subsampled()) {
gretl_errmsg_set(_("dataset is subsampled"));
return E_DATA;
}
if (dset_zcols_borrowed(dset)) {
fprintf(stderr, "*** Internal error: modif... | dataset_renumber_variable | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dataset_replace_series(DATASET *dset, int v, double *x, const char *descrip,
DataCopyFlag flag) {
int t;
if (v < 0 || v >= dset->v)
return 2;
if (object_is_const(dset->varname[v], v) || series_is_parent(dset, v))
return overwrite_err(dset->varname[v]);
gretl_varinfo_init(... | int dataset_replace_series(DATASET *dset, int v, double *x, const char *descrip,
DataCopyFlag flag) {
if (v < 0 || v >= dset->v) {
return E_DATA;
}
if (object_is_const(dset->varname[v], v) || series_is_parent(dset, v)) {
return overwrite_err(dset->varname[v]);
}
gretl_var... | dataset_replace_series | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dataset_replace_series_data(DATASET *dset, int v, const double *x, int t1,
int t2, const char *descrip) {
int v7;
int t;
int s;
if (v < 0 || v >= dset->v)
return 2;
if (object_is_const(dset->varname[v], v) || series_is_parent(dset, v))
return overwrite_err(dset->va... | int dataset_replace_series_data(DATASET *dset, int v, const double *x, int t1,
int t2, const char *descrip) {
int t, s;
if (v < 0 || v >= dset->v) {
return E_DATA;
}
if (object_is_const(dset->varname[v], v) || series_is_parent(dset, v)) {
return overwrite_err(dset->var... | dataset_replace_series_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dataset_resample(DATASET *dset, int n, unsigned int seed) {
int v3;
void **v5;
long v6;
long v7;
long v8;
long v9;
char **varname;
long v11;
char *descrip;
char *restriction;
char *mapfile;
char *pangrps;
double panel_sd0;
int i;
int ia;
int ib;
int j;
int ja;
int t;
int ta;
... | int dataset_resample(DATASET *dset, int n, unsigned int seed) {
DATASET *rset = NULL;
char **S = NULL;
unsigned int state;
int T = sample_size(dset);
int v = dset->v;
int i, j, s, t;
int err = 0;
if (v < 2) {
return E_DATA;
}
rset = datainfo_new();
if (rset == NULL) {
return E_ALLOC;
}... | dataset_resample | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void dataset_set_mapfile(DATASET *dset, const char *fname) {
if (dset) {
free(dset->mapfile);
if (fname)
dset->mapfile = gretl_strdup(fname);
else
dset->mapfile = 0;
}
} | void dataset_set_mapfile(DATASET *dset, const char *fname) {
if (dset != NULL) {
free(dset->mapfile);
if (fname != NULL) {
dset->mapfile = gretl_strdup(fname);
} else {
dset->mapfile = NULL;
}
}
} | dataset_set_mapfile | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dataset_set_matrix_name(DATASET *dset, const char *name) {
size_t v2;
int err;
err = 0;
if (dset->descrip) {
free(dset->descrip);
dset->descrip = 0;
}
if (name && *name) {
v2 = strlen(name);
dset->descrip = (char *)malloc(v2 + 8);
if (dset->descrip)
sprintf(dset->descrip, "mat... | int dataset_set_matrix_name(DATASET *dset, const char *name) {
int err = 0;
if (dset->descrip != NULL) {
free(dset->descrip);
dset->descrip = NULL;
}
if (name != NULL && *name != '\0') {
dset->descrip = malloc(strlen(name) + 8);
if (dset->descrip == NULL) {
err = E_ALLOC;
} else {
... | dataset_set_matrix_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void dataset_set_nobs(DATASET *dset, int n) {
if (n != dset->n) {
destroy_matrix_mask();
dset->n = n;
}
} | static void dataset_set_nobs(DATASET *dset, int n) {
if (n != dset->n) {
destroy_matrix_mask();
dset->n = n;
}
} | dataset_set_nobs | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void dataset_set_regular_markers(DATASET *dset) { dset->markers = 1; } | void dataset_set_regular_markers(DATASET *dset) {
dset->markers = REGULAR_MARKERS;
} | dataset_set_regular_markers | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dataset_set_time_series(DATASET *dset, int pd, int yr0, int minor0) {
int err;
gchar *stobs;
err = 0;
if (pd != 1 && pd != 4 && pd != 12)
return 2;
if (yr0 <= 0)
return 2;
if (pd > 1 && (minor0 <= 0 || minor0 > pd))
return 2;
dataset_destroy_obs_markers(dset);
dset->structure = 1;
dse... | int dataset_set_time_series(DATASET *dset, int pd, int yr0, int minor0) {
int err = 0;
if (pd != 1 && pd != 4 && pd != 12) {
err = E_DATA;
} else if (yr0 < 1) {
err = E_DATA;
} else if (pd > 1 && (minor0 < 1 || minor0 > pd)) {
err = E_DATA;
} else {
gchar *stobs = NULL;
dataset_destroy_o... | dataset_set_time_series | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dataset_shrink_obs_range(DATASET *dset) {
int i;
int ia;
int offset;
int newn;
int tail;
offset = dset->t1;
newn = dset->t2 - offset + 1;
tail = dset->n - newn;
if (dset->auxiliary == 2) {
fwrite("*** Internal error: modifying borrowed data\n", 1u, 0x2Cu, stderr);
return 2;
} else {
... | int dataset_shrink_obs_range(DATASET *dset) {
int offset = dset->t1;
int newn = dset->t2 - dset->t1 + 1;
int tail = dset->n - newn;
int err = 0;
if (dset_zcols_borrowed(dset)) {
fprintf(stderr, "*** Internal error: modifying borrowed data\n");
return E_DATA;
}
if (offset > 0) {
int i, mvsiz... | dataset_shrink_obs_range | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dataset_sort(DATASET *dset, const int *list, gretlopt opt) {
if (dset && (dset->structure == 1 || dset->structure == 5) ||
dset && dset->structure == 2) {
gretl_errmsg_set("You can only do this with undated data");
return 2;
} else if (list && *list > 0) {
return dataset_sort_by(dset, list, op... | static int dataset_sort(DATASET *dset, const int *list, gretlopt opt) {
if (dataset_is_time_series(dset) || dataset_is_panel(dset)) {
gretl_errmsg_set("You can only do this with undated data");
return E_DATA;
}
if (list == NULL || list[0] < 1) {
return E_DATA;
}
return dataset_sort_by(dset, list... | dataset_sort | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dataset_sort_by(DATASET *dset, const int *list, gretlopt opt) {
char opta;
int nsvals;
int i;
int ia;
int ib;
int ic;
int t;
int ta;
int tb;
int tc;
int td;
int err;
int ns;
int v;
int va;
char **S;
int *xs;
int *xsi;
int *xsia;
spoints_t *sv;
double *x;
opta = opt;
S ... | int dataset_sort_by(DATASET *dset, const int *list, gretlopt opt) {
spoints_t *sv = NULL;
double *x = NULL;
char **S = NULL;
int *xs = NULL;
int *xsi = NULL;
int ns = list[0];
int nsvals = 0;
int i, t, v;
int err = 0;
sv = allocate_spoints(dset, list);
if (sv == NULL) {
return E_ALLOC;
}
... | dataset_sort_by | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void dataset_type_string(char *str, const DATASET *dset) {
char *v2;
char *v3;
char *v4;
if (dset && (dset->structure == 1 || dset->structure == 5)) {
v2 = gettext("time series");
strcpy(str, v2);
} else if (dset && dset->structure == 2) {
v3 = gettext("panel");
strcpy(str, v3);
} else {
... | static void dataset_type_string(char *str, const DATASET *dset) {
if (dataset_is_time_series(dset)) {
strcpy(str, _("time series"));
} else if (dataset_is_panel(dset)) {
strcpy(str, _("panel"));
} else {
strcpy(str, _("undated"));
}
} | dataset_type_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double date_as_double(int t, int pd, double sd0) {
int yy;
int pp;
int ppa;
int yp;
int p10;
int ysd;
p10 = 10;
ysd = (int)sd0;
if (pd == 1)
return (double)(ysd + t);
pp = pd;
while (1) {
pp /= 10;
if (!pp)
break;
p10 *= 10;
}
ppa = (int)((double)(t % pd) + (sd0 - (doubl... | double date_as_double(int t, int pd, double sd0) {
int ysd, yy, pp, yp;
int p10 = 10;
ysd = (int)sd0;
if (pd == 1) {
return (double)(ysd + t);
}
pp = pd;
while ((pp = pp / 10)) {
p10 *= 10;
}
pp = t % pd + p10 * (sd0 - ysd) + .5;
if (pp != pd) {
yy = ysd + t / pd + pp / pd + .5;
... | date_as_double | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void date_from_gnuplot_time(char *targ, size_t tsize, const char *fmt,
double x) {
time_t etime;
tm t;
unsigned long v7;
v7 = __readfsqword(0x28u);
memset(&t, 0, sizeof(t));
etime = (unsigned int)(int)x;
localtime_r(&etime, &t);
strftime(targ, tsize, fmt, &t);
} | void date_from_gnuplot_time(char *targ, size_t tsize, const char *fmt,
double x) {
#ifdef WIN32
time_t etime = (time_t)x;
strftime(targ, tsize, fmt, localtime(&etime));
#else
struct tm t = {0};
time_t etime = (time_t)x;
localtime_r(&etime, &t);
strftime(targ, tsize, fmt, &t);
#... | date_from_gnuplot_time | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void date_maj_min(int t, const DATASET *dset, int *maj, int *min) {
char sep;
char *s;
char obs[24];
unsigned long v9;
v9 = __readfsqword(0x28u);
ntolabel(obs, t, dset);
if (maj)
*maj = atoi(obs);
if (min) {
sep = 58;
if (!strchr(obs, 58)) {
if (dset->pd == 4 && strchr(obs, 81)) {
... | void date_maj_min(int t, const DATASET *dset, int *maj, int *min) {
char obs[OBSLEN];
ntolabel(obs, t, dset);
if (maj != NULL) {
*maj = atoi(obs);
}
if (min != NULL) {
char *s, sep = ':';
if (strchr(obs, sep) == NULL) {
if (dset->pd == 4 && strchr(obs, 'Q')) {
sep = 'Q';
} ... | date_maj_min | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int date_series_ok(const DATASET *dset) {
if (dset && dset->structure == 1 &&
(dset->pd == 5 || dset->pd == 6 || dset->pd == 7 || dset->pd == 52) &&
strchr(dset->stobs, 45)) {
return 1;
}
if (dset && dset->structure == 1 && (dset->pd == 4 || dset->pd == 12))
return 1;
if (dset && dset->struc... | static int date_series_ok(const DATASET *dset) {
if (calendar_data(dset)) {
return 1;
} else if (quarterly_or_monthly(dset)) {
return 1;
} else if (annual_data(dset) || decennial_data(dset)) {
return 1;
} else if (dataset_has_panel_time(dset)) {
return 1;
} else {
return 0;
}
} | date_series_ok | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int date_to_daily_index(const char *datestr, int wkdays) {
int y;
int m;
int d;
int seq;
int i;
int idx;
int leap;
int n;
unsigned long v11;
v11 = __readfsqword(0x28u);
seq = 0;
if ((unsigned int)__isoc99_sscanf(datestr, "%d-%d-%d", &y, &m, &d) != 3)
return -1;
if (wkdays == 7)
return... | int date_to_daily_index(const char *datestr, int wkdays) {
int y, m, d, seq = 0;
if (sscanf(datestr, YMD_READ_FMT, &y, &m, &d) != 3) {
return -1;
}
if (wkdays == 7) {
seq = d - 1;
} else {
int leap = leap_year(y);
int n = days_in_month[leap][m];
int i, idx = day_of_week_from_ymd(y, m, 1,... | date_to_daily_index | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int datecmp(const char *s1, int y21, int slash1, const char *s2, int y22,
int slash2) {
const char *s2a;
const char *s1a;
char revs2[24];
unsigned long v10;
s1a = s1;
s2a = s2;
v10 = __readfsqword(0x28u);
if (!y21 || y22) {
if (!y21 && y22)
s1a = s1 + 2;
} else {
s2a = s2 + ... | static int datecmp(const char *s1, int y21, int slash1, const char *s2, int y22,
int slash2) {
if (y21 && !y22) {
s2 += 2;
} else if (!y21 && y22) {
s1 += 2;
}
if (slash1 && !slash2) {
char revs1[OBSLEN];
strcpy(revs1, s1);
gretl_charsub(revs1, '/', '-');
return strcm... | datecmp | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dates_maybe_reversed(const char *s1, const char *s2, PRN *prn) {
int v3;
int v4;
char *v5;
_BOOL4 ret;
char d1[5];
char d2[5];
unsigned long v11;
v11 = __readfsqword(0x28u);
d2[0] = 0;
d1[0] = 0;
strncat(d1, s1, 4u);
strncat(d2, s2, 4u);
v3 = atoi(d1);
v4 = atoi(d2);
ret = v3 > v4;
... | static int dates_maybe_reversed(const char *s1, const char *s2, PRN *prn) {
char d1[5], d2[5];
int ret = 0;
*d1 = *d2 = '\0';
strncat(d1, s1, 4);
strncat(d2, s2, 4);
ret = atoi(d1) > atoi(d2);
if (ret) {
pputs(prn, _(" dates are reversed?\n"));
}
return ret;
} | dates_maybe_reversed | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dateton(const char *date, const DATASET *dset) {
return real_dateton(date, dset, 0);
} | int dateton(const char *date, const DATASET *dset) {
return real_dateton(date, dset, 0);
} | dateton | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int day_ends_month(int d, int m, int y, int wkdays) {
int v4;
int i;
int idx;
int dm;
if (m == 2)
v4 = leap_year(y);
else
v4 = 0;
dm = days_in_month[v4][m];
if (wkdays == 7)
return d == dm;
idx = day_of_week_from_ymd(y, m, dm, 0);
for (i = dm; i > 0 && (wkdays != 6 || !(idx % 7)) &&
... | int day_ends_month(int d, int m, int y, int wkdays) {
int ret = 0;
int leap = (m == 2) ? leap_year(y) : 0;
int dm = days_in_month[leap][m];
if (wkdays == 7) {
ret = (d == dm);
} else {
int i, idx = day_of_week_from_ymd(y, m, dm, 0);
for (i = dm; i > 0; i--) {
if (day_in_calendar(wkdays, i... | day_ends_month | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double day_of_week(int y, int m, int d, int julian, int *err) {
int wd;
wd = day_of_week_from_ymd(y, m, d, julian);
if (wd < 0)
return NAN;
else
return (float)wd;
} | double day_of_week(int y, int m, int d, int julian, int *err) {
int wd = day_of_week_from_ymd(y, m, d, julian);
return wd < 0 ? NADBL : wd;
} | day_of_week | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int day_of_week_from_ymd(int y, int m, int d, int julian) {
guint32 ed;
int wd;
GDate date;
unsigned long v10;
v10 = __readfsqword(0x28u);
if (!valid_ymd((unsigned short)y, m, d, julian))
return -1;
g_date_clear(&date, 1);
if (julian) {
ed = epoch_day_from_julian_ymd((unsigned short)y, m, d);
... | static int day_of_week_from_ymd(int y, int m, int d, int julian) {
GDate date;
int wd;
if (!valid_ymd(y, m, d, julian)) {
return -1;
}
g_date_clear(&date, 1);
if (julian) {
guint32 ed = epoch_day_from_julian_ymd(y, m, d);
g_date_set_julian(&date, ed);
} else {
g_date_set_dmy(&date, d, ... | day_of_week_from_ymd | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int day_span(guint32 ed1, guint32 ed2, int wkdays, int *err) {
int n;
guint32 i;
int idx;
GDate date;
unsigned long v11;
v11 = __readfsqword(0x28u);
n = 0;
if ((unsigned int)g_date_valid_julian(ed1) &&
(unsigned int)g_date_valid_julian(ed2) && ed2 >= ed1) {
if (wkdays == 7) {
return ed2... | int day_span(guint32 ed1, guint32 ed2, int wkdays, int *err) {
int n = 0;
if (!g_date_valid_julian(ed1) || !g_date_valid_julian(ed2) || ed2 < ed1) {
*err = E_INVARG;
} else if (wkdays == 7) {
n = ed2 - ed1 + 1;
} else {
GDate date;
guint32 i;
int idx;
g_date_clear(&date, 1);
g_dat... | day_span | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int day_starts_month(int d, int m, int y, int wkdays, int *pad) {
int ret;
int i;
int idx;
ret = 0;
if (wkdays == 7) {
if (d == 1) {
return 1;
} else if (pad && m == 1 && d == 2) {
*pad = 1;
return 1;
}
} else {
idx = day_of_week_from_ymd(y, m, 1, 0);
for (i = 1; i <= ... | int day_starts_month(int d, int m, int y, int wkdays, int *pad) {
int ret = 0;
if (wkdays == 7) {
if (d == 1) {
ret = 1;
} else if (pad != NULL && m == 1 && d == 2) {
*pad = 1;
ret = 1;
}
} else {
int i, idx = day_of_week_from_ymd(y, m, 1, 0);
for (i = 1; i < 6; i++) {
... | day_starts_month | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int days_in_month_after(int y, int m, int d, int wkdays) {
int v4;
int ret;
int i;
int wd;
int dm;
if (m == 2)
v4 = leap_year(y);
else
v4 = 0;
dm = days_in_month[v4][m];
ret = 0;
if (wkdays == 7)
return dm - d;
wd = day_of_week_from_ymd(y, m, dm, 0);
for (i = dm; i > d; --i) {
i... | int days_in_month_after(int y, int m, int d, int wkdays) {
int leap = (m == 2) ? leap_year(y) : 0;
int dm = days_in_month[leap][m];
int ret = 0;
if (wkdays == 7) {
ret = dm - d;
} else {
int i, wd = day_of_week_from_ymd(y, m, dm, 0);
for (i = dm; i > d; i--) {
if (day_in_calendar(wkdays, w... | days_in_month_after | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int days_in_month_before(int y, int m, int d, int wkdays) {
int ret;
int i;
int idx;
ret = 0;
if (wkdays == 7)
return d - 1;
idx = day_of_week_from_ymd(y, m, 1, 0);
for (i = 1; i < d; ++i) {
if (wkdays == 6 && idx % 7 || wkdays == 5 && idx % 7 && idx % 7 != 6)
++ret;
++idx;
}
return... | int days_in_month_before(int y, int m, int d, int wkdays) {
int ret = 0;
if (wkdays == 7) {
ret = d - 1;
} else {
int i, idx = day_of_week_from_ymd(y, m, 1, 0);
for (i = 1; i < d; i++) {
if (day_in_calendar(wkdays, idx % 7)) {
ret++;
}
idx++;
}
}
return ret;
} | days_in_month_before | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int db_delete_series(const char *line, const int *list, const char *fname,
PRN *prn) {
char *v4;
const char *v6;
const char *v7;
int v8;
const char *linea;
int n;
int ns;
int err;
int i;
int j;
int k;
int print;
int ndel;
int rem;
int get;
int got;
char **snames;
... | static int db_delete_series(const char *line, const int *list,
const char *fname, PRN *prn) {
dbnumber buf[DBUFLEN];
char src1[FILENAME_MAX];
char src2[FILENAME_MAX];
char tmp1[FILENAME_MAX];
char tmp2[FILENAME_MAX];
char series[VNAMELEN];
char *p, s[512];
char **snames = NUL... | db_delete_series | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int db_delete_series_by_name(const char *line, PRN *prn) {
return db_delete_series(line, 0, 0, prn);
} | int db_delete_series_by_name(const char *line, PRN *prn) {
return db_delete_series(line, NULL, NULL, prn);
} | db_delete_series_by_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int db_delete_series_by_number(const int *list, const char *fname) {
return db_delete_series(0, list, fname, 0);
} | int db_delete_series_by_number(const int *list, const char *fname) {
return db_delete_series(NULL, list, fname, NULL);
} | db_delete_series_by_number | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int db_get_series(const char *line, DATASET *dset, gretlopt opt, PRN *prn) {
char *v5;
const char *v6;
char *v7;
const char *linea;
CompactMethod cmethod;
int nnames;
int err;
int nmatch;
int i;
int j;
int from_scratch;
char **vnames;
char *idxname;
char **tmp;
char altname[40];
unsigned... | int db_get_series(const char *line, DATASET *dset, gretlopt opt, PRN *prn) {
char altname[VNAMELEN] = {0};
char **vnames = NULL;
char *idxname = NULL;
CompactMethod cmethod;
int i, nnames = 0;
int from_scratch = 0;
int err = 0;
if (opt & OPT_O) {
return odbc_get_series(line, dset, opt, prn);
}
... | db_get_series | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int db_match_glob(FILE *fp, char *line, int linelen, GPatternSpec *pspec,
char **S, int *err) {
int n;
char vname[32];
char l2[72];
unsigned long v14;
v14 = __readfsqword(0x28u);
n = 0;
while (fgets(line, linelen, fp) && !*err) {
if (*line != 35) {
if (gretl_scan_varname(line,... | static int db_match_glob(FILE *fp, char *line, int linelen, GPatternSpec *pspec,
char **S, int *err) {
char vname[VNAMELEN], l2[72];
int n = 0;
while (fgets(line, linelen, fp) && !*err) {
if (*line == '#') {
continue;
}
if (gretl_scan_varname(line, vname) != 1) {
... | db_match_glob | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int db_range_check(int db_pd, const char *db_stobs, const char *db_endobs,
const char *varname, DATASET *dset) {
char *v5;
int y;
int m;
int d;
int err;
double sd0_orig;
double sdn_orig;
double sd0;
double sdn;
unsigned long v18;
v18 = __readfsqword(0x28u);
err = 0;
sd0 = g... | int db_range_check(int db_pd, const char *db_stobs, const char *db_endobs,
const char *varname, DATASET *dset) {
double sd0_orig, sdn_orig, sd0, sdn;
int err = 0;
sd0 = get_date_x(db_pd, db_stobs);
sdn = get_date_x(db_pd, db_endobs);
if (db_pd >= 5 && db_pd <= 7 && !dated_daily_data(dset)... | db_range_check | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int db_set_sample(const char *start, const char *stop, DATASET *dset) {
char *v4;
int t1;
int t2;
t1 = 0;
if (strcmp(start, ";")) {
t1 = dateton(start, dset);
if (t1 < 0)
return 1;
}
t2 = dateton(stop, dset);
if (t2 < 0)
return 1;
if (t1 <= t2) {
dset->t1 = t1;
dset->t2 = t2... | int db_set_sample(const char *start, const char *stop, DATASET *dset) {
int t1 = 0, t2 = 0;
if (strcmp(start, ";")) {
t1 = dateton(start, dset);
if (t1 < 0) {
return 1;
}
}
t2 = dateton(stop, dset);
if (t2 < 0) {
return 1;
}
if (t1 > t2) {
gretl_errmsg_set(_("Invalid null samp... | db_set_sample | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void dbwrapper_destroy(dbwrapper *dw) {
if (dw) {
free(dw->fname);
free(dw->sinfo);
free(dw);
}
} | void dbwrapper_destroy(dbwrapper *dw) {
if (dw != NULL) {
free(dw->fname);
free(dw->sinfo);
free(dw);
}
} | dbwrapper_destroy | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dbwrapper_expand(dbwrapper *dw) {
int i;
int newsz;
SERIESINFO *sinfo;
newsz = 32 * (dw->nv / 32 + 1);
sinfo = (SERIESINFO *)realloc(dw->sinfo, 120LL * newsz);
if (sinfo) {
dw->sinfo = sinfo;
for (i = dw->nalloc; i < newsz; ++i)
series_info_init(&dw->sinfo[i]);
dw->nalloc = newsz;
... | static int dbwrapper_expand(dbwrapper *dw) {
SERIESINFO *sinfo;
int i, newsz;
newsz = (dw->nv / DB_INIT_ROWS) + 1;
newsz *= DB_INIT_ROWS;
sinfo = realloc(dw->sinfo, newsz * sizeof *sinfo);
if (sinfo == NULL) {
free(dw->sinfo);
dw->sinfo = NULL;
return 1;
}
dw->sinfo = sinfo;
for (i = d... | dbwrapper_expand | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
dbwrapper *dbwrapper_new(int n, const char *fname, int dbtype) {
int na;
int i;
dbwrapper *dw;
na = n;
if (!n)
na = 32;
dw = (dbwrapper *)malloc(0x20u);
if (!dw)
return 0;
dw->fname = gretl_strdup(fname);
dw->dbtype = dbtype;
dw->sinfo = (SERIESINFO *)malloc(120LL * na);
if (dw->sinfo) {
... | dbwrapper *dbwrapper_new(int n, const char *fname, int dbtype) {
dbwrapper *dw;
int i;
if (n == 0) {
n = DB_INIT_ROWS;
}
dw = malloc(sizeof *dw);
if (dw == NULL) {
return NULL;
}
dw->fname = gretl_strdup(fname);
dw->dbtype = dbtype;
dw->sinfo = malloc(n * sizeof *dw->sinfo);
if (dw->si... | dbwrapper_new | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dcsrch_(double *f, double *g, double *stp, double *ftol, double *gtol,
double *xtol, double *stpmin, double *stpmax, char *task,
int *isave, double *dsave) {
double v12;
double v13;
long v14;
long v15;
double *dsavea;
int *isavea;
logical brackt;
int stage;
double fm;
dou... | static int dcsrch_(double *f, double *g, double *stp, double *ftol,
double *gtol, double *xtol, double *stpmin, double *stpmax,
char *task, int *isave, double *dsave) {
double d__1;
double fm, gm, fx, fy, gx, gy, fxm, fym, gxm, gym, stx, sty;
int stage;
double finit, ginit... | dcsrch_ | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dcstep_(double *stx, double *fx, double *dx_0, double *sty, double *fy,
double *dy, double *stp, double *fp, double *dp, logical *brackt,
double *stpmin, double *stpmax) {
double v12;
double v13;
double v14;
double v15;
double v16;
double v17;
double v18;
double v19;
double... | static int dcstep_(double *stx, double *fx, double *dx, double *sty, double *fy,
double *dy, double *stp, double *fp, double *dp,
logical *brackt, double *stpmin, double *stpmax) {
double d__1, d__2, d__3;
double p, q, r__, s, sgnd, stpc, stpf, stpq, gamma, theta;
sgnd = *d... | dcstep_ | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int debug_command_loop(ExecState *state, DATASET *dset, DEBUG_READLINE get_line,
DEBUG_OUTPUT put_func, int *errp) {
_BOOL4 v6;
int brk;
int err;
brk = 0;
state->flags |= 0x10u;
while (!brk) {
*errp = get_line(state);
if (*errp) {
state->flags &= ~0x10u;
return 0;... | static int debug_command_loop(ExecState *state, DATASET *dset,
DEBUG_READLINE get_line, DEBUG_OUTPUT put_func,
int *errp) {
int brk = 0, err = 0;
state->flags |= DEBUG_EXEC;
while (!brk) {
#if DDEBUG
fprintf(stderr, "--- debug_command_loop calling ... | debug_command_loop | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void debug_print_matrix(const gretl_matrix *m, const char *msg) {
size_t v2;
double v3;
int err;
int i;
int n;
int d;
PRN *prn;
char full[72];
unsigned long v10;
v10 = __readfsqword(0x28u);
memset(full, 0, 64);
if (msg) {
strncpy(full, msg, 0x20u);
v2 = strlen(full);
sprintf(&full[v... | void debug_print_matrix(const gretl_matrix *m, const char *msg) {
char full[64] = {0};
if (msg != NULL) {
strncpy(full, msg, 32);
sprintf(full + strlen(full), " (%p)", (void *)m);
} else {
sprintf(full, " (%p)", (void *)m);
}
if (m != NULL) {
int i, n = m->rows * m->cols;
int d = (int)ce... | debug_print_matrix | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void debug_print_option_flags(const char *msg, gretlopt opt) {
char c;
int i;
int started;
if (msg && *msg)
fprintf(stderr, "%s: ", msg);
if (opt) {
c = 65;
started = 0;
fprintf(stderr, "opt=%d (", opt);
for (i = 1; i <= 0x2000000; i *= 2) {
if ((opt & i) != 0) {
if (started... | void debug_print_option_flags(const char *msg, gretlopt opt) {
if (msg != NULL && *msg != '\0') {
fprintf(stderr, "%s: ", msg);
}
if (opt == 0) {
fprintf(stderr, "opt=0\n");
} else {
char c = 'A';
int i, started = 0;
fprintf(stderr, "opt=%d (", opt);
for (i = OPT_A; i <= OPT_Y; i *= 2... | debug_print_option_flags | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int decl_check(parser *p, int flags) {
const char *input;
char *v3;
if ((flags & 0x20) != 0) {
p->err = 18;
input = p->input;
v3 = gettext("Bare declarations are not allowed here");
gretl_errmsg_sprintf("%s:\n> '%s'", v3, input);
}
return p->err;
} | static int decl_check(parser *p, int flags) {
if (flags & P_COMPILE) {
p->err = E_PARSE;
gretl_errmsg_sprintf("%s:\n> '%s'",
_("Bare declarations are not allowed here"), p->input);
}
return p->err;
} | decl_check | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *decompanionize(const gretl_matrix *A, int neqns,
GretlMatrixMod mod) {
long v3;
int i;
int j;
int np;
gretl_matrix *ret;
np = A->cols;
if (mod == GRETL_MOD_TRANSPOSE)
ret = gretl_matrix_alloc(np, neqns);
else
ret = gretl_matrix_alloc(neqns, np);
if (... | gretl_matrix *decompanionize(const gretl_matrix *A, int neqns,
GretlMatrixMod mod) {
gretl_matrix *ret;
int np = A->cols;
if (mod == GRETL_MOD_TRANSPOSE) {
ret = gretl_matrix_alloc(np, neqns);
} else {
ret = gretl_matrix_alloc(neqns, np);
}
if (ret != NULL) {
doubl... | decompanionize | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int default_VAR_horizon(const DATASET *dset) {
int h;
h = libset_get_int(HORIZON);
if (h <= 0) {
if (dset)
return periods_from_pd(dset->pd);
else
return 20;
}
return h;
} | int default_VAR_horizon(const DATASET *dset) {
int h = libset_get_int(HORIZON);
if (h <= 0) {
if (dset != NULL) {
h = periods_from_pd(dset->pd);
} else {
h = 20;
}
}
return h;
} | default_VAR_horizon | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double default_hp_lambda(const DATASET *dset) {
return (double)(100 * dset->pd * dset->pd);
} | static double default_hp_lambda(const DATASET *dset) {
return 100 * dset->pd * dset->pd;
} | default_hp_lambda | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int default_lag_order(const DATASET *dset) {
int order;
order = 1;
if (!dset || dset->structure != 2) {
if (dset->pd > 51)
return 14;
else
return dset->pd;
}
return order;
} | int default_lag_order(const DATASET *dset) {
int order = 1;
if (!dataset_is_panel(dset)) {
order = (dset->pd < 52) ? dset->pd : 14;
}
return order;
} | default_lag_order | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void delete_MaskNodes(MaskNode *head) {
mask_node *t;
while (head) {
t = head->next;
free(head);
head = t;
}
} | static void delete_MaskNodes(MaskNode *head) {
MaskNode *t;
while (head != NULL) {
t = head->next;
free(head);
head = t;
}
} | delete_MaskNodes | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void delete_anonymous_equation_system(int level) {
equation_system *sys;
sys = get_anon_system_at_depth(level);
if (sys) {
sysstack = (GList *)g_list_remove(sysstack, sys);
gretl_object_unref(sys, GRETL_OBJ_SYS);
}
} | void delete_anonymous_equation_system(int level) {
equation_system *sys = get_anon_system_at_depth(level);
if (sys != NULL) {
sysstack = g_list_remove(sysstack, sys);
gretl_object_unref(sys, GRETL_OBJ_SYS);
}
} | delete_anonymous_equation_system | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void delete_foreign_script(int lang) {
int i;
for (i = 0; i < 5; ++i) {
if (lang == foreign_map[i].lang) {
if (foreign_map[i].scriptpath)
gretl_remove(foreign_map[i].scriptpath);
return;
}
}
} | static void delete_foreign_script(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) {
gretl_remove(foreign_map[i].scriptpath);
}
break;
}
}
} | delete_foreign_script | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int delete_function_override(const char *funname, const char *pkgname) {
int ret;
gchar *key;
ret = 0;
if (oht) {
key = (gchar *)g_strdup_printf("%s::%s", pkgname, funname);
if ((unsigned int)g_hash_table_remove(oht, key)) {
fprintf(stderr, "'%s': deleted override of built-in\n", key);
ret ... | int delete_function_override(const char *funname, const char *pkgname) {
int ret = 0;
if (oht != NULL) {
gchar *key = g_strdup_printf("%s::%s", pkgname, funname);
if (g_hash_table_remove(oht, key)) {
fprintf(stderr, "'%s': deleted override of built-in\n", key);
ret = 1;
}
g_free(key);
... | delete_function_override | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int delete_function_package(const char *gfnname) {
int err;
gchar *pkgname;
gchar *pkgdir;
gchar *pkgsub;
char *p;
char *pa;
char *pb;
p = strrslash(gfnname);
pkgname = 0;
pkgdir = 0;
pkgsub = 0;
if (p) {
pkgname = (gchar *)g_strdup(p + 1);
pa = strrchr(pkgname, 46);
if (pa)
*... | int delete_function_package(const char *gfnname) {
char *p = strrslash(gfnname);
gchar *pkgname = NULL;
gchar *pkgdir = NULL;
gchar *pkgsub = NULL;
int err = 0;
if (p != NULL) {
pkgname = g_strdup(p + 1);
p = strrchr(pkgname, '.');
if (p != NULL) {
*p = '\0';
}
pkgdir = g_strdup(g... | delete_function_package | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void delete_gretl_R_files() {
if (gretl_Rprofile)
gretl_remove(gretl_Rprofile);
if (gretl_Rsrc)
gretl_remove(gretl_Rsrc);
} | void delete_gretl_R_files(void) {
#if FDEBUG
fprintf(stderr, "deleting gretl R files...\n");
#endif
if (gretl_Rprofile != NULL) {
gretl_remove(gretl_Rprofile);
}
if (gretl_Rsrc != NULL) {
gretl_remove(gretl_Rsrc);
}
} | delete_gretl_R_files | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
MaskNode *delete_lower_MaskNodes(MaskNode *head, int l) {
MaskNode *heada;
MaskNode *tail;
mask_node *ta;
MaskNode *t;
while (1) {
if (!head)
return 0;
if (l <= head->leng)
break;
ta = head->next;
free(head);
head = ta;
}
tail = head;
for (heada = head; heada; heada = t)... | static MaskNode *delete_lower_MaskNodes(MaskNode *head, int l) {
MaskNode *s, *t, *tail;
s = head;
while (1) {
if (s == NULL)
return NULL;
if (s->leng >= l)
break;
t = s->next;
free(s);
s = t;
}
head = tail = s;
while (head != NULL) {
t = head->next;
if (head->leng... | delete_lower_MaskNodes | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *delete_null_cases(gretl_matrix *m, int keeprows, int *err) {
int i;
int j;
gretl_matrix *ret;
ret = gretl_matrix_alloc(keeprows, m->cols);
if (ret) {
for (i = 0; i < keeprows; ++i) {
for (j = 0; j < m->cols; ++j)
ret->val[j * ret->rows + i] = m->val[j * m->rows + i];
}
}... | static gretl_matrix *delete_null_cases(gretl_matrix *m, int keeprows,
int *err) {
gretl_matrix *ret;
ret = gretl_matrix_alloc(keeprows, m->cols);
if (ret == NULL) {
*err = E_ALLOC;
} else {
double x;
int i, j;
for (i = 0; i < keeprows; i++) {
for (j... | delete_null_cases | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretlopt delete_option_flags(gretlopt *targ, gretlopt test) {
*targ &= ~test;
return *targ;
} | gretlopt delete_option_flags(gretlopt *targ, gretlopt test) {
*targ &= ~(*targ & test);
return *targ;
} | delete_option_flags | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void delete_tsls_var(int *list, int v, gretlopt opt) {
int i;
int ia;
int ib;
int j;
int ja;
int jb;
int pos;
pos = gretl_list_separator_position(list);
if ((opt & 0x80000) != 0) {
for (i = pos + 1; i <= *list; ++i) {
if (v == list[i]) {
for (j = i; j < *list; ++j)
list[j]... | static void delete_tsls_var(int *list, int v, gretlopt opt) {
int pos = gretl_list_separator_position(list);
int i, j;
if (opt & OPT_T) {
for (i = pos + 1; i <= list[0]; i++) {
if (list[i] == v) {
for (j = i; j < list[0]; j++) {
list[j] = list[j + 1];
}
list[0] -= 1;
... | delete_tsls_var | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int delete_user_vars_of_type(GretlType type, PRN *prn) {
const char *name;
int err;
int level;
if (type != GRETL_TYPE_MATRIX && type != GRETL_TYPE_BUNDLE &&
type != GRETL_TYPE_ARRAY && type != GRETL_TYPE_STRING &&
type != GRETL_TYPE_DOUBLE && type != GRETL_TYPE_LIST) {
return 37;
}
level = ... | int delete_user_vars_of_type(GretlType type, PRN *prn) {
int err = 0;
if (type == GRETL_TYPE_MATRIX || type == GRETL_TYPE_BUNDLE ||
type == GRETL_TYPE_ARRAY || type == GRETL_TYPE_STRING ||
type == GRETL_TYPE_DOUBLE || type == GRETL_TYPE_LIST) {
int level = gretl_function_depth();
if (level == ... | delete_user_vars_of_type | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char delim_from_arg(const char *s) {
int i;
for (i = 0; csv_strs[i]; ++i) {
if (!strcmp(s, csv_strs[i]))
return csv_delims[i];
}
return 0;
} | static char delim_from_arg(const char *s) {
int i;
for (i = 0; csv_strs[i] != NULL; i++) {
if (!strcmp(s, csv_strs[i])) {
return csv_delims[i];
}
}
return 0;
} | delim_from_arg | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int depvar_zero(const MODEL *pmod, int yno, const double **Z) {
int t;
int ret;
double yt;
ret = 1;
for (t = pmod->t1; t <= pmod->t2; ++t) {
if (!model_missing(pmod, t)) {
yt = Z[yno][t];
if (pmod->nwt)
yt = Z[pmod->nwt][t] * yt;
if (yt != 0.0)
return 0;
}
}
retu... | static int depvar_zero(const MODEL *pmod, int yno, const double **Z) {
double yt;
int t, ret = 1;
for (t = pmod->t1; t <= pmod->t2; t++) {
if (model_missing(pmod, t)) {
continue;
}
yt = Z[yno][t];
if (pmod->nwt) {
yt *= Z[pmod->nwt][t];
}
if (yt != 0.0) {
ret = 0;
... | depvar_zero | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *deriv_free_node(NODE *l, NODE *m, NODE *r, parser *p, NODE *t) {
double v5;
int maxit;
MaxMethod method;
int minimize;
NODE *ret;
double tol;
gretl_matrix *b;
char *fcall;
ret = 0;
if ((p->flags & 2) == 0)
return get_aux_node(p, 54, 0, 0);
fcall = m->v.str;
tol = NAN;
maxit = 0;
b... | static NODE *deriv_free_node(NODE *l, NODE *m, NODE *r, parser *p, NODE *t) {
NODE *ret = NULL;
if (starting(p)) {
gretl_matrix *b = NULL;
const char *fcall = m->v.str;
double tol = NADBL;
int maxit = 0;
b = mat_node_get_real_matrix(l, p);
if (!p->err) {
if (gretl_is_null_matrix(b)) ... | deriv_free_node | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double deriv_free_optimize(MaxMethod method, gretl_matrix *b,
const char *fncall, int maxit, double tol,
int minimize, DATASET *dset, PRN *prn, int *err) {
int rows;
int iters;
gretlopt opt;
double ret;
umax *u;
unsigned long v19;
v19 = __readfsqword(... | double deriv_free_optimize(MaxMethod method, gretl_matrix *b,
const char *fncall, int maxit, double tol,
int minimize, DATASET *dset, PRN *prn, int *err) {
umax *u;
gretlopt opt = OPT_NONE;
double ret = NADBL;
if (b->is_complex) {
*err = E_CMPLX;
re... | deriv_free_optimize | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int deserialize_array_elements(gretl_array *A, xmlNodePtr cur, xmlDocPtr doc) {
void **v3;
void **v4;
void **v5;
void **v6;
void **v7;
int err;
int i;
GretlType type;
unsigned long v14;
v14 = __readfsqword(0x28u);
type = gretl_type_get_singular(A->type);
i = 0;
err = 0;
while (cur && !err &... | static int deserialize_array_elements(gretl_array *A, xmlNodePtr cur,
xmlDocPtr doc) {
GretlType type = gretl_type_get_singular(A->type);
int i = 0, err = 0;
while (cur != NULL && !err && i < A->n) {
if (!name_matches_array_type((char *)cur->name, type)) {
fprintf(... | deserialize_array_elements | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int deserialize_user_vars(const char *dirname) {
int i;
int n_failed;
int err;
int err_i;
xmlDocPtr doc;
xmlNodePtr cur;
const char *typestr;
FILE *fp;
int (*read_func)(...);
char root_name[16];
char path[520];
unsigned long v13;
v13 = __readfsqword(0x28u);
doc = 0;
cur = 0;
n_failed = ... | int deserialize_user_vars(const char *dirname) {
xmlDocPtr doc = NULL;
xmlNodePtr cur = NULL;
const char *typestr;
int (*read_func)();
char root_name[16];
char path[MAXLEN];
FILE *fp;
int i, n;
int n_failed = 0;
int err = 0;
n = sizeof uvar_files / sizeof uvar_files[0];
#if UDEBUG
fprintf(stde... | deserialize_user_vars | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void destroy_VAR_from_bundle(GRETL_VAR *var) {
int i;
gretl_matrix **mm[9];
unsigned long v3;
v3 = __readfsqword(0x28u);
mm[0] = &var->A;
mm[1] = &var->C;
mm[2] = &var->X;
mm[3] = &var->Y;
mm[4] = &var->XTX;
mm[5] = &var->B;
mm[6] = &var->S;
mm[7] = &var->E;
mm[8] = 0;
for (i = 1; mm[i]; ++... | static void destroy_VAR_from_bundle(GRETL_VAR *var) {
gretl_matrix **mm[] = {&var->A, &var->C, &var->X, &var->Y, &var->XTX,
&var->B, &var->S, &var->E, NULL};
int i, imin = 0;
imin = 1;
for (i = imin; mm[i] != NULL; i++) {
*mm[i] = NULL;
}
var->xlist = var->ylist = var->rlist ... | destroy_VAR_from_bundle | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void destroy_all_data_items(MODEL *pmod) {
int i;
if (pmod->n_data_items) {
maybe_delete_x12_file(pmod);
for (i = 0; i < pmod->n_data_items; ++i)
free_model_data_item(pmod->data_items[i]);
free(pmod->data_items);
pmod->data_items = 0;
}
} | static void destroy_all_data_items(MODEL *pmod) {
int i;
if (pmod->n_data_items == 0) {
return;
}
#ifdef HAVE_X12A
maybe_delete_x12_file(pmod);
#endif
for (i = 0; i < pmod->n_data_items; i++) {
free_model_data_item(pmod->data_items[i]);
}
free(pmod->data_items);
pmod->data_items = NULL;
} | destroy_all_data_items | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void destroy_dataset(DATASET *dset) {
if (dset) {
free_Z(dset);
clear_datainfo(dset, 0);
free(dset);
}
} | void destroy_dataset(DATASET *dset) {
if (dset != NULL) {
free_Z(dset);
clear_datainfo(dset, CLEAR_FULL);
free(dset);
}
} | destroy_dataset | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void destroy_full_dataset(DATASET *dset) {
if (fullset) {
if (fullset->varname == dset->varname)
fullset->varname = 0;
if (fullset->varinfo == dset->varinfo)
fullset->varinfo = 0;
if (fullset->descrip == dset->descrip)
fullset->descrip = 0;
destroy_dataset(fullset);
fullset = 0;
... | static void destroy_full_dataset(DATASET *dset) {
if (fullset != NULL) {
if (fullset->varname == dset->varname) {
fullset->varname = NULL;
}
if (fullset->varinfo == dset->varinfo) {
fullset->varinfo = NULL;
}
if (fullset->descrip == dset->descrip) {
fullset->descrip = NULL;
}... | destroy_full_dataset | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void destroy_genr(parser *p) {
if (p) {
p->flags = 0;
gen_cleanup(p);
free(p);
}
} | void destroy_genr(parser *p) {
#if GDEBUG
fprintf(stderr, "\n*** destroy_genr: p = %p\n", (void *)p);
#endif
if (p != NULL) {
p->flags = 0;
gen_cleanup(p);
free(p);
}
} | destroy_genr | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void destroy_genrs_array(nlspec *s) {
int i;
for (i = 0; i < s->ngenrs; ++i)
destroy_genr(s->genrs[i]);
free(s->genrs);
s->genrs = 0;
s->ngenrs = 0;
} | static void destroy_genrs_array(nlspec *s) {
int i;
for (i = 0; i < s->ngenrs; i++) {
destroy_genr(s->genrs[i]);
}
free(s->genrs);
s->genrs = NULL;
s->ngenrs = 0;
} | destroy_genrs_array | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void destroy_ident(identity *ident) {
free(ident->atoms);
free(ident);
} | static void destroy_ident(identity *ident) {
free(ident->atoms);
free(ident);
} | destroy_ident | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void destroy_loop_stack(LOOPSET *loop) {
LOOPSET *loopa;
loopa = loop;
if (loop) {
while (loopa->parent)
loopa = loopa->parent;
gretl_loop_destroy(loopa);
compile_level = 0;
loop_renaming = 0;
set_loop_off();
currloop = 0;
}
} | static void destroy_loop_stack(LOOPSET *loop) {
if (loop == NULL) {
return;
}
while (loop->parent != NULL) {
loop = loop->parent;
}
gretl_loop_destroy(loop);
compile_level = 0;
loop_renaming = 0;
set_loop_off();
currloop = NULL;
} | destroy_loop_stack | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void destroy_mangled_names() {
int i;
for (i = 0; i < n_mnames; ++i)
free(mnames[i].s);
free(mnames);
mnames = 0;
n_mnames = 0;
} | static void destroy_mangled_names(void) {
int i;
for (i = 0; i < n_mnames; i++) {
free(mnames[i].s);
}
free(mnames);
mnames = NULL;
n_mnames = 0;
} | destroy_mangled_names | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void destroy_matrix_mask() {
check_for_state();
gretl_matrix_free(state->matmask);
state->matmask = 0;
} | void destroy_matrix_mask(void) {
check_for_state();
gretl_matrix_free(state->matmask);
state->matmask = NULL;
} | destroy_matrix_mask | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void destroy_option_params_at_level(int level) {
int i;
int n;
n = n_stored_opts;
for (i = 0; i < n_stored_opts; ++i) {
if (level == optinfo[i].fd) {
clear_one_option(&optinfo[i]);
--n;
}
}
if (!n) {
free(optinfo);
optinfo = 0;
}
n_stored_opts = n;
} | void destroy_option_params_at_level(int level) {
int i, n = n_stored_opts;
#if OPTDEBUG
fprintf(stderr, "destroy_option_params_at_level: %d\n", level);
#endif
for (i = 0; i < n_stored_opts; i++) {
if (optinfo[i].fd == level) {
clear_one_option(&optinfo[i]);
n--;
}
}
if (n == 0) {
fr... | destroy_option_params_at_level | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int destroy_private_matrices() {
return real_destroy_user_vars_at_level(-1, 12, 0);
} | int destroy_private_matrices(void) {
return real_destroy_user_vars_at_level(LEV_PRIVATE, GRETL_TYPE_MATRIX, 0);
} | destroy_private_matrices | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void destroy_private_scalars() { real_destroy_user_vars_at_level(-1, 6, 0); } | void destroy_private_scalars(void) {
real_destroy_user_vars_at_level(LEV_PRIVATE, GRETL_TYPE_DOUBLE, 0);
} | destroy_private_scalars | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int destroy_private_uvars() {
return real_destroy_user_vars_at_level(-1, 0, 0);
} | int destroy_private_uvars(void) {
return real_destroy_user_vars_at_level(LEV_PRIVATE, 0, 0);
} | destroy_private_uvars | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void destroy_restriction(rrow *r) {
if (r) {
free(r->mult);
free(r->eq);
free(r->bnum);
free(r->letter);
free(r);
}
} | static void destroy_restriction(rrow *r) {
if (r != NULL) {
free(r->mult);
free(r->eq);
free(r->bnum);
free(r->letter);
free(r);
}
} | destroy_restriction | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void destroy_restriction_set(gretl_restriction *rset) {
int i;
if (rset->rows) {
for (i = 0; i < rset->g; ++i)
destroy_restriction(rset->rows[i]);
free(rset->rows);
}
free(rset->mask);
gretl_matrix_free(rset->R);
gretl_matrix_free(rset->q);
gretl_matrix_free(rset->Ra);
gretl_matrix_free(r... | void destroy_restriction_set(gretl_restriction *rset) {
if (rset->rows != NULL) {
int i;
for (i = 0; i < rset->g; i++) {
destroy_restriction(rset->rows[i]);
}
free(rset->rows);
}
free(rset->mask);
#if RDEBUG
fprintf(stderr, "destroy_restriction_set: R at %p, q at %p\n",
(void ... | destroy_restriction_set | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void destroy_user_vars() {
int j;
while (n_vars_0 > 0 && *uvars) {
user_var_destroy(*uvars);
for (j = 0; j < n_vars_0 - 1; ++j)
uvars[j] = uvars[j + 1];
uvars[n_vars_0 - 1] = 0;
}
if (uvh0 || uvh1)
uvar_hash_destroy();
set_nvars(0, "destroy_user_vars");
free(uvars);
uvars = 0;
n_a... | void destroy_user_vars(void) {
int i, j;
#if HDEBUG
fprintf(stderr, "destroy_user_vars, uvars_hash = %p (uvh0 %p, uvh1 %p)\n",
(void *)uvars_hash, (void *)uvh0, (void *)uvh1);
#endif
for (i = 0; i < n_vars; i++) {
if (uvars[i] == NULL) {
break;
}
user_var_destroy(uvars[i]);
for (... | destroy_user_vars | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int destroy_user_vars_at_level(int level) {
return real_destroy_user_vars_at_level(level, 0, 0);
} | int destroy_user_vars_at_level(int level) {
return real_destroy_user_vars_at_level(level, 0, 0);
} | destroy_user_vars_at_level | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int destroy_user_vars_via_callback(int type) {
int v2;
int i;
int ia;
int j;
int ja;
int n;
int err;
user_var **delvars;
n = 0;
err = 0;
for (i = 0; i < n_vars_0; ++i) {
if (!uvars[i]->level && uvars[i]->type == type)
++n;
}
if (!n)
return 0;
delvars = (user_var **)malloc(8LL ... | static int destroy_user_vars_via_callback(int type) {
user_var **delvars = NULL;
int i, j, n = 0;
int err = 0;
for (i = 0; i < n_vars; i++) {
if (uvars[i]->level == 0 && uvars[i]->type == type) {
n++;
}
}
if (n == 0) {
return 0;
}
delvars = malloc(n * sizeof *delvars);
if (delvars... | destroy_user_vars_via_callback | 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.