input stringlengths 16 454k | output stringlengths 13 350k | function_name stringlengths 1 100 | repo_name stringlengths 6 43 | category stringclasses 76
values | sample_id stringlengths 22 88 | decompiler stringclasses 1
value | opt_level stringclasses 1
value |
|---|---|---|---|---|---|---|---|
int t_adjust_order(adf_info *ainfo, DATASET *dset, int *err, PRN *prn) {
MODEL v5;
PRN *prna;
int *erra;
DATASET *dseta;
adf_info *ainfoa;
int k;
gretlopt kmod_opt;
int kmax;
int pos;
double tstat;
double pval;
MODEL kmod;
unsigned long v17;
ainfoa = ainfo;
dseta = dset;
erra = err;
p... | static int t_adjust_order(adf_info *ainfo, DATASET *dset, int *err, PRN *prn) {
gretlopt kmod_opt = (OPT_A | OPT_Z);
MODEL kmod;
int kmax = ainfo->kmax;
double tstat, pval;
int k, pos;
for (k = kmax; k > 0; k--) {
kmod = lsq(ainfo->list, dset, OLS, kmod_opt);
if (!kmod.errcode && kmod.dfd == 0) {
... | t_adjust_order | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int t_to_epoch_day(int t, guint32 start, int wkdays) {
int wkends;
wkends = (int)(t + start % 7 - 1) / wkdays;
if (wkdays == 5)
wkends *= 2;
return start + t + wkends;
} | static int t_to_epoch_day(int t, guint32 start, int wkdays) {
int startday = (start - 1 + DAY1) % 7;
int wkends = (t + startday - 1) / wkdays;
if (wkdays == 5) {
wkends *= 2;
}
return start + t + wkends;
} | t_to_epoch_day | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double table_prob(double a, double b, double c, double d, double n, int *err) {
double p2;
double p3;
double P;
double p1;
P = NAN;
p1 = choose(a + b, a, err);
if (!*err)
p2 = choose(c + d, c, err);
if (!*err)
p3 = choose(n, a + c, err);
if (!*err) {
P = p1 * p2 / p3;
if (fabs(P) > 1.... | static double table_prob(double a, double b, double c, double d, double n,
int *err) {
double p1, p2, p3, P = NADBL;
p1 = choose(a + b, a, err);
if (!*err) {
p2 = choose(c + d, c, err);
}
if (!*err) {
p3 = choose(n, a + c, err);
}
if (!*err) {
P = p1 * p2 / p3;
i... | table_prob | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int tall_SVD(const gretl_matrix *X, gretl_matrix **pU, gretl_matrix **psv,
gretl_matrix **pVt) {
_BOOL4 v5;
double *v6;
int err;
int i;
int j;
int c;
int vecs;
int jj;
gretl_matrix *sv;
gretl_matrix *U;
gretl_matrix *Vt;
gretl_matrix *Vl;
gretl_matrix *lam;
gretl_matrix *XTX;
... | static int tall_SVD(const gretl_matrix *X, gretl_matrix **pU,
gretl_matrix **psv, gretl_matrix **pVt) {
gretl_matrix *XTX;
gretl_matrix *sv;
gretl_matrix *lam = NULL;
gretl_matrix *U = NULL;
gretl_matrix *Vt = NULL;
gretl_matrix *Vl = NULL;
double lj, vij;
int vecs, c = X->cols;
in... | tall_SVD | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double tcrit95(int df_0) {
double x;
x = NAN;
if (df_0 > 0) {
x = stdtri((double)df_0, 0.975);
if (get_cephes_errno())
return NAN;
}
return x;
} | double tcrit95(int df) {
double x = NADBL;
if (df > 0) {
x = stdtri(df, 0.975);
if (get_cephes_errno()) {
x = NADBL;
}
}
return x;
} | tcrit95 | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int tdisagg_get_start_stop(int ynum, const int *ylist, int xnum,
const int *xlist, const DATASET *dset, int cfac,
int xmidas, int *start, int *ystop, int *xstop) {
const int *xlista;
const int *ylista;
int t1;
int t2;
int yt1;
int yt2;
int nmiss;
int... | static int tdisagg_get_start_stop(int ynum, const int *ylist, int xnum,
const int *xlist, const DATASET *dset,
int cfac, int xmidas, int *start, int *ystop,
int *xstop) {
int yvars[2] = {1, ynum};
int xvars[2] = {1... | tdisagg_get_start_stop | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int tdisagg_get_y_compression(int ynum, int xconv, int s, parser *p) {
if (ynum > 0 && series_get_orig_pd(p->dset, ynum))
return s;
if (p->targ == 55)
return s;
if (p->dset->pd == 4 && s == 4)
return 4;
if (p->dset->pd == 12 && s == 12)
return 12;
if (xconv == 1)
return s;
return 1;
} | static int tdisagg_get_y_compression(int ynum, int xconv, int s, parser *p) {
if (ynum > 0 && series_get_orig_pd(p->dset, ynum)) {
return s;
} else if (p->targ == SERIES) {
return s;
} else if (p->dset->pd == 4 && s == 4) {
return s;
} else if (p->dset->pd == 12 && s == 12) {
return s;
} else ... | tdisagg_get_y_compression | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int tdisagg_get_y_start_stop(int ynum, const int *ylist, const DATASET *dset,
int cfac, int *t1, int *t2) {
const int *ylista;
int nmiss;
int err;
int yvars[2];
unsigned long v11;
ylista = ylist;
v11 = __readfsqword(0x28u);
yvars[0] = 1;
yvars[1] = ynum;
err = 0;
if (... | static int tdisagg_get_y_start_stop(int ynum, const int *ylist,
const DATASET *dset, int cfac, int *t1,
int *t2) {
int yvars[2] = {1, ynum};
int err = 0;
if (ynum == 0 && ylist == NULL) {
return 0;
} else if (ylist == NULL) {
ylis... | tdisagg_get_y_start_stop | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *tdisagg_matrix_from_series(const double *x, int xnum,
const int *list, const DATASET *dset,
int cfac, int *err) {
int v6;
const double *xa;
int serr;
int T;
int i;
int s;
int t;
int k;
int rem;
char **S;
... | gretl_matrix *tdisagg_matrix_from_series(const double *x, int xnum,
const int *list, const DATASET *dset,
int cfac, int *err) {
gretl_matrix *m = NULL;
char **S = NULL;
int k = list != NULL ? list[0] : 1;
int T = dset->t2 - dset->... | tdisagg_matrix_from_series | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *temp_name_for_bundle() {
int i;
int nb;
char tmpname[40];
unsigned long v4;
v4 = __readfsqword(0x28u);
nb = 0;
for (i = 0; i < n_vars_0; ++i) {
if (uvars[i]->type == GRETL_TYPE_BUNDLE)
++nb;
}
sprintf(tmpname, "btmp___%d", nb);
return gretl_strdup(tmpname);
} | char *temp_name_for_bundle(void) {
char tmpname[VNAMELEN];
int i, nb = 0;
for (i = 0; i < n_vars; i++) {
if (uvars[i]->type == GRETL_TYPE_BUNDLE) {
nb++;
}
}
sprintf(tmpname, "btmp___%d", nb);
return gretl_strdup(tmpname);
} | temp_name_for_bundle | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
FILE *tempfile_open(char *fname, int *err) {
FILE *fp;
*(_QWORD *)&fname[strlen(fname)] = 0x5858585858582ELL;
fp = gretl_mktemp(fname, "w+");
if (!fp)
*err = 11;
return fp;
} | static FILE *tempfile_open(char *fname, int *err) {
FILE *fp;
strcat(fname, ".XXXXXX");
fp = gretl_mktemp(fname, "w+");
if (fp == NULL) {
*err = E_FOPEN;
}
return fp;
} | tempfile_open | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *term(parser *p) {
NODE *t;
if (p->err)
return 0;
t = factor(p);
if (!t)
return 0;
while (!p->err &&
(p->sym == 9 || p->sym == 10 || p->sym == 39 || p->sym == 11 ||
p->sym == 23 || p->sym == 24 || p->sym == 35)) {
t = newb2(p->sym, t, 0);
if (t) {
lex(p);
t... | static NODE *term(parser *p) {
NODE *t;
#if SDEBUG
fprintf(stderr, "term: starting...\n");
#endif
if (p->err || (t = factor(p)) == NULL) {
return NULL;
}
while (!p->err && (p->sym == B_MUL || p->sym == B_DIV || p->sym == B_LDIV ||
p->sym == B_MOD || p->sym == B_DOTMULT ||
... | term | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *test_bundle_key(NODE *l, NODE *r, parser *p) {
GretlType type;
int err;
NODE *ret;
gretl_bundle *bundle;
const char *key;
unsigned long v9;
v9 = __readfsqword(0x28u);
ret = get_aux_node(p, 54, 0, 0);
if (ret) {
bundle = l->v.b;
key = r->v.str;
type = GRETL_TYPE_NONE;
err = 0;
... | static NODE *test_bundle_key(NODE *l, NODE *r, parser *p) {
NODE *ret = aux_scalar_node(p);
if (ret != NULL) {
gretl_bundle *bundle = l->v.b;
const char *key = r->v.str;
GretlType type = 0;
int err = 0;
gretl_bundle_get_data(bundle, key, &type, NULL, &err);
ret->v.xval = gretl_type_get_ord... | test_bundle_key | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *test_down_string(int i, gretlopt opt) {
if ((opt & 0x100000) != 0) {
if (i == 2)
return gettext("modified BIC, Perron-Qu");
else
return gettext("modified AIC, Perron-Qu");
} else if (i == 2) {
if ((opt & 0x40) != 0)
return gettext("modified BIC");
else
return gett... | static const char *test_down_string(int i, gretlopt opt) {
if (opt & OPT_U) {
if (i == k_BIC) {
return _("modified BIC, Perron-Qu");
} else {
return _("modified AIC, Perron-Qu");
}
} else {
int gls = (opt & OPT_G);
if (i == k_BIC) {
return gls ? _("modified BIC") : _("BIC");
... | test_down_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int test_for_bool(PLOTGROUP *grp) {
int i;
for (i = 0; i < grp->nplots; ++i) {
if (grp->plots[i].bool)
return 1;
}
return 0;
} | static int test_for_bool(PLOTGROUP *grp) {
int i;
for (i = 0; i < grp->nplots; i++) {
if (grp->plots[i].bool != NULL) {
return 1;
}
}
return 0;
} | test_for_bool | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int test_for_outliers(PLOTGROUP *grp) {
int rows;
int i;
int n;
n = 0;
for (i = 0; i < grp->nplots; ++i) {
if (grp->plots[i].outliers) {
if (grp->plots[i].outliers->cols == 1) {
rows = grp->plots[i].outliers->rows;
} else if (grp->plots[i].outliers->rows == 1) {
rows = grp->pl... | static int test_for_outliers(PLOTGROUP *grp) {
int i, n = 0;
for (i = 0; i < grp->nplots; i++) {
if (grp->plots[i].outliers != NULL) {
n += gretl_vector_get_length(grp->plots[i].outliers);
}
}
return n;
} | test_for_outliers | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void test_for_thousands_sep(csvdata *c, const char *s) {
char v2;
char thousep;
char *test;
const char *p1;
const char *p2;
char tmp[136];
unsigned long v8;
v8 = __readfsqword(0x28u);
p1 = strrchr(s, 46);
p2 = strrchr(s, 44);
thousep = 0;
if (p1 && p2) {
if (p2 - p1 <= 0)
v2 = 44;
... | static void test_for_thousands_sep(csvdata *c, const char *s) {
const char *p1 = strrchr(s, '.');
const char *p2 = strrchr(s, ',');
char thousep = 0;
if (p1 != NULL && p2 != NULL) {
thousep = (p2 - p1 > 0) ? '.' : ',';
} else if (p1 != NULL && char_count('.', s) > 0) {
thousep = '.';
} else if (p2 ... | test_for_thousands_sep | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *test_get_descrip(const ModelTest *test) {
int i;
if (test->type == 6 && test->teststat == 8)
return dfree_1;
if (test->type == 24 && test->teststat == 7)
return lr_indep_0;
for (i = 0; tstrings[i].ID <= (unsigned int)GRETL_TEST_XDEPEND; ++i) {
if (test->type == tstrings[i].ID)
ret... | static const char *test_get_descrip(const ModelTest *test) {
static const char *dfree =
N_("Distribution free Wald test for heteroskedasticity");
static const char *lr_indep = N_("Likelihood ratio test of independence");
if (test->type == GRETL_TEST_GROUPWISE &&
test->teststat == GRETL_STAT_WALD_CHIS... | test_get_descrip | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *test_get_opt_string(const ModelTest *test) {
if (test->type == 10) {
if ((test->opt & 0x20000) != 0)
return "squares only";
if ((test->opt & 4) != 0)
return "cubes only";
} else if (test->type == 12) {
if ((test->opt & 0x800000) != 0)
return "squares only";
} else if (tes... | static const char *test_get_opt_string(const ModelTest *test) {
if (test->type == GRETL_TEST_RESET) {
if (test->opt & OPT_R) {
return N_("squares only");
} else if (test->opt & OPT_C) {
return N_("cubes only");
}
} else if (test->type == GRETL_TEST_WHITES) {
if (test->opt & OPT_X) {
... | test_get_opt_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int test_markers_for_dates(DATASET *dset, int *reversed, char *skipstr,
PRN *prn) {
char *v5;
char *v6;
char *v7;
int len1;
int pd;
int n;
int len2;
char *lbl1;
char *lbl2;
char endobs[24];
unsigned long v17;
v17 = __readfsqword(0x28u);
n = dset->n;
lbl1 = *dset->... | int test_markers_for_dates(DATASET *dset, int *reversed, char *skipstr,
PRN *prn) {
char endobs[OBSLEN];
int n = dset->n;
char *lbl1 = dset->S[0];
char *lbl2 = dset->S[n - 1];
int len1 = strlen(lbl1);
int len2 = strlen(lbl2);
int pd = -1;
if (skipstr != NULL && *skipstr != '\... | test_markers_for_dates | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int test_params_differ(const char *p, const char *s) {
int ret;
ret = 0;
if (!s && p)
return 1;
if (!p && s)
return 1;
if (p && s)
return strcmp(p, s);
return ret;
} | static int test_params_differ(const char *p, const char *s) {
int ret = 0;
if (s == NULL && p != NULL) {
ret = 1;
} else if (p == NULL && s != NULL) {
ret = 1;
} else if (p != NULL && s != NULL) {
ret = strcmp(p, s);
}
return ret;
} | test_params_differ | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int test_restriction_set(gretl_restriction *rset, PRN *prn) {
int rows;
char *v4;
char *v5;
int err;
int freeRvR;
gretl_matrix *vcv;
gretl_vector *b;
gretl_vector *br;
gretl_matrix *RvR;
MODEL *pmod;
unsigned long v13;
v13 = __readfsqword(0x28u);
pmod = (MODEL *)rset->obj;
vcv = 0;
b = 0;... | static int test_restriction_set(gretl_restriction *rset, PRN *prn) {
MODEL *pmod = rset->obj;
gretl_matrix *vcv = NULL;
gretl_vector *b = NULL;
gretl_vector *br = NULL;
gretl_matrix *RvR = NULL;
int err, freeRvR = 1;
gretl_error_clear();
err = restriction_set_form_matrices(rset);
if (err) {
retu... | test_restriction_set | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *test_type_key(ModelTestType t) {
switch (t) {
case GRETL_TEST_ADD:
return "add_test";
case GRETL_TEST_ARCH:
return "arch_test";
case GRETL_TEST_AUTOCORR:
return "autocorr_test";
case GRETL_TEST_CHOW:
case GRETL_TEST_CHOWDUM:
return "chow_test";
case GRETL_TEST_CUSUM:
return... | static const char *test_type_key(ModelTestType t) {
if (t == GRETL_TEST_ADD) {
return "add_test";
} else if (t == GRETL_TEST_ARCH) {
return "arch_test";
} else if (t == GRETL_TEST_AUTOCORR) {
return "autocorr_test";
} else if (t == GRETL_TEST_CHOW || t == GRETL_TEST_CHOWDUM) {
return "chow_test"... | test_type_key | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int test_user_matrices(gretl_restriction *rset) {
char *v2;
unsigned int v3;
char *v4;
unsigned int gmax;
char *v6;
int err;
int nb;
int nbr;
gretl_matrix *R;
gretl_matrix *q;
R = rset->R;
q = rset->q;
err = 0;
if (!R || !q)
return 2;
if (R->rows != q->rows || q->cols != 1)
return... | static int test_user_matrices(gretl_restriction *rset) {
gretl_matrix *R = rset->R;
gretl_matrix *q = rset->q;
int err = 0;
if (R == NULL || q == NULL) {
return E_DATA;
}
if (R->rows != q->rows || q->cols != 1) {
return E_NONCONF;
}
if (rset->vecm) {
int nb = gretl_VECM_n_beta(rset->ob... | test_user_matrices | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int test_wanted(DetCode det, gretlopt opt) {
int ret;
ret = 0;
if (det == UR_QUAD_TREND)
return opt & 0x20000;
if ((unsigned int)det <= UR_QUAD_TREND) {
switch (det) {
case UR_TREND:
return opt & 0x80000;
case UR_NO_CONST:
return opt & 0x2000;
case UR_CONST:
return opt & 4... | static int test_wanted(DetCode det, gretlopt opt) {
int ret = 0;
switch (det) {
case UR_NO_CONST:
ret = (opt & OPT_N);
break;
case UR_CONST:
ret = (opt & OPT_C);
break;
case UR_TREND:
ret = (opt & OPT_T);
break;
case UR_QUAD_TREND:
ret = (opt & OPT_R);
break;
default:
... | test_wanted | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int testvals_differ(double x, double y) {
double reldiff;
if (x == 0.0) {
reldiff = fabs(y);
} else {
if (y != 0.0) {
if (x <= y)
x = (y - x) / x;
else
x = (x - y) / y;
}
reldiff = fabs(x);
}
return reldiff > 1.0e-10;
} | static int testvals_differ(double x, double y) {
double eq_tol = 1.0e-10;
double reldiff;
if (x == 0.0) {
reldiff = fabs(y);
} else if (y == 0.0) {
reldiff = fabs(x);
} else if (x > y) {
reldiff = fabs((x - y) / y);
} else {
reldiff = fabs((y - x) / x);
}
return reldiff > eq_tol;
} | testvals_differ | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double *testvec(int n) {
int t;
double *y;
if (!n)
goto LABEL_2;
if (n > nx_1) {
y = (double *)realloc(x_2, 8LL * n);
if (!y) {
LABEL_2:
free(x_2);
x_2 = 0;
nx_1 = 0;
return 0;
}
nx_1 = n;
x_2 = y;
}
for (t = 0; t < n; ++t)
x_2[t] = NAN;
return x_2;... | static double *testvec(int n) {
static double *x;
static int nx;
int t;
if (n == 0) {
free(x);
x = NULL;
nx = 0;
return NULL;
}
if (n > nx) {
double *y = realloc(x, n * sizeof *x);
if (y == NULL) {
free(x);
x = NULL;
nx = 0;
return NULL;
}
nx = n;... | testvec | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void tex_VAR_varname(char *s, const MODEL *pmod, const DATASET *dset, int v) {
int lag;
char base[12];
char tmp[40];
unsigned long v7;
v7 = __readfsqword(0x28u);
gretl_model_get_param_name(pmod, dset, v, tmp);
if ((unsigned int)__isoc99_sscanf(tmp, "%11[^_]_%d", base, &lag) == 2)
sprintf(s, "%s$_{t-%... | static void tex_VAR_varname(char *s, const MODEL *pmod, const DATASET *dset,
int v) {
char tmp[32], base[12];
int lag;
gretl_model_get_param_name(pmod, dset, v, tmp);
if (sscanf(tmp, "%11[^_]_%d", base, &lag) == 2) {
sprintf(s, "%s$_{t-%d}$", base, lag);
} else {
tex_esca... | tex_VAR_varname | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void tex_VECM_varname(char *s, const MODEL *pmod, const DATASET *dset, int v) {
int lag;
char base[12];
char tmp[40];
unsigned long v7;
v7 = __readfsqword(0x28u);
gretl_model_get_param_name(pmod, dset, v, tmp);
if ((unsigned int)__isoc99_sscanf(tmp, "d_%11[^_]_%d", base, &lag) == 2)
sprintf(s, "$\\De... | static void tex_VECM_varname(char *s, const MODEL *pmod, const DATASET *dset,
int v) {
char tmp[32], base[12];
int lag;
gretl_model_get_param_name(pmod, dset, v, tmp);
if (sscanf(tmp, "d_%11[^_]_%d", base, &lag) == 2) {
sprintf(s, "$\\Delta$%s$_{t-%d}$", base, lag);
} else {... | tex_VECM_varname | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void tex_arma_coeff_name(char *targ, const char *src, int inmath) {
int i;
char fmt[16];
char vname[32];
char vnesc[32];
char texname[56];
unsigned long v9;
v9 = __readfsqword(0x28u);
if ((unsigned int)__isoc99_sscanf(src, "phi_%d", &i)) {
if (inmath)
sprintf(targ, "\\phi_{%d}", i);
else
... | static void tex_arma_coeff_name(char *targ, const char *src, int inmath) {
char vname[VNAMELEN], vnesc[32], texname[48];
int i;
if (sscanf(src, "phi_%d", &i)) {
if (!inmath) {
sprintf(targ, "$\\phi_{%d}$", i);
} else {
sprintf(targ, "\\phi_{%d}", i);
}
} else if (sscanf(src, "Phi_%d", &... | tex_arma_coeff_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void tex_beta_vname(char *s, const GRETL_VAR *v, const DATASET *dset, int i,
PRN *prn) {
const char *v5;
_BOOL4 v6;
if (i >= v->neqns) {
if (v->jinfo &&
(v->jinfo->code == J_REST_CONST || v->jinfo->code == J_REST_TREND) &&
i == v->neqns) {
if (v->jinfo && v->jinfo->c... | static void tex_beta_vname(char *s, const GRETL_VAR *v, const DATASET *dset,
int i, PRN *prn) {
if (i < v->neqns) {
tex_escape(s, dset->varname[v->ylist[i + 1]]);
pprintf(prn, "%s$_{t-1}$ & ", s);
} else if (auto_restr(v) && i == v->neqns) {
pprintf(prn, "%s & ", (jcode(v) == ... | tex_beta_vname | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void tex_coeff_table_end(PRN *prn) { pputs(prn, "\\end{tabular}\n\n"); } | void tex_coeff_table_end(PRN *prn) { pputs(prn, "\\end{tabular}\n\n"); } | tex_coeff_table_end | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int tex_coeff_table_start(const char **cols, gretlopt opt, PRN *prn) {
char *v4;
int v5;
const char *v6;
const char *v7;
char *v8;
char pt;
int i;
int ia;
int ncols;
int mcols;
pt = get_local_decpoint();
ncols = 1;
if (use_custom)
return tex_custom_coeff_table_start(cols, opt, prn);
if ... | int tex_coeff_table_start(const char **cols, gretlopt opt, PRN *prn) {
char pt = get_local_decpoint();
int i, mcols, binary = (opt & OPT_B);
int ncols = 1;
if (use_custom) {
return tex_custom_coeff_table_start(cols, opt, prn);
}
if (!(opt & OPT_U)) {
pputs(prn, "\\vspace{1em}\n\n");
}
pputs(... | tex_coeff_table_start | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *tex_column_format(int i) {
if ((unsigned int)i >= 4)
return &byte_34E430;
else
return &colspec[8 * i];
} | const char *tex_column_format(int i) {
if (i >= 0 && i < 4) {
return colspec[i];
} else {
return "";
}
} | tex_column_format | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int tex_custom_coeff_table_start(const char **cols, gretlopt opt, PRN *prn) {
char *v3;
char *v4;
char *v5;
char *v6;
char *v7;
int i;
int ia;
int ncols;
ncols = 0;
for (i = 0; i <= 3; ++i) {
if (colspec[8 * i])
++ncols;
}
if ((opt & 0x100000) == 0)
pputs(prn, "\\vspace{1em}\n\n")... | static int tex_custom_coeff_table_start(const char **cols, gretlopt opt,
PRN *prn) {
int i, ncols = 0;
for (i = 0; i < 4; i++) {
if (colspec[i][0]) {
ncols++;
}
}
if (!(opt & OPT_U)) {
pputs(prn, "\\vspace{1em}\n\n");
}
pputs(prn, "\\begin{tabula... | tex_custom_coeff_table_start | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int tex_doc_format(PRN *prn) {
return prn && (prn->format & 2) != 0 && (prn->format & 4) != 0;
} | int tex_doc_format(PRN *prn) {
return (prn != NULL && (prn->format & GRETL_FORMAT_TEX) &&
(prn->format & GRETL_FORMAT_DOC));
} | tex_doc_format | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void tex_dpd_depvar_name(char *s, const char *vname) {
char vnesc[40];
unsigned long v3;
v3 = __readfsqword(0x28u);
tex_escape(vnesc, vname);
sprintf(s, "$\\Delta$%s", vnesc);
} | static void tex_dpd_depvar_name(char *s, const char *vname) {
char vnesc[32];
tex_escape(vnesc, vname);
sprintf(s, "$\\Delta$%s", vnesc);
} | tex_dpd_depvar_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int tex_eqn_format(PRN *prn) {
return prn && (prn->format & 2) != 0 && (prn->format & 0x20) != 0;
} | int tex_eqn_format(PRN *prn) {
return (prn != NULL && (prn->format & GRETL_FORMAT_TEX) &&
(prn->format & GRETL_FORMAT_EQN));
} | tex_eqn_format | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *tex_escape(char *targ, const char *src) {
char *v3;
const char *v4;
char *v5;
const char *srca;
char *targa;
targa = targ;
srca = src;
if (src) {
while (*srca) {
if (*srca == 36 || *srca == 38 || *srca == 95 || *srca == 37 ||
*srca == 35) {
v3 = targa++;
*v3 = ... | char *tex_escape(char *targ, const char *src) {
char *p = targ;
if (src == NULL) {
fprintf(stderr, "tex_escape: src is NULL\n");
*p = '\0';
return p;
}
while (*src) {
if (*src == '$' || *src == '&' || *src == '_' || *src == '%' || *src == '#')
*targ++ = '\\';
*targ++ = *src++;
}
... | tex_escape | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *tex_escape_new(const char *src) {
int v2;
int v3;
int i;
int len;
char *ret;
len = 0;
if (src) {
while (*src) {
if (*src == 36 || *src == 38 || *src == 95 || *src == 37 || *src == 35)
++len;
++len;
}
ret = (char *)calloc(1u, len + 1);
i = 0;
while (*src) {
... | char *tex_escape_new(const char *src) {
const char *s = src;
char *ret = NULL;
int i, len = 0;
if (src == NULL) {
fprintf(stderr, "tex_escape: src is NULL\n");
return gretl_strdup("");
}
while (*s) {
if (*s == '$' || *s == '&' || *s == '_' || *s == '%' || *s == '#') {
len++;
}
le... | tex_escape_new | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *tex_escape_special(char *targ, const char *src) {
char *v3;
const char *v4;
char *v5;
const char *srca;
char *p;
const char *tgreek;
srca = src;
p = targ;
if (strchr(src, 36)) {
strcpy(targ, src);
return targ;
} else {
tgreek = tex_greek_var(src);
if (tgreek) {
sprintf(t... | char *tex_escape_special(char *targ, const char *src) {
const char *tgreek;
char *p = targ;
if (strchr(src, '$')) {
strcpy(targ, src);
return targ;
}
tgreek = tex_greek_var(src);
if (tgreek != NULL) {
sprintf(targ, "$%s$", tgreek);
} else if (tex_math_pname(targ, src)) {
;
} else {
... | tex_escape_special | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int tex_format(PRN *prn) { return prn && (prn->format & 2) != 0; } | int tex_format(PRN *prn) {
return (prn != NULL && (prn->format & GRETL_FORMAT_TEX));
} | tex_format | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void tex_garch_coeff_name(char *targ, const char *src, int inmath) {
int lag;
char fmt[16];
char vnesc[16];
char vname[40];
unsigned long v8;
v8 = __readfsqword(0x28u);
sprintf(fmt, "%%%d[^(](%%d)", 31);
if ((unsigned int)__isoc99_sscanf(src, fmt, vname, &lag) == 2) {
if (inmath)
sprintf(targ... | static void tex_garch_coeff_name(char *targ, const char *src, int inmath) {
char fmt[16], vname[VNAMELEN], vnesc[16];
int lag;
sprintf(fmt, "%%%d[^(](%%d)", VNAMELEN - 1);
if (sscanf(src, fmt, vname, &lag) == 2) {
if (!inmath) {
sprintf(targ, "$\\%s_{%d}$", vname, lag);
} else {
sprintf(t... | tex_garch_coeff_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int tex_greek_param(char *targ, const char *src) {
const char *tgreek;
tgreek = tex_greek_var(src);
if (tgreek) {
sprintf(targ, "$%s$", tgreek);
return 1;
} else {
*targ = 0;
return 0;
}
} | static int tex_greek_param(char *targ, const char *src) {
const char *tgreek = tex_greek_var(src);
if (tgreek != NULL) {
sprintf(targ, "$%s$", tgreek);
return 1;
} else {
*targ = '\0';
return 0;
}
} | tex_greek_param | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *tex_greek_var(const char *s) {
if (!strcmp(s, "alpha"))
return "\\alpha";
if (!strcmp(s, "beta"))
return "\\beta";
if (!strcmp(s, "gamma"))
return "\\gamma";
if (!strcmp(s, "delta"))
return "\\delta";
if (!strcmp(s, "epsilon"))
return "\\epsilon";
if (!strcmp(s, "chi"))
r... | static const char *tex_greek_var(const char *s) {
if (!strcmp(s, "alpha")) {
return "\\alpha";
} else if (!strcmp(s, "beta")) {
return "\\beta";
} else if (!strcmp(s, "gamma")) {
return "\\gamma";
} else if (!strcmp(s, "delta")) {
return "\\delta";
} else if (!strcmp(s, "epsilon")) {
retur... | tex_greek_var | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *tex_handle_underscores(const char *s, int n) {
size_t v2;
int v3;
int v4;
int i;
int j;
char *ret;
v2 = strlen(s);
ret = (char *)malloc(v2 + n + 1);
j = 0;
if (ret) {
for (i = 0; s[i]; ++i) {
if (s[i] != 95 || i && s[i - 1] == 92) {
v4 = j++;
ret[v4] = s[i];
} ... | static char *tex_handle_underscores(const char *s, int n) {
char *ret = malloc(strlen(s) + 1 + n);
int i, j = 0;
if (ret != NULL) {
for (i = 0; s[i] != '\0'; i++) {
if (s[i] == '_' && (i == 0 || s[i - 1] != '\\')) {
ret[j++] = '\\';
ret[j++] = '_';
} else {
ret[j++] = s[i... | tex_handle_underscores | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void tex_make_cname(char *cname, const char *src) {
unsigned char c;
int lag;
char *p;
if (src && *src) {
p = strrchr(src, 95);
if (p && (c = p[1], ((*__ctype_b_loc())[c] & 0x800) != 0)) {
lag = atoi(p + 1);
sprintf(cname, "$u_{t-%d}^2$", lag);
} else {
tex_escape(cname, src);
... | static void tex_make_cname(char *cname, const char *src) {
char *p;
unsigned char c;
if (src == NULL || *src == '\0')
return;
p = strrchr(src, '_');
if (p == NULL) {
tex_escape(cname, src);
return;
}
c = (unsigned char)*(p + 1);
if (isdigit(c)) {
int lag = atoi(++p);
sprintf(cna... | tex_make_cname | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int tex_math_pname(char *targ, const char *s) {
char *v2;
const char *tgreek;
char op[2];
char mod[8];
char base[24];
unsigned long v8;
v8 = __readfsqword(0x28u);
if ((unsigned int)__isoc99_sscanf(s, "%15[^_^]%1[_^]%7s", base, op, mod) !=
3 ||
mod[0] != 123 && ((*__ctype_b_loc())[mod[0]... | static int tex_math_pname(char *targ, const char *s) {
char base[16], op[2], mod[8];
int n;
n = sscanf(s, "%15[^_^]%1[_^]%7s", base, op, mod);
if (n == 3 && (*mod == '{' || isdigit(*mod))) {
const char *tgreek = tex_greek_var(base);
const char *tbase = (tgreek != NULL) ? tgreek : base;
if (*mod =... | tex_math_pname | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *tex_modify_exponent(char *s) {
const char *v1;
char *p;
char tmp[24];
unsigned long v5;
v5 = __readfsqword(0x28u);
p = strchr(s, 101);
if (p) {
if (p[1] == 45)
v1 = "--";
else
v1 = "+";
sprintf(tmp, "\\textrm{e%s%s}", v1, p + 2);
strcpy(p, tmp);
}
return s;
} | char *tex_modify_exponent(char *s) {
char *p = strchr(s, 'e');
if (p != NULL) {
int minus = (*(p + 1) == '-');
char tmp[16];
sprintf(tmp, "\\textrm{e%s%s}", (minus) ? "--" : "+", p + 2);
strcpy(p, tmp);
}
return s;
} | tex_modify_exponent | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void tex_mp_coeff_name(char *targ, const char *src, int inmath) {
int power;
char fmt[12];
char vnesc[32];
char vname[40];
unsigned long v8;
v8 = __readfsqword(0x28u);
tex_escape(vnesc, src);
sprintf(fmt, "%%%d[^^]^%%d", 31);
if ((unsigned int)__isoc99_sscanf(vnesc, fmt, vname, &power) == 2) {
if... | static void tex_mp_coeff_name(char *targ, const char *src, int inmath) {
char fmt[12], vname[VNAMELEN], vnesc[24];
int power;
tex_escape(vnesc, src);
sprintf(fmt, "%%%d[^^]^%%d", VNAMELEN - 1);
if (sscanf(vnesc, fmt, vname, &power) == 2) {
if (!inmath) {
sprintf(targ, "%s$^{%d}$", vname, power);... | tex_mp_coeff_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *tex_multi_double(double x, char *numstr) {
char *p;
char tmp[8];
unsigned long v5;
v5 = __readfsqword(0x28u);
if (fabs(x) <= 1.797693134862316e308) {
if (x >= 0.0)
sprintf(numstr, "%.15E", x);
else
sprintf(numstr, "$-$%.15E",
COERCE_DOUBLE(*(_QWORD *)&x ^ 0x80000000000... | static char *tex_multi_double(double x, char *numstr) {
char *p;
if (na(x)) {
strcpy(numstr, " ");
} else if (x < 0) {
sprintf(numstr, "$-$%.15E", -x);
} else {
sprintf(numstr, "%.15E", x);
}
if ((p = strstr(numstr, "E-")) != NULL) {
char tmp[8];
sprintf(tmp, "E--%s", p + 2);
strc... | tex_multi_double | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void tex_print_VAR_ll_stats(GRETL_VAR *var, PRN *prn) {
char *v2;
char *v3;
double v4;
double AIC;
char *v6;
double BIC;
char *v8;
double HQC;
char *v10;
v2 = gettext("Log-likelihood");
pprintf(prn, "\\noindent\n%s = ", v2);
tex_print_double(var->ll, prn);
pputs(prn, "\\par\n");
v3 = gettex... | void tex_print_VAR_ll_stats(GRETL_VAR *var, PRN *prn) {
pprintf(prn, "\\noindent\n%s = ", _("Log-likelihood"));
tex_print_double(var->ll, prn);
pputs(prn, "\\par\n");
pprintf(prn, "\\noindent\n%s = ", _("Determinant of covariance matrix"));
tex_print_double(exp(var->ldet), prn);
pputs(prn, "\\par\n");
p... | tex_print_VAR_ll_stats | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void tex_print_VECM_coint_eqns(GRETL_VAR *vecm, const DATASET *dset, PRN *prn) {
int v3;
char *v4;
char *v5;
int v6;
char *v7;
char *v8;
int i;
int ia;
int ib;
int ic;
int j;
int ja;
int jb;
int jc;
int rows;
int rowsa;
double x;
double xb;
double xa;
double xc;
JohansenInfo *j... | void tex_print_VECM_coint_eqns(GRETL_VAR *vecm, const DATASET *dset, PRN *prn) {
char s[32];
JohansenInfo *jv = vecm->jinfo;
int rows = gretl_matrix_rows(jv->Beta);
int i, j;
double x;
pputs(prn, "\\noindent\n");
pputs(prn, _("Cointegrating vectors"));
if (jv->Bse != NULL) {
pprintf(prn, " (%s)\n",... | tex_print_VECM_coint_eqns | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void tex_print_VECM_omega(GRETL_VAR *vecm, const DATASET *dset, PRN *prn) {
char *v3;
char *v4;
double v5;
int i;
int ia;
int ib;
int j;
int *list;
char vname[56];
unsigned long v13;
v13 = __readfsqword(0x28u);
list = vecm->ylist;
v3 = gettext("Cross-equation covariance matrix");
pprintf(pr... | void tex_print_VECM_omega(GRETL_VAR *vecm, const DATASET *dset, PRN *prn) {
char vname[48];
const int *list = vecm->ylist;
double x;
int i, j;
pprintf(prn, "%s\n\n", _("Cross-equation covariance matrix"));
pputs(prn, "\\vspace{1em}\n");
pputs(prn, "\\begin{tabular}{");
pputs(prn, "l");
for (i = 0; i... | tex_print_VECM_omega | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void tex_print_coeff(const model_coeff *mc, PRN *prn) {
char *v2;
char *v3;
char *v4;
int ncols;
char col1[64];
char col2[64];
char col3[64];
char col4[72];
unsigned long v10;
v10 = __readfsqword(0x28u);
ncols = 4;
if (mc->multi) {
tex_multi_double(mc->b, col1);
tex_multi_double(mc->se,... | void tex_print_coeff(const model_coeff *mc, PRN *prn) {
char col1[64], col2[64], col3[64], col4[64];
int ncols = 4;
if (mc->multi) {
tex_multi_double(mc->b, col1);
tex_multi_double(mc->se, col2);
pprintf(prn, "%s & %s & %s \\\\\n", mc->name, col1, col2);
return;
}
if (use_custom) {
tex_p... | tex_print_coeff | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int tex_print_coeff_custom(const model_coeff *mc, PRN *prn) {
char *v2;
char *v3;
char *v4;
char *v5;
char fmt[12];
unsigned long v8;
v8 = __readfsqword(0x28u);
pprintf(prn, "%s & ", mc->name);
if (colspec[0]) {
if (fabs(mc->b) <= 1.797693134862316e308) {
sprintf(fmt, "$%s$", colspec);
... | static int tex_print_coeff_custom(const model_coeff *mc, PRN *prn) {
char fmt[12];
pprintf(prn, "%s & ", mc->name);
if (colspec[0][0]) {
if (na(mc->b)) {
pprintf(prn, "\\multicolumn{1}{c}{\\rm %s}", _("undefined"));
} else {
sprintf(fmt, "$%s$", colspec[0]);
pprintf(prn, fmt, mc->b);
... | tex_print_coeff_custom | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void tex_print_double(double x, PRN *prn) {
char s[40];
unsigned long v3;
v3 = __readfsqword(0x28u);
tex_sprint_double(x, s);
pputs(prn, s);
} | void tex_print_double(double x, PRN *prn) {
char s[32];
tex_sprint_double(x, s);
pputs(prn, s);
} | tex_print_double | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int tex_print_equation(const MODEL *pmod, const DATASET *dset, gretlopt opt,
PRN *prn) {
const char *v5;
int v6;
const char *v7;
const char *v8;
const char *v9;
const char *v10;
const char *v11;
const char *v12;
const char *v13;
double v14;
char *v15;
int ic;
int i;
in... | int tex_print_equation(const MODEL *pmod, const DATASET *dset, gretlopt opt,
PRN *prn) {
double x;
char tmp[48], vname[32];
int i, nc = pmod->ncoeff;
int split = 0, offvar = 0;
int cchars = 0, ccount = 0;
int se_digits;
int sderr_ok = 1;
if (pmod->ci == HECKIT) {
return E_NOT... | tex_print_equation | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int tex_print_model(MODEL *pmod, const DATASET *dset, gretlopt opt, PRN *prn) {
int err;
const char *s;
err = 0;
if ((pmod->ci == 64 || pmod->ci == 104) &&
gretl_model_get_data(pmod, "rq_tauvec"))
return 8;
if (tex_doc_format(prn))
opt |= 0x40000u;
if (tex_eqn_format(prn))
return tex_prin... | int tex_print_model(MODEL *pmod, const DATASET *dset, gretlopt opt, PRN *prn) {
int err = 0;
if (RQ_SPECIAL_MODEL(pmod)) {
return E_NOTIMP;
}
if (tex_doc_format(prn)) {
opt |= OPT_S;
}
if (tex_eqn_format(prn)) {
err = tex_print_equation(pmod, dset, opt, prn);
} else {
if (opt & OPT_T) {... | tex_print_model | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void tex_print_obs_marker(int t, const DATASET *dset, PRN *prn) {
char tmp[24];
unsigned long v5;
v5 = __readfsqword(0x28u);
if (dset->markers) {
pprintf(prn, "\\texttt{%s} ", dset->S[t]);
} else {
ntolabel(tmp, t, dset);
pprintf(prn, "%8s ", tmp);
}
} | void tex_print_obs_marker(int t, const DATASET *dset, PRN *prn) {
if (dset->markers) {
pprintf(prn, "\\texttt{%s} ", dset->S[t]);
} else {
char tmp[OBSLEN];
ntolabel(tmp, t, dset);
pprintf(prn, "%8s ", tmp);
}
} | tex_print_obs_marker | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void tex_print_unsigned_double(double x, PRN *prn) {
tex_print_double(fabs(x), prn);
} | static void tex_print_unsigned_double(double x, PRN *prn) {
tex_print_double(fabs(x), prn);
} | tex_print_unsigned_double | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *tex_rl_double(double x, char *s) {
int gretl_digits;
gretl_digits = get_gretl_digits();
return tex_rl_double_dig(x, s, gretl_digits);
} | char *tex_rl_double(double x, char *s) {
return tex_rl_double_dig(x, s, get_gretl_digits());
} | tex_rl_double | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *tex_rl_double_dig(double x, char *s, int d) {
char *p;
if (fabs(x) <= 1.797693134862316e308) {
if (fabs(x) <= 1.0e-13)
x = 0.0;
if (x >= 0.0)
sprintf(s, "%#.*g", d, x);
else
sprintf(s, "$-$%#.*g", d,
COERCE_DOUBLE(*(_QWORD *)&x ^ 0x8000000000000000LL));
if (str... | static char *tex_rl_double_dig(double x, char *s, int d) {
char *p;
if (na(x)) {
return strcpy(s, "\\multicolumn{2}{c}{}");
}
x = screen_zero(x);
if (x < 0) {
sprintf(s, "$-$%#.*g", d, -x);
} else {
sprintf(s, "%#.*g", d, x);
}
if (strchr(s, 'e') != NULL) {
tex_modify_exponent(s);
... | tex_rl_double_dig | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *tex_rl_float(double x, char *s, int dig) {
char *p;
if (fabs(x) <= 1.797693134862316e308) {
if (fabs(x) <= 1.0e-13)
x = 0.0;
if (x >= 0.0)
sprintf(s, "%.*f", dig, x);
else
sprintf(s, "$-$%.*f", dig,
COERCE_DOUBLE(*(_QWORD *)&x ^ 0x8000000000000000LL));
p = strc... | char *tex_rl_float(double x, char *s, int dig) {
char *p;
if (na(x)) {
return strcpy(s, "\\multicolumn{2}{c}{}");
}
x = screen_zero(x);
if (x < 0) {
sprintf(s, "$-$%.*f", dig, -x);
} else {
sprintf(s, "%.*f", dig, x);
}
p = strchr(s, '.');
if (p == NULL) {
p = strchr(s, ',');
}
... | tex_rl_float | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *tex_sprint_double(double x, char *s) {
int d;
d = get_gretl_digits();
if (fabs(x) <= 1.797693134862316e308) {
if (fabs(x) <= 1.0e-13)
x = 0.0;
if (x >= 0.0)
sprintf(s, "%#.*g", d, x);
else
sprintf(s, "$-$%#.*g", d,
COERCE_DOUBLE(*(_QWORD *)&x ^ 0x8000000000000000... | char *tex_sprint_double(double x, char *s) {
int d = get_gretl_digits();
if (na(x)) {
return strcpy(s, " ");
}
x = screen_zero(x);
if (x < 0.0) {
sprintf(s, "$-$%#.*g", d, -x);
} else {
sprintf(s, "%#.*g", d, x);
}
if (strchr(s, 'e') != NULL) {
tex_modify_exponent(s);
}
return s... | tex_sprint_double | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *tex_sprint_double_digits(double x, char *s, int dig) {
if (fabs(x) <= 1.797693134862316e308) {
if (fabs(x) <= 1.0e-13)
x = 0.0;
if (x >= 0.0)
sprintf(s, "%#.*g", dig, x);
else
sprintf(s, "$-$%#.*g", dig,
COERCE_DOUBLE(*(_QWORD *)&x ^ 0x8000000000000000LL));
if (st... | char *tex_sprint_double_digits(double x, char *s, int dig) {
if (na(x)) {
return strcpy(s, " ");
}
x = screen_zero(x);
if (x < 0.0) {
sprintf(s, "$-$%#.*g", dig, -x);
} else {
sprintf(s, "%#.*g", dig, x);
}
if (strchr(s, 'e') != NULL) {
tex_modify_exponent(s);
}
return s;
} | tex_sprint_double_digits | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *tex_sprint_math_double_digits(double x, char *s, int dig) {
if (fabs(x) <= 1.797693134862316e308) {
if (fabs(x) <= 1.0e-13)
x = 0.0;
sprintf(s, "%#.*g", dig, x);
if (strchr(s, 101))
tex_modify_exponent(s);
return s;
} else {
strcpy(s, "\\mbox{NA}");
return s;
}
} | static char *tex_sprint_math_double_digits(double x, char *s, int dig) {
if (na(x)) {
return strcpy(s, "\\mbox{NA}");
}
x = screen_zero(x);
sprintf(s, "%#.*g", dig, x);
if (strchr(s, 'e') != NULL) {
tex_modify_exponent(s);
}
return s;
} | tex_sprint_math_double_digits | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int tex_using_custom_tabular() { return use_custom; } | int tex_using_custom_tabular(void) { return use_custom; } | tex_using_custom_tabular | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void tex_vecm_depvar_name(char *s, const char *vname) {
int gotit;
char tmp[14];
char myvar[24];
unsigned long v5;
v5 = __readfsqword(0x28u);
gotit = 0;
if ((unsigned int)__isoc99_sscanf(vname, "d_%13s", tmp)) {
tex_escape(myvar, tmp);
sprintf(s, "$\\Delta$%s", myvar);
gotit = 1;
}
if (!g... | static void tex_vecm_depvar_name(char *s, const char *vname) {
char tmp[14];
int gotit = 0;
if (sscanf(vname, "d_%13s", tmp)) {
char myvar[24];
tex_escape(myvar, tmp);
sprintf(s, "$\\Delta$%s", myvar);
gotit = 1;
}
if (!gotit) {
tex_escape(s, vname);
}
} | tex_vecm_depvar_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void tex_xtab_heading(const Xtab *tab, PRN *prn) {
char *v2;
const Xtab *cvarname;
char *v4;
int i;
int j;
int k;
char *targ;
const char *src;
char s1[80];
char s2[88];
unsigned long v12;
v12 = __readfsqword(0x28u);
memset(&s1[9], 0, 64);
memset(&s2[9], 0, 64);
strcpy(s1, "\\texttt{");
... | static void tex_xtab_heading(const Xtab *tab, PRN *prn) {
char s1[9 + VNAMELEN * 2] = {0};
char s2[9 + VNAMELEN * 2] = {0};
const char *src;
char *targ;
int i, j, k;
strcpy(s1, "\\texttt{");
strcpy(s2, "\\texttt{");
for (k = 0; k < 2; k++) {
targ = k == 0 ? s1 : s2;
src = k == 0 ? tab->rvarnam... | tex_xtab_heading | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int texprint(MODEL *pmod, const DATASET *dset, const char *fname,
gretlopt opt) {
int err;
int eqn;
int doc;
PRN *prn;
unsigned long v11;
v11 = __readfsqword(0x28u);
eqn = opt & 0x10;
doc = opt & 0x4000;
err = 0;
if ((pmod->ci == 64 || pmod->ci == 104) &&
gretl_model_get_data(pmo... | int texprint(MODEL *pmod, const DATASET *dset, const char *fname,
gretlopt opt) {
PRN *prn;
int eqn = (opt & OPT_E);
int doc = (opt & OPT_O);
int err = 0;
if (RQ_SPECIAL_MODEL(pmod)) {
return E_NOTIMP;
}
prn = make_tex_prn(fname, eqn, doc, &err);
if (!err) {
err = tex_print_model... | texprint | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int text_print_fit_resid(const FITRESID *fr, const DATASET *dset, PRN *prn) {
double v3;
double v4;
const char *v5;
const char *v6;
char *v7;
gretlopt fc_opt;
int t;
int anyast;
int err;
_BOOL4 ast;
_BOOL4 kstep;
int obslen;
int ywidth;
double yt;
double yf;
double et;
fc_opt = OPT_NO... | int text_print_fit_resid(const FITRESID *fr, const DATASET *dset, PRN *prn) {
gretlopt fc_opt = OPT_NONE;
int kstep = fr->method == FC_KSTEP;
int t, anyast = 0;
double yt, yf, et;
int ywidth;
int obslen;
int err = 0;
obslen = max_obs_marker_length(dset);
ywidth = fit_resid_head(fr, dset, obslen, prn)... | text_print_fit_resid | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int text_print_forecast(const FITRESID *fr, DATASET *dset, gretlopt opt,
PRN *prn) {
double v5;
char *v6;
unsigned int df;
char *v8;
char *v9;
char *v10;
int utf_width;
char *v12;
char *v13;
int v14;
char *v15;
int errpmax;
int ywidth;
int t;
int ta;
int err;
gr... | int text_print_forecast(const FITRESID *fr, DATASET *dset, gretlopt opt,
PRN *prn) {
int do_errs = (fr->sderr != NULL);
int obslen, pmax = fr->pmax;
int errpmax = fr->pmax;
int quiet = (opt & OPT_Q);
int ywidth;
double *maxerr = NULL;
double conf = 100 * (1 - fr->alpha);
double t... | text_print_forecast | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void text_print_model_confints(const CoeffIntervals *cf_0, PRN *prn) {
double v2;
char *v3;
int i;
double tail;
tail = cf_0->alpha / 2.0;
if (cf_0->asy)
pprintf(prn, "z(%g) = %.4f\n\n", tail, cf_0->t);
else
pprintf(prn, "t(%d, %g) = %.3f\n\n", cf_0->df, tail, cf_0->t);
v2 = (1.0 - cf_0->alpha) ... | void text_print_model_confints(const CoeffIntervals *cf, PRN *prn) {
double tail = cf->alpha / 2;
int i;
if (cf->asy) {
pprintf(prn, "z(%g) = %.4f\n\n", tail, cf->t);
} else {
pprintf(prn, "t(%d, %g) = %.3f\n\n", cf->df, tail, cf->t);
}
pprintf(prn,
_(" VARIABLE COEFFICIENT ... | text_print_model_confints | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void text_print_vmatrix(VMatrix *vmat, PRN *prn) {
int i;
int v3;
int j;
int m;
int ii;
int k;
int ka;
int fwidth;
int fields;
int nf;
int p;
int ij2;
int n;
int idx;
int idxa;
char *s;
fwidth = 14;
fields = 5;
if (vmat->ci != 19)
covhdr(prn);
if (vmat_maxlen(vmat) > 10) {
... | void text_print_vmatrix(VMatrix *vmat, PRN *prn) {
register int i, j;
int n, nf, li2, p, k, idx, ij2;
int maxlen = 0;
int fwidth = 14;
int fields = 5;
const char *s;
if (vmat->ci != CORR) {
covhdr(prn);
}
maxlen = vmat_maxlen(vmat);
if (maxlen > 10) {
fields = 4;
fwidth = 16;
}
fo... | text_print_vmatrix | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int textplot(const int *list, const DATASET *dset, gretlopt opt, PRN *prn) {
if ((opt & 0x40000) != 0)
return ascii_plot(list, dset, opt, prn);
if (*list > 1)
return ascii_scatter(list, dset, opt, prn);
return 15;
} | int textplot(const int *list, const DATASET *dset, gretlopt opt, PRN *prn) {
if (opt & OPT_S) {
return ascii_plot(list, dset, opt, prn);
} else if (list[0] < 2) {
return E_ARGS;
} else {
return ascii_scatter(list, dset, opt, prn);
}
} | textplot | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int theil_decomp(double *m, double MSE, const double *y, const double *f,
int T) {
int t;
int ta;
int err;
double Abar;
double Abara;
double Pbar;
double Pbara;
double sa;
double saa;
double sp_0;
double sp_0a;
double r;
double ra;
double da;
double dp;
err = 0;
if (M... | static int theil_decomp(double *m, double MSE, const double *y, const double *f,
int T) {
double da, dp;
double Abar, Pbar;
double sa, sp, r;
int t, err = 0;
if (MSE <= 0.0) {
m[0] = m[1] = m[2] = NADBL;
return E_DATA;
}
Abar = Pbar = 0.0;
for (t = 0; t < T; t++) {
... | theil_decomp | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int theil_forecast_plot(const int *plotlist, const DATASET *dset,
gretlopt opt) {
GptFlags flags;
const char *graph_name;
const char *v6;
char *v7;
int err;
int vx;
int vy;
FILE *fp;
gnuplot_info gi;
unsigned long v14;
v14 = __readfsqword(0x28u);
fp = 0;
err = 0;
gre... | int theil_forecast_plot(const int *plotlist, const DATASET *dset,
gretlopt opt) {
FILE *fp = NULL;
gnuplot_info gi;
int vx, vy;
int err = 0;
gretl_error_clear();
if (plotlist[0] != 2) {
return E_DATA;
}
err = gpinfo_init(&gi, opt | OPT_S, plotlist, NULL, dset);
if (err) ... | theil_forecast_plot | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double threef0(double a, double b, double c, double x, double *err) {
double n;
double a0;
double sum;
double t;
double ta;
double conv;
double conv1;
double max;
double maxa;
long z;
a0 = 1.0;
sum = 1.0;
n = 1.0;
max = 0.0;
conv = 1.0e38;
conv1 = 1.0e38;
do {
if (a == 0.0 || b ==... | double threef0(double a, double b, double c, double x, double *err) {
double n, a0, sum, t, conv, conv1;
double an, bn, cn, max, z;
an = a;
bn = b;
cn = c;
a0 = 1.0;
sum = 1.0;
n = 1.0;
t = 1.0;
max = 0.0;
conv = 1.0e38;
conv1 = conv;
do {
if (an == 0.0)
goto done;
if (bn == 0.... | threef0 | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int time_dummies_wald_test(panelmod_t *pan, MODEL *pmod) {
double *coeff;
int v4;
double *v5;
int v6;
char *v7;
double v8;
int err;
int i;
int j;
int di_0;
int dj;
int k;
int bigk;
gretl_matrix *vcv;
gretl_vector *b;
double x;
ModelTest *test;
unsigned long v20;
v20 = __readfsqwor... | static int time_dummies_wald_test(panelmod_t *pan, MODEL *pmod) {
gretl_matrix *vcv = NULL;
gretl_vector *b = NULL;
double x;
int i, j, k, bigk;
int di, dj;
int err;
if (pan->ntdum == 0) {
return 0;
}
k = pan->ntdum;
bigk = pmod->ncoeff;
if (pmod->vcv == NULL) {
err = makevcv(pmod, pmod... | time_dummies_wald_test | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int time_fit_plot(gnuplot_info *gi, const char *literal, const DATASET *dset) {
GptFlags flags;
const char *graph_name;
int err;
int t;
int yno;
gchar *fitline;
const double *yvar;
FILE *fp;
PRN *prn;
unsigned long v14;
v14 = __readfsqword(0x28u);
yno = gi->list[1];
yvar = dset->Z[yno];
fit... | static int time_fit_plot(gnuplot_info *gi, const char *literal,
const DATASET *dset) {
int yno = gi->list[1];
const double *yvar = dset->Z[yno];
gchar *fitline = NULL;
FILE *fp = NULL;
PRN *prn;
int t, err = 0;
if (gi->x == NULL) {
return E_DATA;
}
err = graph_list_adjus... | time_fit_plot | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int time_series_label_check(DATASET *dset, int reversed, char *skipstr,
int convert_pd, PRN *prn) {
char *v5;
char *v6;
char *v7;
int pd;
int extra_zero;
int s;
int savepd;
char *lbl1;
char *lbl2;
char *label;
char sub[3];
char year[5];
char format[8];
char altobs... | static int time_series_label_check(DATASET *dset, int reversed, char *skipstr,
int convert_pd, PRN *prn) {
char year[5], sub[3];
char format[8] = {0};
char *lbl1 = dset->S[0];
char *lbl2 = dset->S[dset->n - 1];
char *label;
int pd = -1;
*year = *sub = '\0';
label = re... | time_series_label_check | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int timecol_get_format(const DATASET *dset, int v, char **pfmt, int *q) {
if (!tconv_map.fmt)
return 0;
if (tconv_map.tname) {
if (!strcmp(dset->varname[v], tconv_map.tname)) {
*pfmt = (char *)*((_QWORD *)tconv_map.fmt + 1);
*q = tconv_map.m_means_q[1];
return 1;
} else if (*tconv_map.... | int timecol_get_format(const DATASET *dset, int v, char **pfmt, int *q) {
if (tconv_map.fmt == NULL) {
return 0;
} else if (tconv_map.tname == NULL) {
*pfmt = tconv_map.fmt[TCONV_FMT];
*q = tconv_map.m_means_q[TCONV_FMT];
return 1;
} else if (!strcmp(dset->varname[v], tconv_map.tname)) {
*p... | timecol_get_format | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void timeconv_map_destroy() {
if (tconv_map.colnames)
strings_array_free(tconv_map.colnames, tconv_map.ncols);
if (tconv_map.fmt)
strings_array_free(tconv_map.fmt, 2);
timeconv_map_init();
} | static void timeconv_map_destroy(void) {
if (tconv_map.colnames != NULL) {
strings_array_free(tconv_map.colnames, tconv_map.ncols);
}
if (tconv_map.fmt != NULL) {
strings_array_free(tconv_map.fmt, 2);
}
timeconv_map_init();
} | timeconv_map_destroy | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void timeconv_map_init() { timeconv_map_set(0, 0, 0, 0); } | static void timeconv_map_init(void) { timeconv_map_set(0, NULL, NULL, NULL); } | timeconv_map_init | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void timeconv_map_set(int ncols, char **colnames, char *tname, char **fmt) {
tconv_map.ncols = ncols;
tconv_map.colnames = colnames;
tconv_map.tname = tname;
tconv_map.fmt = fmt;
if (fmt) {
if (*fmt)
tconv_map.m_means_q[0] = format_uses_quarterly(*fmt);
if (fmt[1])
tconv_map.m_means_q[1] =... | static void timeconv_map_set(int ncols, char **colnames, char *tname,
char **fmt) {
tconv_map.ncols = ncols;
tconv_map.colnames = colnames;
tconv_map.tname = tname;
tconv_map.fmt = fmt;
if (fmt != NULL) {
if (fmt[TCONV_FMT] != NULL) {
tconv_map.m_means_q[TCONV_FMT] = fo... | timeconv_map_set | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int timefmt_useable(const DATASET *dset) {
_BOOL4 ok;
char *test;
tm t;
char datestr[24];
unsigned long v6;
v6 = __readfsqword(0x28u);
memset(&t, 0, sizeof(t));
ok = 0;
if (dset && dset->t2 - dset->t1 > 299)
return 0;
*__errno_location() = 0;
if (dset->S)
strcpy(datestr, dset->S[dset->t1]... | static int timefmt_useable(const DATASET *dset) {
char *test, datestr[OBSLEN];
struct tm t = {0};
int ok = 0;
if (sample_size(dset) > 300) {
return 0;
}
errno = 0;
if (dset->S != NULL) {
strcpy(datestr, dset->S[dset->t1]);
} else {
calendar_date_string(datestr, dset->t1, dset);
}
te... | timefmt_useable | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void timer_(double *ttime) { *ttime = (double)(int)clock() / 1000000.0; } | static void timer_(double *ttime) {
clock_t tim = clock();
*ttime = (double)tim / CLOCKS_PER_SEC;
} | timer_ | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void title_to_varname(PLOTGROUP *grp, const char *title) {
int len;
len = strlen(title);
if (len <= 15 && len == gretl_namechar_spn(title))
strcpy(grp->plots->varname, title);
} | static void title_to_varname(PLOTGROUP *grp, const char *title) {
int len = strlen(title);
if (len < 16 && len == gretl_namechar_spn(title)) {
strcpy(grp->plots[0].varname, title);
}
} | title_to_varname | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *tmp_matrix_from_series(NODE *n, parser *p) {
int v2;
int T;
char *x;
gretl_matrix *m;
if (p->dset)
v2 = p->dset->t2 - p->dset->t1 + 1;
else
v2 = 0;
T = v2;
x = n->v.str;
m = gretl_matrix_alloc(v2, 1);
if (m)
memcpy(m->val, &x[8 * p->dset->t1], 8LL * T);
else
p->err =... | static gretl_matrix *tmp_matrix_from_series(NODE *n, parser *p) {
int T = sample_size(p->dset);
const double *x = n->v.xvec;
gretl_matrix *m = NULL;
m = gretl_column_vector_alloc(T);
if (m == NULL) {
p->err = E_ALLOC;
} else {
memcpy(m->val, x + p->dset->t1, T * sizeof *x);
}
return m;
} | tmp_matrix_from_series | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
MODEL *tobit_driver(MODEL *__return_ptr retstr, const int *list, DATASET *dset,
gretlopt opt, PRN *prn) {
int err;
double llim;
double rlim;
MODEL model;
unsigned long v13;
v13 = __readfsqword(0x28u);
llim = -1.0e300;
rlim = NAN;
err = 0;
if ((opt & 0x800) != 0) {
llim = get... | MODEL tobit_driver(const int *list, DATASET *dset, gretlopt opt, PRN *prn) {
MODEL model;
double llim = -1.0e300;
double rlim = NADBL;
int err = 0;
if (opt & OPT_L) {
llim = get_optval_double(TOBIT, OPT_L, &err);
if (!err && na(llim)) {
err = E_INVARG;
}
}
if (!err && (opt & OPT_M)) {... | tobit_driver | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
MODEL *tobit_model(MODEL *__return_ptr retstr, const int *list, double llim,
double rlim, DATASET *dset, gretlopt opt, PRN *prn) {
_BYTE v8[376];
PRN *prna;
gretlopt opta;
DATASET *dseta;
double rlima;
double llima;
const int *lista;
MODEL *v15;
MODEL (*tobit_estimate)(const int *, ... | MODEL tobit_model(const int *list, double llim, double rlim, DATASET *dset,
gretlopt opt, PRN *prn) {
MODEL (*tobit_estimate)(const int *, double, double, DATASET *, gretlopt,
PRN *);
MODEL tmod;
gretl_error_clear();
tobit_estimate = get_plugin_function("tobit_via_i... | tobit_model | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void too_long() {
char *v0;
v0 = gettext("Maximum length of command line (%d bytes) exceeded\n");
gretl_errmsg_sprintf(v0, 0x10000);
} | static void too_long(void) {
gretl_errmsg_sprintf(_("Maximum length of command line "
"(%d bytes) exceeded\n"),
MAXLINE);
} | too_long | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int top_of_loop(LOOPSET *loop, DATASET *dset) {
char *v2;
int err;
unsigned long v5;
v5 = __readfsqword(0x28u);
err = 0;
loop->iter = 0;
if (loop->eachname[0]) {
err = loop_list_refresh(loop, dset);
} else if (loop->type == 2) {
loop->init.val = controller_get_val(&loop->init, loop, dset, &err)... | static int top_of_loop(LOOPSET *loop, DATASET *dset) {
int err = 0;
loop->iter = 0;
if (loop->eachname[0] != '\0') {
err = loop_list_refresh(loop, dset);
} else if (loop->type == INDEX_LOOP) {
loop->init.val = controller_get_val(&loop->init, loop, dset, &err);
} else if (loop->type == FOR_LOOP) {
... | top_of_loop | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int tramo_linearize_series(const double *x, double *y, DATASET *dset) {
char *v4;
int t1;
int t2;
int err;
int T;
int save_t1;
int save_t2;
int (*linearize_series)(const double *, double *, const DATASET *);
unsigned long v13;
v13 = __readfsqword(0x28u);
t1 = dset->t1;
t2 = dset->t2;
err = 0;... | int tramo_linearize_series(const double *x, double *y, DATASET *dset) {
int (*linearize_series)(const double *, double *, const DATASET *);
int t1 = dset->t1;
int t2 = dset->t2;
int T, err = 0;
series_adjust_sample(x, &t1, &t2);
T = t2 - t1 + 1;
if (T < 8) {
return E_TOOFEW;
} else if (T > 600) {
... | tramo_linearize_series | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int transcribe_VAR_models(GRETL_VAR *var, const DATASET *dset,
const gretl_matrix *XTX) {
int rows;
int v5;
int v6;
int df;
double sigma;
int i;
int j;
int err;
int N;
_BOOL4 ecm;
int jmax;
int yno;
char **params;
MODEL *pmod;
N = dset->n;
ecm = var->ci == 138;... | int transcribe_VAR_models(GRETL_VAR *var, const DATASET *dset,
const gretl_matrix *XTX) {
MODEL *pmod;
char **params = NULL;
int yno, N = dset->n;
int ecm = (var->ci == VECM);
double x;
int i, j, jmax;
int err = 0;
params = strings_array_new_with_length(var->ncoeff, VNAMELEN);... | transcribe_VAR_models | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int transcribe_array(double *targ, const double *src, const DATASET *dset) {
int v3;
int t;
int n;
n = 0;
for (t = dset->t1; t <= dset->t2; ++t) {
if (fabs(src[t]) <= 1.797693134862316e308) {
v3 = n++;
targ[v3] = src[t];
}
}
return n;
} | int transcribe_array(double *targ, const double *src, const DATASET *dset) {
int t, n = 0;
for (t = dset->t1; t <= dset->t2; t++) {
if (!na(src[t])) {
targ[n++] = src[t];
}
}
return n;
} | transcribe_array | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int transcribe_array_factorized(PLOTGROUP *grp, int i, const DATASET *dset) {
int v3;
int t;
int n;
const double *y;
const double *d;
y = dset->Z[*((int *)grp->list + 1)];
d = dset->Z[*((int *)grp->list + 2)];
n = 0;
for (t = dset->t1; t <= dset->t2; ++t) {
if (d[t] == grp->dvals->val[i] && fabs(... | static int transcribe_array_factorized(PLOTGROUP *grp, int i,
const DATASET *dset) {
const double *y = dset->Z[grp->list[1]];
const double *d = dset->Z[grp->list[2]];
int t, n = 0;
for (t = dset->t1; t <= dset->t2; t++) {
if (d[t] == grp->dvals->val[i] && !na(y[t])) {... | transcribe_array_factorized | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void transcribe_cols_16(gretl_matrix *M, const gretl_matrix *S,
const int *cslice, int sscalar) {
complex_double *z;
double real;
double imag;
complex_double *v7;
int i;
int ia;
int j;
int ja;
int nr;
int mcol;
complex_double *zsrc;
double *xsrc;
complex_double *ztarg;
... | static void transcribe_cols_16(gretl_matrix *M, const gretl_matrix *S,
const int *cslice, int sscalar) {
int i, j, mcol, nr = M->rows;
if (sscalar) {
double complex z = S->is_complex ? S->z[0] : S->val[0];
for (j = 1; j <= cslice[0]; j++) {
mcol = cslice[j] - 1;
... | transcribe_cols_16 | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void transcribe_cols_8(gretl_matrix *M, const gretl_matrix *S,
const int *cslice, int sscalar) {
int i;
int j;
int ja;
int nr;
int mcol;
double *xsrc;
nr = M->rows;
if (sscalar) {
for (j = 1; j <= *cslice; ++j) {
mcol = cslice[j] - 1;
for (i = 0; i < nr; ++i)
... | static void transcribe_cols_8(gretl_matrix *M, const gretl_matrix *S,
const int *cslice, int sscalar) {
int i, j, mcol, nr = M->rows;
if (sscalar) {
for (j = 1; j <= cslice[0]; j++) {
mcol = cslice[j] - 1;
for (i = 0; i < nr; i++) {
gretl_matrix_set(M, i, mcol... | transcribe_cols_8 | 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.