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_arch_regression(const gretl_matrix *b, const gretl_matrix *V, int T,
int order, gretlopt opt, PRN *prn) {
char *v6;
short opta;
int i;
int k;
double *se;
char **names;
opta = opt;
k = order + 1;
se = (double *)malloc(8LL * (order + 1));
names = strings_array_ne... | static void print_arch_regression(const gretl_matrix *b, const gretl_matrix *V,
int T, int order, gretlopt opt, PRN *prn) {
int i, k = order + 1;
double *se = malloc(k * sizeof *se);
char **names;
names = strings_array_new_with_length(k, 16);
if (se != NULL && names != NULL... | print_arch_regression | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_arg(const char **pfmt, const char **pargs, DATASET *dset, int t,
PRN *prn) {
unsigned int v6;
unsigned int v7;
int flen;
int alen;
int wstar;
int pstar;
int wid;
int prec;
int got_scalar;
int err;
int v;
int free_m;
int series_v;
int free_v;
int fc;
int lflag;
c... | static int print_arg(const char **pfmt, const char **pargs, DATASET *dset,
int t, PRN *prn) {
const char *intconv = "dxu";
char *fmt = NULL;
char *arg = NULL;
char *str = NULL;
char conv[3] = {0};
gretl_matrix *m = NULL;
int free_m = 0;
int series_v = -1;
int free_v = 0;
double ... | print_arg | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_arma_depvar(const MODEL *pmod, const DATASET *dset, PRN *prn) {
char *v3;
int tex;
int yno;
int d;
int D;
char tmp[32];
char vname[72];
unsigned long v11;
v11 = __readfsqword(0x28u);
tex = tex_format(prn);
yno = gretl_model_get_depvar(pmod);
d = gretl_model_get_int(pmod, "arima_d");
... | static void print_arma_depvar(const MODEL *pmod, const DATASET *dset,
PRN *prn) {
int tex = tex_format(prn);
int yno = gretl_model_get_depvar(pmod);
int d = gretl_model_get_int(pmod, "arima_d");
int D = gretl_model_get_int(pmod, "arima_D");
char vname[64];
*vname = 0;
if (t... | print_arma_depvar | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_arma_roots(const MODEL *pmod, PRN *prn) {
const char *v2;
char *v3;
char *v4;
char *v5;
char *v6;
char *v7;
char *v8;
char *v9;
char *v10;
char *v11;
int v12;
int v13;
int v14;
int v15;
int i;
int ia;
int ib;
int ic;
int k;
int ka;
int kb;
int kc;
_BOOL4 hline;
... | static void print_arma_roots(const MODEL *pmod, PRN *prn) {
cmplx *roots = gretl_model_get_data(pmod, "roots");
if (roots != NULL) {
int p = arma_model_nonseasonal_AR_order(pmod);
int q = arma_model_nonseasonal_MA_order(pmod);
int P = gretl_model_get_int(pmod, "arma_P");
int Q = gretl_model_get_int... | print_arma_roots | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_array_elements(gretl_array *A, int imin, int imax, int range,
PRN *prn) {
int n;
int lim;
const gretl_matrix *m;
n = A->n;
if (imax <= n)
n = imax;
lim = n;
while (imin < lim) {
pprintf(prn, "[%d] ", imin + 1);
if (A->data[imin]) {
switch (A->type) {... | static void print_array_elements(gretl_array *A, int imin, int imax, int range,
PRN *prn) {
int i, lim = MIN(A->n, imax);
for (i = imin; i < lim; i++) {
pprintf(prn, "[%d] ", i + 1);
if (A->data[i] == NULL) {
pputs(prn, "null\n");
} else if (A->type == GRETL_TYPE_... | print_array_elements | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_array_string(const char *s, PRN *prn) {
int n;
int m;
n = strcspn(s, "\r\n");
m = strlen(s);
if (n <= 72) {
if (n >= m)
pprintf(prn, "\"%s\"\n", s);
else
pprintf(prn, "\"%.*s...\"\n", n, s);
} else {
pprintf(prn, "\"%.69s...\"\n", s);
}
} | static void print_array_string(const char *s, PRN *prn) {
int n = strcspn(s, "\r\n");
int m = strlen(s);
if (n > 72) {
pprintf(prn, "\"%.69s...\"\n", s);
} else if (n < m) {
pprintf(prn, "\"%.*s...\"\n", n, s);
} else {
pprintf(prn, "\"%s\"\n", s);
}
} | print_array_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_auto_fit_string(FitType fit, FILE *fp) {
switch (fit) {
case PLOT_FIT_OLS:
fwrite("# plot includes automatic fit: OLS\n", 1u, 0x23u, fp);
break;
case PLOT_FIT_QUADRATIC:
fwrite("# plot includes automatic fit: quadratic\n", 1u, 0x29u, fp);
break;
case PLOT_FIT_CUBIC:
fwrite("# plot... | void print_auto_fit_string(FitType fit, FILE *fp) {
if (fit == PLOT_FIT_OLS) {
fputs("# plot includes automatic fit: OLS\n", fp);
} else if (fit == PLOT_FIT_QUADRATIC) {
fputs("# plot includes automatic fit: quadratic\n", fp);
} else if (fit == PLOT_FIT_CUBIC) {
fputs("# plot includes automatic fit: c... | print_auto_fit_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_aux_string(const MODEL *pmod, PRN *prn) {
char *v2;
char *v3;
char *v4;
char *v5;
char *v6;
char *v7;
char *v8;
char *v9;
char *v10;
char *v11;
char *v12;
char *v13;
char *v14;
int close;
int aux;
long plain;
int csv;
aux = pmod->aux;
LODWORD(plain) = plain_format(prn);... | static void print_aux_string(const MODEL *pmod, PRN *prn) {
int aux = pmod->aux;
int plain = plain_format(prn);
int tex = tex_format(prn);
int csv = csv_format(prn);
int close = 1;
if (plain || tex) {
pputc(prn, '\n');
} else if (csv) {
pputc(prn, '"');
}
if (aux == AUX_SQ) {
pputs(prn, ... | print_aux_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_axis_label(char axis, const char *s, FILE *fp) {
if (strchr(s, 39))
fprintf(fp, "set %clabel \"%s\"\n", (unsigned int)axis, s);
else
fprintf(fp, "set %clabel '%s'\n", (unsigned int)axis, s);
} | static void print_axis_label(char axis, const char *s, FILE *fp) {
if (strchr(s, '\'')) {
fprintf(fp, "set %clabel \"%s\"\n", axis, s);
} else {
fprintf(fp, "set %clabel '%s'\n", axis, s);
}
} | print_axis_label | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_bars_header(GPT_SPEC *spec, FILE *fp) {
gretlRGB shadecolor;
int i;
int ia;
int j;
char cstr[8];
unsigned long v7;
v7 = __readfsqword(0x28u);
shadecolor = get_shadecolor();
print_rgb_hash(cstr, shadecolor);
if (spec->heredata) {
j = 0;
for (i = 0; i < spec->nbars; ++i) {
fp... | static void print_bars_header(GPT_SPEC *spec, FILE *fp) {
char cstr[8];
int i;
print_rgb_hash(cstr, get_shadecolor());
if (spec->heredata) {
int j = 0;
for (i = 0; i < spec->nbars; i++) {
fprintf(fp,
"'$bars' every ::%d::%d using 1:2:3 notitle lc rgb \"%s\" "
"w fill... | print_bars_header | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_bp_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 = gretl_model_get_double(pmod, "BPLM");
df_0 = pmod->ncoeff - 1;
if (fabs(X) <= 1.797693134862316e308) {
pv = chisq_cdf_c... | static void print_bp_results(const MODEL *pmod, PRN *prn) {
double pv, X = gretl_model_get_double(pmod, "BPLM");
int df = pmod->ncoeff - 1;
if (na(X)) {
return;
}
pv = chisq_cdf_comp(df, X);
if (plain_format(prn)) {
pprintf(prn, "\n%s: LM = %f,\n", _("Test statistic"), X);
pprintf(prn, "%s = ... | print_bp_results | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_bundle_tree(gretl_bundle *b, int level, PRN *prn) {
int n;
int i;
int j;
GretlType atype;
int nb;
int nmemb;
gretl_array *K;
char **keys;
const char *key;
bundled_item *item;
gretl_array *A;
gretl_bundle *bj;
unsigned long v17;
v17 = __readfsqword(0x28u);
K = gretl_bundle_get_ke... | static int print_bundle_tree(gretl_bundle *b, int level, PRN *prn) {
gretl_array *K = gretl_bundle_get_keys(b, NULL);
gretl_array *A;
gretl_bundle *bj;
char **keys;
int i, j, nb, n = 0;
real_bundle_print(b, level, 1, prn);
keys = gretl_array_get_strings(K, &n);
if (n == 0) {
bufspace(2 * (level + ... | print_bundle_tree | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_bundled_item(gpointer value, gpointer p) {
const char *name;
const char *v3;
int cols;
int rows;
const char *v6;
int v7;
const char *v8;
const char *v9;
const char *v10;
GretlType t;
GretlType ta;
int indent;
int n_0;
int n;
const char *kstr;
PRN *prn;
gretl_array *a;
gret... | static void print_bundled_item(gpointer value, gpointer p) {
bundled_item *item = value;
GretlType t = item->type;
const gchar *kstr = item->name;
struct b_item_printer *bip = p;
PRN *prn = bip->prn;
int indent;
if (bip->tree && t == GRETL_TYPE_BUNDLE) {
return;
}
indent = 2 + 2 * bip->indent;
... | print_bundled_item | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_by_obs(int *list, const DATASET *dset, gretlopt opt, int screenvar,
PRN *prn) {
void *v5;
void *v6;
_QWORD v8[2];
long v9;
long v10;
PRN *prna;
int screenvara;
gretlopt opta;
const DATASET *dseta;
int *lista;
int obslen;
int nrem;
int t;
int k;
int j;
int i;
... | static int print_by_obs(int *list, const DATASET *dset, gretlopt opt,
int screenvar, PRN *prn) {
int BMAX = libset_get_int(DATACOLS);
int i, j, j0, k, t, nrem;
int *colwidths = NULL;
int obslen = 0;
int *pmax = NULL;
char buf[128];
int blist[BMAX + 1];
int wlist[BMAX + 1];
int ... | print_by_obs | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_by_var(const int *list, const DATASET *dset, gretlopt opt, PRN *prn) {
int i;
int vi;
gchar *tmp;
const char *name;
unsigned long v11;
v11 = __readfsqword(0x28u);
pputc(prn, 10);
for (i = 1; i <= *list; ++i) {
vi = list[i];
if (vi <= dset->v) {
if (*list > 1) {
tmp = 0;
... | static int print_by_var(const int *list, const DATASET *dset, gretlopt opt,
PRN *prn) {
const char *name;
gchar *tmp;
int i, vi;
pputc(prn, '\n');
for (i = 1; i <= list[0]; i++) {
vi = list[i];
if (vi > dset->v) {
continue;
}
if (list[0] > 1) {
tmp = NULL;... | print_by_var | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_centered(const char *s, int width, PRN *prn) {
int i;
int rem;
int off;
rem = width - strlen(s);
if (rem > 1) {
off = rem / 2;
for (i = 0; i < off; ++i)
pputs(prn, " ");
pprintf(prn, "%-*s", width - off, s);
} else {
pprintf(prn, "%s", s);
}
} | void print_centered(const char *s, int width, PRN *prn) {
int rem = width - strlen(s);
if (rem <= 1) {
pprintf(prn, "%s", s);
} else {
int i, off = rem / 2;
for (i = 0; i < off; i++) {
pputs(prn, " ");
}
pprintf(prn, "%-*s", width - off, s);
}
} | print_centered | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_coeff_interval(const CoeffIntervals *cf_0, int i, PRN *prn) {
if ((int)strlen(cf_0->names[i]) <= 16) {
pprintf(prn, "%14s ", cf_0->names[i]);
bufspace(5, prn);
} else {
pprintf(prn, "%.15s~ ", cf_0->names[i]);
bufspace(3, prn);
}
gretl_print_value(cf_0->coeff[i], prn);
pprintf(prn, ... | static void print_coeff_interval(const CoeffIntervals *cf, int i, PRN *prn) {
int n = strlen(cf->names[i]);
if (n > 16) {
pprintf(prn, "%.15s~ ", cf->names[i]);
bufspace(3, prn);
} else {
pprintf(prn, "%14s ", cf->names[i]);
bufspace(5, prn);
}
if (isnan(cf->coeff[i])) {
pprintf(prn, "%*... | print_coeff_interval | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_coeff_left_string(const char *s, PRN *prn) {
char tmp[56];
unsigned long v3;
v3 = __readfsqword(0x28u);
if (plain_format(prn)) {
pprintf(prn, " %s:\n", s);
} else if (tex_format(prn)) {
tex_escape(tmp, s);
pputs(prn, "\\\\ [-8pt]\n");
pprintf(prn, "%s \\\\[1ex]\n", tmp);
} else i... | static void print_coeff_left_string(const char *s, PRN *prn) {
if (plain_format(prn)) {
pprintf(prn, " %s:\n", s);
} else if (tex_format(prn)) {
char tmp[48];
tex_escape(tmp, s);
pputs(prn, "\\\\ [-8pt]\n");
pprintf(prn, "%s \\\\[1ex]\n", tmp);
} else if (rtf_format(prn)) {
pputs(prn, RT... | print_coeff_left_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_coeff_separator(const char *s, int width, PRN *prn) {
_BOOL4 v3;
char *v4;
char *v5;
char *v6;
char *v7;
char *v8;
int havestr;
int n;
char *repl;
v3 = s && *s;
havestr = v3;
if (plain_format(prn)) {
if (havestr) {
if (width <= 0)
pputs(prn, " ");
else
... | static void print_coeff_separator(const char *s, int width, PRN *prn) {
int havestr = (s != NULL && *s != '\0');
int vspace = (width > 0);
if (plain_format(prn)) {
if (havestr) {
if (vspace) {
pputs(prn, "\n ");
} else {
pputs(prn, " ");
}
if (width > 0) {
pr... | print_coeff_separator | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_coeff_table_end(const MODEL *pmod, PRN *prn) {
char *v2;
if (plain_format(prn) || csv_format(prn)) {
pputc(prn, 10);
} else if (tex_format(prn)) {
tex_coeff_table_end(prn);
} else if (rtf_format(prn)) {
pputs(prn, "}\n\n");
}
if (pmod && pmod->ci != 85 && pmod->ci != 77 && plain_form... | static void print_coeff_table_end(const MODEL *pmod, PRN *prn) {
if (plain_format(prn) || csv_format(prn)) {
pputc(prn, '\n');
} else if (tex_format(prn)) {
tex_coeff_table_end(prn);
} else if (rtf_format(prn)) {
pputs(prn, "}\n\n");
}
if (pmod == NULL) {
return;
}
if (pmod->ci == NLS |... | print_coeff_table_end | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_coeffs(const double *b, const double *se, const char **names, int nc,
int df_0, int ci, PRN *prn) {
if (plain_format(prn))
return plain_print_aux_coeffs(b, se, names, nc, df_0, ci, prn);
else
return alt_print_aux_coeffs(b, se, names, nc, df_0, ci, prn);
} | int print_coeffs(const double *b, const double *se, const char **names, int nc,
int df, int ci, PRN *prn) {
if (plain_format(prn)) {
return plain_print_aux_coeffs(b, se, names, nc, df, ci, prn);
} else {
return alt_print_aux_coeffs(b, se, names, nc, df, ci, prn);
}
} | print_coeffs | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_compare(COMPARE *cmp, const DATASET *dset, gretlopt opt, PRN *prn) {
unsigned int model_id;
char *v5;
char *v6;
double test;
int dfn;
char *v9;
char *v10;
char *v11;
double LR;
int v13;
char *v14;
char *v15;
char *v16;
double F;
int dfd;
int v19;
char *v20;
char *v21;
do... | static void print_compare(struct COMPARE *cmp, const DATASET *dset,
gretlopt opt, PRN *prn) {
if (opt & OPT_Q) {
if (cmp->model_id > 0) {
pprintf(prn, _("Test on Model %d:"), cmp->model_id);
pputc(prn, '\n');
}
} else if (cmp->model_id > 0) {
if (opt & OPT_A) {
... | print_compare | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_confband_data(const double *x, const double *y, const double *e,
int t0, int t1, int t2, int mode, FILE *fp) {
int i;
int n;
int t;
double xt;
n = t2 - t0 + 1;
for (i = 0; i < n; ++i) {
t = t0 + i;
xt = x[t0 + i];
if (t0 + i >= t1 && fabs(y[t]) <= 1.797693134... | static void print_confband_data(const double *x, const double *y,
const double *e, int t0, int t1, int t2,
int mode, FILE *fp) {
int i, t, n = t2 - t0 + 1;
double xt;
for (i = 0; i < n; i++) {
t = t0 + i;
xt = x[t];
if (t < t1 || na(y[t]... | print_confband_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_contemp_covariance_matrix(const gretl_matrix *m, double ldet,
PRN *prn) {
int v3;
int v4;
char *v5;
char *v6;
char *v7;
char *v8;
char *v9;
char *v10;
int jmax;
int i;
int j;
int ja;
int jb;
int tex;
int rows;
int cols;
double x;
char n... | void print_contemp_covariance_matrix(const gretl_matrix *m, double ldet,
PRN *prn) {
int tex = tex_format(prn);
int rows = gretl_matrix_rows(m);
int cols = gretl_matrix_cols(m);
int jmax = 1;
char numstr[16];
double x;
int i, j;
if (tex) {
pputs(prn, "\\begin{ce... | print_contemp_covariance_matrix | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_corrmat(VMatrix *corr, const DATASET *dset, PRN *prn) {
char *v3;
char *v4;
char *v5;
unsigned int n;
double v7;
char *v8;
char *tmp;
char *tmpa;
char date1[16];
char date2[24];
unsigned long v14;
v14 = __readfsqword(0x28u);
if (corr->dim == 2) {
printcorr(corr, prn);
} else ... | void print_corrmat(VMatrix *corr, const DATASET *dset, PRN *prn) {
if (corr->dim == 2) {
printcorr(corr, prn);
} else {
char date1[OBSLEN], date2[OBSLEN];
gchar *tmp = NULL;
ntolabel(date1, corr->t1, dset);
ntolabel(date2, corr->t2, dset);
pputc(prn, '\n');
tmp = g_strdup_printf(_("%s... | print_corrmat | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_count_offset(const MODEL *pmod, const DATASET *dset, printval *val,
int namelen, int colsep, int w, int lmax, int addoff,
PRN *prn) {
int offvar;
int n;
char name[24];
unsigned long v16;
v16 = __readfsqword(0x28u);
offvar = gretl_model_get_int(pmod... | static void print_count_offset(const MODEL *pmod, const DATASET *dset,
struct printval *val, int namelen, int colsep,
int w, int lmax, int addoff, PRN *prn) {
int offvar = gretl_model_get_int(pmod, "offset_var");
if (offvar > 0) {
char name[24];
... | print_count_offset | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_critical_values(double *a, double *cv, int ci, PRN *prn) {
int v4;
char *v5;
int translated_width;
double v7;
char *v8;
double v9;
double v10;
int figs;
if (ci == 2)
v4 = 2;
else
v4 = 3;
figs = v4;
v5 = gettext("Critical values");
translated_width = get_translated_width(v5)... | static void print_critical_values(double *a, double *cv, int ci, PRN *prn) {
const char *label = N_("Critical values");
int figs = (ci == ADF) ? 2 : 3;
pprintf(prn, "%*s ", TRANSLATED_WIDTH(_(label)), " ");
pprintf(prn, "%g%% %g%% %g%%\n", 100 * a[0], 100 * a[1],
100 * a[2]);
pprintf(p... | print_critical_values | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_critval(int dist, const double *parm, double a, double c, PRN *prn) {
char *v5;
double v6;
char *v7;
char *v8;
char *v9;
char *v10;
char *v11;
switch (dist) {
case 3:
v5 = gettext("Standard normal distribution");
pprintf(prn, "%s", v5);
break;
case 4:
pprintf(prn, "t(%g)"... | void print_critval(int dist, const double *parm, double a, double c, PRN *prn) {
switch (dist) {
case D_NORMAL:
pprintf(prn, "%s", _("Standard normal distribution"));
break;
case D_STUDENT:
pprintf(prn, "t(%g)", parm[0]);
break;
case D_CHISQ:
pprintf(prn, "%s(%g)", _("Chi-square"), parm[0]);... | print_critval | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *print_csv(char *s, double x) {
if (fabs(x) <= 1.797693134862316e308)
sprintf(s, "%.15g", x);
else
strcpy(s, "NA");
return s;
} | static char *print_csv(char *s, double x) {
if (na(x)) {
strcpy(s, "NA");
} else {
sprintf(s, "%.15g", x);
}
return s;
} | print_csv | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_csv_parsing_header(const char *fname, PRN *prn) {
char *v2;
char *v3;
gchar *trfname;
if ((unsigned int)g_utf8_validate(fname, -1, 0)) {
v3 = gettext("parsing");
pprintf(prn, "%s %s...\n", v3, fname);
} else {
trfname = (gchar *)g_locale_to_utf8(fname, -1, 0, 0, 0);
v2 = gettext("p... | static void print_csv_parsing_header(const char *fname, PRN *prn) {
if (!g_utf8_validate(fname, -1, NULL)) {
gchar *trfname = g_locale_to_utf8(fname, -1, NULL, NULL, NULL);
pprintf(prn, "%s %s...\n", _("parsing"), trfname);
g_free(trfname);
} else {
pprintf(prn, "%s %s...\n", _("parsing"), fname);
... | print_csv_parsing_header | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_data_in_columns(const int *list, const int *obsvec,
const DATASET *dset, gretlopt opt, PRN *prn) {
int v5;
int v7;
char delim;
int print_obs;
int ncols;
int obslen;
int gprec;
int i;
int ia;
int s;
int T;
int wi;
int csv;
int rtf;
int t;
const char *cs... | int print_data_in_columns(const int *list, const int *obsvec,
const DATASET *dset, gretlopt opt, PRN *prn) {
int csv = csv_format(prn);
int rtf = rtf_format(prn);
const char *csv_na = "";
int print_obs = 1;
char delim = 0;
int *pmax = NULL;
int *colwidths = NULL;
double xx;
c... | print_data_in_columns | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_data_labels(const GPT_SPEC *spec, FILE *fp) {
double v3;
double v4;
int nlines;
int i;
int t;
int ta;
const double *y;
const double *y1;
double xrange;
double yrange;
__int128 xmin;
__int128 ymin;
double xoff;
const double *x;
const double *y0;
double yoff;
unsigned long v19;... | static int print_data_labels(const GPT_SPEC *spec, FILE *fp) {
const double *x, *y, *y0;
const double *y1 = NULL;
double xrange, yrange;
double xmin, xmax;
double ymin, ymax;
double yoff;
int nlines;
int i, t;
if (spec->markers == NULL) {
return 1;
}
if (spec->flags & GPT_POLAR) {
retur... | print_data_labels | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_df_model(adf_info *ainfo, MODEL *pmod, int dfnum, DATASET *dset,
PRN *prn) {
int v5;
double v6;
char *v7;
double v8;
char *v9;
double v10;
if (ainfo->order <= 0)
v5 = 9;
else
v5 = 10;
pmod->aux = v5;
if (fabs(ainfo->pval) <= 1.797693134862316e308) {
gretl_... | static void print_df_model(adf_info *ainfo, MODEL *pmod, int dfnum,
DATASET *dset, PRN *prn) {
pmod->aux = (ainfo->order > 0) ? AUX_ADF : AUX_DF;
if (!na(ainfo->pval)) {
gretl_model_set_int(pmod, "dfnum", dfnum);
gretl_model_set_double(pmod, "dfpval", ainfo->pval);
}
if (ain... | print_df_model | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_duration_alpha(const MODEL *pmod, PRN *prn) {
double a;
double sa;
if ((pmod->opt & 2) != 0 && plain_format(prn)) {
a = 1.0 / pmod->coeff[pmod->ncoeff - 1];
sa = pmod->sderr[pmod->ncoeff - 1] * (a * a);
ensure_vsep(prn);
pprintf(prn, "1/sigma = %g (%g)\n", a, sa);
if (!tex_format(p... | static void print_duration_alpha(const MODEL *pmod, PRN *prn) {
if ((pmod->opt & OPT_B) && plain_format(prn)) {
double a = 1.0 / pmod->coeff[pmod->ncoeff - 1];
double sa = a * a * pmod->sderr[pmod->ncoeff - 1];
ensure_vsep(prn);
pprintf(prn, "1/sigma = %g (%g)\n", a, sa);
if (!tex_format(prn)) {... | print_duration_alpha | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *print_eight(char *s, middletab *mt, int i) {
_BOOL4 v3;
int v5;
double v6;
int v7;
double v8;
int d7;
double x;
double ax_0;
double lx;
char *p;
char tmp[24];
unsigned long v15;
v15 = __readfsqword(0x28u);
x = mt->val[i];
v3 = x < 0.0 && x < -999999.0 && x > -100000000.0;
d7 = v3;... | static char *print_eight(char *s, struct middletab *mt, int i) {
double ax, x = mt->val[i];
int d7 = (x < 0 && seven_digits(-x));
char tmp[16];
if (mt->ipos[i]) {
sprintf(s, "%9d", (int)x);
return s;
}
if (na(x)) {
sprintf(s, "%9s", "NA");
return s;
}
if (i == RSQ_POS || i == RSQ_POS ... | print_eight | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_end_redirection(PRN *prn) {
int err;
err = 0;
if (!prn)
return 2;
if (prn->fixed) {
prn->fixed = 0;
} else if (prn->fp) {
return prn_pop_stream(prn);
}
return err;
} | int print_end_redirection(PRN *prn) {
int err = 0;
if (prn != NULL) {
if (prn->fixed) {
prn->fixed = 0;
} else if (prn->fp != NULL) {
err = prn_pop_stream(prn);
}
} else {
err = E_DATA;
}
return err;
} | print_end_redirection | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_equation_system_info(const equation_system *sys, const DATASET *dset,
gretlopt opt, PRN *prn) {
char *name;
char *v5;
char *v6;
char *v7;
char *v8;
int i;
int ia;
int ib;
int ic;
int id;
int ie;
int header;
int vi;
header = opt & 0x80;
if ((opt &... | void print_equation_system_info(const equation_system *sys, const DATASET *dset,
gretlopt opt, PRN *prn) {
int header = (opt & OPT_H);
int i, vi, lag;
if (header && sys->name != NULL && !sys_anonymous(sys->name)) {
pprintf(prn, "%s %s\n", _("Equation system"), sys->name);
}
... | print_equation_system_info | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_extra_list(const char *tag, const int *list, const DATASET *dset,
PRN *prn) {
char *v4;
int i;
int len;
int v;
v4 = gettext(tag);
len = pputs(prn, v4);
for (i = 1; i <= *list; ++i) {
v = list[i];
if (v >= dset->v)
len += pprintf(prn, " %d", v);
else
... | static void print_extra_list(const char *tag, const int *list,
const DATASET *dset, PRN *prn) {
int i, v, len;
len = pputs(prn, _(tag));
for (i = 1; i <= list[0]; i++) {
v = list[i];
if (v < dset->v) {
len += pprintf(prn, " %s", dset->varname[v]);
} else {
le... | print_extra_list | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_extra_literal_lines(char **S, int ns, FILE *fp) {
int i;
int n;
for (i = 0; i < ns; ++i) {
if (S[i]) {
n = strlen(S[i]);
if (n > 0) {
fputs(S[i], fp);
if (S[i][n - 1] != 10)
fputc(10, fp);
}
}
}
} | static void print_extra_literal_lines(char **S, int ns, FILE *fp) {
int i, n;
for (i = 0; i < ns; i++) {
if (S[i] != NULL) {
n = strlen(S[i]);
if (n > 0) {
fputs(S[i], fp);
if (S[i][n - 1] != '\n') {
fputc('\n', fp);
}
}
}
}
} | print_extra_literal_lines | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_fcast_stats_matrix(const gretl_matrix *m, int T, gretlopt opt,
PRN *prn) {
int rows;
char *v5;
char *v6;
char *v7;
const char *v8;
char *v9;
char *v10;
int utf_width;
int i;
int ia;
int nmax;
int nmaxa;
int len;
int n;
double x;
const char *si_0;
... | int print_fcast_stats_matrix(const gretl_matrix *m, int T, gretlopt opt,
PRN *prn) {
const char *strs[] = {N_("Mean Error"),
N_("Root Mean Squared Error"),
N_("Mean Absolute Error"),
N_("Mean Percentage Error"),
... | print_fcast_stats_matrix | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_fe_results(panelmod_t *pan, MODEL *pmod, DATASET *dset, PRN *prn) {
char *v4;
unsigned int v5;
unsigned int nobs;
double ess;
char *v8;
char *v9;
double v10;
char *v11;
char *v12;
double s2e;
int dfn;
dfn = pan->effn - 1;
v4 = gettext("Fixed effects estimator\nallows for differing i... | static int print_fe_results(panelmod_t *pan, MODEL *pmod, DATASET *dset,
PRN *prn) {
int dfn = pan->effn - 1;
pputs(prn, _("Fixed effects estimator\n"
"allows for differing intercepts by cross-sectional unit\n"));
pputc(prn, '\n');
simple_print_panel_model(pmod, dset... | print_fe_results | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *print_fifteen(char *s, double x, int minus) {
char *p;
char tmp[8];
unsigned long v6;
v6 = __readfsqword(0x28u);
if (fabs(x) <= 1.797693134862316e308) {
if (minus == 2) {
if (x >= 0.0)
sprintf(s, "%.15E", x);
else
sprintf(s, "$-$%.15E",
COERCE_DOUBLE(*(_Q... | static char *print_fifteen(char *s, double x, int minus) {
if (na(x)) {
strcpy(s, " NA");
} else if (minus == MINUS_TEX) {
char *p;
if (x < 0) {
sprintf(s, "$-$%.15E", -x);
} else {
sprintf(s, "%.15E", x);
}
if ((p = strstr(s, "E-")) != NULL) {
char tmp[8];
sprintf... | print_fifteen | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_filledcurve_color(FILE *fp) {
gretlRGB shadecolor;
char cstr[8];
unsigned long v3;
v3 = __readfsqword(0x28u);
shadecolor = get_shadecolor();
print_rgb_hash(cstr, shadecolor);
fprintf(fp, "lc rgb \"%s\" ", cstr);
} | static void print_filledcurve_color(FILE *fp) {
char cstr[8];
print_rgb_hash(cstr, get_shadecolor());
fprintf(fp, "lc rgb \"%s\" ", cstr);
} | print_filledcurve_color | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_filledcurve_line(const char *title, const char *rgb, FILE *fp) {
gretlRGB shadecolor;
char cstr[10];
unsigned long v6;
v6 = __readfsqword(0x28u);
if (rgb && *rgb) {
cstr[0] = 0;
strncat(cstr, rgb, 9u);
} else {
shadecolor = get_shadecolor();
print_rgb_hash(cstr, shadecolor);
}
... | static void print_filledcurve_line(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) {
fprintf(fp, "'-... | print_filledcurve_line | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_fit_resid(const MODEL *pmod, const DATASET *dset, PRN *prn) {
int err;
FITRESID *fr;
unsigned long v7;
v7 = __readfsqword(0x28u);
err = 0;
fr = get_fit_resid(pmod, dset, &err);
if (!err) {
text_print_fit_resid(fr, dset, prn);
free_fit_resid(fr);
}
return err;
} | int print_fit_resid(const MODEL *pmod, const DATASET *dset, PRN *prn) {
FITRESID *fr;
int err = 0;
fr = get_fit_resid(pmod, dset, &err);
if (!err) {
text_print_fit_resid(fr, dset, prn);
free_fit_resid(fr);
}
return err;
} | print_fit_resid | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *print_flags(gretlopt oflags, int ci) {
gretlopt oflagsa;
int err;
int i;
int got_ci;
gretlopt opt;
const char *parm;
unsigned long v9;
oflagsa = oflags;
v9 = __readfsqword(0x28u);
if (ci == 143)
return (const char *)&unk_34985D;
if (flagprn) {
gretl_print_reset_buffer(flagprn)... | const char *print_flags(gretlopt oflags, int ci) {
const char *parm;
gretlopt opt;
int i, got_ci;
if (ci == FUNDEBUG) {
return "";
}
if (flagprn == NULL) {
int err = 0;
flagprn = gretl_print_new(GRETL_PRINT_BUFFER, &err);
if (err) {
return "";
}
} else {
gretl_print_reset... | print_flags | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_freq(const FreqDist *freq, int varno, const DATASET *dset,
PRN *prn) {
unsigned int v4;
unsigned int v5;
char *v6;
int v7;
char *v8;
char *v10;
double xbar;
unsigned int numbins;
char *v14;
char *v15;
int v16;
int v17;
double v18;
char *v20;
double sdx;
int i;
... | void print_freq(const FreqDist *freq, int varno, const DATASET *dset,
PRN *prn) {
int i, k, nlw, K;
int total, valid;
char word[64];
double f, cumf = 0;
if (freq == NULL) {
return;
}
K = freq->numbins - 1;
valid = freq->n;
total = freq->t2 - freq->t1 + 1;
pprintf(prn, _("\nFre... | print_freq | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_freq_test(const FreqDist *freq, PRN *prn) {
char *v2;
char *v3;
double test;
char *v5;
char *v6;
char *v7;
double pval;
pval = NAN;
if (freq->dist == 3) {
pval = chisq_cdf_comp(2.0, freq->test);
v2 = gettext("Test for null hypothesis of normal distribution");
pprintf(prn, "\n%s... | void print_freq_test(const FreqDist *freq, PRN *prn) {
double pval = NADBL;
if (freq->dist == D_NORMAL) {
pval = chisq_cdf_comp(2, freq->test);
pprintf(prn, "\n%s:\n",
_("Test for null hypothesis of normal distribution"));
pprintf(prn, "%s(2) = %.3f %s %.5f\n", _("Chi-square"), freq->test,
... | print_freq_test | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_function_info(PRN *prn) {
const char *v1;
char *v2;
const char *v3;
char *v4;
const char *v5;
char *v6;
const char *fname;
const char *pname[6];
pname[1] = (const char *)__readfsqword(0x28u);
if (gretl_function_depth() > 0) {
fname = 0;
pname[0] = 0;
current_function_info(&fn... | static void print_function_info(PRN *prn) {
if (gretl_function_depth() > 0) {
const char *fname = NULL;
const char *pname = NULL;
current_function_info(&fname, &pname);
if (fname != NULL && pname != NULL) {
pprintf(prn, "%s %s (%s %s):\n", _("In regard to function"), fname,
_("pac... | print_function_info | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_function_package_code(const char *fname, int tabwidth, PRN *prn) {
return real_print_gfn_data(fname, prn, tabwidth, 2, 0);
} | int print_function_package_code(const char *fname, int tabwidth, PRN *prn) {
return real_print_gfn_data(fname, prn, tabwidth, FUNCS_CODE, NULL);
} | print_function_package_code | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_function_package_help(const char *fname, PRN *prn) {
return real_print_gfn_data(fname, prn, 0, 4, 0);
} | int print_function_package_help(const char *fname, PRN *prn) {
return real_print_gfn_data(fname, prn, 0, FUNCS_HELP, NULL);
} | print_function_package_help | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_function_package_info(const char *fname, int gui_mode, PRN *prn) {
int v3;
if (gui_mode)
v3 = 0;
else
v3 = 5;
return real_print_gfn_data(fname, prn, 0, v3, 0);
} | int print_function_package_info(const char *fname, int gui_mode, PRN *prn) {
int mode = gui_mode ? FUNCS_INFO : FUNCS_QUERY;
return real_print_gfn_data(fname, prn, 0, mode, NULL);
} | print_function_package_info | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_function_package_sample(const char *fname, int tabwidth, PRN *prn) {
return real_print_gfn_data(fname, prn, tabwidth, 3, 0);
} | int print_function_package_sample(const char *fname, int tabwidth, PRN *prn) {
return real_print_gfn_data(fname, prn, tabwidth, FUNCS_SAMPLE, NULL);
} | print_function_package_sample | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_function_start(ufunc *fun, PRN *prn) {
int i;
int pos;
const char *typestr;
fn_param *fp;
const char *s;
if (fun->rettype) {
typestr = gretl_type_get_name((GretlType)fun->rettype);
pos = pprintf(prn, "function %s %s ", typestr, fun->name);
} else {
pos = pprintf(prn, "function void... | static void print_function_start(ufunc *fun, PRN *prn) {
const char *s;
int i, pos = 0;
if (fun->rettype == GRETL_TYPE_NONE) {
pos += pprintf(prn, "function void %s ", fun->name);
} else {
const char *typestr = gretl_type_get_name(fun->rettype);
pos += pprintf(prn, "function %s %s ", typestr, fun-... | print_function_start | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_gnuplot_literal_lines(const char *s, int ci, gretlopt opt, FILE *fp) {
if (s && *s) {
gnuplot_literal_from_string(s, fp);
} else if ((opt & 0x400) != 0) {
gnuplot_literal_from_opt(ci, fp);
}
return 0;
} | int print_gnuplot_literal_lines(const char *s, int ci, gretlopt opt, FILE *fp) {
if (s != NULL && *s != '\0') {
gnuplot_literal_from_string(s, fp);
} else if (opt & OPT_K) {
gnuplot_literal_from_opt(ci, fp);
}
return 0;
} | print_gnuplot_literal_lines | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_gp_data(gnuplot_info *gi, const DATASET *dset, FILE *fp) {
int lmax;
int ynum;
int nomarkers;
int i;
int t;
int n;
double offset;
char *label;
int datlist[3];
char obs[24];
unsigned long v14;
v14 = __readfsqword(0x28u);
n = gi->t2 - gi->t1 + 1;
offset = 0.0;
ynum = 2;
nomarke... | static void print_gp_data(gnuplot_info *gi, const DATASET *dset, FILE *fp) {
int n = gi->t2 - gi->t1 + 1;
double offset = 0.0;
int datlist[3];
int lmax, ynum = 2;
int nomarkers = 0;
int i, t;
if (use_impulses(gi) && gi->list[0] > 2) {
offset = 0.10 * gi->xrange / n;
}
if (gi->x != NULL) {
lm... | print_gp_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_gp_dummy_data(gnuplot_info *gi, const DATASET *dset, FILE *fp) {
int rows;
double v4;
int i;
int t;
int n;
double xt;
const double *d;
const double *y;
char obs[24];
unsigned long v14;
v14 = __readfsqword(0x28u);
d = dset->Z[gi->list[3]];
y = dset->Z[gi->list[1]];
if (gi->dvals) {... | static int print_gp_dummy_data(gnuplot_info *gi, const DATASET *dset,
FILE *fp) {
const double *d = dset->Z[gi->list[3]];
const double *y = dset->Z[gi->list[1]];
double xt, yt;
int i, t, n;
n = gretl_vector_get_length(gi->dvals);
for (i = 0; i < n; i++) {
for (t = gi->t1... | print_gp_dummy_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_hausman_result(panelmod_t *pan, PRN *prn) {
char *v2;
double v3;
unsigned int dfH;
char *v5;
double H;
if (fabs(pan->H) <= 1.797693134862316e308) {
v3 = chisq_cdf_comp((double)pan->dfH, pan->H);
H = pan->H;
dfH = pan->dfH;
v5 = gettext("Hausman test statistic:\n H = %g with p-val... | static void print_hausman_result(panelmod_t *pan, PRN *prn) {
if (na(pan->H)) {
pputs(prn, _("Hausman test matrix is not positive definite!\n"));
} else {
pprintf(prn,
_("Hausman test statistic:\n"
" H = %g with p-value = prob(chi-square(%d) > %g) = %g\n"),
pan->H, pan-... | print_hausman_result | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_heckit_stats(const MODEL *pmod, PRN *prn) {
char *v2;
char *v3;
char *v4;
char *v5;
char *v6;
char *v7;
int totobs;
int cenobs;
double cenpc;
totobs = gretl_model_get_int(pmod, "totobs");
cenobs = totobs - pmod->nobs;
cenpc = 100.0 * (double)cenobs / (double)totobs;
ensure_vsep(prn... | static void print_heckit_stats(const MODEL *pmod, PRN *prn) {
int totobs = gretl_model_get_int(pmod, "totobs");
int cenobs = totobs - pmod->nobs;
double cenpc = (100.0 * cenobs) / totobs;
ensure_vsep(prn);
if (plain_format(prn)) {
pprintf(prn, "%s: %d\n", _("Total observations"), totobs);
pprintf(pr... | print_heckit_stats | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_info(gretlopt opt, DATASET *dset, PRN *prn) {
char *v3;
if (dset && dset->descrip) {
pprintf(prn, "%s\n", dset->descrip);
} else {
v3 = gettext("No data information is available.\n");
pputs(prn, v3);
}
} | static void print_info(gretlopt opt, DATASET *dset, PRN *prn) {
if (dset != NULL && dset->descrip != NULL) {
pprintf(prn, "%s\n", dset->descrip);
} else {
pputs(prn, _("No data information is available.\n"));
}
} | print_info | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_intreg_depvar(const MODEL *pmod, const DATASET *dset, PRN *prn) {
const char *v3;
char *v4;
const char *v5;
char *v6;
int lov;
int hiv;
lov = gretl_model_get_int(pmod, "lovar");
hiv = gretl_model_get_int(pmod, "hivar");
if (lov < dset->v && hiv < dset->v) {
v3 = dset->varname[lov];
... | static void print_intreg_depvar(const MODEL *pmod, const DATASET *dset,
PRN *prn) {
int lov = gretl_model_get_int(pmod, "lovar");
int hiv = gretl_model_get_int(pmod, "hivar");
if (lov < dset->v && hiv < dset->v) {
pprintf(prn, "%s: %s", _("Lower limit"), dset->varname[lov]);
... | print_intreg_depvar | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_intreg_info(const MODEL *pmod, const DATASET *dset, PRN *prn) {
double sigma;
char *v4;
const char *v5;
char *v6;
const char *v7;
char *v8;
char *v9;
char *v10;
char *v11;
double v12;
char *v13;
const char *v14;
char *v15;
const char *v16;
char *v17;
char *v18;
char *v19;
... | static void print_intreg_info(const MODEL *pmod, const DATASET *dset,
PRN *prn) {
const char *nstrs[] = {
N_("Left-unbounded observations"), N_("Right-unbounded observations"),
N_("Bounded observations"), N_("Point observations"),
N_("Pseudo-point observations"),... | print_intreg_info | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_iter_info(int iter, double crit, int type, int k, const double *b,
const double *g, double sl, PRN *prn) {
char *v8;
char *v9;
char *v10;
char *v11;
char *v12;
char *v13;
char *v14;
char *v15;
char *v16;
double v17;
char *v18;
double v19;
char *v20;
double cri... | void print_iter_info(int iter, double crit, int type, int k, const double *b,
const double *g, double sl, PRN *prn) {
const char *cstrs[] = {
N_("loglikelihood"),
N_("GMM criterion"),
N_("SSR"),
N_("Criterion"),
};
const char *cstr = cstrs[type];
double x;
int deta... | print_iter_info | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_ivreg_droplist(const MODEL *pmod, const DATASET *dset, PRN *prn) {
char *v3;
int i;
int v;
int *dlist;
dlist = gretl_model_get_list(pmod, "inst_droplist");
v3 = gettext("Redundant instruments:");
pputs(prn, v3);
for (i = 1; i <= *dlist; ++i) {
v = dlist[i];
if (v >= dset->v)
pp... | static void print_ivreg_droplist(const MODEL *pmod, const DATASET *dset,
PRN *prn) {
const int *dlist = gretl_model_get_list(pmod, "inst_droplist");
int i, v;
pputs(prn, _("Redundant instruments:"));
for (i = 1; i <= dlist[0]; i++) {
v = dlist[i];
if (v < dset->v) {
... | print_ivreg_droplist | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_ivreg_instruments(const MODEL *pmod, const DATASET *dset, PRN *prn) {
int v3;
char *v4;
int i;
int j;
int imin;
int imina;
int ccount;
int nv;
int tex;
int vi;
int *list;
const char *labels[2];
char vname[40];
unsigned long v18;
v18 = __readfsqword(0x28u);
labels[0] = "Instrum... | static int print_ivreg_instruments(const MODEL *pmod, const DATASET *dset,
PRN *prn) {
const char *labels[] = {N_("Instrumented"), N_("Instruments")};
const int *list;
char vname[VNAMELEN];
int tex = tex_format(prn);
int i, j, imin, jmin, vi;
jmin = (pmod->aux) ? 1 : 0;
... | print_ivreg_instruments | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_johansen_sigmas(const JohansenInfo *jv, PRN *prn) {
char *v2;
char *v3;
char *v4;
char *v5;
int i;
int ia;
int ib;
int j;
int ja;
int jb;
v2 = gettext("Sample variance-covariance matrices for residuals");
pprintf(prn, "%s\n\n", v2);
v3 = gettext("VAR system in first differences");
... | static void print_johansen_sigmas(const JohansenInfo *jv, PRN *prn) {
int i, j;
pprintf(prn, "%s\n\n",
_("Sample variance-covariance matrices for residuals"));
pprintf(prn, " %s (S00)\n\n", _("VAR system in first differences"));
for (i = 0; i < jv->S00->rows; i++) {
for (j = 0; j < jv->S00->rows... | print_johansen_sigmas | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_kalman_bundle_info(void *kptr, PRN *prn) {
int err;
int i;
int ia;
int ib;
const char *name;
const char *namea;
gretl_matrix **pm;
const gretl_matrix *m;
const gretl_matrix *ma;
double *px;
err = 0;
if (kptr) {
pputs(prn, "\nKalman input matrices\n");
for (i = 0; i <= 9; ++i) ... | int print_kalman_bundle_info(void *kptr, PRN *prn) {
kalman *K = kptr;
int err = 0;
if (K == NULL) {
pputs(prn, "Kalman struct: empty\n");
err = E_DATA;
} else {
const gretl_matrix *m;
gretl_matrix **pm;
double *px;
const char *name;
int i, id;
pputs(prn, "\nKalman input matric... | print_kalman_bundle_info | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_keypos_string(int t, FILE *fp) {
const char *s;
s = gp_keypos_string(t);
if (!strcmp(s, "none"))
fwrite("set nokey\n", 1u, 0xAu, fp);
else
fprintf(fp, "set key %s\n", s);
} | void print_keypos_string(int t, FILE *fp) {
const char *s = gp_keypos_string(t);
if (!strcmp(s, "none")) {
fputs("set nokey\n", fp);
} else {
fprintf(fp, "set key %s\n", s);
}
} | print_keypos_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_liml_equation_data(const MODEL *pmod, PRN *prn) {
char *v2;
char *v3;
char *v4;
char *v5;
char *v6;
char *v7;
double nobs;
int idf;
double lmin;
double X2;
double pv;
lmin = gretl_model_get_double(pmod, "lmin");
idf = gretl_model_get_int(pmod, "idf");
if (fabs(lmin) <= 1.79769313... | static void print_liml_equation_data(const MODEL *pmod, PRN *prn) {
double lmin = gretl_model_get_double(pmod, "lmin");
int idf = gretl_model_get_int(pmod, "idf");
if (!na(lmin)) {
ensure_vsep(prn);
if (!pmod->aux) {
if (tex_format(prn)) {
pprintf(prn, "%s = %g\\\\\n", _("Smallest eigenvalu... | print_liml_equation_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_linestyle(const GPT_SPEC *spec, int targ, int src, FILE *fp) {
int done;
gretlRGB color;
GPT_LINE *line;
char cstr[8];
unsigned long v10;
v10 = __readfsqword(0x28u);
done = 0;
fprintf(fp, "set linetype %d ", targ + 1);
if (src < spec->n_lines) {
line = &spec->lines[src];
if (line->... | static void print_linestyle(const GPT_SPEC *spec, int targ, int src, FILE *fp) {
GPT_LINE *line;
int done = 0;
fprintf(fp, "set linetype %d ", targ + 1);
if (src < spec->n_lines) {
line = &spec->lines[src];
if (*line->rgb != '\0' && line->style != GP_STYLE_FILLEDCURVE) {
fprintf(fp, "lc rgb \"%s... | print_linestyle | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_listed_objects(const char *s, const DATASET *dset, gretlopt opt,
PRN *prn) {
size_t v5;
int rows;
const char *sa;
int err;
int start;
int stop;
GretlType t;
int len_1;
int len_0;
int len;
const char *syms;
char *name;
user_var *uv;
const char *s_0;
gretl_... | static int print_listed_objects(const char *s, const DATASET *dset,
gretlopt opt, PRN *prn) {
const char *syms = "=+-/*<>?|~^!%&.,:;\\'[({$";
char *name = NULL;
int err = 0;
if (!strcmp(s, "$sysinfo")) {
gretl_bundle *b = get_sysinfo_bundle(&err);
if (b != NULL) {
... | print_listed_objects | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_loop_coeff(const DATASET *dset, const LOOP_MODEL *lmod, int i,
PRN *prn) {
double d;
double v5;
double v6;
double v7;
unsigned long ln;
__mpf_struct c1[1];
__mpf_struct c2[1];
__mpf_struct m[1];
__mpf_struct sd1[1];
__mpf_struct sd2[1];
char tmp[32];
char pname[4... | static void print_loop_coeff(const DATASET *dset, const LOOP_MODEL *lmod, int i,
PRN *prn) {
char pname[VNAMELEN];
char tmp[NAMETRUNC];
mpf_t c1, c2, m, sd1, sd2;
unsigned long ln = lmod->n;
mpf_init(c1);
mpf_init(c2);
mpf_init(m);
mpf_init(sd1);
mpf_init(sd2);
mpf_div... | print_loop_coeff | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_loop_results(LOOPSET *loop, const DATASET *dset, PRN *prn) {
int v3;
gretlopt printmodel_opt;
int k;
int i;
int j;
gretlopt opt;
int ci;
MODEL *pmod;
k = 0;
j = 0;
for (i = 0; i < loop->n_cmds; ++i) {
opt = loop->cmds[i].opt;
ci = loop->cmds[i].ci;
if (ci == 88 && (loop->fl... | static void print_loop_results(LOOPSET *loop, const DATASET *dset, PRN *prn) {
#if HAVE_GMP
int k = 0;
#endif
int i, j = 0;
for (i = 0; i < loop->n_cmds; i++) {
gretlopt opt = loop->cmds[i].opt;
int ci = loop->cmds[i].ci;
#if LOOP_DEBUG > 1
fprintf(stderr, "print_loop_results: loop command %d: %s\n"... | print_loop_results | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_middle_table(MODEL *pmod, PRN *prn, int code) {
int v3;
unsigned int v4;
char *v5;
int dfn;
char *v7;
const char *v8;
const char *v9;
const char *v10;
const char *v11;
const char *v12;
const char *v13;
const char *v14;
const char *v15;
const char *v16;
const char *v17;
double ... | static void print_middle_table(MODEL *pmod, PRN *prn, int code) {
const char *note =
N_("note on model statistics abbreviations here");
int rtf = rtf_format(prn);
int tex = tex_format(prn);
int csv = csv_format(prn);
gchar *teststr = NULL;
const char *key[] = {
N_("Mean dependent var"),
... | print_middle_table | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_min_max_deflt(fn_param *param, PRN *prn) {
if (fabs(param->min) <= 1.797693134862316e308 ||
fabs(param->max) <= 1.797693134862316e308 || param->deflt != -1.0e200) {
if (fabs(param->min) <= 1.797693134862316e308 ||
fabs(param->max) <= 1.797693134862316e308) {
pputc(prn, 91);
if... | static void print_min_max_deflt(fn_param *param, PRN *prn) {
if (na(param->min) && na(param->max) && default_unset(param)) {
return;
} else if (na(param->min) && na(param->max)) {
if (!default_unset(param)) {
if (na(param->deflt)) {
pputs(prn, "[NA]");
} else {
pprintf(prn, "[%g... | print_min_max_deflt | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_model_chi2_test(const MODEL *pmod, double x, int j, PRN *prn) {
char *v4;
char *v5;
char *v6;
double v7;
char *v8;
char *v9;
char *v10;
int df_0;
const char *strs[5];
const char *texstrs[5];
unsigned long v16;
v16 = __readfsqword(0x28u);
strs[0] = "Sargan over-identification test";... | static void print_model_chi2_test(const MODEL *pmod, double x, int j,
PRN *prn) {
const char *strs[] = {N_("Sargan over-identification test"),
N_("Wald (joint) test"), N_("Wald (time dummies)"),
N_("J test"), N_("Overdispersion test")};... | print_model_chi2_test | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_model_droplist(const MODEL *pmod, const DATASET *dset, PRN *prn) {
char *v3;
unsigned int v4;
char *v5;
int *dlist;
dlist = gretl_model_get_list(pmod, "droplist");
if (!gretl_is_between_model(pmod) || pmod->dataset) {
if (*dlist <= 10) {
print_extra_list("Omitted due to exact collinear... | static void print_model_droplist(const MODEL *pmod, const DATASET *dset,
PRN *prn) {
const int *dlist = gretl_model_get_list(pmod, "droplist");
const char *tag = N_("Omitted due to exact collinearity:");
if (gretl_is_between_model(pmod) && pmod->dataset == NULL) {
return;
... | print_model_droplist | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int print_model_from_matrices(const gretl_matrix *cs_0,
const gretl_matrix *adds, gretl_array *names,
int df_0, gretlopt opt, PRN *prn) {
int rows;
int cols;
int ns;
int k;
int p;
const double *b;
const double *se;
char **S;
unsigned long v18... | int print_model_from_matrices(const gretl_matrix *cs, const gretl_matrix *adds,
gretl_array *names, int df, gretlopt opt,
PRN *prn) {
int k = gretl_matrix_rows(cs);
int p = gretl_vector_get_length(adds);
const double *b = cs->val;
const double *se = b ... | print_model_from_matrices | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_model_heading(const MODEL *pmod, const DATASET *dset, gretlopt opt,
PRN *prn) {
char *v4;
int v5;
char *v6;
int ID;
char *v8;
int v9;
char *v10;
int v11;
char *v12;
const char *v13;
char *v14;
char *v15;
const char *v16;
char *v17;
char *v18;
char *v19... | static void print_model_heading(const MODEL *pmod, const DATASET *dset,
gretlopt opt, PRN *prn) {
char startdate[OBSLEN], enddate[OBSLEN];
char vname[48], datesep[4];
int t1 = pmod->t1, t2 = pmod->t2;
int tex = tex_format(prn);
int csv = csv_format(prn);
int dvnl = 1;
int o... | print_model_heading | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_model_iter_info(const MODEL *pmod, PRN *prn) {
char *v2;
char *v3;
char *v4;
int iters;
int fncount;
unsigned int grcount;
iters = gretl_model_get_int(pmod, "iters");
if (iters <= 0) {
fncount = gretl_model_get_int(pmod, "fncount");
grcount = gretl_model_get_int(pmod, "grcount");
... | static void print_model_iter_info(const MODEL *pmod, PRN *prn) {
int iters = gretl_model_get_int(pmod, "iters");
if (iters > 0) {
pprintf(prn, _("Convergence achieved after %d iterations\n"), iters);
} else {
int fncount = gretl_model_get_int(pmod, "fncount");
int grcount = gretl_model_get_int(pmod,... | print_model_iter_info | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_model_stats_table(const double *stats, const char **names, int ns,
gretlopt opt, PRN *prn) {
char v5;
double v6;
char v7;
char pt;
char delim;
int i;
int oneline;
int d;
char tmp1[32];
char tmp2[40];
unsigned long v17;
v17 = __readfsqword(0x28u);
onelin... | static void print_model_stats_table(const double *stats, const char **names,
int ns, gretlopt opt, PRN *prn) {
int oneline = opt & OPT_I;
char tmp1[32], tmp2[32];
char pt = get_local_decpoint();
char delim;
int i, d;
if (plain_format(prn)) {
pputc(prn, '\n');
} els... | print_model_stats_table | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_model_tests(const MODEL *pmod, PRN *prn) {
int i;
int ia;
if (tex_format(prn)) {
pputs(prn, "\\vspace{1em}\n\\begin{raggedright}\n");
for (i = 0; i < pmod->ntests; ++i) {
if (i > 0)
pputs(prn, "\\vspace{1ex}\n");
gretl_model_test_print(pmod, i, prn);
}
if (pmod->nte... | static void print_model_tests(const MODEL *pmod, PRN *prn) {
int i;
if (tex_format(prn)) {
pputs(prn, "\\vspace{1em}\n\\begin{raggedright}\n");
for (i = 0; i < pmod->ntests; i++) {
if (i > 0) {
pputs(prn, "\\vspace{1ex}\n");
}
gretl_model_test_print(pmod, i, prn);
}
if (pm... | print_model_tests | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_model_vcv_info(const MODEL *pmod, const DATASET *dset, PRN *prn) {
VCVInfo *vi;
vi = 0;
if (pmod->ci == 64 && gretl_model_get_int(pmod, "rq")) {
rq_vcv_line(pmod, prn);
} else if (gretl_model_get_int(pmod, "panel_bk_failed")) {
beck_katz_failed_line(prn);
} else if (pmod->ci == 28 && gretl... | void print_model_vcv_info(const MODEL *pmod, const DATASET *dset, PRN *prn) {
VCVInfo *vi = NULL;
if (pmod->ci == LAD && gretl_model_get_int(pmod, "rq")) {
rq_vcv_line(pmod, prn);
} else if (gretl_model_get_int(pmod, "panel_bk_failed")) {
beck_katz_failed_line(prn);
} else if (pmod->ci == DPANEL && gre... | print_model_vcv_info | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_model_zerolist(const MODEL *pmod, const DATASET *dset, PRN *prn) {
int *zlist;
zlist = gretl_model_get_list(pmod, "zerolist");
if (!gretl_is_between_model(pmod))
print_extra_list("Omitted because all values were zero:", zlist, dset, prn);
} | static void print_model_zerolist(const MODEL *pmod, const DATASET *dset,
PRN *prn) {
const int *zlist = gretl_model_get_list(pmod, "zerolist");
const char *tag = N_("Omitted because all values were zero:");
if (gretl_is_between_model(pmod)) {
return;
}
print_extra_list(t... | print_model_zerolist | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_mult(double mult, int first, PRN *prn) {
if (mult == 1.0) {
if (!first)
pputs(prn, " + ");
} else {
if (mult != -1.0) {
if (mult <= 0.0) {
if (mult >= 0.0)
return;
if (!first) {
pprintf(prn, " - %g*",
COERCE_DOUBLE(*(_QWORD *)&mult... | static void print_mult(double mult, int first, PRN *prn) {
if (mult == 1.0) {
if (!first)
pputs(prn, " + ");
} else if (mult == -1.0) {
if (first)
pputs(prn, "-");
else
pputs(prn, " - ");
} else if (mult > 0.0) {
if (first)
pprintf(prn, "%g*", mult);
else
pprintf(... | print_mult | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_normality_stat(double test, double pval, gretlopt opt, PRN *prn) {
int v4;
char *v5;
char *v6;
int i;
const char *tstrs[4];
unsigned long v9;
v9 = __readfsqword(0x28u);
tstrs[0] = "Shapiro-Wilk W";
tstrs[1] = "Jarque-Bera test";
tstrs[2] = "Lilliefors test";
tstrs[3] = "Doornik-Hansen ... | static void print_normality_stat(double test, double pval, gretlopt opt,
PRN *prn) {
const char *tstrs[] = {N_("Shapiro-Wilk W"), N_("Jarque-Bera test"),
N_("Lilliefors test"), N_("Doornik-Hansen test")};
int i = (opt & OPT_W) ? 0 : (opt & OPT_J) ? 1 : (opt ... | print_normality_stat | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_obs_marker(int t, const DATASET *dset, int len, PRN *prn) {
real_print_obs_marker(t, dset, len, 1, prn);
} | void print_obs_marker(int t, const DATASET *dset, int len, PRN *prn) {
real_print_obs_marker(t, dset, len, 1, prn);
} | print_obs_marker | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_opt_flags(fn_param *param, PRN *prn) {
if ((param->flags & 2) != 0)
pputs(prn, "[null]");
} | static void print_opt_flags(fn_param *param, PRN *prn) {
if (param->flags & FP_OPTIONAL) {
pputs(prn, "[null]");
}
} | print_opt_flags | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *print_option(int opt) {
const char *result;
switch (opt) {
case 1:
result = "LIST_DBS";
break;
case 2:
result = "GRAB_IDX";
break;
case 3:
result = "GRAB_DATA";
break;
case 6:
result = "GRAB_NBO_DATA";
break;
case 7:
result = "GRAB_FILE";
break;
case ... | static const char *print_option(int opt) {
switch (opt) {
case LIST_DBS:
return "LIST_DBS";
case GRAB_IDX:
return "GRAB_IDX";
case GRAB_DATA:
return "GRAB_DATA";
case GRAB_NBO_DATA:
return "GRAB_NBO_DATA";
case GRAB_FILE:
return "GRAB_FILE";
case LIST_FUNCS:
return "LIST_FUNCS";
... | print_option | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_option_param(const char *s, PRN *prn) {
const char *sa;
int wrap;
int escape;
const char *p;
sa = s;
p = s;
wrap = 0;
escape = 0;
while (*p) {
if (strspn(p, "=%, ")) {
wrap = 1;
} else if (*p == 34) {
escape = 1;
}
++p;
}
if (wrap) {
if (escape) {
... | static void print_option_param(const char *s, PRN *prn) {
const char *qchars = "=%, ";
const char *p = s;
int wrap = 0;
int escape = 0;
while (*p) {
if (strspn(p, qchars)) {
wrap = 1;
} else if (*p == '"') {
escape = 1;
}
p++;
}
if (wrap) {
if (escape) {
pputs(prn, ... | print_option_param | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_or_save_result(ExecState *state, gretl_restriction *rset,
const DATASET *dset, PRN *prn) {
double test;
int g;
char *v6;
char *v7;
double v8;
int dfd;
int v10;
char *v11;
char *v12;
double pval;
char *v14;
_BOOL4 asym;
int quiet;
int silent;
int robust;... | static void print_or_save_result(ExecState *state, gretl_restriction *rset,
const DATASET *dset, PRN *prn) {
MODEL *pmod = rset->obj;
int robust, asym = 0;
int quiet = (rset->opt & OPT_Q);
int silent = (rset->opt & OPT_S);
robust = (pmod->opt & OPT_R);
if (ASYMPTOTIC_MODEL... | print_or_save_result | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_overdisp_test(const MODEL *pmod, PRN *prn) {
double x;
x = gretl_model_get_double(pmod, "overdisp");
if (fabs(x) <= 1.797693134862316e308) {
ensure_vsep(prn);
print_model_chi2_test(pmod, x, 4, prn);
if (!tex_format(prn))
gretl_prn_newline(prn);
}
} | static void print_overdisp_test(const MODEL *pmod, PRN *prn) {
double x = gretl_model_get_double(pmod, "overdisp");
if (!na(x)) {
ensure_vsep(prn);
print_model_chi2_test(pmod, x, OVERDISP, prn);
if (!tex_format(prn)) {
gretl_prn_newline(prn);
}
}
} | print_overdisp_test | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_package_code(const fnpkg *pkg, int tabwidth, PRN *prn) {
int i;
int ia;
pprintf(prn, "# hansl code from package %s %s (%s)\n\n", pkg->name,
pkg->version, pkg->date);
if (pkg->priv) {
pputs(prn, "# private functions\n\n");
for (i = 0; i < pkg->n_priv; ++i) {
gretl_function_pri... | static void print_package_code(const fnpkg *pkg, int tabwidth, PRN *prn) {
int i;
pprintf(prn, "# hansl code from package %s %s (%s)\n\n", pkg->name,
pkg->version, pkg->date);
if (pkg->priv != NULL) {
pputs(prn, "# private functions\n\n");
for (i = 0; i < pkg->n_priv; i++) {
gretl_functi... | print_package_code | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_package_help(const fnpkg *pkg, const char *fname, PRN *prn) {
char *v3;
int i;
const char *rem;
char line[2056];
unsigned long v8;
v8 = __readfsqword(0x28u);
pprintf(prn, "%s %s (%s), %s\n", pkg->name, pkg->version, pkg->date,
pkg->author);
v3 = gretl_strstrip(pkg->descrip);
pput... | static void print_package_help(const fnpkg *pkg, const char *fname, PRN *prn) {
char *rem, line[2048];
int i, lmax = 76;
pprintf(prn, "%s %s (%s), %s\n", pkg->name, pkg->version, pkg->date,
pkg->author);
pputs(prn, gretl_strstrip(pkg->descrip));
pputs(prn, "\n\n");
bufgets_init(pkg->help);
whi... | print_package_help | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_package_info(const fnpkg *pkg, const char *fname, PRN *prn) {
char *v3;
const char *v4;
char *v5;
char *v6;
const char *v7;
int i;
int ia;
_BOOL4 remote;
int pdfdoc;
char *s;
gchar *localpdf;
char *p;
char vstr[8];
unsigned long v17;
v17 = __readfsqword(0x28u);
v3 = strstr(fn... | static void print_package_info(const fnpkg *pkg, const char *fname, PRN *prn) {
char vstr[8];
int remote, pdfdoc;
int i;
remote = (strstr(fname, "dltmp.") != NULL);
if (!remote && g_path_is_absolute(fname)) {
pprintf(prn, "<@itl=\"File\">: %s\n\n", fname);
}
if (pkg->name[0] == '\0' || pkg->author ... | print_package_info | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_padded_head(const char *s, int w, PRN *prn) {
int hlen;
int offset;
hlen = char_len(s);
offset = (w - hlen) / 2;
bufspace(offset, prn);
pputs(prn, s);
bufspace(w - hlen - offset, prn);
} | static void print_padded_head(const char *s, int w, PRN *prn) {
int hlen = char_len(s);
int offset = (w - hlen) / 2;
int pad = w - hlen - offset;
bufspace(offset, prn);
pputs(prn, s);
bufspace(pad, prn);
} | print_padded_head | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_padded_value(printval *val, int w, int lmax, int addoff, PRN *prn) {
int pad;
pad = w - (addoff + lmax + val->rw);
bufspace(lmax - val->lw + addoff, prn);
pputs(prn, val->s);
bufspace(pad, prn);
} | static void print_padded_value(struct printval *val, int w, int lmax,
int addoff, PRN *prn) {
int offset = lmax - val->lw + addoff;
int pad = w - (lmax + val->rw + addoff);
bufspace(offset, prn);
pputs(prn, val->s);
bufspace(pad, prn);
} | print_padded_value | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_palette_string(char *s) {
sprintf(s, "x%06X x%06X", user_extra_color[0], user_extra_color[0]);
} | void print_palette_string(char *s) {
sprintf(s, "x%06X x%06X", user_extra_color[0], user_extra_color[0]);
} | print_palette_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_panel_AR_test(double z, int order, PRN *prn) {
char *v3;
double pv;
char numstr[40];
unsigned long v7;
v7 = __readfsqword(0x28u);
v3 = gettext("Test for AR(%d) errors:");
pprintf(prn, v3, (unsigned int)order);
if (fabs(z) <= 1.797693134862316e308) {
pv = normal_pvalue_2(z);
if (tex_f... | static void print_panel_AR_test(double z, int order, PRN *prn) {
pprintf(prn, _("Test for AR(%d) errors:"), order);
if (na(z)) {
if (tex_format(prn)) {
pputs(prn, " & $z$ = NA");
} else {
pputs(prn, " z = NA");
}
} else {
double pv = normal_pvalue_2(z);
if (tex_format(prn)) {
... | print_panel_AR_test | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void print_param_description(fn_param *param, PRN *prn) {
if (param->descrip) {
if (*param->descrip)
pprintf(prn, " \"%s\"", param->descrip);
}
} | static void print_param_description(fn_param *param, PRN *prn) {
if (param->descrip != NULL && *param->descrip != '\0') {
pprintf(prn, " \"%s\"", param->descrip);
}
} | print_param_description | 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.