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 ydpdict_close(ydpdict_t *pdict) { int i; if (!pdict) return -1; if (*((_QWORD *)pdict + 3)) { for (i = 0; i < *((_DWORD *)pdict + 4); ++i) free(*(void **)(*((_QWORD *)pdict + 3) + 16LL * i)); free(*((void **)pdict + 3)); *((_QWORD *)pdict + 3) = 0; } if (*(_QWORD *)pdict) { fclo...
int ydpdict_close(ydpdict_t *pdict) { ydpdict_priv_t *dict = pdict; if (dict == NULL) return -1; if (dict->words != NULL) { int i; for (i = 0; i < dict->count; i++) free(dict->words[i].word); free(dict->words); dict->words = NULL; } if (dict->dat != NULL) { fclose(dict->dat)...
ydpdict_close
libydpdict-1.0.4
app-dicts
O0/app-dicts/libydpdict-1.0.4/libydpdict.so.2.2.0
ida
O0
int ydpdict_find_word(const ydpdict_t *pdict, const char *word) { size_t v3; int i; i = 0; if (!pdict) return -1; while (i < *((_DWORD *)pdict + 4)) { v3 = strlen(word); if (!strncasecmp(*(const char **)(*((_QWORD *)pdict + 3) + 16LL * i), word, v3)) return i; ++i; ...
int ydpdict_find_word(const ydpdict_t *pdict, const char *word) { const ydpdict_priv_t *dict = pdict; int i = 0; if (dict == NULL) return -1; for (; i < dict->count; i++) { if (strncasecmp(dict->words[i].word, word, strlen(word)) == 0) return i; } return -1; }
ydpdict_find_word
libydpdict-1.0.4
app-dicts
O0/app-dicts/libydpdict-1.0.4/libydpdict.so.2.2.0
ida
O0
uint16_t ydpdict_fix16(uint16_t value) { return value; }
static inline uint16_t ydpdict_fix16(uint16_t value) { #ifndef WORDS_BIGENDIAN return value; #else return (uint16_t)(((value & (uint16_t)0x00ffU) << 8) | ((value & (uint16_t)0xff00U) >> 8)); #endif }
ydpdict_fix16
libydpdict-1.0.4
app-dicts
O0/app-dicts/libydpdict-1.0.4/libydpdict.so.2.2.0
ida
O0
uint32_t ydpdict_fix32(uint32_t value) { return value; }
static inline uint32_t ydpdict_fix32(uint32_t value) { #ifndef WORDS_BIGENDIAN return value; #else return (uint32_t)(((value & (uint32_t)0x000000ffU) << 24) | ((value & (uint32_t)0x0000ff00U) << 8) | ((value & (uint32_t)0x00ff0000U) >> 8) | ((value & (uint...
ydpdict_fix32
libydpdict-1.0.4
app-dicts
O0/app-dicts/libydpdict-1.0.4/libydpdict.so.2.2.0
ida
O0
int ydpdict_get_count(const ydpdict_t *pdict) { if (pdict) return *((_DWORD *)pdict + 4); else return -1; }
int ydpdict_get_count(const ydpdict_t *pdict) { const ydpdict_priv_t *dict = pdict; if (dict == NULL) return -1; return dict->count; }
ydpdict_get_count
libydpdict-1.0.4
app-dicts
O0/app-dicts/libydpdict-1.0.4/libydpdict.so.2.2.0
ida
O0
const char *ydpdict_get_word(const ydpdict_t *pdict, int def) { if (pdict && def < *((_DWORD *)pdict + 4)) return *(const char **)(*((_QWORD *)pdict + 3) + 16LL * def); else return 0; }
const char *ydpdict_get_word(const ydpdict_t *pdict, int def) { const ydpdict_priv_t *dict = pdict; if (dict == NULL || def >= dict->count) return NULL; return dict->words[def].word; }
ydpdict_get_word
libydpdict-1.0.4
app-dicts
O0/app-dicts/libydpdict-1.0.4/libydpdict.so.2.2.0
ida
O0
ydpdict_t *ydpdict_open(const char *dat, const char *idx, ydpdict_encoding_t encoding) { ydpdict_word_t *v3; int v4; int v5; ydpdict_word_t *v6; unsigned char ch_0; uint16_t count; uint32_t index; uint32_t magic; int i; int j; int k; ydpdict_priv_t *dict; const char *st...
ydpdict_t *ydpdict_open(const char *dat, const char *idx, ydpdict_encoding_t encoding) { ydpdict_priv_t *dict = NULL; uint32_t index; uint32_t magic; uint16_t count; int i, j; dict = calloc(1, sizeof(ydpdict_priv_t)); if (dict == NULL) goto failure; dict->xhtml_header = 1;...
ydpdict_open
libydpdict-1.0.4
app-dicts
O0/app-dicts/libydpdict-1.0.4/libydpdict.so.2.2.0
ida
O0
char *ydpdict_phonetic_to_utf8(const char *input) { int i; int ia; int len; char *result; char tmp[2]; unsigned long v7; v7 = __readfsqword(0x28u); len = 0; for (i = 0; input[i]; ++i) { if (input[i] >= -96) ++len; else len += strlen(ydpdict_phonetic_to_utf8_table[(unsign...
char *ydpdict_phonetic_to_utf8(const char *input) { int i, len = 0; char *result; for (i = 0; input[i] != 0; i++) { if (((unsigned char *)input)[i] >= 128 && ((unsigned char *)input)[i] < 160) len += strlen( ydpdict_phonetic_to_utf8_table[((unsigned char *)input)[i] - 128]); else le...
ydpdict_phonetic_to_utf8
libydpdict-1.0.4
app-dicts
O0/app-dicts/libydpdict-1.0.4/libydpdict.so.2.2.0
ida
O0
char *ydpdict_read_rtf(const ydpdict_t *pdict, int def) { size_t v3; uint32_t len; char *text; const ydpdict_priv_t *dict; unsigned long v7; v7 = __readfsqword(0x28u); dict = (const ydpdict_priv_t *)pdict; text = 0; len = 0; if (pdict && def < dict->count) { if (fseek(dict->dat, dict->words[def...
char *ydpdict_read_rtf(const ydpdict_t *pdict, int def) { const ydpdict_priv_t *dict = pdict; char *text = NULL; uint32_t len = 0; if (dict == NULL || def >= dict->count) { errno = EINVAL; return NULL; } if (fseek(dict->dat, dict->words[def].index, SEEK_SET) == (off_t)-1) goto failure; if (...
ydpdict_read_rtf
libydpdict-1.0.4
app-dicts
O0/app-dicts/libydpdict-1.0.4/libydpdict.so.2.2.0
ida
O0
char *ydpdict_read_xhtml(const ydpdict_t *pdict, int def) { ydpdict_encoding_t encoding; const char *v4; int v5; unsigned char v6; int v7; int buf_len; ydpdict_attr_t attr; ydpdict_attr_t attr_pending; int level; int paragraph; int margin; int len; char *buf; unsigned char *rtf; const char...
char *ydpdict_read_xhtml(const ydpdict_t *pdict, int def) { const ydpdict_priv_t *dict = pdict; char *buf = NULL; ydpdict_attr_t attr = 0, attr_pending = 0, attr_stack[32]; int level = 0; int paragraph = 0, margin = 0, buf_len; unsigned char *rtf, *rtf_orig; #undef APPEND #define APPEND(x) ...
ydpdict_read_xhtml
libydpdict-1.0.4
app-dicts
O0/app-dicts/libydpdict-1.0.4/libydpdict.so.2.2.0
ida
O0
int ydpdict_set_xhtml_header(ydpdict_t *pdict, int header) { if (pdict) { *((_DWORD *)pdict + 9) = header; return 0; } else { *__errno_location() = 22; return -1; } }
int ydpdict_set_xhtml_header(ydpdict_t *pdict, int header) { ydpdict_priv_t *dict = pdict; if (dict == NULL) { errno = EINVAL; return -1; } dict->xhtml_header = header; return 0; }
ydpdict_set_xhtml_header
libydpdict-1.0.4
app-dicts
O0/app-dicts/libydpdict-1.0.4/libydpdict.so.2.2.0
ida
O0
int ydpdict_set_xhtml_style(ydpdict_t *pdict, const char *style) { if (pdict) { free(*((void **)pdict + 6)); *((_QWORD *)pdict + 6) = 0; if (!style) return 0; *((_QWORD *)pdict + 6) = strdup(style); if (*((_QWORD *)pdict + 6)) return 0; else return -1; } else { *__errno...
int ydpdict_set_xhtml_style(ydpdict_t *pdict, const char *style) { ydpdict_priv_t *dict = pdict; if (dict == NULL) { errno = EINVAL; return -1; } free(dict->xhtml_style); dict->xhtml_style = NULL; if (style != NULL) { dict->xhtml_style = strdup(style); if (dict->xhtml_style == NULL) ...
ydpdict_set_xhtml_style
libydpdict-1.0.4
app-dicts
O0/app-dicts/libydpdict-1.0.4/libydpdict.so.2.2.0
ida
O0
int ydpdict_set_xhtml_title(ydpdict_t *pdict, const char *title) { if (pdict) { free(*((void **)pdict + 5)); *((_QWORD *)pdict + 5) = 0; if (!title) return 0; *((_QWORD *)pdict + 5) = strdup(title); if (*((_QWORD *)pdict + 5)) return 0; else return -1; } else { *__errno...
int ydpdict_set_xhtml_title(ydpdict_t *pdict, const char *title) { ydpdict_priv_t *dict = pdict; if (dict == NULL) { errno = EINVAL; return -1; } free(dict->xhtml_title); dict->xhtml_title = NULL; if (title != NULL) { dict->xhtml_title = strdup(title); if (dict->xhtml_title == NULL) ...
ydpdict_set_xhtml_title
libydpdict-1.0.4
app-dicts
O0/app-dicts/libydpdict-1.0.4/libydpdict.so.2.2.0
ida
O0
int ydpdict_set_xhtml_use_style(ydpdict_t *pdict, int use_style) { if (pdict) { *((_DWORD *)pdict + 14) = use_style; return 0; } else { *__errno_location() = 22; return -1; } }
int ydpdict_set_xhtml_use_style(ydpdict_t *pdict, int use_style) { ydpdict_priv_t *dict = pdict; if (dict == NULL) { errno = EINVAL; return -1; } dict->xhtml_use_style = use_style; return 0; }
ydpdict_set_xhtml_use_style
libydpdict-1.0.4
app-dicts
O0/app-dicts/libydpdict-1.0.4/libydpdict.so.2.2.0
ida
O0
char *ydpdict_windows1250_super_to_utf8(const char *input) { int i; int ia; int len; char *result; char tmp[2]; unsigned long v7; v7 = __readfsqword(0x28u); len = 0; for (i = 0; input[i]; ++i) { if (input[i] > 9u) { if (input[i] >= 0) ++len; else len += strlen( ...
char *ydpdict_windows1250_super_to_utf8(const char *input) { int i, len = 0; char *result; for (i = 0; input[i] != 0; i++) { if (((unsigned char *)input)[i] < 10) len += strlen( ydpdict_superscript_to_utf8_table[((unsigned char *)input)[i]]); else if (((unsigned char *)input)[i] >= 128) ...
ydpdict_windows1250_super_to_utf8
libydpdict-1.0.4
app-dicts
O0/app-dicts/libydpdict-1.0.4/libydpdict.so.2.2.0
ida
O0
char *ydpdict_windows1250_to_utf8(const char *input) { int i; int ia; int len; char *result; char tmp[2]; unsigned long v7; v7 = __readfsqword(0x28u); len = 0; for (i = 0; input[i]; ++i) { if (input[i] >= 0) ++len; else len += strlen( ydpdict_windows1250_to_utf8_table[(u...
char *ydpdict_windows1250_to_utf8(const char *input) { int i, len = 0; char *result; for (i = 0; input[i]; i++) { if (((unsigned char *)input)[i] >= 128) len += strlen( ydpdict_windows1250_to_utf8_table[((unsigned char *)input)[i] - 128]); else len++; } result = malloc(len + 1)...
ydpdict_windows1250_to_utf8
libydpdict-1.0.4
app-dicts
O0/app-dicts/libydpdict-1.0.4/libydpdict.so.2.2.0
ida
O0
int main(int argc, const char **argv, const char **envp) { unsigned char *v3; int v4; unsigned char *v5; unsigned char *v6; unsigned char c; int i; int j; unsigned char *p; unsigned char *q; char *fname; FILE *fp; unsigned long v15; v15 = __readfsqword(0x28u); fname = (char *)argv[1]; p =...
int main(argc, argv) int argc; char *argv[]; { unsigned char *p, *q, c; int i, j; char *fname; FILE *fp; fname = argv[1]; p = str_out; for (i = 0; i < OUTLEN; i++) { *p++ = ' '; } (void)strcpy(str_out, "TAG"); p = q = str_out + 3; for (i = 0; i < 5; i++) { j = 0; while ((c = getchar...
main
mpg123-el-1.61
app-emacs
O0/app-emacs/mpg123-el-1.61/id3put
ida
O0
int main(int argc, const char **argv, const char **envp) { long v3; long v4; long v5; long v6; long v7; long v8; int v9; long v10; long v11; long v12; long v13; long v14; std_string *p_tag; long v16; long v17; long v18; long v19; long v20; long v21; long v22; unsigned int i; ...
int main(int argc, char *argv[]) { if (argc != 2) { std::cerr << argv[0] << ": " << "usage: emms-print-metadata FILENAME" << std::endl << "FILENAME must end to one of these extensions: " << TagLib::FileRef::defaultFileExtensions().toString() << std::endl; ...
main
emms-10
app-emacs
O0/app-emacs/emms-10/emms-print-metadata
ida
O0
void print_tag(const TagLib_PropertyMap *tags, const std_string *tag) { const TagLib_StringList *v2; long v3; long v4; long v5; long v6; TagLib_String *value; _BYTE v8[16]; _BYTE v9[32]; _BYTE v10[40]; unsigned long v11; v11 = __readfsqword(0x28u); TagLib_String_String(v8, tag, 0); v2 = (cons...
void print_tag(const TagLib::PropertyMap &tags, const std::string &tag) { TagLib::StringList values = tags[tag]; if (!values.isEmpty()) { const TagLib::String &value = values.front(); std::cout << "info-" << tag << "=" << value.to8Bit(true) << std::endl; } }
print_tag
emms-10
app-emacs
O0/app-emacs/emms-10/emms-print-metadata
ida
O0
int32_t Calc_Ratio(const uint32_t Score, const uint32_t Ref_Score) { if (!Score) return -100; if (!Ref_Score) return Score; if (Score > Ref_Score) return (int)((double)(int)(Score - Ref_Score) / ((double)(int)Ref_Score / 100.0) + 0.5); if (Score >= Ref_Score) ...
int32_t Calc_Ratio(const uint32_t Score, const uint32_t Ref_Score) { if (!Score) return -100; else if (!Ref_Score) return Score; else if (Score > Ref_Score) return static_cast<int32_t>(((Score - Ref_Score) / (Ref_Score / 100.0)) + 0.5); else if (Score < Ref_Score) ...
Calc_Ratio
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
void __cdecl Geno::Benchmark::Fp128_Test(Geno::Benchmark *const this) { signed int loops; double Cur_Time; Geno::Benchmark::Test_Re_Type tmp; Geno::Stopwatch watch; unsigned __int64 v5; v5 = __readfsqword(0x28u); tmp = 0.0; Cur_Time = 0.0; loops = 0; Geno::Stopwatch::Stopwatch(&watch); Geno::Stop...
void Benchmark::Fp128_Test() { if (sizeof(long double) != 16) return; double tmp(0); double Cur_Time(0); uint32_t loops = 0; Stopwatch watch; watch.Start(); for (; Cur_Time < Time_Per_Test; ++loops, watch.Look(Cur_Time), Status_Done(static_cast<uint32_t>(Status_Mul * Cur_Time))) tmp...
Fp128_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
void __cdecl Geno::Benchmark::Fp32_Test(Geno::Benchmark *const this) { signed int loops; double Cur_Time; Geno::Benchmark::Test_Re_Type tmp; Geno::Stopwatch watch; unsigned __int64 v5; v5 = __readfsqword(0x28u); tmp = 0.0; Cur_Time = 0.0; loops = 0; Geno::Stopwatch::Stopwatch(&watch); Geno::Stopw...
void Benchmark::Fp32_Test() { if (sizeof(float) != 4 && sizeof(double) != 4) return; double tmp(0); double Cur_Time(0); uint32_t loops = 0; Stopwatch watch; watch.Start(); for (; Cur_Time < Time_Per_Test; ++loops, watch.Look(Cur_Time), Status_Done(static_cast<uint32_t>(Status_Mul * Cur_...
Fp32_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
void __cdecl Geno::Benchmark::Fp64_Test(Geno::Benchmark *const this) { signed int loops; double Cur_Time; Geno::Benchmark::Test_Re_Type tmp; Geno::Stopwatch watch; unsigned __int64 v5; v5 = __readfsqword(0x28u); tmp = 0.0; Cur_Time = 0.0; loops = 0; Geno::Stopwatch::Stopwatch(&watch); Geno::Stopw...
void Benchmark::Fp64_Test() { if (sizeof(double) != 8 && sizeof(long double) != 8) return; double tmp(0); double Cur_Time(0); uint32_t loops = 0; Stopwatch watch; watch.Start(); for (; Cur_Time < Time_Per_Test; ++loops, watch.Look(Cur_Time), Status_Done(static_cast<uint32_t>(Status_Mul ...
Fp64_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
void __cdecl Geno::Benchmark::Fp96_Test(Geno::Benchmark *const this) { ; }
void Benchmark::Fp96_Test() { if (sizeof(long double) != 12) return; double tmp(0); double Cur_Time(0); uint32_t loops = 0; Stopwatch watch; watch.Start(); for (; Cur_Time < Time_Per_Test; ++loops, watch.Look(Cur_Time), Status_Done(static_cast<uint32_t>(Status_Mul * Cur_Time))) tmp ...
Fp96_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
const uint32_t *HexStringtoMD5(const uint8_t *HexString) { char v2; uint8_t v3; uint8_t i; uint8_t *Byte; if (!HexString) return 0; Byte = (uint8_t *)HexStringtoMD5(unsigned char const *) _Digest; for (i = 0; i <= 0x1Fu; i += 2) { if (HexString[i] < UsedCase) v2 = HexString[i] - 48; els...
const uint32_t *HexStringtoMD5(const uint8_t *HexString) { if (!HexString) return NULL; static uint32_t Digest[4]; uint8_t *Byte = (uint8_t *)Digest; uint8_t i = 0; for (; i < 32; i += 2, ++Byte) { if (HexString[i] >= UsedCase) *Byte = (HexString[i] - UsedCase + 10) << 4; else *Byte...
HexStringtoMD5
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
void __cdecl Geno::Benchmark::Integer16_Test(Geno::Benchmark *const this) { signed int loops; double Cur_Time; Geno::Benchmark::Test_Re_Type tmp; Geno::Stopwatch watch; unsigned __int64 v5; v5 = __readfsqword(0x28u); tmp = 0.0; Cur_Time = 0.0; loops = 0; Geno::Stopwatch::Stopwatch(&watch); Geno::...
void Benchmark::Integer16_Test() { double tmp(0); double Cur_Time(0); uint32_t loops = 0; Stopwatch watch; watch.Start(); for (; Cur_Time < Time_Per_Test; ++loops, watch.Look(Cur_Time), Status_Done(static_cast<uint32_t>(Status_Mul * Cur_Time))) tmp += Intern_Integer16_Test(); m_Integer...
Integer16_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
void __cdecl Geno::Benchmark::Integer32_Test(Geno::Benchmark *const this) { signed int loops; double Cur_Time; Geno::Benchmark::Test_Re_Type tmp; Geno::Stopwatch watch; unsigned __int64 v5; v5 = __readfsqword(0x28u); tmp = 0.0; Cur_Time = 0.0; loops = 0; Geno::Stopwatch::Stopwatch(&watch); Geno::...
void Benchmark::Integer32_Test() { double tmp(0); double Cur_Time(0); uint32_t loops = 0; Stopwatch watch; watch.Start(); for (; Cur_Time < Time_Per_Test; ++loops, watch.Look(Cur_Time), Status_Done(static_cast<uint32_t>(Status_Mul * Cur_Time))) tmp += Intern_Integer32_Test(); m_Integer...
Integer32_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
void __cdecl Geno::Benchmark::Integer64_Test(Geno::Benchmark *const this) { signed int loops; double Cur_Time; Geno::Benchmark::Test_Re_Type tmp; Geno::Stopwatch watch; unsigned __int64 v5; v5 = __readfsqword(0x28u); tmp = 0.0; Cur_Time = 0.0; loops = 0; Geno::Stopwatch::Stopwatch(&watch); Geno::...
void Benchmark::Integer64_Test() { double tmp(0); double Cur_Time(0); uint32_t loops = 0; Stopwatch watch; watch.Start(); for (; Cur_Time < Time_Per_Test; ++loops, watch.Look(Cur_Time), Status_Done(static_cast<uint32_t>(Status_Mul * Cur_Time))) tmp += Intern_Integer64_Test(); m_Integer...
Integer64_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
void __cdecl Geno::Benchmark::Integer8_Test(Geno::Benchmark *const this) { signed int loops; double Cur_Time; Geno::Benchmark::Test_Re_Type Score; Geno::Stopwatch watch; unsigned __int64 v5; v5 = __readfsqword(0x28u); Score = 0.0; Cur_Time = 0.0; loops = 0; Geno::Stopwatch::Stopwatch(&watch); Gen...
void Benchmark::Integer8_Test() { double Score(0), Cur_Time(0); uint32_t loops(0); Stopwatch watch; watch.Start(); for (; Cur_Time < Time_Per_Test; ++loops, watch.Look(Cur_Time), Status_Done(static_cast<uint32_t>(Status_Mul * Cur_Time))) Score += Intern_Integer8_Test(); m_Integer8_Score ...
Integer8_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
Geno::Benchmark::Test_Re_Type __cdecl Geno::Benchmark::Intern_Fp128_Test() { return Geno::Benchmark::Calculation_Test<long double, 25u>(); }
Benchmark::Test_Re_Type Benchmark::Intern_Fp128_Test() { if (sizeof(long double) != 16) return 0; if (sizeof(long double) == 16) return Calculation_Test<long double, 25>(); else return 0; }
Intern_Fp128_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
Geno::Benchmark::Test_Re_Type __cdecl Geno::Benchmark::Intern_Fp32_Test() { return Geno::Benchmark::Calculation_Test<float, 50u>(); }
Benchmark::Test_Re_Type Benchmark::Intern_Fp32_Test() { if (sizeof(float) != 4 && sizeof(double) != 4) return 0; if (sizeof(float) == 4) return Calculation_Test<float, 50>(); else if (sizeof(double) == 4) return Calculation_Test<double, 50>(); else return 0; }
Intern_Fp32_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
Geno::Benchmark::Test_Re_Type __cdecl Geno::Benchmark::Intern_Fp64_Test() { return Geno::Benchmark::Calculation_Test<double, 50u>(); }
Benchmark::Test_Re_Type Benchmark::Intern_Fp64_Test() { if (sizeof(float) != 8 && sizeof(double) != 8 && sizeof(long double) != 8) return 0; if (sizeof(float) == 8) return Calculation_Test<float, 50>(); else if (sizeof(double) == 8) return Calculation_Test<double, 50>(); else if (sizeof(long double...
Intern_Fp64_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
Geno::Benchmark::Test_Re_Type __cdecl Geno::Benchmark::Intern_Fp96_Test() { return 0.0; }
Benchmark::Test_Re_Type Benchmark::Intern_Fp96_Test() { if (sizeof(long double) != 12) return 0; if (sizeof(long double) == 12) return Calculation_Test<long double, 25>(); else return 0; }
Intern_Fp96_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
Geno::Benchmark::Test_Re_Type __cdecl Geno::Benchmark::Intern_Integer16_Test() { return Geno::Benchmark::Calculation_Test<unsigned short, 50u>(); }
Benchmark::Test_Re_Type Benchmark::Intern_Integer16_Test() { return Calculation_Test<uint16_t, 50>(); }
Intern_Integer16_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
Geno::Benchmark::Test_Re_Type __cdecl Geno::Benchmark::Intern_Integer32_Test() { return Geno::Benchmark::Calculation_Test<unsigned int, 50u>(); }
Benchmark::Test_Re_Type Benchmark::Intern_Integer32_Test() { return Calculation_Test<uint32_t, 50>(); }
Intern_Integer32_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
Geno::Benchmark::Test_Re_Type __cdecl Geno::Benchmark::Intern_Integer64_Test() { return Geno::Benchmark::Calculation_Test<unsigned long, 30u>(); }
Benchmark::Test_Re_Type Benchmark::Intern_Integer64_Test() { return Calculation_Test<uint64_t, 30>(); }
Intern_Integer64_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
Geno::Benchmark::Test_Re_Type __cdecl Geno::Benchmark::Intern_Integer8_Test() { return Geno::Benchmark::Calculation_Test<unsigned char, 50u>(); }
Benchmark::Test_Re_Type Benchmark::Intern_Integer8_Test() { return Calculation_Test<uint8_t, 50>(); }
Intern_Integer8_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
Geno::Benchmark::Test_Re_Type __cdecl Geno::Benchmark::Intern_MT_MLuL_Test() { return Geno::Benchmark::MultiT_MLuL_Test<5000u>(); }
Benchmark::Test_Re_Type Benchmark::Intern_MT_MLuL_Test() { return MultiT_MLuL_Test<5000>(); }
Intern_MT_MLuL_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
Geno::Benchmark::Test_Re_Type __cdecl Geno::Benchmark::Intern_Mem_DA2_Test() { return Geno::Benchmark::Memory_DA_Test<32u, 2000u>(); }
Benchmark::Test_Re_Type Benchmark::Intern_Mem_DA2_Test() { return Memory_DA_Test<32, 2000>(); }
Intern_Mem_DA2_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
Geno::Benchmark::Test_Re_Type __cdecl Geno::Benchmark::Intern_Mem_DA4_Test() { return Geno::Benchmark::Memory_DA_Test<64u, 2000u>(); }
Benchmark::Test_Re_Type Benchmark::Intern_Mem_DA4_Test() { return Memory_DA_Test<64, 2000>(); }
Intern_Mem_DA4_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
Geno::Benchmark::Test_Re_Type __cdecl Geno::Benchmark::Intern_Mem_DA8_Test() { return Geno::Benchmark::Memory_DA_Test<128u, 1000u>(); }
Benchmark::Test_Re_Type Benchmark::Intern_Mem_DA8_Test() { return Memory_DA_Test<128, 1000>(); }
Intern_Mem_DA8_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
Geno::Benchmark::Test_Re_Type __cdecl Geno::Benchmark::Intern_Mem_RW2_Test() { return Geno::Benchmark::Memory_RW_Test<128u, 4000u>(); }
Benchmark::Test_Re_Type Benchmark::Intern_Mem_RW2_Test() { return Memory_RW_Test<128, 4000>(); }
Intern_Mem_RW2_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
Geno::Benchmark::Test_Re_Type __cdecl Geno::Benchmark::Intern_Mem_RW4_Test() { return Geno::Benchmark::Memory_RW_Test<256u, 3500u>(); }
Benchmark::Test_Re_Type Benchmark::Intern_Mem_RW4_Test() { return Memory_RW_Test<256, 3500>(); }
Intern_Mem_RW4_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
uint16_t MD5CalculatePadding(uint64_t Len) { uint16_t ToReturn; ToReturn = Len & 0x1FF; if ((Len & 0x1FF) > 0x1BF) return 960 - ToReturn; else return 448 - ToReturn; }
uint16_t MD5CalculatePadding(uint64_t Len) { uint16_t ToReturn = Len % 512; if (ToReturn < 448) ToReturn = 448 - ToReturn; else ToReturn = 512 - (ToReturn - 448); return ToReturn; }
MD5CalculatePadding
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
const uint32_t *MD5Digest_FixedL(const uint8_t *const Message, const uint32_t Len) { int v3; int v4; int v5; int v6; int v7; int v8; int v9; int v10; int v11; int v12; int v13; int v14; int v15; int v16; int v17; int v18; int v19; int v20; int v21; ...
const uint32_t *MD5Digest_FixedL(const uint8_t *const Message, const uint32_t Len) { if (!Message) return NULL; const uint64_t Len_Bit = Len << 3; uint64_t i = 0; if (!Len) return NULL; uint16_t Padding = MD5CalculatePadding(Len << 3) >> 3; uint32_t A = 0x67452301,...
MD5Digest_FixedL
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
const uint8_t *MD5toHexString(const uint32_t *const Digest) { uint8_t i; uint8_t Temp; uint8_t Tempa; for (i = 0; i <= 0xFu; ++i) { Temp = *(_BYTE *)Digest >> 4; if (Temp > 9u) MD5toHexString(unsigned int const *) _ToReturn[2 * i] = Temp + UsedCase - 10; else MD5toHexString(un...
const uint8_t *MD5toHexString(const uint32_t *const Digest) { static uint8_t ToReturn[33]; uint8_t *Current = (uint8_t *)Digest; uint8_t Temp = 0; uint8_t i = 0; for (; i < (4 << 2); ++i, ++Current) { Temp = ((*Current >> 4) & 15); if (Temp < 10) ToReturn[i << 1] = '0' + Temp; else To...
MD5toHexString
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
void __cdecl Geno::Benchmark::MT_MLuL_Test(Geno::Benchmark *const this) { signed int loops; double Cur_Time; Geno::Benchmark::Test_Re_Type tmp; Geno::Stopwatch watch; unsigned __int64 v5; v5 = __readfsqword(0x28u); tmp = 0.0; Cur_Time = 0.0; loops = 0; Geno::Stopwatch::Stopwatch(&watch); Geno::St...
void Benchmark::MT_MLuL_Test() { double tmp(0); double Cur_Time(0); uint32_t loops = 0; Stopwatch watch; watch.Start(); for (; Cur_Time < Time_Per_Test; ++loops, watch.Look(Cur_Time), Status_Done(static_cast<uint32_t>(Status_Mul * Cur_Time))) tmp += Intern_MT_MLuL_Test(); m_MT_MLuL_Sco...
MT_MLuL_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
void __cdecl Geno::Benchmark::Mem_DA2_Test(Geno::Benchmark *const this) { signed int loops; double Cur_Time; Geno::Benchmark::Test_Re_Type tmp; Geno::Stopwatch watch; unsigned __int64 v5; v5 = __readfsqword(0x28u); tmp = 0.0; Cur_Time = 0.0; loops = 0; Geno::Stopwatch::Stopwatch(&watch); Geno::St...
void Benchmark::Mem_DA2_Test() { double tmp(0); double Cur_Time(0); uint32_t loops = 0; Stopwatch watch; watch.Start(); for (; Cur_Time < Time_Per_Test; ++loops, watch.Look(Cur_Time), Status_Done(static_cast<uint32_t>(Status_Mul * Cur_Time))) tmp += Intern_Mem_DA2_Test(); m_Mem_DA2_Sco...
Mem_DA2_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
void __cdecl Geno::Benchmark::Mem_DA4_Test(Geno::Benchmark *const this) { signed int loops; double Cur_Time; Geno::Benchmark::Test_Re_Type tmp; Geno::Stopwatch watch; unsigned __int64 v5; v5 = __readfsqword(0x28u); tmp = 0.0; Cur_Time = 0.0; loops = 0; Geno::Stopwatch::Stopwatch(&watch); Geno::St...
void Benchmark::Mem_DA4_Test() { double tmp(0); double Cur_Time(0); uint32_t loops = 0; Stopwatch watch; watch.Start(); for (; Cur_Time < Time_Per_Test; ++loops, watch.Look(Cur_Time), Status_Done(static_cast<uint32_t>(Status_Mul * Cur_Time))) tmp += Intern_Mem_DA4_Test(); m_Mem_DA4_Sco...
Mem_DA4_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
void __cdecl Geno::Benchmark::Mem_DA8_Test(Geno::Benchmark *const this) { signed int loops; double Cur_Time; Geno::Benchmark::Test_Re_Type tmp; Geno::Stopwatch watch; unsigned __int64 v5; v5 = __readfsqword(0x28u); tmp = 0.0; Cur_Time = 0.0; loops = 0; Geno::Stopwatch::Stopwatch(&watch); Geno::St...
void Benchmark::Mem_DA8_Test() { double tmp(0); double Cur_Time(0); uint32_t loops = 0; Stopwatch watch; watch.Start(); for (; Cur_Time < Time_Per_Test; ++loops, watch.Look(Cur_Time), Status_Done(static_cast<uint32_t>(Status_Mul * Cur_Time))) tmp += Intern_Mem_DA8_Test(); m_Mem_DA8_Sco...
Mem_DA8_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
void __cdecl Geno::Benchmark::Mem_RW2_Test(Geno::Benchmark *const this) { signed int loops; double Cur_Time; Geno::Benchmark::Test_Re_Type tmp; Geno::Stopwatch watch; unsigned __int64 v5; v5 = __readfsqword(0x28u); tmp = 0.0; Cur_Time = 0.0; loops = 0; Geno::Stopwatch::Stopwatch(&watch); Geno::St...
void Benchmark::Mem_RW2_Test() { double tmp(0); double Cur_Time(0); uint32_t loops = 0; Stopwatch watch; watch.Start(); for (; Cur_Time < Time_Per_Test; ++loops, watch.Look(Cur_Time), Status_Done(static_cast<uint32_t>(Status_Mul * Cur_Time))) tmp += Intern_Mem_RW2_Test(); m_Mem_RW2_Sco...
Mem_RW2_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
void __cdecl Geno::Benchmark::Mem_RW4_Test(Geno::Benchmark *const this) { signed int loops; double Cur_Time; Geno::Benchmark::Test_Re_Type tmp; Geno::Stopwatch watch; unsigned __int64 v5; v5 = __readfsqword(0x28u); tmp = 0.0; Cur_Time = 0.0; loops = 0; Geno::Stopwatch::Stopwatch(&watch); Geno::St...
void Benchmark::Mem_RW4_Test() { double tmp(0); double Cur_Time(0); uint32_t loops = 0; Stopwatch watch; watch.Start(); for (; Cur_Time < Time_Per_Test; ++loops, watch.Look(Cur_Time), Status_Done(static_cast<uint32_t>(Status_Mul * Cur_Time))) tmp += Intern_Mem_RW4_Test(); m_Mem_RW4_Sco...
Mem_RW4_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
void Output_Error(const uint32_t Error) { if (Error == 1) Geno_Output_Write<char[29]>( (const char (*)[29]) "Error: We run out of Memory!", 1); else Geno_Output_Write<char[29]>( (const char (*)[29]) "Canceled for unknown reason!", 1); }
void Output_Error(const uint32_t Error) { switch (Error) { case Benchmark::Mem_Alloc: Output::Write("Error: We run out of Memory!"); break; default: Output::Write("Canceled for unknown reason!"); break; ; } }
Output_Error
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
void Output_Head() { Geno_Output_Write<char[56]>( (const char ( *)[56]) "#######################################################", 1); Geno_Output_Write<char[56]>( (const char ( *)[56]) ": T E S T : :S C O R E : : R A T I O:", 1); Geno_Output_W...
void Output_Head() { Output::Write("#######################################################"); Output::Write(": T E S T : :S C O R E : : R A T I O:"); Output::Write(":-----------------------------------------------------:"); std::cout.flush(); }
Output_Head
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
bool Process_Parameter(int argc, char **argv) { bool Need_Override; int i; for (i = 1; i < argc; ++i) { if (!strcmp(argv[i], "--secure") || !strcmp(argv[i], "-s")) { Secure = 1; } else if (!strcmp(argv[i], "--just-interface")) { if (Save_Result) goto LABEL_8; Just_Interface = 1;...
bool Process_Parameter(int argc, char *argv[]) { for (int i = 1; i < argc; ++i) { if (!strcmp(argv[i], "--secure") || !strcmp(argv[i], "-s")) ::Secure = true; else if (!strcmp(argv[i], "--just-interface")) { if (::Save_Result) { Output::Write(ji_a_sr); return false; } ...
Process_Parameter
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
void __cdecl Geno::Benchmark::Run(Geno::Benchmark *const this) { signed int tmp_Time; signed int Loops; double Cur_Time; Geno::Benchmark::Test_Re_Type Re8int; Geno::Benchmark::Test_Re_Type Re16int; Geno::Benchmark::Test_Re_Type Re32int; Geno::Benchmark::Test_Re_Type Re64int; Geno::Benchmark::Test_Re_Typ...
void Benchmark::Run() { Stopwatch watch; uint32_t tmp_Time; if (::Just_Mem_Test) tmp_Time = Time_Per_Test * 5; else if (::Just_Cpu_Test) tmp_Time = Time_Per_Test * 7; else if (::Just_MT_Test) tmp_Time = Time_Per_Test * 1; else tmp_Time = Time_Per_Test * 13; if (No_Cpu_Test) tmp_Time -...
Run
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
void SetCase(const uint8_t LowerCase) { if (LowerCase) UsedCase = 97; else UsedCase = 65; }
void SetCase(const uint8_t LowerCase) { if (LowerCase) UsedCase = 'a'; else UsedCase = 'A'; }
SetCase
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
void Status_Done(const uint16_t Percent) { uint16_t New_Percent; unsigned long v2; v2 = __readfsqword(0x28u); if (!Secure && !Detailed) New_Percent = (int)((double)(Percent / (int)Number_of_Tests) + 100.0 / (double)Number_of_Tests * (double)Current_Test); else New_Percent = Pe...
void Status_Done(const uint16_t Percent) { static uint16_t Last_Percent(1000); uint16_t New_Percent; if (!::Secure && !::Detailed) { New_Percent = static_cast<uint16_t>( ((100.0 / Number_of_Tests) * Current_Test) + Percent / Number_of_Tests); } else New_Percent = Percent; if (Last_Percent == ...
Status_Done
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
void Geno_Write_Result_ ~Write_Result(Geno_Write_Result *const this) { std_string_ ~string((char *)this + 512); std_ofstream_ ~ofstream(this); }
Write_Result::Write_Result(const char *const File_Name) { if (File_Name) { m_File.open(File_Name); } }
Write_Result
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
bool Write_Save_Result(const Geno_Benchmark *const Results) { bool v1; Geno_Benchmark_Score_Re_Type Integer8_Score; Geno_Benchmark_Score_Re_Type Integer16_Score; Geno_Benchmark_Score_Re_Type Integer32_Score; Geno_Benchmark_Score_Re_Type Integer64_Score; Geno_Benchmark_Score_Re_Type v7; Geno_Benchmark_Scor...
bool Write_Save_Result(const Benchmark *const Results) { if (Results && Results->Get_Error() == Benchmark::None) { Write_Result File("Result.save"); if (File.Is_Ok()) { if (File.Write(Results->Get_Integer8_Score()) && File.Write(Results->Get_Integer16_Score()) && File.Write(Results->...
Write_Save_Result
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
void Write_Test(const char *Test, const uint32_t Score, const uint32_t other_S, const bool Empty) { long v4; uint8_t i; uint8_t i_0; unsigned int bla; unsigned int blaa; unsigned int blab; float Ratio; char *v13; std_string ToWrite; _BYTE v15[32]; std_string tmp; _BYTE v17[32]; ...
void Write_Test(const char *Test, const uint32_t Score, const uint32_t other_S, const bool Empty = false) { static const uint8_t Test_Len = 25, Score_Len = 10; stringstream str; str << ':' << Test; std::string ToWrite = str.str(); unsigned int bla = Test_Len - ToWrite.size(); for (uint8_t i...
Write_Test
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
int main(int argc, const char **argv, const char **envp) { uint32_t Integer8_Score; uint32_t Integer16_Score; uint32_t Integer32_Score; uint32_t Integer64_Score; uint32_t Fp32_Score; uint32_t Fp64_Score; uint32_t Fp128_Score; Geno_Benchmark_Score_Re_Type v11; Geno_Benchmark_Score_Re_Type v12; Geno_B...
int main(int argc, char *argv[]) { if (!Process_Parameter(argc, argv)) { #if IsWin system("Pause"); #endif return -1; } Binary_Location = argv[0]; Output_Head(); #if IsWin #define usleep(Value) Sleep(Value / 1000) #endif if (!::Force_No_Sys_Info && !::Force_No_Threads && !::Just_Interface) uslee...
main
bashmark-0.6.2
app-benchmarks
O0/app-benchmarks/bashmark-0.6.2/bashmark
ida
O0
char *clean_string(const char *s) { int v1; char *v2; char *v3; _BYTE *v4; const char *sa; int i; char *p; const char *const_p; char *res; sa = s; i = 0; for (const_p = s; *const_p; ++const_p) { if (*const_p == 92 || *const_p == 34) { ++i; } else if (*const_p == 4) { i += 3;...
static char *clean_string(const char *s) { int i = 0; char *p, *res; { const char *const_p; for (const_p = s; *const_p; const_p++, i++) { if (*const_p == '\\' || *const_p == '\"') ++i; else if (*const_p == '\004') i += 3; } } p = res = (char *)malloc(i + 2 + 1); *p+...
clean_string
gnuserv-3.12.8-r5
app-emacs
O0/app-emacs/gnuserv-3.12.8-r5/gnuclient-emacs
ida
O0
int connect_to_internet_server(char *serverhost, unsigned short port) { short v2; size_t v3; size_t v5; int s; struct servent *sp_0; sockaddr_in peeraddr_in; char buf[520]; unsigned long v10; v10 = __readfsqword(0x28u); memset(&peeraddr_in, 0, sizeof(peeraddr_in)); peeraddr_in.sin_family = 2; p...
static int connect_to_internet_server(char *serverhost, unsigned short port) { int s; struct servent *sp; struct sockaddr_in peeraddr_in; char buf[512]; memset((char *)&peeraddr_in, 0, sizeof(struct sockaddr_in)); peeraddr_in.sin_family = AF_INET; if ((peeraddr_in.sin_addr.s_addr = internet_addr(server...
connect_to_internet_server
gnuserv-3.12.8-r5
app-emacs
O0/app-emacs/gnuserv-3.12.8-r5/gnuclient-emacs
ida
O0
int connect_to_unix_server() { __uid_t v0; int v1; int s; sockaddr_un server; unsigned long v5; v5 = __readfsqword(0x28u); s = socket(1, 1, 0); if (s < 0) { perror(progname); fprintf(stderr, "%s: unable to create socket\n", progname); exit(1); } server.sun_family = 1; v0 = geteuid(); ...
static int connect_to_unix_server(void) { int s; struct sockaddr_un server; if ((s = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) { perror(progname); fprintf(stderr, "%s: unable to create socket\n", progname); exit(1); }; server.sun_family = AF_UNIX; #ifdef HIDE_UNIX_SOCKET sprintf(server.sun_path, "...
connect_to_unix_server
gnuserv-3.12.8-r5
app-emacs
O0/app-emacs/gnuserv-3.12.8-r5/gnuclient-emacs
ida
O0
void disconnect_from_server(int s, int echo) { _BOOL4 add_newline; int length; char buffer[8200]; unsigned long v5; v5 = __readfsqword(0x28u); add_newline = 1; send_string(s, &byte_450E); while (1) { length = read(s, buffer, 0x2000u); if (length <= 0 && (length != -1 || *__errno_location() != 4...
void disconnect_from_server(int s, int echo) { #if 0 char buffer[REPLYSIZ+1]; #else char buffer[GSERV_BUFSZ + 1]; #endif int add_newline = 1; int length; send_string(s, EOT_STR); #if !defined(linux) && !defined(_SCO_DS) if (shutdown(s, 1) == -1) { perror(progname); fprintf(stderr, "%s: unable to ...
disconnect_from_server
gnuserv-3.12.8-r5
app-emacs
O0/app-emacs/gnuserv-3.12.8-r5/gnuclient-emacs
ida
O0
void filename_expand(char *fullpath, char *filename) { char *current_working_directory; int len; fullpath[4096] = 0; *fullpath = fullpath[4096]; if (*filename == 47) { strncat(fullpath, filename, 0x1000u); } else { current_working_directory = get_current_working_directory(); strncat(fullpath, c...
static void filename_expand(char *fullpath, char *filename) { #ifdef CYGWIN char cygwinFilename[QXE_PATH_MAX + 1]; extern void cygwin_conv_to_posix_path(const char *, char *); #endif int len; fullpath[0] = fullpath[QXE_PATH_MAX] = '\0'; #ifdef CYGWIN cygwin_conv_to_posix_path(filename, cygwinFilename); ...
filename_expand
gnuserv-3.12.8-r5
app-emacs
O0/app-emacs/gnuserv-3.12.8-r5/gnuclient-emacs
ida
O0
char *get_current_working_directory() { if (!cp) { if (!getcwd(cwd, 0x1000u)) { perror(progname); fprintf(stderr, "%s: unable to get current working directory\n", progname); exit(1); } for (cp = cwd; *cp && *cp != 47; ++cp) ; } return cp; }
static char *get_current_working_directory(void) { if (cp == NULL) { #ifdef HAVE_GETCWD if (getcwd(cwd, QXE_PATH_MAX) == NULL) #else if (getwd(cwd) == 0) #endif { perror(progname); fprintf(stderr, "%s: unable to get current working directory\n", progname); exit(1); } ...
get_current_working_directory
gnuserv-3.12.8-r5
app-emacs
O0/app-emacs/gnuserv-3.12.8-r5/gnuclient-emacs
ida
O0
void initialize_signals() { signal(3, (__sighandler_t)pass_signal_to_emacs); signal(2, (__sighandler_t)pass_signal_to_emacs); signal(28, (__sighandler_t)pass_signal_to_emacs); signal(18, (__sighandler_t)tell_emacs_to_resume); }
void initialize_signals(void) { signal(SIGQUIT, pass_signal_to_emacs); signal(SIGINT, pass_signal_to_emacs); #ifdef SIGWINCH signal(SIGWINCH, pass_signal_to_emacs); #endif #ifdef SIGCONT signal(SIGCONT, tell_emacs_to_resume); #endif }
initialize_signals
gnuserv-3.12.8-r5
app-emacs
O0/app-emacs/gnuserv-3.12.8-r5/gnuclient-emacs
ida
O0
int internet_addr(char *host) { in_addr_t numeric_addr; struct hostent *hp; numeric_addr = inet_addr(host); if (numeric_addr != -1) return numeric_addr; hp = gethostbyname(host); if (hp) return **(_DWORD **)hp->h_addr_list; else return -1; }
int internet_addr(char *host) { struct hostent *hp; IN_ADDR numeric_addr; numeric_addr = inet_addr(host); if (!NUMERIC_ADDR_ERROR) return numeric_addr; else if ((hp = gethostbyname(host)) != NULL) return ((struct in_addr *)(hp->h_addr))->s_addr; else return -1; }
internet_addr
gnuserv-3.12.8-r5
app-emacs
O0/app-emacs/gnuserv-3.12.8-r5/gnuclient-emacs
ida
O0
int make_connection(char *hostarg, int portarg, int *s) { unsigned short portarga; char *hostarga; const char *ptr; hostarga = hostarg; portarga = portarg; if (!hostarg) hostarga = getenv("GNU_HOST"); if (!portarg) { ptr = getenv("GNU_PORT"); if (ptr) portarga = atoi(ptr); } if (!ho...
int make_connection(char *hostarg, int portarg, int *s) { #ifdef INTERNET_DOMAIN_SOCKETS char *ptr; if (hostarg == NULL) hostarg = getenv("GNU_HOST"); if (portarg == 0 && (ptr = getenv("GNU_PORT")) != NULL) portarg = atoi(ptr); #endif if (hostarg != NULL) { #ifdef UNIX_DOMAIN_SOCKETS if (!strcmp(h...
make_connection
gnuserv-3.12.8-r5
app-emacs
O0/app-emacs/gnuserv-3.12.8-r5/gnuclient-emacs
ida
O0
char *my_strdup(const char *s) { size_t v1; char *new_s; v1 = strlen(s); new_s = (char *)malloc(v1 + 1); if (new_s) strcpy(new_s, s); return new_s; }
while (0) static char *my_strdup(const char *s) { char *new_s = (char *)malloc(strlen(s) + 1); if (new_s) strcpy(new_s, s); return new_s; }
my_strdup
gnuserv-3.12.8-r5
app-emacs
O0/app-emacs/gnuserv-3.12.8-r5/gnuclient-emacs
ida
O0
void pass_signal_to_emacs(int sig) { if (kill(emacs_pid, sig) == -1) { fwrite("gnuattach: Could not pass signal to emacs process\n", 1u, 0x32u, stderr); exit(1); } initialize_signals(); }
static void pass_signal_to_emacs(int sig) { if (kill(emacs_pid, sig) == -1) { fprintf(stderr, "gnuattach: Could not pass signal to emacs process\n"); exit(1); } initialize_signals(); }
pass_signal_to_emacs
gnuserv-3.12.8-r5
app-emacs
O0/app-emacs/gnuserv-3.12.8-r5/gnuclient-emacs
ida
O0
int read_line(int s, char *dest) { ssize_t i; int offset; char buffer[8200]; unsigned long v6; v6 = __readfsqword(0x28u); offset = 0; for (i = read(s, buffer, 1u); i > 0; i = read(s, &buffer[offset], 1u)) { if (buffer[offset] == 10) break; if (buffer[offset] == 4) break; offset +=...
int read_line(int s, char *dest) { int length; int offset = 0; char buffer[GSERV_BUFSZ + 1]; while ((length = read(s, buffer + offset, 1) > 0) && buffer[offset] != '\n' && buffer[offset] != EOT_CHR) { offset += length; if (offset >= GSERV_BUFSZ) break; } buffer[offset] = '\0'; strc...
read_line
gnuserv-3.12.8-r5
app-emacs
O0/app-emacs/gnuserv-3.12.8-r5/gnuclient-emacs
ida
O0
void send_string(int s, const char *msg) { int v2; const char *msga; int left; int len; msga = msg; left = strlen(msg); while (left > 0) { v2 = 0x2000; if (left <= 0x2000) v2 = left; len = write(s, msga, v2); if (len < 0) { if (*__errno_location() != 32) { perror(progn...
void send_string(int s, const char *msg) { #if 0 if (send(s,msg,strlen(msg),0) < 0) { perror(progname); fprintf(stderr,"%s: unable to send\n",progname); exit(1); }; #else int len, left = strlen(msg); while (left > 0) { if ((len = write(s, msg, min2(left, GSERV_BUFSZ))) < 0) { if (errno ==...
send_string
gnuserv-3.12.8-r5
app-emacs
O0/app-emacs/gnuserv-3.12.8-r5/gnuclient-emacs
ida
O0
void tell_emacs_to_resume(int unused_sig) { __pid_t v1; int s; int connect_type; char buffer[8200]; unsigned long v5; v5 = __readfsqword(0x28u); signal(18, (__sighandler_t)tell_emacs_to_resume); connect_type = make_connection(0, 0, &s); v1 = getpid(); sprintf(buffer, "(gnuserv-eval '(resume-pid-con...
static void tell_emacs_to_resume(int UNUSED(sig)) { char buffer[GSERV_BUFSZ + 1]; int s; int connect_type; #ifdef SIGCONT signal(SIGCONT, tell_emacs_to_resume); #endif connect_type = make_connection(NULL, 0, &s); sprintf(buffer, "(gnuserv-eval '(resume-pid-console %d))", (int)getpid()); send_string(s, ...
tell_emacs_to_resume
gnuserv-3.12.8-r5
app-emacs
O0/app-emacs/gnuserv-3.12.8-r5/gnuclient-emacs
ida
O0
double POW10(int exp) { double result; result = 1.0; while (exp) { result = 10.0 * result; --exp; } return result; }
static LDOUBLE POW10(int exp) { LDOUBLE result = 1; while (exp) { result *= 10; exp--; } return result; }
POW10
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/tbench
ida
O0
long ROUND(double value) { long intpart; intpart = (unsigned int)(int)value; if (value - (double)(int)value >= 0.5) ++intpart; return intpart; }
static LLONG ROUND(LDOUBLE value) { LLONG intpart; intpart = (LLONG)value; value = value - intpart; if (value >= 0.5) intpart++; return intpart; }
ROUND
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/tbench
ida
O0
double abs_val(double value) { double result; result = value; if (value < 0.0) return -value; return result; }
static LDOUBLE abs_val(LDOUBLE value) { LDOUBLE result = value; if (value < 0) result = -value; return result; }
abs_val
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/tbench
ida
O0
void child_op(child_struct *child, char **params, const char *fname, const char *fname2, const char *status) { int v5; uint32_t v6; uint32_t v7; int v8; int v9; int v10; int v11; int v12; int v13; int v14; int v15; int v16; int v17; int v18; int v19; int v20; int v21; i...
static void child_op(struct child_struct *child, char **params, const char *fname, const char *fname2, const char *status) { child->lasttime = timeval_current(); if (!strcmp(params[0], "NTCreateX")) { nb_createx(child, fname, ival(params[2]), ival(params[3]), ival(para...
child_op
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/tbench
ida
O0
void child_run(child_struct *child0, const char *loadfile) { int i; int ia; pid_t parent; char *p; char **params; double targett; child_struct *child; char **sparams; FILE *f; const char *status; char line[1024]; char fname[1024]; char fname2[1032]; unsigned long v15; v15 = __readfsqword(...
void child_run(struct child_struct *child0, const char *loadfile) { int i; char line[1024], fname[1024], fname2[1024]; char **sparams, **params; char *p; const char *status; FILE *f; pid_t parent = getppid(); double targett; struct child_struct *child; for (child = child0; child < child0 + options....
child_run
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/tbench
ida
O0
void create_procs(int nprocs, void (*fn)(child_struct *, const char *)) { child_struct *v2; child_struct *v3; __pid_t v4; int status; int i; int j; int nclients; int synccount; sembuf sbuf; double t; timeval tv; unsigned long v14; v14 = __readfsqword(0x28u); nclients = nprocs * options_0.cl...
static void create_procs(int nprocs, void (*fn)(struct child_struct *, const char *)) { int nclients = nprocs * options.clients_per_process; int i, status; int synccount; struct timeval tv; FILE *load; struct sembuf sbuf; double t; load = open_loadfile(); if (load == NULL) { ...
create_procs
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/tbench
ida
O0
void do_packets(child_struct *child, int send_size, int recv_size) { uint32_t v3; uint32_t v4; sockio *sockio; sockio = (sockio *)child->private; *(_DWORD *)sockio->buf = htonl(send_size - 4); *(_DWORD *)&sockio->buf[4] = htonl(recv_size - 4); if (send_size != write_sock(sockio->sock, sockio->buf, send_s...
static void do_packets(struct child_struct *child, int send_size, int recv_size) { struct sockio *sockio = (struct sockio *)child->private; uint32 *ubuf = (uint32 *)sockio->buf; ubuf[0] = htonl(send_size - 4); ubuf[1] = htonl(recv_size - 4); if (write_sock(sockio->sock, sockio->buf, s...
do_packets
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/tbench
ida
O0
size_t dopr(char *buffer, size_t maxlen, const char *format, __va_list_tag *args_in) { void *overflow_arg_area; const char *v5; const char *v6; const char *v7; const char *v8; const char *v9; const char *v10; const char *v11; const char *v12; _DWORD *v13; const char *v14; const char ...
static size_t dopr(char *buffer, size_t maxlen, const char *format, va_list args_in) { char ch; LLONG value; LDOUBLE fvalue; char *strvalue; int min; int max; int state; int flags; int cflags; size_t currlen; va_list args; VA_COPY(args, args_in); state = DP_S_DEFAULT; cu...
dopr
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/tbench
ida
O0
void dopr_outch(char *buffer, size_t *currlen, size_t maxlen, char c) { if (maxlen > *currlen) buffer[*currlen] = c; ++*currlen; }
static void dopr_outch(char *buffer, size_t *currlen, size_t maxlen, char c) { if (*currlen < maxlen) { buffer[(*currlen)] = c; } (*currlen)++; }
dopr_outch
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/tbench
ida
O0
void finish_op(child_struct *child, op *op) { double t; t = timeval_elapsed(&child->lasttime); ++op->count; op->total_time = op->total_time + t; if (t > op->max_latency) op->max_latency = t; }
static void finish_op(struct child_struct *child, struct op *op) { double t = timeval_elapsed(&child->lasttime); op->count++; op->total_time += t; if (t > op->max_latency) { op->max_latency = t; } }
finish_op
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/tbench
ida
O0
void fmtfp(char *buffer, size_t *currlen, size_t maxlen, double fvalue, int min, int max, int flags) { double v7; int v8; int v9; char flagsa; int maxa; int signvalue; int iplace; int fplace; int padlen; int zpadlen; double intpart; double fracpart; double ufvalue; double temp; ...
static void fmtfp(char *buffer, size_t *currlen, size_t maxlen, LDOUBLE fvalue, int min, int max, int flags) { int signvalue = 0; double ufvalue; char iconvert[311]; char fconvert[311]; int iplace = 0; int fplace = 0; int padlen = 0; int zpadlen = 0; int caps = 0; int index; doub...
fmtfp
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/tbench
ida
O0
void fmtint(char *buffer, size_t *currlen, size_t maxlen, long value, int base, int min, int max, int flags) { const char *v8; int v9; int v10; int v11; int signvalue; int place; int spadlen; int zpadlen; int caps; unsigned long uvalue; char convert[24]; unsigned long v20; v20 = _...
static void fmtint(char *buffer, size_t *currlen, size_t maxlen, long value, int base, int min, int max, int flags) { int signvalue = 0; unsigned long uvalue; char convert[20]; int place = 0; int spadlen = 0; int zpadlen = 0; int caps = 0; if (max < 0) max = 0; uvalue = value;...
fmtint
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/tbench
ida
O0
void fmtstr(char *buffer, size_t *currlen, size_t maxlen, char *value, int flags, int min, int max) { char *v7; const char *valuea; int padlen; int strln; int cnt; valuea = value; cnt = 0; if (!value) valuea = "<NULL>"; for (strln = 0; valuea[strln]; ++strln) ; padlen = min - st...
static void fmtstr(char *buffer, size_t *currlen, size_t maxlen, char *value, int flags, int min, int max) { int padlen, strln; int cnt = 0; #ifdef DEBUG_SNPRINTF printf("fmtstr min=%d max=%d s=[%s]\n", min, max, value); #endif if (value == 0) { value = "<NULL>"; } for (strln = 0; v...
fmtstr
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/tbench
ida
O0
double my_modf(double x0, double *iptr) { int i; double i2; long l; double x; double f; double ret; unsigned long v9; v9 = __readfsqword(0x28u); x = x0; f = 1.0; for (i = 0; i <= 99; ++i) { l = (unsigned int)(int)x; if (x + 1.0 >= (double)(int)x && (double)(int)l >= x - 1.0) break; ...
static double my_modf(double x0, double *iptr) { int i; long l; double x = x0; double f = 1.0; for (i = 0; i < 100; i++) { l = (long)x; if (l <= (x + 1) && l >= (x - 1)) break; x *= 0.1; f *= 10.0; } if (i == 100) { (*iptr) = 0; return 0; } if (i != 0) { double i2...
my_modf
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/tbench
ida
O0
void nb_cleanup(child_struct *child) { ; }
void nb_cleanup(struct child_struct *child) { (void)child; }
nb_cleanup
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/tbench
ida
O0
void nb_close(child_struct *child, int handle, const char *status) { do_packets(child, 47, 39); }
void nb_close(struct child_struct *child, int handle, const char *status) { (void)child; (void)handle; (void)status; do_packets(child, 39 + 8, 39); }
nb_close
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/tbench
ida
O0
void nb_createx(child_struct *child, const char *fname, uint32_t create_options, uint32_t create_disposition, int fnum, const char *status) { int v6; v6 = 2 * (strlen(fname) + 37); do_packets(child, v6, 87); }
void nb_createx(struct child_struct *child, const char *fname, uint32_t create_options, uint32_t create_disposition, int fnum, const char *status) { (void)child; (void)create_options; (void)create_disposition; (void)fnum; (void)status; do_packets(child, 70 + 2 + strlen(fname)...
nb_createx
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/tbench
ida
O0
void nb_deltree(child_struct *child, const char *dname) { ; }
void nb_deltree(struct child_struct *child, const char *dname) { (void)child; (void)dname; }
nb_deltree
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/tbench
ida
O0
void nb_findfirst(child_struct *child, const char *fname, int level, int maxcnt, int count, const char *status) { int v6; int v7; v6 = 90 * count + 39; v7 = 2 * strlen(fname) + 59; do_packets(child, v7, v6); }
void nb_findfirst(struct child_struct *child, const char *fname, int level, int maxcnt, int count, const char *status) { (void)child; (void)level; (void)maxcnt; (void)status; do_packets(child, 39 + 20 + strlen(fname) * 2, 39 + 90 * count); }
nb_findfirst
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/tbench
ida
O0
void nb_flush(child_struct *child, int handle, const char *status) { do_packets(child, 41, 39); }
void nb_flush(struct child_struct *child, int handle, const char *status) { (void)child; (void)handle; (void)status; do_packets(child, 39 + 2, 39); }
nb_flush
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/tbench
ida
O0
void nb_lockx(child_struct *child, int handle, uint32_t offset, int size, const char *status) { do_packets(child, 51, 39); }
void nb_lockx(struct child_struct *child, int handle, uint32_t offset, int size, const char *status) { (void)child; (void)handle; (void)offset; (void)size; (void)status; do_packets(child, 39 + 12, 39); }
nb_lockx
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/tbench
ida
O0
void nb_mkdir(child_struct *child, const char *dname, const char *status) { int v3; v3 = 2 * strlen(dname) + 43; do_packets(child, v3, 39); }
void nb_mkdir(struct child_struct *child, const char *dname, const char *status) { (void)child; (void)status; do_packets(child, 39 + 2 + strlen(dname) * 2 + 2, 39); }
nb_mkdir
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/tbench
ida
O0
void nb_qfileinfo(child_struct *child, int handle, int level, const char *status) { do_packets(child, 59, 71); }
void nb_qfileinfo(struct child_struct *child, int handle, int level, const char *status) { (void)child; (void)level; (void)handle; (void)status; do_packets(child, 39 + 20, 39 + 32); }
nb_qfileinfo
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/tbench
ida
O0
void nb_qfsinfo(child_struct *child, int level, const char *status) { do_packets(child, 59, 71); }
void nb_qfsinfo(struct child_struct *child, int level, const char *status) { (void)child; (void)level; (void)status; do_packets(child, 39 + 20, 39 + 32); }
nb_qfsinfo
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/tbench
ida
O0