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 destroy_working_model(MODEL *model) {
if (model)
gretl_model_free_on_exit(model);
} | void destroy_working_model(MODEL *model) {
if (model != NULL) {
gretl_model_free_on_exit(model);
}
} | destroy_working_model | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double det_22(const double *a, int *err) {
double d;
d = a[3] * *a - a[2] * a[1];
if (fabs(d) > 1.797693134862316e308)
*err = 35;
return d;
} | static double det_22(const double *a, int *err) {
double d = a[0] * a[3] - a[1] * a[2];
if (na(d)) {
*err = E_NAN;
}
return d;
} | det_22 | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double det_33(const double *a, int *err) {
double d;
d = a[5] * (a[6] * a[1]) + a[2] * (a[3] * a[7]) + a[8] * (*a * a[4]) -
*a * a[7] * a[5] - a[3] * a[1] * a[8] - a[2] * (a[6] * a[4]);
if (fabs(d) > 1.797693134862316e308)
*err = 35;
return d;
} | static double det_33(const double *a, int *err) {
double d = a[0] * a[4] * a[8] - a[0] * a[7] * a[5] + a[3] * a[7] * a[2] -
a[3] * a[1] * a[8] + a[6] * a[1] * a[5] - a[6] * a[4] * a[2];
if (na(d)) {
*err = E_NAN;
}
return d;
} | det_33 | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int detach_loop_from_function(void *ptr) {
int i;
ufunc *u;
fncall *call;
call = current_function_call();
u = 0;
if (call)
u = call->fun;
if (!u)
return 2;
for (i = 0; i < u->n_lines; ++i) {
if (ptr == u->lines[i].loop) {
u->lines[i].loop = 0;
return 0;
}
}
return 0;
} | int detach_loop_from_function(void *ptr) {
fncall *call = current_function_call();
ufunc *u = NULL;
int err = 0;
if (call != NULL) {
u = call->fun;
}
if (u == NULL) {
return E_DATA;
} else {
int i;
for (i = 0; i < u->n_lines; i++) {
if (u->lines[i].loop == ptr) {
#if LSDEBUG || GL... | detach_loop_from_function | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int detect_blas_via_ldd() {
gint status;
int variant;
gchar *sout;
gchar *errout;
GError *gerr;
gchar *prog;
gchar *argv[3];
unsigned long v8;
v8 = __readfsqword(0x28u);
sout = 0;
errout = 0;
status = 0;
gerr = 0;
variant = 0;
prog = (gchar *)g_strdup("/usr/bin/gretlcli");
argv[0] = "ld... | static int detect_blas_via_ldd(void) {
gchar *prog;
gchar *sout = NULL;
gchar *errout = NULL;
gint status = 0;
GError *gerr = NULL;
int variant = 0;
#ifdef OS_OSX
gchar *argv[4];
prog = g_strdup("gretlcli");
argv[0] = "otool";
argv[1] = "-L";
argv[2] = prog;
argv[3] = NULL;
#else
gchar *argv[... | detect_blas_via_ldd | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
GretlFileType detect_filetype(char *fname, gretlopt opt) {
GretlFileType ftype;
const char *ext;
const char *exta;
ext = get_filename_extension(fname);
ftype = GRETL_UNRECOGNIZED;
if (ext) {
if (!strcmp(ext, ".inp")) {
ftype = GRETL_SCRIPT;
} else if (!strcmp(ext, ".gretl")) {
ftype = g... | GretlFileType detect_filetype(char *fname, gretlopt opt) {
const char *ext = get_filename_extension(fname);
GretlFileType ftype = GRETL_UNRECOGNIZED;
if (ext != NULL) {
if (!strcmp(ext, ".inp")) {
ftype = GRETL_SCRIPT;
} else if (!strcmp(ext, ".gretl")) {
if (gretl_is_pkzip_file(fname)) {
... | detect_filetype | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int determine_csv_matches(const char *fname, joinspec *jspec, PRN *prn) {
char *v3;
int v4;
gretlopt opt;
int nv;
int nmatch;
int i;
int err_0;
int j;
int err;
char **vnames;
GPatternSpec *pspec;
unsigned long v15;
v15 = __readfsqword(0x28u);
opt = OPT_NONE;
vnames = 0;
nv = 0;
err = ... | static int determine_csv_matches(const char *fname, joinspec *jspec, PRN *prn) {
gretlopt opt = OPT_NONE;
char **vnames = NULL;
int nv = 0;
int err = 0;
err = probe_csv(fname, &vnames, &nv, &opt);
if (!err) {
GPatternSpec *pspec;
int nmatch = 0;
int i, err = 0;
pspec = g_pattern_spec_new(... | determine_csv_matches | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int determine_gdt_matches(const char *fname, joinspec *jspec, int **plist,
int *addvars, int *omm, PRN *prn) {
int nv;
int ns;
int err;
int i;
int j;
int match;
char **vnames;
int *vlist;
char **S;
GPatternSpec *pspec;
unsigned long v21;
v21 = __readfsqword(0x28u);
v... | static int determine_gdt_matches(const char *fname, joinspec *jspec,
int **plist, int *addvars, int *omm,
PRN *prn) {
char **vnames = NULL;
int nv = 0;
int err = 0;
err = gretl_read_gdt_varnames(fname, &vnames, &nv);
if (!err) {
GPatternS... | determine_gdt_matches | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int determine_numeric_type(char *formula, DATASET *dset, PRN *prn) {
int err;
GretlType out_t;
err = generate(formula, dset, GRETL_TYPE_ANY, OPT_P, prn);
if (!err) {
out_t = genr_get_last_output_type();
if (out_t != GRETL_TYPE_INT && out_t != GRETL_TYPE_DOUBLE &&
out_t != GRETL_TYPE_SERIES && o... | static int determine_numeric_type(char *formula, DATASET *dset, PRN *prn) {
GretlType out_t;
int err;
err = generate(formula, dset, GRETL_TYPE_ANY, OPT_P, prn);
if (!err) {
out_t = genr_get_last_output_type();
if (!NUMERIC_TYPE(out_t)) {
err = E_TYPES;
}
}
return err;
} | determine_numeric_type | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dgeev_eigvecs_alloc(gretl_matrix *m, gretl_matrix **pev, gretl_matrix **pec,
int n) {
int mrc;
int dim;
gretl_matrix *ev;
gretl_matrix *ec;
ev = 0;
if (pev) {
mrc = m->rows * m->cols;
dim = n * n;
if (m->is_complex && mrc == dim) {
m->cols = n;
m->rows = ... | static int dgeev_eigvecs_alloc(gretl_matrix *m, gretl_matrix **pev,
gretl_matrix **pec, int n) {
gretl_matrix *ev = NULL;
gretl_matrix *ec = NULL;
if (pev != NULL) {
int mrc = m->rows * m->cols;
int dim = n * n;
if (m->is_complex && mrc == dim) {
m->rows = m->co... | dgeev_eigvecs_alloc | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void dgeev_eigvecs_transcribe(gretl_matrix *targ, gretl_matrix *src, double *wr,
double *wi) {
complex_double *v4;
double v5;
complex_double *v6;
complex_double *v7;
int i;
int j;
int n;
_BOOL4 isreal;
double re;
n = src->rows;
for (j = 0; j < n; ++j) {
isreal = ... | static void dgeev_eigvecs_transcribe(gretl_matrix *targ, gretl_matrix *src,
double *wr, double *wi) {
double re, im;
int i, j, isreal;
int n = src->rows;
for (j = 0; j < n; j++) {
isreal = (wi[j] == 0);
for (i = 0; i < n; i++) {
re = gretl_matrix_get(src, i, j... | dgeev_eigvecs_transcribe | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double dh_b2_to_z2(double b1, double b2, double n) {
double z2;
double alpha;
double chi;
alpha = b1 * ((n + n + n * n - 5.0) * ((n - 7.0) * (n + 5.0) * (n + 7.0)) /
(6.0 * ((15.0 * n + n * n - 4.0) * ((n - 3.0) * (n + 1.0))))) +
(27.0 * n + n * n - 70.0) * ((n - 2.0) * (n + 5.0) * (n... | static double dh_b2_to_z2(double b1, double b2, double n) {
double d, a, c, k, alpha, chi, z2;
double n2 = n * n;
d = (n - 3) * (n + 1) * (n2 + 15 * n - 4.0);
a = ((n - 2) * (n + 5) * (n + 7) * (n2 + 27 * n - 70.0)) / (6.0 * d);
c = ((n - 7) * (n + 5) * (n + 7) * (n2 + 2 * n - 5.0)) / (6.0 * d);
k = ((n + ... | dh_b2_to_z2 | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double dh_root_b1_to_z1(double rb1, double n) {
double v2;
double v3;
double v4;
double v5;
double w2;
double d;
double y;
v2 = (n + 3.0) * ((27.0 * n + n * n - 70.0) * 3.0 * (n + 1.0)) /
((n + 9.0) * ((n - 2.0) * (n + 5.0) * (n + 7.0)));
w2 = sqrt(v2 - 1.0 + v2 - 1.0) - 1.0;
v3 = sqrt(w2);
... | static double dh_root_b1_to_z1(double rb1, double n) {
double b, w2, d, y, z1;
b = 3.0 * (n * n + 27 * n - 70) * (n + 1) * (n + 3) /
((n - 2) * (n + 5) * (n + 7) * (n + 9));
w2 = -1.0 + sqrt(2 * (b - 1));
d = 1.0 / sqrt(log(sqrt(w2)));
y = rb1 *
sqrt(((w2 - 1.0) / 2.0) * ((n + 1.0) * (n + 3.0)) ... | dh_root_b1_to_z1 | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int diag_jacobi(int n, double *d, double *e, double *z) {
double v5;
double v6;
double v7;
double v8;
double v9;
int j;
int ja;
int k;
int l;
int m;
int ii;
int iia;
int err;
int i;
int ia;
double c;
double g;
double ga;
double gb;
double p;
double pa;
double pb;
double pc;... | static int diag_jacobi(int n, double *d, double *e, double *z) {
double b, c, f, g;
double p, r, s;
int j, k, l, m = 0;
int maxiter = 30;
int i, ii, mml;
int err = 0;
if (n == 1) {
return 0;
}
e[n - 1] = 0.0;
errno = 0;
for (l = 1; l <= n; l++) {
j = 0;
for (;;) {
for (m = l;... | diag_jacobi | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void diaginv(const double *xpx, double *tmp, double *diag, int nv) {
int kk;
int l;
int m;
int k;
int i;
int j;
int ja;
double da;
double d;
double db;
double e;
kk = 0;
for (l = 0; l < nv - 1; ++l) {
da = xpx[kk];
tmp[l] = da;
e = da * da;
m = 0;
if (l > 0) {
for (j... | static void diaginv(const double *xpx, double *tmp, double *diag, int nv) {
int kk, l, m, k, i, j;
double d, e;
kk = 0;
for (l = 0; l < nv - 1; l++) {
d = xpx[kk];
tmp[l] = d;
e = d * d;
m = 0;
if (l > 0) {
for (j = 1; j <= l; j++) {
m += nv - j;
}
}
for (i = l ... | diaginv | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int diff_series(const double *x, double *y, int f, const DATASET *dset) {
int pd;
double v5;
int t;
int t1;
int k;
if (f == 297)
pd = dset->pd;
else
pd = 1;
k = pd;
t1 = dset->t1;
if (t1 < pd)
t1 = pd;
for (t = t1; t <= dset->t2; ++t) {
if ((!dset || dset->structure != 2 || t % ds... | int diff_series(const double *x, double *y, int f, const DATASET *dset) {
int k = (f == F_SDIFF) ? dset->pd : 1;
int t, t1 = dset->t1;
if (t1 < k) {
t1 = k;
}
for (t = t1; t <= dset->t2; t++) {
if (dataset_is_panel(dset) && t % dset->pd == 0) {
continue;
}
if (na(x[t]) || na(x[t - k])... | diff_series | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int diff_test(const int *list, const DATASET *dset, gretlopt opt, PRN *prn) {
char *v4;
gretlopt opta;
int err;
int v1;
int v2;
double *x;
double *y;
double result[4];
opta = opt;
*(_QWORD *)&result[3] = __readfsqword(0x28u);
result[0] = 0.0;
result[1] = 0.0;
err = 0;
if (*list == 2) {
... | int diff_test(const int *list, const DATASET *dset, gretlopt opt, PRN *prn) {
const double *x, *y;
double result[2] = {0};
int v1, v2;
int err = 0;
if (list[0] != 2) {
pputs(prn, _("This command requires two variables\n"));
return E_DATA;
}
v1 = list[1];
v2 = list[2];
x = dset->Z[v1];
y =... | diff_test | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void diff_test_header(int v1, int v2, const DATASET *dset, PRN *prn) {
char *v4;
char *v5;
char *v6;
pputc(prn, 10);
v4 = dset->varname[v2];
v5 = dset->varname[v1];
v6 = gettext("Test for difference between %s and %s");
pprintf(prn, v6, v5, v4);
} | static void diff_test_header(int v1, int v2, const DATASET *dset, PRN *prn) {
pputc(prn, '\n');
pprintf(prn, _("Test for difference between %s and %s"), dset->varname[v1],
dset->varname[v2]);
} | diff_test_header | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int diffgenr(int v, int ci, DATASET *dset) {
if (ci != 25 && ci != 66 && ci != 115)
return -1;
if (ci != 115 ||
dset && (dset->structure == 1 || dset->structure == 5) && dset->pd > 1)
return get_transform(ci, v, 0, 0.0, dset, 29, dset->v, 0);
return -1;
} | int diffgenr(int v, int ci, DATASET *dset) {
if (ci != DIFF && ci != LDIFF && ci != SDIFF) {
return -1;
}
if (ci == SDIFF && !dataset_is_seasonal(dset)) {
return -1;
}
return get_transform(ci, v, 0, 0.0, dset, VNAMELEN - 3, dset->v, NULL);
} | diffgenr | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void diffuse_Pini(kalman *K) {
int i;
gretl_matrix_zero(K->P0);
for (i = 0; i < K->r; ++i)
K->P0->val[i * K->P0->rows + i] = 10000000.0;
} | static void diffuse_Pini(kalman *K) {
int i;
gretl_matrix_zero(K->P0);
for (i = 0; i < K->r; i++) {
gretl_matrix_set(K->P0, i, i, kappa);
}
} | diffuse_Pini | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double digamma(double x) {
double ret;
ret = psi(x);
if (get_cephes_errno())
return NAN;
return ret;
} | double digamma(double x) {
double ret = psi(x);
if (get_cephes_errno()) {
ret = NADBL;
}
return ret;
} | digamma | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dinfo_sanity_check(const DATEINFO *dinfo) {
char *v1;
_BOOL4 err;
if (dinfo->info < 0x16Eu) {
if (dinfo->day < 0x16Eu) {
if (dinfo->year <= 0xBB8u) {
if (dinfo->info == 52)
err = dinfo->month > 0x34u;
else
err = dinfo->month > 0xCu;
} else {
err = 1... | static int dinfo_sanity_check(const DATEINFO *dinfo) {
int err = 0;
if (dinfo->info < 0 || dinfo->info > 365) {
err = 1;
} else if (dinfo->day < 0 || dinfo->day > 365) {
err = 1;
} else if (dinfo->year < 0 || dinfo->year > 3000) {
err = 1;
} else if (dinfo->info == 52) {
if (dinfo->month < 0... | dinfo_sanity_check | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dinfo_to_sinfo(const DATEINFO *dinfo, SERIESINFO *sinfo,
const char *varname, const char *comment, int n,
int offset) {
int startfrac;
int err;
char pdstr[8];
unsigned long v14;
v14 = __readfsqword(0x28u);
startfrac = 0;
*(_QWORD *)pdstr = 0;
err = 0;
if (din... | static int dinfo_to_sinfo(const DATEINFO *dinfo, SERIESINFO *sinfo,
const char *varname, const char *comment, int n,
int offset) {
int startfrac = 0;
char pdstr[8] = {0};
int err = 0;
if (dinfo_sanity_check(dinfo)) {
return 1;
}
sprintf(sinfo->stobs,... | dinfo_to_sinfo | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dir_is_writable(const char *dirname) {
_BOOL4 ok;
gchar *test;
ok = 0;
if (!gretl_mkdir(dirname)) {
test = (gchar *)g_strdup_printf("%s%c%s", dirname, 47, "wtest");
if (test) {
ok = gretl_test_fopen(test, "w") == 0;
g_free(test);
}
}
return ok;
} | static int dir_is_writable(const char *dirname) {
int ok = 0;
if (gretl_mkdir(dirname) == 0) {
gchar *test = g_strdup_printf("%s%c%s", dirname, SLASH, "wtest");
if (test != NULL) {
ok = (gretl_test_fopen(test, "w") == 0);
g_free(test);
}
}
return ok;
} | dir_is_writable | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int discard_model_data_item(MODEL *pmod, const char *key, int free_data) {
int i;
int ia;
int targ;
int err;
int n_items;
model_data_item *junk;
model_data_item **items;
junk = 0;
targ = 0;
err = 0;
for (i = 0; i < pmod->n_data_items; ++i) {
if (!strcmp(key, pmod->data_items[i]->key)) {
... | static int discard_model_data_item(MODEL *pmod, const char *key,
int free_data) {
model_data_item *junk = NULL;
int i, targ = 0;
int err = 0;
for (i = 0; i < pmod->n_data_items; i++) {
if (!strcmp(key, pmod->data_items[i]->key)) {
junk = pmod->data_items[i];
t... | discard_model_data_item | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double discrete_minskip(FreqDist *freq) {
int i;
double ms;
ms = freq->midpt[1] - *freq->midpt;
for (i = 2; i < freq->numbins; ++i) {
if (ms > freq->midpt[i] - freq->midpt[i - 1])
ms = freq->midpt[i] - freq->midpt[i - 1];
}
return ms;
} | static double discrete_minskip(FreqDist *freq) {
double s, ms = freq->midpt[1] - freq->midpt[0];
int i;
for (i = 2; i < freq->numbins; i++) {
s = freq->midpt[i] - freq->midpt[i - 1];
if (s < ms) {
ms = s;
}
}
return ms;
} | discrete_minskip | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void display_model_data_items(const MODEL *pmod) {
int i;
int n;
model_data_item *item;
n = pmod->n_data_items;
fprintf(stderr, "model has %d data items\n", n);
for (i = 0; i < n; ++i) {
item = pmod->data_items[i];
fprintf(stderr, "%d '%s': ", i, item->key);
if (item->type == 2) {
fprintf... | void display_model_data_items(const MODEL *pmod) {
model_data_item *item;
int i, n = pmod->n_data_items;
fprintf(stderr, "model has %d data items\n", n);
for (i = 0; i < n; i++) {
item = pmod->data_items[i];
fprintf(stderr, "%d '%s': ", i, item->key);
if (item->type == GRETL_TYPE_INT) {
fpri... | display_model_data_items | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dist_code_from_string(const char *s) {
int i;
int ia;
distmap dmap[23];
char test[8];
unsigned long v6;
v6 = __readfsqword(0x28u);
qmemcpy(dmap, &unk_3A77E0, sizeof(dmap));
if (!strcmp(s, "D"))
return 16;
for (i = 0; i <= 7 && s[i]; ++i)
test[i] = tolower(s[i]);
test[i] = 0;
for (ia =... | int dist_code_from_string(const char *s) {
struct distmap dmap[] = {
{D_UNIFORM, "u"}, {D_UDISCRT, "i"}, {D_NORMAL, "z"},
{D_STUDENT, "t"}, {D_CHISQ, "x"}, {D_SNEDECOR, "f"},
{D_BINOMIAL, "b"}, {D_POISSON, "p"}, {D_EXPON, "exp"},
{D_WEIBULL, "w"}, {D_GAMMA, "g"}, {D_GED, "e"... | dist_code_from_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int do_IPS_test(double tbar, int n, const int *Ti, int order, const int *Oi,
gretlopt opt, PRN *prn) {
int v7;
double v8;
double v9;
double v10;
double v11;
double v13;
double v14;
int Tmin;
int Tmax;
int i;
int ia;
int ib;
int err;
double E;
double V;
double Etbar;
dou... | static int do_IPS_test(double tbar, int n, const int *Ti, int order,
const int *Oi, gretlopt opt, PRN *prn) {
int (*get_IPS_critvals)(int, int, int, double *);
int (*IPS_tbar_moments)(int, double *, double *);
int (*IPS_tbar_rho_moments)(int, int, int, double *, double *);
int Tmin = Ti[1... | do_IPS_test | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void do_X_prime_diag(const gretl_matrix *X, const gretl_vector *D,
gretl_matrix *R) {
int i;
int j;
for (i = 0; i < R->rows; ++i) {
for (j = 0; j < R->cols; ++j)
R->val[j * R->rows + i] = D->val[j] * X->val[i * X->rows + j];
}
} | static void do_X_prime_diag(const gretl_matrix *X, const gretl_vector *D,
gretl_matrix *R) {
double x;
int i, j;
for (i = 0; i < R->rows; i++) {
for (j = 0; j < R->cols; j++) {
x = gretl_matrix_get(X, j, i);
gretl_matrix_set(R, i, j, x * D->val[j]);
}
}
} | do_X_prime_diag | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void do_acf_bartlett(gretl_matrix *PM, int i, int T, double ssr,
const double *z) {
double v5;
int j;
for (j = 0; j < PM->cols; ++j) {
v5 = z[j];
PM->val[j * PM->rows + i] = sqrt(1.0 / (double)T * (ssr + ssr + 1.0)) * v5;
}
} | static void do_acf_bartlett(gretl_matrix *PM, int i, int T, double ssr,
const double *z) {
double b;
int j;
for (j = 0; j < PM->cols; j++) {
b = z[j] * sqrt((1.0 / T) * (1 + 2 * ssr));
gretl_matrix_set(PM, i, j, b);
}
} | do_acf_bartlett | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void do_array_append(parser *p) {
_BOOL4 v1;
GretlType atype;
int copy;
char *ptr;
gretl_array *A;
NODE *rhs;
rhs = p->ret;
ptr = 0;
A = (gretl_array *)gen_get_lhs_var(p, GRETL_TYPE_ARRAY);
if (A) {
atype = gretl_array_get_content_type(A);
if (atype == GRETL_TYPE_STRING && rhs->t == 60) {
... | static void do_array_append(parser *p) {
gretl_array *A = NULL;
GretlType atype;
NODE *rhs = p->ret;
void *ptr = NULL;
A = gen_get_lhs_var(p, GRETL_TYPE_ARRAY);
if (A == NULL) {
p->err = E_DATA;
return;
}
atype = gretl_array_get_content_type(A);
if (atype == GRETL_TYPE_STRING && rhs->t == S... | do_array_append | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void do_array_subtract(parser *p) {
NODE *rhs;
gretl_array *A;
rhs = p->ret;
A = (gretl_array *)gen_get_lhs_var(p, GRETL_TYPE_ARRAY);
if (A) {
if (gretl_array_get_type(A) == GRETL_TYPE_STRINGS && rhs->t == 60)
p->err = gretl_array_drop_string(A, rhs->v.str);
else
p->err = 37;
} else {
... | static void do_array_subtract(parser *p) {
gretl_array *A;
NODE *rhs = p->ret;
A = gen_get_lhs_var(p, GRETL_TYPE_ARRAY);
if (A == NULL) {
p->err = E_DATA;
} else if (gretl_array_get_type(A) == GRETL_TYPE_STRINGS && rhs->t == STR) {
p->err = gretl_array_drop_string(A, rhs->v.str);
} else {
p->er... | do_array_subtract | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *do_assert(NODE *l, NODE *r, parser *p) {
char *str;
char *v5;
char *v6;
char *v7;
int assert_val;
NODE *ret;
ret = get_aux_node(p, 54, 0, 0);
assert_val = libset_get_int(GRETL_ASSERT);
if (ret) {
if (l->v.xval == 0.0 || fabs(l->v.xval) > 1.797693134862316e308) {
if (assert_val) {
... | static NODE *do_assert(NODE *l, NODE *r, parser *p) {
NODE *ret = aux_scalar_node(p);
int assert_val = libset_get_int(GRETL_ASSERT);
if (ret == NULL) {
p->err = E_ALLOC;
return NULL;
}
if (l->v.xval != 0 && !na(l->v.xval)) {
ret->v.xval = 1;
} else if (assert_val == 0) {
ret->v.xval = 0;... | do_assert | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int do_biprobit_adjustment(MODEL *pmod, gretl_matrix *V) {
void (*biprobit_adj)(MODEL *, gretl_matrix *);
biprobit_adj = (void (*)(MODEL *, gretl_matrix *))get_plugin_function(
"biprobit_adjust_vcv");
if (!biprobit_adj)
return 11;
biprobit_adj(pmod, V);
return 0;
} | static int do_biprobit_adjustment(MODEL *pmod, gretl_matrix *V) {
void (*biprobit_adj)(MODEL *, gretl_matrix *);
biprobit_adj = get_plugin_function("biprobit_adjust_vcv");
if (biprobit_adj == NULL) {
return E_FOPEN;
} else {
(*biprobit_adj)(pmod, V);
return 0;
}
} | do_biprobit_adjustment | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void do_bundle_append(parser *p) {
gretl_bundle *br;
gretl_bundle *bl_0;
NODE *rhs;
br = 0;
rhs = p->ret;
bl_0 = (gretl_bundle *)gen_get_lhs_var(p, GRETL_TYPE_BUNDLE);
if (rhs->t == 58)
br = rhs->v.b;
if (bl_0 && br)
p->err = gretl_bundle_append(bl_0, br);
else
p->err = 37;
} | static void do_bundle_append(parser *p) {
gretl_bundle *bl = NULL;
gretl_bundle *br = NULL;
NODE *rhs = p->ret;
bl = gen_get_lhs_var(p, GRETL_TYPE_BUNDLE);
if (rhs->t == BUNDLE) {
br = rhs->v.b;
}
if (bl == NULL || br == NULL) {
p->err = E_TYPES;
} else {
p->err = gretl_bundle_append(bl, br... | do_bundle_append | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void do_choi_test(double ppv, double zpv, double lpv, int n, PRN *prn) {
char *v5;
double v6;
char *v7;
double v8;
char *v9;
double v10;
char *v11;
int tdf;
double P;
double Z;
double L;
P = -2.0 * ppv;
Z = zpv / sqrt((double)n);
tdf = 5 * n + 4;
L = sqrt(3.0 * (double)tdf /
((... | static void do_choi_test(double ppv, double zpv, double lpv, int n, PRN *prn) {
double P = -2 * ppv;
double Z = zpv / sqrt((double)n);
int tdf = 5 * n + 4;
double k = (3.0 * tdf) / (M_PI * M_PI * n * (5 * n + 2));
double L = sqrt(k) * lpv;
pprintf(prn, "%s\n", _("Choi meta-tests:"));
pprintf(prn, " %s(... | do_choi_test | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int do_command_by(CMD *cmd, DATASET *dset, PRN *prn) {
char *v4;
int rows;
char *v6;
char *v7;
int err;
int i;
int nvals;
int byvar;
int pos;
int single;
series_table *st;
int *list;
Summary *summ;
const char *byname;
gretl_matrix *xvals;
const double *x;
double xi;
double *rv;
con... | static int do_command_by(CMD *cmd, DATASET *dset, PRN *prn) {
const char *byname = get_optval_string(cmd->ci, OPT_B);
int byvar;
series_table *st = NULL;
gretl_matrix *xvals = NULL;
const double *x;
int *list = cmd->list;
int i, nvals = 0;
int single, err = 0;
if (dset == NULL || byname == NULL) {
... | do_command_by | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int do_compact_spread(DATASET *dset, int newpd) {
DATASET *v3;
long v4;
long v5;
long v6;
long v7;
char **varname;
long v9;
char *descrip;
char *restriction;
char *mapfile;
char *pangrps;
double panel_sd0;
int nv;
int err;
int startmaj;
int startmin;
int endmaj;
int endmin;
DATASET... | static int do_compact_spread(DATASET *dset, int newpd) {
DATASET *cset = NULL;
int nv = 0;
int err;
err = compact_spread_pd_check(dset->pd, newpd);
if (err) {
return err;
}
if (dated_daily_data(dset)) {
err = maybe_expand_daily_data(dset);
if (err) {
gretl_errmsg_set("Error expanding d... | do_compact_spread | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int do_compile_conditional(LOOPSET *loop, int j) {
int ret;
ret = 0;
if ((loop->cmds[j].ci == 57 || loop->cmds[j].ci == 31) &&
(loop->cmds[j].flags & 4) != 0 && (loop->cmds[j].flags & 8) != 0) {
return 1;
}
return ret;
} | static int do_compile_conditional(LOOPSET *loop, int j) {
int ret = 0;
if ((loop->cmds[j].ci == IF || loop->cmds[j].ci == ELIF) &&
loop_cmd_nodol(loop, j) && loop_cmd_nosub(loop, j)) {
ret = 1;
}
return ret;
} | do_compile_conditional | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int do_debug_command(ExecState *state, const char *param, gretlopt opt) {
int err;
err = incompatible_options(opt, OPT_Q | OPT_N | OPT_C);
if (err)
return err;
if ((opt & 0x2004) == 0)
return user_function_set_debug(param, (opt & 0x10000) == 0);
if ((state->flags & 0x10) != 0)
return 0;
gretl_e... | static int do_debug_command(ExecState *state, const char *param, gretlopt opt) {
int err = incompatible_options(opt, OPT_C | OPT_N | OPT_Q);
if (err) {
return err;
}
if (opt & (OPT_C | OPT_N)) {
if (!(state->flags & DEBUG_EXEC)) {
gretl_errmsg_set("Debugging is not in progress");
return E... | do_debug_command | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int do_debugging(ExecState *s) {
return s->cmd->ci > 0 && !s->cmd->context && !gretl_compiling_loop();
} | static int do_debugging(ExecState *s) {
return s->cmd->ci > 0 && !s->cmd->context && !gretl_compiling_loop();
} | do_debugging | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void do_declaration(parser *p) {
int i;
GretlType type;
int n;
char **S[2];
S[1] = (char **)__readfsqword(0x28u);
S[0] = 0;
n = check_declarations(S, p);
if (n) {
for (i = 0; i < n && !p->err; ++i) {
if (S[0][i]) {
if (p->targ == 55) {
p->err = dataset_add_NA_series(p->dset,... | static void do_declaration(parser *p) {
char **S = NULL;
int i, v, n;
n = check_declarations(&S, p);
if (n == 0) {
return;
}
for (i = 0; i < n && !p->err; i++) {
if (S[i] != NULL) {
if (p->targ == SERIES) {
p->err = dataset_add_NA_series(p->dset, 1);
if (!p->err) {
... | do_declaration | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int do_end_restrict(ExecState *s, DATASET *dset) {
int err;
gretlopt printopt;
GretlObjType otype;
gretlopt ropt;
gretlopt opt;
unsigned long v8;
v8 = __readfsqword(0x28u);
otype = gretl_restriction_get_type(s->rset);
ropt = gretl_restriction_get_options(s->rset);
opt = ropt | s->cmd->opt;
err = ... | static int do_end_restrict(ExecState *s, DATASET *dset) {
GretlObjType otype = gretl_restriction_get_type(s->rset);
gretlopt ropt = gretl_restriction_get_options(s->rset);
gretlopt opt = s->cmd->opt | ropt;
int err = 0;
if (opt & OPT_F) {
if (otype == GRETL_OBJ_VAR) {
s->var = gretl_restricted_vec... | do_end_restrict | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *do_errorif(NODE *l, NODE *r, parser *p) {
char *str;
const char *v4;
char *v5;
int fd;
const char *funcname;
NODE *ret;
unsigned long v11;
v11 = __readfsqword(0x28u);
ret = get_aux_node(p, 54, 0, 0);
fd = gretl_function_depth();
if (fd || gretl_mpi_initialized()) {
if (node_get_bool(l, ... | static NODE *do_errorif(NODE *l, NODE *r, parser *p) {
NODE *ret = aux_scalar_node(p);
int fd = gretl_function_depth();
if (fd == 0 && !gretl_mpi_initialized()) {
gretl_errmsg_sprintf("'%s': can only be used within a function", "errorif");
p->err = E_DATA;
} else {
int cond = node_get_bool(l, p, -1... | do_errorif | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int do_forecast(const char *str, DATASET *dset, gretlopt opt, PRN *prn) {
char *v5;
GretlObjType type;
void *ptr;
unsigned long v11;
v11 = __readfsqword(0x28u);
ptr = get_last_model(&type);
if (!ptr)
return 30;
if ((opt & 0x100000) != 0 && dset && dset->structure == 2) {
v5 = gettext("Forecast ... | int do_forecast(const char *str, DATASET *dset, gretlopt opt, PRN *prn) {
void *ptr;
GretlObjType type;
int err;
ptr = get_last_model(&type);
if (ptr == NULL) {
return E_BADSTAT;
}
if ((opt & OPT_U) && dataset_is_panel(dset)) {
gretl_errmsg_set(_("Forecast plot not implemented for panel data"));... | do_forecast | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *do_funcerr(NODE *n, parser *p) {
char *str;
const char *v3;
char *v4;
const char *funcname;
NODE *ret;
unsigned long v8;
v8 = __readfsqword(0x28u);
ret = get_aux_node(p, 54, 0, 0);
if (gretl_function_depth()) {
funcname = 0;
current_function_info(&funcname, 0);
str = n->v.str;
v... | static NODE *do_funcerr(NODE *n, parser *p) {
NODE *ret = aux_scalar_node(p);
if (gretl_function_depth() == 0) {
gretl_errmsg_set("funcerr: no function is executing");
p->err = E_DATA;
} else {
const char *funcname = NULL;
current_function_info(&funcname, NULL);
gretl_errmsg_sprintf(_("Error... | do_funcerr | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *do_getenv(NODE *l, int f, parser *p) {
NODE *aux_node;
int defined;
char *test;
NODE *ret;
char *estr;
double x;
unsigned long v11;
v11 = __readfsqword(0x28u);
if (f == 383)
aux_node = get_aux_node(p, 60, 0, 2);
else
aux_node = get_aux_node(p, 54, 0, 0);
ret = aux_node;
if (aux_no... | static NODE *do_getenv(NODE *l, int f, parser *p) {
NODE *ret = (f == F_GETENV) ? aux_string_node(p) : aux_scalar_node(p);
if (ret != NULL && starting(p)) {
int defined = 0;
char *estr;
estr = gretl_getenv(l->v.str, &defined, &p->err);
if (f == F_GETENV) {
ret->v.str = estr;
} else {
... | do_getenv | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void do_help_on_help(PRN *prn) {
char *v1;
const char *v2;
char *v3;
char *v4;
char *v5;
int i;
char j;
v1 = gettext("\nValid gretl commands are:\n");
pputs(prn, v1);
j = 1;
for (i = 1; i <= 146; ++i) {
if (i != 46 && i != 144) {
v2 = gretl_command_word(i);
pprintf(prn, "%-9s", v2... | static void do_help_on_help(PRN *prn) {
int i, j;
pputs(prn, _("\nValid gretl commands are:\n"));
j = 1;
for (i = 1; i < NC; i++) {
if (HIDDEN_COMMAND(i)) {
continue;
}
pprintf(prn, "%-9s", gretl_command_word(i));
if (j % 8 == 0) {
pputc(prn, '\n');
} else {
pputc(prn, ' '... | do_help_on_help | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int do_incr_decr(parser *p) {
double v1;
char *v2;
double x;
char *s;
if (p->lh.uv && p->lh.uv->type == GRETL_TYPE_DOUBLE) {
x = *(double *)p->lh.uv->ptr;
if (fabs(x) <= 1.797693134862316e308) {
if (p->op == 94)
v1 = 1.0;
else
v1 = -1.0;
*(double *)p->lh.uv->ptr = v1... | static int do_incr_decr(parser *p) {
if (p->lh.uv != NULL && p->lh.uv->type == GRETL_TYPE_DOUBLE) {
double x = uvar_get_scalar_value(p->lh.uv);
if (!na(x)) {
x += (p->op == INC) ? 1 : -1;
uvar_set_scalar_fast(p->lh.uv, x);
}
} else if (p->lh.uv != NULL && p->lh.uv->type == GRETL_TYPE_STRING... | do_incr_decr | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *do_irr(NODE *l, parser *p) {
int v2;
int v3;
int pd;
int n;
val *x;
NODE *ret;
ret = get_aux_node(p, 54, 0, 0);
if (ret && (p->flags & 2) != 0) {
x = 0;
pd = 1;
n = 0;
if (l->t == 54) {
n = 1;
x = &l->v;
} else if (l->t == 55) {
if (p->dset)
v2 = p->d... | static NODE *do_irr(NODE *l, parser *p) {
NODE *ret = aux_scalar_node(p);
if (ret != NULL && starting(p)) {
const double *x = NULL;
int pd = 1, n = 0;
if (l->t == NUM) {
n = 1;
x = &l->v.xval;
} else if (l->t == SERIES) {
n = sample_size(p->dset);
x = l->v.xvec + p->dset->t... | do_irr | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int do_matrix_scalar_cast(fn_arg *arg, fn_param *param) {
return real_add_scalar_arg(param, **((double **)arg->val.px + 1));
} | static int do_matrix_scalar_cast(fn_arg *arg, fn_param *param) {
gretl_matrix *m = arg->val.m;
return real_add_scalar_arg(param, m->val[0]);
} | do_matrix_scalar_cast | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int do_modprint(const char *mname, const char *names, gretlopt opt, PRN *prn) {
char *v5;
char *v6;
int rows;
short opta;
int err;
int free_parnames;
int nnames;
PrnFormat fmt;
int free_coef_se;
int ncoef;
gretl_matrix *addstats;
gretl_array *parnames;
const char *parstr;
const char **rnames... | int do_modprint(const char *mname, const char *names, gretlopt opt, PRN *prn) {
gretl_matrix *coef_se = NULL;
gretl_matrix *addstats = NULL;
gretl_array *parnames = NULL;
const char *parstr = NULL;
const char **rnames = NULL;
int free_coef_se = 0;
int free_parnames = 0;
int nnames = 0;
int ncoef = 0;
... | do_modprint | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int do_ordered(int ci, int ndum, int ymin, DATASET *dset, MODEL *pmod,
const int *list, gretlopt opt, PRN *prn) {
gretlopt v9;
int maxit;
int fncount;
int grcount;
int bs_maxit;
int i;
int bs_iter;
int use_newton;
int err;
int npar;
gretlopt maxopt;
double toler;
double *theta;
... | static int do_ordered(int ci, int ndum, int ymin, DATASET *dset, MODEL *pmod,
const int *list, gretlopt opt, PRN *prn) {
int maxit = 1000;
int fncount = 0;
int grcount = 0;
op_container *OC;
int i, npar;
double *theta = NULL;
double toler;
int bs_iter = 0;
int bs_maxit = 1000;
... | do_ordered | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int do_outfile_command(gretlopt opt, const char *fname, const DATASET *dset,
PRN *prn) {
char *v5;
char *v6;
const char *v7;
char *v8;
char *v9;
char *v10;
const char *v11;
char *v12;
gretlopt opta;
int err;
int erra;
int errb;
int backward;
int rlevel;
const char *s... | static int do_outfile_command(gretlopt opt, const char *fname,
const DATASET *dset, PRN *prn) {
static char savename[MAXLEN];
static int vparms[2];
const char *strvar = NULL;
const char *check = NULL;
int rlevel = 0;
int err = 0;
if (prn == NULL) {
return 0;
}
if (!... | do_outfile_command | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *do_panel_expand(NODE *l, parser *p) {
NODE *ret;
ret = aux_series_node(p);
if (ret && (p->flags & 2) != 0)
p->err = panel_expand(l->v.m, ret->v.xvec, OPT_NONE, p->dset);
return ret;
} | static NODE *do_panel_expand(NODE *l, parser *p) {
NODE *ret = aux_series_node(p);
if (ret != NULL && starting(p)) {
p->err = panel_expand(l->v.m, ret->v.xvec, OPT_NONE, p->dset);
}
return ret;
} | do_panel_expand | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *do_panel_shrink(NODE *l, int noskip, parser *p) {
NODE *ret;
ret = get_aux_node(p, 57, 0, 2);
if (ret && (p->flags & 2) != 0)
ret->v.str = (char *)panel_shrink(l->v.xvec, noskip, p->dset, &p->err);
return ret;
} | static NODE *do_panel_shrink(NODE *l, int noskip, parser *p) {
NODE *ret = aux_matrix_node(p);
if (ret != NULL && starting(p)) {
ret->v.m = panel_shrink(l->v.xvec, noskip, p->dset, &p->err);
}
return ret;
} | do_panel_shrink | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int do_pca(int *list, DATASET *dset, gretlopt opt, PRN *prn) {
int *lista;
int err;
int freelist;
VMatrix *cmat;
unsigned long v11;
lista = list;
v11 = __readfsqword(0x28u);
freelist = 0;
err = 0;
if (list && !*list)
return 0;
if (!list) {
lista = full_var_list(dset, 0);
freelist = 1;... | static int do_pca(int *list, DATASET *dset, gretlopt opt, PRN *prn) {
int freelist = 0;
int err = 0;
if (list != NULL && list[0] == 0) {
return 0;
}
if (list == NULL) {
list = full_var_list(dset, NULL);
freelist = 1;
}
if (list != NULL) {
VMatrix *cmat = NULL;
cmat = corrlist(PCA, ... | do_pca | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int do_pkg_command(const char *action, const char *pkgname, gretlopt opt,
ExecState *s, PRN *prn) {
PRN *v5;
int err;
err = 0;
if (!strcmp(action, "install"))
return install_function_package(pkgname, opt, s, prn);
if (!strcmp(action, "unload"))
return uninstall_function_package(pkg... | static int do_pkg_command(const char *action, const char *pkgname, gretlopt opt,
ExecState *s, PRN *prn) {
int err = 0;
if (!strcmp(action, "install")) {
err = install_function_package(pkgname, opt, s, prn);
} else if (!strcmp(action, "unload")) {
err = uninstall_function_packag... | do_pkg_command | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int do_plot_bounding_box() {
const char *v0;
int err;
FILE *fp;
v0 = gretl_plotfile();
fp = gretl_fopen(v0, "ab");
if (!fp)
return 11;
err = write_plot_bounding_box_request(fp);
fclose(fp);
return err;
} | static int do_plot_bounding_box(void) {
FILE *fp = gretl_fopen(gretl_plotfile(), "ab");
int err = 0;
if (fp != NULL) {
err = write_plot_bounding_box_request(fp);
fclose(fp);
} else {
err = E_FOPEN;
}
return err;
} | do_plot_bounding_box | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int do_precompute(int mode, char *oldmask, const char *param) {
return oldmask && mode == 5;
} | static int do_precompute(int mode, char *oldmask, const char *param) {
return oldmask != NULL && mode == SUBSAMPLE_BOOLEAN;
} | do_precompute | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int do_printf(const char *format, const char *args, DATASET *dset, PRN *prn,
int *nchars) {
return real_do_printf(format, args, dset, prn, nchars, -1);
} | int do_printf(const char *format, const char *args, DATASET *dset, PRN *prn,
int *nchars) {
return real_do_printf(format, args, dset, prn, nchars, -1);
} | do_printf | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int do_printscan_command(int ci, const char *parm1, const char *parm2,
const char *vargs, DATASET *dset, PRN *prn) {
if (ci == 101)
return do_printf(parm1, vargs, dset, prn, 0);
else
return sscanf_driver(vargs, dset, prn);
} | int do_printscan_command(int ci, const char *parm1, const char *parm2,
const char *vargs, DATASET *dset, PRN *prn) {
int err;
if (ci == PRINTF) {
err = do_printf(parm1, vargs, dset, prn, NULL);
} else {
err = sscanf_driver(vargs, dset, prn);
}
return err;
} | do_printscan_command | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int do_restricted_estimates(ExecState *state, gretl_restriction *rset,
const DATASET *dset, PRN *prn) {
int cols;
int i;
int s;
int t;
int err;
unsigned int T;
unsigned int k;
int yno;
gretl_matrix *X;
gretl_matrix *y;
gretl_matrix *b;
gretl_matrix *S;
double s2;
... | static int do_restricted_estimates(ExecState *state, gretl_restriction *rset,
const DATASET *dset, PRN *prn) {
MODEL *pmod = rset->obj;
gretl_matrix_block *B;
gretl_matrix *X, *y, *b, *S;
gretl_matrix *u = NULL;
int *xlist = NULL;
double s2 = 0.0;
int T = pmod->nobs;
i... | do_restricted_estimates | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int do_restricted_ols(boot *bs) {
int err;
double s2[2];
*(_QWORD *)&s2[1] = __readfsqword(0x28u);
s2[0] = 0.0;
err = gretl_matrix_restricted_ols(bs->y, bs->X, bs->R, bs->q, bs->b0, 0,
bs->u0, s2);
if (!err)
bs->SER0 = sqrt(s2[0]);
return err;
} | static int do_restricted_ols(boot *bs) {
double s2 = 0.0;
int err = 0;
err = gretl_matrix_restricted_ols(bs->y, bs->X, bs->R, bs->q, bs->b0, NULL,
bs->u0, &s2);
#if BDEBUG
if (1) {
int i;
fprintf(stderr, "Restricted estimates (err = %d):\n", err);
for (i = 0; i... | do_restricted_ols | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int do_scalar_matrix_cast(fn_arg *arg, fn_param *param) {
int err;
gretl_matrix *m;
m = gretl_matrix_alloc(1, 1);
if (!m)
return 12;
*(_QWORD *)m->val = arg->val.px;
err = copy_as_arg(param->name, GRETL_TYPE_MATRIX, m);
gretl_matrix_free(m);
return err;
} | static int do_scalar_matrix_cast(fn_arg *arg, fn_param *param) {
gretl_matrix *m = gretl_matrix_alloc(1, 1);
int err = 0;
if (m == NULL) {
err = E_ALLOC;
} else {
m->val[0] = arg->val.x;
err = copy_as_arg(param->name, GRETL_TYPE_MATRIX, m);
gretl_matrix_free(m);
}
return err;
} | do_scalar_matrix_cast | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int do_set_help(const char *setvar, FILE *fp, int recode, PRN *prn) {
_BOOL4 v4;
char *v5;
int count;
int n;
int ok;
char s[9];
char line[136];
unsigned long v14;
v14 = __readfsqword(0x28u);
n = strlen(setvar);
count = 0;
while (count <= 1 && fgets(line, 128, fp)) {
if (line[0] == 35) {
... | static int do_set_help(const char *setvar, FILE *fp, int recode, PRN *prn) {
char s[9], line[HELPLEN];
int n = strlen(setvar);
int ok = 0, count = 0;
while (count < 2 && fgets(line, HELPLEN, fp) != NULL) {
if (*line != '#') {
continue;
}
sscanf(line + 2, "%8s", s);
if (!strcmp(s, "set")) ... | do_set_help | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int do_single_equation_test(ExecState *state, gretl_restriction *rset,
const DATASET *dset, PRN *prn) {
int method;
int err;
MODEL *pmod;
unsigned long v10;
v10 = __readfsqword(0x28u);
err = 0;
if (rset->rows) {
err = restriction_set_make_mask(rset);
if (err)
ret... | static int do_single_equation_test(ExecState *state, gretl_restriction *rset,
const DATASET *dset, PRN *prn) {
int err = 0;
if (rset->rows != NULL) {
err = restriction_set_make_mask(rset);
if (err) {
return err;
}
}
if (rset->opt & OPT_B) {
MODEL *pmod... | do_single_equation_test | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *do_sprintf_function(const char *format, const char *args, DATASET *dset,
int *err) {
const char *v5;
char *v6;
const char *p;
const char *q;
char *buf;
PRN *prn;
unsigned long v13;
v13 = __readfsqword(0x28u);
p = format;
q = args;
buf = 0;
if (format && *format) ... | char *do_sprintf_function(const char *format, const char *args, DATASET *dset,
int *err) {
const char *p = format;
const char *q = args;
char *buf = NULL;
PRN *prn;
if (format == NULL || *format == '\0') {
*err = E_DATA;
return NULL;
}
prn = gretl_print_new(GRETL_PRINT_... | do_sprintf_function | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int do_sscanf(const char *src, const char *format, const char *args,
DATASET *dset, int *n_items) {
int nscan;
int err;
const char *r;
const char *p;
const char *q[2];
q[1] = (const char *)__readfsqword(0x28u);
nscan = 0;
err = 0;
gretl_error_clear();
r = src;
p = format;
q[0] = a... | int do_sscanf(const char *src, const char *format, const char *args,
DATASET *dset, int *n_items) {
const char *r, *p, *q;
int nscan = 0;
int err = 0;
gretl_error_clear();
#if PSDEBUG
fprintf(stderr, "do_sscanf: src = '%s'\n", src);
fprintf(stderr, "do_sscanf: format = '%s'\n", format);
fp... | do_sscanf | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void do_stata_printout(PRN *prn) {
const char *v1;
gchar *buf[2];
buf[1] = (gchar *)__readfsqword(0x28u);
buf[0] = 0;
v1 = gretl_workdir();
gretl_chdir(v1);
if ((unsigned int)g_file_get_contents("gretltmp.log", buf, 0, 0)) {
pputs(prn, buf[0]);
g_free(buf[0]);
pputc(prn, 10);
}
gretl_remo... | static void do_stata_printout(PRN *prn) {
gchar *buf = NULL;
gretl_chdir(gretl_workdir());
if (g_file_get_contents("gretltmp.log", &buf, NULL, NULL)) {
pputs(prn, buf);
g_free(buf);
pputc(prn, '\n');
}
gretl_remove("gretltmp.log");
} | do_stata_printout | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int does_string_sub(const char *s, LOOPSET *loop, DATASET *dset) {
int subst;
char test[72];
unsigned long v7;
v7 = __readfsqword(0x28u);
subst = 0;
if (strchr(s, 64))
return 1;
if (strchr(s, 36)) {
test[0] = 0;
strncat(test, s, 0x3Fu);
make_dollar_substitutions(test, 63, loop, dset, &sub... | static int does_string_sub(const char *s, LOOPSET *loop, DATASET *dset) {
int subst = 0;
if (strchr(s, '@')) {
subst = 1;
} else if (strchr(s, '$')) {
char test[64];
*test = '\0';
strncat(test, s, 63);
make_dollar_substitutions(test, 63, loop, dset, &subst, OPT_T);
}
return subst;
} | does_string_sub | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *dollar_bundle_node(NODE *n, parser *p) {
NODE *ret;
ret = get_aux_node(p, 58, 0, 2);
if (ret)
ret->v.str = (char *)bvar_get_bundle(n, p);
return ret;
} | static NODE *dollar_bundle_node(NODE *n, parser *p) {
NODE *ret = aux_bundle_node(p);
if (ret != NULL) {
ret->v.b = bvar_get_bundle(n, p);
}
return ret;
} | dollar_bundle_node | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *dollar_str_node(NODE *t, MODEL *pmod, parser *p) {
const char *v3;
char *v4;
char *v5;
const char *str;
NODE *ret;
NODE *l;
NODE *r;
NODE *e;
ret = get_aux_node(p, 54, 0, 0);
if (ret && (p->flags & 2) != 0) {
str = 0;
l = t->L;
r = t->R;
if (r->t == 60) {
str = r->v.str;... | static NODE *dollar_str_node(NODE *t, MODEL *pmod, parser *p) {
NODE *ret = aux_scalar_node(p);
if (ret != NULL && starting(p)) {
const char *str = NULL;
NODE *l = t->L;
NODE *r = t->R;
if (r->t == STR) {
str = r->v.str;
} else {
NODE *e = eval(r, p);
if (e->t == STR) {
... | dollar_str_node | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *dollar_var_node(NODE *t, parser *p) {
GretlType type_0;
int idx;
GretlType type;
NODE *ret;
void *ptr;
const char *fname;
unsigned long v9;
v9 = __readfsqword(0x28u);
ret = 0;
if ((p->flags & 2) == 0)
return get_aux_node(p, 0, 0, 0);
idx = t->v.bn.n_nodes;
if (idx <= 0 || idx > 18) {
... | static NODE *dollar_var_node(NODE *t, parser *p) {
NODE *ret = NULL;
if (starting(p)) {
int idx = t->v.idnum;
if (dvar_scalar(idx)) {
ret = aux_scalar_node(p);
if (ret != NULL) {
ret->v.xval = dvar_get_scalar(idx, p->dset);
}
} else if (dvar_series(idx)) {
ret = aux_ser... | dollar_var_node | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double doornik_chisq(double skew, double xkurt, int n) {
double x2;
double z1;
double z2;
x2 = NAN;
z1 = dh_root_b1_to_z1(skew, (double)n);
z2 = dh_b2_to_z2(skew * skew, xkurt + 3.0, (double)n);
if (fabs(z2) <= 1.797693134862316e308)
return z2 * z2 + z1 * z1;
return x2;
} | double doornik_chisq(double skew, double xkurt, int n) {
double z1, z2, x2 = NADBL;
z1 = dh_root_b1_to_z1(skew, (double)n);
z2 = dh_b2_to_z2(skew * skew, xkurt + 3.0, (double)n);
if (!na(z2)) {
x2 = z1 * z1 + z2 * z2;
}
return x2;
} | doornik_chisq | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dot_assign_to_matrix(gretl_matrix *m, parser *p) {
double scalar;
int err;
NODE *n;
n = p->ret;
err = 0;
if (n->t == 54 || n->t == 57 && n->v.str && !*((_DWORD *)n->v.str + 6) &&
*n->v.ivec == 1 && *((_DWORD *)n->v.str + 1) == 1) {
scalar = node_get_scalar(n, p);
gretl_m... | static int dot_assign_to_matrix(gretl_matrix *m, parser *p) {
NODE *n = p->ret;
int err = 0;
if (scalar_node(n)) {
gretl_matrix_fill(m, node_get_scalar(n, p));
} else if (cscalar_node(n)) {
err = gretl_cmatrix_fill(m, n->v.m->z[0]);
} else {
err = E_TYPES;
}
return err;
} | dot_assign_to_matrix | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double dot_atof(const char *s) {
double x;
if (!atof_point)
atof_point = *localeconv()->decimal_point;
if (atof_point == 46)
return atof(s);
gretl_push_c_numeric_locale();
x = atof(s);
gretl_pop_c_numeric_locale();
return x;
} | double dot_atof(const char *s) {
#ifndef ENABLE_NLS
return atof(s);
#else
double x;
if (atof_point == 0) {
struct lconv *lc = localeconv();
atof_point = *lc->decimal_point;
}
if (atof_point == '.') {
x = atof(s);
} else {
gretl_push_c_numeric_locale();
x = atof(s);
gretl_pop_c_num... | dot_atof | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
ConfType dot_operator_conf(const gretl_matrix *A, const gretl_matrix *B, int *r,
int *c) {
int v4;
int rows;
ConfType ret;
int ra;
int rb;
int ca;
int cb;
ra = A->rows;
rb = B->rows;
ca = A->cols;
cb = B->cols;
ret = CONF_NONE;
if (A->rows == B->rows && ca == cb) {
... | ConfType dot_operator_conf(const gretl_matrix *A, const gretl_matrix *B, int *r,
int *c) {
int ra = A->rows;
int rb = B->rows;
int ca = A->cols;
int cb = B->cols;
int confr = (ra == rb);
int confc = (ca == cb);
int colva = (ca == 1);
int colvb = (cb == 1);
int rowva = (ra ==... | dot_operator_conf | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void dotdir_cleanup() {
const char *v0;
int skipit;
const char *dotdir;
GDir *dir;
const char *fname;
const char *fnamea;
dotdir = gretl_dotdir();
v0 = gretl_workdir();
if (strcmp(dotdir, v0)) {
if (!gretl_chdir(dotdir)) {
dir = gretl_opendir(".");
skipit = 0;
if (dir) {
... | static void dotdir_cleanup(void) {
const char *dotdir = gretl_dotdir();
const char *workdir = gretl_workdir();
int err;
if (!strcmp(dotdir, workdir)) {
return;
}
err = gretl_chdir(dotdir);
if (!err) {
GDir *dir = gretl_opendir(".");
const gchar *fname;
int skipit = 0;
if (dir != NU... | dotdir_cleanup | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dotfile_exists(const char *fname) {
_BOOL4 ret;
const char *path;
stat buf;
unsigned long v5;
v5 = __readfsqword(0x28u);
path = gretl_make_dotpath(fname);
memset(&buf, 0, sizeof(buf));
ret = 0;
if (!gretl_stat(path, &buf))
ret = buf.st_size > 32;
g_free(path);
return ret;
} | static int dotfile_exists(const char *fname) {
gchar *path = gretl_make_dotpath(fname);
struct stat buf = {0};
int ret = 0;
if (gretl_stat(path, &buf) == 0 && buf.st_size > 32) {
ret = 1;
}
g_free(path);
return ret;
} | dotfile_exists | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void dotify(char *s) {
while (*s) {
if (*s == 58)
*s = 46;
++s;
}
} | static void dotify(char *s) {
while (*s) {
if (*s == ':')
*s = '.';
s++;
}
} | dotify | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int doubles_array_adjust_length(double **X, int m, int new_n) {
int err;
int i;
double *xi;
err = 0;
if (X && m) {
for (i = 0; i < m && !err; ++i) {
if (new_n) {
xi = (double *)realloc(X[i], 8LL * new_n);
if (xi)
X[i] = xi;
else
err = 12;
} else {
... | int doubles_array_adjust_length(double **X, int m, int new_n) {
int err = 0;
if (X == NULL || m == 0) {
;
} else {
double *xi;
int i;
for (i = 0; i < m && !err; i++) {
if (new_n == 0) {
free(X[i]);
X[i] = NULL;
} else {
xi = realloc(X[i], new_n * sizeof *xi);
... | doubles_array_adjust_length | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void doubles_array_free(double **X, int m) {
int i;
if (X) {
for (i = 0; i < m; ++i)
free(X[i]);
free(X);
}
} | void doubles_array_free(double **X, int m) {
if (X != NULL) {
int i;
for (i = 0; i < m; i++) {
free(X[i]);
}
free(X);
}
} | doubles_array_free | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double **doubles_array_new(int m, int n) {
int i;
int ia;
double **X;
if (!m)
return 0;
X = (double **)malloc(8LL * m);
if (!X)
return 0;
for (i = 0; i < m; ++i)
X[i] = 0;
if (n > 0) {
for (ia = 0; ia < m; ++ia) {
X[ia] = (double *)malloc(8LL * n);
if (!X[ia]) {
doub... | double **doubles_array_new(int m, int n) {
double **X;
int i;
if (m == 0) {
return NULL;
}
X = malloc(m * sizeof *X);
if (X == NULL) {
return X;
}
for (i = 0; i < m; i++) {
X[i] = NULL;
}
if (n > 0) {
for (i = 0; i < m; i++) {
X[i] = malloc(n * sizeof **X);
if (X[i] =... | doubles_array_new | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double **doubles_array_new0(int m, int n) {
int i;
int j;
double **X;
X = doubles_array_new(m, n);
if (X && n > 0) {
for (i = 0; i < m; ++i) {
for (j = 0; j < n; ++j)
X[i][j] = 0.0;
}
}
return X;
} | double **doubles_array_new0(int m, int n) {
double **X = doubles_array_new(m, n);
if (X != NULL && n > 0) {
int i, j;
for (i = 0; i < m; i++) {
for (j = 0; j < n; j++) {
X[i][j] = 0.0;
}
}
}
return X;
} | doubles_array_new0 | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int *dpanel_list_add(const MODEL *orig, const int *add, int *err) {
int sep;
int pos;
int i;
int *targ;
const int *old;
unsigned long v10;
v10 = __readfsqword(0x28u);
old = orig->list;
targ = gretl_list_copy(old);
sep = 0;
pos = *old + 1;
if (targ) {
for (i = 2; i <= *old; ++i) {
if (... | static int *dpanel_list_add(const MODEL *orig, const int *add, int *err) {
const int *old = orig->list;
int *new = gretl_list_copy(old);
int sep = 0, pos = old[0] + 1;
int i;
if (new == NULL) {
*err = E_ALLOC;
return NULL;
}
for (i = 2; i <= old[0]; i++) {
if (old[i] == LISTSEP) {
sep+... | dpanel_list_add | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int *dpanel_list_omit(const MODEL *orig, const int *drop, int *err) {
int v4;
int sep;
int i;
int j;
int *list;
list = gretl_list_copy(orig->list);
sep = 0;
if (list) {
for (i = 2; i <= *list; ++i) {
if (list[i] == -100)
++sep;
if (sep == 1) {
for (j = 1; j <= *drop; ++j... | static int *dpanel_list_omit(const MODEL *orig, const int *drop, int *err) {
const int *old = orig->list;
int *new = gretl_list_copy(old);
int sep = 0;
int i, j;
if (new == NULL) {
*err = E_ALLOC;
return NULL;
}
for (i = 2; i <= new[0]; i++) {
if (new[i] == LISTSEP) {
sep++;
}
... | dpanel_list_omit | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void dpd_asy_vcv_line(PRN *prn) {
char *v1;
char *v2;
if (csv_format(prn)) {
v1 = gettext("Asymptotic standard errors");
pprintf(prn, "\"%s\"", v1);
} else {
v2 = gettext("Asymptotic standard errors");
pputs(prn, v2);
}
pputc(prn, 10);
} | static void dpd_asy_vcv_line(PRN *prn) {
if (csv_format(prn)) {
pprintf(prn, "\"%s\"", _("Asymptotic standard errors"));
} else {
pputs(prn, _("Asymptotic standard errors"));
}
pputc(prn, '\n');
} | dpd_asy_vcv_line | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
MODEL *dpd_model(MODEL *__return_ptr retstr, const int *list,
const int *laglist, const char *ispec, const DATASET *dset,
gretlopt opt, PRN *prn) {
_BYTE v8[376];
PRN *prna;
gretlopt opta;
const DATASET *dseta;
const char *ispeca;
const int *laglista;
const int *lista;
... | MODEL dpd_model(const int *list, const int *laglist, const char *ispec,
const DATASET *dset, gretlopt opt, PRN *prn) {
MODEL (*dpd_estimate)(const int *, const int *, const char *, const DATASET *,
gretlopt, PRN *);
MODEL mod;
gretl_model_init(&mod, dset);
dpd_estimate ... | dpd_model | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dpofa_(double *a, int *lda, int *n, int *info) {
double *v4;
double v6;
double *aa;
int i__3;
int j;
int k;
int a_dim1;
int a_offset;
int i__1;
int jm1;
int i__2;
double s;
double t;
unsigned long v19;
v19 = __readfsqword(0x28u);
a_dim1 = *lda;
a_offset = a_dim1 + 1;
aa = &a[-a_... | static int dpofa_(double *a, int *lda, int *n, int *info) {
int a_dim1, a_offset, i__1, i__2, i__3;
int j, k;
double s, t;
int jm1;
a_dim1 = *lda;
a_offset = 1 + a_dim1;
a -= a_offset;
i__1 = *n;
for (j = 1; j <= i__1; ++j) {
*info = j;
s = 0.;
jm1 = j - 1;
if (jm1 < 1) {
goto... | dpofa_ | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void drawline(int n, PRN *prn) {
int v2;
int t;
pputs(prn, " |+");
for (t = 1; t <= n; ++t) {
if (t % 10)
v2 = 45;
else
v2 = 43;
pputc(prn, v2);
}
pputc(prn, 10);
} | static void drawline(int n, PRN *prn) {
int t;
pputs(prn, " |+");
for (t = 1; t <= n; t++) {
pputc(prn, (t % 10) ? '-' : '+');
}
pputc(prn, '\n');
} | drawline | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void drop_redundant_vars(MODEL *pmod, DATASET *dset, gretl_matrix *R, int rank,
gretlopt opt) {
int v5;
int i;
int pos;
int nd;
int vi;
int *droplist;
double d;
unsigned long v13;
v13 = __readfsqword(0x28u);
droplist = 0;
pos = 2;
nd = 0;
for (i = 0; i < R->rows; ++i)... | static void drop_redundant_vars(MODEL *pmod, DATASET *dset, gretl_matrix *R,
int rank, gretlopt opt) {
int *droplist = NULL;
int i, vi, pos, nd;
double d;
#if REDEBUG
printlist(pmod->list, "pmod->list, into drop_redundant_vars");
fprintf(stderr, "rank = %d\n", rank);
#endif
... | drop_redundant_vars | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void dropwt(int *list) {
int i;
--*list;
for (i = 1; i <= *list; ++i)
list[i] = list[i + 1];
} | static void dropwt(int *list) {
int i;
list[0] -= 1;
for (i = 1; i <= list[0]; i++) {
list[i] = list[i + 1];
}
} | dropwt | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
keynum dtoll(double x, int *err) {
if (fabs(x) > 1.797693134862316e308) {
*err = 2;
return -1.0;
}
return x;
} | static keynum dtoll(double x, int *err) {
if (na(x)) {
*err = E_DATA;
return -1;
} else {
return x;
}
} | dtoll | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
keynum dtoll_full(double x, int key, int row, int *err) {
if (fabs(x) > 1.797693134862316e308) {
if (key == 2)
gretl_errmsg_sprintf("%s: invalid secondary outer key value on row %d",
"join", row);
else
gretl_errmsg_sprintf("%s: invalid (primary) outer key value on row %d... | static keynum dtoll_full(double x, int key, int row, int *err) {
if (na(x)) {
if (key == 2) {
gretl_errmsg_sprintf("%s: invalid secondary outer key value on row %d",
"join", row);
} else {
gretl_errmsg_sprintf("%s: invalid (primary) outer key value on row %d",
... | dtoll_full | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dtrsl_(double *t, int *ldt, int *n, double *b, int *job, int *info) {
double v6;
double v7;
double *ba;
double *ta;
int i__2;
int j;
int jj;
int case__;
int t_dim1;
int t_offset;
int i__1;
double temp[2];
*(_QWORD *)&temp[1] = __readfsqword(0x28u);
t_dim1 = *ldt;
t_offset = t_dim1 + 1... | static int dtrsl_(double *t, int *ldt, int *n, double *b, int *job, int *info) {
int t_dim1, t_offset, i__1, i__2;
int j, jj, case__;
double temp;
t_dim1 = *ldt;
t_offset = 1 + t_dim1;
t -= t_offset;
--b;
i__1 = *n;
for (*info = 1; *info <= i__1; ++(*info)) {
if (t[*info + *info * t_dim1] == 0.... | dtrsl_ | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dumgenr_with_oddval(int **plist, DATASET *dset, double oddval) {
return real_list_dumgenr(plist, dset, oddval, OPT_NONE);
} | int dumgenr_with_oddval(int **plist, DATASET *dset, double oddval) {
return real_list_dumgenr(plist, dset, oddval, OPT_NONE);
} | dumgenr_with_oddval | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *dummify_func(NODE *l, NODE *r, parser *p) {
char *v4;
int *list;
double oddval;
NODE *ret;
unsigned long v9;
v9 = __readfsqword(0x28u);
ret = aux_list_node(p);
if (ret && (p->flags & 2) != 0) {
list = 0;
oddval = NAN;
if (r && r->t != 85) {
if (r->t != 54) {
p->err = 37;... | static NODE *dummify_func(NODE *l, NODE *r, parser *p) {
NODE *ret = aux_list_node(p);
if (ret != NULL && starting(p)) {
int *list = NULL;
double oddval = NADBL;
if (!null_node(r)) {
if (r->t != NUM) {
p->err = E_TYPES;
return ret;
} else {
oddval = r->v.xval;
... | dummify_func | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int dummy_ar_info_init(MODEL *pmod) {
ARINFO *v1;
ARINFO *v2;
double *rho;
ARINFO *arinfo;
int err;
err = 0;
pmod->arinfo = (ARINFO *)malloc(0x18u);
if (pmod->arinfo) {
pmod->arinfo->rho = 0;
pmod->arinfo->sderr = 0;
} else {
err = 12;
}
if (err || pmod->ci != 6) {
if (!err) {
... | static int dummy_ar_info_init(MODEL *pmod) {
int err = 0;
pmod->arinfo = malloc(sizeof *pmod->arinfo);
if (pmod->arinfo == NULL) {
err = E_ALLOC;
} else {
pmod->arinfo->rho = NULL;
pmod->arinfo->sderr = NULL;
}
if (!err && pmod->ci == AR1) {
pmod->arinfo->arlist = gretl_list_new(1);
p... | dummy_ar_info_init | 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.