input stringlengths 16 454k | output stringlengths 13 350k | function_name stringlengths 1 100 | repo_name stringlengths 6 43 | category stringclasses 76
values | sample_id stringlengths 22 88 | decompiler stringclasses 1
value | opt_level stringclasses 1
value |
|---|---|---|---|---|---|---|---|
void print_param_labels(fn_param *param, PRN *prn) {
int i;
pputs(prn, " {");
for (i = 0; i < param->nlabels; ++i) {
pprintf(prn, "\"%s\"", param->labels[i]);
if (i < param->nlabels - 1)
pputs(prn, ", ");
}
pputc(prn, 125);
} | static void print_param_labels(fn_param *param, PRN *prn) {
int i;
pputs(prn, " {");
for (i = 0; i < param->nlabels; i++) {
pprintf(prn, "\"%s\"", param->labels[i]);
if (i < param->nlabels - 1) {
pputs(prn, ", ");
}
}
pputc(prn, '}');
} | print_param_labels | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_plain_numbers(int *list, const DATASET *dset, PRN *prn) {
int i;
int t;
int vi;
for (t = dset->t1; t <= dset->t2; ++t) {
for (i = 1; i <= *list; ++i) {
vi = list[i];
if (fabs(dset->Z[vi][t]) <= 1.797693134862316e308)
pprintf(prn, "%.8g", dset->Z[vi][t]);
else
pp... | static void print_plain_numbers(int *list, const DATASET *dset, PRN *prn) {
int i, vi, t;
for (t = dset->t1; t <= dset->t2; t++) {
for (i = 1; i <= list[0]; i++) {
vi = list[i];
if (na(dset->Z[vi][t])) {
pputs(prn, "NA");
} else {
pprintf(prn, "%.8g", dset->Z[vi][t]);
}
... | print_plain_numbers | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_plot_arrow(const GPT_ARROW *arrow, FILE *fp) {
const char *v2;
gretl_push_c_numeric_locale();
if ((arrow->flags & 1) != 0)
v2 = "head";
else
v2 = "nohead";
fprintf(fp, "set arrow from %g,%g to %g,%g %s", arrow->x0, arrow->y0,
arrow->x1, arrow->y1, v2);
if ((arrow->flags & 2) !=... | static void print_plot_arrow(const GPT_ARROW *arrow, FILE *fp) {
gretl_push_c_numeric_locale();
fprintf(fp, "set arrow from %g,%g to %g,%g %s", arrow->x0, arrow->y0,
arrow->x1, arrow->y1,
(arrow->flags & GP_ARROW_HEAD) ? "head" : "nohead");
if (arrow->flags & GP_ARROW_DOTS) {
fputs(" lt 0"... | print_plot_arrow | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_plot_labelspec(const GPT_LABEL *lbl, FILE *fp) {
const GPT_LABEL *v2;
const char *v3;
char *label;
label = escape_quotes(lbl->text);
if (label)
v2 = (const GPT_LABEL *)label;
else
v2 = lbl;
fprintf(fp, "set label \"%s\" ", v2->text);
gretl_push_c_numeric_locale();
v3 = gp_justifica... | static void print_plot_labelspec(const GPT_LABEL *lbl, FILE *fp) {
char *label = escape_quotes(lbl->text);
fprintf(fp, "set label \"%s\" ", (label != NULL) ? label : lbl->text);
gretl_push_c_numeric_locale();
fprintf(fp, "at %g,%g %s front\n", lbl->pos[0], lbl->pos[1],
gp_justification_string(lbl->... | print_plot_labelspec | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_plot_ranges_etc(const GPT_SPEC *spec, FILE *fp) {
int i;
const char *rstrs[5];
unsigned long v4;
v4 = __readfsqword(0x28u);
rstrs[0] = "x";
rstrs[1] = "y";
rstrs[2] = "y2";
rstrs[3] = "t";
rstrs[4] = "x2";
gretl_push_c_numeric_locale();
for (i = 0; i <= 4; ++i) {
if (i <= 2 && spec... | void print_plot_ranges_etc(const GPT_SPEC *spec, FILE *fp) {
const char *rstrs[] = {"x", "y", "y2", "t", "x2"};
int i;
gretl_push_c_numeric_locale();
for (i = 0; i < 5; i++) {
if (i < 3 && spec->logbase[i] > 0.0) {
fprintf(fp, "set logscale %s %g\n", rstrs[i], spec->logbase[i]);
}
if (na(sp... | print_plot_ranges_etc | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_plotbars(GPT_SPEC *spec, FILE *fp) {
int i;
int started;
int stopped;
plotbars *bars;
double y0;
double y1;
bars = spec->bars;
y0 = bars->ymin;
y1 = bars->ymax;
if (spec->heredata)
fwrite("$bars << EOB\n", 1u, 0xDu, fp);
for (i = 0; i < bars->n; ++i) {
if (bars->t1 <= bars->dx[... | static void print_plotbars(GPT_SPEC *spec, FILE *fp) {
plotbars *bars = spec->bars;
double y0 = bars->ymin;
double y1 = bars->ymax;
int i, started, stopped;
if (spec->heredata) {
fputs("$bars << EOB\n", fp);
}
for (i = 0; i < bars->n; i++) {
if (bars->dx[i][1] < bars->t1) {
continue;
}... | print_plotbars | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_pm_filledcurve_line(double factor, const char *title,
const char *rgb, FILE *fp) {
gretlRGB shadecolor;
char cstr[10];
unsigned long v7;
v7 = __readfsqword(0x28u);
if (rgb && *rgb) {
cstr[0] = 0;
strncat(cstr, rgb, 9u);
} else {
shadecolor = get_shadeco... | static void print_pm_filledcurve_line(double factor, const char *title,
const char *rgb, FILE *fp) {
char cstr[10];
if (rgb != NULL && *rgb != '\0') {
*cstr = '\0';
strncat(cstr, rgb, 9);
} else {
print_rgb_hash(cstr, get_shadecolor());
}
if (title == NULL) ... | print_pm_filledcurve_line | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_polar_labels(const GPT_SPEC *spec, FILE *fp) {
int t;
double x;
double y;
unsigned long v6;
v6 = __readfsqword(0x28u);
fwrite("# printing data labels\n", 1u, 0x17u, fp);
gretl_push_c_numeric_locale();
for (t = 0; t < spec->nobs; ++t) {
if ((!spec->labeled || spec->labeled[t]) &&
(... | static int print_polar_labels(const GPT_SPEC *spec, FILE *fp) {
double x, y;
int t;
fputs("# printing data labels\n", fp);
gretl_push_c_numeric_locale();
for (t = 0; t < spec->nobs; t++) {
if (spec->labeled != NULL && !spec->labeled[t]) {
continue;
}
if (sscanf(spec->markers[t], "%lf,%lf... | print_polar_labels | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_probit_rho(const MODEL *pmod, PRN *prn) {
double r;
ensure_vsep(prn);
if (pmod->ci == 102 && (pmod->opt & 0x10) != 0) {
if (tex_format(prn))
pprintf(prn, "$\\hat{\\sigma}_u$ = %.5f\n", pmod->sigma);
else
pprintf(prn, "sigma_u = %g\n", pmod->sigma);
}
if (tex_format(prn)) {
... | static void print_probit_rho(const MODEL *pmod, PRN *prn) {
ensure_vsep(prn);
if (re_probit_model(pmod)) {
if (tex_format(prn)) {
pprintf(prn, "$\\hat{\\sigma}_u$ = %.5f\n", pmod->sigma);
} else {
pprintf(prn, "sigma_u = %g\n", pmod->sigma);
}
}
if (tex_format(prn)) {
double r = pm... | print_probit_rho | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_pv_string(double x, double p, PRN *prn) {
char *v3;
char *v5;
char *v6;
char numstr[40];
unsigned long v8;
v8 = __readfsqword(0x28u);
if (fabs(p) <= 1.797693134862316e308) {
sprintf(numstr, "%g", p);
if (!strcmp(numstr, "1") || !strcmp(numstr, "0")) {
v5 = gettext("area to the rig... | static int print_pv_string(double x, double p, PRN *prn) {
char numstr[32];
if (na(p)) {
pprintf(prn, _("area to the right of %g: NA\n"), x);
return 1;
}
sprintf(numstr, "%g", p);
if (!strcmp(numstr, "1") || !strcmp(numstr, "0")) {
pprintf(prn, _("area to the right of %g =~ %g\n"), x, p);
} e... | print_pv_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_pval_str(double pval, char *str) {
if (pval >= 0.0001)
sprintf(str, "%.4f", pval);
else
sprintf(str, "<%.4f", 0.0001);
} | static void print_pval_str(double pval, char *str) {
if (pval < .0001) {
sprintf(str, "<%.4f", 0.0001);
} else {
sprintf(str, "%.4f", pval);
}
} | print_pval_str | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_pvalue(int dist, const double *parm, double x, double pv, PRN *prn) {
char *v5;
char *v6;
char *v7;
char *v8;
char *v9;
char *v10;
int v11;
char *v12;
char *v13;
char *v14;
double v15;
char *v16;
unsigned int v17;
double v18;
char *v19;
char *v20;
double v21;
char *v22;
... | void print_pvalue(int dist, const double *parm, double x, double pv, PRN *prn) {
double pc;
int err;
switch (dist) {
case D_NORMAL:
pprintf(prn, "%s: ", _("Standard normal"));
err = print_pv_string(x, pv, prn);
if (err)
return;
if (pv < 0.5) {
pprintf(prn, _("(two-tailed value = %g... | print_pvalue | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_raw_and_ranked(int vx, int vy, const double *x, const double *y,
const double *rx, const double *ry,
const DATASET *dset, PRN *prn) {
int v8;
int v9;
char *v10;
const char *v11;
char *v12;
int t;
int i;
int T;
int obslen;
int n1;
int n... | static void print_raw_and_ranked(int vx, int vy, const double *x,
const double *y, const double *rx,
const double *ry, const DATASET *dset,
PRN *prn) {
int T = dset->t2 - dset->t1 + 1;
int obslen = max_obs_marker_leng... | print_raw_and_ranked | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_re_results(panelmod_t *pan, MODEL *pmod, DATASET *dset, PRN *prn) {
char *v4;
double s2v;
char *v6;
double s2e;
char *v8;
double theta;
char *v10;
char *v11;
char *v12;
v4 = gettext("Variance estimators:");
pputs(prn, v4);
pputc(prn, 10);
s2v = pan->s2v;
v6 = gettext(" between = ... | static void print_re_results(panelmod_t *pan, MODEL *pmod, DATASET *dset,
PRN *prn) {
pputs(prn, _("Variance estimators:"));
pputc(prn, '\n');
pprintf(prn, _(" between = %g"), pan->s2v);
pputc(prn, '\n');
pprintf(prn, _(" within = %g"), pan->s2e);
pputc(prn, '\n');
if (pan->b... | print_re_results | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_redirected_at_level(PRN *prn, int level) {
guint i;
if (prn->fplist) {
for (i = 0; prn->fplist->len > i; ++i) {
if (level == *(_DWORD *)&prn->fplist->data[32 * i + 8])
return 1;
}
}
return 0;
} | int print_redirected_at_level(PRN *prn, int level) {
if (prn->fplist != NULL) {
fpinfo *fi;
int i;
for (i = 0; i < prn->fplist->len; i++) {
fi = &g_array_index(prn->fplist, fpinfo, i);
if (fi->level == level) {
return 1;
}
}
}
return 0;
} | print_redirected_at_level | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *print_redirection_filename(PRN *prn) {
fpinfo *fi;
if (prn && prn_fp_list_active(prn) &&
(fi = (fpinfo *)&prn->fplist->data[32 * prn->fplist->len - 32]) != 0 &&
fi->fname) {
return fi->fname;
} else {
return 0;
}
} | const char *print_redirection_filename(PRN *prn) {
if (prn != NULL && prn_fp_list_active(prn)) {
int i = prn->fplist->len - 1;
fpinfo *fi;
fi = &g_array_index(prn->fplist, fpinfo, i);
if (fi != NULL && fi->fname != NULL) {
return fi->fname;
}
}
return NULL;
} | print_redirection_filename | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_redirection_level(PRN *prn) {
int ret;
ret = 0;
if (prn) {
if (prn->fp && prn->buf) {
ret = 1;
} else if (prn->fixed) {
ret = 1;
}
if (prn_fp_list_active(prn))
ret += prn->fplist->len;
}
return ret;
} | int print_redirection_level(PRN *prn) {
int ret = 0;
if (prn != NULL) {
if (prn->fp != NULL && prn->buf != NULL) {
ret = 1;
} else if (prn->fixed) {
ret = 1;
}
if (prn_fp_list_active(prn)) {
ret += prn->fplist->len;
}
}
return ret;
} | print_redirection_level | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_restricted_estimates(MODEL *pmod, const DATASET *dset,
gretl_matrix *vb, gretl_matrix *S, double s2,
int nc, int rk, PRN *prn) {
char *v9;
double v10;
int gretl_digits;
char *v12;
int i;
double *b;
char **names;
double *se;
b = v... | static int print_restricted_estimates(MODEL *pmod, const DATASET *dset,
gretl_matrix *vb, gretl_matrix *S,
double s2, int nc, int rk, PRN *prn) {
const double *b = vb->val;
char **names;
double v, *se;
int i;
names = strings_array_ne... | print_restricted_estimates | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_restriction(const gretl_restriction *rset, int i,
const DATASET *dset, PRN *prn) {
char v4;
char letter;
int j;
int k;
const rrow *r;
MODEL *pmod;
char vname[40];
unsigned long v13;
v13 = __readfsqword(0x28u);
r = rset->rows[i];
for (j = 0; j < r->nterms; ++j) {
... | static void print_restriction(const gretl_restriction *rset, int i,
const DATASET *dset, PRN *prn) {
const rrow *r = rset->rows[i];
char letter, vname[VNAMELEN];
int j, k;
for (j = 0; j < r->nterms; j++) {
letter = (r->letter != NULL) ? r->letter[j] : 'b';
k = r->bnum[j];
... | print_restriction | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_restriction_from_matrices(const gretl_matrix *R,
const gretl_matrix *q, char letter,
int npar, PRN *prn) {
double v5;
int eqn;
int coeff;
int started;
int i;
int j;
double x;
for (i = 0; i < R->rows; ++i) {
started... | void print_restriction_from_matrices(const gretl_matrix *R,
const gretl_matrix *q, char letter,
int npar, PRN *prn) {
double x;
int eqn, coeff, started;
int i, j;
for (i = 0; i < R->rows; i++) {
started = 0;
coeff = 1;
eqn = ... | print_restriction_from_matrices | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_restriction_set(const gretl_restriction *rset, const DATASET *dset,
gretlopt opt, PRN *prn) {
char *v4;
char *v5;
int i;
if (prn) {
if (rset->g <= 1) {
v5 = gettext("Restriction");
pprintf(prn, "%s:", v5);
} else {
v4 = gettext("Restriction set");... | static void print_restriction_set(const gretl_restriction *rset,
const DATASET *dset, gretlopt opt, PRN *prn) {
int i;
if (prn == NULL) {
return;
}
if (rset->g > 1) {
pputs(prn, _("Restriction set"));
} else {
pprintf(prn, "%s:", _("Restriction"));
}
pputc(p... | print_restriction_set | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_rgb_hash(char *s, gretlRGB color) { sprintf(s, "#%06X", color); } | void print_rgb_hash(char *s, gretlRGB color) { sprintf(s, "#%06X", color); } | print_rgb_hash | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_rho(const ARINFO *arinfo, int c, int dfd, PRN *prn) {
double v4;
double tval;
double pval;
char ustr[32];
char s1[32];
char s2[32];
char s3[32];
char pvalstr[40];
unsigned long v14;
v14 = __readfsqword(0x28u);
tval = arinfo->rho[c] / arinfo->sderr[c];
if (tex_format(prn)) {
tex_r... | static void print_rho(const ARINFO *arinfo, int c, int dfd, PRN *prn) {
double tval = arinfo->rho[c] / arinfo->sderr[c];
char ustr[32];
if (tex_format(prn)) {
char s1[32], s2[32], s3[32], s4[32];
tex_rl_double(arinfo->rho[c], s1);
tex_rl_double(arinfo->sderr[c], s2);
tex_rl_float(tval, s3, 4);
... | print_rho | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_root(double rx, double ix, double mod, double fr, int i, int hline,
PRN *prn) {
char *v7;
char *v8;
char *v9;
if (plain_format(prn)) {
v7 = gettext("Root");
pprintf(prn, root_fmt, v7, (unsigned int)i, rx, ix, mod, fr);
} else if (tex_format(prn)) {
v8 = gettext("Root");... | static void print_root(double rx, double ix, double mod, double fr, int i,
int hline, PRN *prn) {
if (plain_format(prn)) {
pprintf(prn, root_fmt, _("Root"), i, rx, ix, mod, fr);
} else if (tex_format(prn)) {
pprintf(prn, "& %s & %d & $%.4f$ & $%.4f$ & $%.4f$ & $%.4f$ \\\\ ",
... | print_root | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_rq_sequence(const MODEL *pmod, const DATASET *dset, PRN *prn) {
int rows;
char *v5;
int v6;
int v7;
int taulen;
int namelen;
int i;
int ia;
int ib;
int ic;
int j;
int ja;
int k;
int ntau;
int bcols;
int n;
int na;
int nb;
double se;
double blo;
double bhi;
gretl_vec... | static int print_rq_sequence(const MODEL *pmod, const DATASET *dset, PRN *prn) {
gretl_vector *tauvec = gretl_model_get_data(pmod, "rq_tauvec");
gretl_matrix *B = gretl_model_get_data(pmod, "rq_sequence");
double tau, bi, se = NADBL;
double blo = 0, bhi = 0;
char test[16];
int n, bcols, taulen = 5;
int na... | print_rq_sequence | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_sample_obs(const DATASET *dset, PRN *prn) {
char *v2;
char d1[16];
char d2[24];
unsigned long v6;
v6 = __readfsqword(0x28u);
ntolabel(d1, dset->t1, dset);
ntolabel(d2, dset->t2, dset);
v2 = gettext("Current sample");
pprintf(prn, "%s: %s - %s", v2, d1, d2);
pprintf(prn, " (n = %d)\n", ds... | void print_sample_obs(const DATASET *dset, PRN *prn) {
char d1[OBSLEN], d2[OBSLEN];
ntolabel(d1, dset->t1, dset);
ntolabel(d2, dset->t2, dset);
pprintf(prn, "%s: %s - %s", _("Current sample"), d1, d2);
pprintf(prn, " (n = %d)\n", dset->t2 - dset->t1 + 1);
} | print_sample_obs | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_sample_status(const DATASET *dset, PRN *prn) {
char *v2;
char *v3;
char *v4;
char *v5;
int pd;
char *v7;
int n;
char *endobs;
char *stobs;
char *v11;
char *v12;
char *restriction;
char *v14;
char *v15;
char *v16;
char *v17;
char *v18;
int v19;
char *v20;
int v21;
cha... | void print_sample_status(const DATASET *dset, PRN *prn) {
char tmp[128];
if (complex_subsampled()) {
pprintf(prn, "%s\n", _("Full dataset"));
dataset_type_string(tmp, fullset);
pprintf(prn, "%s: %s\n", _("Type"), tmp);
if (dataset_is_time_series(fullset)) {
pd_string(tmp, fullset);
ppri... | print_sample_status | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_save_model(MODEL *pmod, DATASET *dset, gretlopt opt, int loop_force,
PRN *prn, ExecState *s) {
int err;
int havename;
int window;
gretlopt popt;
unsigned long v15;
v15 = __readfsqword(0x28u);
err = pmod->errcode;
if (!err) {
set_gretl_errno(0);
if (!gretl_looping_... | static int print_save_model(MODEL *pmod, DATASET *dset, gretlopt opt,
int loop_force, PRN *prn, ExecState *s) {
int err = pmod->errcode;
if (!err) {
set_gretl_errno(0);
if (!gretl_looping_currently() || loop_force) {
int havename = *s->cmd->savename != '\0';
int wind... | print_save_model | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_scalar_by_name(const char *name, PRN *prn) {
user_var *u;
double x;
u = get_user_var_of_type_by_name(name, GRETL_TYPE_DOUBLE);
if (u) {
x = *(double *)u->ptr;
pprintf(prn, "\n%15s = ", u->name);
write_scalar_value(x, "% #.8g\n", prn);
}
} | void print_scalar_by_name(const char *name, PRN *prn) {
user_var *u;
u = get_user_var_of_type_by_name(name, GRETL_TYPE_DOUBLE);
if (u != NULL) {
double x = *(double *)u->ptr;
pprintf(prn, "\n%15s = ", u->name);
write_scalar_value(x, "% #.8g\n", prn);
}
} | print_scalar_by_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_scalars(PRN *prn) {
char *v1;
int ns;
int maxlen;
int i;
int ia;
int level;
int len;
double x;
level = gretl_function_depth();
ns = 0;
maxlen = 0;
for (i = 0; i < n_vars_0; ++i) {
if (uvars[i]->type == GRETL_TYPE_DOUBLE && level == uvars[i]->level) {
len = strlen(uvars[i]->... | void print_scalars(PRN *prn) {
double x;
int level = gretl_function_depth();
int len, ns = 0, maxlen = 0;
int i;
for (i = 0; i < n_vars; i++) {
if (uvars[i]->type == GRETL_TYPE_DOUBLE && uvars[i]->level == level) {
len = strlen(uvars[i]->name);
if (len > maxlen) {
maxlen = len;
... | print_scalars | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_sep_row(int namelen, int ncols, int *w, int colsep, PRN *prn) {
int j;
int ja;
int n;
pputc(prn, 10);
bufspace(2, prn);
n = colsep * ncols + namelen;
for (j = 0; j < ncols; ++j)
n += w[j];
for (ja = 0; ja < n; ++ja)
pputc(prn, 45);
pputc(prn, 10);
return n;
} | static int print_sep_row(int namelen, int ncols, int *w, int colsep, PRN *prn) {
int j, n;
pputc(prn, '\n');
bufspace(2, prn);
n = namelen + ncols * colsep;
for (j = 0; j < ncols; j++) {
n += w[j];
}
for (j = 0; j < n; j++) {
pputc(prn, '-');
}
pputc(prn, '\n');
return n;
} | print_sep_row | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_series_by_var(const DATASET *dset, int v, PRN *prn) {
int t;
int ta;
int ls;
int anyneg;
int n;
const double *z;
double x;
char format[12];
char str[40];
unsigned long v13;
v13 = __readfsqword(0x28u);
z = dset->Z[v];
ls = 0;
anyneg = 0;
for (t = dset->t1; t <= dset->t2; ++t) {
... | static void print_series_by_var(const DATASET *dset, int v, PRN *prn) {
const double *z = dset->Z[v];
char format[12];
int t, ls = 0;
int anyneg = 0;
double x;
for (t = dset->t1; t <= dset->t2; t++) {
if (z[t] < 0) {
anyneg = 1;
break;
}
}
if (anyneg) {
sprintf(format, "%% #.%d... | print_series_by_var | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_series_with_format(const int *list, const DATASET *dset, char fmt,
int digits, PRN *prn) {
void *v5;
int *v7;
int v8;
char *v9;
_QWORD v10[2];
PRN *prna;
int digitsa;
char fmta;
const DATASET *dseta;
const int *lista;
int i;
int j;
int t;
int k;
int n... | int print_series_with_format(const int *list, const DATASET *dset, char fmt,
int digits, PRN *prn) {
int BMAX = libset_get_int(DATACOLS);
int i, j, j0, v, t, k, nrem = 0;
int *colwidths, blist[BMAX + 1];
char obslabel[OBSLEN];
char format[16];
char *buf = NULL;
int buflen, obs... | print_series_with_format | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_settings(PRN *prn, gretlopt opt) {
char *v2;
char *v3;
const char *v4;
const char *v5;
const char *string;
int gretl_digits;
const char *plotstyle;
const char *v9;
const char *v10;
const char *v11;
const char *v12;
unsigned int seed;
unsigned int v14;
const char *workdir;
const c... | static int print_settings(PRN *prn, gretlopt opt) {
const char *workdir = gretl_workdir();
if (opt & OPT_D) {
pputs(prn, _("Variables that can be set using \"set\""));
pputs(prn, " (");
pputs(prn, _("\"help set\" for details"));
pputs(prn, "):\n");
}
libset_header(N_("Program interaction and b... | print_settings | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_smpl(const DATASET *dset, int fulln, gretlopt opt, PRN *prn) {
char *v4;
unsigned int v5;
char *v6;
char *v7;
int n;
char *v9;
if (dset && dset->v && prn && ((opt & 0x20) != 0 || gretl_messages_on())) {
if (!fulln || dset->structure == 2) {
if (fulln) {
v7 = gettext("Full dat... | void print_smpl(const DATASET *dset, int fulln, gretlopt opt, PRN *prn) {
if (dset == NULL || dset->v == 0 || prn == NULL) {
return;
}
if (!(opt & OPT_F) && !gretl_messages_on()) {
return;
}
if (fulln && !dataset_is_panel(dset)) {
pprintf(prn, _("Full data set: %d observations\n"), fulln);
... | print_smpl | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_stage_1_coeffs(GRETL_VAR *v, gretl_matrix *B, PRN *prn) {
int v3;
gretl_matrix tmp;
unsigned long v6;
v6 = __readfsqword(0x28u);
gretl_matrix_init(&tmp);
tmp.rows = B->rows;
tmp.cols = v->neqns;
tmp.val = B->val;
gretl_matrix_print_to_prn(&tmp, "\nCoefficients, VAR in differences", prn);
... | static void print_stage_1_coeffs(GRETL_VAR *v, gretl_matrix *B, PRN *prn) {
gretl_matrix tmp;
gretl_matrix_init(&tmp);
tmp.rows = B->rows;
tmp.cols = v->neqns;
tmp.val = B->val;
gretl_matrix_print_to_prn(&tmp, "\nCoefficients, VAR in differences", prn);
tmp.cols += n_restricted_terms(v);
tmp.val += ... | print_stage_1_coeffs | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_start_redirection(PRN *prn, FILE *fp, const char *fname,
const char *strvar) {
if (!prn || prn->fixed)
return 1;
if (prn->fp)
fflush(prn->fp);
if (fp)
prn_push_stream(prn, fp, fname, strvar);
else
prn->fixed = 1;
return 0;
} | int print_start_redirection(PRN *prn, FILE *fp, const char *fname,
const char *strvar) {
if (prn == NULL || prn->fixed) {
return 1;
}
if (prn->fp != NULL) {
fflush(prn->fp);
}
if (fp == NULL) {
prn->fixed = 1;
} else {
prn_push_stream(prn, fp, fname, strvar);
... | print_start_redirection | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_state_matrix(SetKey key, PRN *prn, gretlopt opt) {
const gretl_matrix *m;
char *name;
if (key == INITVALS) {
name = "initvals";
m = state->initvals;
} else {
name = "initcurv";
m = state->initcurv;
}
if ((opt & 8) != 0) {
if (m)
gretl_matrix_print_to_prn(m, name, prn);
... | static void print_state_matrix(SetKey key, PRN *prn, gretlopt opt) {
gretl_matrix *m;
char *name;
if (key == INITVALS) {
name = "initvals";
m = state->initvals;
} else {
name = "initcurv";
m = state->initcurv;
}
if (opt & OPT_D) {
if (m == NULL) {
pprintf(prn, " %s = auto\n", nam... | print_state_matrix | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_stringvals_for_var(const DATASET *dset, int v, PRN *prn) {
int ls;
int t;
int n;
const char *s;
ls = 0;
for (t = dset->t1; t <= dset->t2; ++t) {
s = series_get_string_for_obs(dset, v, t);
if (!s)
s = "(null)";
n = strlen(s);
if (ls + n > 78) {
pputc(prn, 10);
ls... | static void print_stringvals_for_var(const DATASET *dset, int v, PRN *prn) {
const char *s;
int ls = 0;
int t, n;
for (t = dset->t1; t <= dset->t2; t++) {
s = series_get_string_for_obs(dset, v, t);
if (s == NULL) {
s = "(null)";
}
n = strlen(s);
if (ls + n > 78) {
pputc(prn, '\n... | print_stringvals_for_var | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_summary(const Summary *summ, const DATASET *dset, PRN *prn) {
char *v3;
char *v4;
int v5;
int v6;
char *v7;
char *v8;
int v9;
char *v10;
char *v11;
int v12;
char *v13;
char *v14;
int v15;
char *v16;
int v17;
char *v18;
int v19;
char *v20;
char *v21;
int v22;
char *v2... | void print_summary(const Summary *summ, const DATASET *dset, PRN *prn) {
int dmax, d = get_gretl_digits();
int len, maxlen = 0;
int i, vi;
if (summ->list == NULL || summ->list[0] == 0) {
return;
}
if (summ->weight_var > 0) {
pputc(prn, '\n');
pprintf(prn, _("Weighting variable: %s\n"),
... | print_summary | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_summary_single(const Summary *s, int digits, int places,
const DATASET *dset, PRN *prn) {
char *v5;
unsigned int v6;
unsigned int v7;
char *v8;
char *v9;
unsigned int v10;
char *v11;
char *v12;
char *v13;
char *v14;
char *v15;
char *v16;
char *v17;
int ut... | void print_summary_single(const Summary *s, int digits, int places,
const DATASET *dset, PRN *prn) {
const char *labels[NSUMM] = {N_("Mean"),
N_("Median"),
N_("Minimum"),
N_("Maximum"),
... | print_summary_single | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_system_equation(const int *list, const DATASET *dset, PRN *prn) {
int i;
int v;
pputs(prn, "equation");
for (i = 1; i <= *list; ++i) {
v = list[i];
if (v == -100) {
pputs(prn, " ;");
} else if (v <= 0 || v >= dset->v) {
pprintf(prn, " %d", v);
} else {
pprintf(prn, ... | static void print_system_equation(const int *list, const DATASET *dset,
PRN *prn) {
int i, v;
pputs(prn, "equation");
for (i = 1; i <= list[0]; i++) {
v = list[i];
if (v == LISTSEP) {
pputs(prn, " ;");
} else if (v > 0 && v < dset->v) {
pprintf(prn, " %s... | print_system_equation | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_system_identity(const identity *ident, const DATASET *dset,
gretlopt opt, PRN *prn) {
unsigned int v4;
int i;
if ((opt & 0x80) != 0)
pprintf(prn, "Identity: %s = %s ", dset->varname[ident->depvar],
dset->varname[ident->atoms->varnum]);
else
pprintf(prn,... | static void print_system_identity(const identity *ident, const DATASET *dset,
gretlopt opt, PRN *prn) {
int i;
if (opt & OPT_H) {
pprintf(prn, "Identity: %s = %s ", dset->varname[ident->depvar],
dset->varname[ident->atoms[0].varnum]);
} else {
pprintf(prn, "i... | print_system_identity | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_system_overid_test(const equation_system *sys, PRN *prn) {
double v2;
char *v3;
double v4;
char *v5;
double ll;
char *v7;
double v8;
char *v9;
double llu;
char *v11;
char *v12;
double v13;
char *v14;
double v15;
char *v16;
char *v17;
char *v18;
char *v19;
char *v20;
do... | static void print_system_overid_test(const equation_system *sys, PRN *prn) {
int tex = tex_format(prn);
int df = system_get_overid_df(sys);
double pv;
if (sys->method == SYS_METHOD_FIML && df > 0) {
double X2;
if (na(sys->ll) || na(sys->llu) || sys->ll == 0.0 || sys->llu == 0.0) {
return;
}
... | print_system_overid_test | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_term_string(int ttype, PlotType ptype, GptFlags flags, FILE *fp) {
char term_line[264];
unsigned long v7;
v7 = __readfsqword(0x28u);
term_line[0] = 0;
switch (ttype) {
case 2:
gretl_eps_term_line(term_line, ptype, flags);
break;
case 3:
gretl_pdf_term_line(term_line, ptype, flags);... | static void print_term_string(int ttype, PlotType ptype, GptFlags flags,
FILE *fp) {
char term_line[TERMLEN];
*term_line = '\0';
if (ttype == GP_TERM_EPS) {
gretl_eps_term_line(term_line, ptype, flags);
} else if (ttype == GP_TERM_PDF) {
gretl_pdf_term_line(term_line, pty... | print_term_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_test_opt(const ModelTest *test, PRN *prn) {
char *v2;
const char *optstr;
optstr = test_get_opt_string(test);
if (optstr) {
v2 = gettext(optstr);
pprintf(prn, " (%s)", v2);
}
} | static void print_test_opt(const ModelTest *test, PRN *prn) {
const char *optstr = test_get_opt_string(test);
if (optstr != NULL) {
pprintf(prn, " (%s)", _(optstr));
}
} | print_test_opt | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_test_round(boot *bs, int i, double test, PRN *prn) {
const char *v4;
if (test <= bs->test0)
v4 = (const char *)&unk_320646;
else
v4 = " *";
pprintf(prn, "round %d: test = %g%s\n", i + 1, test, v4);
} | static void print_test_round(boot *bs, int i, double test, PRN *prn) {
pprintf(prn, "round %d: test = %g%s\n", i + 1, test,
test > bs->test0 ? " *" : "");
} | print_test_round | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_unit_variances(panelmod_t *pan, double *uvar, int wald_test,
PRN *prn) {
int i;
int Ti;
pputs(prn, " unit variance\n");
for (i = 0; i < pan->nunits; ++i) {
Ti = pan->unit_obs[i];
if (fabs(uvar[i]) > 1.797693134862316e308 || wald_test && Ti <= 1)
pprintf(prn... | static void print_unit_variances(panelmod_t *pan, double *uvar, int wald_test,
PRN *prn) {
int i, Ti;
pputs(prn, " unit variance\n");
for (i = 0; i < pan->nunits; i++) {
Ti = pan->unit_obs[i];
if (na(uvar[i]) || (wald_test && Ti < 2)) {
pprintf(prn, "%5d%12s (T ... | print_unit_variances | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_user_lines_info(const GPT_SPEC *spec, FILE *fp) {
int i;
int ia;
int n;
n = 0;
for (i = 0; i < spec->n_lines; ++i) {
if ((spec->lines[i].flags & 1) != 0)
++n;
}
if (n > 0) {
fprintf(fp, "# %d user-defined lines: ", n);
for (ia = 0; ia < spec->n_lines; ++ia) {
if ((spec-... | static void print_user_lines_info(const GPT_SPEC *spec, FILE *fp) {
int i, n = 0;
for (i = 0; i < spec->n_lines; i++) {
if (spec->lines[i].flags & GP_LINE_USER) {
n++;
}
}
if (n > 0) {
fprintf(fp, "# %d user-defined lines: ", n);
for (i = 0; i < spec->n_lines; i++) {
if (spec->line... | print_user_lines_info | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_user_pm_data(const double *x, const double *c, const double *w,
int t1, int t2, FILE *fp) {
while (t1 <= t2) {
if (fabs(c[t1]) <= 1.797693134862316e308 &&
fabs(w[t1]) <= 1.797693134862316e308)
fprintf(fp, "%.10g %.10g %.10g\n", x[t1], c[t1], w[t1]);
else
... | static void print_user_pm_data(const double *x, const double *c,
const double *w, int t1, int t2, FILE *fp) {
int t;
for (t = t1; t <= t2; t++) {
if (na(c[t]) || na(w[t])) {
fprintf(fp, "%.10g %s %s\n", x[t], gpna, gpna);
} else {
fprintf(fp, "%.10g %.10g %.10g\n"... | print_user_pm_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_user_var_by_name(const char *name, const DATASET *dset, gretlopt opt,
PRN *prn) {
int err;
user_var *u;
u = get_user_var_by_name(name);
err = 0;
if (!u || !u->ptr)
return 2;
switch (u->type) {
case GRETL_TYPE_DOUBLE:
print_scalar_by_name(name, prn);
break;... | int print_user_var_by_name(const char *name, const DATASET *dset, gretlopt opt,
PRN *prn) {
user_var *u = get_user_var_by_name(name);
int err = 0;
if (u == NULL || u->ptr == NULL) {
return E_DATA;
}
if (u->type == GRETL_TYPE_DOUBLE) {
print_scalar_by_name(name, prn);
} e... | print_user_var_by_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_user_y_data(const double *x, const double *y, int t1, int t2,
FILE *fp) {
while (t1 <= t2) {
fprintf(fp, "%.10g ", x[t1]);
write_gp_dataval(y[t1++], fp, 1);
}
fwrite("e\n", 1u, 2u, fp);
} | static void print_user_y_data(const double *x, const double *y, int t1, int t2,
FILE *fp) {
int t;
for (t = t1; t <= t2; t++) {
fprintf(fp, "%.10g ", x[t]);
write_gp_dataval(y[t], fp, 1);
}
fputs("e\n", fp);
} | print_user_y_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_var_smpl(int v, const DATASET *dset, PRN *prn) {
char *v3;
char *v4;
int t;
int n;
char d1[16];
char d2[24];
unsigned long v10;
v10 = __readfsqword(0x28u);
n = 0;
if (dset->t1 <= 0 && dset->t2 >= dset->n - 1) {
v4 = gettext("Full data range");
pprintf(prn, "%s: %s - %s", v4, dset... | static void print_var_smpl(int v, const DATASET *dset, PRN *prn) {
int t, n = 0;
if (dset->t1 > 0 || dset->t2 < dset->n - 1) {
char d1[OBSLEN], d2[OBSLEN];
ntolabel(d1, dset->t1, dset);
ntolabel(d2, dset->t2, dset);
pprintf(prn, "%s: %s - %s", _("Current sample"), d1, d2);
} else {
pprintf(... | print_var_smpl | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_vars_for_category(int category, PRN *prn, gretlopt opt) {
unsigned int i;
setvar *v;
for (i = 0; i <= 0x52; ++i) {
if (category == setvars[i].category) {
v = &setvars[i];
if (v->key <=
(unsigned int)(MPI_USE_SMT | MWRITE_G | ROBUST_Z | BFGS_RSTEP |
... | static void print_vars_for_category(int category, PRN *prn, gretlopt opt) {
setvar *v;
int i;
for (i = 0; i < G_N_ELEMENTS(setvars); i++) {
if (setvars[i].category != category) {
continue;
}
v = &setvars[i];
if (libset_boolvar(v->key)) {
libset_print_bool(v->key, v->name, prn, opt);
... | print_vars_for_category | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_vecm_header_info(GRETL_VAR *vecm, int *lldone, PRN *prn) {
int rank;
char *v4;
JohansenCode v5;
JohansenInfo *J;
J = vecm->jinfo;
gretl_prn_newline(prn);
if (vecm->jinfo) {
rank = vecm->jinfo->rank;
v4 = gettext("Cointegration rank");
pprintf(prn, "%s = %d", v4, rank);
gretl_pr... | static void print_vecm_header_info(GRETL_VAR *vecm, int *lldone, PRN *prn) {
JohansenInfo *J = vecm->jinfo;
gretl_prn_newline(prn);
if (vecm->jinfo == NULL) {
return;
}
pprintf(prn, "%s = %d", _("Cointegration rank"), jrank(vecm));
gretl_prn_newline(prn);
print_Johansen_test_case(jcode(vecm), prn);
... | print_vecm_header_info | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_wald_test(double W, int df_0, double pval, panelmod_t *pan,
double *uvar, double s2, PRN *prn) {
char *v7;
char *v8;
char *v9;
char *v10;
v7 = gettext("Distribution free Wald test for heteroskedasticity");
pprintf(prn, "\n%s:\n", v7);
v8 = gettext("Chi-square");
pprintf(... | static void print_wald_test(double W, int df, double pval, panelmod_t *pan,
double *uvar, double s2, PRN *prn) {
pprintf(prn, "\n%s:\n",
_("Distribution free Wald test for heteroskedasticity"));
pprintf(prn, " %s(%d) = %g, ", _("Chi-square"), df, W);
pprintf(prn, "%s = %g\n\n... | print_wald_test | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_whites_results(const MODEL *pmod, PRN *prn) {
char *v2;
char *v3;
char *v4;
char *v5;
char *v6;
char *v7;
char *v8;
char *v9;
int df_0;
double X;
double pv;
X = (double)pmod->nobs * pmod->rsq;
df_0 = pmod->ncoeff - 1;
pv = chisq_cdf_comp((double)df_0, X);
if (plain_format(prn))... | static void print_whites_results(const MODEL *pmod, PRN *prn) {
double X = pmod->rsq * pmod->nobs;
int df = pmod->ncoeff - 1;
double pv = chisq_cdf_comp(df, X);
if (plain_format(prn)) {
pprintf(prn, "\n%s: TR^2 = %f,\n", _("Test statistic"), X);
pprintf(prn, "%s = P(%s(%d) > %f) = %f\n\n", _("with p-va... | print_whites_results | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_whites_test(double LM, int df_0, double pval, gretlopt opt,
PRN *prn) {
char *v5;
char *v6;
char *v7;
char *v8;
char *v9;
char *v10;
char *v11;
char *v12;
if ((opt & 2) != 0) {
v5 = gettext("Breusch-Pagan test for heteroskedasticity");
pprintf(prn, "\n%s\n", ... | static void print_whites_test(double LM, int df, double pval, gretlopt opt,
PRN *prn) {
if (opt & OPT_B) {
pprintf(prn, "\n%s\n", _("Breusch-Pagan test for heteroskedasticity"));
if (opt & OPT_R) {
pprintf(prn, "%s\n", _("with Koenker robust variance estimator"));
}
... | print_whites_test | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_x_confband_data(const double *x, const double *y, const double *se,
const int *order, double tval, int t1, int t2,
int mode, FILE *fp) {
int i;
int n;
int t;
double et;
n = t2 - t1 + 1;
for (i = 0; i < n; ++i) {
t = order[i];
if (fabs... | static void print_x_confband_data(const double *x, const double *y,
const double *se, const int *order,
double tval, int t1, int t2, int mode,
FILE *fp) {
int i, t, n = t2 - t1 + 1;
double et;
for (i = 0; i < n;... | print_x_confband_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_x_ordered_data(const double *x, const double *y, const int *order,
int t1, int t2, FILE *fp) {
int i;
int n;
int t;
n = t2 - t1 + 1;
for (i = 0; i < n; ++i) {
t = order[i];
if (fabs(x[t]) <= 1.797693134862316e308) {
if (fabs(y[t]) <= 1.797693134862316e308)
... | static void print_x_ordered_data(const double *x, const double *y,
const int *order, int t1, int t2, FILE *fp) {
int i, t, n = t2 - t1 + 1;
for (i = 0; i < n; i++) {
t = order[i];
if (na(x[t])) {
continue;
} else if (na(y[t])) {
fprintf(fp, "%.10g %s\n", x[t... | print_x_ordered_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_x_range(gnuplot_info *gi, FILE *fp) {
double xmin0;
double xmax0;
double xmin;
double xmax;
unsigned long v6;
v6 = __readfsqword(0x28u);
if (gretl_isdummy(gi->t1, gi->t2, gi->x)) {
fwrite("set xrange [-1:2]\n", 1u, 0x12u, fp);
fwrite("set xtics (\"0\" 0, \"1\" 1)\n", 1u, 0x19u, fp);
... | static void print_x_range(gnuplot_info *gi, FILE *fp) {
if (gretl_isdummy(gi->t1, gi->t2, gi->x)) {
fputs("set xrange [-1:2]\n", fp);
fputs("set xtics (\"0\" 0, \"1\" 1)\n", fp);
gi->xrange = 3;
} else {
double xmin0, xmin, xmax0, xmax;
gretl_minmax(gi->t1, gi->t2, gi->x, &xmin0, &xmax0);
g... | print_x_range | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_x_range_from_list(gnuplot_info *gi, const DATASET *dset,
const int *list, FILE *fp) {
int k;
int t;
int i;
int obs_ok;
int l0;
const double *d;
double xmin;
double xmin0;
double xmax;
double xmax0;
double *x;
d = 0;
l0 = *list;
if ((gi->flags & 0x10) ... | static void print_x_range_from_list(gnuplot_info *gi, const DATASET *dset,
const int *list, FILE *fp) {
const double *x, *d = NULL;
int k, l0 = list[0];
if (gi->flags & GPT_DUMMY) {
d = dset->Z[list[l0]];
k = l0 - 1;
} else {
k = l0;
}
x = dset->Z[list[k]]... | print_x_range_from_list | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_xtab(const Xtab *tab, const DATASET *dset, gretlopt opt, PRN *prn) {
char *v4;
int err;
int done;
const char *fname;
PRN *xprn;
unsigned long v11;
v11 = __readfsqword(0x28u);
done = 0;
if ((opt & 0x80000) != 0) {
fname = get_optval_string(142, OPT_T);
if (fname) {
if (*fname)... | void print_xtab(const Xtab *tab, const DATASET *dset, gretlopt opt, PRN *prn) {
int done = 0;
if (opt & OPT_T) {
const char *fname = get_optval_string(XTAB, OPT_T);
if (fname != NULL && *fname != '\0') {
int err = 0;
PRN *xprn;
gretl_maybe_switch_dir(fname);
xprn = gretl_print_ne... | print_xtab | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double print_z_prob(double z, PRN *prn) {
char *v2;
double pv;
pv = NAN;
if (z <= 0.0) {
if (z < 0.0) {
pv = normal_cdf(z);
if (fabs(pv) <= 1.797693134862316e308)
pprintf(prn, " P(Z < %g) = %g\n", z, pv);
}
} else {
pv = normal_pvalue_1(z);
if (fabs(pv) <= 1.7976931348623... | static double print_z_prob(double z, PRN *prn) {
double pv = NADBL;
if (z > 0) {
pv = normal_pvalue_1(z);
if (!na(pv)) {
pprintf(prn, " P(Z > %g) = %g\n", z, pv);
}
} else if (z < 0) {
pv = normal_cdf(z);
if (!na(pv)) {
pprintf(prn, " P(Z < %g) = %g\n", z, pv);
}
}
if (... | print_z_prob | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void printcorr(const VMatrix *v, PRN *prn) {
char *v2;
char *v3;
double v4;
char *v5;
unsigned int n;
double v7;
char *v8;
int n2;
double r;
double tval;
r = v->vec[1];
pprintf(prn, "\ncorr(%s, %s)", *(const char **)v->names,
*((const char **)v->names + 1));
if (fabs(r) <= 1.7976931... | static void printcorr(const VMatrix *v, PRN *prn) {
double r = v->vec[1];
pprintf(prn, "\ncorr(%s, %s)", v->names[0], v->names[1]);
if (na(r)) {
pprintf(prn, ": %s\n\n", _("undefined"));
} else {
pprintf(prn, " = %.8f\n", r);
if (fabs(r) < 1.0) {
int n2 = v->n - 2;
double tval = r * sq... | printcorr | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int printdata(const int *list, const char *ostr, DATASET *dset, gretlopt opt,
PRN *prn) {
int v6;
int screenvar;
int start;
int stop;
int err;
int save_t1;
int save_t2;
int *plist;
unsigned long v17;
v17 = __readfsqword(0x28u);
screenvar = 0;
plist = 0;
err = 0;
if (list && !*... | int printdata(const int *list, const char *ostr, DATASET *dset, gretlopt opt,
PRN *prn) {
int screenvar = 0;
int *plist = NULL;
int err = 0;
if (list != NULL && list[0] == 0) {
if (ostr == NULL) {
return 0;
} else {
goto endprint;
}
} else if (list == NULL) {
if (o... | printdata | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void printf11(double x, int d, PRN *prn) {
char *v3;
char *v4;
int utf_width;
double v6;
int da;
pputc(prn, 32);
if (fabs(x) <= 1.797693134862316e308) {
if (x <= 999.0 || x >= 100000.0) {
pprintf(prn, "%#10.*g", d, x);
} else {
v6 = log10(x);
da = d - (int)(floor(v6) + 1.0);
... | static void printf11(double x, int d, PRN *prn) {
pputc(prn, ' ');
if (na(x)) {
pprintf(prn, "%*s", UTF_WIDTH(_("NA"), 10), _("NA"));
} else if (x > 999 && x < 100000) {
int p = 1 + floor(log10(x));
d -= p;
if (d < 0)
d = 0;
pprintf(prn, "%10.*f", d, x);
} else {
pprintf(prn, "%#1... | printf11 | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void printf15(double x, int d, PRN *prn) {
char *v3;
char *v4;
int utf_width;
double v6;
int da;
pputc(prn, 32);
if (fabs(x) <= 1.797693134862316e308) {
if (x <= 999.0 || x >= 100000.0) {
pprintf(prn, "%#14.*g", d, x);
} else {
v6 = log10(x);
da = d - (int)(floor(v6) + 1.0);
... | static void printf15(double x, int d, PRN *prn) {
pputc(prn, ' ');
if (na(x)) {
pprintf(prn, "%*s", UTF_WIDTH(_("NA"), 14), _("NA"));
} else if (x > 999 && x < 100000) {
int p = 1 + floor(log10(x));
d -= p;
if (d < 0)
d = 0;
pprintf(prn, "%14.*f", d, x);
} else {
pprintf(prn, "%#1... | printf15 | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int printf_as_int(double x, int fc, int lflag, char *fmt, int wstar, int pstar,
int wid, int prec, PRN *prn) {
unsigned long v10;
int v11;
unsigned long v12;
unsigned long v13;
unsigned int v14;
unsigned int wida;
if ((fc == 117 || fc == 120) && lflag) {
if (x < 0.0 || x > 1.8446744... | static int printf_as_int(double x, int fc, int lflag, char *fmt, int wstar,
int pstar, int wid, int prec, PRN *prn) {
if ((fc == 'u' || fc == 'x') && lflag) {
if (x < 0 || x > (double)ULONG_MAX) {
return E_INVARG;
}
if (wstar && pstar) {
pprintf(prn, fmt, wid, prec, (u... | printf_as_int | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int printf_escape(int c, PRN *prn) {
if (c == 118) {
pputc(prn, 11);
return 0;
}
if (c > 118)
goto LABEL_15;
if (c == 116) {
pputc(prn, 9);
return 0;
}
if (c > 116)
goto LABEL_15;
if (c == 110) {
pputc(prn, 10);
return 0;
}
if (c > 110) {
LABEL_15:
pputc(prn, 92);... | static int printf_escape(int c, PRN *prn) {
switch (c) {
case 'n':
pputc(prn, '\n');
break;
case 't':
pputc(prn, '\t');
break;
case 'v':
pputc(prn, '\v');
break;
case '\\':
pputc(prn, '\\');
break;
case '"':
pputc(prn, '"');
break;
default:
pputc(prn, '\\');
... | printf_escape | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int printf_get_int(const char *s, DATASET *dset, int *err) {
int ret;
ret = gretl_int_from_string(s, err);
if (*err) {
*err = 0;
gretl_error_clear();
ret = (int)generate_scalar(s, dset, err);
}
if (!*err && (int)abs32(ret) > 255)
*err = 2;
return ret;
} | static int printf_get_int(const char *s, DATASET *dset, int *err) {
int ret = 0;
#if PSDEBUG
fprintf(stderr, "printf_get_int: looking at '%s'\n", s);
#endif
ret = gretl_int_from_string(s, err);
if (*err) {
*err = 0;
gretl_error_clear();
ret = (int)generate_scalar(s, dset, err);
}
if (!*err ... | printf_get_int | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *printf_get_string(char *s, DATASET *dset, int t, int *err) {
int len;
int offset;
int v;
char *ret;
const char *q;
char *p;
const char *str;
ret = 0;
if (!strncmp(s, "marker", 6u) && dset && dset->S) {
p = dset->S[t];
q = s + 6;
len = strlen(p);
offset = 0;
while (((*__ctype... | static char *printf_get_string(char *s, DATASET *dset, int t, int *err) {
char *ret = NULL;
if (!strncmp(s, "marker", 6) && dset != NULL && dset->S != NULL) {
const char *p = dset->S[t];
const char *q = s + 6;
int len = strlen(p);
int offset = 0;
while (isspace(*q))
q++;
if (*q == ... | printf_get_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void printf_series(int v, const DATASET *dset, const char *fmt, int wid,
int prec, int wstar, int pstar, PRN *prn) {
unsigned int v8;
int t;
int obslen;
double x;
double xa;
obslen = max_obs_marker_length(dset);
for (t = dset->t1; t <= dset->t2; ++t) {
print_obs_marker(t, dset, obs... | static void printf_series(int v, const DATASET *dset, const char *fmt, int wid,
int prec, int wstar, int pstar, PRN *prn) {
int obslen = max_obs_marker_length(dset);
double x;
int t;
for (t = dset->t1; t <= dset->t2; t++) {
print_obs_marker(t, dset, obslen, prn);
x = dset->Z[v... | printf_series | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void printgx(double x, PRN *prn) {
int lw;
char word[40];
unsigned long v4;
v4 = __readfsqword(0x28u);
sprintf(word, "%11g", x);
lw = strlen(word);
pputs(prn, word);
bufspace(13 - lw, prn);
} | static void printgx(double x, PRN *prn) {
char word[32];
int lw;
sprintf(word, "%11g", x);
lw = strlen(word);
pputs(prn, word);
bufspace(13 - lw, prn);
} | printgx | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int printing_revised_model(gretlopt opt) {
return (opt & 0x10000) == 0 && (opt & 0x400800) == 0;
} | static int printing_revised_model(gretlopt opt) {
if (opt & OPT_Q) {
return 0;
} else if (opt & (OPT_L | OPT_W)) {
return 0;
} else {
return 1;
}
} | printing_revised_model | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int printing_to_standard_stream(PRN *prn) {
int ret;
ret = 0;
if (prn && (prn->fp == stdout || prn->fp == stderr))
return 1;
return ret;
} | int printing_to_standard_stream(PRN *prn) {
int ret = 0;
if (prn != NULL && (prn->fp == stdout || prn->fp == stderr)) {
ret = 1;
}
return ret;
} | printing_to_standard_stream | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void printlist(const int *list, const char *msg) {
int i;
if (msg)
fprintf(stderr, "%s:\n", msg);
else
fwrite("list: ", 1u, 6u, stderr);
if (list) {
fprintf(stderr, "%d : ", *list);
for (i = 1; i <= *list; ++i) {
if (list[i] == -100)
fwrite("; ", 1u, 2u, stderr);
else
... | void printlist(const int *list, const char *msg) {
int i;
if (msg) {
fprintf(stderr, "%s:\n", msg);
} else {
fprintf(stderr, "list: ");
}
if (list == NULL) {
fputs("list is NULL", stderr);
} else {
fprintf(stderr, "%d : ", list[0]);
for (i = 1; i <= list[0]; i++) {
if (list[i] ==... | printlist | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int printmodel(MODEL *pmod, const DATASET *dset, gretlopt opt, PRN *prn) {
char *v5;
double ess;
char *v7;
double rsq;
int gotnan;
int uc;
if (!prn || (opt & 0x10000) != 0)
return 0;
if (csv_format(prn))
set_csv_delim(prn);
if (plain_format(prn))
print_model_iter_info(pmod, prn);
if (gr... | int printmodel(MODEL *pmod, const DATASET *dset, gretlopt opt, PRN *prn) {
int gotnan = 0;
if (prn == NULL || (opt & OPT_Q)) {
return 0;
}
if (csv_format(prn)) {
set_csv_delim(prn);
}
if (plain_format(prn)) {
print_model_iter_info(pmod, prn);
}
if (gretl_is_between_model(pmod) && pmod->d... | printmodel | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void printnode(NODE *t, parser *p, int value) {
const char *v3;
const char *v4;
const char *v5;
const char *v6;
const char *v7;
int i;
char j;
char *x;
if (!t) {
pputs(p->prn, "NULL");
return;
}
if (!value && t->t == 55 && t->vnum >= 0) {
pprintf(p->prn, "%s", p->dset->varname[t->vnum... | static void printnode(NODE *t, parser *p, int value) {
if (t == NULL) {
pputs(p->prn, "NULL");
} else if (!value && useries_node(t)) {
pprintf(p->prn, "%s", p->dset->varname[t->vnum]);
} else if (!value && uscalar_node(t)) {
pprintf(p->prn, "%s", t->vname);
} else if (t->t == NUM) {
if (na(t->v.... | printnode | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void printsymb(int symb, const parser *p) {
const char *v2;
v2 = getsymb(symb);
pputs(p->prn, v2);
} | static void printsymb(int symb, const parser *p) {
pputs(p->prn, getsymb(symb));
} | printsymb | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void printvars(FILE *fp, int t, const int *list, const DATASET *dset,
gnuplot_info *gi, const char *label, double offset) {
const double *v7;
int i;
double xt;
double xta;
const double *x;
if (gi)
v7 = gi->x;
else
v7 = 0;
x = v7;
if (v7) {
xt = v7[t] + offset;
if ((gi->... | static void printvars(FILE *fp, int t, const int *list, const DATASET *dset,
gnuplot_info *gi, const char *label, double offset) {
const double *x = (gi != NULL) ? gi->x : NULL;
double xt;
int i;
if (x != NULL) {
xt = x[t] + offset;
if (gi->flags & GPT_TIMEFMT) {
fprintf(fp,... | printvars | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void printxx(const double xx, char *str, int ci) {
int v3;
if (ci == 100)
v3 = 8;
else
v3 = 6;
sprintf(str, "%#*.*g", v3, gretl_digits, xx);
} | static void printxx(const double xx, char *str, int ci) {
int d = (ci == PRINT) ? 8 : 6;
sprintf(str, "%#*.*g", d, gretl_digits, xx);
} | printxx | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int private_matrix_add(gretl_matrix *M, const char *name) {
return real_user_var_add(name, GRETL_TYPE_MATRIX, M, OPT_P);
} | int private_matrix_add(gretl_matrix *M, const char *name) {
return real_user_var_add(name, GRETL_TYPE_MATRIX, M, OPT_P);
} | private_matrix_add | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int private_scalar_add(double val, const char *name) {
double *px;
px = (double *)malloc(8u);
if (!px)
return 12;
*px = val;
return real_user_var_add(name, GRETL_TYPE_DOUBLE, px, OPT_P);
} | int private_scalar_add(double val, const char *name) {
double *px = malloc(sizeof *px);
int err;
if (px == NULL) {
err = E_ALLOC;
} else {
*px = val;
err = real_user_var_add(name, GRETL_TYPE_DOUBLE, px, OPT_P);
}
return err;
} | private_scalar_add | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int prn_add_tempfile(PRN *prn) {
int err;
int n;
const char *dotdir;
dotdir = gretl_dotdir();
n = strlen(dotdir) + 16;
err = 0;
prn->fname = (char *)malloc(n);
if (!prn->fname)
return 12;
sprintf(prn->fname, "%sprntmp.XXXXXX", dotdir);
prn->fp = gretl_mktemp(prn->fname, "w+");
if (!prn->fp) {... | static int prn_add_tempfile(PRN *prn) {
const char *dotdir = gretl_dotdir();
int n = strlen(dotdir) + 16;
int err = 0;
prn->fname = malloc(n);
if (prn->fname == NULL) {
return E_ALLOC;
}
sprintf(prn->fname, "%sprntmp.XXXXXX", dotdir);
prn->fp = gretl_mktemp(prn->fname, "w+");
#if PRN_DEBUG
fpri... | prn_add_tempfile | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char prn_delim(PRN *prn) {
if (prn)
return prn->delim;
else
return 44;
} | char prn_delim(PRN *prn) { return (prn != NULL) ? prn->delim : ','; } | prn_delim | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void prn_destroy_fp_list(PRN *prn) {
int i;
fpinfo *fi;
for (i = prn->fplist->len - 1; i >= 0; --i) {
fi = (fpinfo *)&prn->fplist->data[32 * i];
if (fi) {
if (fi->fp && fi->fp != prn->fp && fi->fp != stdout && fi->fp != stderr)
fclose(fi->fp);
if (fi->fname)
g_free(fi->fname);... | static void prn_destroy_fp_list(PRN *prn) {
int i, n = prn->fplist->len;
fpinfo *fi;
for (i = n - 1; i >= 0; i--) {
fi = &g_array_index(prn->fplist, fpinfo, i);
if (fi != NULL) {
if (fi->fp != NULL && fi->fp != prn->fp && fi->fp != stdout &&
fi->fp != stderr) {
fclose(fi->fp);
... | prn_destroy_fp_list | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int prn_format(PRN *prn) {
if (prn)
return prn->format;
else
return 0;
} | int prn_format(PRN *prn) { return (prn != NULL) ? prn->format : 0; } | prn_format | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int prn_fp_list_active(PRN *prn) { return prn->fplist && prn->fplist->len; } | static int prn_fp_list_active(PRN *prn) {
return prn->fplist != NULL && prn->fplist->len > 0;
} | prn_fp_list_active | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int prn_pop_stream(PRN *prn) {
const char *v1;
int err;
signed int n;
FILE *prev;
char *strvar;
fpinfo *fi;
gchar *fname;
prev = 0;
strvar = 0;
err = 0;
if (prn->fplist) {
n = prn->fplist->len;
if (n > 0) {
fi = (fpinfo *)&prn->fplist->data[32 * n - 32];
prev = fi->fp;
i... | static int prn_pop_stream(PRN *prn) {
FILE *prev = NULL;
char *strvar = NULL;
int err = 0;
if (prn->fplist != NULL) {
int n = prn->fplist->len;
fpinfo *fi;
if (n > 0) {
fi = &g_array_index(prn->fplist, fpinfo, n - 1);
prev = fi->fp;
if (fi->strvar != NULL) {
strvar = fi->... | prn_pop_stream | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void prn_push_stream(PRN *prn, FILE *fp, const char *fname,
const char *strvar) {
fpinfo fi;
unsigned long v7;
v7 = __readfsqword(0x28u);
fi.fp = prn->fp;
fi.level = 0;
fi.fname = 0;
fi.strvar = 0;
if (!prn->fplist)
prn->fplist = (GArray *)g_array_new(0, 0, 32);
fi.level = gr... | static void prn_push_stream(PRN *prn, FILE *fp, const char *fname,
const char *strvar) {
fpinfo fi = {prn->fp, 0, NULL, NULL};
if (prn->fplist == NULL) {
prn->fplist = g_array_new(FALSE, FALSE, sizeof(fpinfo));
}
fi.level = gretl_function_depth();
if (fname != NULL) {
fi.f... | prn_push_stream | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void prntdate(int nt, int n, const DATASET *dset, PRN *prn) {
double x;
if (n == dset->t2 - dset->t1 + 1) {
x = date_as_double(nt, dset->pd, dset->sd0);
if (dset->pd == 1) {
pprintf(prn, "%5.0f ", x);
} else if (dset->pd > 9) {
pprintf(prn, "%6.2f", x);
} else {
pprintf(prn, "%5g ... | static void prntdate(int nt, int n, const DATASET *dset, PRN *prn) {
if (n != dset->t2 - dset->t1 + 1) {
pprintf(prn, "%5d ", nt);
} else {
double x = date_as_double(nt, dset->pd, dset->sd0);
if (dset->pd == 1) {
pprintf(prn, "%5.0f ", x);
} else if (dset->pd < 10) {
pprintf(prn, "%5g ... | prntdate | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int probably_year(const char *s, DATASET *dset) {
int sval;
sval = atoi(s);
return dset && dset->structure == 1 && dset->pd == 1 && dset->sd0 > 1000.0 &&
sval > 1000 && sval > dset->n;
} | static int probably_year(const char *s, DATASET *dset) {
int sval = atoi(s);
return (annual_data(dset) && dset->sd0 > 1000 && sval > 1000 &&
sval > dset->n);
} | probably_year | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int probe_csv(const char *fname, char ***varnames, int *nvars, gretlopt *opt) {
gretlopt v4;
int rerun;
int err;
csvprobe probe;
unsigned long v11;
v11 = __readfsqword(0x28u);
probe.dset = 0;
err = real_import_csv(fname, 0, 0, 0, 0, &probe, 0, *opt, 0);
if (!err) {
rerun = 0;
err = probe_varn... | int probe_csv(const char *fname, char ***varnames, int *nvars, gretlopt *opt) {
csvprobe probe = {0};
int err;
err =
real_import_csv(fname, NULL, NULL, NULL, NULL, &probe, NULL, *opt, NULL);
if (!err) {
int rerun = 0;
err = probe_varnames_check(probe.dset, *opt, &rerun);
if (err || rerun) ... | probe_csv | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int probe_varnames_check(DATASET *dset, gretlopt opt, int *rerun) {
int missnames;
int i;
int err;
missnames = 0;
err = 0;
for (i = 1; i < dset->v; ++i) {
if (!*dset->varname[i]) {
missnames = 1;
break;
}
}
if (missnames) {
if ((opt & 0x80) != 0) {
gretl_errmsg_set("Couldn... | static int probe_varnames_check(DATASET *dset, gretlopt opt, int *rerun) {
int missnames = 0;
int i, err = 0;
for (i = 1; i < dset->v; i++) {
if (dset->varname[i][0] == '\0') {
missnames = 1;
break;
}
}
if (missnames) {
if (opt & OPT_H) {
gretl_errmsg_set("Couldn't find all var... | probe_varnames_check | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *process_OSL_address(NODE *t, NODE *l, NODE *r, parser *p) {
char *v4;
int idx;
NODE *ret;
NODE *lb;
idx = get_single_element(r->v.mspec, p);
lb = l->L;
ret = 0;
if (lb->t == 91 && lb->uv && idx > 0) {
if (user_var_get_type(lb->uv) == GRETL_TYPE_ARRAY) {
ret = get_aux_node(p, 85, 0, 0);
... | static NODE *process_OSL_address(NODE *t, NODE *l, NODE *r, parser *p) {
int idx = get_single_element(r->v.mspec, p);
NODE *lb = l->L;
NODE *ret = NULL;
if (lb->t != OSL || lb->uv == NULL || idx <= 0) {
p->err = E_TYPES;
} else {
GretlType type = user_var_get_type(lb->uv);
if (type == GRETL_TYPE... | process_OSL_address | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int process_band_matrix(const int *list, DATASET *dset, band_pm *pm,
int **plist) {
int err;
int i;
int newv;
gretl_matrix *m;
const char *s;
gchar **S;
double **tmp;
unsigned long v14;
v14 = __readfsqword(0x28u);
s = get_optval_string(98, OPT_N);
m = 0;
i = 0;
err = 0... | static int process_band_matrix(const int *list, DATASET *dset,
struct band_pm *pm, int **plist) {
const char *s = get_optval_string(PLOT, OPT_N);
gretl_matrix *m = NULL;
gchar **S;
int i = 0;
int err = 0;
if (s == NULL) {
return E_INVARG;
}
S = g_strsplit(s, ",", -1)... | process_band_matrix | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int process_command_error(ExecState *s, int err) {
char *v2;
int ret;
ret = err;
if (err && !gretl_compiling_function() && !gretl_compiling_loop() &&
(s->cmd->flags & 8) != 0) {
set_gretl_errno(err);
s->cmd->flags ^= 8u;
ret = 0;
}
if (ret && print_redirection_level(s->prn) > 0) {
pri... | int process_command_error(ExecState *s, int err) {
int ret = err;
if (err) {
if (gretl_compiling_function() || gretl_compiling_loop()) {
;
} else if (s->cmd->flags & CMD_CATCH) {
set_gretl_errno(err);
s->cmd->flags ^= CMD_CATCH;
ret = 0;
}
}
if (ret && print_redirection_le... | process_command_error | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int process_csv_obs(csvdata *c, int i, int t, int *miss_shown, PRN *prn) {
double *v5;
int err;
int ix;
double zit;
err = 0;
if (c->st) {
if (in_gretl_list(c->codelist, i)) {
zit = c->dset->Z[i][t];
if (fabs(zit) > 1.797693134862316e308 && c->str[0] && !c->user_na)
zit = 1.0e99;
... | static int process_csv_obs(csvdata *c, int i, int t, int *miss_shown,
PRN *prn) {
int err = 0;
if (c->st != NULL) {
if (in_gretl_list(c->codelist, i)) {
double zit = c->dset->Z[i][t];
int ix;
if (na(zit) && *c->str != '\0' && c->user_na == NULL) {
zit = N... | process_csv_obs | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int process_csv_varname(csvdata *c, int j, int *numcount, PRN *prn) {
char *v4;
int err;
int n;
char *s;
char *vname;
const char *src;
vname = c->dset->varname[j];
src = c->str;
err = 0;
*vname = 0;
if (intercept_nan_as_name(c->str)) {
v4 = gettext(
"If '%s' is intended as the name of... | static int process_csv_varname(csvdata *c, int j, int *numcount, PRN *prn) {
char *vname = c->dset->varname[j];
char *src = c->str;
int err = 0;
*vname = '\0';
if (intercept_nan_as_name(src)) {
gretl_errmsg_sprintf(_("If '%s' is intended as the name of a variable, "
"please ch... | process_csv_varname | 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.