input stringlengths 16 454k | output stringlengths 13 350k | function_name stringlengths 1 100 | repo_name stringlengths 6 43 | category stringclasses 76
values | sample_id stringlengths 22 88 | decompiler stringclasses 1
value | opt_level stringclasses 1
value |
|---|---|---|---|---|---|---|---|
int gretl_array_quantiles(double *a, int n, double *p, int k) {
int i;
int err;
int hf;
int hc;
double xmin;
double xmax;
double h;
unsigned long v14;
v14 = __readfsqword(0x28u);
xmin = 0.0;
xmax = NAN;
err = 0;
if (n <= 0 || k <= 0)
return 2;
for (i = 0; i < k; ++i) {
if (p[i] <= 0... | int gretl_array_quantiles(double *a, int n, double *p, int k) {
double h, xmin = 0, xmax = NADBL;
int hf, hc, i;
int err = 0;
if (n <= 0 || k <= 0) {
return E_DATA;
}
for (i = 0; i < k; i++) {
if (p[i] <= 0.0 || p[i] >= 1.0) {
p[i] = NADBL;
err = E_INVARG;
break;
}
h = q... | gretl_array_quantiles | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void gretl_array_serialize(gretl_array *A, PRN *prn) {
int n;
const char *name;
int i;
GretlType type;
const char *subname;
char *ptr;
type = gretl_type_get_singular(A->type);
subname = gretl_type_get_name(type);
n = A->n;
name = gretl_type_get_name(A->type);
pprintf(prn, "<gretl-array type=\"%s\... | void gretl_array_serialize(gretl_array *A, PRN *prn) {
GretlType type;
const char *subname;
void *ptr;
int i;
type = gretl_type_get_singular(A->type);
subname = gretl_type_get_name(type);
pprintf(prn, "<gretl-array type=\"%s\" length=\"%d\">\n",
gretl_type_get_name(A->type), A->n);
for (i =... | gretl_array_serialize | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_array_set_array(gretl_array *A, int i, gretl_array *a, int copy) {
char *v4;
int err;
err = 0;
if (!A)
return 2;
if (set_type_error(A, GRETL_TYPE_ARRAYS))
return 37;
if (i >= 0 && i < A->n) {
if (a != A->data[i]) {
gretl_array_destroy((gretl_array *)A->data[i]);
return set... | int gretl_array_set_array(gretl_array *A, int i, gretl_array *a, int copy) {
int err = 0;
if (A == NULL) {
err = E_DATA;
} else if (set_type_error(A, GRETL_TYPE_ARRAYS)) {
err = E_TYPES;
} else if (i < 0 || i >= A->n) {
gretl_errmsg_sprintf(_("Index value %d is out of bounds"), i + 1);
err = E_... | gretl_array_set_array | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_array_set_bundle(gretl_array *A, int i, gretl_bundle *b, int copy) {
char *v4;
int err;
err = 0;
if (!A)
return 2;
if (set_type_error(A, GRETL_TYPE_BUNDLES))
return 37;
if (i >= 0 && i < A->n) {
if (b != A->data[i]) {
gretl_bundle_destroy((gretl_bundle *)A->data[i]);
retur... | int gretl_array_set_bundle(gretl_array *A, int i, gretl_bundle *b, int copy) {
int err = 0;
if (A == NULL) {
err = E_DATA;
} else if (set_type_error(A, GRETL_TYPE_BUNDLES)) {
err = E_TYPES;
} else if (i < 0 || i >= A->n) {
gretl_errmsg_sprintf(_("Index value %d is out of bounds"), i + 1);
err =... | gretl_array_set_bundle | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_array_set_data(gretl_array *A, int i, void *ptr) {
if (!A || i < 0 || i >= A->n)
return 2;
A->data[i] = ptr;
return 0;
} | int gretl_array_set_data(gretl_array *A, int i, void *ptr) {
if (A == NULL || i < 0 || i >= A->n) {
return E_DATA;
} else {
A->data[i] = ptr;
return 0;
}
} | gretl_array_set_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_array_set_element(gretl_array *A, int i, void *ptr, GretlType type,
int copy) {
int err;
err = 0;
switch (type) {
case GRETL_TYPE_MATRIX:
return gretl_array_set_matrix(A, i, (gretl_matrix *)ptr, copy);
case GRETL_TYPE_STRING:
return gretl_array_set_string(A, i, (... | int gretl_array_set_element(gretl_array *A, int i, void *ptr, GretlType type,
int copy) {
int err = 0;
if (type == GRETL_TYPE_MATRIX) {
err = gretl_array_set_matrix(A, i, ptr, copy);
} else if (type == GRETL_TYPE_STRING) {
err = gretl_array_set_string(A, i, ptr, copy);
} els... | gretl_array_set_element | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_array_set_list(gretl_array *A, int i, int *L, int copy) {
char *v4;
int err;
err = 0;
if (!A)
return 2;
if (set_type_error(A, GRETL_TYPE_LISTS))
return 37;
if (i >= 0 && i < A->n) {
if (L != A->data[i]) {
free(A->data[i]);
return set_list(A, i, L, copy);
}
} else {
... | int gretl_array_set_list(gretl_array *A, int i, int *L, int copy) {
int err = 0;
if (A == NULL) {
err = E_DATA;
} else if (set_type_error(A, GRETL_TYPE_LISTS)) {
err = E_TYPES;
} else if (i < 0 || i >= A->n) {
gretl_errmsg_sprintf(_("Index value %d is out of bounds"), i + 1);
err = E_DATA;
} ... | gretl_array_set_list | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_array_set_matrix(gretl_array *A, int i, gretl_matrix *m, int copy) {
char *v4;
int err;
err = 0;
if (!A)
return 2;
if (set_type_error(A, GRETL_TYPE_MATRICES))
return 37;
if (i >= 0 && i < A->n) {
if (m != A->data[i]) {
gretl_matrix_free((gretl_matrix *)A->data[i]);
return ... | int gretl_array_set_matrix(gretl_array *A, int i, gretl_matrix *m, int copy) {
int err = 0;
if (A == NULL) {
err = E_DATA;
} else if (set_type_error(A, GRETL_TYPE_MATRICES)) {
err = E_TYPES;
} else if (i < 0 || i >= A->n) {
gretl_errmsg_sprintf(_("Index value %d is out of bounds"), i + 1);
err ... | gretl_array_set_matrix | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_array_set_string(gretl_array *A, int i, char *s, int copy) {
char *v4;
int err;
err = 0;
if (!A)
return 2;
if (set_type_error(A, GRETL_TYPE_STRINGS))
return 37;
if (i >= 0 && i < A->n) {
if (s != A->data[i]) {
free(A->data[i]);
return set_string(A, i, s, copy);
}
} e... | int gretl_array_set_string(gretl_array *A, int i, char *s, int copy) {
int err = 0;
if (A == NULL) {
err = E_DATA;
} else if (set_type_error(A, GRETL_TYPE_STRINGS)) {
err = E_TYPES;
} else if (i < 0 || i >= A->n) {
gretl_errmsg_sprintf(_("Index value %d is out of bounds"), i + 1);
err = E_DATA;... | gretl_array_set_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_array_set_type(gretl_array *A, GretlType type) {
int err;
int i;
err = 0;
if (A) {
if (type == GRETL_TYPE_STRINGS || type == GRETL_TYPE_MATRICES ||
type == GRETL_TYPE_BUNDLES || type == GRETL_TYPE_LISTS ||
type == GRETL_TYPE_ARRAYS) {
if (type == A->type)
return 0;
... | int gretl_array_set_type(gretl_array *A, GretlType type) {
int err = 0;
if (A == NULL) {
err = E_DATA;
} else if (type != GRETL_TYPE_STRINGS && type != GRETL_TYPE_MATRICES &&
type != GRETL_TYPE_BUNDLES && type != GRETL_TYPE_LISTS &&
type != GRETL_TYPE_ARRAYS) {
err = E_TYPES;
... | gretl_array_set_type | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char **gretl_array_steal_strings(gretl_array *A, int *ns) {
char **AS;
AS = 0;
*ns = 0;
if (A && A->type == GRETL_TYPE_STRINGS && !strings_array_null_check(A)) {
*ns = A->n;
AS = (char **)A->data;
A->n = 0;
A->data = 0;
}
return AS;
} | char **gretl_array_steal_strings(gretl_array *A, int *ns) {
char **AS = NULL;
*ns = 0;
if (A != NULL && A->type == GRETL_TYPE_STRINGS) {
int err = strings_array_null_check(A);
if (!err) {
*ns = A->n;
AS = (char **)A->data;
A->n = 0;
A->data = NULL;
}
}
return AS;
} | gretl_array_steal_strings | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void gretl_array_void_content(gretl_array *A) {
if (A) {
gretl_array_destroy_data(A);
A->n = 0;
}
} | void gretl_array_void_content(gretl_array *A) {
if (A != NULL) {
gretl_array_destroy_data(A);
A->n = 0;
}
} | gretl_array_void_content | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_array *gretl_arrays_intersection(gretl_array *A, gretl_array *B,
int *err) {
int v3;
char **v4;
int i;
int ia;
int j;
int ja;
int n;
gretl_array *C;
char *copy;
const char *sa;
const char *sb;
C = 0;
copy = 0;
n = 0;
if (A && B) {
if (A->ty... | gretl_array *gretl_arrays_intersection(gretl_array *A, gretl_array *B,
int *err) {
gretl_array *C = NULL;
const char *sa, *sb;
char *copy = NULL;
int i, j, n = 0;
if (A == NULL || B == NULL) {
*err = E_DATA;
} else if (A->type != GRETL_TYPE_STRINGS || B->type != G... | gretl_arrays_intersection | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_array *gretl_arrays_join(gretl_array *A, gretl_array *B, int *err) {
gretl_array *C;
C = 0;
if (A && B) {
if (A->type == B->type)
C = gretl_array_new(A->type, A->n + B->n, err);
else
*err = 37;
} else {
*err = 2;
}
if (!*err)
*err = gretl_array_copy_content(C, A, 0);
if ... | gretl_array *gretl_arrays_join(gretl_array *A, gretl_array *B, int *err) {
gretl_array *C = NULL;
if (A == NULL || B == NULL) {
*err = E_DATA;
} else if (A->type != B->type) {
*err = E_TYPES;
} else {
int n = A->n + B->n;
C = gretl_array_new(A->type, n, err);
}
if (!*err) {
*err = gre... | gretl_arrays_join | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_array *gretl_arrays_union(gretl_array *A, gretl_array *B, int *err) {
int v3;
char **v4;
int i;
int ia;
int j;
int ja;
int n;
gretl_array *C;
char *copy;
const char *sb;
const char *sa;
C = 0;
copy = 0;
n = 0;
if (A && B) {
if (A->type == GRETL_TYPE_STRINGS && B->type == GRETL_T... | gretl_array *gretl_arrays_union(gretl_array *A, gretl_array *B, int *err) {
gretl_array *C = NULL;
const char *sa, *sb;
char *copy = NULL;
int i, j, n = 0;
if (A == NULL || B == NULL) {
*err = E_DATA;
} else if (A->type != GRETL_TYPE_STRINGS || B->type != GRETL_TYPE_STRINGS) {
*err = E_TYPES;
} e... | gretl_arrays_union | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int *gretl_auxlist_from_vector(const gretl_vector *v, int *err) {
int rows;
int i;
int n;
int *list;
if (v) {
if (v->cols == 1) {
rows = v->rows;
} else if (v->rows == 1) {
rows = v->cols;
} else {
rows = 0;
}
} else {
rows = 0;
}
n = rows;
list = 0;
if (rows) ... | int *gretl_auxlist_from_vector(const gretl_vector *v, int *err) {
int i, n = gretl_vector_get_length(v);
int *list = NULL;
if (n == 0) {
*err = E_DATA;
} else {
list = gretl_list_new(n);
if (list == NULL) {
*err = E_ALLOC;
} else {
for (i = 0; i < n; i++) {
list[i + 1] = (in... | gretl_auxlist_from_vector | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *gretl_backtick(const char *arg, int *err) {
char *val[2];
val[1] = (char *)__readfsqword(0x28u);
val[0] = 0;
*err = shell_grab(arg, val);
if (!*err && !val[0]) {
val[0] = gretl_strdup(&byte_33E93F);
if (!val[0])
*err = 12;
}
return val[0];
} | char *gretl_backtick(const char *arg, int *err) {
char *val = NULL;
*err = shell_grab(arg, &val);
if (!*err && val == NULL) {
val = gretl_strdup("");
if (val == NULL) {
*err = E_ALLOC;
}
}
return val;
} | gretl_backtick | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double gretl_bessel(char type, double v, double x, int *err) {
long vb;
double b1;
double b2;
if (fabs(x) > 1.797693134862316e308 || fabs(v) > 1.797693134862316e308)
return NAN;
if (x < 0.0) {
if (type == 75) {
*err = 17;
return NAN;
}
if (floor(v) != v && (type == 74 || type == 7... | double gretl_bessel(char type, double v, double x, int *err) {
if (na(x) || na(v)) {
return NADBL;
}
if (x < 0) {
if (type == 'K') {
*err = E_INVARG;
return NADBL;
} else if (v != floor(v) && (type == 'J' || type == 'I')) {
*err = E_INVARG;
return NADBL;
}
}
switch (... | gretl_bessel | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *gretl_binbase() { return paths.binbase; } | const char *gretl_binbase(void) { return paths.binbase; } | gretl_binbase | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *gretl_bindir() {
char *p;
if (!bindir_3[0]) {
strcpy(bindir_3, paths.gretldir);
p = strstr(bindir_3, "share/gretl");
if (p) {
*p = 0;
strcpy(&p[strlen(p)], "bin/");
}
}
return bindir_3;
} | const char *gretl_bindir(void) {
static char bindir[MAXLEN];
if (*bindir == '\0') {
char *p;
strcpy(bindir, paths.gretldir);
p = strstr(bindir, "share/gretl");
if (p != NULL) {
*p = '\0';
strcat(p, "bin/");
}
#ifdef WIN32
if (p == NULL) {
p = strstr(bindir, "share\\gretl"... | gretl_bindir | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void gretl_blas_dgemm(const gretl_matrix *a, int atr, const gretl_matrix *b,
int btr, gretl_matrix *c, GretlMatrixMod cmod, int m,
int n, int k) {
char v9;
char v10;
char TransA;
char TransB;
double alpha;
double beta[4];
*(_QWORD *)&beta[1] = __readfsqword(0x2... | static void gretl_blas_dgemm(const gretl_matrix *a, int atr,
const gretl_matrix *b, int btr, gretl_matrix *c,
GretlMatrixMod cmod, int m, int n, int k) {
char TransA = (atr) ? 'T' : 'N';
char TransB = (btr) ? 'T' : 'N';
double alpha = 1.0, beta = 0.0;
i... | gretl_blas_dgemm | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void gretl_blas_dsyrk(const gretl_matrix *a, int atr, gretl_matrix *c,
GretlMatrixMod cmod) {
char v4;
integer rows;
char uplo;
char tr;
integer n;
integer k;
integer lda;
int i;
int j;
double alpha;
double beta;
guint64 fpm;
double x;
_QWORD v18[4];
v18[3] = __readf... | static void gretl_blas_dsyrk(const gretl_matrix *a, int atr, gretl_matrix *c,
GretlMatrixMod cmod) {
char uplo = 'U';
char tr = (atr) ? 'T' : 'N';
integer n = c->rows;
integer k = (atr) ? a->rows : a->cols;
integer lda = a->rows;
double x, alpha = 1.0, beta = 0.0;
#if defined(_O... | gretl_blas_dsyrk | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void gretl_btree_destroy(BTree *tree) {
if (tree) {
btree_remove_all(tree);
g_slice_free1(16, tree);
} else {
g_return_if_fail_warning(0, "gretl_btree_destroy", "tree != NULL");
}
} | void gretl_btree_destroy(BTree *tree) {
g_return_if_fail(tree != NULL);
btree_remove_all(tree);
g_slice_free(BTree, tree);
} | gretl_btree_destroy | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void gretl_btree_insert(BTree *tree, gdouble key, gdouble value) {
int v3;
int v4;
_BOOL4 v5;
gint8 v6;
int idx;
gint cmp;
gboolean left_node;
BTreeNode *node;
BTreeNode *child_0;
BTreeNode *child;
BTreeNode *bparent;
BTreeNode *path[40];
unsigned long v15;
v15 = __readfsqword(0x28u);
if ... | void gretl_btree_insert(BTree *tree, gdouble key, gdouble value) {
BTreeNode *node;
BTreeNode *path[MAX_BTREE_HEIGHT];
int idx;
g_return_if_fail(tree != NULL);
if (!tree->root) {
tree->root = btree_node_new(key, value);
tree->nnodes++;
return;
}
idx = 0;
path[idx++] = NULL;
node = tree-... | gretl_btree_insert | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gdouble gretl_btree_lookup(BTree *tree, gdouble key) {
BTreeNode *node;
if (tree) {
node = btree_find_node(tree, key);
if (node)
return node->value;
} else {
g_return_if_fail_warning(0, "gretl_btree_lookup", "tree != NULL");
}
return key;
} | gdouble gretl_btree_lookup(BTree *tree, gdouble key) {
BTreeNode *node;
g_return_val_if_fail(tree != NULL, key);
node = btree_find_node(tree, key);
return node ? node->value : key;
} | gretl_btree_lookup | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void gretl_btree_minmax(BTree *tree, gdouble *keymin, gdouble *keymax) {
BTreeNode *L;
BTreeNode *R;
if (tree) {
R = tree->root;
for (L = tree->root; L; L = L->left)
*keymin = L->key;
while (R) {
*keymax = R->key;
R = R->right;
}
} else {
g_return_if_fail_warning(0, "gretl... | void gretl_btree_minmax(BTree *tree, gdouble *keymin, gdouble *keymax) {
BTreeNode *L, *R;
g_return_if_fail(tree != NULL);
L = R = tree->root;
while (L) {
*keymin = L->key;
L = L->left;
}
while (R) {
*keymax = R->key;
R = R->right;
}
} | gretl_btree_minmax | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
BTree *gretl_btree_new() {
BTree *result;
result = (BTree *)g_slice_alloc(16);
result->root = 0;
result->nnodes = 0;
return result;
} | BTree *gretl_btree_new(void) {
BTree *tree = g_slice_new(BTree);
tree->root = NULL;
tree->nnodes = 0;
return tree;
} | gretl_btree_new | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *gretl_build_path(char *targ, const gchar *first_element, ...) {
long v2;
long v3;
long v4;
long v5;
va_list args;
unsigned long v8;
long v9;
long v10;
long v11;
long v12;
va_start(args, first_element);
v2 = va_arg(args, _QWORD);
v3 = va_arg(args, _QWORD);
v4 = va_arg(args, _QWORD);
... | char *gretl_build_path(char *targ, const gchar *first_element, ...) {
va_list args;
*targ = '\0';
va_start(args, first_element);
#ifdef G_OS_WIN32
real_build_path_win32(targ, first_element, &args);
#else
real_build_path(targ, first_element, &args);
#endif
va_end(args);
return targ;
} | gretl_build_path | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundle_append(gretl_bundle *bundle1, const gretl_bundle *bundle2) {
if (bundle2->type == BUNDLE_KALMAN) {
gretl_errmsg_set(
"bundle union: the right-hand operand cannot be a kalman bundle");
return 2;
} else {
g_hash_table_foreach(bundle2->ht, copy_new_bundled_item, bundle1);
retur... | int gretl_bundle_append(gretl_bundle *bundle1, const gretl_bundle *bundle2) {
if (bundle2->type == BUNDLE_KALMAN) {
gretl_errmsg_set("bundle union: the right-hand operand cannot "
"be a kalman bundle");
return E_DATA;
} else {
g_hash_table_foreach(bundle2->ht, copy_new_bundled_item,... | gretl_bundle_append | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void gretl_bundle_cleanup() {
if (sysinfo_bundle) {
gretl_bundle_destroy(sysinfo_bundle);
sysinfo_bundle = 0;
}
} | void gretl_bundle_cleanup(void) {
if (sysinfo_bundle != NULL) {
gretl_bundle_destroy(sysinfo_bundle);
sysinfo_bundle = NULL;
}
} | gretl_bundle_cleanup | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_bundle *gretl_bundle_copy(const gretl_bundle *bundle, int *err) {
gretl_bundle *bcpy;
bcpy = 0;
if (bundle) {
if (bundle->type == BUNDLE_KALMAN) {
bcpy = kalman_bundle_copy(bundle, err);
} else {
bcpy = gretl_bundle_new();
if (!bcpy)
*err = 12;
}
if (!*err)
g... | gretl_bundle *gretl_bundle_copy(const gretl_bundle *bundle, int *err) {
gretl_bundle *bcpy = NULL;
if (bundle == NULL) {
*err = E_DATA;
} else {
if (bundle->type == BUNDLE_KALMAN) {
bcpy = kalman_bundle_copy(bundle, err);
} else {
bcpy = gretl_bundle_new();
if (bcpy == NULL) {
... | gretl_bundle_copy | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundle_copy_as(const char *name, const char *copyname) {
int err;
int prev;
gretl_bundle *b0;
gretl_bundle *b1;
user_var *u;
unsigned long v8;
v8 = __readfsqword(0x28u);
b1 = 0;
prev = 0;
err = 0;
if (!strcmp(name, "$sysinfo")) {
b0 = sysinfo_bundle;
} else {
u = get_user_var_... | int gretl_bundle_copy_as(const char *name, const char *copyname) {
gretl_bundle *b0, *b1 = NULL;
user_var *u;
int prev = 0;
int err = 0;
if (!strcmp(name, "$sysinfo")) {
b0 = sysinfo_bundle;
} else {
u = get_user_var_of_type_by_name(name, GRETL_TYPE_BUNDLE);
if (u == NULL) {
return E_DATA... | gretl_bundle_copy_as | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void gretl_bundle_debug_print(gretl_bundle *bundle, const char *msg) {
PRN *prn;
prn = gretl_print_new(GRETL_PRINT_STDERR, 0);
if (msg) {
pputs(prn, msg);
pputc(prn, 10);
}
real_bundle_print(bundle, 0, 0, prn);
pputc(prn, 10);
gretl_print_destroy(prn);
} | void gretl_bundle_debug_print(gretl_bundle *bundle, const char *msg) {
PRN *prn = gretl_print_new(GRETL_PRINT_STDERR, NULL);
if (msg != NULL) {
pputs(prn, msg);
pputc(prn, '\n');
}
real_bundle_print(bundle, 0, 0, prn);
pputc(prn, '\n');
gretl_print_destroy(prn);
} | gretl_bundle_debug_print | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundle_delete_data(gretl_bundle *bundle, const char *key) {
int err;
int done;
unsigned long v5;
v5 = __readfsqword(0x28u);
done = 0;
err = 0;
if (!bundle)
return 2;
if (bundle->type == BUNDLE_KALMAN)
done = maybe_delete_kalman_element(bundle->data, key, &err);
if (!done && !err) {
... | int gretl_bundle_delete_data(gretl_bundle *bundle, const char *key) {
int done = 0;
int err = 0;
if (bundle == NULL) {
return E_DATA;
}
if (bundle->type == BUNDLE_KALMAN) {
done = maybe_delete_kalman_element(bundle->data, key, &err);
}
if (!done && !err) {
done = g_hash_table_remove(bundle-... | gretl_bundle_delete_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_bundle *gretl_bundle_deserialize(void *p1, void *p2, int *err) {
gretl_bundle *b;
char *creator;
char *btype;
xmlNodePtr cur;
btype = (char *)xmlGetProp(p1, "type");
creator = (char *)xmlGetProp(p1, "creator");
cur = (xmlNodePtr) * ((_QWORD *)p1 + 3);
if (btype && !strcmp(btype, "kalman")) {
... | gretl_bundle *gretl_bundle_deserialize(void *p1, void *p2, int *err) {
xmlNodePtr cur, node = p1;
xmlDocPtr doc = p2;
gretl_bundle *b = NULL;
char *btype = NULL;
char *creator = NULL;
btype = (char *)xmlGetProp(node, (XUC) "type");
creator = (char *)xmlGetProp(node, (XUC) "creator");
cur = node->xmlCh... | gretl_bundle_deserialize | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void gretl_bundle_destroy(gretl_bundle *bundle) {
if (bundle) {
if (bundle->ht)
g_hash_table_destroy(bundle->ht);
free(bundle->creator);
if (bundle->type == BUNDLE_KALMAN)
kalman_free((kalman *)bundle->data);
free(bundle);
}
} | void gretl_bundle_destroy(gretl_bundle *bundle) {
if (bundle != NULL) {
if (bundle->ht != NULL) {
g_hash_table_destroy(bundle->ht);
}
free(bundle->creator);
if (bundle->type == BUNDLE_KALMAN) {
kalman_free(bundle->data);
}
free(bundle);
}
} | gretl_bundle_destroy | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundle_donate_data(gretl_bundle *bundle, const char *key, void *ptr,
GretlType type, int size) {
if (!key || ptr)
return real_bundle_set_data(bundle, key, ptr, type, size, 0, 0);
gretl_errmsg_sprintf("'%s': got NULL data value", key);
return 2;
} | int gretl_bundle_donate_data(gretl_bundle *bundle, const char *key, void *ptr,
GretlType type, int size) {
if (key != NULL && ptr == NULL) {
gretl_errmsg_sprintf("'%s': got NULL data value", key);
return E_DATA;
}
return real_bundle_set_data(bundle, key, ptr, type, size, 0, N... | gretl_bundle_donate_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundle_extract_args(gretl_bundle *defaults, gretl_bundle *input,
gretl_array *reqd, PRN *prn, int *err) {
int ret;
int i;
int n;
const char *key;
bchecker bchk;
unsigned long v14;
v14 = __readfsqword(0x28u);
ret = 0;
if (!reqd || gretl_array_get_type(reqd) == G... | int gretl_bundle_extract_args(gretl_bundle *defaults, gretl_bundle *input,
gretl_array *reqd, PRN *prn, int *err) {
int ret = 0;
if (reqd != NULL && gretl_array_get_type(reqd) != GRETL_TYPE_STRINGS) {
*err = E_TYPES;
return *err;
}
if (reqd != NULL) {
int i, n = gretl... | gretl_bundle_extract_args | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_array *gretl_bundle_get_array(gretl_bundle *bundle, const char *key,
int *err) {
GretlType type;
int myerr;
gretl_array *a;
void *ptr;
unsigned long v9;
v9 = __readfsqword(0x28u);
a = 0;
myerr = 0;
ptr = gretl_bundle_get_data(bundle, key, &type, 0, err);
if... | gretl_array *gretl_bundle_get_array(gretl_bundle *bundle, const char *key,
int *err) {
gretl_array *a = NULL;
GretlType type;
void *ptr;
int myerr = 0;
ptr = gretl_bundle_get_data(bundle, key, &type, NULL, err);
if (ptr != NULL && type != GRETL_TYPE_ARRAY) {
myerr = ... | gretl_bundle_get_array | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundle_get_bool(gretl_bundle *bundle, const char *key, int deflt) {
GretlType type;
int val;
void *ptr;
double *px;
unsigned int *pu;
int *pi;
unsigned long v10;
v10 = __readfsqword(0x28u);
val = deflt;
ptr = gretl_bundle_get_data(bundle, key, &type, 0, 0);
if (ptr) {
switch (type) ... | int gretl_bundle_get_bool(gretl_bundle *bundle, const char *key, int deflt) {
int val = deflt;
GretlType type;
void *ptr;
ptr = gretl_bundle_get_data(bundle, key, &type, NULL, NULL);
if (ptr != NULL) {
if (type == GRETL_TYPE_INT) {
int *pi = (int *)ptr;
val = (*pi != 0);
} else if (type... | gretl_bundle_get_bool | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_bundle *gretl_bundle_get_bundle(gretl_bundle *bundle, const char *key,
int *err) {
GretlType type;
int myerr;
gretl_bundle *ret;
void *ptr;
unsigned long v9;
v9 = __readfsqword(0x28u);
ret = 0;
myerr = 0;
ptr = gretl_bundle_get_data(bundle, key, &type, 0, e... | gretl_bundle *gretl_bundle_get_bundle(gretl_bundle *bundle, const char *key,
int *err) {
gretl_bundle *ret = NULL;
GretlType type;
void *ptr;
int myerr = 0;
ptr = gretl_bundle_get_data(bundle, key, &type, NULL, err);
if (ptr != NULL && type != GRETL_TYPE_BUNDLE) {
... | gretl_bundle_get_bundle | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void *gretl_bundle_get_content(gretl_bundle *bundle) {
if (bundle)
return bundle->ht;
else
return 0;
} | void *gretl_bundle_get_content(gretl_bundle *bundle) {
return (bundle == NULL) ? NULL : (void *)bundle->ht;
} | gretl_bundle_get_content | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *gretl_bundle_get_creator(gretl_bundle *bundle) {
if (bundle)
return bundle->creator;
else
return 0;
} | const char *gretl_bundle_get_creator(gretl_bundle *bundle) {
return (bundle != NULL) ? bundle->creator : NULL;
} | gretl_bundle_get_creator | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void *gretl_bundle_get_data(gretl_bundle *bundle, const char *key,
GretlType *type, int *size, int *err) {
char *v5;
int reserved;
int myerr;
void *ret;
gpointer p;
bundled_item *item;
unsigned long v15;
v15 = __readfsqword(0x28u);
ret = 0;
reserved = 0;
myerr = 0;
i... | void *gretl_bundle_get_data(gretl_bundle *bundle, const char *key,
GretlType *type, int *size, int *err) {
void *ret = NULL;
int reserved = 0;
int myerr = 0;
if (bundle == NULL) {
myerr = E_DATA;
goto finish;
}
if (bundle->type == BUNDLE_KALMAN) {
ret = maybe_retrie... | gretl_bundle_get_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundle_get_int(gretl_bundle *bundle, const char *key, int *err) {
double v3;
GretlType type;
int i;
int myerr;
unsigned int u;
void *ptr;
double *px;
double x;
unsigned int *pu;
int *pi;
unsigned long v15;
v15 = __readfsqword(0x28u);
i = 0;
myerr = 0;
ptr = gretl_bundle_get_data... | int gretl_bundle_get_int(gretl_bundle *bundle, const char *key, int *err) {
int i = 0;
GretlType type;
void *ptr;
int myerr = 0;
ptr = gretl_bundle_get_data(bundle, key, &type, NULL, err);
if (ptr != NULL) {
if (type == GRETL_TYPE_INT) {
int *pi = (int *)ptr;
i = *pi;
} else if (type ... | gretl_bundle_get_int | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundle_get_int_deflt(gretl_bundle *bundle, const char *key,
int deflt) {
GretlType type;
int val;
void *ptr;
double *px;
unsigned int *pu;
int *pi;
unsigned long v10;
v10 = __readfsqword(0x28u);
val = deflt;
ptr = gretl_bundle_get_data(bundle, key, &type, 0,... | int gretl_bundle_get_int_deflt(gretl_bundle *bundle, const char *key,
int deflt) {
int val = deflt;
GretlType type;
void *ptr;
ptr = gretl_bundle_get_data(bundle, key, &type, NULL, NULL);
if (ptr != NULL) {
if (type == GRETL_TYPE_INT) {
int *pi = (int *)ptr;
v... | gretl_bundle_get_int_deflt | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_array *gretl_bundle_get_keys(gretl_bundle *b, int *err) {
GList *next;
int myerr;
int i;
guint n;
gretl_array *A;
GList *L;
GList *keys;
unsigned long v10;
v10 = __readfsqword(0x28u);
A = 0;
myerr = 0;
if (b && b->ht) {
keys = (GList *)g_hash_table_get_keys(b->ht);
if (keys && (n ... | gretl_array *gretl_bundle_get_keys(gretl_bundle *b, int *err) {
gretl_array *A = NULL;
int myerr = 0;
if (b == NULL || b->ht == NULL) {
myerr = E_DATA;
} else {
GList *keys = g_hash_table_get_keys(b->ht);
guint n;
if (keys != NULL && (n = g_list_length(keys)) > 0) {
A = gretl_array_new(G... | gretl_bundle_get_keys | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char **gretl_bundle_get_keys_raw(gretl_bundle *b, int *ns) {
int v2;
int i;
guint n;
char **S;
GList *L;
GList *keys;
S = 0;
*ns = 0;
if (b && b->ht) {
keys = (GList *)g_hash_table_get_keys(b->ht);
if (keys) {
n = g_list_length(keys);
if (n) {
S = strings_array_new(n + 1);... | char **gretl_bundle_get_keys_raw(gretl_bundle *b, int *ns) {
char **S = NULL;
*ns = 0;
if (b != NULL && b->ht != NULL) {
GList *keys = g_hash_table_get_keys(b->ht);
guint n;
if (keys != NULL && (n = g_list_length(keys)) > 0) {
S = strings_array_new(n + 1);
if (S != NULL) {
GList... | gretl_bundle_get_keys_raw | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int *gretl_bundle_get_list(gretl_bundle *bundle, const char *key, int *err) {
GretlType type;
int myerr;
int *list;
void *ptr;
unsigned long v9;
v9 = __readfsqword(0x28u);
list = 0;
myerr = 0;
ptr = gretl_bundle_get_data(bundle, key, &type, 0, err);
if (ptr && type != GRETL_TYPE_LIST)
myerr = 3... | int *gretl_bundle_get_list(gretl_bundle *bundle, const char *key, int *err) {
int *list = NULL;
GretlType type;
void *ptr;
int myerr = 0;
ptr = gretl_bundle_get_data(bundle, key, &type, NULL, err);
if (ptr != NULL && type != GRETL_TYPE_LIST) {
myerr = E_TYPES;
}
if (ptr != NULL && !myerr) {
li... | gretl_bundle_get_list | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
GList *gretl_bundle_get_lists(gretl_bundle *b) {
GList *list[2];
list[1] = (GList *)__readfsqword(0x28u);
list[0] = 0;
g_hash_table_foreach(b->ht, maybe_append_list, list);
return list[0];
} | GList *gretl_bundle_get_lists(gretl_bundle *b) {
GList *list = NULL;
g_hash_table_foreach(b->ht, maybe_append_list, &list);
return list;
} | gretl_bundle_get_lists | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *gretl_bundle_get_matrix(gretl_bundle *bundle, const char *key,
int *err) {
GretlType type;
int myerr;
gretl_matrix *m;
void *ptr;
unsigned long v9;
v9 = __readfsqword(0x28u);
m = 0;
myerr = 0;
ptr = gretl_bundle_get_data(bundle, key, &type, 0, err);... | gretl_matrix *gretl_bundle_get_matrix(gretl_bundle *bundle, const char *key,
int *err) {
gretl_matrix *m = NULL;
GretlType type;
void *ptr;
int myerr = 0;
ptr = gretl_bundle_get_data(bundle, key, &type, NULL, err);
if (ptr != NULL && type != GRETL_TYPE_MATRIX) {
m... | gretl_bundle_get_matrix | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
GretlType gretl_bundle_get_member_type(gretl_bundle *bundle, const char *key,
int *err) {
char *v3;
GretlType ret;
int reserved;
int myerr;
gpointer p;
bundled_item *item;
unsigned long v11;
v11 = __readfsqword(0x28u);
ret = GRETL_TYPE_NONE;
reserved = 0;
my... | GretlType gretl_bundle_get_member_type(gretl_bundle *bundle, const char *key,
int *err) {
GretlType ret = GRETL_TYPE_NONE;
int reserved = 0;
int myerr = 0;
if (bundle == NULL) {
myerr = E_DATA;
} else if (bundle->type == BUNDLE_KALMAN) {
maybe_retrieve_kalman_el... | gretl_bundle_get_member_type | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundle_get_n_keys(gretl_bundle *b) {
int n_items;
n_items = 0;
if (b && b->ht)
return g_hash_table_size(b->ht);
return n_items;
} | int gretl_bundle_get_n_keys(gretl_bundle *b) {
int n_items = 0;
if (b != NULL && b->ht != NULL) {
n_items = g_hash_table_size(b->ht);
}
return n_items;
} | gretl_bundle_get_n_keys | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundle_get_n_members(gretl_bundle *b) {
int nmemb;
nmemb = 0;
if (b) {
if (b->type == BUNDLE_KALMAN)
nmemb = kalman_bundle_n_members(b);
if (b->ht)
nmemb += g_hash_table_size(b->ht);
}
return nmemb;
} | int gretl_bundle_get_n_members(gretl_bundle *b) {
int nmemb = 0;
if (b != NULL) {
if (b->type == BUNDLE_KALMAN) {
nmemb += kalman_bundle_n_members(b);
}
if (b->ht != NULL) {
nmemb += g_hash_table_size(b->ht);
}
}
return nmemb;
} | gretl_bundle_get_n_members | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *gretl_bundle_get_note(gretl_bundle *bundle, const char *key) {
const char *ret;
gpointer p;
ret = 0;
if (bundle) {
p = (gpointer)g_hash_table_lookup(bundle->ht, key);
if (p)
return (const char *)*((_QWORD *)p + 2);
}
return ret;
} | const char *gretl_bundle_get_note(gretl_bundle *bundle, const char *key) {
const char *ret = NULL;
if (bundle != NULL) {
gpointer p = g_hash_table_lookup(bundle->ht, key);
if (p != NULL) {
bundled_item *item = p;
ret = item->note;
}
}
return ret;
} | gretl_bundle_get_note | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void *gretl_bundle_get_private_data(gretl_bundle *bundle) {
return bundle->data;
} | void *gretl_bundle_get_private_data(gretl_bundle *bundle) {
return bundle->data;
} | gretl_bundle_get_private_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double gretl_bundle_get_scalar(gretl_bundle *bundle, const char *key,
int *err) {
GretlType type;
int myerr;
double x;
void *ptr;
gretl_matrix *m;
unsigned int *pu;
int *pi;
double *px;
unsigned long v13;
v13 = __readfsqword(0x28u);
x = NAN;
myerr = 0;
ptr = gre... | double gretl_bundle_get_scalar(gretl_bundle *bundle, const char *key,
int *err) {
double x = NADBL;
GretlType type;
void *ptr;
int myerr = 0;
ptr = gretl_bundle_get_data(bundle, key, &type, NULL, err);
if (ptr == NULL) {
myerr = E_DATA;
} else if (type != GRETL_TYPE_DO... | gretl_bundle_get_scalar | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double *gretl_bundle_get_series(gretl_bundle *bundle, const char *key, int *n,
int *err) {
GretlType type;
int myerr;
double *x;
void *ptr;
unsigned long v10;
v10 = __readfsqword(0x28u);
x = 0;
myerr = 0;
ptr = gretl_bundle_get_data(bundle, key, &type, n, err);
if (p... | double *gretl_bundle_get_series(gretl_bundle *bundle, const char *key, int *n,
int *err) {
double *x = NULL;
GretlType type;
void *ptr;
int myerr = 0;
ptr = gretl_bundle_get_data(bundle, key, &type, n, err);
if (ptr != NULL && type != GRETL_TYPE_SERIES) {
myerr = E_TYPES... | gretl_bundle_get_series | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
GList *gretl_bundle_get_sorted_items(gretl_bundle *b) {
long values;
values = g_hash_table_get_values(b->ht);
return (GList *)g_list_sort(values, sort_bundled_items);
} | GList *gretl_bundle_get_sorted_items(gretl_bundle *b) {
GList *blist;
blist = g_hash_table_get_values(b->ht);
blist = g_list_sort(blist, sort_bundled_items);
return blist;
} | gretl_bundle_get_sorted_items | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *gretl_bundle_get_string(gretl_bundle *bundle, const char *key,
int *err) {
GretlType type;
int myerr;
const char *ret;
void *ptr;
unsigned long v9;
v9 = __readfsqword(0x28u);
ret = 0;
myerr = 0;
ptr = gretl_bundle_get_data(bundle, key, &type, 0, err);
... | const char *gretl_bundle_get_string(gretl_bundle *bundle, const char *key,
int *err) {
const char *ret = NULL;
GretlType type;
void *ptr;
int myerr = 0;
ptr = gretl_bundle_get_data(bundle, key, &type, NULL, err);
if (ptr != NULL && type != GRETL_TYPE_STRING) {
myerr ... | gretl_bundle_get_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
BundleType gretl_bundle_get_type(gretl_bundle *bundle) { return bundle->type; } | BundleType gretl_bundle_get_type(gretl_bundle *bundle) { return bundle->type; } | gretl_bundle_get_type | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
unsigned int gretl_bundle_get_unsigned(gretl_bundle *bundle, const char *key,
int *err) {
double v3;
GretlType type;
unsigned int u;
int myerr;
int i;
void *ptr;
double *px;
double x;
int *pi;
unsigned int *pu;
unsigned long v15;
v15 = __readfsqword(0x28u)... | unsigned int gretl_bundle_get_unsigned(gretl_bundle *bundle, const char *key,
int *err) {
unsigned int u = 0;
GretlType type;
void *ptr;
int myerr = 0;
ptr = gretl_bundle_get_data(bundle, key, &type, NULL, err);
if (ptr != NULL) {
if (type == GRETL_TYPE_UNSIGNED)... | gretl_bundle_get_unsigned | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundle_has_content(gretl_bundle *b) {
int ret;
ret = 0;
if (b && b->ht &&
(b->type == BUNDLE_KALMAN || (unsigned int)g_hash_table_size(b->ht)))
return 1;
return ret;
} | int gretl_bundle_has_content(gretl_bundle *b) {
int ret = 0;
if (b != NULL && b->ht != NULL &&
(b->type == BUNDLE_KALMAN || g_hash_table_size(b->ht) > 0)) {
ret = 1;
}
return ret;
} | gretl_bundle_has_content | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundle_has_data(gretl_bundle *b, const char *key) {
return g_hash_table_lookup(b->ht, key) != 0;
} | static int gretl_bundle_has_data(gretl_bundle *b, const char *key) {
gpointer p = g_hash_table_lookup(b->ht, key);
return (p != NULL);
} | gretl_bundle_has_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundle_has_key(gretl_bundle *bundle, const char *key) {
int ret;
ret = 0;
if (bundle && key)
return g_hash_table_lookup(bundle->ht, key) != 0;
return ret;
} | int gretl_bundle_has_key(gretl_bundle *bundle, const char *key) {
int ret = 0;
if (bundle != NULL && key != NULL) {
gpointer p = g_hash_table_lookup(bundle->ht, key);
ret = (p != NULL);
}
return ret;
} | gretl_bundle_has_key | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundle_is_stacked(gretl_bundle *b) {
return get_user_var_by_data(b) != 0;
} | int gretl_bundle_is_stacked(gretl_bundle *b) {
user_var *u = get_user_var_by_data(b);
return u != NULL;
} | gretl_bundle_is_stacked | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_bundle *gretl_bundle_new() {
gretl_bundle *b;
b = (gretl_bundle *)malloc(0x20u);
if (b) {
b->type = BUNDLE_PLAIN;
b->ht = (GHashTable *)g_hash_table_new_full(&g_str_hash, &g_str_equal, 0,
bundle_item_destroy);
b->creator = 0;
b->data = 0;
}
... | gretl_bundle *gretl_bundle_new(void) {
gretl_bundle *b = malloc(sizeof *b);
if (b != NULL) {
b->type = BUNDLE_PLAIN;
b->ht = g_hash_table_new_full(g_str_hash, g_str_equal, NULL,
bundle_item_destroy);
b->creator = NULL;
b->data = NULL;
}
return b;
} | gretl_bundle_new | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundle_print(gretl_bundle *bundle, PRN *prn) {
int err;
err = real_bundle_print(bundle, 0, 0, prn);
if (!err)
pputc(prn, 10);
return err;
} | int gretl_bundle_print(gretl_bundle *bundle, PRN *prn) {
int err = real_bundle_print(bundle, 0, 0, prn);
if (!err) {
pputc(prn, '\n');
}
return err;
} | gretl_bundle_print | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundle_print_tree(gretl_bundle *bundle, PRN *prn) {
int err;
if (!bundle)
return 2;
err = print_bundle_tree(bundle, 0, prn);
if (!err)
pputc(prn, 10);
return err;
} | int gretl_bundle_print_tree(gretl_bundle *bundle, PRN *prn) {
int err;
if (bundle == NULL) {
err = E_DATA;
} else {
err = print_bundle_tree(bundle, 0, prn);
if (!err) {
pputc(prn, '\n');
}
}
return err;
} | gretl_bundle_print_tree | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_bundle *gretl_bundle_pull_from_stack(const char *name, int *err) {
gretl_bundle *b;
user_var *u;
b = 0;
u = get_user_var_of_type_by_name(name, GRETL_TYPE_BUNDLE);
if (u)
b = (gretl_bundle *)user_var_unstack_value(u);
if (!b)
*err = 2;
return b;
} | gretl_bundle *gretl_bundle_pull_from_stack(const char *name, int *err) {
gretl_bundle *b = NULL;
user_var *u;
u = get_user_var_of_type_by_name(name, GRETL_TYPE_BUNDLE);
if (u != NULL) {
b = user_var_unstack_value(u);
}
if (b == NULL) {
*err = E_DATA;
}
return b;
} | gretl_bundle_pull_from_stack | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_bundle *gretl_bundle_read_from_buffer(const char *buf, int len,
int *err) {
char *v3;
char *v4;
gretl_bundle *b;
xmlDocPtr doc;
xmlNodePtr cur;
b = 0;
xmlKeepBlanksDefault(0);
doc = (xmlDocPtr)xmlParseMemory(buf, (unsigned int)len);
if (doc) {
cur... | gretl_bundle *gretl_bundle_read_from_buffer(const char *buf, int len,
int *err) {
xmlDocPtr doc = NULL;
gretl_bundle *b = NULL;
xmlKeepBlanksDefault(0);
doc = xmlParseMemory(buf, len);
if (doc == NULL) {
gretl_errmsg_set(_("xmlParseMemory failed"));
*err =... | gretl_bundle_read_from_buffer | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_bundle *gretl_bundle_read_from_file(const char *fname, int from_dotdir,
int *err) {
const char *v3;
xmlDocPtr doc;
xmlNodePtr cur;
gretl_bundle *b;
char fullname[4104];
unsigned long v10;
v10 = __readfsqword(0x28u);
doc = 0;
cur = 0;
b = 0;
if (from... | gretl_bundle *gretl_bundle_read_from_file(const char *fname, int from_dotdir,
int *err) {
char fullname[FILENAME_MAX];
xmlDocPtr doc = NULL;
xmlNodePtr cur = NULL;
gretl_bundle *b = NULL;
if (from_dotdir) {
gretl_build_path(fullname, gretl_dotdir(), fname, NULL);... | gretl_bundle_read_from_file | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundle_rekey_data(gretl_bundle *bundle, const char *oldkey,
const char *newkey) {
int err;
bundled_item *item;
item = 0;
err = 0;
if (!strcmp(oldkey, newkey))
return 0;
if (bundle)
item = (bundled_item *)g_hash_table_lookup(bundle->ht, oldkey);
if (!item)
... | int gretl_bundle_rekey_data(gretl_bundle *bundle, const char *oldkey,
const char *newkey) {
bundled_item *item = NULL;
int err = 0;
if (strcmp(oldkey, newkey) == 0) {
return 0;
}
if (bundle != NULL) {
item = g_hash_table_lookup(bundle->ht, oldkey);
}
if (item == NULL... | gretl_bundle_rekey_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void gretl_bundle_serialize(gretl_bundle *b, const char *name, PRN *prn) {
pputs(prn, "<gretl-bundle");
if (name)
pprintf(prn, " name=\"%s\"", name);
if (b->creator && *b->creator)
pprintf(prn, " creator=\"%s\"", b->creator);
if (b->type == BUNDLE_KALMAN)
pputs(prn, " type=\"kalman\"");
pputs(prn,... | void gretl_bundle_serialize(gretl_bundle *b, const char *name, PRN *prn) {
pputs(prn, "<gretl-bundle");
if (name != NULL) {
pprintf(prn, " name=\"%s\"", name);
}
if (b->creator != NULL && *b->creator != '\0') {
pprintf(prn, " creator=\"%s\"", b->creator);
}
if (b->type == BUNDLE_KALMAN) {
pputs(... | gretl_bundle_serialize | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundle_set_creator(gretl_bundle *bundle, const char *name) {
int err;
err = 0;
if (!bundle)
return 2;
free(bundle->creator);
if (name) {
bundle->creator = gretl_strdup(name);
if (!bundle->creator)
return 12;
} else {
bundle->creator = 0;
}
return err;
} | int gretl_bundle_set_creator(gretl_bundle *bundle, const char *name) {
int err = 0;
if (bundle == NULL) {
err = E_DATA;
} else {
free(bundle->creator);
if (name == NULL) {
bundle->creator = NULL;
} else {
bundle->creator = gretl_strdup(name);
if (bundle->creator == NULL) {
... | gretl_bundle_set_creator | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundle_set_data(gretl_bundle *bundle, const char *key, void *ptr,
GretlType type, int size) {
if (bundle)
return real_bundle_set_data(bundle, key, ptr, type, size, 1, 0);
else
return 14;
} | int gretl_bundle_set_data(gretl_bundle *bundle, const char *key, void *ptr,
GretlType type, int size) {
int err;
if (bundle == NULL) {
err = E_UNKVAR;
} else {
err = real_bundle_set_data(bundle, key, ptr, type, size, 1, NULL);
}
return err;
} | gretl_bundle_set_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundle_set_int(gretl_bundle *bundle, const char *key, int val) {
int vala;
const char *keya;
gretl_bundle *bundlea;
bundlea = bundle;
keya = key;
vala = val;
return gretl_bundle_set_data(bundle, key, &vala, GRETL_TYPE_INT, 0);
} | int gretl_bundle_set_int(gretl_bundle *bundle, const char *key, int val) {
return gretl_bundle_set_data(bundle, key, &val, GRETL_TYPE_INT, 0);
} | gretl_bundle_set_int | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundle_set_list(gretl_bundle *bundle, const char *key,
const int *list) {
return gretl_bundle_set_data(bundle, key, (void *)list, GRETL_TYPE_LIST, 0);
} | int gretl_bundle_set_list(gretl_bundle *bundle, const char *key,
const int *list) {
return gretl_bundle_set_data(bundle, key, (void *)list, GRETL_TYPE_LIST, 0);
} | gretl_bundle_set_list | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundle_set_matrix(gretl_bundle *bundle, const char *key,
const gretl_matrix *m) {
return gretl_bundle_set_data(bundle, key, (void *)m, GRETL_TYPE_MATRIX, 0);
} | int gretl_bundle_set_matrix(gretl_bundle *bundle, const char *key,
const gretl_matrix *m) {
return gretl_bundle_set_data(bundle, key, (void *)m, GRETL_TYPE_MATRIX, 0);
} | gretl_bundle_set_matrix | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundle_set_note(gretl_bundle *bundle, const char *key,
const char *note) {
int err;
void **p;
err = 0;
if (!bundle)
return 14;
p = (void **)g_hash_table_lookup(bundle->ht, key);
if (!p)
return 2;
free(p[2]);
p[2] = gretl_strdup(note);
return err;
} | int gretl_bundle_set_note(gretl_bundle *bundle, const char *key,
const char *note) {
int err = 0;
if (bundle == NULL) {
err = E_UNKVAR;
} else {
gpointer p = g_hash_table_lookup(bundle->ht, key);
if (p == NULL) {
err = E_DATA;
} else {
bundled_item *item = p... | gretl_bundle_set_note | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundle_set_scalar(gretl_bundle *bundle, const char *key, double val) {
double vala;
const char *keya;
gretl_bundle *bundlea;
bundlea = bundle;
keya = key;
vala = val;
return gretl_bundle_set_data(bundle, key, &vala, GRETL_TYPE_DOUBLE, 0);
} | int gretl_bundle_set_scalar(gretl_bundle *bundle, const char *key, double val) {
return gretl_bundle_set_data(bundle, key, &val, GRETL_TYPE_DOUBLE, 0);
} | gretl_bundle_set_scalar | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundle_set_series(gretl_bundle *bundle, const char *key,
const double *x, int n) {
return gretl_bundle_set_data(bundle, key, (void *)x, GRETL_TYPE_SERIES, n);
} | int gretl_bundle_set_series(gretl_bundle *bundle, const char *key,
const double *x, int n) {
return gretl_bundle_set_data(bundle, key, (void *)x, GRETL_TYPE_SERIES, n);
} | gretl_bundle_set_series | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundle_set_string(gretl_bundle *bundle, const char *key,
const char *str) {
return gretl_bundle_set_data(bundle, key, (void *)str, GRETL_TYPE_STRING, 0);
} | int gretl_bundle_set_string(gretl_bundle *bundle, const char *key,
const char *str) {
return gretl_bundle_set_data(bundle, key, (void *)str, GRETL_TYPE_STRING, 0);
} | gretl_bundle_set_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundle_set_unsigned(gretl_bundle *bundle, const char *key,
unsigned int val) {
unsigned int vala;
const char *keya;
gretl_bundle *bundlea;
bundlea = bundle;
keya = key;
vala = val;
return gretl_bundle_set_data(bundle, key, &vala, GRETL_TYPE_UNSIGNED, 0);
} | int gretl_bundle_set_unsigned(gretl_bundle *bundle, const char *key,
unsigned int val) {
return gretl_bundle_set_data(bundle, key, &val, GRETL_TYPE_UNSIGNED, 0);
} | gretl_bundle_set_unsigned | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void *gretl_bundle_steal_data(gretl_bundle *bundle, const char *key,
GretlType *type, int *size, int *err) {
char *v5;
void *ret;
GList *keys;
gchar *keycpy;
gpointer p;
ret = 0;
if (bundle) {
p = (gpointer)g_hash_table_lookup(bundle->ht, key);
if (p) {
keys = ... | void *gretl_bundle_steal_data(gretl_bundle *bundle, const char *key,
GretlType *type, int *size, int *err) {
void *ret = NULL;
if (bundle == NULL) {
if (err != NULL) {
*err = E_DATA;
}
} else {
gpointer p = g_hash_table_lookup(bundle->ht, key);
if (p != NULL) ... | gretl_bundle_steal_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_bundle *gretl_bundle_union(const gretl_bundle *bundle1,
const gretl_bundle *bundle2, int *err) {
gretl_bundle *b;
b = 0;
if (bundle2->type == BUNDLE_KALMAN) {
gretl_errmsg_set(
"bundle union: the right-hand operand cannot be a kalman bundle");
*err = 2;
} ... | gretl_bundle *gretl_bundle_union(const gretl_bundle *bundle1,
const gretl_bundle *bundle2, int *err) {
gretl_bundle *b = NULL;
if (bundle2->type == BUNDLE_KALMAN) {
gretl_errmsg_set("bundle union: the right-hand operand cannot "
"be a kalman bundle");
*... | gretl_bundle_union | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void gretl_bundle_void_content(gretl_bundle *bundle) {
if (bundle) {
if (bundle->creator) {
free(bundle->creator);
bundle->creator = 0;
}
if (bundle->ht && (unsigned int)g_hash_table_size(bundle->ht)) {
g_hash_table_destroy(bundle->ht);
bundle->ht = (GHashTable *)g_hash_table_new_f... | void gretl_bundle_void_content(gretl_bundle *bundle) {
if (bundle == NULL) {
return;
}
if (bundle->creator != NULL) {
free(bundle->creator);
bundle->creator = NULL;
}
if (bundle->ht != NULL && g_hash_table_size(bundle->ht) > 0) {
g_hash_table_destroy(bundle->ht);
bundle->ht = g_hash_tabl... | gretl_bundle_void_content | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *gretl_bundle_write_to_buffer(gretl_bundle *b, int rank, int *bytes,
int *err) {
const char *buf;
PRN *prn;
buf = 0;
prn = gretl_print_new(GRETL_PRINT_BUFFER, err);
if (!*err) {
gretl_push_c_numeric_locale();
gretl_xml_header(prn);
gretl_bundle_serialize(b,... | char *gretl_bundle_write_to_buffer(gretl_bundle *b, int rank, int *bytes,
int *err) {
char *buf = NULL;
PRN *prn;
prn = gretl_print_new(GRETL_PRINT_BUFFER, err);
if (!*err) {
gretl_push_c_numeric_locale();
gretl_xml_header(prn);
gretl_bundle_serialize(b, NULL, pr... | gretl_bundle_write_to_buffer | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundle_write_to_file(gretl_bundle *b, const char *fname,
int control) {
const char *v3;
int err;
PRN *prn;
char fullname[4104];
unsigned long v9;
v9 = __readfsqword(0x28u);
prn = 0;
err = 0;
if ((control & 1) != 0) {
v3 = gretl_dotdir();
gretl_build_pa... | int gretl_bundle_write_to_file(gretl_bundle *b, const char *fname,
int control) {
char fullname[FILENAME_MAX];
PRN *prn = NULL;
int err = 0;
if (control & 1) {
gretl_build_path(fullname, gretl_dotdir(), fname, NULL);
} else {
strcpy(fullname, fname);
gretl_maybe_swi... | gretl_bundle_write_to_file | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_bundles_swap_content(gretl_bundle *b1, gretl_bundle *b2) {
void *tmp;
if (!b1 || b1->type || !b2 || b2->type)
return 2;
tmp = b1->ht;
b1->ht = b2->ht;
b2->ht = tmp;
return 0;
} | int gretl_bundles_swap_content(gretl_bundle *b1, gretl_bundle *b2) {
if (b1 == NULL || b1->type != BUNDLE_PLAIN || b2 == NULL ||
b2->type != BUNDLE_PLAIN) {
return E_DATA;
} else {
void *tmp = b1->ht;
b1->ht = b2->ht;
b2->ht = tmp;
return 0;
}
} | gretl_bundles_swap_content | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_calculate_criteria(double ess, int n, int k, double *ll, double *aic,
double *bic, double *hqc) {
double v7;
int err;
double lnl;
double c;
double c_8;
double c_16;
err = 0;
if (fabs(ess) <= 1.797693134862316e308 && ess > 0.0 && n > k) {
*__errno_location() = ... | int gretl_calculate_criteria(double ess, int n, int k, double *ll, double *aic,
double *bic, double *hqc) {
double lnl, c[3];
int err = 0;
if (na(ess) || ess <= 0.0 || n <= k) {
err = 1;
} else {
errno = 0;
lnl = -.5 * n * log(ess);
if (errno == EDOM || errno == ERA... | gretl_calculate_criteria | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_chdir(const char *path) {
int *v1;
int err;
gretl_error_clear();
err = chdir(path);
if (*__errno_location()) {
v1 = __errno_location();
gretl_errmsg_set_from_errno("chdir", *v1);
}
return err;
} | int gretl_chdir(const char *path) {
int err = 0;
gretl_error_clear();
#ifdef WIN32
err = g_chdir(path);
#else
err = chdir(path);
#endif
if (errno != 0) {
gretl_errmsg_set_from_errno("chdir", errno);
}
return err;
} | gretl_chdir | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_check_QR_rank(const gretl_matrix *R, int *err, double *rcnd) {
_BYTE uplo[3];
integer n;
integer info;
int rank;
double rcond;
integer *iwork;
double *work;
unsigned long v12;
v12 = __readfsqword(0x28u);
iwork = 0;
work = 0;
info = 0;
qmemcpy(uplo, "UN1", sizeof(uplo));
if (R && R... | int gretl_check_QR_rank(const gretl_matrix *R, int *err, double *rcnd) {
integer *iwork = NULL;
double *work = NULL;
integer n, info = 0;
double rcond;
char uplo = 'U';
char diag = 'N';
char norm = '1';
int rank;
if (gretl_is_null_matrix(R)) {
*err = E_DATA;
return 0;
}
*err = 0;
rank... | gretl_check_QR_rank | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_cholesky_decomp_solve(gretl_matrix *a, gretl_matrix *b) {
int v3;
_BYTE diag[3];
integer n;
integer m;
integer info;
int err;
double rcond;
double *work;
integer *iwork;
unsigned long v12;
v12 = __readfsqword(0x28u);
info = 0;
work = 0;
iwork = 0;
qmemcpy(diag, "N1L", sizeof(dia... | int gretl_cholesky_decomp_solve(gretl_matrix *a, gretl_matrix *b) {
integer n, m, info = 0;
double rcond;
double *work = NULL;
integer *iwork = NULL;
char diag = 'N';
char norm = '1';
char uplo = 'L';
int err = 0;
if (gretl_is_null_matrix(a) || gretl_is_null_matrix(b)) {
return E_DATA;
}
n =... | gretl_cholesky_decomp_solve | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_cholesky_invert(gretl_matrix *a) {
char uplo;
integer info;
integer n;
int err;
unsigned long v6;
v6 = __readfsqword(0x28u);
n = a->cols;
uplo = 76;
err = 0;
dpotri_(&uplo, &n, a->val, &n, &info);
if (info) {
err = 3;
fprintf(stderr, "gretl_cholesky_invert:\n dpotri failed with ... | int gretl_cholesky_invert(gretl_matrix *a) {
integer info, n = a->cols;
char uplo = 'L';
int err = 0;
dpotri_(&uplo, &n, a->val, &n, &info);
if (info != 0) {
err = E_SINGULAR;
fprintf(stderr,
"gretl_cholesky_invert:\n"
" dpotri failed with info = %d\n",
(int)info)... | gretl_cholesky_invert | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_cholesky_solve(const gretl_matrix *a, gretl_vector *b) {
char uplo;
integer n;
integer info;
integer one;
unsigned long v7;
v7 = __readfsqword(0x28u);
one = 1;
uplo = 76;
if (!a || !a->rows || !a->cols || !b || !b->rows || !b->cols)
return 2;
n = a->cols;
dpotrs_(&uplo, &n, &one, a-... | int gretl_cholesky_solve(const gretl_matrix *a, gretl_vector *b) {
integer n, info, one = 1;
char uplo = 'L';
if (gretl_is_null_matrix(a) || gretl_is_null_matrix(b)) {
return E_DATA;
}
n = a->cols;
dpotrs_(&uplo, &n, &one, a->val, &n, b->val, &n, &info);
if (info != 0) {
fprintf(stderr,
... | gretl_cholesky_solve | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *gretl_cmatrix_AHB(const gretl_matrix *A, const gretl_matrix *B,
int *err) {
return real_cmatrix_multiply(A, B, 67, err);
} | gretl_matrix *gretl_cmatrix_AHB(const gretl_matrix *A, const gretl_matrix *B,
int *err) {
return real_cmatrix_multiply(A, B, 'C', err);
} | gretl_cmatrix_AHB | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *gretl_cmatrix_QR_decomp(const gretl_matrix *A, gretl_matrix *R,
int *err) {
complex_double *v4;
integer m;
integer n;
integer lda;
integer info;
integer lwork;
int i;
int j;
gretl_matrix *Rtmp;
gretl_matrix *Q;
cmplx *tau;
cmplx *work;
comple... | gretl_matrix *gretl_cmatrix_QR_decomp(const gretl_matrix *A, gretl_matrix *R,
int *err) {
gretl_matrix *Q = NULL;
gretl_matrix *Rtmp = NULL;
integer m, n, lda;
integer info = 0;
integer lwork = -1;
cmplx *tau = NULL;
cmplx *work = NULL;
int i, j;
if (!cmatrix_val... | gretl_cmatrix_QR_decomp | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int gretl_cmatrix_SVD(const gretl_matrix *x, gretl_matrix **pu,
gretl_vector **ps, gretl_matrix **pvt, int full) {
integer v6;
char v7;
integer v8;
char v9;
char jobu;
char jobvt;
integer m;
integer n;
integer lda;
integer ldu;
integer ldvt;
integer lwork;
integer info;
... | int gretl_cmatrix_SVD(const gretl_matrix *x, gretl_matrix **pu,
gretl_vector **ps, gretl_matrix **pvt, int full) {
integer m, n, lda;
integer ldu = 1, ldvt = 1;
integer lwork = -1L;
double *rwork = NULL;
integer info;
gretl_matrix *s = NULL;
gretl_matrix *u = NULL;
gretl_matrix *vt... | gretl_cmatrix_SVD | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *gretl_cmatrix_add_sub(const gretl_matrix *A,
const gretl_matrix *B, int sgn, int *err) {
complex_double *z;
double real;
double imag;
complex_double *v7;
double v8;
double v9;
complex_double *v11;
double v12;
double v13;
double *p_real;
complex_dou... | gretl_matrix *gretl_cmatrix_add_sub(const gretl_matrix *A,
const gretl_matrix *B, int sgn, int *err) {
gretl_matrix *C = NULL;
double complex aval = 0;
double complex bval = 0;
int cr = A->rows;
int cc = A->cols;
int a_scalar = 0;
int b_scalar = 0;
if (A->is_complex ... | gretl_cmatrix_add_sub | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.