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
gretl_matrix *gretl_cmatrix_build(const gretl_matrix *Re, const gretl_matrix *Im, double x, double y, int *err) { double *p_real; int r; int c; int i; int n; gretl_matrix *C; C = 0; r = 1; c = 1; if (Re) { if (Re->is_complex) {...
gretl_matrix *gretl_cmatrix_build(const gretl_matrix *Re, const gretl_matrix *Im, double x, double y, int *err) { gretl_matrix *C = NULL; int r = 1, c = 1; int i, n; if (Re != NULL) { if (Re->is_complex) { *err = E_INVARG; } else...
gretl_cmatrix_build
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_cmatrix_cholesky(const gretl_matrix *A, int *err) { char *v2; int v4; char uplo; integer n; integer info; gretl_matrix *C; unsigned long v9; v9 = __readfsqword(0x28u); C = 0; uplo = 76; if (cmatrix_validate(A, 1)) { if (matrix_is_hermitian(A)) { C = gretl_matrix_copy...
gretl_matrix *gretl_cmatrix_cholesky(const gretl_matrix *A, int *err) { gretl_matrix *C = NULL; char uplo = 'L'; integer n, info; if (!cmatrix_validate(A, 1)) { *err = E_INVARG; } else if (!matrix_is_hermitian(A)) { gretl_errmsg_set(_("Matrix is not Hermitian")); *err = E_INVARG; } else { C...
gretl_cmatrix_cholesky
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_cmatrix_determinant(const gretl_matrix *X, int log, int *err) { double *p_real; int i; gretl_matrix *ret; gretl_matrix *E; long v9; complex_double cret; ret = 0; if (cmatrix_validate(X, 1)) { E = gretl_zgeev(X, 0, 0, err); if (E) { ...
gretl_matrix *gretl_cmatrix_determinant(const gretl_matrix *X, int log, int *err) { gretl_matrix *E = NULL; gretl_matrix *ret = NULL; if (!cmatrix_validate(X, 1)) { *err = E_INVARG; return ret; } E = gretl_zgeev(X, NULL, NULL, err); if (E != NULL) { dou...
gretl_cmatrix_determinant
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_cmatrix_divide(const gretl_matrix *A, const gretl_matrix *B, GretlMatrixMod mod, int *err) { gretl_matrix *T; gretl_matrix *C; T = 0; C = 0; if (A->is_complex && B->is_complex) { C = gretl_matrix_divide(A, B, mod, err); } else if (A->is_complex) { ...
gretl_matrix *gretl_cmatrix_divide(const gretl_matrix *A, const gretl_matrix *B, GretlMatrixMod mod, int *err) { gretl_matrix *T = NULL; gretl_matrix *C = NULL; if (A->is_complex && B->is_complex) { C = gretl_matrix_divide(A, B, mod, err); } else if (A->is_complex) { ...
gretl_cmatrix_divide
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_cmatrix_dot_op(const gretl_matrix *A, const gretl_matrix *B, int op, int *err) { gretl_matrix *T; gretl_matrix *C; T = 0; C = 0; if (A->is_complex && B->is_complex) { C = cmatrix_dot_op(A, B, op, err); } else if (A->is_complex) { T = complex_fr...
gretl_matrix *gretl_cmatrix_dot_op(const gretl_matrix *A, const gretl_matrix *B, int op, int *err) { gretl_matrix *T = NULL; gretl_matrix *C = NULL; if (A->is_complex && B->is_complex) { C = cmatrix_dot_op(A, B, op, err); } else if (A->is_complex) { T = complex_from_...
gretl_cmatrix_dot_op
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_cmatrix_exp(const gretl_matrix *A, int *err) { long v3; long v4; double v5; int i; gretl_matrix *C; gretl_matrix *Ca; gretl_matrix *V; gretl_matrix *Vi; gretl_matrix *w; gretl_matrix *R; V = 0; Vi = 0; w = 0; R = 0; if (cmatrix_validate(A, 1)) { C = gretl_matrix_co...
gretl_matrix *gretl_cmatrix_exp(const gretl_matrix *A, int *err) { gretl_matrix *C = NULL; gretl_matrix *V = NULL; gretl_matrix *Vi = NULL; gretl_matrix *w = NULL; gretl_matrix *R = NULL; int i; if (!cmatrix_validate(A, 1)) { *err = E_INVARG; return NULL; } C = gretl_matrix_copy(A); if (C ...
gretl_cmatrix_exp
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_cmatrix_extract(const gretl_matrix *A, int im, int *err) { double imag; int i; int n; gretl_matrix *B; if (cmatrix_validate(A, 0)) { B = gretl_matrix_alloc(A->rows, A->cols); if (B) { n = A->rows * A->cols; for (i = 0; i < n; ++i) { if (im) imag = A->...
gretl_matrix *gretl_cmatrix_extract(const gretl_matrix *A, int im, int *err) { gretl_matrix *B = NULL; int i, n; if (!cmatrix_validate(A, 0)) { *err = E_INVARG; return NULL; } B = gretl_matrix_alloc(A->rows, A->cols); if (B == NULL) { *err = E_ALLOC; } else { n = A->rows * A->cols; ...
gretl_cmatrix_extract
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_cmatrix_fft(const gretl_matrix *A, int inverse, int *err) { int v4; double *p_real; double v6; int j; int ja; int r; int c; unsigned int sign; complex_double *ptr; gretl_matrix *B; complex_double *tmp; fftw_plan p; if (cmatrix_validate(A, 0)) { B = gretl_matrix_copy(A)...
gretl_matrix *gretl_cmatrix_fft(const gretl_matrix *A, int inverse, int *err) { gretl_matrix *B = NULL; double complex *tmp, *ptr; fftw_plan p; int sign; int r, c, j; if (!cmatrix_validate(A, 0)) { *err = E_INVARG; return NULL; } B = gretl_matrix_copy(A); if (B == NULL) { *err = E_ALLOC;...
gretl_cmatrix_fft
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_cmatrix_fill(gretl_matrix *m, complex_double z) { complex_double *v3; int i; int n; if (!cmatrix_validate(m, 0)) return 37; n = m->cols * m->rows; for (i = 0; i < n; ++i) { v3 = &m->z[i]; v3->real = z.real; v3->imag = z.imag; } return 0; }
int gretl_cmatrix_fill(gretl_matrix *m, double complex z) { if (!cmatrix_validate(m, 0)) { return E_TYPES; } else { int i, n = m->cols * m->rows; for (i = 0; i < n; i++) { m->z[i] = z; } return 0; } }
gretl_cmatrix_fill
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_cmatrix_from_scalar(complex_double z, int *err) { double *p_real; gretl_matrix *ret; ret = gretl_cmatrix_new(1, 1); if (ret) { p_real = &ret->z->real; *p_real = z.real; p_real[1] = z.imag; } else { *err = 12; } return ret; }
gretl_matrix *gretl_cmatrix_from_scalar(double complex z, int *err) { gretl_matrix *ret = gretl_cmatrix_new(1, 1); if (ret == NULL) { *err = E_ALLOC; } else { ret->z[0] = z; } return ret; }
gretl_cmatrix_from_scalar
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_cmatrix_ginv(const gretl_matrix *A, int *err) { return cmatrix_SVD_inverse(A, 1, err); }
gretl_matrix *gretl_cmatrix_ginv(const gretl_matrix *A, int *err) { return cmatrix_SVD_inverse(A, 1, err); }
gretl_cmatrix_ginv
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_cmatrix_hdprod(const gretl_matrix *A, const gretl_matrix *B, int *err) { return gretl_cmatrix_kronlike(A, B, 1, err); }
gretl_matrix *gretl_cmatrix_hdprod(const gretl_matrix *A, const gretl_matrix *B, int *err) { return gretl_cmatrix_kronlike(A, B, 1, err); }
gretl_cmatrix_hdprod
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_cmatrix_inverse(const gretl_matrix *A, int *err) { return cmatrix_SVD_inverse(A, 0, err); }
gretl_matrix *gretl_cmatrix_inverse(const gretl_matrix *A, int *err) { return cmatrix_SVD_inverse(A, 0, err); }
gretl_cmatrix_inverse
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_cmatrix_kronecker(const gretl_matrix *A, const gretl_matrix *B, int *err) { return gretl_cmatrix_kronlike(A, B, 0, err); }
gretl_matrix *gretl_cmatrix_kronecker(const gretl_matrix *A, const gretl_matrix *B, int *err) { return gretl_cmatrix_kronlike(A, B, 0, err); }
gretl_cmatrix_kronecker
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_cmatrix_kronlike(const gretl_matrix *A, const gretl_matrix *B, int hdp, int *err) { gretl_matrix *L; gretl_matrix *R; gretl_matrix *C; L = (gretl_matrix *)A; R = (gretl_matrix *)B; C = 0; if ((!A->is_complex || !hdp || B) && (!A->is_complex || !B->...
gretl_matrix *gretl_cmatrix_kronlike(const gretl_matrix *A, const gretl_matrix *B, int hdp, int *err) { gretl_matrix *L = (gretl_matrix *)A; gretl_matrix *R = (gretl_matrix *)B; gretl_matrix *C = NULL; if (A->is_complex && hdp && B == NULL) { ; } else if (A->is_comple...
gretl_cmatrix_kronlike
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_cmatrix_multiply(const gretl_matrix *A, const gretl_matrix *B, int *err) { return real_cmatrix_multiply(A, B, 78, err); }
gretl_matrix *gretl_cmatrix_multiply(const gretl_matrix *A, const gretl_matrix *B, int *err) { return real_cmatrix_multiply(A, B, 'N', err); }
gretl_cmatrix_multiply
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_cmatrix_new(int r, int c) { gretl_matrix *m; m = gretl_matrix_alloc(2 * r, c); if (m) { m->is_complex = 1; m->z = (complex_double *)m->val; m->rows = r; } return m; }
gretl_matrix *gretl_cmatrix_new(int r, int c) { gretl_matrix *m = gretl_matrix_alloc(2 * r, c); if (m != NULL) { m->is_complex = 1; m->z = (double complex *)m->val; m->rows = r; } return m; }
gretl_cmatrix_new
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_cmatrix_new0(int r, int c) { gretl_matrix *m; m = gretl_zero_matrix_new(2 * r, c); if (m) { m->is_complex = 1; m->z = (complex_double *)m->val; m->rows = r; } return m; }
gretl_matrix *gretl_cmatrix_new0(int r, int c) { gretl_matrix *m = gretl_zero_matrix_new(2 * r, c); if (m != NULL) { m->is_complex = 1; m->z = (double complex *)m->val; m->rows = r; } return m; }
gretl_cmatrix_new0
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_cmatrix_print(const gretl_matrix *A, const char *name, PRN *prn) { return gretl_cmatrix_print_range(A, name, -1, -1, prn); }
int gretl_cmatrix_print(const gretl_matrix *A, const char *name, PRN *prn) { return gretl_cmatrix_print_range(A, name, -1, -1, prn); }
gretl_cmatrix_print
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_cmatrix_print_range(const gretl_matrix *A, const char *name, int rmin, int rmax, PRN *prn) { complex_double *v6; double v7; int v8; complex_double *v9; char v10; int v11; int v12; char pm; int alt_default; int all_ints; int zwidth; int i; int ia; int j...
int gretl_cmatrix_print_range(const gretl_matrix *A, const char *name, int rmin, int rmax, PRN *prn) { double complex aij; double re, im, ai, xmax; int alt_default = 0; int all_ints = 1; int intmax = 1000; #if CDEC5 int altmin = 1000; #else int altmin = 100; #endif int zwid...
gretl_cmatrix_print_range
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_cmatrix_printf(const gretl_matrix *A, const char *fmt, PRN *prn) { long v4; complex_double *v5; char v6; char c_0; int i; int j; int r; int c; gchar *fmtstr; double re; double im; char s[3]; unsigned long v17; v17 = __readfsqword(0x28u); strcpy(s, " "); if (!cmatrix_validate(...
int gretl_cmatrix_printf(const gretl_matrix *A, const char *fmt, PRN *prn) { double complex aij; double re, im; gchar *fmtstr = NULL; char s[3] = " "; int r, c, i, j; if (!cmatrix_validate(A, 0)) { return E_INVARG; } if (fmt == NULL) { fmt = "%7.4f"; } else { char c = fmt[strlen(fmt) -...
gretl_cmatrix_printf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_cmatrix_rank(const gretl_matrix *A, int *err) { int rows; char v4; char v5; char trans1; int i; int rank; int k; gretl_matrix *S; gretl_matrix *B; double smin; unsigned long v13; v13 = __readfsqword(0x28u); S = 0; rank = 0; if (cmatrix_validate(A, 0)) { rows = A->rows; i...
int gretl_cmatrix_rank(const gretl_matrix *A, int *err) { gretl_matrix *S = NULL; int i, k, rank = 0; if (!cmatrix_validate(A, 0)) { *err = E_INVARG; return 0; } k = MIN(A->rows, A->cols); if (A->rows > 4 * k || A->cols > 4 * k) { char trans1 = A->rows > k ? 'C' : 'N'; char trans2 = A->co...
gretl_cmatrix_rank
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_cmatrix_set_diagonal(gretl_matrix *targ, const gretl_matrix *src, double x) { int rows; int cols; int v6; complex_double *v7; complex_double *v8; double imag; int i; int match; int d; complex_double zi; zi = (complex_double)0LL; match = 0; if (!cmatrix...
int gretl_cmatrix_set_diagonal(gretl_matrix *targ, const gretl_matrix *src, double x) { double complex zi = 0; int d, i; int match = 0; int err = 0; if (!cmatrix_validate(targ, 0)) { return E_INVARG; } d = MIN(targ->rows, targ->cols); if (src != NULL) { if (src-...
gretl_cmatrix_set_diagonal
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_cmatrix_set_part(gretl_matrix *targ, const gretl_matrix *src, double x, int im) { complex_double *v5; complex_double *v6; int i; int j; double z; double z_8; if (!cmatrix_validate(targ, 0)) return 37; if (src && (!src->rows || !src->cols || src->rows != targ->ro...
int gretl_cmatrix_set_part(gretl_matrix *targ, const gretl_matrix *src, double x, int im) { double complex z; int i, j; if (!cmatrix_validate(targ, 0)) { return E_TYPES; } else if (src != NULL) { if (gretl_is_null_matrix(src) || src->rows != targ->rows || src->cols !=...
gretl_cmatrix_set_part
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_cmatrix_set_triangle(gretl_matrix *targ, const gretl_matrix *src, double x, int upper) { int rows; int cols; int v7; int v8; int v9; int v10; complex_double *v11; complex_double *v12; double imag; int v14; double v15; complex_double *v16; int i; int j...
int gretl_cmatrix_set_triangle(gretl_matrix *targ, const gretl_matrix *src, double x, int upper) { double complex zi = 0; int r, c, p, i, j, n; int lower = !upper; int match = 0; int err = 0; if (!cmatrix_validate(targ, 0)) { return E_INVARG; } r = targ->rows; c = ...
gretl_cmatrix_set_triangle
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_cmatrix_switch(const gretl_matrix *m, int to_new, int *err) { int v4; double *p_real; complex_double *v6; int i; int ia; int j; int ja; int k; int r; gretl_matrix *ret; double xi; double mij_8; if (!m || !m->rows || !m->cols) return g...
gretl_matrix *gretl_cmatrix_switch(const gretl_matrix *m, int to_new, int *err) { gretl_matrix *ret = NULL; int r, c, i, j, k; if (gretl_is_null_matrix(m)) { return gretl_null_matrix_new(); } if ((to_new && m->is_complex) || (!to_new && !cmatrix_validate(m, 0))) { ...
gretl_cmatrix_switch
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_cmatrix_trace(const gretl_matrix *X, int *err) { complex_double *v2; int i; gretl_matrix *ret; complex_double v6; complex_double tr; ret = 0; if (cmatrix_validate(X, 1)) { tr = (complex_double)0LL; i = 0; v6 = (complex_double)0LL; while (i < X->rows) { v2 = &X->z...
gretl_matrix *gretl_cmatrix_trace(const gretl_matrix *X, int *err) { gretl_matrix *ret = NULL; if (!cmatrix_validate(X, 1)) { *err = E_INVARG; } else { double complex tr = 0; int i; for (i = 0; i < X->rows; i++) { tr += gretl_cmatrix_get(X, i, i); } ret = gretl_cmatrix_from_scalar(...
gretl_cmatrix_trace
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_cmatrix_vector_stat(const gretl_matrix *m, GretlVecStat vs, int rowwise, int *err) { int rows; int cols; complex_double *v7; double real; double imag; complex_double *v10; double *p_real; complex_double *v12; double v13; double v14; compl...
gretl_matrix *gretl_cmatrix_vector_stat(const gretl_matrix *m, GretlVecStat vs, int rowwise, int *err) { double complex z; gretl_matrix *ret; int r, c, i, j; if (!cmatrix_validate(m, 0)) { *err = E_INVARG; return NULL; } r = rowwise ? m->rows : 1; c = roww...
gretl_cmatrix_vector_stat
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_cmd_destroy_context(CMD *cmd) { if (cmd->context == 42 || cmd->context == 82) foreign_destroy(); cmd->context = 0; cmd->savename[0] = 0; }
void gretl_cmd_destroy_context(CMD *cmd) { if (cmd->context == FOREIGN || cmd->context == MPI) { foreign_destroy(); } cmd->context = 0; *cmd->savename = '\0'; }
gretl_cmd_destroy_context
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_cmd_exec(ExecState *s, DATASET *dset) { gretlopt opt; char *v4; unsigned int pd; char *v6; int full_length_n; int v8; char *v9; MODEL *v10; MODEL *v11; MODEL *v12; MODEL *v13; MODEL *v14; char *v15; MODEL *v16; MODEL *v17; MODEL *v18; MODEL *v19; MODEL *v20; MODEL *v21; ...
int gretl_cmd_exec(ExecState *s, DATASET *dset) { CMD *cmd = s->cmd; char *line = s->line; MODEL *model = s->model; PRN *prn = s->prn; char readfile[MAXLEN]; int *listcpy = NULL; int err = 0; exec_state_prep(s); plot_ok = 0; if (gretl_in_gui_mode() && check_for_stop()) { abort_execution(s); ...
gretl_cmd_exec
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretlopt gretl_cmd_get_opt(const CMD *cmd) { return cmd->opt; }
gretlopt gretl_cmd_get_opt(const CMD *cmd) { return cmd->opt; }
gretl_cmd_get_opt
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *gretl_cmd_get_savename(CMD *cmd) { return cmd->savename; }
const char *gretl_cmd_get_savename(CMD *cmd) { return cmd->savename; }
gretl_cmd_get_savename
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_cmd_set_context(CMD *cmd, int ci) { cmd->context = ci; }
void gretl_cmd_set_context(CMD *cmd, int ci) { cmd->context = ci; }
gretl_cmd_set_context
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_cmd_set_opt(CMD *cmd, gretlopt opt) { cmd->opt = opt; }
void gretl_cmd_set_opt(CMD *cmd, gretlopt opt) { cmd->opt = opt; }
gretl_cmd_set_opt
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_vector *gretl_coeff_vector_from_model(const MODEL *pmod, const char *select, int *err) { int v4; int i; int j; int nc; int k; gretl_matrix *b; k = pmod->ncoeff; if (select) nc = count_selection(select, k); else nc = pmod->ncoeff; if (nc) { ...
gretl_vector *gretl_coeff_vector_from_model(const MODEL *pmod, const char *select, int *err) { gretl_vector *b; int i, j, nc; int k = pmod->ncoeff; if (select == NULL) { nc = k; } else { nc = count_selection(select, k); } if (nc == 0) { *err = E_DA...
gretl_coeff_vector_from_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *gretl_command_complete(const char *s) { return gretl_command_complete_next(s, 0); }
const char *gretl_command_complete(const char *s) { return gretl_command_complete_next(s, 0); }
gretl_command_complete
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *gretl_command_complete_next(const char *s, int idx) { size_t n; n = strlen(s); while (idx <= 146) { if (!strncmp(s, gretl_cmds[idx].cword, n)) return gretl_cmds[idx].cword; ++idx; } return 0; }
const char *gretl_command_complete_next(const char *s, int idx) { size_t n = strlen(s); int i; for (i = idx; i < NC; i++) { if (!strncmp(s, gretl_cmds[i].cword, n)) { return gretl_cmds[i].cword; } } return NULL; }
gretl_command_complete_next
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_command_hash_cleanup() { if (ht) g_hash_table_destroy(ht); }
void gretl_command_hash_cleanup(void) { if (ht != NULL) { g_hash_table_destroy(ht); } }
gretl_command_hash_cleanup
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_command_hash_init() { int i; int ia; ht = (GHashTable *)g_hash_table_new(&g_str_hash, &g_str_equal); for (i = 1; gretl_cmds[i].cword; ++i) g_hash_table_insert(ht, gretl_cmds[i].cword, gretl_cmds[i].cnum); for (ia = 0; gretl_cmd_aliases[ia].cword; ++ia) g_hash_table_insert(ht, gretl_cmd_ali...
static void gretl_command_hash_init(void) { int i; ht = g_hash_table_new(g_str_hash, g_str_equal); for (i = 1; gretl_cmds[i].cword != NULL; i++) { g_hash_table_insert(ht, (gpointer)gretl_cmds[i].cword, GINT_TO_POINTER(gretl_cmds[i].cnum)); } for (i = 0; gretl_cmd_aliases[i].cwor...
gretl_command_hash_init
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_command_number(const char *s) { int ret; gpointer p; ret = 0; if (!ht) gretl_command_hash_init(); p = (gpointer)g_hash_table_lookup(ht, s); if (p) return (int)p; return ret; }
int gretl_command_number(const char *s) { gpointer p; int ret = 0; if (ht == NULL) { gretl_command_hash_init(); } p = g_hash_table_lookup(ht, s); if (p != NULL) { ret = GPOINTER_TO_INT(p); } return ret; }
gretl_command_number
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *gretl_command_word(int i) { if (i <= 0 || i > 146) return (const char *)&unk_3320D8; else return gretl_cmds[i].cword; }
const char *gretl_command_word(int i) { if (i > 0 && i < NC) { return gretl_cmds[i].cword; } else { return ""; } }
gretl_command_word
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_comments_on() { if (gretl_function_depth() <= 0) return comments_on; else return 0; }
int gretl_comments_on(void) { if (gretl_function_depth() > 0) { return 0; } else { return comments_on; } }
gretl_comments_on
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_compare_doubles(const void *a, const void *b) { return (*(double *)a > *(double *)b) - (*(double *)b > *(double *)a); }
int gretl_compare_doubles(const void *a, const void *b) { const double *da = (const double *)a; const double *db = (const double *)b; if (isnan(*da) || isnan(*db)) { if (!isnan(*da)) { return -1; } else if (!isnan(*db)) { return 1; } else { return 0; } } else { return (*da...
gretl_compare_doubles
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_compare_ints(const void *a, const void *b) { return *(_DWORD *)a - *(_DWORD *)b; }
int gretl_compare_ints(const void *a, const void *b) { const int *ia = (const int *)a; const int *ib = (const int *)b; return *ia - *ib; }
gretl_compare_ints
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_compiling_function() { return compiling; }
int gretl_compiling_function(void) { return compiling; }
gretl_compiling_function
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_compiling_loop() { return compile_level; }
int gretl_compiling_loop(void) { return compile_level; }
gretl_compiling_loop
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_compiling_python(const char *line) { char s1[4]; char s2[8]; unsigned long v4; v4 = __readfsqword(0x28u); if (compiling_python && (unsigned int)__isoc99_sscanf(line, "%3s %7s", s1, s2) == 2 && !strcmp(s1, "end") && !strcmp(s2, "foreign")) { compiling_python = 0; } return compili...
int gretl_compiling_python(const char *line) { if (compiling_python) { char s1[4], s2[8]; if (sscanf(line, "%3s %7s", s1, s2) == 2 && !strcmp(s1, "end") && !strcmp(s2, "foreign")) { compiling_python = 0; } } return compiling_python; }
gretl_compiling_python
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int *gretl_consecutive_list_new(int lmin, int lmax) { int i; long n; int *list; n = (unsigned int)(lmax - lmin + 1); if ((int)n <= 0) return 0; list = gretl_list_new(n); if (list) { for (i = 0; i < (int)n; ++i) list[i + 1] = lmin + i; } return list; }
int *gretl_consecutive_list_new(int lmin, int lmax) { int *list = NULL; int i, n; n = lmax - lmin + 1; if (n <= 0) { return NULL; } list = gretl_list_new(n); if (list != NULL) { for (i = 0; i < n; i++) { list[i + 1] = lmin + i; } } return list; }
gretl_consecutive_list_new
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_const_count() { int i; for (i = 0; consts[i].id; ++i) ; return i; }
int gretl_const_count(void) { int i; for (i = 0; consts[i].id != 0; i++) ; return i; }
gretl_const_count
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *gretl_const_name(int i) { return consts[i].str; }
const char *gretl_const_name(int i) { return consts[i].str; }
gretl_const_name
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_copy_file(const char *src, const char *dest) { char *v3; char *v4; FILE *srcfd; FILE *destfd; size_t n; char buf[8192]; unsigned long v9; v9 = __readfsqword(0x28u); if (!strcmp(src, dest)) return 0; srcfd = gretl_fopen(src, "rb"); if (srcfd) { destfd = gretl_fopen(dest, "wb"); ...
int gretl_copy_file(const char *src, const char *dest) { FILE *srcfd, *destfd; char buf[8192]; size_t n; if (!strcmp(src, dest)) { return 0; } if ((srcfd = gretl_fopen(src, "rb")) == NULL) { gretl_errmsg_sprintf(_("Couldn't open %s"), src); return E_FOPEN; } if ((destfd = gretl_fopen(des...
gretl_copy_file
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double gretl_corr(int t1, int t2, const double *x, const double *y, int *missing) { int t; int ta; int nn; double sx; double sxa; double sy; double sya; double sxx; double syy; double sxy; double cval; double xbar; double ybar; cval = 0.0; if (t2 - t1 == -1) return N...
double gretl_corr(int t1, int t2, const double *x, const double *y, int *missing) { int t, nn, n = t2 - t1 + 1; double sx, sy, sxx, syy, sxy, den, xbar, ybar; double cval = 0.0; if (n == 0) { return NADBL; } if (gretl_isconst(t1, t2, x) || gretl_isconst(t1, t2, y)) { return NAD...
gretl_corr
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double gretl_corr_rsq(int t1, int t2, const double *x, const double *y) { double r; r = gretl_corr(t1, t2, x, y, 0); if (fabs(r) > 1.797693134862316e308) return r; else return r * r; }
double gretl_corr_rsq(int t1, int t2, const double *x, const double *y) { double r = gretl_corr(t1, t2, x, y, NULL); return (na(r)) ? r : r * r; }
gretl_corr_rsq
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_corrmx(int *list, const DATASET *dset, gretlopt opt, PRN *prn) { int err; VMatrix *corr; int *tmplist; unsigned long v10; v10 = __readfsqword(0x28u); corr = 0; err = 0; if (list) { if (!*list) return 0; corr = corrlist(19, list, dset, opt, &err); } else { tmplist = full_va...
int gretl_corrmx(int *list, const DATASET *dset, gretlopt opt, PRN *prn) { VMatrix *corr = NULL; int err = 0; if (list != NULL) { if (list[0] == 0) { return 0; } else { corr = corrlist(CORR, list, dset, opt, &err); } } else { int *tmplist = full_var_list(dset, NULL); if (tmplis...
gretl_corrmx
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double gretl_covar(int t1, int t2, const double *x, const double *y, int *missing) { int t; int ta; int nn; double sx; double sy; double sxy; if (t2 - t1 == -1) return NAN; nn = 0; sy = 0.0; sx = 0.0; for (t = t1; t <= t2; ++t) { if (fabs(x[t]) <= 1.797693134862316e308 ...
double gretl_covar(int t1, int t2, const double *x, const double *y, int *missing) { double sx, sy, sxy, xbar, ybar; int t, nn, n = t2 - t1 + 1; if (n == 0) { return NADBL; } nn = 0; sx = sy = 0.0; for (t = t1; t <= t2; t++) { if (!na(x[t]) && !na(y[t])) { sx += x[t]; ...
gretl_covar
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_covariance_matrix(const gretl_matrix *m, int corr, int dfc, int *err) { gretl_matrix *D; gretl_matrix *V; if (m && m->rows && m->cols && dfc >= 0 && dfc < m->rows) { if (m->rows > 1) { D = gretl_matrix_copy(m); if (D) { if (corr) ...
gretl_matrix *gretl_covariance_matrix(const gretl_matrix *m, int corr, int dfc, int *err) { gretl_matrix *D = NULL; gretl_matrix *V = NULL; if (gretl_is_null_matrix(m) || dfc < 0 || dfc >= m->rows) { *err = E_INVARG; return NULL; } if (m->rows < 2) { *err = ...
gretl_covariance_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_covariance_matrix_from_varlist(const int *list, const DATASET *dset, gretl_matrix **means, int *errp) { double *v4; int t; int i; int ia; ...
gretl_matrix *gretl_covariance_matrix_from_varlist(const int *list, const DATASET *dset, gretl_matrix **means, int *errp) { gretl_matrix *V; gretl_vector *xbar; ...
gretl_covariance_matrix_from_varlist
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_ctrans(const gretl_matrix *A, int conjugate, int *err) { complex_double *v4; long v5; int i; int j; gretl_matrix *C; double real; double imag; if (cmatrix_validate(A, 0)) { C = gretl_cmatrix_new(A->cols, A->rows); if (C) { for (j = 0; j < A->cols; ++j) { for (i...
gretl_matrix *gretl_ctrans(const gretl_matrix *A, int conjugate, int *err) { gretl_matrix *C = NULL; double complex aij; int i, j; if (!cmatrix_validate(A, 0)) { *err = E_INVARG; return NULL; } C = gretl_cmatrix_new(A->cols, A->rows); if (C == NULL) { *err = E_ALLOC; return NULL; } ...
gretl_ctrans
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_ctrans_in_place(gretl_matrix *A) { complex_double *v2; long v3; int i; int j; gretl_matrix *C; double aij; double aij_8; if (!cmatrix_validate(A, 0)) return 17; C = gretl_cmatrix_new(A->cols, A->rows); if (!C) return 12; for (j = 0; j < A->cols; ++j) { for (i = 0; i < A->row...
int gretl_ctrans_in_place(gretl_matrix *A) { gretl_matrix *C = NULL; double complex aij; int i, j, n; int err = 0; if (!cmatrix_validate(A, 0)) { return E_INVARG; } C = gretl_cmatrix_new(A->cols, A->rows); if (C == NULL) { return E_ALLOC; } for (j = 0; j < A->cols; j++) { for (i = 0; ...
gretl_ctrans_in_place
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_curl(const char *url, const char *header, const char *postdata, int include, char **output, char **errmsg) { int err; CURLcode res; CURL *curl; curl_slist *hlist; const char *cmsg; GetBuf getbuf; unsigned long v17; v17 = __readfsqword(0x28u); curl = 0; hlist = 0; getbuf.p...
int gretl_curl(const char *url, const char *header, const char *postdata, int include, char **output, char **errmsg) { CURL *curl = NULL; struct curl_slist *hlist = NULL; struct GetBuf getbuf = {output, 0}; CURLcode res; int err = 0; err = common_curl_setup(&curl); if (err) { return er...
gretl_curl
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_curl_toggle(int on) { if (on) { if (!init_done_1) { if ((unsigned int)curl_global_init(3)) { gretl_errmsg_set("Failed to initialize libcurl"); return 1; } init_done_1 = 1; } } else if (init_done_1) { curl_global_cleanup(); } return 0; }
static int gretl_curl_toggle(int on) { static int init_done; if (on) { if (!init_done) { CURLcode err = curl_global_init(CURL_GLOBAL_DEFAULT); if (err) { gretl_errmsg_set("Failed to initialize libcurl"); return 1; } else { #ifdef WIN32 certs_path_init(); #endif ...
gretl_curl_toggle
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
DATASET *gretl_dataset_from_matrix(const gretl_matrix *m, const int *list, gretlopt opt, int *err) { int v5; int i; int ia; int t; int nv; gretlopt dsopt; int T; int col; int cola; DATASET *dset; const char **rnames; const char **cnames; double *src; dset ...
DATASET *gretl_dataset_from_matrix(const gretl_matrix *m, const int *list, gretlopt opt, int *err) { DATASET *dset = NULL; const char **cnames = NULL; const char **rnames = NULL; int use_rownames; int i, t, col, nv, T; if (gretl_is_null_matrix(m)) { *err = E_DATA; ...
gretl_dataset_from_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_dcmt_init(int n, int self, unsigned int seed) { if (n > 0 && self >= 0 && self < n) set_up_dcmt(n, self, seed); }
void gretl_dcmt_init(int n, int self, unsigned int seed) { if (n > 0 && self >= 0 && self < n) { set_up_dcmt(n, self, seed); } }
gretl_dcmt_init
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_dcmt_set_seed(unsigned int seed) { dcmt_seed = seed; sgenrand_mt(seed, dcmt); }
static void gretl_dcmt_set_seed(unsigned int seed) { dcmt_seed = seed; sgenrand_mt(dcmt_seed, dcmt); }
gretl_dcmt_set_seed
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_debugging_on() { return globals.gretl_debug; }
int gretl_debugging_on(void) { return globals.gretl_debug; }
gretl_debugging_on
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_delete_var_by_name(const char *s, PRN *prn) { char *v3; int err; gchar *genstr; if (!s || !*s) return 18; if (object_is_function_arg(s)) { v3 = gettext("The variable %s is read-only"); gretl_errmsg_sprintf(v3, s); return 2; } else { if (has_suffix(s, ".gfn")) return mayb...
int gretl_delete_var_by_name(const char *s, PRN *prn) { int err = 0; if (s == NULL || *s == '\0') { return E_PARSE; } if (object_is_function_arg(s)) { gretl_errmsg_sprintf(_("The variable %s is read-only"), s); return E_DATA; } if (has_suffix(s, ".gfn")) { err = maybe_unload_function_pack...
gretl_delete_var_by_name
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_delete_variables(int *list, const char *param, gretlopt opt, DATASET *dset, int *renumber, PRN *prn) { char *v7; int err; GretlType type; const char *s; err = incompatible_options(opt, OPT_T | OPT_F | OPT_D); if (!err) { if ((opt & 0x80000) != 0) { if (list ||...
int gretl_delete_variables(int *list, const char *param, gretlopt opt, DATASET *dset, int *renumber, PRN *prn) { int err; err = incompatible_options(opt, OPT_T | OPT_D | OPT_F); if (!err) { if (opt & OPT_T) { if (list != NULL || param != NULL) { err = E_BADOPT; ...
gretl_delete_variables
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_deltree(const char *path) { int err; gchar *savedir; savedir = (gchar *)g_get_current_dir(); err = real_delete_recursive(path); if (savedir) { g_chdir(savedir); g_free(savedir); } return err; }
int gretl_deltree(const char *path) { gchar *savedir = NULL; int err; savedir = g_get_current_dir(); err = real_delete_recursive(path); if (savedir != NULL) { g_chdir(savedir); g_free(savedir); } return err; }
gretl_deltree
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
GretlFileType gretl_detect_filetype(const char *fname) { if (fname) return detect_filetype((char *)fname, OPT_NONE); else return GRETL_UNRECOGNIZED; }
GretlFileType gretl_detect_filetype(const char *fname) { if (fname == NULL) { return GRETL_UNRECOGNIZED; } return detect_filetype((char *)fname, OPT_NONE); }
gretl_detect_filetype
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_dgeev(const gretl_matrix *A, gretl_matrix *VR, gretl_matrix *VL, int *err) { return real_gretl_dgeev(A, VR, VL, 0, err); }
gretl_matrix *gretl_dgeev(const gretl_matrix *A, gretl_matrix *VR, gretl_matrix *VL, int *err) { return real_gretl_dgeev(A, VR, VL, 0, err); }
gretl_dgeev
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_dgemm(const gretl_matrix *a, int atr, const gretl_matrix *b, int btr, gretl_matrix *c, GretlMatrixMod cmod, int m, int n, int k) { int beta; int i; int ia; int ib; int ic; int id; int ie; int j; int ja; int jb; int jc; int l; int la; int lb; int lc; int ar; ...
static void gretl_dgemm(const gretl_matrix *a, int atr, const gretl_matrix *b, int btr, gretl_matrix *c, GretlMatrixMod cmod, int m, int n, int k) { const double *restrict A = a->val; const double *restrict B = b->val; double *restrict C = c->val; double x, alpha ...
gretl_dgemm
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_dgemm_single(const gretl_matrix *a, int atr, const gretl_matrix *b, int btr, gretl_matrix *c, GretlMatrixMod cmod, int m, int n, int k) { int beta; int i; int ia; int ib; int ic; int id; int ie; int j; int ja; int jb; int jc; int l; in...
static void gretl_dgemm_single(const gretl_matrix *a, int atr, const gretl_matrix *b, int btr, gretl_matrix *c, GretlMatrixMod cmod, int m, int n, int k) { const double *A = a->val; const double *B = b->val; double *C = c->val; double x, alpha = 1.0;...
gretl_dgemm_single
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void *gretl_dlopen(const char *path, int now) { int v2; char *v3; char *v4; void *handle; if (now) v2 = 2; else v2 = 1; handle = dlopen(path, v2); if (!handle) { v3 = gettext("Failed to load plugin: %s"); gretl_errmsg_sprintf(v3, path); v4 = dlerror(); fprintf(stderr, "%s\n", v4...
void *gretl_dlopen(const char *path, int now) { void *handle = NULL; #ifdef WIN32 if (strstr(path, "R.dll")) { handle = LoadLibraryEx(path, NULL, LOAD_WITH_ALTERED_SEARCH_PATH); } else { handle = LoadLibrary(path); } #else handle = dlopen(path, (now) ? RTLD_NOW : RTLD_LAZY); #endif if (handle == N...
gretl_dlopen
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void *gretl_dlsym(void *handle, const char *name) { return dlsym(handle, name); }
void *gretl_dlsym(void *handle, const char *name) { #ifdef WIN32 return GetProcAddress(handle, name); #else return dlsym(handle, name); #endif }
gretl_dlsym
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *gretl_dotdir() { return paths.dotdir; }
const char *gretl_dotdir(void) { return paths.dotdir; }
gretl_dotdir
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_dotpos(const char *str) { int i; int p; p = 0; if (str && *str) { p = strlen(str); for (i = p - 1; i > 0 && str[i] != 47 && str[i] != 92; --i) { if (str[i] == 46) return i; } } return p; }
int gretl_dotpos(const char *str) { int i, p = 0; if (str != NULL && *str != '\0') { p = strlen(str); for (i = p - 1; i > 0; i--) { if (str[i] == '/' || str[i] == '\\') { break; } else if (str[i] == '.') { p = i; break; } } } return p; }
gretl_dotpos
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double gretl_double_from_string(const char *s, int *err) { char *test; double x; unsigned long v6; v6 = __readfsqword(0x28u); if (s && *s) { if (((*__ctype_b_loc())[*s] & 0x400) != 0) { return get_scalar_value_by_name(s, err); } else { gretl_push_c_numeric_locale(); *__errno_locatio...
double gretl_double_from_string(const char *s, int *err) { char *test; double x; if (s == NULL || *s == '\0') { *err = E_DATA; return NADBL; } if (isalpha(*s)) { return get_scalar_value_by_name(s, err); } gretl_push_c_numeric_locale(); errno = 0; x = strtod(s, &test); gretl_pop_c_nume...
gretl_double_from_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_echo_command(CMD *cmd, const char *line, PRN *prn) { real_echo_command(cmd, line, 0, prn); }
void gretl_echo_command(CMD *cmd, const char *line, PRN *prn) { real_echo_command(cmd, line, 0, prn); }
gretl_echo_command
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_echo_on() { if (check_for_state()) return 1; else return flag_to_bool(state, ECHO_ON); }
int gretl_echo_on(void) { if (check_for_state()) { return 1; } else { return flag_to_bool(state, ECHO_ON); } }
gretl_echo_on
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *gretl_emf_term_line(char *term_line, PlotType ptype, GptFlags flags) { gchar *size_string; char font_string[152]; unsigned long v7; v7 = __readfsqword(0x28u); size_string = 0; font_string[0] = 0; write_emf_font_string(font_string); if (special_size_is_set()) { size_string = (gchar *)g_strdup_...
static char *gretl_emf_term_line(char *term_line, PlotType ptype, GptFlags flags) { gchar *size_string = NULL; char font_string[140]; *font_string = '\0'; write_emf_font_string(font_string); if (special_size_is_set()) { size_string = g_strdup_printf("size %d,%d "...
gretl_emf_term_line
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *gretl_eps_term_line(char *term_line, PlotType ptype, GptFlags flags) { int v3; char font_string[136]; unsigned long v7; v7 = __readfsqword(0x28u); if (ptype == PLOT_MULTI_SCATTER) v3 = 6; else v3 = 12; font_string[0] = 0; write_other_font_string(font_string, v3); sprintf(term_line, "set...
static char *gretl_eps_term_line(char *term_line, PlotType ptype, GptFlags flags) { char font_string[128]; int ptsize; ptsize = (ptype == PLOT_MULTI_SCATTER) ? 6 : 12; *font_string = '\0'; write_other_font_string(font_string, ptsize); sprintf(term_line, "set term epscairo...
gretl_eps_term_line
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_errmsg_append(const char *str, int err) { int m; int n; const char *s; m = strlen(str); if (!gretl_errmsg[0] && err > 0 && err <= 53) { s = look_up_errmsg(err); if (s) strcpy(gretl_errmsg, s); } n = strlen(gretl_errmsg); if (n + m <= 2045) { if (n > 0 && gretl_errmsg[n] != ...
void gretl_errmsg_append(const char *str, int err) { int n, m = strlen(str); if (*gretl_errmsg == '\0' && err > 0 && err < E_MAX) { const char *s = look_up_errmsg(err); if (s != NULL) { strcpy(gretl_errmsg, s); } } n = strlen(gretl_errmsg); if (n + m + 2 < ERRLEN) { if (n > 0 && gret...
gretl_errmsg_append
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_errmsg_ensure(const char *str) { if (!gretl_errmsg[0]) strncat(gretl_errmsg, str, 0x7FFu); }
void gretl_errmsg_ensure(const char *str) { if (*gretl_errmsg == '\0') { strncat(gretl_errmsg, str, ERRLEN - 1); } }
gretl_errmsg_ensure
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *gretl_errmsg_get() { return gretl_errmsg; }
const char *gretl_errmsg_get(void) { return gretl_errmsg; }
gretl_errmsg_get
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_errmsg_is_set() { return gretl_errmsg[0] != 0; }
int gretl_errmsg_is_set(void) { return (*gretl_errmsg != '\0'); }
gretl_errmsg_is_set
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_errmsg_set(const char *str) { int n; if (!alarm_set || !gretl_errmsg[0]) { if (gretl_errmsg[0]) { if (strcmp(gretl_errmsg, str)) { n = strlen(gretl_errmsg); if ((int)(n + strlen(str)) <= 2045) { *(_WORD *)&gretl_errmsg[strlen(gretl_errmsg)] = 10; strcat(gret...
void gretl_errmsg_set(const char *str) { #if EDEBUG fprintf(stderr, "gretl_errmsg_set: '%s'\n", str); #endif if (alarm_set && *gretl_errmsg != '\0') { return; } if (*gretl_errmsg == '\0') { strncat(gretl_errmsg, str, ERRLEN - 1); } else if (strcmp(gretl_errmsg, str)) { int n = strlen(gretl_err...
gretl_errmsg_set
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_errmsg_set_from_errno(const char *s, int errnum) { const char *msg; msg = 0; if (errnum) { msg = gretl_strerror(errnum); *__errno_location() = 0; } if (msg) { if (s) gretl_errmsg_sprintf("%s: %s", s, msg); else gretl_errmsg_set(msg); } }
void gretl_errmsg_set_from_errno(const char *s, int errnum) { char *msg = NULL; if (errnum) { msg = gretl_strerror(errnum); errno = 0; } if (msg != NULL) { if (s != NULL) { gretl_errmsg_sprintf("%s: %s", s, msg); } else { gretl_errmsg_set(msg); } } }
gretl_errmsg_set_from_errno
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_errmsg_sprintf(const char *fmt, ...) { long v1; long v2; long v3; long v4; long v5; int len0; va_list ap; char tmp[2056]; unsigned long v9; long v10; long v11; long v12; long v13; long v14; va_start(ap, fmt); v3 = va_arg(ap, _QWORD); v1 = va_arg(ap, _QWORD); v2 = va_arg(a...
void gretl_errmsg_sprintf(const char *fmt, ...) { #if EDEBUG fprintf(stderr, "gretl_errmsg_sprintf: fmt='%s'\n", fmt); #endif if (*gretl_errmsg == '\0') { va_list ap; va_start(ap, fmt); vsnprintf(gretl_errmsg, ERRLEN, fmt, ap); va_end(ap); } else if (strstr(gretl_errmsg, "*** error in fun") && ...
gretl_errmsg_sprintf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_errmsg_sprintf_replace(const char *fmt, ...) { long v1; long v2; long v3; long v4; long v5; va_list ap; unsigned long v7; long v8; long v9; long v10; long v11; long v12; va_start(ap, fmt); v3 = va_arg(ap, _QWORD); v1 = va_arg(ap, _QWORD); v2 = va_arg(ap, _QWORD); v4 = va_ar...
void gretl_errmsg_sprintf_replace(const char *fmt, ...) { va_list ap; gretl_errmsg[0] = '\0'; va_start(ap, fmt); vsnprintf(gretl_errmsg, ERRLEN, fmt, ap); va_end(ap); }
gretl_errmsg_sprintf_replace
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_error_clear() { if (!alarm_set) gretl_errmsg[0] = 0; error_printed = 0; *__errno_location() = 0; return 0; }
int gretl_error_clear(void) { #if EDEBUG fprintf(stderr, "gretl_error_clear\n"); #endif if (!alarm_set) { *gretl_errmsg = '\0'; } error_printed = 0; errno = 0; #if 0 gretl_warnnum = 0; *gretl_warnmsg = '\0'; #endif return 0; }
gretl_error_clear
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_error_is_fatal() { if (gretl_compiling_function()) return 1; if (gretl_compiling_loop()) return 1; return gretl_in_batch_mode(); }
int gretl_error_is_fatal(void) { if (gretl_compiling_function()) { return 1; } else if (gretl_compiling_loop()) { return 1; } else { return gretl_in_batch_mode(); } }
gretl_error_is_fatal
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_exec_state_clear(ExecState *s) { gretl_cmd_free(s->cmd); if ((s->flags & 8) != 0) { set_as_last_model(s->prev_model, s->prev_type); if (s->prev_model) gretl_object_unref(s->prev_model, s->prev_type); if (s->prev_model_count >= 0) set_model_count(s->prev_model_count); } destroy...
void gretl_exec_state_clear(ExecState *s) { gretl_cmd_free(s->cmd); if (s->flags & FUNCTION_EXEC) { set_as_last_model(s->prev_model, s->prev_type); if (s->prev_model != NULL) { gretl_object_unref(s->prev_model, s->prev_type); } #if PMDEBUG fprintf(stderr, "ExecState %p, set prev_model %p as ...
gretl_exec_state_clear
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_exec_state_destroy(ExecState *s) { free_subsample_mask(s->submask); gretl_abort_compiling_loop(); free(s); }
void gretl_exec_state_destroy(ExecState *s) { free_subsample_mask(s->submask); gretl_abort_compiling_loop(); free(s); }
gretl_exec_state_destroy
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_exec_state_init(ExecState *s, ExecFlags flags, char *line, CMD *cmd, MODEL *model, PRN *prn) { s->flags = flags; s->line = line; if (s->line) *s->line = 0; s->more = 0; s->cmd = cmd; if (s->cmd) s->cmd->ci = 0; s->runfile[0] = 0; s->model = model; s->prn =...
void gretl_exec_state_init(ExecState *s, ExecFlags flags, char *line, CMD *cmd, MODEL *model, PRN *prn) { s->flags = flags; s->line = line; if (s->line != NULL) { *s->line = '\0'; } s->more = NULL; s->cmd = cmd; if (s->cmd != NULL) { s->cmd->ci = 0; } *s->runfile ...
gretl_exec_state_init
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_exec_state_set_callback(ExecState *s, EXEC_CALLBACK callback, gretlopt opt) { s->callback = callback; s->pmod = 0; if ((opt & 0x40) != 0) gui_callback = callback; }
void gretl_exec_state_set_callback(ExecState *s, EXEC_CALLBACK callback, gretlopt opt) { s->callback = callback; s->pmod = NULL; if (opt & OPT_G) { gui_callback = callback; } }
gretl_exec_state_set_callback
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_exec_state_set_model(ExecState *s, MODEL *pmod) { s->pmod = pmod; }
void gretl_exec_state_set_model(ExecState *s, MODEL *pmod) { s->pmod = pmod; }
gretl_exec_state_set_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_exec_state_transcribe_flags(ExecState *s, CMD *cmd) { s->in_comment = cmd->flags & 1; }
void gretl_exec_state_transcribe_flags(ExecState *s, CMD *cmd) { s->in_comment = (cmd_ignore(cmd)) ? 1 : 0; }
gretl_exec_state_transcribe_flags
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_exec_state_uncomment(ExecState *s) { s->in_comment = 0; s->cmd->flags &= ~1u; }
void gretl_exec_state_uncomment(ExecState *s) { s->in_comment = 0; s->cmd->flags &= ~CMD_IGNORE; }
gretl_exec_state_uncomment
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_execute_loop() { return loop_execute; }
int gretl_execute_loop(void) { return loop_execute; }
gretl_execute_loop
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_file_exists(const char *fname) { return gretl_stat(fname, 0) == 0; }
int gretl_file_exists(const char *fname) { return gretl_stat(fname, NULL) == 0; }
gretl_file_exists
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0