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
BTreeNode *btree_node_balance(BTreeNode *node) { BTreeNode *nodea; nodea = node; if (node->balance >= -1) { if (node->balance > 1) { if (node->right->balance < 0) node->right = btree_node_rotate_right(node->right); return btree_node_rotate_left(node); } } else { if (node->left->...
static BTreeNode *btree_node_balance(BTreeNode *node) { if (node->balance < -1) { if (node->left->balance > 0) { node->left = btree_node_rotate_left(node->left); } node = btree_node_rotate_right(node); } else if (node->balance > 1) { if (node->right->balance < 0) { node->right = btree_no...
btree_node_balance
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
BTreeNode *btree_node_new(gdouble key, gdouble value) { BTreeNode *result; result = (BTreeNode *)g_slice_alloc(40); result->balance = 0; result->left = 0; result->right = 0; result->left_child = 0; result->right_child = 0; result->key = key; result->value = value; return result; }
static BTreeNode *btree_node_new(gdouble key, gdouble value) { BTreeNode *node = g_slice_new(BTreeNode); node->balance = 0; node->left = NULL; node->right = NULL; node->left_child = FALSE; node->right_child = FALSE; node->key = key; node->value = value; return node; }
btree_node_new
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
BTreeNode *btree_node_next(BTreeNode *node) { BTreeNode *tmp; tmp = node->right; if (node->right_child) { while (tmp->left_child) tmp = tmp->left; } return tmp; }
static inline BTreeNode *btree_node_next(BTreeNode *node) { BTreeNode *tmp = node->right; if (node->right_child) { while (tmp->left_child) { tmp = tmp->left; } } return tmp; }
btree_node_next
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
BTreeNode *btree_node_rotate_left(BTreeNode *node) { gint a_bal; gint b_bal; BTreeNode *right; right = node->right; if (right->left_child) { node->right = right->left; } else { node->right_child = 0; right->left_child = 1; } right->left = node; a_bal = node->balance; b_bal = right->bala...
static BTreeNode *btree_node_rotate_left(BTreeNode *node) { BTreeNode *right; gint a_bal, b_bal; right = node->right; if (right->left_child) { node->right = right->left; } else { node->right_child = FALSE; right->left_child = TRUE; } right->left = node; a_bal = node->balance; b_bal = ri...
btree_node_rotate_left
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
BTreeNode *btree_node_rotate_right(BTreeNode *node) { gint a_bal; gint b_bal; BTreeNode *left; left = node->left; if (left->right_child) { node->left = left->right; } else { node->left_child = 0; left->right_child = 1; } left->right = node; a_bal = node->balance; b_bal = left->balance; ...
static BTreeNode *btree_node_rotate_right(BTreeNode *node) { BTreeNode *left; gint a_bal, b_bal; left = node->left; if (left->right_child) { node->left = left->right; } else { node->left_child = FALSE; left->right_child = TRUE; } left->right = node; a_bal = node->balance; b_bal = left->...
btree_node_rotate_right
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void btree_remove_all(BTree *tree) { BTreeNode *node; BTreeNode *next; if (tree) { for (node = btree_first_node(tree); node; node = next) { next = btree_node_next(node); g_slice_free1(40, node); } tree->root = 0; tree->nnodes = 0; } else { g_return_if_fail_warning(0, "btree_remo...
static void btree_remove_all(BTree *tree) { BTreeNode *node, *next; g_return_if_fail(tree != NULL); node = btree_first_node(tree); while (node) { next = btree_node_next(node); g_slice_free(BTreeNode, node); node = next; } tree->root = NULL; tree->nnodes = 0; }
btree_remove_all
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int buf_back_lines(const char *buf, int n) { int i; int count; int len; const char *p; readbuf *rbuf; rbuf = matching_buffer(buf); if (!rbuf) return 1; p = rbuf->point; len = (_DWORD)p - LODWORD(rbuf->start); count = 0; for (i = 0; i < len; ++i) { if (*--p == 10) ++count; if (co...
int buf_back_lines(const char *buf, int n) { readbuf *rbuf = matching_buffer(buf); if (rbuf != NULL) { const char *p = rbuf->point; int i, len = p - rbuf->start; int count = 0; for (i = 0; i < len; i++) { p--; if (*p == '\n') { count++; } if (count == n + 1) { ...
buf_back_lines
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void buf_rewind(const char *buf) { bufseek(buf, 0); }
void buf_rewind(const char *buf) { bufseek(buf, 0); }
buf_rewind
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *bufgets(char *s, size_t size, const char *buf) { int i; int status; const char *p; const char *pa; status = 0; p = rbuf_get_point(buf); if (!p) return 0; if (!*p) return 0; *s = 0; for (i = 0;; ++i) { s[i] = p[i]; if (!p[i]) break; if (p[i] == 13) { s[i] = 0; ...
char *bufgets(char *s, size_t size, const char *buf) { enum { GOT_LF = 1, GOT_CR, GOT_CRLF }; int i, status = 0; const char *p; p = rbuf_get_point(buf); if (p == NULL) { return NULL; } if (*p == '\0') { return NULL; } *s = 0; for (i = 0;; i++) { s[i] = p[i]; if (p[i] == '\0') { ...
bufgets
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void bufgets_cleanup() { if (n_bufs > 0) { free(rbuf); rbuf = 0; n_bufs = 0; } }
void bufgets_cleanup(void) { if (n_bufs > 0) { free(rbuf); rbuf = NULL; n_bufs = 0; } }
bufgets_cleanup
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void bufgets_finalize(const char *buf) { readbuf *rbuf; rbuf = matching_buffer(buf); if (rbuf) { rbuf->point = 0; rbuf->start = rbuf->point; } }
void bufgets_finalize(const char *buf) { readbuf *rbuf = matching_buffer(buf); if (rbuf != NULL) { rbuf->start = rbuf->point = NULL; } }
bufgets_finalize
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bufgets_init(const char *buf) { readbuf *v2; readbuf *v3; int i; int err; readbuf *tmp; readbuf *tmpa; tmp = matching_buffer(buf); err = 0; if (buf) { if (tmp) { fprintf(stderr, "GRETL ERROR: buffer at %p is already initialized\n", buf); return 1; } else { ...
int bufgets_init(const char *buf) { readbuf *tmp = matching_buffer(buf); int i, err = 0; if (buf == NULL) { fprintf(stderr, "bufgets_init: got NULL argument\n"); return 1; } else if (tmp != NULL) { fprintf(stderr, "GRETL ERROR: buffer at %p is already " "initialized\n", ...
bufgets_init
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
size_t bufgets_peek_line_length(const char *buf) { const char *p; size_t len; p = rbuf_get_point(buf); len = 0; if (!p || !*p) return 0; while (*p && *p != 13 && *p != 10) { ++len; ++p; } return len + 1; }
size_t bufgets_peek_line_length(const char *buf) { const char *p = rbuf_get_point(buf); size_t len = 0; if (p == NULL || *p == '\0') { return 0; } while (*p) { if (*p == '\r' || *p == '\n') { break; } else { len++; p++; } } return len + 1; }
bufgets_peek_line_length
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void bufprint_string(char *buf, const char *s, int width, PRN *prn) { int v4; int n; n = width - g_utf8_strlen(s, -1); *buf = 0; if (n <= 0) { gretl_utf8_strncat(buf, s, width - 3); v4 = width - g_utf8_strlen(buf, -1) - 1; bufspace(v4, prn); pputs(prn, buf); pputc(prn, 126); } else { ...
static void bufprint_string(char *buf, const char *s, int width, PRN *prn) { int n = width - g_utf8_strlen(s, -1); *buf = '\0'; if (n > 0) { bufspace(n, prn); pputs(prn, s); } else { gretl_utf8_strncat(buf, s, width - 3); n = width - g_utf8_strlen(buf, -1); bufspace(n - 1, prn); pputs(...
bufprint_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *bufprintnum(char *buf, double x, int signif, int gprec, int width) { const char *v5; int signifa; int i; int l; int la; long a; signifa = signif; *buf = 0; if (fabs(x) > 1.797693134862316e308) { if (x >= 0.0) v5 = "inf"; else v5 = "-inf"; strcpy(numstr_1, v5); goto f...
static char *bufprintnum(char *buf, double x, int signif, int gprec, int width) { static char numstr[32]; int i, l; *buf = '\0'; if (isnan(x)) { strcpy(numstr, "NaN"); goto finish; } else if (isinf(x)) { strcpy(numstr, (x < 0) ? "-inf" : "inf"); goto finish; } i...
bufprintnum
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bufseek(const char *buf, long offset) { readbuf *rbuf; rbuf = matching_buffer(buf); if (!rbuf) return 1; rbuf->point = &rbuf->start[offset]; return 0; }
int bufseek(const char *buf, long int offset) { readbuf *rbuf = matching_buffer(buf); if (rbuf != NULL) { rbuf->point = rbuf->start + offset; return 0; } return 1; }
bufseek
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void bufspace(int n, PRN *prn) { int v2; while (1) { v2 = n--; if (v2 <= 0) break; pputc(prn, 32); } }
void bufspace(int n, PRN *prn) { while (n-- > 0) { pputc(prn, ' '); } }
bufspace
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
long buftell(const char *buf) { readbuf *rbuf; rbuf = matching_buffer(buf); if (rbuf) return rbuf->point - rbuf->start; else return 0; }
long buftell(const char *buf) { readbuf *rbuf = matching_buffer(buf); return (rbuf == NULL) ? 0 : rbuf->point - rbuf->start; }
buftell
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
GRETL_VAR *build_VAR_from_bundle(gretl_bundle *b, int irf, int boot, int *err) { gretl_matrix **v5; int i; int ia; GRETL_VAR *var; gretl_bundle *jb; int ierr[8]; gretl_matrix **mm[8]; const char *keys[8]; unsigned long v15; v15 = __readfsqword(0x28u); var = (GRETL_VAR *)malloc(0x128u); if (var)...
static GRETL_VAR *build_VAR_from_bundle(gretl_bundle *b, int irf, int boot, int *err) { GRETL_VAR *var = malloc(sizeof *var); int i, ierr[7]; if (var == NULL) { *err = E_ALLOC; return NULL; } gretl_VAR_clear(var); if (gretl_bundle_get_int(b, "ecm", NULL)) {...
build_VAR_from_bundle
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int *build_VAR_list(const GRETL_VAR *var, int *exolist, int *err) { return VAR_list_composite(var->ylist, exolist, var->rlist); }
static int *build_VAR_list(const GRETL_VAR *var, int *exolist, int *err) { return VAR_list_composite(var->ylist, exolist, var->rlist); }
build_VAR_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *build_augmented_XTX(const gretl_matrix *X, const gretl_matrix *R, int *err) { int i; int ia; int j; int ja; int k; int kW; gretl_matrix *XTX; gretl_matrix *W; double x; k = X->cols; kW = R->rows + k; XTX = gretl_matrix_XTX_new(X); W = gretl_zero...
static gretl_matrix *build_augmented_XTX(const gretl_matrix *X, const gretl_matrix *R, int *err) { gretl_matrix *XTX, *W; int k = X->cols; int kW = k + R->rows; XTX = gretl_matrix_XTX_new(X); W = gretl_zero_matrix_new(kW, kW); if (XTX == NULL || W == NULL) { gr...
build_augmented_XTX
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
joiner *build_joiner(joinspec *jspec, DATASET *l_dset, jr_filter *filter, AggrType aggr, int seqval, obskey *auto_keys, int n_keys, int *err) { char *v9; jr_row *v10; jr_row *v11; int v12; double v13; int nrows; int i; int use_iso_basic; int j; int keycol; ...
static joiner *build_joiner(joinspec *jspec, DATASET *l_dset, jr_filter *filter, AggrType aggr, int seqval, obskey *auto_keys, int n_keys, int *err) { joiner *jr = NULL; DATASET *r_dset = outer_dataset(jspec); int keycol = jspec->colnums[JOIN_KEY]; int val...
build_joiner
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void build_mspec(NODE *targ, NODE *l, NODE *r, parser *p) { _BOOL4 v4; _BOOL4 v5; char *v6; char *v7; int v8; int v9; int i; int j; int lscalar; int rscalar; matrix_subspec *spec; spec = targ->v.mspec; i = 0; j = 0; if (!spec) { spec = matrix_subspec_new(); if (!spec) { p->e...
static void build_mspec(NODE *targ, NODE *l, NODE *r, parser *p) { matrix_subspec *spec = targ->v.mspec; int lscalar = 0; int rscalar = 0; int i = 0, j = 0; if (spec == NULL) { spec = matrix_subspec_new(); if (spec == NULL) { p->err = E_ALLOC; return; } } #if EDEBUG > 1 fprintf(s...
build_mspec
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *build_refmask_from_model(const MODEL *pmod) { int t; int n; char *mask; n = pmod->full_n; mask = (char *)malloc(n + 1); if (mask) { memset(mask, 48, n); mask[n] = 0; for (t = pmod->t1; t <= pmod->t2; ++t) { if (fabs(pmod->uhat[t]) > 1.797693134862316e308) mask[t] = 49; }...
static char *build_refmask_from_model(const MODEL *pmod) { int t, n = pmod->full_n; char *mask = malloc(n + 1); if (mask != NULL) { memset(mask, '0', n); mask[n] = 0; for (t = pmod->t1; t <= pmod->t2; t++) { if (na(pmod->uhat[t])) { mask[t] = '1'; } } } return mask; }
build_refmask_from_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int build_stacked_series(double **pstack, int *list, int length, int offset, DATASET *dset) { int v6; int bign; int i; int err; int bigt; int t; int ta; int nv; int oldn; int j; double *xstack; err = 0; if (!dset || !dset->n) return 42; if (dataset_is_subsampled...
int build_stacked_series(double **pstack, int *list, int length, int offset, DATASET *dset) { double *xstack = NULL; int nv, oldn, bign, tmax; int i, err = 0; if (dset == NULL || dset->n == 0) { return E_NODATA; } else if (dataset_is_subsampled(dset)) { gretl_errmsg_set("stac...
build_stacked_series
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void builtin_strings_cleanup() { int i; for (i = 0; i < 12; ++i) g_free(built_ins[i].s); }
void builtin_strings_cleanup(void) { int i, n = sizeof built_ins / sizeof built_ins[0]; for (i = 0; i < n; i++) { g_free(built_ins[i].s); } }
builtin_strings_cleanup
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *bundle_file_write(NODE *l, NODE *m, NODE *r, parser *p) { int control; NODE *ret; char *s; if ((p->flags & 2) == 0) return get_aux_node(p, 54, 0, 0); s = m->v.str; control = 0; if (r && r->t != 85) control = (int)r->v.xval; ret = get_aux_node(p, 54, 0, 0); if (ret) ret->v.xval = (do...
static NODE *bundle_file_write(NODE *l, NODE *m, NODE *r, parser *p) { NODE *ret = NULL; if (starting(p)) { const char *s = m->v.str; int control = 0; if (!null_node(r)) { control = (int)r->v.xval; } ret = aux_scalar_node(p); if (ret != NULL) { ret->v.xval = gretl_bundle_write_...
bundle_file_write
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_bundle *bundle_from_model(MODEL *pmod, DATASET *dset, int *err) { char *v3; MODEL *pmoda; GretlObjType type; int i; int t; gretl_bundle *b; gretl_array *a; int *list; const char *s; void *p; double *x; double val; const char *key; gretl_matrix *m; unsigned long v19; pmoda = pmod; ...
gretl_bundle *bundle_from_model(MODEL *pmod, DATASET *dset, int *err) { gretl_bundle *b = NULL; gretl_matrix *m; gretl_array *a; double *x; double val; int *list; const char *s; const char *key; int i, t, berr; if (pmod == NULL) { GretlObjType type = 0; void *p = get_genr_model(&type); ...
bundle_from_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_bundle *bundle_from_system(void *ptr, int type, DATASET *dset, int *err) { char *v4; equation_system *ptra; GretlObjType otype; GRETL_VAR *var; equation_system *sys; gretl_bundle *b; unsigned long v13; ptra = (equation_system *)ptr; v13 = __readfsqword(0x28u); var = 0; otype = type; sys =...
gretl_bundle *bundle_from_system(void *ptr, int type, DATASET *dset, int *err) { GRETL_VAR *var = NULL; GretlObjType otype = type; equation_system *sys = NULL; gretl_bundle *b = NULL; if (ptr == NULL) { ptr = get_genr_model(&otype); if (ptr == NULL || otype == GRETL_OBJ_EQN) { ptr = get_last_mo...
bundle_from_system
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bundle_function_package_info(const char *fname, gretl_bundle *b) { return real_print_gfn_data(fname, 0, 0, 5, b); }
int bundle_function_package_info(const char *fname, gretl_bundle *b) { return real_print_gfn_data(fname, NULL, 0, FUNCS_QUERY, b); }
bundle_function_package_info
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void bundle_header(const char *name, const char *creator, int empty, PRN *prn) { if (name) { if (empty) { pprintf(prn, "bundle %s: empty\n", name); } else if (creator) { pprintf(prn, "bundle %s, created by %s:\n", name, creator); } else { pprintf(prn, "bundle %s:\n", name); } } els...
static void bundle_header(const char *name, const char *creator, int empty, PRN *prn) { if (name != NULL) { if (empty) { pprintf(prn, "bundle %s: empty\n", name); } else if (creator != NULL) { pprintf(prn, "bundle %s, created by %s:\n", name, creator); } else { ...
bundle_header
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void bundle_item_destroy(gpointer data) { bundled_item_free_data(*(GretlType *)data, *((void **)data + 1)); g_free(*((_QWORD *)data + 3)); free(*((void **)data + 2)); free(data); }
static void bundle_item_destroy(gpointer data) { bundled_item *item = data; #if BDEBUG fprintf(stderr, "bundled_item_destroy: %s\t'%s'\tdata %p\n", gretl_type_get_name(item->type), item->name, (void *)item->data); if (item->type == GRETL_TYPE_STRING) { fprintf(stderr, " string: '%s'\n", (char *)ite...
bundle_item_destroy
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *bundle_op(NODE *l, NODE *r, int f, parser *p) { NODE *ret; ret = get_aux_node(p, 58, 0, 2); if (ret && (p->flags & 2) != 0 && !p->err) { if (f == 7) ret->v.str = (char *)gretl_bundle_union(l->v.b, r->v.b, &p->err); else p->err = 37; } return ret; }
static NODE *bundle_op(NODE *l, NODE *r, int f, parser *p) { NODE *ret = aux_bundle_node(p); if (ret != NULL && starting(p)) { gretl_bundle *bl = l->v.b; gretl_bundle *br = r->v.b; if (!p->err) { if (f == B_ADD) { ret->v.b = gretl_bundle_union(bl, br, &p->err); } else { p->...
bundle_op
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bundle_pointer_arg0(NODE *t) { int result; NODE *n; NODE *n0; n = t->L; result = 0; if (n->v.bn.n_nodes > 0) { n0 = *n->v.bn.n; if (n0->t == 4 && n0->L->t == 58 && n0->L->vname) return 1; } return result; }
static int bundle_pointer_arg0(NODE *t) { NODE *n = t->L; if (n->v.bn.n_nodes > 0) { NODE *n0 = n->v.bn.n[0]; if (n0->t == U_ADDR && ubundle_node(n0->L)) { return 1; } } return 0; }
bundle_pointer_arg0
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bundle_var_count() { int i; for (i = 0; bvars[i].id; ++i) ; return i; }
int bundle_var_count(void) { int i; for (i = 0; bvars[i].id != 0; i++) ; return i; }
bundle_var_count
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *bundle_var_name(int i) { return bvars[i].str; }
const char *bundle_var_name(int i) { return bvars[i].str; }
bundle_var_name
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bundled_item_copy_in_data(bundled_item *item, void *ptr, int size) { int err; double *dp; unsigned int *up; int *ip_0; unsigned long v9; v9 = __readfsqword(0x28u); err = 0; switch (item->type) { case GRETL_TYPE_INT: item->data = malloc(4u); if (item->data) { ip_0 = (int *)item->data...
static int bundled_item_copy_in_data(bundled_item *item, void *ptr, int size) { int err = 0; switch (item->type) { case GRETL_TYPE_DOUBLE: item->data = malloc(sizeof(double)); if (item->data != NULL) { double *dp = item->data; *dp = *(double *)ptr; } break; case GRETL_TYPE_INT: ...
bundled_item_copy_in_data
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void bundled_item_free_data(GretlType type, void *data) { switch (type) { case GRETL_TYPE_MATRIX: gretl_matrix_free((gretl_matrix *)data); break; case GRETL_TYPE_BUNDLE: gretl_bundle_destroy((gretl_bundle *)data); break; case GRETL_TYPE_ARRAY: gretl_array_destroy((gretl_array *)data); br...
static void bundled_item_free_data(GretlType type, void *data) { if (type == GRETL_TYPE_MATRIX) { gretl_matrix_free((gretl_matrix *)data); } else if (type == GRETL_TYPE_BUNDLE) { gretl_bundle_destroy((gretl_bundle *)data); } else if (type == GRETL_TYPE_ARRAY) { gretl_array_destroy((gretl_array *)data)...
bundled_item_free_data
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void *bundled_item_get_data(bundled_item *item, GretlType *type, int *size) { *type = item->type; if (size) *size = item->size; return item->data; }
void *bundled_item_get_data(bundled_item *item, GretlType *type, int *size) { *type = item->type; if (size != NULL) { *size = item->size; } return item->data; }
bundled_item_get_data
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *bundled_item_get_key(bundled_item *item) { return item->name; }
const char *bundled_item_get_key(bundled_item *item) { return item->name; }
bundled_item_get_key
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *bundled_item_get_note(bundled_item *item) { return item->note; }
const char *bundled_item_get_note(bundled_item *item) { return item->note; }
bundled_item_get_note
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
bundled_item *bundled_item_new(GretlType type, void *ptr, int size, int copy, const char *note, int *err) { bundled_item *item; item = (bundled_item *)malloc(0x20u); if (item) { item->type = type; item->size = 0; item->name = 0; item->note = 0; if (copy || item-...
static bundled_item *bundled_item_new(GretlType type, void *ptr, int size, int copy, const char *note, int *err) { bundled_item *item = malloc(sizeof *item); if (item == NULL) { *err = E_ALLOC; return NULL; } item->type = type; item->size = 0; item->name = NUL...
bundled_item_new
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bundled_item_replace_data(bundled_item *item, void *ptr, int size, int copy) { int err; err = 0; if (ptr == item->data) return 0; if (item->type == GRETL_TYPE_DOUBLE || item->type == GRETL_TYPE_INT || item->type == GRETL_TYPE_UNSIGNED) { switch (item->type) { ...
static int bundled_item_replace_data(bundled_item *item, void *ptr, int size, int copy) { int err = 0; if (ptr == item->data) { return 0; } if (bundled_scalar(item->type)) { if (item->type == GRETL_TYPE_DOUBLE) { double *dp = item->data; *dp = *(doubl...
bundled_item_replace_data
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_bundle *bundlize_diag_test(const equation_system *sys) { _BYTE df_0[12]; double test; double pval; *(_DWORD *)&df_0[8] = 0; test = NAN; pval = NAN; *(_QWORD *)df_0 = (unsigned int)(sys->S->rows * (sys->S->rows - 1) / 2); if (sys->method || sys->iters <= 0) { test = sys->diag_test; pval = ...
static gretl_bundle *bundlize_diag_test(const equation_system *sys) { gretl_bundle *b = NULL; double test = NADBL; double pval = NADBL; int k = sys->S->rows; int df = k * (k - 1) / 2; if (sys->method == SYS_METHOD_SUR && sys->iters > 0) { if (!na(sys->ldet) && sys->diag_test > 0.0) { test = sys->...
bundlize_diag_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bundlize_model_data_items(const MODEL *pmod, gretl_bundle *b) { int i; int ia; int err; model_data_item *item; gretl_matrix *m; ModelTest *test; const char *tkey; gretl_bundle *bt; char bkey[40]; unsigned long v12; v12 = __readfsqword(0x28u); err = 0; for (i = 0; i < pmod->n_data_items &&...
int bundlize_model_data_items(const MODEL *pmod, gretl_bundle *b) { model_data_item *item; char bkey[VNAMELEN]; gretl_matrix *m; double xval; int i, ival; int err = 0; for (i = 0; i < pmod->n_data_items && !err; i++) { item = pmod->data_items[i]; item_key_to_bundle_key(bkey, item->key); if (g...
bundlize_model_data_items
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_bundle *bundlize_test(const ModelTest *src) { gretl_bundle *b; b = gretl_bundle_new(); if (!b) return 0; if (src->param && *src->param) gretl_bundle_set_string(b, "param", src->param); if (src->dfn > 0) gretl_bundle_set_scalar(b, "dfn", (double)src->dfn); if (src->dfd > 0.0) gretl_bun...
static gretl_bundle *bundlize_test(const ModelTest *src) { gretl_bundle *b = gretl_bundle_new(); if (b == NULL) { return NULL; } if (src->param != NULL && *src->param != '\0') { gretl_bundle_set_string(b, "param", src->param); } if (src->dfn > 0) { gretl_bundle_set_scalar(b, "dfn", (double)sr...
bundlize_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int butterworth_filter(const double *x, double *bw, const DATASET *dset, int n, double cutoff) { const double *xa; int t1; int t2; int t; int bad_lambda; int err; int T; int m; double lam1; double lam2; double *y; double *g; double *ds_0; double *tmp; unsigned long v...
int butterworth_filter(const double *x, double *bw, const DATASET *dset, int n, double cutoff) { double *g, *ds, *tmp, *y; double lam1, lam2 = 1.0; int t1 = dset->t1, t2 = dset->t2; int T, t, m; int bad_lambda = 0; int err = 0; err = series_adjust_sample(x, &t1, &t2); if (err) { ...
butterworth_filter
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *butterworth_gain(int n, double cutoff, int hipass) { double v4; double v5; double v6; int i; double x; double omega; gretl_matrix *G; omega = 0.0; G = gretl_matrix_alloc(181, 2); if (!G) return 0; for (i = 0; i <= 180; ++i) { if (hipass) { v5 = cotan(omega / 2.0); ...
gretl_matrix *butterworth_gain(int n, double cutoff, int hipass) { gretl_matrix *G; int i, width = 180; double inc = M_PI / width; double x, gain, omega = 0.0; G = gretl_matrix_alloc(width + 1, 2); if (G == NULL) { return NULL; } for (i = 0; i <= width; i++) { if (hipass) { x = cotan(ome...
butterworth_gain
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_bundle *bvar_get_bundle(NODE *n, parser *p) { GretlType type; gretl_bundle *b; void *ptr; gretl_bundle *tmp; unsigned long v7; v7 = __readfsqword(0x28u); b = 0; switch (n->v.bn.n_nodes) { case 0x63: return bundle_from_model(0, p->dset, &p->err); case 0x64: return bundle_from_system(0,...
static gretl_bundle *bvar_get_bundle(NODE *n, parser *p) { gretl_bundle *b = NULL; if (n->v.idnum == B_MODEL) { b = bundle_from_model(NULL, p->dset, &p->err); } else if (n->v.idnum == B_SYSTEM) { b = bundle_from_system(NULL, 0, p->dset, &p->err); } else if (n->v.idnum == B_SYSINFO) { gretl_bundle *...
bvar_get_bundle
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bvar_lookup(const char *s) { int i; for (i = 0; bvars[i].id; ++i) { if (!strcmp(s, bvars[i].str)) return bvars[i].id; } return 0; }
int bvar_lookup(const char *s) { int i; for (i = 0; bvars[i].id != 0; i++) { if (!strcmp(s, bvars[i].str)) { return bvars[i].id; } } return 0; }
bvar_lookup
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *bvarname(int t) { int i; for (i = 0; bvars[i].id; ++i) { if (t == bvars[i].id) return bvars[i].str; } return "unknown"; }
const char *bvarname(int t) { int i; for (i = 0; bvars[i].id != 0; i++) { if (t == bvars[i].id) { return bvars[i].str; } } return "unknown"; }
bvarname
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double bvnorm_cdf(double rho, double a, double b) { double v4; double v5; double v7; if (fabs(rho) > 1.0) return NAN; if (rho == 0.0) { v7 = normal_cdf(a); return normal_cdf(b) * v7; } else if (rho == 1.0) { if (b <= a) v4 = b; else v4 = a; return normal_cdf(v4); } els...
double bvnorm_cdf(double rho, double a, double b) { if (fabs(rho) > 1) { return NADBL; } if (rho == 0.0) { return normal_cdf(a) * normal_cdf(b); } if (rho == 1.0) { return normal_cdf(a < b ? a : b); } if (rho == -1.0) { return (a <= b) ? 0 : normal_cdf(a) - normal_cdf(b); } #if GE...
bvnorm_cdf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *bvnorm_node(NODE *n, parser *p) { double v3; double v4; double *v5; double v6; double v7; double *v8; int r; int c; int i; int mode; int t; int i_0; int n_0; NODE *ret; double *avec; double *bvec; gretl_matrix *amat; gretl_matrix *bmat; double rho; gretl_matrix *m; NODE *...
static NODE *bvnorm_node(NODE *n, parser *p) { NODE *ret = NULL; if (starting(p)) { NODE *save_aux = p->aux; double *avec = NULL, *bvec = NULL; gretl_matrix *amat = NULL, *bmat = NULL; double a, b, args[2]; double rho = NADBL; NODE *e; int i, mode = 0; for (i = 0; i < 3 && !p->err;...
bvnorm_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double bw_max_mod(double cut, int n) { double v2; double tc; double theta; double delta; double y; tc = tan(cut / 2.0); theta = 3.141592653589793 / (double)(2 * n); v2 = sin(theta); delta = (v2 + v2 + tc) * tc + 1.0; y = cos(theta) * (tc + tc) / delta; return sqrt((1.0 - tc * tc) / delta * ((1.0 ...
static double bw_max_mod(double cut, int n) { double tc = tan(cut / 2); double theta = M_PI / (2 * n); double delta = 1 + tc * (2 * sin(theta) + tc); double x = (1 - tc * tc) / delta; double y = 2 * tc * cos(theta) / delta; return sqrt(x * x + y * y); }
bw_max_mod
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
complex_double c_xy_calc(complex_double x, complex_double y, int op, parser *p) { double real; double v5; double v6; double v7; double v8; complex_double result; double imag; imag = x.imag; if (op == 6 || op == 34) { real = y.real; v5 = y.imag; } else { switch (...
static double complex c_xy_calc(double complex x, double complex y, int op, parser *p) { if (op == B_ASN || op == B_DOTASN) { return y; } switch (op) { case B_ADD: return x + y; case B_SUB: return x - y; case B_MUL: return x * y; case B_DIV: return x / ...
c_xy_calc
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *calc_get_matrix(gretl_matrix **pM, int r, int c) { if (!*pM) return gretl_matrix_alloc(r, c); if (r == (*pM)->rows && c == (*pM)->cols) return *pM; if (c == (*pM)->rows && r == (*pM)->cols) { (*pM)->rows = r; (*pM)->cols = c; return *pM; } else { gretl_matrix_free(*pM); ...
static gretl_matrix *calc_get_matrix(gretl_matrix **pM, int r, int c) { if (*pM == NULL) { return gretl_matrix_alloc(r, c); } else if ((*pM)->rows == r && (*pM)->cols == c) { return *pM; } else if ((*pM)->rows == c && (*pM)->cols == r) { (*pM)->rows = r; (*pM)->cols = c; return *pM; } els...
calc_get_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int calc_pivot(uint32_t v) { long v2; if (pivot_calc_tbl[(unsigned char)v]) return pivot_calc_tbl[(unsigned char)v] + 23; if (pivot_calc_tbl[BYTE1(v)]) return pivot_calc_tbl[BYTE1(v)] + 15; if (pivot_calc_tbl[BYTE2(v)]) return pivot_calc_tbl[BYTE2(v)] + 7; v2 = HIBYTE(v); if (pivot_calc_tbl[v2]...
static int calc_pivot(uint32_t v) { int p1, p2, p3, p4; p1 = pivot_calc_tbl[v & 0xff]; if (p1) { return p1 + 24 - 1; } p2 = pivot_calc_tbl[(v >> 8) & 0xff]; if (p2) { return p2 + 16 - 1; } p3 = pivot_calc_tbl[(v >> 16) & 0xff]; if (p3) { return p3 + 8 - 1; } p4 = pivot_calc_tbl[(v >> ...
calc_pivot
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void calculate_Tbar(panelmod_t *pan) { int i; double den; if (pan->balanced) { pan->Tbar = (double)pan->Tmax; } else { den = 0.0; for (i = 0; i < pan->nunits; ++i) { if (pan->unit_obs[i] > 0) den = 1.0 / (double)pan->unit_obs[i] + den; } pan->Tbar = (double)pan->effn / den; ...
static void calculate_Tbar(panelmod_t *pan) { int i; if (pan->balanced) { pan->Tbar = pan->Tmax; } else { double den = 0.0; for (i = 0; i < pan->nunits; i++) { if (pan->unit_obs[i] > 0) { den += 1.0 / pan->unit_obs[i]; } } pan->Tbar = pan->effn / den; } }
calculate_Tbar
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int caldate_precheck(const char *s, int *y2, int *slashed) { int ok; int n; n = strlen(s); ok = 0; if (n <= 7 || ((*__ctype_b_loc())[*s] & 0x800) == 0 || ((*__ctype_b_loc())[s[1]] & 0x800) == 0) return 0; if (n == 10) { if (s[4] == 45 && s[7] == 45) { return 1; } else if (s[4] == 47...
static int caldate_precheck(const char *s, int *y2, int *slashed) { int n = strlen(s); int ok = 0; if (n < 8 || !isdigit(s[0]) || !isdigit(s[1])) { return 0; } if (n == 10) { if (s[4] == '-' && s[7] == '-') { ok = 1; } else if (s[4] == '/' && s[7] == '/') { *slashed = 1; ok = ...
caldate_precheck
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int calendar_date_string(char *targ, int t, const DATASET *dset) { unsigned int pd; char *v4; int y; int m; int d; guint32 dt; int err; guint32 d0; int wd; unsigned long v14; v14 = __readfsqword(0x28u); dt = 0; err = 0; *targ = 0; d0 = (int)dset->sd0; if (dset->pd == 52) { dt = 7 * ...
int calendar_date_string(char *targ, int t, const DATASET *dset) { guint32 d0, dt = 0; int y, m, d; int err = 0; *targ = '\0'; d0 = (guint32)dset->sd0; if (dset->pd == 52) { dt = d0 + 7 * t; } else if (dset->pd == 7) { dt = d0 + t; } else { if (t == 0 && dset->pd == 5) { int wd = we...
calendar_date_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int calendar_obs_number(const char *datestr, const DATASET *dset) { unsigned long v3; guint32 t; guint32 ta; guint32 ed0; unsigned int wkends; ed0 = (int)dset->sd0; t = get_epoch_day(datestr); if (!t || t < ed0) return -1; if (t == ed0) return 0; ta = t - ed0; if (!ta) return -1; if...
int calendar_obs_number(const char *datestr, const DATASET *dset) { guint32 ed0 = (guint32)dset->sd0; guint32 t = get_epoch_day(datestr); #ifdef CAL_DEBUG fprintf(stderr, "calendar_obs_number: '%s' gave epoch day = %u\n", datestr, t); #endif if (t <= 0 || t < ed0) { return -1; } else if (t == ...
calendar_obs_number
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int call_bundle_to_json(gretl_bundle *b, const char *fname, int control) { char controla; gretlopt opt; int (*jfunc)(gretl_bundle *, const char *, gretlopt); controla = control; jfunc = (int (*)(gretl_bundle *, const char *, gretlopt))get_plugin_function( "bundle_to_json"); if (!jfunc) return 11;...
static int call_bundle_to_json(gretl_bundle *b, const char *fname, int control) { int (*jfunc)(gretl_bundle *, const char *, gretlopt); jfunc = get_plugin_function("bundle_to_json"); if (jfunc == NULL) { return E_FOPEN; } else { gretlopt opt = OPT_NONE; if (control &...
call_bundle_to_json
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int call_pca_plugin(VMatrix *cmat, DATASET *dset, gretlopt opt, PRN *prn) { int (*pca_from_cmatrix)(VMatrix *, DATASET *, gretlopt, PRN *); gretl_error_clear(); pca_from_cmatrix = (int (*)(VMatrix *, DATASET *, gretlopt, PRN *))get_plugin_function("pca_from_cmatrix"); if (pca_from...
int call_pca_plugin(VMatrix *cmat, DATASET *dset, gretlopt opt, PRN *prn) { int (*pca_from_cmatrix)(VMatrix *, DATASET *, gretlopt, PRN *); gretl_error_clear(); pca_from_cmatrix = get_plugin_function("pca_from_cmatrix"); if (pca_from_cmatrix == NULL) { return 1; } return (*pca_from_cmatrix)(cmat, dse...
call_pca_plugin
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void callback_exec(ExecState *s, char *fname, int err) { if (!err && s->callback) { if (s->cmd->ci == 90) s->callback(s, fname, GRETL_OBJ_NULL); else s->callback(s, 0, GRETL_OBJ_NULL); } s->flags &= ~0x20u; s->cmd->savename[0] = 0; }
static void callback_exec(ExecState *s, char *fname, int err) { if (!err && s->callback != NULL) { if (s->cmd->ci == OPEN) { s->callback(s, fname, 0); } else { s->callback(s, NULL, 0); } } s->flags &= ~CALLBACK_EXEC; *s->cmd->savename = '\0'; }
callback_exec
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int callback_scheduled(ExecState *s) { return ((unsigned int)s->flags >> 5) & 1; }
static int callback_scheduled(ExecState *s) { return (s->flags & CALLBACK_EXEC) ? 1 : 0; }
callback_scheduled
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int cast_series_to_list(parser *p, NODE *n, short f) { if (p->tree->t == 488) return 0; if (p->targ != 56 || n->t != 55 || n->vnum < 0) return 0; return f == 273 || f == 295 || f == 296 || f == 297 || f == 301; }
static int cast_series_to_list(parser *p, NODE *n, short f) { if (p->tree->t == F_GENSERIES) { return 0; } else if (p->targ == LIST && useries_node(n)) { return (f == F_LOG || f == F_DIFF || f == F_LDIFF || f == F_SDIFF || f == F_ODEV); } else { return 0; } }
cast_series_to_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void cast_to_series(NODE *n, int f, gretl_matrix **tmp, int *t1, int *t2, parser *p) { int v6; char *m; m = n->v.str; if (m) { if (*((_DWORD *)m + 1) == 1) { v6 = *(_DWORD *)m; } else if (*(_DWORD *)m == 1) { v6 = *((_DWORD *)m + 1); } else { v6 = 0; } } ...
static void cast_to_series(NODE *n, int f, gretl_matrix **tmp, int *t1, int *t2, parser *p) { gretl_matrix *m = n->v.m; int len = gretl_vector_get_length(m); if (gretl_is_null_matrix(m)) { p->err = E_DATA; } else if (m->is_complex) { node_type_error(f, 1, SERIES, n, p); } e...
cast_to_series
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int catch_setobs_errors(const char *stobs, int pd, int min, int structure) { _BOOL4 v4; char *v5; char *v6; char *v7; char *v8; char *v9; int err; v4 = structure == 2 || structure == 3; err = 0; if (pd == 1) { if (min <= 0) { if (v4) { v6 = gettext("panel data must have frequency ...
static int catch_setobs_errors(const char *stobs, int pd, int min, int structure) { int panel = structure == STACKED_TIME_SERIES || structure == STACKED_CROSS_SECTION; int err = 0; if (pd == 1) { if (min > 0) { gretl_errmsg_set(_("no ':' allowed in starting obs with...
catch_setobs_errors
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int categorize_variable(int vnum, const equation_system *sys, int *col, int *lag) { int pos; int ret; int v; ret = -1; *lag = 0; pos = in_gretl_list(sys->ylist, vnum); if (pos <= 0) { pos = in_gretl_list(sys->xlist, vnum); if (pos <= 0) { v = get_predet_parent(sys, v...
static int categorize_variable(int vnum, const equation_system *sys, int *col, int *lag) { int pos, ret = -1; *lag = 0; pos = in_gretl_list(sys->ylist, vnum); if (pos > 0) { ret = ENDOG; } else { pos = in_gretl_list(sys->xlist, vnum); if (pos > 0) { ret = EXO...
categorize_variable
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int cauchy_(int *n, double *x, double *l, double *u, int *nbd, double *g, int *iorder, int *iwhere, double *t, double *d__, double *xcp, int *m, double *wy, double *ws, double *sy, double *wt, double *theta, int *col, int *head, double *p, double *c__, double *wbp, double...
static int cauchy_(int *n, double *x, double *l, double *u, int *nbd, double *g, int *iorder, int *iwhere, double *t, double *d__, double *xcp, int *m, double *wy, double *ws, double *sy, double *wt, double *theta, int *col, int *head, double *p, ...
cauchy_
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *cdummify_func(NODE *n, parser *p) { int *list; NODE *ret; unsigned long v5; v5 = __readfsqword(0x28u); ret = aux_list_node(p); if (ret && (p->flags & 2) != 0) { list = 0; if (n->t == 56) { list = gretl_list_copy(n->v.ivec); } else if (n->t == 55 && n->vnum >= 0) { list = gretl...
static NODE *cdummify_func(NODE *n, parser *p) { NODE *ret = aux_list_node(p); if (ret != NULL && starting(p)) { int *list = NULL; if (n->t == LIST) { list = gretl_list_copy(n->v.ivec); } else if (useries_node(n)) { list = gretl_list_new(1); list[1] = n->vnum; } else { p->e...
cdummify_func
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double cephes_bessel_I0(double x) { double v2; double v3; double xa; xa = x; if (x < 0.0) xa = -x; v2 = exp(xa); if (xa <= 8.0) return chbevl(xa / 2.0 - 2.0, A_0, 30) * v2; v3 = chbevl(32.0 / xa - 2.0, B_0, 25) * v2; return v3 / sqrt(xa); }
double cephes_bessel_I0(double x) { double y; if (x < 0) x = -x; if (x <= 8.0) { y = (x / 2.0) - 2.0; return exp(x) * chbevl(y, A, 30); } return exp(x) * chbevl(32.0 / x - 2.0, B, 25) / sqrt(x); }
cephes_bessel_I0
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double cephes_bessel_I1(double x) { double v2; double v3; double v4; double z; double za; z = fabs(x); if (z > 8.0) { v3 = exp(z); v4 = chbevl(32.0 / z - 2.0, B_1, 25) * v3; za = v4 / sqrt(z); } else { v2 = chbevl(z / 2.0 - 2.0, A_1, 29) * z; za = exp(z) * v2; } if (x >= 0.0) ...
double cephes_bessel_I1(double x) { double y, z = fabs(x); if (z <= 8.0) { y = (z / 2.0) - 2.0; z = chbevl(y, A, 29) * z * exp(z); } else { z = exp(z) * chbevl(32.0 / z - 2.0, B, 25) / sqrt(z); } return (x < 0.0) ? -z : z; }
cephes_bessel_I1
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double cephes_bessel_Iv(double v, double x) { double v3; double v4; double v5; double va; int sign; double t; double ta; va = v; t = floor(v); if (va < 0.0 && t == va) { *(_QWORD *)&va ^= 0x8000000000000000LL; t = va; } sign = 1; if (x < 0.0) { if (t != va) { mtherr("iv", 1)...
double cephes_bessel_Iv(double v, double x) { double ax, t = floor(v); int sign; if (v < 0.0 && t == v) { t = v = -v; } sign = 1; if (x < 0.0) { if (t != v) { mtherr("iv", CEPHES_DOMAIN); return 0.0; } if (v != 2.0 * floor(v / 2.0)) sign = -1; } if (x == 0.0) { i...
cephes_bessel_Iv
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double cephes_bessel_Jn(int n, double x) { double v3; double xa; int na; int k; int ka; int sign; double pkm1; double pk; double pka; double r; double ans; double ansa; double pkm2; na = n; xa = x; if (n >= 0) { sign = 1; } else { na = -n; if ((-(char)n & 1) != 0) si...
double cephes_bessel_Jn(int n, double x) { double pkm2, pkm1, pk, xk, r, ans; int k, sign; if (n < 0) { n = -n; if ((n & 1) == 0) sign = 1; else sign = -1; } else { sign = 1; } if (x < 0.0) { if (n & 1) sign = -sign; x = -x; } if (n == 0) return sign * ce...
cephes_bessel_Jn
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double cephes_bessel_Jv(double n, double x) { double v3; double v4; double v5; double v6; double v7; double v8; double v9; double v11; double xa; double na; int sign; int nint; int i; double k; double t; double y; double q; double an; unsigned long v22; na = n; xa = x; v22 =...
double cephes_bessel_Jv(double n, double x) { double k, q, t, y, an; int i, sign, nint; nint = 0; sign = 1; an = fabs(n); y = floor(an); if (y == an) { nint = 1; i = an - 16384.0 * floor(an / 16384.0); if (n < 0.0) { if (i & 1) sign = -sign; n = an; } if (x < 0.0)...
cephes_bessel_Jv
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double cephes_bessel_K0(double x) { double v2; double v3; double v4; double v5; if (x > 0.0) { if (x > 2.0) { v4 = exp(COERCE_DOUBLE(*(_QWORD *)&x ^ 0x8000000000000000LL)); v5 = chbevl(8.0 / x - 2.0, B_2, 25) * v4; return v5 / sqrt(x); } else { v2 = chbevl(x * x - 2.0, A_2, 10...
double cephes_bessel_K0(double x) { double y, z; if (x <= 0.0) { mtherr("k0", CEPHES_DOMAIN); return MAXNUM; } if (x <= 2.0) { y = x * x - 2.0; y = chbevl(y, A, 10) - log(0.5 * x) * cephes_bessel_I0(x); return y; } z = 8.0 / x - 2.0; y = exp(-x) * chbevl(z, B, 25) / sqrt(x); retu...
cephes_bessel_K0
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double cephes_bessel_K1(double x) { double v2; double v3; double v4; double v5; if (0.5 * x > 0.0) { if (x > 2.0) { v4 = exp(COERCE_DOUBLE(*(_QWORD *)&x ^ 0x8000000000000000LL)); v5 = chbevl(8.0 / x - 2.0, B_3, 25) * v4; return v5 / sqrt(x); } else { v2 = log(0.5 * x); v...
double cephes_bessel_K1(double x) { double y, z; z = 0.5 * x; if (z <= 0.0) { mtherr("k1", CEPHES_DOMAIN); return MAXNUM; } if (x <= 2.0) { y = x * x - 2.0; y = log(z) * cephes_bessel_I1(x) + chbevl(y, A, 11) / x; return y; } return exp(-x) * chbevl(8.0 / x - 2.0, B, 25) / sqrt(x); ...
cephes_bessel_K1
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double cephes_bessel_Kn(int nn, double x) { double v3; double v4; int i; int ia; int ib; int n; double k; double ka; double kf; double nk1f; double nk1fa; double nkf; double zn; double t; double ta; double tb; double s; double sa; double sb; double sc; double sd; double ans; ...
double cephes_bessel_Kn(int nn, double x) { double k, kf, nk1f, nkf, zn, t, s, z0, z; double ans, fn, pn, pk, zmn, tlg, tox; int i, n; if (nn < 0) n = -nn; else n = nn; if (n > MAXFAC) { overf: mtherr("kn", CEPHES_OVERFLOW); return MAXNUM; } if (x <= 0.0) { if (x < 0.0) mt...
cephes_bessel_Kn
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double cephes_bessel_Yn(int n, double x) { int na; int k; int sign; double anm1; double anm2; double r; double an; na = n; if (n >= 0) { sign = 1; } else { na = -n; if ((-(char)n & 1) != 0) sign = -1; else sign = 1; } if (!na) return cephes_y0(x) * (double)sign; ...
double cephes_bessel_Yn(int n, double x) { double an, anm1, anm2, r; int k, sign; if (n < 0) { n = -n; if ((n & 1) == 0) sign = 1; else sign = -1; } else { sign = 1; } if (n == 0) return sign * cephes_y0(x); if (n == 1) return sign * cephes_y1(x); if (x <= 0.0) { ...
cephes_bessel_Yn
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double cephes_bessel_Yv(double v, double x) { double v3; double v4; double v5; double t; if (floor(v) == v) return cephes_bessel_Yn((int)v, x); t = PI * v; v3 = cos(PI * v); v4 = cephes_bessel_Jv(v, x) * v3; v5 = v4 - cephes_bessel_Jv(-v, x); return v5 / sin(t); }
double cephes_bessel_Yv(double v, double x) { double y, t; int n; y = floor(v); if (y == v) { n = v; y = cephes_bessel_Yn(n, x); return y; } t = PI * v; y = (cos(t) * cephes_bessel_Jv(v, x) - cephes_bessel_Jv(-v, x)) / sin(t); return y; }
cephes_bessel_Yv
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double cephes_erf(double x) { double v2; int err; unsigned long v5; v5 = __readfsqword(0x28u); err = 0; if (fabs(x) > 1.0) return 1.0 - cephes_erfc(x, &err); v2 = polevl(x * x, T, 4) * x; return v2 / p1evl(x * x, U, 5); }
static double cephes_erf(double x) { double y, z; int err = 0; if (fabs(x) > 1.0) { return 1.0 - cephes_erfc(x, &err); } z = x * x; y = x * polevl(z, T, 4) / p1evl(z, U, 5); return y; }
cephes_erf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double cephes_erfc(double a, int *err) { double p; double q; double x; double y; double z; if (a >= 0.0) x = a; else x = -a; if (x < 1.0) return 1.0 - cephes_erf(a); if (-MAXLOG <= -a * a) { z = expx2(a, -1); if (x >= 8.0) { p = polevl(x, R, 5); q = p1evl(x, S, 6); ...
static double cephes_erfc(double a, int *err) { double p, q, x, y, z; if (a < 0.0) { x = -a; } else { x = a; } if (x < 1.0) { return 1.0 - cephes_erf(a); } z = -a * a; if (z < -MAXLOG) { under: #if 0 mtherr("erfc", CEPHES_UNDERFLOW); #else *err = 1; #endif if (a < 0) { r...
cephes_erfc
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double cephes_exp(double x) { double v1; double xa; double r; xa = x; if (fabs(x) <= 1.797693134862316e308) { if (x >= -0.5 && x <= 0.5) { r = polevl(x * x, EP, 2) * x; v1 = polevl(xa * xa, EQ, 3); return r / (v1 - r) + r / (v1 - r); } else { return exp(x) - 1.0; } } els...
double cephes_exp(double x) { double r, xx; if (isnan(x)) { return x; } if (!isfinite(x)) { return (x < 0) ? -1.0 : x; } if (x < -0.5 || x > 0.5) { return exp(x) - 1.0; } xx = x * x; r = x * polevl(xx, EP, 2); r = r / (polevl(xx, EQ, 3) - r); return r + r; }
cephes_exp
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double cephes_gamma(double x) { double v1; double xa; double xb; double z; double za; double zb; double zc; long q; double p; double pa; xa = x; cephes_sgngam = 1; if (fabs(x) <= 1.797693134862316e308) { q = *(_QWORD *)&x & 0x7FFFFFFFFFFFFFFFLL; if (COERCE_DOUBLE(*(_QWORD *)&x & 0x7FF...
double cephes_gamma(double x) { double p, q, z; int i; cephes_sgngam = 1; if (isnan(x)) { return x; } if (!isfinite(x)) { return (x < 0) ? NAN : x; } q = fabs(x); if (q > 33.0) { if (x < 0.0) { p = floor(q); if (p == q) { gamnan: mtherr_with_arg("gamma", CEPH...
cephes_gamma
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double cephes_hankel(double n, double x) { double v3; double v4; int flag; double t; double u; double ua; double ub; double k; double ka; double sign; double conv; __int128 p; double j; double ja; __int128 pp; double m; double z; m = 4.0 * n * n; j = 1.0; z = 8.0 * x; k = 1.0;...
double cephes_hankel(double n, double x) { double t, u, z, k, sign, conv; double p, q, j, m, pp, qq; int flag; m = 4.0 * n * n; j = 1.0; z = 8.0 * x; k = 1.0; p = 1.0; u = (m - 1.0) / z; q = u; sign = 1.0; conv = 1.0; flag = 0; t = 1.0; pp = 1.0e38; qq = 1.0e38; while (t > MACHEP) { ...
cephes_hankel
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double cephes_j0(double x) { double v2; double v3; double v4; double v5; double v6; double xa; double q; double qa; double p; double pa; double xn; double z; xa = x; if (x < 0.0) xa = -x; if (xa > 5.0) { q = 25.0 / (xa * xa); v2 = polevl(q, PP, 6); pa = v2 / polevl(q, PQ, ...
double cephes_j0(double x) { double w, z, p, q, xn; if (x < 0) x = -x; if (x <= 5.0) { z = x * x; if (x < 1.0e-5) return 1.0 - z / 4.0; p = (z - DR1) * (z - DR2); p = p * polevl(z, RP, 3) / p1evl(z, RQ, 8); return p; } w = 5.0 / x; q = 25.0 / (x * x); p = polevl(q, PP, 6)...
cephes_j0
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double cephes_j1(double x) { double v1; double v3; double v4; double v5; double v6; double w; double z; double p; double q; double xn; w = x; if (x < 0.0) w = -x; if (w > 5.0) { z = 5.0 / x * (5.0 / x); v3 = polevl(z, PP_0, 6); p = v3 / polevl(z, PQ_0, 6); v4 = polevl(z, Q...
double cephes_j1(double x) { double z, p, q, xn, w = x; if (x < 0) w = -x; if (w <= 5.0) { z = x * x; w = polevl(z, RP, 3) / p1evl(z, RQ, 8); w = w * x * (z - Z1) * (z - Z2); return w; } w = 5.0 / x; z = w * w; p = polevl(z, PP, 6) / polevl(z, PQ, 6); q = polevl(z, QP, 7) / p1evl(...
cephes_j1
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double cephes_lgamma(double x) { return lgam(x); }
double cephes_lgamma(double x) { return lgam(x); }
cephes_lgamma
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double cephes_log(double x) { double v3; double z; z = x + 1.0; if (x + 1.0 < 0.7071067811865476 || z > 1.414213562373095) return log(z); v3 = polevl(x, LP, 6) * (x * x); return x + v3 / p1evl(x, LQ, 6) * x + x * x * -0.5; }
double cephes_log(double x) { double z = 1.0 + x; if (z < SQRTH || z > SQRT2) { return log(z); } z = x * x; z = -0.5 * z + x * (z * polevl(x, LP, 6) / p1evl(x, LQ, 6)); return x + z; }
cephes_log
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double cephes_y0(double x) { double v2; double v3; double v4; double v5; double v6; double v7; double w; double z; double p; double q; double xn; if (x > 5.0) { z = 25.0 / (x * x); v3 = polevl(z, PP, 6); p = v3 / polevl(z, PQ, 6); v4 = polevl(z, QP, 7); q = v4 / p1evl(z, QQ,...
double cephes_y0(double x) { double w, z, p, q, xn; if (x <= 5.0) { if (x <= 0.0) { mtherr("cephes_y0", CEPHES_DOMAIN); return -MAXNUM; } z = x * x; w = polevl(z, YP, 7) / p1evl(z, YQ, 7); w += TWOOPI * log(x) * cephes_j0(x); return w; } w = 5.0 / x; z = 25.0 / (x * x); ...
cephes_y0
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double cephes_y1(double x) { double v2; double v3; double v4; double v5; double v6; double v7; double w; double z; double p; double q; double xn; if (x > 5.0) { z = 5.0 / x * (5.0 / x); v3 = polevl(z, PP_0, 6); p = v3 / polevl(z, PQ_0, 6); v4 = polevl(z, QP_0, 7); q = v4 / p...
double cephes_y1(double x) { double w, z, p, q, xn; if (x <= 5.0) { if (x <= 0.0) { mtherr("y1", CEPHES_DOMAIN); return -MAXNUM; } z = x * x; w = x * (polevl(z, YP, 5) / p1evl(z, YQ, 8)); w += TWOOPI * (cephes_j1(x) * log(x) - 1.0 / x); return w; } w = 5.0 / x; z = w * w;...
cephes_y1
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int char_count(char c, const char *s) { int n; n = 0; while (*s) { if (c == *s) ++n; ++s; } return n; }
static int char_count(char c, const char *s) { int n = 0; while (*s) { if (*s == c) n++; s++; } return n; }
char_count
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int char_len(const char *s) { if (ea_0 < 0) ea_0 = east_asian_locale(); if (!(unsigned int)g_utf8_validate(s, -1, 0)) return strlen(s); if (ea_0) return glyph_count(s); return g_utf8_strlen(s, -1); }
static int char_len(const char *s) { static int ea = -1; if (ea < 0) { ea = east_asian_locale(); } if (g_utf8_validate(s, -1, NULL)) { return ea ? glyph_count(s) : g_utf8_strlen(s, -1); } else { return strlen(s); } }
char_len
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int char_past_point(parser *p) { int i; if (*p->point) { for (i = 1; p->point[i]; ++i) { if (((*__ctype_b_loc())[p->point[i]] & 0x2000) == 0) return p->point[i]; } } return 0; }
static int char_past_point(parser *p) { if (*p->point != '\0') { int i; for (i = 1; p->point[i] != '\0'; i++) { if (!isspace(p->point[i])) { return p->point[i]; } } } return 0; }
char_past_point
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double chbevl(double x, double *array, int n) { double *v3; int i; double b0; double b1; double *p; double b2; p = array + 1; b0 = *array; b1 = 0.0; i = n - 1; do { b2 = b1; b1 = b0; v3 = p++; b0 = *v3 + x * b0 - b2; --i; } while (i); return 0.5 * (b0 - b2); }
double chbevl(double x, double *array, int n) { double b0, b1, b2, *p = array; int i; b0 = *p++; b1 = 0.0; i = n - 1; do { b2 = b1; b1 = b0; b0 = x * b1 - b2 + *p++; } while (--i); return 0.5 * (b0 - b2); }
chbevl
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double chdtr(double df_0, double x) { if (x >= 0.0 && df_0 >= 1.0) return igam(df_0 / 2.0, x / 2.0); mtherr("chdtr", 1); return 0.0; }
double chdtr(double df, double x) { if (x < 0.0 || df < 1.0) { mtherr("chdtr", CEPHES_DOMAIN); return 0.0; } return igam(df / 2.0, x / 2.0); }
chdtr
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double chdtrc(double df_0, double x) { if (x >= 0.0 && df_0 >= 1.0) return igamc(df_0 / 2.0, x / 2.0); mtherr("chdtrc", 1); return 0.0; }
double chdtrc(double df, double x) { if (x < 0.0 || df < 1.0) { mtherr("chdtrc", CEPHES_DOMAIN); return 0.0; } return igamc(df / 2.0, x / 2.0); }
chdtrc
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double chdtri(double df_0, double y) { double x; if (y >= 0.0 && y <= 1.0 && df_0 >= 1.0) { x = igami(df_0 * 0.5, y); return x + x; } else { mtherr("chdtri", 1); return 0.0; } }
double chdtri(double df, double y) { double x; if (y < 0.0 || y > 1.0 || df < 1.0) { mtherr("chdtri", CEPHES_DOMAIN); return 0.0; } x = igami(0.5 * df, y); return 2.0 * x; }
chdtri
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int check_R_depends(const char *s) { const char *sa; const char *sb; const char *sc; int err; err = 0; if (!strncmp(s, "R ", 2u)) { sa = &s[strcspn(s + 2, " ") + 2]; if (*sa) { LABEL_9: sa += strcspn(sa, " "); while (*sa) { if (err) break; sb = &sa[strspn(s...
static int check_R_depends(const char *s) { int err = 0; if (strncmp(s, "R ", 2)) { err = E_DATA; } else { s += 2; s += strcspn(s, " "); if (*s == '\0') { err = E_DATA; } else { s += strcspn(s, " "); while (*s && !err) { s += strspn(s, " "); if (*s == '\0')...
check_R_depends
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0