input stringlengths 16 454k | output stringlengths 13 350k | function_name stringlengths 1 100 | repo_name stringlengths 6 43 | category stringclasses 76
values | sample_id stringlengths 22 88 | decompiler stringclasses 1
value | opt_level stringclasses 1
value |
|---|---|---|---|---|---|---|---|
void write_mpi_errmsg(const char *funcname, const char *s) { ; } | static void write_mpi_errmsg(const char *funcname, const char *s) {
#ifdef HAVE_MPI
gchar *tmp = gretl_make_dotpath("mpi.fail");
FILE *fp = gretl_fopen(tmp, "wb");
if (fp != NULL) {
if (funcname != NULL) {
fprintf(fp, _("Error message from %s():\n %s"), funcname, s);
fputc('\n', fp);
} else {... | write_mpi_errmsg | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void write_octave_io_file(FILE *fp, const char *ddir) {
fwrite("# not a 'function file' as such\n1;\n\n", 1u, 0x24u, fp);
fwrite("function dotdir = gretl_dotdir()\n", 1u, 0x21u, fp);
fprintf(fp, " dotdir = \"%s\";\n", ddir);
fwrite("endfunction\n\n", 1u, 0xDu, fp);
fwrite("function gretl_export(X, fname, aut... | static void write_octave_io_file(FILE *fp, const char *ddir) {
fputs("# not a 'function file' as such\n1;\n\n", fp);
fputs("function dotdir = gretl_dotdir()\n", fp);
fprintf(fp, " dotdir = \"%s\";\n", ddir);
fputs("endfunction\n\n", fp);
fputs("function gretl_export(X, fname, autodot=1)\n", fp);
fputs(" ... | write_octave_io_file | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int write_old_bin_chunk(long offset, int nvals, FILE *fin, FILE *fout) {
float val;
int i;
int err;
unsigned long v10;
v10 = __readfsqword(0x28u);
err = 0;
fseek(fin, offset, 0);
for (i = 0; i < nvals && !err; ++i) {
err = fread(&val, 4u, 1u, fin) != 1;
if (!err)
err = fwrite(&val, 4u, 1u... | static int write_old_bin_chunk(long offset, int nvals, FILE *fin, FILE *fout) {
int i, err = 0;
float val;
fseek(fin, offset, SEEK_SET);
for (i = 0; i < nvals && !err; i++) {
if (fread(&val, sizeof val, 1, fin) != 1) {
err = 1;
}
if (!err) {
if (fwrite(&val, sizeof val, 1, fout) != 1) ... | write_old_bin_chunk | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int write_old_gdtb(const char *fname, const int *list, const DATASET *dset,
gretlopt opt) {
const char *v4;
int compression_option;
int err;
gchar *zdir;
char xmlfile[4104];
unsigned long v12;
v12 = __readfsqword(0x28u);
v4 = gretl_dotdir();
zdir = (gchar *)g_strdup_printf("%stmp-z... | static int write_old_gdtb(const char *fname, const int *list,
const DATASET *dset, gretlopt opt) {
gchar *zdir;
int err;
zdir = g_strdup_printf("%stmp-zip", gretl_dotdir());
err = gretl_mkdir(zdir);
if (!err) {
char xmlfile[FILENAME_MAX];
gretl_build_path(xmlfile, zdir, "d... | write_old_gdtb | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
FILE *write_open_dotfile(const char *fname) {
const char *path;
FILE *fp;
path = gretl_make_dotpath(fname);
fp = gretl_fopen(path, "w");
g_free(path);
return fp;
} | static FILE *write_open_dotfile(const char *fname) {
gchar *path = gretl_make_dotpath(fname);
FILE *fp;
fp = gretl_fopen(path, "w");
g_free(path);
return fp;
} | write_open_dotfile | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int write_or_read_settings(gretlopt opt, PRN *prn) {
int err;
const char *fname;
err = incompatible_options(opt, OPT_T | OPT_F);
if (!err) {
fname = get_optval_string(116, opt);
if (fname) {
if (opt == OPT_T)
return libset_write_script(fname);
else
return real_libset_read_sc... | static int write_or_read_settings(gretlopt opt, PRN *prn) {
int err = incompatible_options(opt, (OPT_T | OPT_F));
if (!err) {
const char *fname = get_optval_string(SET, opt);
if (fname == NULL) {
err = E_DATA;
} else if (opt == OPT_T) {
err = libset_write_script(fname);
} else {
... | write_or_read_settings | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void write_other_font_string(char *fstr, int stdsize) {
int fsize;
int nf;
char fname[136];
unsigned long v5;
v5 = __readfsqword(0x28u);
if (ad_hoc_font[0]) {
fsize = 0;
nf = split_graph_fontspec(ad_hoc_font, fname, &fsize);
if (nf == 2) {
sprintf(fstr, "%s,%d", fname, fsize);
} else ... | static void write_other_font_string(char *fstr, int stdsize) {
if (ad_hoc_font[0] != '\0') {
char fname[128];
int nf, fsize = 0;
nf = split_graph_fontspec(ad_hoc_font, fname, &fsize);
if (nf == 2) {
sprintf(fstr, "%s,%d", fname, fsize);
} else if (nf == 1) {
sprintf(fstr, "%s,%d", fna... | write_other_font_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void write_ox_io_file(FILE *fp, const char *ddir) {
fwrite("gretl_dotdir ()\n{\n", 1u, 0x12u, fp);
fprintf(fp, " return \"%s\";\n", ddir);
fwrite(&off_3330A6, 1u, 3u, fp);
fwrite("gretl_export_nodot (const X, const str)\n{\n", 1u, 0x2Au, fp);
fwrite(" decl fp = fopen(str, \"w\");\n", 1u, 0x1Du, fp);
fwrit... | static void write_ox_io_file(FILE *fp, const char *ddir) {
fputs("gretl_dotdir ()\n{\n", fp);
fprintf(fp, " return \"%s\";\n", ddir);
fputs("}\n\n", fp);
fputs("gretl_export_nodot (const X, const str)\n{\n", fp);
fputs(" decl fp = fopen(str, \"w\");\n", fp);
fputs(" fprint(fp, \"%d \", rows(X), \"%d\", ... | write_ox_io_file | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int write_plot_bounding_box_request(FILE *fp) {
const char *v1;
v1 = gretl_dotdir();
fprintf(fp, "set print \"%sgretltmp.png.bounds\"\n", v1);
fwrite("print \"pixel_bounds: \", GPVAL_TERM_XMIN, GPVAL_TERM_XMAX, "
"GPVAL_TERM_YMIN, GPVAL_TERM_YMAX\n",
1u, 0x5Bu, fp);
fwrite("print \"data_bou... | int write_plot_bounding_box_request(FILE *fp) {
#ifdef WIN32
char buf[FILENAME_MAX];
int err;
err = adjust_filename(buf, gretl_dotdir(), 1);
if (!err) {
fprintf(fp, "set print \"%sgretltmp.png.bounds\"\n", buf);
} else {
return err;
}
#else
fprintf(fp, "set print \"%sgretltmp.png.bounds\"\n", gre... | write_plot_bounding_box_request | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void write_plot_line_styles(int ptype, FILE *fp) {
gretlRGB boxcolor;
int i;
int ia;
char cstr[12];
unsigned long v6;
v6 = __readfsqword(0x28u);
switch (ptype) {
case 34:
for (i = 0; i <= 1; ++i) {
print_rgb_hash(cstr, user_color[i]);
fprintf(fp, "set linetype %d lc rgb \"%s\"\n", i + 1... | void write_plot_line_styles(int ptype, FILE *fp) {
char cstr[12];
int i;
if (ptype == PLOT_3D) {
for (i = 0; i < 2; i++) {
print_rgb_hash(cstr, user_color[i]);
fprintf(fp, "set linetype %d lc rgb \"%s\"\n", i + 1, cstr);
}
} else if (ptype == PLOT_BOXPLOTS) {
for (i = 0; i < 2; i++) {
... | write_plot_line_styles | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int write_plot_output_line(const char *path, FILE *fp) {
const char *v2;
if (path) {
fprintf(fp, "set output \"%s\"\n", path);
} else {
v2 = gretl_dotdir();
fprintf(fp, "set output \"%sgretltmp.png\"\n", v2);
}
return 0;
} | int write_plot_output_line(const char *path, FILE *fp) {
#ifdef WIN32
char buf[FILENAME_MAX];
int err = 0;
if (path == NULL) {
err = adjust_filename(buf, gretl_dotdir(), 1);
if (!err) {
fprintf(fp, "set output \"%sgretltmp.png\"\n", buf);
}
} else {
err = adjust_filename(buf, path, 1);
... | write_plot_output_line | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int write_plot_type_string(PlotType ptype, GptFlags flags, FILE *fp) {
int i;
int ret;
ret = 0;
if (ptype == PLOT_GEOMAP)
return 0;
for (i = 1; i <= 37; ++i) {
if (ptype == ptinfo[i].ptype) {
if ((flags & 0x800000) != 0) {
fprintf(fp, "# %s (large)\n", ptinfo[i].pstr);
} else if (... | int write_plot_type_string(PlotType ptype, GptFlags flags, FILE *fp) {
int i, ret = 0;
if (ptype == PLOT_GEOMAP) {
return 0;
}
for (i = 1; i < PLOT_TYPE_MAX; i++) {
if (ptype == ptinfo[i].ptype) {
if (flags & GPT_XL) {
fprintf(fp, "# %s (large)\n", ptinfo[i].pstr);
} else if (flag... | write_plot_type_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void write_plot_x_range(const double *x, int t1, int t2, FILE *fp) {
double xmin0;
double xmax0;
double xmin;
double xrange;
unsigned long v9;
v9 = __readfsqword(0x28u);
gretl_minmax(t1, t2, x, &xmin0, &xmax0);
xrange = xmax0 - xmin0;
xmin = xmin0 - 0.025 * (xmax0 - xmin0);
if (xmin0 >= 0.0 && xmin... | static void write_plot_x_range(const double *x, int t1, int t2, FILE *fp) {
double xmin0, xmin, xmax0, xmax;
double xrange;
gretl_minmax(t1, t2, x, &xmin0, &xmax0);
xrange = xmax0 - xmin0;
xmin = xmin0 - xrange * .025;
if (xmin0 >= 0.0 && xmin < 0.0) {
xmin = 0.0;
}
xmax = xmax0 + xrange * .025;
... | write_plot_x_range | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void write_png_font_string(char *fstr, char *ad_hoc_fontspec, PlotType ptype,
const char *grfont, double scale) {
char *grfonta;
int fsize;
int adhoc;
int nf;
char fname[136];
unsigned long v11;
grfonta = (char *)grfont;
v11 = __readfsqword(0x28u);
adhoc = 0;
if (!grfont)... | static void write_png_font_string(char *fstr, char *ad_hoc_fontspec,
PlotType ptype, const char *grfont,
double scale) {
int adhoc = 0;
if (grfont == NULL) {
if (ad_hoc_font[0] != '\0') {
adhoc = 1;
grfont = ad_hoc_font;
} else... | write_png_font_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void write_png_size_string(char *s, PlotType ptype, GptFlags flags,
double scale) {
int w;
int h;
unsigned long v7;
v7 = __readfsqword(0x28u);
w = 640;
h = 480;
if (special_size_is_set()) {
w = (int)special_width;
h = (int)special_height;
clear_special_size();
} e... | static void write_png_size_string(char *s, PlotType ptype, GptFlags flags,
double scale) {
int w = GP_WIDTH, h = GP_HEIGHT;
if (special_size_is_set()) {
w = (int)special_width;
h = (int)special_height;
clear_special_size();
} else if (flags & GPT_LETTERBOX) {
w ... | write_png_size_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int write_purebin(const char *fname, const int *list, const DATASET *dset,
gretlopt opt) {
int (*writer)(const char *, const int *, const DATASET *, gretlopt);
writer = (int (*)(const char *, const int *, const DATASET *,
gretlopt))get_plugin_function("purebin_write_data");
... | static int write_purebin(const char *fname, const int *list,
const DATASET *dset, gretlopt opt) {
int (*writer)(const char *, const int *, const DATASET *, gretlopt);
int err = 0;
writer = get_plugin_function("purebin_write_data");
if (writer == NULL) {
err = 1;
} else {
err... | write_purebin | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void write_python_io_file(FILE *fp, const char *ddir) {
fprintf(fp, "gretl_dotdir = \"%s\"\n\n", ddir);
fwrite("import os\n", 1u, 0xAu, fp);
fwrite("\ndef gretl_export(X, fname, autodot=1):\n", 1u, 0x28u, fp);
fwrite(" binwrite = 0\n", 1u, 0xFu, fp);
fwrite(" if fname[-4:] == '.bin':\n", 1u, 0x1Bu, fp);
f... | static void write_python_io_file(FILE *fp, const char *ddir) {
fprintf(fp, "gretl_dotdir = \"%s\"\n\n", ddir);
fputs("import os\n", fp);
fputs("\ndef gretl_export(X, fname, autodot=1):\n", fp);
fputs(" binwrite = 0\n", fp);
fputs(" if fname[-4:] == '.bin':\n", fp);
fputs(" binwrite = 1\n", fp);
fput... | write_python_io_file | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int write_rectangles(gnuplot_info *gi, char *rgb, const double *d, int t1,
int t2, DATASET *dset, FILE *fp) {
int v8;
int bar_on;
int obj;
int err;
char stobs[16];
char endobs[24];
unsigned long v17;
v17 = __readfsqword(0x28u);
bar_on = 0;
obj = 1;
err = 0;
if (!gi->x)
... | static int write_rectangles(gnuplot_info *gi, char *rgb, const double *d,
int t1, int t2, DATASET *dset, FILE *fp) {
char stobs[16], endobs[16];
int bar_on = 0, obj = 1;
int t, err = 0;
if (gi->x == NULL) {
return E_DATA;
}
if (*rgb == '\0') {
strcpy(rgb, "#dddddd");
... | write_rectangles | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void write_scalar_message(const parser *p, PRN *prn) {
char *v2;
double x;
x = gretl_scalar_get_value(p->lh.name, 0);
if (p->lh.t == 54)
v2 = gettext("Replaced scalar %s");
else
v2 = gettext("Generated scalar %s");
pprintf(prn, v2, p->lh.name);
if (fabs(x) <= 1.797693134862316e308)
pprintf(pr... | static void write_scalar_message(const parser *p, PRN *prn) {
double x = gretl_scalar_get_value(p->lh.name, NULL);
if (p->lh.t == NUM) {
pprintf(prn, _("Replaced scalar %s"), p->lh.name);
} else {
pprintf(prn, _("Generated scalar %s"), p->lh.name);
}
if (na(x)) {
pputs(prn, " = NA");
} else {
... | write_scalar_message | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void write_scalar_value(double x, const char *fmt, PRN *prn) {
if (fabs(x) <= 1.797693134862316e308)
pprintf(prn, fmt, x);
else
pprintf(prn, "%g\n", x);
} | static void write_scalar_value(double x, const char *fmt, PRN *prn) {
if (na(x)) {
#ifdef WIN32
win32_pprint_nonfinite(prn, x, '\n');
#else
pprintf(prn, "%g\n", x);
#endif
} else {
pprintf(prn, fmt, x);
}
} | write_scalar_value | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void write_stata_io_file(FILE *fp, const char *ddir) {
fwrite("program define gretl_export\n", 1u, 0x1Cu, fp);
fwrite("version 8.2\n", 1u, 0xCu, fp);
fwrite("local matrix `1'\n", 1u, 0x11u, fp);
fwrite("local fname `2'\n", 1u, 0x10u, fp);
fwrite("tempname myfile\n", 1u, 0x10u, fp);
fprintf(fp, "file open `m... | static void write_stata_io_file(FILE *fp, const char *ddir) {
fputs("program define gretl_export\n", fp);
fputs("version 8.2\n", fp);
fputs("local matrix `1'\n", fp);
fputs("local fname `2'\n", fp);
fputs("tempname myfile\n", fp);
fprintf(fp,
"file open `myfile' using \"%s`fname'\", "
"... | write_stata_io_file | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void write_styles_from_plotspec(const GPT_SPEC *spec, FILE *fp) {
int i;
int ia;
_BOOL4 offset;
gretlRGB color;
char cstr[8];
unsigned long v7;
v7 = __readfsqword(0x28u);
switch (spec->code) {
case PLOT_FREQ_SIMPLE:
case PLOT_FREQ_NORMAL:
case PLOT_FREQ_GAMMA:
case PLOT_FREQ_DISCRETE:
color... | static void write_styles_from_plotspec(const GPT_SPEC *spec, FILE *fp) {
char cstr[8];
int i;
if (frequency_plot_code(spec->code)) {
gretlRGB color = get_boxcolor();
print_rgb_hash(cstr, color);
fprintf(fp, "set linetype 1 lc rgb \"%s\"\n", cstr);
fputs("set linetype 2 lc rgb \"#000000\"\n", fp)... | write_styles_from_plotspec | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int write_tdisagg_plot(const gretl_matrix *YY, int mult, const char *title,
DATASET *dset) {
double v5;
double v6;
char *v7;
char *v8;
int err;
int t;
int T;
const double *obs;
FILE *fp;
double d1;
double d2;
double y0t;
char mstr[24];
unsigned long v20;
v20 = __rea... | int write_tdisagg_plot(const gretl_matrix *YY, int mult, const char *title,
DATASET *dset) {
const double *obs = NULL;
char mstr[16] = {0};
int t, T = YY->rows;
double y0t;
FILE *fp;
int err = 0;
set_optval_string(GNUPLOT, OPT_U, "display");
fp = open_plot_input_file(PLOT_REGULAR... | write_tdisagg_plot | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void write_user_bundles(PRN *prn) {
int i;
for (i = 0; i < n_vars_0; ++i) {
if (uvars[i]->type == GRETL_TYPE_BUNDLE)
gretl_bundle_serialize((gretl_bundle *)uvars[i]->ptr, uvars[i]->name,
prn);
}
} | static void write_user_bundles(PRN *prn) {
int i;
for (i = 0; i < n_vars; i++) {
if (uvars[i]->type == GRETL_TYPE_BUNDLE) {
gretl_bundle_serialize(uvars[i]->ptr, uvars[i]->name, prn);
}
}
} | write_user_bundles | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void write_user_lists(PRN *prn) {
int i;
for (i = 0; i < n_vars_0; ++i) {
if (uvars[i]->type == GRETL_TYPE_LIST)
gretl_list_serialize((const int *)uvars[i]->ptr, uvars[i]->name, prn);
}
} | static void write_user_lists(PRN *prn) {
int i;
for (i = 0; i < n_vars; i++) {
if (uvars[i]->type == GRETL_TYPE_LIST) {
gretl_list_serialize(uvars[i]->ptr, uvars[i]->name, prn);
}
}
} | write_user_lists | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void write_user_matrices(PRN *prn) {
int i;
for (i = 0; i < n_vars_0; ++i) {
if (uvars[i]->type == GRETL_TYPE_MATRIX)
xml_put_user_matrix(uvars[i], prn);
}
} | static void write_user_matrices(PRN *prn) {
int i;
for (i = 0; i < n_vars; i++) {
if (uvars[i]->type == GRETL_TYPE_MATRIX) {
xml_put_user_matrix(uvars[i], prn);
}
}
} | write_user_matrices | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void write_user_scalars(PRN *prn) {
int i;
double x;
for (i = 0; i < n_vars_0; ++i) {
if (uvars[i]->type == GRETL_TYPE_DOUBLE) {
x = *(double *)uvars[i]->ptr;
pprintf(prn, " <gretl-scalar name=\"%s\" value=\"", uvars[i]->name);
serialize_scalar_value(x, prn);
pputs(prn, "\"/>\n");
... | static void write_user_scalars(PRN *prn) {
double x;
int i;
for (i = 0; i < n_vars; i++) {
if (uvars[i]->type == GRETL_TYPE_DOUBLE) {
x = *(double *)uvars[i]->ptr;
pprintf(prn, " <gretl-scalar name=\"%s\" value=\"", uvars[i]->name);
serialize_scalar_value(x, prn);
pputs(prn, "\"/>\n")... | write_user_scalars | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int write_weights_to_dataset(double *uvar, int nunits, int T, DATASET *dset) {
int i;
int t;
int w;
double wi;
w = dset->v - 1;
for (i = 0; i < nunits; ++i) {
if (uvar[i] > 0.0 && fabs(uvar[i]) <= 1.797693134862316e308)
wi = 1.0 / uvar[i];
else
wi = 0.0;
for (t = 0; t < T; ++t)
... | static int write_weights_to_dataset(double *uvar, int nunits, int T,
DATASET *dset) {
int w = dset->v - 1;
double wi;
int i, t;
for (i = 0; i < nunits; i++) {
if (uvar[i] <= 0.0 || na(uvar[i])) {
wi = 0.0;
} else {
wi = 1.0 / uvar[i];
}
for (t = 0... | write_weights_to_dataset | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int wspace_fail(integer info, double w0) {
fprintf(stderr,
"gretl_matrix: workspace query failed: info = %d, work[0] = %g\n",
info, w0);
return 2;
} | static int wspace_fail(integer info, double w0) {
int iinfo = (int)info;
fprintf(stderr,
"gretl_matrix: workspace query failed: info = %d, "
"work[0] = %g\n",
iinfo, w0);
return E_DATA;
} | wspace_fail | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void wtw(gretl_matrix *wt, const gretl_matrix *H, int t, int lag) {
int i;
int j;
double hti;
for (i = 0; i < H->cols; ++i) {
hti = H->val[i * H->rows + t];
for (j = 0; j < H->cols; ++j)
wt->val[j * wt->rows + i] = hti * H->val[j * H->rows + t - lag];
}
} | static void wtw(gretl_matrix *wt, const gretl_matrix *H, int t, int lag) {
int i, j, s = t - lag;
double hti, htj;
for (i = 0; i < H->cols; i++) {
hti = gretl_matrix_get(H, t, i);
for (j = 0; j < H->cols; j++) {
htj = gretl_matrix_get(H, s, j);
gretl_matrix_set(wt, i, j, hti * htj);
}
}... | wtw | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double x_factorial(double x) {
int n;
double fact;
n = (int)x;
if (x < 0.0)
return NAN;
if (x <= 12.0) {
if (n) {
for (fact = (double)n; --n > 1; fact = (double)n * fact)
;
} else {
return 1.0;
}
} else {
fact = cephes_gamma(x + 1.0);
if (get_cephes_errno())
... | double x_factorial(double x) {
double fact;
int n = x;
if (x < 0) {
fact = NADBL;
} else if (x > 12) {
fact = cephes_gamma(1 + x);
if (get_cephes_errno()) {
fact = NADBL;
}
} else if (n == 0) {
fact = 1;
} else {
fact = n;
while (--n > 1) {
fact *= n;
}
}
re... | x_factorial | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int x_sectional_weighted_stat(double *y, const int *xlist, const int *wlist,
const DATASET *dset, int f, int partial_ok) {
double *v7;
int n;
int i;
int t;
int err;
int missing;
double wxbar;
double wsum;
double ws2;
double V2;
double **X;
double *x;
double *w;
... | int x_sectional_weighted_stat(double *y, const int *xlist, const int *wlist,
const DATASET *dset, int f, int partial_ok) {
double wxbar, wsum, d, ws2, V2, adj;
double *x, *w, **X;
int i, t, n, missing;
int err = 0;
if (wlist[0] != xlist[0]) {
gretl_errmsg_sprintf("Weighted s... | x_sectional_weighted_stat | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int x_to_period(double x, char c, int *julian, int *err) {
double xa;
int ret;
int k;
xa = x;
if (julian && c == 121) {
if (x >= 0.0) {
*julian = 0;
} else {
*julian = 1;
xa = -x;
}
}
if (fabs(xa) > 1.797693134862316e308)
return -1;
if (xa >= 0.0 && fabs(xa) <= 2147483... | static int x_to_period(double x, char c, int *julian, int *err) {
if (julian != NULL && c == 'y') {
if (x < 0) {
*julian = 1;
x = -x;
} else {
*julian = 0;
}
}
if (na(x)) {
return -1;
} else if (x < 0 || fabs(x) > INT_MAX) {
*err = E_INVARG;
return -1;
} else {
... | x_to_period | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int xcf_data_check(const double *x, const double *y, int T, int *badvar) {
int xconst;
int yconst;
int t;
xconst = 1;
yconst = 1;
if (T <= 4)
return 45;
for (t = 0; t < T; ++t) {
if (fabs(x[t]) > 1.797693134862316e308 ||
fabs(y[t]) > 1.797693134862316e308)
return 34;
if (t > 0 &... | static int xcf_data_check(const double *x, const double *y, int T,
int *badvar) {
int xconst = 1, yconst = 1;
int t;
if (T < 5) {
return E_TOOFEW;
}
for (t = 0; t < T; t++) {
if (na(x[t]) || na(y[t])) {
return E_MISSDATA;
}
if (t > 0 && x[t] != x[0]) {
x... | xcf_data_check | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *xcf_vec(const double *x, const double *y, int p,
const DATASET *dset, int n, int *err) {
int v7;
int v8;
unsigned int v9;
char *v10;
int badvar;
int t1;
int t2;
int T;
int yt1;
int yt2;
gretl_matrix *xcf;
unsigned long v20;
v20 = __readfsqword(0x28u);
xcf... | gretl_matrix *xcf_vec(const double *x, const double *y, int p,
const DATASET *dset, int n, int *err) {
gretl_matrix *xcf = NULL;
int t1, t2;
int T, badvar = 0;
if (p <= 0) {
*err = E_DATA;
return NULL;
}
if (dset != NULL) {
int yt1, yt2;
t1 = yt1 = dset->t1;
t2 =... | xcf_vec | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int xcorrgm_ascii_plot(double *xcf, int xcf_m, PRN *prn) {
char *v4;
char *v5;
int k;
double *xk;
xk = (double *)malloc(8LL * (2 * xcf_m + 1));
if (!xk)
return 12;
for (k = -xcf_m; k <= xcf_m; ++k)
xk[k + xcf_m] = (double)k;
v4 = gettext("Cross-correlogram");
pprintf(prn, "\n\n%s\n\n", v4);
... | static int xcorrgm_ascii_plot(double *xcf, int xcf_m, PRN *prn) {
double *xk = malloc((xcf_m * 2 + 1) * sizeof *xk);
int k;
if (xk == NULL) {
return E_ALLOC;
}
for (k = -xcf_m; k <= xcf_m; k++) {
xk[k + xcf_m] = k;
}
pprintf(prn, "\n\n%s\n\n", _("Cross-correlogram"));
graphyx(xcf, xk, 2 * xcf... | xcorrgm_ascii_plot | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int xcorrgm_graph(const char *xname, const char *yname, double *xcf, int m,
double *pm, int allpos) {
char *v7;
char *v8;
int err;
int k;
FILE *fp;
gchar *title;
char crit_string[24];
unsigned long v18;
v18 = __readfsqword(0x28u);
err = 0;
fp = open_plot_input_file(PLOT_XCORRELO... | static int xcorrgm_graph(const char *xname, const char *yname, double *xcf,
int m, double *pm, int allpos) {
char crit_string[16];
gchar *title;
FILE *fp;
int k, err = 0;
fp = open_plot_input_file(PLOT_XCORRELOGRAM, 0, &err);
if (err) {
return err;
}
sprintf(crit_string, "... | xcorrgm_graph | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int xcorrgram(const int *list, int order, DATASET *dset, gretlopt opt,
PRN *prn) {
char *v5;
char *v7;
char *v8;
char *v9;
char *v10;
int t1;
int t2;
int ascii_plot;
int use_gnuplot;
int badvar;
int err;
int k;
int p;
int T;
int allpos;
gretl_matrix *xcf;
const double *x;... | int xcorrgram(const int *list, int order, DATASET *dset, gretlopt opt,
PRN *prn) {
gretl_matrix *xcf = NULL;
double pm[3];
const char *xname, *yname;
const double *x, *y;
int t1 = dset->t1, t2 = dset->t2;
int ascii_plot = 0;
int use_gnuplot = 0;
int k, p, badvar = 0;
int T, err = 0;
g... | xcorrgram | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int xml_get_data_frequency(xmlNodePtr node, int *pd, int *dattype) {
char *v3;
int err;
xmlChar *tmp;
tmp = (xmlChar *)xmlGetProp(node, "frequency");
err = 0;
*pd = 1;
if (tmp) {
if (!strncmp((const char *)tmp, "special", 7u)) {
*dattype = 5;
if ((unsigned int)__isoc99_sscanf(tmp + 7, ":%... | static int xml_get_data_frequency(xmlNodePtr node, int *pd, int *dattype) {
xmlChar *tmp = xmlGetProp(node, (XUC) "frequency");
int err = 0;
*pd = 1;
if (tmp != NULL) {
if (!strncmp((char *)tmp, "special", 7)) {
*dattype = SPECIAL_TIME_SERIES;
if (sscanf((char *)tmp + 7, ":%d", pd) == 1) {
... | xml_get_data_frequency | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int xml_get_data_structure(xmlNodePtr node, int *dattype) {
char *v2;
char *v3;
int err;
xmlChar *tmp;
tmp = (xmlChar *)xmlGetProp(node, "type");
err = 0;
if (tmp) {
if (!strcmp((const char *)tmp, "cross-section")) {
*dattype = 0;
} else if (!strcmp((const char *)tmp, "time-series")) {
... | static int xml_get_data_structure(xmlNodePtr node, int *dattype) {
xmlChar *tmp = xmlGetProp(node, (XUC) "type");
int err = 0;
if (tmp == NULL) {
gretl_errmsg_set(_("Required attribute 'type' is missing from data file"));
err = 1;
} else {
if (!strcmp((char *)tmp, "cross-section")) {
*dattype... | xml_get_data_structure | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int xml_get_endobs(xmlNodePtr node, char *endobs, int caldata) {
char *v3;
int y;
int m;
int err;
double x;
xmlChar *tmp;
char obstr[24];
unsigned long v13;
v13 = __readfsqword(0x28u);
tmp = (xmlChar *)xmlGetProp(node, "endobs");
err = 0;
if (tmp) {
obstr[0] = 0;
strncat(obstr, (const c... | static int xml_get_endobs(xmlNodePtr node, char *endobs, int caldata) {
xmlChar *tmp = xmlGetProp(node, (XUC) "endobs");
int err = 0;
if (tmp != NULL) {
char obstr[OBSLEN];
obstr[0] = '\0';
strncat(obstr, (char *)tmp, OBSLEN - 1);
gretl_charsub(obstr, ':', '.');
if (caldata) {
int y, ... | xml_get_endobs | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int xml_get_startobs(xmlNodePtr node, double *sd0, char *stobs, int caldata) {
char *v4;
int y;
int m;
int d;
int err;
guint32 ed;
double x;
xmlChar *tmp;
char obstr[24];
unsigned long v16;
v16 = __readfsqword(0x28u);
tmp = (xmlChar *)xmlGetProp(node, "startobs");
err = 0;
if (tmp) {
ob... | static int xml_get_startobs(xmlNodePtr node, double *sd0, char *stobs,
int caldata) {
xmlChar *tmp = xmlGetProp(node, (XUC) "startobs");
int err = 0;
if (tmp != NULL) {
char obstr[OBSLEN];
int y, m, d;
obstr[0] = '\0';
strncat(obstr, (char *)tmp, OBSLEN - 1);
gret... | xml_get_startobs | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void xml_print_identity(identity *ident, PRN *prn) {
int i;
pprintf(prn, "<identity n_atoms=\"%d\" depvar=\"%d\">\n", ident->n_atoms,
ident->depvar);
for (i = 0; i < ident->n_atoms; ++i)
pprintf(prn, " <id_atom op=\"%d\" varnum=\"%d\"/>\n", ident->atoms[i].op,
ident->atoms[i].varnum);
... | static void xml_print_identity(identity *ident, PRN *prn) {
int i;
pprintf(prn, "<identity n_atoms=\"%d\" depvar=\"%d\">\n", ident->n_atoms,
ident->depvar);
for (i = 0; i < ident->n_atoms; i++) {
pprintf(prn, " <id_atom op=\"%d\" varnum=\"%d\"/>\n", ident->atoms[i].op,
ident->atoms[i].v... | xml_print_identity | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void xml_put_bundled_item(gpointer keyp, gpointer value, gpointer p) {
const char *name;
int j;
double *vals;
double x;
if (*(_DWORD *)value != 9 || *((_QWORD *)value + 1)) {
name = gretl_type_get_name((GretlType) * (_DWORD *)value);
pprintf((PRN *)p, "<bundled-item key=\"%s\" type=\"%s\"",
... | static void xml_put_bundled_item(gpointer keyp, gpointer value, gpointer p) {
const char *key = keyp;
bundled_item *item = value;
PRN *prn = p;
int j;
if (item->type == GRETL_TYPE_STRING) {
if (item->data == NULL) {
fprintf(stderr, "bundle -> XML: skipping NULL string %s\n", key);
return;
... | xml_put_bundled_item | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void xml_put_user_matrix(user_var *u, PRN *prn) {
if (u) {
if (u->ptr)
gretl_matrix_serialize((const gretl_matrix *)u->ptr, u->name, prn);
}
} | static void xml_put_user_matrix(user_var *u, PRN *prn) {
if (u != NULL && u->ptr != NULL) {
gretl_matrix_serialize(u->ptr, u->name, prn);
}
} | xml_put_user_matrix | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int xneq(double x, double y) {
double reldiff;
if (x == 0.0) {
reldiff = fabs(y);
} else {
if (y != 0.0) {
if (x <= y)
x = (y - x) / x;
else
x = (x - y) / y;
}
reldiff = fabs(x);
}
return reldiff > 1.5e-12;
} | static int xneq(double x, double y) {
double reldiff;
if (x == 0.0) {
reldiff = fabs(y);
} else if (y == 0.0) {
reldiff = fabs(x);
} else if (x > y) {
reldiff = fabs((x - y) / y);
} else {
reldiff = fabs((y - x) / x);
}
return reldiff > 1.5e-12;
} | xneq | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int xpxgenr(int vi, int vj, DATASET *dset) {
if (vi == vj && gretl_isdummy(dset->t1, dset->t2, dset->Z[vi]))
return -1;
else
return get_transform(125, vi, vj, 0.0, dset, 29, dset->v, 0);
} | int xpxgenr(int vi, int vj, DATASET *dset) {
if (vi == vj) {
if (gretl_isdummy(dset->t1, dset->t2, dset->Z[vi])) {
return -1;
}
}
return get_transform(SQUARE, vi, vj, 0.0, dset, VNAMELEN - 3, dset->v, NULL);
} | xpxgenr | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double xsect_minmax(double *x, int n, int f) {
int i;
double ret;
ret = *x;
for (i = 1; i < n; ++i) {
if (f == 311) {
if (ret > x[i])
ret = x[i];
} else if (x[i] > ret) {
ret = x[i];
}
}
return ret;
} | static double xsect_minmax(double *x, int n, int f) {
double ret = x[0];
int i;
for (i = 1; i < n; i++) {
if (f == F_MIN) {
if (x[i] < ret) {
ret = x[i];
}
} else if (x[i] > ret) {
ret = x[i];
}
}
return ret;
} | xsect_minmax | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int xtab_allocate_arrays(Xtab *tab) {
int **v1;
int i;
int ia;
int ib;
int j;
int ja;
int err;
err = 0;
if (!tab->rstrs && !tab->rval) {
tab->rval = (double *)malloc(8LL * tab->rows);
if (!tab->rval)
err = 12;
}
if (!err && !tab->cstrs && !tab->cval) {
tab->cval = (double *)mall... | static int xtab_allocate_arrays(Xtab *tab) {
int i, j, err = 0;
if (!tab->rstrs && tab->rval == NULL) {
tab->rval = malloc(tab->rows * sizeof *tab->rval);
if (tab->rval == NULL) {
err = E_ALLOC;
}
}
if (!err && !tab->cstrs && tab->cval == NULL) {
tab->cval = malloc(tab->cols * sizeof *ta... | xtab_allocate_arrays | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int xtab_col_match(Xtab *tab, int j, const char *s, double x) {
if (tab->cstrs)
return strcmp(s, tab->Sc[j]) == 0;
else
return tab->cval[j] == x;
} | static int xtab_col_match(Xtab *tab, int j, const char *s, double x) {
if (tab->cstrs) {
return strcmp(s, tab->Sc[j]) == 0;
} else {
return x == tab->cval[j];
}
} | xtab_col_match | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int xtab_do_pearson(const Xtab *tab) {
int i;
int j;
int err;
double pearson;
double y;
double x;
double pval;
pearson = 0.0;
err = 0;
for (i = 0; i < tab->rows && !err; ++i) {
if (tab->rtotal[i] > 0) {
for (j = 0; j < tab->cols && !err; ++j) {
y = (double)tab->ctotal[j] * (double... | static int xtab_do_pearson(const Xtab *tab) {
double x, y, ymin = 1.0e-7;
double pearson = 0.0;
int i, j, err = 0;
for (i = 0; i < tab->rows && !err; i++) {
if (tab->rtotal[i] > 0) {
for (j = 0; j < tab->cols && !err; j++) {
y = ((double)tab->rtotal[i] * tab->ctotal[j]) / tab->n;
if (... | xtab_do_pearson | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int xtab_get_data(Xtab *tab, int v, int j, const DATASET *dset,
series_table **pst) {
double **p_cval;
char ***p_Sc;
int *p_cols;
int *p_cstrs;
int v9;
char **v10;
int err;
int ns;
int nv;
int i;
int n;
int k;
char **S;
double **xtarg;
char ***Starg;
int *itarg;
int *... | static int xtab_get_data(Xtab *tab, int v, int j, const DATASET *dset,
series_table **pst) {
double **xtarg = (j == 1) ? &tab->cval : &tab->rval;
char ***Starg = (j == 1) ? &tab->Sc : &tab->Sr;
int *itarg = (j == 1) ? &tab->cols : &tab->rows;
int *ttarg = (j == 1) ? &tab->cstrs : &tab->... | xtab_get_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
Xtab *xtab_new(int n, int t1, int t2) {
Xtab *tab;
tab = (Xtab *)malloc(0x98u);
if (!tab)
return 0;
tab->rtotal = 0;
tab->ctotal = 0;
tab->rval = 0;
tab->cval = 0;
tab->f = 0;
tab->n = n;
tab->t1 = t1;
tab->t2 = t2;
tab->missing = 0;
tab->rvarname[0] = 0;
tab->cvarname[0] = 0;
tab->Sr... | static Xtab *xtab_new(int n, int t1, int t2) {
Xtab *tab = malloc(sizeof *tab);
if (tab == NULL)
return NULL;
tab->rtotal = NULL;
tab->ctotal = NULL;
tab->rval = NULL;
tab->cval = NULL;
tab->f = NULL;
tab->n = n;
tab->t1 = t1;
tab->t2 = t2;
tab->missing = 0;
*tab->rvarname = '\0';
*tab... | xtab_new | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int xtab_row_match(Xtab *tab, int i, const char *s, double x) {
if (tab->rstrs)
return strcmp(s, tab->Sr[i]) == 0;
else
return tab->rval[i] == x;
} | static int xtab_row_match(Xtab *tab, int i, const char *s, double x) {
if (tab->rstrs) {
return strcmp(s, tab->Sr[i]) == 0;
} else {
return x == tab->rval[i];
}
} | xtab_row_match | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *xtab_to_matrix(const Xtab *tab) {
int i;
int j;
gretl_matrix *m;
if (!tab)
return 0;
m = gretl_matrix_alloc(tab->rows, tab->cols);
if (!m)
return 0;
for (j = 0; j < tab->cols; ++j) {
for (i = 0; i < tab->rows; ++i)
m->val[j * m->rows + i] = (double)tab->f[i][j];
}
retu... | gretl_matrix *xtab_to_matrix(const Xtab *tab) {
gretl_matrix *m;
double x;
int i, j;
if (tab == NULL) {
return NULL;
}
m = gretl_matrix_alloc(tab->rows, tab->cols);
if (m == NULL) {
return NULL;
}
for (j = 0; j < tab->cols; j++) {
for (i = 0; i < tab->rows; i++) {
x = (double)tab-... | xtab_to_matrix | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void xtimer_init() {
int v0;
if (!xtimers) {
xtimers = (GPtrArray *)g_ptr_array_sized_new(1);
v0 = gretl_function_depth();
new_xtimer(v0);
}
} | static void xtimer_init(void) {
if (xtimers == NULL) {
xtimers = g_ptr_array_sized_new(1);
new_xtimer(gretl_function_depth());
}
} | xtimer_init | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double xtimer_stopwatch() {
xtimer *xt;
double t1;
double ret;
xt = get_xtimer();
t1 = get_xtime();
ret = t1 - xt->t0;
xt->t0 = t1;
return ret;
} | static double xtimer_stopwatch(void) {
struct xtimer *xt = get_xtimer();
double t1 = get_xtime();
double ret = t1 - xt->t0;
xt->t0 = t1;
return ret;
} | xtimer_stopwatch | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void xtxlag(gretl_matrix *wt, const gretl_matrix *X, int n, int t, int lag) {
int i;
int j;
double xi;
for (i = 0; i < n; ++i) {
xi = X->val[i * X->rows + t];
for (j = 0; j < n; ++j)
wt->val[j * wt->rows + i] = xi * X->val[j * X->rows + t - lag];
}
} | static void xtxlag(gretl_matrix *wt, const gretl_matrix *X, int n, int t,
int lag) {
double xi, xj;
int i, j;
for (i = 0; i < n; i++) {
xi = gretl_matrix_get(X, t, i);
for (j = 0; j < n; j++) {
xj = gretl_matrix_get(X, t - lag, j);
gretl_matrix_set(wt, i, j, xi * xj);
}... | xtxlag | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const double *xvec_from_matrix(gretl_matrix *m, parser *p, int *subset,
int *err) {
int v4;
const double *ret;
ret = 0;
if (m && m->rows && m->cols == 1) {
if (m->rows == p->dset->n) {
return m->val;
} else {
if (p->dset)
v4 = p->dset->t2 - p->dset->t1... | static const double *xvec_from_matrix(gretl_matrix *m, parser *p, int *subset,
int *err) {
const double *ret = NULL;
if (gretl_is_null_matrix(m) || m->cols != 1) {
*err = E_TYPES;
} else if (m->rows == p->dset->n) {
ret = m->val;
} else if (m->rows == sample_size(p... | xvec_from_matrix | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double xy_calc(double x, double y, int op, int targ, parser *p) {
double v5;
_BOOL4 v6;
_BOOL4 v7;
int v8;
double z;
if (op == 6 || op == 34)
return y;
if ((p->flags & 0x80) != 0 &&
(fabs(x) > 1.797693134862316e308 || fabs(y) > 1.797693134862316e308))
return NAN;
if (targ != 57 && op == 9... | static double xy_calc(double x, double y, int op, int targ, parser *p) {
double z = NADBL;
#if EDEBUG > 1
fprintf(stderr, "xy_calc: x = %g, y = %g, op = %d ('%s')\n", x, y, op,
getsymb(op));
#endif
if (op == B_ASN || op == B_DOTASN) {
return y;
}
if ((p->flags & P_NATEST) && (na(x) || na(y)))... | xy_calc | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int xy_get_sample(const double *y, const double *x, int *t1, int *t2, int *n) {
int t;
int ta;
int tb;
int nxy;
int err;
err = 0;
for (t = *t1; t <= *t2 && fabs(x[t]) > 1.797693134862316e308; ++t)
++*t1;
for (ta = *t2; ta >= *t1 && fabs(x[ta]) > 1.797693134862316e308; --ta)
--*t2;
*n = 0;
n... | static int xy_get_sample(const double *y, const double *x, int *t1, int *t2,
int *n) {
int t, nxy, err = 0;
for (t = *t1; t <= *t2; t++) {
if (na(x[t])) {
*t1 += 1;
} else {
break;
}
}
for (t = *t2; t >= *t1; t--) {
if (na(x[t])) {
*t2 -= 1;
} els... | xy_get_sample | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int xy_plot_with_control(const int *list, const char *literal,
const DATASET *dset, gretlopt opt) {
char *v5;
char *v6;
char *v7;
char *v8;
MODEL v9;
gretlopt opta;
const DATASET *dseta;
const char *literala;
const int *lista;
int t1;
int t2;
int missvals;
int s;
int... | int xy_plot_with_control(const int *list, const char *literal,
const DATASET *dset, gretlopt opt) {
int t1 = dset->t1, t2 = dset->t2;
int mlist[4] = {3, 0, 0, 0};
char dname[MAXDISP];
MODEL mod;
DATASET *gset = NULL;
int vy, vx, vz;
int s, t, T;
int missvals = 0;
int err = 0;
... | xy_plot_with_control | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int y_lag(int v, int parent_id, const DATASET *dset) {
if (series_get_transform(dset, v) == 65 &&
series_get_parent_id(dset, v) == parent_id)
return series_get_lag(dset, v);
else
return 0;
} | static int y_lag(int v, int parent_id, const DATASET *dset) {
if (series_get_transform(dset, v) == LAGS) {
int pv = series_get_parent_id(dset, v);
if (pv == parent_id) {
return series_get_lag(dset, v);
}
}
return 0;
} | y_lag | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int year_special_markers(const DATASET *dset, const DATASET *addset) {
_BOOL4 overlap;
int i;
int err;
int t;
int ta;
char *test[2];
test[1] = (char *)__readfsqword(0x28u);
overlap = 0;
err = 0;
if (!dset || dset->structure != 1 && dset->structure != 5 || dset->pd != 1)
return 0;
if (dset->ma... | static int year_special_markers(const DATASET *dset, const DATASET *addset) {
char *test;
int overlap = 0;
int i, t, err = 0;
if (!dataset_is_time_series(dset) || dset->pd != 1) {
return 0;
}
if (dset->markers || !addset->markers) {
return 0;
}
errno = 0;
for (i = 0; i < addset->n; i++) {
... | year_special_markers | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double ymd_basic_from_epoch_day(guint32 ed, int julian, int *err) {
int v3;
int y;
int m;
int d;
unsigned long v9;
v9 = __readfsqword(0x28u);
y = 0;
m = 0;
d = 0;
if (julian)
v3 = julian_ymd_bits_from_epoch_day(ed, &y, &m, &d);
else
v3 = ymd_bits_from_epoch_day(ed, &y, &m, &d);
*err = v... | double ymd_basic_from_epoch_day(guint32 ed, int julian, int *err) {
int y = 0, m = 0, d = 0;
if (julian) {
*err = julian_ymd_bits_from_epoch_day(ed, &y, &m, &d);
} else {
*err = ymd_bits_from_epoch_day(ed, &y, &m, &d);
}
if (*err) {
return NADBL;
} else {
return 10000 * y + 100 * m + d;
... | ymd_basic_from_epoch_day | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int ymd_bits_from_epoch_day(guint32 ed, int *y, int *m, int *d) {
GDate date;
unsigned long v8;
v8 = __readfsqword(0x28u);
if (!(unsigned int)g_date_valid_julian(ed))
return 17;
g_date_clear(&date, 1);
g_date_set_julian(&date, ed);
*y = (unsigned short)g_date_get_year(&date);
*m = g_date_get_month(... | int ymd_bits_from_epoch_day(guint32 ed, int *y, int *m, int *d) {
GDate date;
if (!g_date_valid_julian(ed)) {
return E_INVARG;
}
g_date_clear(&date, 1);
g_date_set_julian(&date, ed);
*y = g_date_get_year(&date);
*m = g_date_get_month(&date);
*d = g_date_get_day(&date);
return 0;
} | ymd_bits_from_epoch_day | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *ymd_extended_from_epoch_day(guint32 ed, int julian, int *err) {
int y;
int m;
int d;
int myerr;
char *ret;
unsigned long v10;
v10 = __readfsqword(0x28u);
ret = 0;
if (julian)
myerr = julian_ymd_bits_from_epoch_day(ed, &y, &m, &d);
else
myerr = ymd_bits_from_epoch_day(ed, &y, &m, &d);
... | char *ymd_extended_from_epoch_day(guint32 ed, int julian, int *err) {
char *ret = NULL;
int y, m, d;
int myerr;
if (julian) {
myerr = julian_ymd_bits_from_epoch_day(ed, &y, &m, &d);
} else {
myerr = ymd_bits_from_epoch_day(ed, &y, &m, &d);
}
if (!myerr) {
ret = calloc(12, 1);
if (ret == ... | ymd_extended_from_epoch_day | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int z_to_xy(int v1, int v2, double *x, double *y, const DATASET *dset) {
int t;
int m;
m = 0;
for (t = dset->t1; t <= dset->t2; ++t) {
if (fabs(dset->Z[v1][t]) <= 1.797693134862316e308 &&
fabs(dset->Z[v2][t]) <= 1.797693134862316e308) {
x[m] = dset->Z[v1][t];
y[m++] = dset->Z[v2][t];
... | static int z_to_xy(int v1, int v2, double *x, double *y, const DATASET *dset) {
int t, m = 0;
for (t = dset->t1; t <= dset->t2; t++) {
if (na(dset->Z[v1][t]) || na(dset->Z[v2][t])) {
continue;
}
x[m] = dset->Z[v1][t];
y[m] = dset->Z[v2][t];
m++;
}
return m;
} | z_to_xy | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int z_to_xyz(int v1, int v2, int v3, double *x, double *y, double *z,
const DATASET *dset) {
int t;
int m;
m = 0;
for (t = dset->t1; t <= dset->t2; ++t) {
if (fabs(dset->Z[v1][t]) <= 1.797693134862316e308 &&
fabs(dset->Z[v2][t]) <= 1.797693134862316e308 &&
fabs(dset->Z[v3][t]) ... | static int z_to_xyz(int v1, int v2, int v3, double *x, double *y, double *z,
const DATASET *dset) {
int t, m = 0;
for (t = dset->t1; t <= dset->t2; t++) {
if (na(dset->Z[v1][t]) || na(dset->Z[v2][t]) || na(dset->Z[v3][t])) {
continue;
}
x[m] = dset->Z[v1][t];
y[m] = dset->... | z_to_xyz | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double *zero_dbl_array(int n) {
int i;
double *x;
x = (double *)malloc(8LL * n);
if (x) {
for (i = 0; i < n; ++i)
x[i] = 0.0;
} else {
mtherr("allocation", 7);
}
return x;
} | static double *zero_dbl_array(int n) {
double *x = malloc(n * sizeof *x);
if (x == NULL) {
mtherr("allocation", CEPHES_UNKNOWN);
} else {
int i;
for (i = 0; i < n; i++) {
x[i] = 0.0;
}
}
return x;
} | zero_dbl_array | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void zip_report(int err, int nf, gretlopt opt, PRN *prn) {
char *v4;
char *v5;
if ((opt & 0x40) != 0) {
if (err && nf) {
v4 = gettext("not found");
pprintf(prn, "<@fail> (%s)\n", v4);
} else if (err) {
pputs(prn, "<@fail>\n");
} else {
pputs(prn, "<@ok>\n");
}
} else if ... | static void zip_report(int err, int nf, gretlopt opt, PRN *prn) {
if (opt & OPT_G) {
if (err && nf) {
pprintf(prn, "<@fail> (%s)\n", _("not found"));
} else if (err) {
pputs(prn, "<@fail>\n");
} else {
pputs(prn, "<@ok>\n");
}
} else {
if (err && nf) {
pprintf(prn, "fail... | zip_report | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int zlist_prepend_const(int **pzlist) {
int clist[2];
unsigned long v3;
v3 = __readfsqword(0x28u);
clist[0] = 1;
clist[1] = 0;
return gretl_list_insert_list(pzlist, clist, 1);
} | static int zlist_prepend_const(int **pzlist) {
int clist[2] = {1, 0};
return gretl_list_insert_list(pzlist, clist, 1);
} | zlist_prepend_const | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int ASCII_free(GMT_CTRL *GMT, GRDMATH_INFO *info, GMT_DATASET **D, char *op) {
if (!GMT_Destroy_Data(GMT->parent, D))
return 0;
GMT_Report(GMT->parent, 1u,
"Error in operator %s destroying allocated data from %s!\n", op,
info->ASCII_file);
info->error = GMT->parent->error;
return 1... | GMT_LOCAL int ASCII_free (struct GMT_CTRL *GMT, struct GRDMATH_INFO *info, struct GMT_DATASET **D, char *op)
{
if (GMT_Destroy_Data (GMT->parent, D) != GMT_NOERROR) {
GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Error in operator %s destroying allocated data from %s!\n", op, info->ASCII_file);
info->error = GMT->pare... | ASCII_free | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_DATASET *ASCII_read(GMT_CTRL *GMT, GRDMATH_INFO *info, int geometry,
char *op) {
unsigned int v4;
GMT_DATASET *D;
if (*(_QWORD *)&GMT->current.io.col_type[0][0] == 0x200000004LL) {
if (!strcmp((const char *)GMT + (_QWORD)&loc_3F840 +
88 * GMT->current.setting.p... | GMT_LOCAL struct GMT_DATASET *ASCII_read (struct GMT_CTRL *GMT, struct GRDMATH_INFO *info, int geometry, char *op)
{
struct GMT_DATASET *D = NULL;
if (gmt_M_is_geographic (GMT, GMT_IN))
gmt_init_distaz (GMT, 'k', gmt_M_sph_mode (GMT), GMT_MAP_DIST);
else
gmt_init_distaz (GMT, 'X', 0, GMT_MAP_DIST);
if (gmt_se... | ASCII_read | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double CartRadius(GMT_CTRL *GMT, double x0, double y0, double x1, double y1,
double *par) {
return hypot(x0 - x1, y0 - y1);
} | GMT_LOCAL double CartRadius (struct GMT_CTRL *GMT, double x0, double y0, double x1, double y1, double par[]) {
gmt_M_unused(GMT); gmt_M_unused(par);
return (hypot (x0 - x1, y0 - y1));
} | CartRadius | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double CartScaledRadius(GMT_CTRL *GMT, double x0, double y0, double x1,
double y1, double *par) {
double v7;
v7 = par[2];
return hypot(x0 - x1, y0 - y1) * v7;
} | GMT_LOCAL double CartScaledRadius (struct GMT_CTRL *GMT, double x0, double y0, double x1, double y1, double par[]) {
gmt_M_unused(GMT);
return (par[GRDFILTER_X_SCALE] * hypot (x0 - x1, y0 - y1));
} | CartScaledRadius | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t Copy_This_Segment(GMT_DATASEGMENT *in, GMT_DATASEGMENT *out,
uint64_t out_start, uint64_t in_start,
uint64_t in_end) {
long v5;
bool done;
uint64_t row_in;
uint64_t col;
done = 0;
if (in_start >= in_end)
v5 = -1;
else
v5 = 1;
row_in... | GMT_LOCAL uint64_t Copy_This_Segment (struct GMT_DATASEGMENT *in, struct GMT_DATASEGMENT *out, uint64_t out_start, uint64_t in_start, uint64_t in_end) {
uint64_t row_in, row_out, col;
int64_t inc;
bool done = false;
inc = (in_start < in_end) ? +1 : -1;
for (row_in = in_start, row_out = out_start; !done; ro... | Copy_This_Segment | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double CosBellWeight(double r, double *par) {
return cos(r * 3.141592653589793 * par[4]) + 1.0;
} | GMT_LOCAL double CosBellWeight (double r, double par[]) {
return (1.0 + cos (M_PI * r * par[GRDFILTER_INV_R_SCALE]));
} | CosBellWeight | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double Critical_Resultant(double alpha, int n) {
double v2;
double v3;
v2 = log(alpha);
v3 = pow(v2 + 1.0 + (double)n + (double)n, 2.0);
return sqrt((double)n * 4.0 * ((double)n + 1.0) + 1.0 - v3) * 0.5 / (double)n;
} | GMT_LOCAL double Critical_Resultant (double alpha, int n) {
double Rn;
Rn = 0.5 * sqrt ((1.0 + 4.0 * n * (1.0 + n) - pow (log (alpha) + 1.0 + 2.0 * n, 2.0))) / n;
return (Rn);
} | Critical_Resultant | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t Douglas_Peucker_geog(GMT_CTRL *GMT, double *x_source, double *y_source,
uint64_t n_source, double band, bool geo,
uint64_t *index) {
uint64_t n_stack;
uint64_t n_stacka;
uint64_t n_dest;
uint64_t i;
uint64_t ia;
uint64_t sig;
double dev_... | GMT_LOCAL uint64_t Douglas_Peucker_geog (struct GMT_CTRL *GMT, double x_source[], double y_source[], uint64_t n_source, double band, bool geo, uint64_t index[]) {
uint64_t n_stack, n_dest, start, end, i, sig;
uint64_t *sig_start = NULL, *sig_end = NULL;
double dev_sqr, max_dev_sqr, band_sqr;
double x12, y12,... | Douglas_Peucker_geog | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void EW_trapezoid(GMT_GRID *G, uint64_t ij, bool top, double *dv, double *da) {
double y0;
double y1;
y0 =
(float)(G->data[ij] / (float)(G->data[ij] - G->data[ij - G->header->mx]));
y1 = (float)(G->data[ij + 1] /
(float)(G->data[ij + 1] - G->data[ij - G->header->mx + 1]));
if (top) {
... | GMT_LOCAL void EW_trapezoid (struct GMT_GRID *G, uint64_t ij, bool top, double *dv, double *da) {
double y0, y1;
y0 = G->data[ij] / (G->data[ij] - G->data[ij-G->header->mx]);
y1 = G->data[ij+1] / (G->data[ij+1] - G->data[ij+1-G->header->mx]);
if (top) {
*dv += vol_prism_frac_x (G, ij, 0.0, 1.0, y1 - y0, y0,... | EW_trapezoid | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double FlatEarthRadius(GMT_CTRL *GMT, double x0, double y0, double x1,
double y1, double *par) {
return hypot(par[2] * (x0 - x1), par[3] * (y0 - y1));
} | GMT_LOCAL double FlatEarthRadius (struct GMT_CTRL *GMT, double x0, double y0, double x1, double y1, double par[]) {
gmt_M_unused(GMT);
return (hypot (par[GRDFILTER_X_SCALE] * (x0 - x1), par[GRDFILTER_Y_SCALE] * (y0 - y1)));
} | FlatEarthRadius | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void Free_Stack(GMTAPI_CTRL *API, GMTMATH_STACK **stack) {
bool is_object;
unsigned int k;
unsigned int error;
error = 0;
for (k = 0; k <= 0x63; ++k) {
if (stack[k]->D) {
is_object = gmtlib_is_an_object(API->GMT, stack[k]);
if (!is_object || (error = GMT_Destroy_Data(API, stack[k])) != 0) {
... | GMT_LOCAL void Free_Stack (struct GMTAPI_CTRL *API, struct GMTMATH_STACK **stack) {
unsigned int k, error = 0;
bool is_object;
for (k = 0; k < GMTMATH_STACK_SIZE; k++) {
if (stack[k]->D) {
is_object = gmtlib_is_an_object (API->GMT, &stack[k]->D);
if (is_object && (error = GMT_Destroy_Data (API, &stack[k]->D... | Free_Stack | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void Free_Store(GMTAPI_CTRL *API, GMTMATH_STORED **recall) {
unsigned int k;
for (k = 0; k <= 0x63; ++k) {
if (recall[k]) {
if (!recall[k]->stored.constant) {
gmt_free_dataset(API->GMT, &recall[k]->stored.D);
free(recall[k]->label);
recall[k]->label = 0;
gmt_free_func(API-... | GMT_LOCAL void Free_Store (struct GMTAPI_CTRL *API, struct GMTMATH_STORED **recall) {
unsigned int k;
for (k = 0; k < GMTMATH_STORE_SIZE; k++) {
if (recall[k] && !recall[k]->stored.constant) {
gmt_free_dataset (API->GMT, &recall[k]->stored.D);
gmt_M_str_free (recall[k]->label);
gmt_M_free (API->GMT, recall... | Free_Store | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void *GMT_Alloc_Segment(void *V_API, unsigned int family, uint64_t n_rows,
uint64_t n_columns, char *header, void *S) {
if (!V_API) {
gmtapi_report_error(0, 27);
return 0;
}
if (!family)
return api_alloc_datasegment(V_API, n_rows, n_columns, header,
... | void *GMT_Alloc_Segment (void *V_API, unsigned int family, uint64_t n_rows, uint64_t n_columns, char *header, void *S) {
void *X = NULL;
if (V_API == NULL) return_null (V_API, GMT_NOT_A_SESSION);
switch (family) {
case GMT_IS_DATASET:
X = api_alloc_datasegment (V_API, n_rows, n_columns, header, S);
brea... | GMT_Alloc_Segment | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_OPTION *GMT_Append_Option(void *V_API, GMT_OPTION *new_opt,
GMT_OPTION *head) {
GMT_OPTION *current;
if (!V_API) {
gmtapi_report_error(0, 27);
return 0;
}
if (!new_opt) {
gmtapi_report_error(V_API, 57);
return 0;
}
if (!new_opt->arg) {
gmtapi_report_err... | struct GMT_OPTION *GMT_Append_Option (void *V_API, struct GMT_OPTION *new_opt, struct GMT_OPTION *head) {
struct GMT_OPTION *current = NULL;
if (V_API == NULL) return_null (V_API, GMT_NOT_A_SESSION);
if (!new_opt) return_null (V_API, GMT_OPTION_IS_NULL);
if (!new_opt->arg) return_null (V_API, GMT_ARG_IS_NULL); ... | GMT_Append_Option | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Begin_IO(void *V_API, unsigned int family, unsigned int direction,
unsigned int header) {
bool v5;
GMTAPI_DATA_OBJECT *v6;
int error;
int item;
GMTAPI_CTRL *API;
GMT_CTRL *GMT;
if (!V_API) {
gmtapi_report_error(0, 27);
return 27;
}
if (direction >= 2) {
gmtapi_rep... | int GMT_Begin_IO (void *V_API, unsigned int family, unsigned int direction, unsigned int header) {
int error, item;
struct GMTAPI_CTRL *API = NULL;
struct GMT_CTRL *GMT = NULL;
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
if (!(direction == GMT_IN || direction == GMT_OUT)) return_error (V_A... | GMT_Begin_IO | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Call_Module(void *V_API, const char *module, int mode, void *args) {
const char *v5;
int status;
_BYTE lib[12];
unsigned int liba;
void (*l_func)(void *);
GMTAPI_CTRL *API;
char *listfunc;
char gmt_module[32];
char gmt_module_0[264];
unsigned long v16;
v16 = __readfsqword(0x28u);
*(_QWO... | int GMT_Call_Module (void *V_API, const char *module, int mode, void *args) {
int status = GMT_NOERROR;
unsigned int lib;
struct GMTAPI_CTRL *API = NULL;
char gmt_module[GMT_LEN32] = "GMT_";
int (*p_func)(void*, int, void*) = NULL;
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
if ... | GMT_Call_Module | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Change_Layout(void *V_API, unsigned int family, char *code,
unsigned int mode, void *obj, void *out, void *alpha) {
int error;
GMTAPI_CTRL *API;
if (V_API) {
API = api_get_api_ptr((GMTAPI_CTRL *)V_API);
API->error = 0;
if (family == 1) {
error = api_change_gridlayo... | int GMT_Change_Layout (void *V_API, unsigned int family, char *code, unsigned int mode, void *obj, void *out, void *alpha) {
struct GMTAPI_CTRL *API = NULL;
int error;
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
API = api_get_api_ptr (V_API);
API->error = GMT_NOERROR;
switch (family) {
c... | GMT_Change_Layout | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Close_VirtualFile(void *V_API, const char *string) {
int object_ID;
int item;
GMTAPI_DATA_OBJECT *S_obj;
GMTAPI_CTRL *API;
if (V_API) {
if (string) {
object_ID = api_decode_id(string);
if (object_ID == -1) {
gmtapi_report_error(V_API, 52);
return 52;
} else {
... | int GMT_Close_VirtualFile (void *V_API, const char *string) {
int object_ID, item;
struct GMTAPI_DATA_OBJECT *S_obj = NULL;
struct GMTAPI_CTRL *API = NULL;
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
if (string == NULL) return_error (V_API, GMT_PTR_IS_NULL);
if ((object_ID = api_decode_id (strin... | GMT_Close_VirtualFile | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void *GMT_Convert_Data(void *V_API, void *In, unsigned int family_in, void *Out,
unsigned int family_out, unsigned int *flag) {
bool may_fail;
int object_ID;
int item;
void *X;
GMTAPI_CTRL *API;
may_fail = 0;
X = 0;
if (!V_API) {
gmtapi_report_error(0, 27);
return 0;
}
... | void *GMT_Convert_Data (void *V_API, void *In, unsigned int family_in, void *Out, unsigned int family_out, unsigned int flag[]) {
int object_ID, item;
bool may_fail = false;
void *X = NULL;
struct GMTAPI_CTRL *API = NULL;
if (V_API == NULL) return_null (V_API, GMT_NOT_A_SESSION);... | GMT_Convert_Data | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
char **GMT_Create_Args(void *V_API, int *argc, GMT_OPTION *head) {
size_t v4;
unsigned int arg;
GMT_OPTION *opt;
GMT_OPTION *opta;
char **txt;
GMT_CTRL *G;
GMTAPI_CTRL *API;
char buffer[4104];
unsigned long v13;
v13 = __readfsqword(0x28u);
memset(buffer, 0, 4096);
arg = 0;
if (V_API) {
if... | char **GMT_Create_Args (void *V_API, int *argc, struct GMT_OPTION *head) {
char **txt = NULL, buffer[GMT_BUFSIZ] = {""};
unsigned int arg = 0;
struct GMT_OPTION *opt = NULL;
struct GMT_CTRL *G = NULL;
struct GMTAPI_CTRL *API = NULL;
if (V_API == NULL) return_null (V_API, GMT_NOT_A_SESSION);
if (head == N... | GMT_Create_Args | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
char *GMT_Create_Cmd(void *V_API, GMT_OPTION *head) {
bool first;
char *txt;
size_t length;
size_t lengtha;
size_t inc;
size_t n_alloc;
GMT_OPTION *opt;
GMT_CTRL *G;
char buffer[4104];
unsigned long v12;
v12 = __readfsqword(0x28u);
memset(buffer, 0, 4096);
first = 1;
length = 0;
n_alloc =... | char * GMT_Create_Cmd (void *V_API, struct GMT_OPTION *head) {
char *txt = NULL, buffer[GMT_BUFSIZ] = {""};
bool first = true;
size_t length = 0, inc, n_alloc = GMT_BUFSIZ;
struct GMT_OPTION *opt = NULL;
struct GMT_CTRL *G = NULL;
struct GMTAPI_CTRL *API = NULL;
if (V_API == NULL) return_null (V_API, GMT_N... | GMT_Create_Cmd | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void *GMT_Create_Data(void *V_API, unsigned int family, unsigned int geometry,
unsigned int mode, uint64_t *dim, double *range,
double *inc, unsigned int registration, int pad,
void *data) {
uint64_t v11;
unsigned int familya;
bool already_register... | void *GMT_Create_Data (void *V_API, unsigned int family, unsigned int geometry, unsigned int mode, uint64_t dim[], double *range, double *inc, unsigned int registration, int pad, void *data) {
int error = GMT_OK;
int def_direction = GMT_IN;
unsigned int module_input... | GMT_Create_Data | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_OPTION *GMT_Create_Options(void *V_API, int n_args_in, const void *in) {
unsigned int v4;
unsigned int v5;
char **v6;
char *v7;
char option;
bool quoted;
unsigned int pos;
unsigned int arg;
unsigned int first_char;
unsigned int append;
unsigned int n_args;
unsigned int new_n_args;
unsigned... | struct GMT_OPTION *GMT_Create_Options (void *V_API, int n_args_in, const void *in) {
int error = GMT_OK;
unsigned int arg, first_char, append = 0, n_args;
char option, **args = NULL, **new_args = NULL, *pch = NULL, *this_arg = NULL, buffer[BUFSIZ] = {""};
struct GMT_OPTION *head = NULL, *new_opt = NUL... | GMT_Create_Options | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void *GMT_Create_Session(const char *session, unsigned int pad,
unsigned int mode,
int (*print_func)(FILE *, const char *)) {
int (*v5)(FILE *, const char *);
char *v6;
char *v7;
int v8;
GMTAPI_CTRL *API;
const char *dir;
char *tmptag;
API = (GMTAPI_CTR... | void *GMT_Create_Session (const char *session, unsigned int pad, unsigned int mode, int (*print_func) (FILE *, const char *)) {
struct GMTAPI_CTRL *API = NULL;
static char *unknown = "unknown";
char *dir = NULL;
if ((API = calloc (1, sizeof (struct GMTAPI_CTRL))) == NULL) return_null (NULL, GMT_... | GMT_Create_Session | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Delete_Option(void *V_API, GMT_OPTION *current, GMT_OPTION **head) {
GMTAPI_CTRL *API;
if (V_API) {
if (current) {
API = parse_get_api_ptr((GMTAPI_CTRL *)V_API);
if (current->next)
current->next->previous = current->previous;
if (current->previous)
current->previous->n... | int GMT_Delete_Option (void *V_API, struct GMT_OPTION *current, struct GMT_OPTION **head) {
struct GMTAPI_CTRL *API = NULL;
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
if (!current) return_error (V_API, GMT_OPTION_IS_NULL);
API = parse_get_api_ptr (V_API);
if (current->next) current->nex... | GMT_Delete_Option | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Destroy_Args(void *V_API, int argc, char ***args) {
int argca;
GMTAPI_CTRL *API;
argca = argc;
if (V_API) {
if (argc && args) {
if (argc >= 0) {
API = parse_get_api_ptr((GMTAPI_CTRL *)V_API);
while (argca--) {
gmt_free_func(API->GMT, (*args)[argca], 0, "GMT_Destroy_A... | int GMT_Destroy_Args (void *V_API, int argc, char **args[]) {
struct GMTAPI_CTRL *API = NULL;
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
if (argc == 0 || !args) return_error (V_API, GMT_ARGV_LIST_NULL);
if (argc < 0) return_error (V_API, GMT_COUNTER_IS_NEGATIVE);
API = parse_get_api_ptr ... | GMT_Destroy_Args | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Destroy_Cmd(void *V_API, char **cmd) {
GMTAPI_CTRL *API;
if (V_API) {
if (*cmd) {
API = parse_get_api_ptr((GMTAPI_CTRL *)V_API);
gmt_free_func(API->GMT, *cmd, 0, "GMT_Destroy_Cmd");
*cmd = 0;
return 0;
} else {
gmtapi_report_error(V_API, 4);
return 4;
}
} e... | int GMT_Destroy_Cmd (void *V_API, char **cmd) {
struct GMTAPI_CTRL *API = NULL;
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
if (*cmd == NULL) return_error (V_API, GMT_ARG_IS_NULL);
API = parse_get_api_ptr (V_API);
gmt_M_free (API->GMT, *cmd);
return (GMT_OK);
} | GMT_Destroy_Cmd | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Destroy_Data(void *V_API, void *object) {
int result;
int error;
int errora;
unsigned int j;
int object_ID;
int item;
GMT_enum_family family;
GMTAPI_CTRL *API;
void *address;
if (V_API) {
if (object) {
if (ptrvoid((char **)object)) {
API = api_get_api_ptr((GMTAPI_CTRL *)V_... | int GMT_Destroy_Data (void *V_API, void *object) {
int error, item, object_ID;
enum GMT_enum_family family;
struct GMTAPI_CTRL *API = NULL;
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
if (object == NULL) return (false);
if (!ptrvoid(object)) return (false);
API = api_get_api_ptr (V_API); ... | GMT_Destroy_Data | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.