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 table_ROTT(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
uint64_t v6;
int shift;
unsigned int prev;
uint64_t s;
uint64_t sa;
uint64_t row;
uint64_t k;
double *z;
GMT_DATATABLE *T_prev;
z = 0;
if (!last)
__assert_fail("last > 0"... | GMT_LOCAL int table_ROTT (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row, j, k;
unsigned int prev;
int shift;
double *z = NULL;
struct GMT_DATATABLE *T_prev = NULL;
assert (last > 0);
prev = last - 1;
T_prev = S[prev]->D->tabl... | table_ROTT | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_RPDF(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double factor;
uint64_t s;
uint64_t row;
GMT_DATATABLE *T;
T = *S[last]->D->table;
for (s = 0; s < info->T->n_segments; ++s) {
for (row = 0; row < info->T->segment[s]->n_rows; ++ro... | GMT_LOCAL int table_RPDF (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
double z;
struct GMT_DATATABLE *T = S[last]->D->table[0];
gmt_M_unused(GMT);
for (s = 0; s < info->T->n_segments; s++) for (row = 0; row < info->T->segment... | table_RPDF | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_SEC(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double v5;
uint64_t s;
uint64_t row;
double a;
GMT_DATATABLE *T;
a = 0.0;
T = *S[last]->D->table;
if (S[last]->constant)
a = 1.0 / cos(S[last]->factor);
for (s = 0; s < info->T... | GMT_LOCAL int table_SEC (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
double a = 0.0;
struct GMT_DATATABLE *T = S[last]->D->table[0];
gmt_M_unused(GMT);
if (S[last]->constant) a = (1.0 / cos (S[last]->factor));
for (s = 0; s ... | table_SEC | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_SECD(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double v5;
uint64_t s;
uint64_t row;
double a;
GMT_DATATABLE *T;
a = 0.0;
T = *S[last]->D->table;
if (S[last]->constant)
a = 1.0 / cos(S[last]->factor * 0.0174532925199433);
... | GMT_LOCAL int table_SECD (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
double a = 0.0;
struct GMT_DATATABLE *T = S[last]->D->table[0];
gmt_M_unused(GMT);
if (S[last]->constant) a = (1.0 / cosd (S[last]->factor));
for (s = 0; ... | table_SECD | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_SECH(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double v5;
uint64_t s;
uint64_t row;
double a;
GMT_DATATABLE *T;
a = 0.0;
T = *S[last]->D->table;
if (S[last]->constant)
a = 1.0 / cosh(S[last]->factor);
for (s = 0; s < info... | GMT_LOCAL int table_SECH (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
double a = 0.0;
struct GMT_DATATABLE *T = S[last]->D->table[0];
gmt_M_unused(GMT);
if (S[last]->constant) a = 1.0 / cosh (S[last]->factor);
for (s = 0; s ... | table_SECH | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_SIGN(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double v5;
uint64_t s;
uint64_t row;
double a;
GMT_DATATABLE *T;
a = 0.0;
T = *S[last]->D->table;
if (S[last]->constant && S[last]->factor == 0.0)
GMT_Report(GMT->parent, 4u, "... | GMT_LOCAL int table_SIGN (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
double a = 0.0;
struct GMT_DATATABLE *T = S[last]->D->table[0];
if (S[last]->constant && S[last]->factor == 0.0) GMT_Report (GMT->parent, GMT_MSG_VERBOSE, "... | table_SIGN | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_SIN(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double v5;
uint64_t s;
uint64_t row;
double a;
GMT_DATATABLE *T;
a = 0.0;
T = *S[last]->D->table;
if (S[last]->constant)
a = sin(S[last]->factor);
for (s = 0; s < info->T->n_se... | GMT_LOCAL int table_SIN (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
double a = 0.0;
struct GMT_DATATABLE *T = S[last]->D->table[0];
gmt_M_unused(GMT);
if (S[last]->constant) a = sin (S[last]->factor);
for (s = 0; s < info->... | table_SIN | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_SINC(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double v5;
uint64_t s;
uint64_t row;
double a;
GMT_DATATABLE *T;
a = 0.0;
T = *S[last]->D->table;
if (S[last]->constant)
a = gmt_sinc(GMT, S[last]->factor);
for (s = 0; s < i... | GMT_LOCAL int table_SINC (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
double a = 0.0;
struct GMT_DATATABLE *T = S[last]->D->table[0];
if (S[last]->constant) a = gmt_sinc (GMT, S[last]->factor);
for (s = 0; s < info->T->n_segm... | table_SINC | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_SIND(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double v5;
uint64_t s;
uint64_t row;
double a;
GMT_DATATABLE *T;
a = 0.0;
T = *S[last]->D->table;
if (S[last]->constant)
a = sin(S[last]->factor * 0.0174532925199433);
for (s... | GMT_LOCAL int table_SIND (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
double a = 0.0;
struct GMT_DATATABLE *T = S[last]->D->table[0];
gmt_M_unused(GMT);
if (S[last]->constant) a = sind (S[last]->factor);
for (s = 0; s < info... | table_SIND | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_SINH(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double v5;
uint64_t s;
uint64_t row;
double a;
GMT_DATATABLE *T;
a = 0.0;
T = *S[last]->D->table;
if (S[last]->constant)
a = sinh(S[last]->factor);
for (s = 0; s < info->T->n... | GMT_LOCAL int table_SINH (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
double a = 0.0;
struct GMT_DATATABLE *T = S[last]->D->table[0];
gmt_M_unused(GMT);
if (S[last]->constant) a = sinh (S[last]->factor);
for (s = 0; s < info... | table_SINH | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_SKEW(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double v6;
uint64_t v7;
double v8;
uint64_t v9;
double v10;
double v11;
double v12;
uint64_t s;
uint64_t sa;
uint64_t sb;
uint64_t sc;
uint64_t row;
uint64_t rowa;
uint6... | GMT_LOCAL int table_SKEW (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row, n = 0;
double mean = 0.0, sum2 = 0.0, skew = 0.0, delta;
struct GMT_DATATABLE *T = S[last]->D->table[0];
if (S[last]->constant) {
for (s = 0; s < info->T... | table_SKEW | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_SORT(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
uint64_t n_segments;
GMT_ORDER **Q;
GMT_ORDER **v8;
unsigned int prev1;
unsigned int scol;
int dir;
uint64_t s;
uint64_t sa;
uint64_t seg;
uint64_t sega;
uint64_t row;
uint6... | GMT_LOCAL int table_SORT (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, seg, row, k = 0;
unsigned int scol;
unsigned int prev1 = last - 1, prev2 = last - 2;
int dir;
struct GMT_DATATABLE *T_prev2 = S[prev2]->D->table[0];
struct GMT_... | table_SORT | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_SQR(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double v5;
uint64_t s;
uint64_t row;
double a;
GMT_DATATABLE *T;
a = 0.0;
T = *S[last]->D->table;
if (S[last]->constant)
a = S[last]->factor * S[last]->factor;
for (s = 0; s < ... | GMT_LOCAL int table_SQR (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
double a = 0.0;
struct GMT_DATATABLE *T = S[last]->D->table[0];
gmt_M_unused(GMT);
if (S[last]->constant) a = S[last]->factor * S[last]->factor;
for (s = 0... | table_SQR | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_SQRT(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double v5;
uint64_t s;
uint64_t row;
double a;
GMT_DATATABLE *T;
a = 0.0;
T = *S[last]->D->table;
if (S[last]->constant && S[last]->factor < 0.0)
GMT_Report(GMT->parent, 4u, "W... | GMT_LOCAL int table_SQRT (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
double a = 0.0;
struct GMT_DATATABLE *T = S[last]->D->table[0];
if (S[last]->constant && S[last]->factor < 0.0) GMT_Report (GMT->parent, GMT_MSG_VERBOSE, "W... | table_SQRT | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_STD(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double v5;
uint64_t v6;
double v7;
double d_NaN;
uint64_t v10;
double v11;
double v12;
uint64_t s;
uint64_t sa;
uint64_t row;
uint64_t rowa;
uint64_t rowb;
double std;
uin... | GMT_LOCAL int table_STD (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
double std;
struct GMT_DATATABLE *T = S[last]->D->table[0];
if (S[last]->constant && info->T->n_records < 2)
std = GMT->session.d_NaN;
else {
uint64_t... | table_STD | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_STDW(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double v6;
double v7;
double v8;
double d_NaN;
double v10;
double v11;
double v12;
double v13;
unsigned int prev;
GMT_DATATABLE *T;
GMT_DATATABLE *T_prev;
uint64_t s;
uint... | GMT_LOCAL int table_STDW (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
unsigned int prev;
double std;
struct GMT_DATATABLE *T = NULL, *T_prev = NULL;
if ((prev = gmt_assign_ptrs (GMT, last, S, &T, &T_prev)) == UINT_MAX) return... | table_STDW | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_STEP(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double factor;
long v6;
uint64_t s;
uint64_t row;
GMT_DATATABLE *T;
T = *S[last]->D->table;
for (s = 0; s < info->T->n_segments; ++s) {
for (row = 0; row < info->T->segment[s]->n... | GMT_LOCAL int table_STEP (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
double a;
struct GMT_DATATABLE *T = S[last]->D->table[0];
gmt_M_unused(GMT);
for (s = 0; s < info->T->n_segments; s++) for (row = 0; row < info->T->segment... | table_STEP | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_STEPT(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double v5;
double factor;
long v7;
uint64_t s;
uint64_t row;
GMT_DATATABLE *T;
T = *S[last]->D->table;
for (s = 0; s < info->T->n_segments; ++s) {
for (row = 0; row < info->T... | GMT_LOCAL int table_STEPT (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
double a;
struct GMT_DATATABLE *T = S[last]->D->table[0];
gmt_M_unused(GMT);
for (s = 0; s < info->T->n_segments; s++) for (row = 0; row < info->T->segmen... | table_STEPT | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_SUB(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double factor;
double v7;
unsigned int prev;
GMT_DATATABLE *T;
GMT_DATATABLE *T_prev;
uint64_t s;
uint64_t row;
double a;
double b;
unsigned long v18;
v18 = __readfsqword(0x28u... | GMT_LOCAL int table_SUB (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
unsigned int prev;
double a, b;
struct GMT_DATATABLE *T = NULL, *T_prev = NULL;
if ((prev = gmt_assign_ptrs (GMT, last, S, &T, &T_prev)) == UINT_MAX) return... | table_SUB | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_SUM(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
uint64_t s;
uint64_t row;
double a;
double sum;
GMT_DATATABLE *T;
a = 0.0;
sum = 0.0;
T = *S[last]->D->table;
if (S[last]->constant)
a = S[last]->factor;
for (s = 0; s < info... | GMT_LOCAL int table_SUM (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
double a = 0.0, sum = 0.0;
struct GMT_DATATABLE *T = S[last]->D->table[0];
gmt_M_unused(GMT);
if (S[last]->constant) a = S[last]->factor;
for (s = 0; s < i... | table_SUM | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_SVDFIT(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
return 0;
} | GMT_LOCAL int table_SVDFIT (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
gmt_M_unused(GMT); gmt_M_unused(info); gmt_M_unused(S); gmt_M_unused(last); gmt_M_unused(col);
return 0;
} | table_SVDFIT | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_TAN(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double v5;
uint64_t s;
uint64_t row;
double a;
GMT_DATATABLE *T;
a = 0.0;
T = *S[last]->D->table;
if (S[last]->constant)
a = tan(S[last]->factor);
for (s = 0; s < info->T->n_se... | GMT_LOCAL int table_TAN (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
double a = 0.0;
struct GMT_DATATABLE *T = S[last]->D->table[0];
gmt_M_unused(GMT);
if (S[last]->constant) a = tan (S[last]->factor);
for (s = 0; s < info->... | table_TAN | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_TAND(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double v5;
uint64_t s;
uint64_t row;
double a;
GMT_DATATABLE *T;
a = 0.0;
T = *S[last]->D->table;
if (S[last]->constant)
a = tan(S[last]->factor * 0.0174532925199433);
for (s... | GMT_LOCAL int table_TAND (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
double a = 0.0;
struct GMT_DATATABLE *T = S[last]->D->table[0];
gmt_M_unused(GMT);
if (S[last]->constant) a = tand (S[last]->factor);
for (s = 0; s < info... | table_TAND | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_TANH(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double v5;
uint64_t s;
uint64_t row;
double a;
GMT_DATATABLE *T;
a = 0.0;
T = *S[last]->D->table;
if (S[last]->constant)
a = tanh(S[last]->factor);
for (s = 0; s < info->T->n... | GMT_LOCAL int table_TANH (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
double a = 0.0;
struct GMT_DATATABLE *T = S[last]->D->table[0];
gmt_M_unused(GMT);
if (S[last]->constant) a = tanh (S[last]->factor);
for (s = 0; s < info... | table_TANH | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_TAPER(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
uint64_t n_rows;
double v7;
double v8;
uint64_t s;
unsigned long row;
double t_min;
double t_max;
double w_t;
GMT_DATATABLE *T;
double strip;
double scale;
double start;
... | GMT_LOCAL int table_TAPER (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
double strip, scale, t_min, t_max, start, stop, from_start, from_stop, t, w_t;
struct GMT_DATATABLE *T = S[last]->D->table[0];
if (!S[last]->constant) {
... | table_TAPER | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_TCDF(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double factor;
double v7;
double *v8;
unsigned int prev;
GMT_DATATABLE *T;
GMT_DATATABLE *T_prev;
uint64_t s;
uint64_t row;
uint64_t nu;
double t;
unsigned long v19;
v19 = ... | GMT_LOCAL int table_TCDF (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row, nu;
unsigned int prev;
double t;
struct GMT_DATATABLE *T = NULL, *T_prev = NULL;
if ((prev = gmt_assign_ptrs (GMT, last, S, &T, &T_prev)) == UINT_MAX) retu... | table_TCDF | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_TCRIT(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double factor;
double v7;
double *v8;
unsigned int prev;
GMT_DATATABLE *T;
GMT_DATATABLE *T_prev;
uint64_t s;
uint64_t row;
double a;
double b;
unsigned long v19;
v19 = _... | GMT_LOCAL int table_TCRIT (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
unsigned int prev;
double a, b;
struct GMT_DATATABLE *T = NULL, *T_prev = NULL;
if ((prev = gmt_assign_ptrs (GMT, last, S, &T, &T_prev)) == UINT_MAX) retu... | table_TCRIT | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_TN(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double factor;
double v7;
unsigned int prev;
int n;
GMT_DATATABLE *T;
GMT_DATATABLE *T_prev;
uint64_t s;
uint64_t row;
double a;
unsigned long v18;
v18 = __readfsqword(0x28u);
... | GMT_LOCAL int table_TN (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
unsigned int prev;
int n;
double a;
struct GMT_DATATABLE *T = NULL, *T_prev = NULL;
if ((prev = gmt_assign_ptrs (GMT, last, S, &T, &T_prev)) == UINT_MAX) re... | table_TN | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_TPDF(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double factor;
double v7;
double *v8;
unsigned int prev;
GMT_DATATABLE *T;
GMT_DATATABLE *T_prev;
uint64_t s;
uint64_t row;
uint64_t nu;
double t;
unsigned long v19;
v19 = ... | GMT_LOCAL int table_TPDF (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row, nu;
unsigned int prev;
double t;
struct GMT_DATATABLE *T = NULL, *T_prev = NULL;
if ((prev = gmt_assign_ptrs (GMT, last, S, &T, &T_prev)) == UINT_MAX) retu... | table_TPDF | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_UPPER(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
uint64_t s;
uint64_t sa;
uint64_t sb;
uint64_t row;
uint64_t rowa;
uint64_t rowb;
uint64_t rowc;
double high;
GMT_DATATABLE *T;
high = -1.797693134862316e308;
T = *S[last]-... | GMT_LOCAL int table_UPPER (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
double high = -DBL_MAX;
struct GMT_DATATABLE *T = S[last]->D->table[0];
if (S[last]->constant) {
for (s = 0; s < info->T->n_segments; s++) for (row = 0;... | table_UPPER | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_VAR(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double v5;
uint64_t v6;
double v7;
double v8;
double d_NaN;
uint64_t v11;
double v12;
double v13;
double v14;
uint64_t s;
uint64_t sa;
uint64_t row;
uint64_t rowa;
uint64_... | GMT_LOCAL int table_VAR (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
double var;
struct GMT_DATATABLE *T = S[last]->D->table[0];
if (S[last]->constant && info->T->n_records < 2)
var = GMT->session.d_NaN;
else {
uint64_t... | table_VAR | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_VARW(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double v6;
double v7;
double v8;
double d_NaN;
double v10;
double v11;
double v12;
double v13;
unsigned int prev;
GMT_DATATABLE *T;
GMT_DATATABLE *T_prev;
uint64_t s;
uint... | GMT_LOCAL int table_VARW (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
unsigned int prev;
double var;
struct GMT_DATATABLE *T = NULL, *T_prev = NULL;
if ((prev = gmt_assign_ptrs (GMT, last, S, &T, &T_prev)) == UINT_MAX) return... | table_VARW | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_WCDF(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
GMT_DATATABLE *v5;
GMT_DATATABLE *v6;
double factor;
double v8;
double v9;
double *v10;
unsigned int prev1;
unsigned int prev2;
uint64_t s;
uint64_t row;
GMT_DATATABLE *T;
G... | GMT_LOCAL int table_WCDF (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
unsigned int prev1 = last - 1, prev2 = last - 2;
double x, a, b;
struct GMT_DATATABLE *T = (S[last]->constant) ? NULL : S[last]->D->table[0], *T_prev1 = (S[p... | table_WCDF | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_WCRIT(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
GMT_DATATABLE *v5;
GMT_DATATABLE *v6;
double factor;
double v8;
double v9;
double *v10;
unsigned int prev1;
unsigned int prev2;
uint64_t s;
uint64_t row;
GMT_DATATABLE *T;
... | GMT_LOCAL int table_WCRIT (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
unsigned int prev1 = last - 1, prev2 = last - 2;
double alpha, a, b;
struct GMT_DATATABLE *T = (S[last]->constant) ? NULL : S[last]->D->table[0], *T_prev1 =... | table_WCRIT | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_WPDF(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
GMT_DATATABLE *v5;
GMT_DATATABLE *v6;
double factor;
double v9;
double v10;
double *v11;
unsigned int prev1;
unsigned int prev2;
uint64_t s;
uint64_t sa;
uint64_t row;
uint6... | GMT_LOCAL int table_WPDF (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
unsigned int prev1 = last - 1, prev2 = last - 2;
uint64_t s, row;
double x, a, b;
struct GMT_DATATABLE *T = (S[last]->constant) ? NULL : S[last]->D->table[0], *T_prev1 = (S[p... | table_WPDF | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_XOR(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
unsigned int prev;
GMT_DATATABLE *T;
GMT_DATATABLE *T_prev;
uint64_t s;
uint64_t row;
double a;
double b;
unsigned long v16;
v16 = __readfsqword(0x28u);
a = 0.0;
b = 0.0;
T =... | GMT_LOCAL int table_XOR (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
unsigned int prev;
double a = 0.0, b = 0.0;
struct GMT_DATATABLE *T = NULL, *T_prev = NULL;
gmt_M_unused(GMT);
if ((prev = gmt_assign_ptrs (GMT, last, S, &... | table_XOR | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_Y0(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double v5;
uint64_t s;
uint64_t row;
double a;
GMT_DATATABLE *T;
a = 0.0;
T = *S[last]->D->table;
if (S[last]->constant && S[last]->factor == 0.0)
GMT_Report(GMT->parent, 4u, "Warn... | GMT_LOCAL int table_Y0 (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
double a = 0.0;
struct GMT_DATATABLE *T = S[last]->D->table[0];
if (S[last]->constant && S[last]->factor == 0.0) GMT_Report (GMT->parent, GMT_MSG_VERBOSE, "Wa... | table_Y0 | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_Y1(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double v5;
uint64_t s;
uint64_t row;
double a;
GMT_DATATABLE *T;
a = 0.0;
T = *S[last]->D->table;
if (S[last]->constant && S[last]->factor == 0.0)
GMT_Report(GMT->parent, 4u, "Warn... | GMT_LOCAL int table_Y1 (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
double a = 0.0;
struct GMT_DATATABLE *T = S[last]->D->table[0];
if (S[last]->constant && S[last]->factor == 0.0) GMT_Report (GMT->parent, GMT_MSG_VERBOSE, "Wa... | table_Y1 | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_YN(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double *v6;
bool simple;
unsigned int order;
unsigned int prev;
GMT_DATATABLE *T;
GMT_DATATABLE *T_prev;
uint64_t s;
uint64_t row;
double b;
unsigned long v18;
v18 = __readfsqwor... | GMT_LOCAL int table_YN (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
unsigned int prev, order = 0;
bool simple = false;
double b = 0.0;
struct GMT_DATATABLE *T = NULL, *T_prev = NULL;
if ((prev = gmt_assign_ptrs (GMT, last, S... | table_YN | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_ZCDF(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double v5;
uint64_t s;
uint64_t row;
double a;
GMT_DATATABLE *T;
a = 0.0;
T = *S[last]->D->table;
if (S[last]->constant)
a = gmt_zdist(GMT, S[last]->factor);
for (s = 0; s < ... | GMT_LOCAL int table_ZCDF (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
double a = 0.0;
struct GMT_DATATABLE *T = S[last]->D->table[0];
if (S[last]->constant) a = gmt_zdist (GMT, S[last]->factor);
for (s = 0; s < info->T->n_seg... | table_ZCDF | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_ZCRIT(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double v5;
uint64_t s;
uint64_t row;
double a;
GMT_DATATABLE *T;
a = 0.0;
T = *S[last]->D->table;
if (S[last]->constant)
a = gmt_zcrit(GMT, S[last]->factor);
for (s = 0; s ... | GMT_LOCAL int table_ZCRIT (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
double a = 0.0;
struct GMT_DATATABLE *T = S[last]->D->table[0];
if (S[last]->constant) a = gmt_zcrit (GMT, S[last]->factor);
for (s = 0; s < info->T->n_se... | table_ZCRIT | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int table_ZPDF(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK **S,
unsigned int last, unsigned int col) {
double v5;
uint64_t s;
uint64_t row;
double z;
GMT_DATATABLE *T;
z = 0.0;
T = *S[last]->D->table;
if (S[last]->constant)
z = exp(S[last]->factor * -0.5 * S[last]->factor) * 0.3... | GMT_LOCAL int table_ZPDF (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S[], unsigned int last, unsigned int col)
{
uint64_t s, row;
double z = 0.0, f = 1.0 / sqrt (TWO_PI);
struct GMT_DATATABLE *T = S[last]->D->table[0];
gmt_M_unused(GMT);
if (S[last]->constant) z = f * exp (-0.5 * S[la... | table_ZPDF | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void throw_away_unusables(GMT_CTRL *GMT, SURFACE_INFO *C) {
uint64_t last_index;
uint64_t n_outside;
uint64_t k;
qsort(C->data, C->npoints, 0x18u, (__compar_fn_t)compare_points);
last_index = -1;
n_outside = 0;
for (k = 0; k < C->npoints; ++k) {
if (last_index == C->data[k].index) {
C->data[k].... | GMT_LOCAL void throw_away_unusables (struct GMT_CTRL *GMT, struct SURFACE_INFO *C) {
uint64_t last_index, n_outside, k;
qsort (C->data, C->npoints, sizeof (struct SURFACE_DATA), compare_points);
last_index = UINTMAX_MAX;
n_outside = 0;
for (k = 0; k < C->npoints; k++) {
if (C->data[k].index ... | throw_away_unusables | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t trace_clip_contours(GMT_CTRL *GMT, PSMASK_INFO *info, char *grd,
unsigned int *edge, GMT_GRID_HEADER *h,
double *inc2, double **xx, double **yy, int i,
int j, int kk, uint64_t *max) {
double v12;
double v13;
int v14;
... | GMT_LOCAL uint64_t trace_clip_contours (struct GMT_CTRL *GMT, struct PSMASK_INFO *info, char *grd, unsigned int *edge, struct GMT_GRID_HEADER *h, double inc2[], double **xx, double **yy, int i, int j, int kk, uint64_t *max) {
int k, k0, n_cuts, kk_opposite, first_k, more;
uint64_t n = 1, edge_word, edge_bit, ij, ... | trace_clip_contours | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void transform_x_1d(TREND1D_DATA *data, uint64_t n_data, GMT_MODEL *M,
double xmin, double xmax) {
double v5;
uint64_t i;
uint64_t ia;
double offset;
double scale;
double scalea;
if (M->intercept)
v5 = 0.5 * (xmin + xmax);
else
v5 = M->origin[0];
offset = v5;
scale = 2.0... | GMT_LOCAL void transform_x_1d (struct TREND1D_DATA *data, uint64_t n_data, struct GMT_MODEL *M, double xmin, double xmax) {
uint64_t i;
double offset, scale;
offset = (M->intercept) ? 0.5 * (xmin + xmax) : M->origin[GMT_X];
scale = 2.0 / (xmax - xmin);
if (M->type & 1) for (i = 0; i < n_data; i++) data[i].x ... | transform_x_1d | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void transform_x_2d(TREND2D_DATA *data, uint64_t n_data, double xmin,
double xmax, double ymin, double ymax) {
uint64_t i;
for (i = 0; i < n_data; ++i) {
data[i].x = (data[i].x - 0.5 * (xmin + xmax)) * (2.0 / (xmax - xmin));
data[i].y = (data[i].y - 0.5 * (ymin + ymax)) * (2.0 / (ymax -... | GMT_LOCAL void transform_x_2d (struct TREND2D_DATA *data, uint64_t n_data, double xmin, double xmax, double ymin, double ymax) {
uint64_t i;
double offsetx, scalex;
double offsety, scaley;
offsetx = 0.5 * (xmin + xmax);
offsety = 0.5 * (ymin + ymax);
scalex = 2.0 / (xmax - xmin);
scaley = 2.0 / (ymax - ymin... | transform_x_2d | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double undo_normalization(double *X, double w_norm, unsigned int mode,
double *coeff, unsigned int dim) {
double w_norma;
double w_normb;
w_norma = w_norm;
if ((mode & 2) != 0)
w_norma = coeff[5] * w_norm;
w_normb = coeff[2] + w_norma;
if ((mode & 1) != 0) {
w_normb = (*X ... | GMT_LOCAL double undo_normalization (double *X, double w_norm, unsigned int mode, double *coeff, unsigned int dim) {
if (mode & GREENSPLINE_NORM) w_norm *= coeff[GSP_RANGE];
w_norm += coeff[GSP_MEAN_Z];
if (mode & GREENSPLINE_TREND) {
w_norm += coeff[GSP_SLP_X] * (X[GMT_X] - coeff[GSP_MEAN_X]);
if (di... | undo_normalization | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
char *unit_name(char unit, int arc) {
const char *v2;
const char *v3;
const char *v4;
const char *v5;
const char *v6;
const char *v7;
const char *v8;
char *name;
switch (unit) {
case 'M':
if (arc)
v3 = "miles";
else
v3 = "miles^2";
name = (char *)v3;
break;
case 'd':
... | GMT_LOCAL char *unit_name (char unit, int arc) {
char *name;
switch (unit) {
case 'k':
name = (arc) ? "km" : "km^2";
break;
case 'M':
name = (arc) ? "miles" : "miles^2";
break;
case 'n':
name = (arc) ? "nautical miles" : "nautical miles^2";
break;
case 'd':
name = (arc) ? "degrees" ... | unit_name | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void unscale_polynomial(GMT_CTRL *GMT, double *c, unsigned int n, double a,
double b) {
unsigned int j;
unsigned int ja;
unsigned int k;
double fac;
fac = 2.0 / (b - a);
for (j = 1; j < n; ++j) {
c[j] = c[j] * fac;
fac = fac * (2.0 / (b - a));
}
if (n > 1) {
for (ja ... | GMT_LOCAL void unscale_polynomial (struct GMT_CTRL *GMT, double c[], unsigned int n, double a, double b) {
unsigned int j, k;
double cnst, fac;
gmt_M_unused(GMT);
cnst = fac = 2.0 / (b - a);
for (j = 1; j < n; j++) {
c[j] *= fac;
fac *= cnst;
}
if (n < 2) return;
cnst = 0.5 * (a + b);
for (j = 0; j <= ... | unscale_polynomial | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void untransform_x_1d(TREND1D_DATA *data, uint64_t n_data, GMT_MODEL *M,
double xmin, double xmax) {
double v5;
uint64_t i;
if ((M->type & 1) != 0) {
if (M->intercept)
v5 = 0.5 * (xmin + xmax);
else
v5 = M->origin[0];
for (i = 0; i < n_data; ++i)
data[i].x = da... | GMT_LOCAL void untransform_x_1d (struct TREND1D_DATA *data, uint64_t n_data, struct GMT_MODEL *M, double xmin, double xmax) {
uint64_t i;
double offset, scale;
if ((M->type & 1) == 0) return;
offset = (M->intercept) ? 0.5 * (xmin + xmax) : M->origin[GMT_X];
scale = 0.5 * (xmax - xmin);
for (i = 0; i < n_da... | untransform_x_1d | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void untransform_x_2d(TREND2D_DATA *data, uint64_t n_data, double xmin,
double xmax, double ymin, double ymax) {
uint64_t i;
for (i = 0; i < n_data; ++i) {
data[i].x = data[i].x * (0.5 * (xmax - xmin)) + 0.5 * (xmin + xmax);
data[i].y = data[i].y * (0.5 * (ymax - ymin)) + 0.5 * (ymin ... | GMT_LOCAL void untransform_x_2d (struct TREND2D_DATA *data, uint64_t n_data, double xmin, double xmax, double ymin, double ymax) {
uint64_t i;
double offsetx, scalex;
double offsety, scaley;
offsetx = 0.5 * (xmin + xmax);
offsety = 0.5 * (ymin + ymax);
scalex = 0.5 * (xmax - xmin);
scaley = 0.5 * (ymax - ym... | untransform_x_2d | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int validate_coord_and_text(GMT_CTRL *GMT, PSTEXT_CTRL *Ctrl, int rec_no,
char *record, char *buffer) {
const char *v5;
const char *v6;
const char *v7;
bool v9;
const char *v10;
const char *v11;
unsigned int pos;
int nscan;
int ix;
_BYTE iy[260];
char txt_y[256];
char... | GMT_LOCAL int validate_coord_and_text (struct GMT_CTRL *GMT, struct PSTEXT_CTRL *Ctrl, int rec_no, char *record, char buffer[]) {
int ix, iy, nscan = 0;
unsigned int pos = 0;
char txt_x[GMT_LEN256] = {""}, txt_y[GMT_LEN256] = {""}, txt_z[GMT_LEN256] = {""};
ix = (GMT->current.setting.io_lonlat_toggle[GMT_IN]); i... | validate_coord_and_text | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int vector_compare_singular_values(const void *point_1v, const void *point_2v) {
if (fabs(*(double *)point_2v) > fabs(*(double *)point_1v))
return 1;
if (fabs(*(double *)point_1v) <= fabs(*(double *)point_2v))
return 0;
return -1;
} | GMT_LOCAL int vector_compare_singular_values (const void *point_1v, const void *point_2v) {
const struct GMT_SINGULAR_VALUE *E_1 = point_1v, *E_2 = point_2v;
bool bad_1, bad_2;
bad_1 = gmt_M_is_dnan (E_1->value);
bad_2 = gmt_M_is_dnan (E_2->value);
if (bad_1 && bad_2) return (0);
if (bad_1) return (+1);
if ... | vector_compare_singular_values | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t vector_fix_up_path_cartesian(GMT_CTRL *GMT, double **a_x, double **a_y,
uint64_t n, double step,
unsigned int mode) {
double v6;
double v7;
double v8;
double v9;
double v10;
double v11;
double v12;
double v13;
double ... | GMT_LOCAL uint64_t vector_fix_up_path_cartesian (struct GMT_CTRL *GMT, double **a_x, double **a_y, uint64_t n, double step, unsigned int mode) {
unsigned int k = 1;
uint64_t i, j, n_new, n_step = 0;
double *x = NULL, *y = NULL, c;
x = *a_x; y = *a_y;
gmt_prep_tmp_arrays (GMT, 1, 2);
GMT->hidden.mem_c... | vector_fix_up_path_cartesian | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t vector_fix_up_path_cartonly(GMT_CTRL *GMT, double **a_x, double **a_y,
uint64_t n, unsigned int mode) {
uint64_t i;
uint64_t k;
uint64_t ka;
uint64_t n_new;
double *x;
double *y;
n_new = 2 * n - 1;
x = *a_x;
y = *a_y;
if (n <= 1 || !mode)
return n;
... | GMT_LOCAL uint64_t vector_fix_up_path_cartonly (struct GMT_CTRL *GMT, double **a_x, double **a_y, uint64_t n, unsigned int mode) {
uint64_t i, k, n_new = 2*n - 1;
double *x = NULL, *y = NULL;
x = *a_x; y = *a_y;
if (n < 2 || mode == 0) return n;
gmt_prep_tmp_arrays (GMT, 1, 2);
GMT->hidden.mem_coo... | vector_fix_up_path_cartonly | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t vector_resample_path_cartesian(GMT_CTRL *GMT, double **x, double **y,
uint64_t n_in, double step_out,
GMT_enum_track mode) {
long v7;
double v8;
double v9;
double v10;
double step_outa;
uint64_t last_row_in;
uint64_t ... | GMT_LOCAL uint64_t vector_resample_path_cartesian (struct GMT_CTRL *GMT, double **x, double **y, uint64_t n_in, double step_out, enum GMT_enum_track mode) {
uint64_t last_row_in = 0, row_in, row_out, n_out;
bool new_pair;
double dist_out, gap, L = 0.0, frac_to_a, frac_to_b;
double *dist_in = NULL, *x_out = NULL,... | vector_resample_path_cartesian | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t vector_resample_path_spherical(GMT_CTRL *GMT, double **lon,
double **lat, uint64_t n_in,
double step_out, GMT_enum_track mode) {
long v7;
double v8;
double v9;
double v10;
double d_NaN;
double v12;
double v13;
doubl... | GMT_LOCAL uint64_t vector_resample_path_spherical (struct GMT_CTRL *GMT, double **lon, double **lat, uint64_t n_in, double step_out, enum GMT_enum_track mode) {
bool meridian, new_pair;
uint64_t last_row_in = 0, row_in, row_out, n_out;
unsigned int k;
double dist_out, gap, d_lon = 0.0, L = 0.0, frac_to_a, frac_t... | vector_resample_path_spherical | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int vector_svdcmp_nr(GMT_CTRL *GMT, double *a, unsigned int m_in,
unsigned int n_in, double *w, double *v) {
double v7;
double v8;
double v9;
double *v10;
double *v11;
double v12;
double v13;
double v14;
int flag;
int i;
int ia;
int ib;
int ic;
int id;
int its;
int j... | GMT_LOCAL int vector_svdcmp_nr (struct GMT_CTRL *GMT, double *a, unsigned int m_in, unsigned int n_in, double *w, double *v) {
int flag,i,its,j,jj,k,l=0,nm = 0, n = n_in, m = m_in;
double c,f,h,s,x,y,z;
double anorm=0.0,tnorm, g=0.0,scale=0.0;
double *rv1 = NULL;
if (m < n) {
GMT_Report (GMT->parent, GMT_MSG... | vector_svdcmp_nr | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void vector_switchrows(double *a, double *b, unsigned int n1, unsigned int n2,
unsigned int n) {
double *oa;
double double_tmp;
oa = (double *)malloc(8LL * n);
memcpy(oa, &a[n1 * n], 8LL * n);
memcpy(&a[n1 * n], &a[n2 * n], 8LL * n);
memcpy(&a[n2 * n], oa, 8LL * n);
double_tmp = b[... | GMT_LOCAL void vector_switchrows (double *a, double *b, unsigned int n1, unsigned int n2, unsigned int n) {
double *oa = (double *)malloc (sizeof(double)*n);
memcpy(oa, a+n*n1, sizeof(double)*n);
memcpy(a+n*n1, a+n*n2, sizeof(double)*n);
memcpy(a+n*n2, oa, sizeof(double)*n);
gmt_M_double_swap (b[n1], b[n2]);
g... | vector_switchrows | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void **void3_to_void2(void ***p) { return *p; } | void **void3_to_void2 (void ***p) { return (*p); } | void3_to_void2 | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double vol_prism_frac_x(GMT_GRID *G, uint64_t ij, double x0, double x1,
double a, double b, double c, double d) {
double v8;
float *data;
double dzdx;
double dzdy;
double dzdxy;
double c2a2;
double d2b2;
double cdab;
dzdx = (float)(G->data[ij + 1] - G->data[ij]);
dzdy = (flo... | GMT_LOCAL double vol_prism_frac_x (struct GMT_GRID *G, uint64_t ij, double x0, double x1, double a, double b, double c, double d) {
double dzdx, dzdy, dzdxy, ca, db, c2a2, d2b2, cdab, v, x02, x12, x03, x04, x13, x14;
dzdx = (G->data[ij+1] - G->data[ij]);
dzdy = (G->data[ij-G->header->mx] - G->data[ij]);
dzdxy = ... | vol_prism_frac_x | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double vol_prism_frac_y(GMT_GRID *G, uint64_t ij, double y0, double y1,
double a, double b, double c, double d) {
double v8;
float *data;
double dzdx;
double dzdy;
double dzdxy;
double c2a2;
double d2b2;
double cdab;
dzdx = (float)(G->data[ij + 1] - G->data[ij]);
dzdy = (flo... | GMT_LOCAL double vol_prism_frac_y (struct GMT_GRID *G, uint64_t ij, double y0, double y1, double a, double b, double c, double d) {
double dzdx, dzdy, dzdxy, ca, db, c2a2, d2b2, cdab, v, y02, y03, y04, y12, y13, y14;
dzdx = (G->data[ij+1] - G->data[ij]);
dzdy = (G->data[ij-G->header->mx] - G->data[ij]);
dzdxy = (G... | vol_prism_frac_y | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void write_model_parameters(GMT_CTRL *GMT, double *gtd, unsigned int n_model) {
unsigned int i;
char pbasis[10][16];
char format[4104];
unsigned long v7;
v7 = __readfsqword(0x28u);
sprintf(pbasis[0], "Mean");
sprintf(pbasis[1], "X");
sprintf(pbasis[2], "Y");
sprintf(pbasis[3], "X*Y");
sprintf(pbasi... | GMT_LOCAL void write_model_parameters (struct GMT_CTRL *GMT, double *gtd, unsigned int n_model) {
unsigned int i;
char pbasis[10][16], format[GMT_BUFSIZ];
sprintf (pbasis[0], "Mean");
sprintf (pbasis[1], "X");
sprintf (pbasis[2], "Y");
sprintf (pbasis[3], "X*Y");
sprintf (pbasis[4], "P2(x)");
sprintf (pbasis... | write_model_parameters | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int write_one_segment(GMT_CTRL *GMT, PROJECT_CTRL *Ctrl, double theta,
PROJECT_DATA *p_data, bool pure_ascii, PROJECT_INFO *P) {
uint64_t n_outputs;
uint64_t v7;
int v9;
uint64_t v10;
double cosx;
double sinx;
PROJECT_INFO *Pa;
bool pure_asciia;
PROJECT_DATA *p_dataa;
double th... | GMT_LOCAL int write_one_segment (struct GMT_CTRL *GMT, struct PROJECT_CTRL *Ctrl, double theta, struct PROJECT_DATA *p_data, bool pure_ascii, struct PROJECT_INFO *P) {
int error;
uint64_t col, n_items, rec, k;
double sin_theta, cos_theta, e[9], x[3], xt[3], *out = NULL;
char record[GMT_BUFSIZ] = {""}, text[GMT_BUFS... | write_one_segment | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int write_output_separate(GMT_CTRL *GMT, SPECTRUM1D_INFO *C, char *col,
int n_outputs, int write_wavelength, char *namestem) {
double v6;
double v8;
double v9;
double v10;
double v11;
int i;
int ia;
int ib;
int ic;
int id;
int ie;
int ig;
int ih;
int ii;
int j;
... | GMT_LOCAL int write_output_separate (struct GMT_CTRL *GMT, struct SPECTRUM1D_INFO *C, char *col, int n_outputs, int write_wavelength, char *namestem) {
int i, j;
double delta_f, eps_pow, out[3], *f_or_w = NULL;
char fname[GMT_LEN256] = {""};
FILE *fpout = NULL;
delta_f = 1.0 / (C->window * C->dt);
eps_pow = 1.... | write_output_separate | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int write_output_surface(GMT_CTRL *GMT, SURFACE_INFO *C, char *grdfile) {
float *v4;
int i;
int j;
int ja;
int err;
uint64_t index;
float *u;
float *v2;
uint64_t k;
uint64_t ka;
u = C->Grid->data;
err = load_constraints(GMT, C, 0);
if (err)
return err;
strcpy(C->Grid->header->title,
... | GMT_LOCAL int write_output_surface (struct GMT_CTRL *GMT, struct SURFACE_INFO *C, char *grdfile) {
uint64_t index, k;
int i, j, err;
float *u = C->Grid->data, *v2 = NULL;
if ((err = load_constraints (GMT, C, false)) != 0) return (err);
strcpy (C->Grid->header->title, "Data gridded with continuous surface sp... | write_output_surface | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void write_record(GMT_CTRL *GMT, double **R, uint64_t n, uint64_t p) {
uint64_t c;
double out[4098];
*(_QWORD *)&out[4097] = __readfsqword(0x28u);
for (c = 0; c < n; ++c)
out[c] = R[c][p];
GMT_Put_Record(GMT->parent, 0, out);
} | GMT_LOCAL void write_record (struct GMT_CTRL *GMT, double **R, uint64_t n, uint64_t p) {
uint64_t c;
double out[GMT_MAX_COLUMNS];
for (c = 0; c < n; c++) out[c] = R[c][p];
GMT_Put_Record (GMT->parent, GMT_WRITE_DATA, out);
} | write_record | 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.