input stringlengths 16 454k | output stringlengths 13 350k | function_name stringlengths 1 100 | repo_name stringlengths 6 43 | category stringclasses 76
values | sample_id stringlengths 22 88 | decompiler stringclasses 1
value | opt_level stringclasses 1
value |
|---|---|---|---|---|---|---|---|
void libsais_radix_sort_lms_suffixes_32s_6k(const sa_sint_t *T, sa_sint_t *SA,
sa_sint_t *induction_bucket,
fast_sint_t omp_block_start,
fast_sint_t omp_block_size) {
sa_sint_t *v5;
sa... | static void libsais_radix_sort_lms_suffixes_32s_6k(
const sa_sint_t *RESTRICT T, sa_sint_t *RESTRICT SA,
sa_sint_t *RESTRICT induction_bucket, fast_sint_t omp_block_start,
fast_sint_t omp_block_size) {
const fast_sint_t prefetch_distance = 32;
fast_sint_t i, j;
for (i = omp_block_start + omp_block_si... | libsais_radix_sort_lms_suffixes_32s_6k | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
void libsais_radix_sort_lms_suffixes_32s_6k_omp(
const sa_sint_t *T, sa_sint_t *SA, sa_sint_t n, sa_sint_t m,
sa_sint_t *induction_bucket, sa_sint_t threads,
LIBSAIS_THREAD_STATE *thread_state) {
if (threads == 1 || m <= 0xFFFF)
libsais_radix_sort_lms_suffixes_32s_6k(T, SA, induction_bucket,
... | static void libsais_radix_sort_lms_suffixes_32s_6k_omp(
const sa_sint_t *RESTRICT T, sa_sint_t *RESTRICT SA, sa_sint_t n,
sa_sint_t m, sa_sint_t *RESTRICT induction_bucket, sa_sint_t threads,
LIBSAIS_THREAD_STATE *RESTRICT thread_state) {
if (threads == 1 || m < 65536) {
libsais_radix_sort_lms_suffixe... | libsais_radix_sort_lms_suffixes_32s_6k_omp | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
void libsais_radix_sort_lms_suffixes_8u(const u8 *T, sa_sint_t *SA,
sa_sint_t *induction_bucket,
fast_sint_t omp_block_start,
fast_sint_t omp_block_size) {
sa_sint_t *v5;
sa_sint_t *v6;
sa_sint_... | static void
libsais_radix_sort_lms_suffixes_8u(const u8 *RESTRICT T, sa_sint_t *RESTRICT SA,
sa_sint_t *RESTRICT induction_bucket,
fast_sint_t omp_block_start,
fast_sint_t omp_block_size) {
const fast_sint_t prefe... | libsais_radix_sort_lms_suffixes_8u | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
void libsais_radix_sort_lms_suffixes_8u_omp(
const u8 *T, sa_sint_t *SA, sa_sint_t n, sa_sint_t m, sa_sint_t *buckets,
sa_sint_t threads, LIBSAIS_THREAD_STATE *thread_state) {
libsais_radix_sort_lms_suffixes_8u(T, SA, buckets + 1024, n - (long)m + 1,
m - 1LL);
} | static void libsais_radix_sort_lms_suffixes_8u_omp(
const u8 *RESTRICT T, sa_sint_t *RESTRICT SA, sa_sint_t n, sa_sint_t m,
sa_sint_t *RESTRICT buckets, sa_sint_t threads,
LIBSAIS_THREAD_STATE *RESTRICT thread_state) {
{
(void)(threads);
(void)(thread_state);
fast_sint_t omp_num_threads = 1;
... | libsais_radix_sort_lms_suffixes_8u_omp | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
void libsais_radix_sort_set_markers_32s_4k(sa_sint_t *SA,
sa_sint_t *induction_bucket,
fast_sint_t omp_block_start,
fast_sint_t omp_block_size) {
fast_sint_t i;
for (i = omp_block_start;... | static void libsais_radix_sort_set_markers_32s_4k(
sa_sint_t *RESTRICT SA, sa_sint_t *RESTRICT induction_bucket,
fast_sint_t omp_block_start, fast_sint_t omp_block_size) {
const fast_sint_t prefetch_distance = 32;
fast_sint_t i, j;
for (i = omp_block_start,
j = omp_block_start + omp_block_size - pr... | libsais_radix_sort_set_markers_32s_4k | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
void libsais_radix_sort_set_markers_32s_4k_omp(sa_sint_t *SA, sa_sint_t k,
sa_sint_t *induction_bucket,
sa_sint_t threads) {
libsais_radix_sort_set_markers_32s_4k(SA, induction_bucket, 0, k - 1LL);
} | static void
libsais_radix_sort_set_markers_32s_4k_omp(sa_sint_t *RESTRICT SA, sa_sint_t k,
sa_sint_t *RESTRICT induction_bucket,
sa_sint_t threads) {
{
(void)(threads);
fast_sint_t omp_block_start = 0;
fast_sint_t omp_blo... | libsais_radix_sort_set_markers_32s_4k_omp | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
void libsais_radix_sort_set_markers_32s_6k(sa_sint_t *SA,
sa_sint_t *induction_bucket,
fast_sint_t omp_block_start,
fast_sint_t omp_block_size) {
fast_sint_t i;
for (i = omp_block_start;... | static void libsais_radix_sort_set_markers_32s_6k(
sa_sint_t *RESTRICT SA, sa_sint_t *RESTRICT induction_bucket,
fast_sint_t omp_block_start, fast_sint_t omp_block_size) {
const fast_sint_t prefetch_distance = 32;
fast_sint_t i, j;
for (i = omp_block_start,
j = omp_block_start + omp_block_size - pr... | libsais_radix_sort_set_markers_32s_6k | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
void libsais_radix_sort_set_markers_32s_6k_omp(sa_sint_t *SA, sa_sint_t k,
sa_sint_t *induction_bucket,
sa_sint_t threads) {
libsais_radix_sort_set_markers_32s_6k(SA, induction_bucket, 0, k - 1LL);
} | static void
libsais_radix_sort_set_markers_32s_6k_omp(sa_sint_t *RESTRICT SA, sa_sint_t k,
sa_sint_t *RESTRICT induction_bucket,
sa_sint_t threads) {
{
(void)(threads);
fast_sint_t omp_block_start = 0;
fast_sint_t omp_blo... | libsais_radix_sort_set_markers_32s_6k_omp | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
void libsais_reconstruct_compacted_lms_suffixes_32s_1k_omp(
sa_sint_t *T, sa_sint_t *SA, sa_sint_t n, sa_sint_t m, sa_sint_t fs_0,
sa_sint_t f, sa_sint_t threads, LIBSAIS_THREAD_STATE *thread_state) {
if (f <= 0) {
libsais_gather_lms_suffixes_32s(T, SA, n);
libsais_reconstruct_lms_suffixes_omp(SA, n, ... | static void libsais_reconstruct_compacted_lms_suffixes_32s_1k_omp(
sa_sint_t *RESTRICT T, sa_sint_t *RESTRICT SA, sa_sint_t n, sa_sint_t m,
sa_sint_t fs, sa_sint_t f, sa_sint_t threads,
LIBSAIS_THREAD_STATE *RESTRICT thread_state) {
if (f > 0) {
memmove(&SA[n - m - 1], &SA[n + fs - m], (size_t)f * siz... | libsais_reconstruct_compacted_lms_suffixes_32s_1k_omp | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
void libsais_reconstruct_compacted_lms_suffixes_32s_2k_omp(
sa_sint_t *T, sa_sint_t *SA, sa_sint_t n, sa_sint_t k, sa_sint_t m,
sa_sint_t fs_0, sa_sint_t f, sa_sint_t *buckets, sa_sint_t threads,
LIBSAIS_THREAD_STATE *thread_state) {
if (f <= 0) {
libsais_count_and_gather_lms_suffixes_32s_2k(T, SA, n,... | static void libsais_reconstruct_compacted_lms_suffixes_32s_2k_omp(
sa_sint_t *RESTRICT T, sa_sint_t *RESTRICT SA, sa_sint_t n, sa_sint_t k,
sa_sint_t m, sa_sint_t fs, sa_sint_t f, sa_sint_t *RESTRICT buckets,
sa_sint_t threads, LIBSAIS_THREAD_STATE *RESTRICT thread_state) {
if (f > 0) {
memmove(&SA[n ... | libsais_reconstruct_compacted_lms_suffixes_32s_2k_omp | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
void libsais_reconstruct_lms_suffixes(sa_sint_t *SA, sa_sint_t n, sa_sint_t m,
fast_sint_t omp_block_start,
fast_sint_t omp_block_size) {
fast_sint_t i;
const sa_sint_t *SAnm;
SAnm = &SA[n - m];
for (i = omp_block_start; i < omp_block_... | static void libsais_reconstruct_lms_suffixes(sa_sint_t *RESTRICT SA,
sa_sint_t n, sa_sint_t m,
fast_sint_t omp_block_start,
fast_sint_t omp_block_size) {
const fast_sint_t prefetch_di... | libsais_reconstruct_lms_suffixes | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
void libsais_reconstruct_lms_suffixes_omp(sa_sint_t *SA, sa_sint_t n,
sa_sint_t m, sa_sint_t threads) {
libsais_reconstruct_lms_suffixes(SA, n, m, 0, m);
} | static void libsais_reconstruct_lms_suffixes_omp(sa_sint_t *RESTRICT SA,
sa_sint_t n, sa_sint_t m,
sa_sint_t threads) {
{
(void)(threads);
fast_sint_t omp_block_start = 0;
fast_sint_t omp_block_size = m;
... | libsais_reconstruct_lms_suffixes_omp | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
sa_sint_t libsais_renumber_and_gather_lms_suffixes_8u_omp(
sa_sint_t *SA, sa_sint_t n, sa_sint_t m, sa_sint_t fs_0, sa_sint_t threads,
LIBSAIS_THREAD_STATE *thread_state) {
sa_sint_t name;
fast_sint_t i;
memset(&SA[m], 0, 4 * ((unsigned long)n >> 1));
name = libsais_renumber_lms_suffixes_8u_omp(SA, m, ... | static sa_sint_t libsais_renumber_and_gather_lms_suffixes_8u_omp(
sa_sint_t *RESTRICT SA, sa_sint_t n, sa_sint_t m, sa_sint_t fs,
sa_sint_t threads, LIBSAIS_THREAD_STATE *RESTRICT thread_state) {
memset(&SA[m], 0, ((size_t)n >> 1) * sizeof(sa_sint_t));
sa_sint_t name =
libsais_renumber_lms_suffixes_8... | libsais_renumber_and_gather_lms_suffixes_8u_omp | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
sa_sint_t libsais_renumber_and_mark_distinct_lms_suffixes_32s_1k_omp(
sa_sint_t *T, sa_sint_t *SA, sa_sint_t n, sa_sint_t m, sa_sint_t threads) {
sa_sint_t name;
sa_sint_t namea;
sa_sint_t nameb;
sa_sint_t pdiff;
sa_sint_t qdiff;
sa_sint_t qdiff_0;
fast_sint_t i;
fast_sint_t i_0;
fast_sint_t p;
... | static sa_sint_t libsais_renumber_and_mark_distinct_lms_suffixes_32s_1k_omp(
sa_sint_t *RESTRICT T, sa_sint_t *RESTRICT SA, sa_sint_t n, sa_sint_t m,
sa_sint_t threads) {
const fast_sint_t prefetch_distance = 32;
sa_sint_t *RESTRICT SAm = &SA[m];
{
libsais_gather_lms_suffixes_32s(T, SA, n);
mem... | libsais_renumber_and_mark_distinct_lms_suffixes_32s_1k_omp | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
sa_sint_t libsais_renumber_and_mark_distinct_lms_suffixes_32s_4k_omp(
sa_sint_t *SA, sa_sint_t n, sa_sint_t m, sa_sint_t threads,
LIBSAIS_THREAD_STATE *thread_state) {
sa_sint_t name;
memset(&SA[m], 0, 4 * ((unsigned long)n >> 1));
name = libsais_renumber_distinct_lms_suffixes_32s_4k_omp(SA, m, threads,
... | static sa_sint_t libsais_renumber_and_mark_distinct_lms_suffixes_32s_4k_omp(
sa_sint_t *RESTRICT SA, sa_sint_t n, sa_sint_t m, sa_sint_t threads,
LIBSAIS_THREAD_STATE *RESTRICT thread_state) {
memset(&SA[m], 0, ((size_t)n >> 1) * sizeof(sa_sint_t));
sa_sint_t name = libsais_renumber_distinct_lms_suffixes_3... | libsais_renumber_and_mark_distinct_lms_suffixes_32s_4k_omp | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
sa_sint_t libsais_renumber_distinct_lms_suffixes_32s_4k(
sa_sint_t *SA, sa_sint_t m, sa_sint_t name, fast_sint_t omp_block_start,
fast_sint_t omp_block_size) {
sa_sint_t *v5;
sa_sint_t *v6;
sa_sint_t *v7;
sa_sint_t *v8;
sa_sint_t *v9;
sa_sint_t nameb;
sa_sint_t namec;
sa_sint_t named;
sa_sint_... | static sa_sint_t libsais_renumber_distinct_lms_suffixes_32s_4k(
sa_sint_t *RESTRICT SA, sa_sint_t m, sa_sint_t name,
fast_sint_t omp_block_start, fast_sint_t omp_block_size) {
const fast_sint_t prefetch_distance = 32;
sa_sint_t *RESTRICT SAm = &SA[m];
fast_sint_t i, j;
sa_sint_t p0, p1, p2, p3 = 0;
... | libsais_renumber_distinct_lms_suffixes_32s_4k | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
sa_sint_t libsais_renumber_distinct_lms_suffixes_32s_4k_omp(
sa_sint_t *SA, sa_sint_t m, sa_sint_t threads,
LIBSAIS_THREAD_STATE *thread_state) {
return libsais_renumber_distinct_lms_suffixes_32s_4k(SA, m, 1, 0, m) - 1;
} | static sa_sint_t libsais_renumber_distinct_lms_suffixes_32s_4k_omp(
sa_sint_t *RESTRICT SA, sa_sint_t m, sa_sint_t threads,
LIBSAIS_THREAD_STATE *RESTRICT thread_state) {
sa_sint_t name = 0;
{
(void)(threads);
(void)(thread_state);
fast_sint_t omp_thread_num = 0;
fast_sint_t omp_num_threads... | libsais_renumber_distinct_lms_suffixes_32s_4k_omp | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
sa_sint_t libsais_renumber_lms_suffixes_8u(sa_sint_t *SA, sa_sint_t m,
sa_sint_t name,
fast_sint_t omp_block_start,
fast_sint_t omp_block_size) {
sa_sint_t nameb;
sa_sint_t namec;
sa_si... | static sa_sint_t libsais_renumber_lms_suffixes_8u(sa_sint_t *RESTRICT SA,
sa_sint_t m, sa_sint_t name,
fast_sint_t omp_block_start,
fast_sint_t omp_block_size) {
const ... | libsais_renumber_lms_suffixes_8u | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
sa_sint_t
libsais_renumber_lms_suffixes_8u_omp(sa_sint_t *SA, sa_sint_t m,
sa_sint_t threads,
LIBSAIS_THREAD_STATE *thread_state) {
return libsais_renumber_lms_suffixes_8u(SA, m, 0, 0, m);
} | static sa_sint_t libsais_renumber_lms_suffixes_8u_omp(
sa_sint_t *RESTRICT SA, sa_sint_t m, sa_sint_t threads,
LIBSAIS_THREAD_STATE *RESTRICT thread_state) {
sa_sint_t name = 0;
{
(void)(threads);
(void)(thread_state);
fast_sint_t omp_thread_num = 0;
fast_sint_t omp_num_threads = 1;
fa... | libsais_renumber_lms_suffixes_8u_omp | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
sa_sint_t libsais_renumber_unique_and_nonunique_lms_suffixes_32s(
sa_sint_t *T, sa_sint_t *SA, sa_sint_t m, sa_sint_t f,
fast_sint_t omp_block_start, fast_sint_t omp_block_size) {
const char *v6;
const char *v7;
const char *v8;
const char *v9;
sa_sint_t i;
sa_sint_t s0;
sa_sint_t s1;
sa_sint_t s... | static sa_sint_t libsais_renumber_unique_and_nonunique_lms_suffixes_32s(
sa_sint_t *RESTRICT T, sa_sint_t *RESTRICT SA, sa_sint_t m, sa_sint_t f,
fast_sint_t omp_block_start, fast_sint_t omp_block_size) {
const fast_sint_t prefetch_distance = 32;
sa_sint_t *RESTRICT SAm = &SA[m];
sa_sint_t i, j;
for (... | libsais_renumber_unique_and_nonunique_lms_suffixes_32s | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
sa_sint_t libsais_renumber_unique_and_nonunique_lms_suffixes_32s_omp(
sa_sint_t *T, sa_sint_t *SA, sa_sint_t m, sa_sint_t threads,
LIBSAIS_THREAD_STATE *thread_state) {
return libsais_renumber_unique_and_nonunique_lms_suffixes_32s(T, SA, m, 0, 0,
... | static sa_sint_t libsais_renumber_unique_and_nonunique_lms_suffixes_32s_omp(
sa_sint_t *RESTRICT T, sa_sint_t *RESTRICT SA, sa_sint_t m,
sa_sint_t threads, LIBSAIS_THREAD_STATE *RESTRICT thread_state) {
sa_sint_t f = 0;
{
(void)(threads);
(void)(thread_state);
fast_sint_t omp_thread_num = 0;
... | libsais_renumber_unique_and_nonunique_lms_suffixes_32s_omp | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
s32 libsais_unbwt(const u8 *T, u8 *U, s32 *A, s32 n, const s32 *freq, s32 i) {
s32 ia;
s32 na;
s32 *Aa;
u8 *Ua;
const u8 *Ta;
Ta = T;
Ua = U;
Aa = A;
na = n;
ia = i;
return libsais_unbwt_aux(T, U, A, n, freq, n, &ia);
} | s32 libsais_unbwt(const u8 *T, u8 *U, s32 *A, s32 n, const s32 *freq, s32 i) {
return libsais_unbwt_aux(T, U, A, n, freq, n, &i);
} | libsais_unbwt | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
s32 libsais_unbwt_aux(const u8 *T, u8 *U, s32 *A, s32 n, const s32 *freq, s32 r,
const s32 *I) {
fast_sint_t t;
if (!T || !U || !A || n < 0 || r != n && (r <= 1 || (r & (r - 1)) != 0) || !I)
return -1;
if (n > 1) {
for (t = 0; t <= (n - 1) / r; ++t) {
if (I[t] <= 0 || n < I[t]... | s32 libsais_unbwt_aux(const u8 *T, u8 *U, s32 *A, s32 n, const s32 *freq, s32 r,
const s32 *I) {
if ((T == NULL) || (U == NULL) || (A == NULL) || (n < 0) ||
((r != n) && ((r < 2) || ((r & (r - 1)) != 0))) || (I == NULL)) {
return -1;
} else if (n <= 1) {
if (I[0] != n) {
re... | libsais_unbwt_aux | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
s32 libsais_unbwt_aux_ctx(const void *ctx, const u8 *T, u8 *U, s32 *A, s32 n,
const s32 *freq, s32 r, const s32 *I) {
fast_sint_t t;
if (!T || !U || !A || n < 0 || r != n && (r <= 1 || (r & (r - 1)) != 0) || !I)
return -1;
if (n > 1) {
for (t = 0; t <= (n - 1) / r; ++t) {
... | s32 libsais_unbwt_aux_ctx(const void *ctx, const u8 *T, u8 *U, s32 *A, s32 n,
const s32 *freq, s32 r, const s32 *I) {
if ((T == NULL) || (U == NULL) || (A == NULL) || (n < 0) ||
((r != n) && ((r < 2) || ((r & (r - 1)) != 0))) || (I == NULL)) {
return -1;
} else if (n <= 1) {
... | libsais_unbwt_aux_ctx | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
void libsais_unbwt_calculate_biPSI(const u8 *T, sa_uint_t *P,
sa_uint_t *bucket1, sa_uint_t *bucket2,
fast_uint_t index,
fast_sint_t omp_block_start,
fast_sint_t omp_block_end) {
... | static void libsais_unbwt_calculate_biPSI(
const u8 *RESTRICT T, sa_uint_t *RESTRICT P, sa_uint_t *RESTRICT bucket1,
sa_uint_t *RESTRICT bucket2, fast_uint_t index, fast_sint_t omp_block_start,
fast_sint_t omp_block_end) {
{
fast_sint_t i = omp_block_start, j = (fast_sint_t)index;
if (omp_block_en... | libsais_unbwt_calculate_biPSI | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
void libsais_unbwt_calculate_fastbits(sa_uint_t *bucket2, u16 *fastbits,
fast_uint_t lastc, fast_uint_t shift) {
fast_uint_t v;
fast_uint_t w;
fast_uint_t sum;
fast_uint_t c;
fast_uint_t d;
fast_uint_t prev;
v = 0;
w = 0;
sum = 1;
for (c = 0; c <= 0xFF; ++c) {
... | static void libsais_unbwt_calculate_fastbits(sa_uint_t *RESTRICT bucket2,
u16 *RESTRICT fastbits,
fast_uint_t lastc,
fast_uint_t shift) {
fast_uint_t v, w, sum, c, d;
for (v = 0, w ... | libsais_unbwt_calculate_fastbits | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
void libsais_unbwt_compute_bigram_histogram_single(const u8 *T,
sa_uint_t *bucket1,
sa_uint_t *bucket2,
fast_uint_t index) {
fast_uint_t sum;
fast_uint_t c;
fast... | static void libsais_unbwt_compute_bigram_histogram_single(
const u8 *RESTRICT T, sa_uint_t *RESTRICT bucket1,
sa_uint_t *RESTRICT bucket2, fast_uint_t index) {
fast_uint_t sum, c;
for (sum = 1, c = 0; c < ALPHABET_SIZE; ++c) {
fast_uint_t prev = sum;
sum += bucket1[c];
bucket1[c] = (sa_uint_t)pr... | libsais_unbwt_compute_bigram_histogram_single | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
void libsais_unbwt_compute_histogram(const u8 *T, fast_sint_t n,
sa_uint_t *count) {
const u8 *T_p;
fast_uint_t x;
fast_uint_t xa;
fast_uint_t xb;
fast_uint_t xc;
fast_uint_t xd;
fast_uint_t xe;
fast_uint_t y;
fast_uint_t ya;
fast_uint_t yb;
fast_uint_t yc;
f... | static void libsais_unbwt_compute_histogram(const u8 *RESTRICT T, fast_sint_t n,
sa_uint_t *RESTRICT count) {
const fast_sint_t prefetch_distance = 256;
const u8 *RESTRICT T_p = T;
if (n >= 1024) {
sa_uint_t copy[4 * (ALPHABET_SIZE + 16)];
memset(copy, 0, 4 *... | libsais_unbwt_compute_histogram | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
sa_sint_t libsais_unbwt_core(const u8 *T, u8 *U, sa_uint_t *P, sa_sint_t n,
const sa_sint_t *freq, sa_sint_t r,
const sa_uint_t *I, sa_uint_t *bucket2,
u16 *fastbits, sa_uint_t *buckets,
sa_sint_t threads... | static sa_sint_t
libsais_unbwt_core(const u8 *RESTRICT T, u8 *RESTRICT U, sa_uint_t *RESTRICT P,
sa_sint_t n, const sa_sint_t *freq, sa_sint_t r,
const sa_uint_t *RESTRICT I, sa_uint_t *RESTRICT bucket2,
u16 *RESTRICT fastbits, sa_uint_t *RESTRICT buckets,
... | libsais_unbwt_core | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
void *libsais_unbwt_create_ctx() { return libsais_unbwt_create_ctx_main(1); } | void *libsais_unbwt_create_ctx(void) {
return (void *)libsais_unbwt_create_ctx_main(1);
} | libsais_unbwt_create_ctx | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
LIBSAIS_UNBWT_CONTEXT *libsais_unbwt_create_ctx_main(sa_sint_t threads) {
sa_uint_t *v1;
LIBSAIS_UNBWT_CONTEXT *ctx;
sa_uint_t *bucket2;
u16 *fastbits;
ctx = (LIBSAIS_UNBWT_CONTEXT *)libsais_alloc_aligned(0x20u, 0x40u);
bucket2 = (sa_uint_t *)libsais_alloc_aligned(0x40000u, 0x1000u);
fastbits = (u16 *)li... | static LIBSAIS_UNBWT_CONTEXT *libsais_unbwt_create_ctx_main(sa_sint_t threads) {
LIBSAIS_UNBWT_CONTEXT *RESTRICT ctx =
(LIBSAIS_UNBWT_CONTEXT *)libsais_alloc_aligned(
sizeof(LIBSAIS_UNBWT_CONTEXT), 64);
sa_uint_t *RESTRICT bucket2 = (sa_uint_t *)libsais_alloc_aligned(
ALPHABET_SIZE * ALPHABET_... | libsais_unbwt_create_ctx_main | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
s32 libsais_unbwt_ctx(const void *ctx, const u8 *T, u8 *U, s32 *A, s32 n,
const s32 *freq, s32 i) {
return libsais_unbwt_aux_ctx(ctx, T, U, A, n, freq, n, &i);
} | s32 libsais_unbwt_ctx(const void *ctx, const u8 *T, u8 *U, s32 *A, s32 n,
const s32 *freq, s32 i) {
return libsais_unbwt_aux_ctx(ctx, T, U, A, n, freq, n, &i);
} | libsais_unbwt_ctx | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
void libsais_unbwt_decode_omp(const u8 *T, u8 *U, sa_uint_t *P, sa_sint_t n,
sa_sint_t r, const sa_uint_t *I,
sa_uint_t *bucket2, u16 *fastbits,
sa_sint_t threads) {
u8 lastc;
lastc = *T;
libsais_unbwt_decode(U, P, n, r, I,... | static void libsais_unbwt_decode_omp(const u8 *RESTRICT T, u8 *RESTRICT U,
sa_uint_t *RESTRICT P, sa_sint_t n,
sa_sint_t r, const sa_uint_t *RESTRICT I,
sa_uint_t *RESTRICT bucket2,
... | libsais_unbwt_decode_omp | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
void libsais_unbwt_free_ctx(void *ctx) {
libsais_unbwt_free_ctx_main((LIBSAIS_UNBWT_CONTEXT *)ctx);
} | void libsais_unbwt_free_ctx(void *ctx) {
libsais_unbwt_free_ctx_main((LIBSAIS_UNBWT_CONTEXT *)ctx);
} | libsais_unbwt_free_ctx | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
void libsais_unbwt_free_ctx_main(LIBSAIS_UNBWT_CONTEXT *ctx) {
if (ctx) {
libsais_free_aligned(ctx->buckets);
libsais_free_aligned(ctx->fastbits);
libsais_free_aligned(ctx->bucket2);
libsais_free_aligned(ctx);
}
} | static void libsais_unbwt_free_ctx_main(LIBSAIS_UNBWT_CONTEXT *ctx) {
if (ctx != NULL) {
libsais_free_aligned(ctx->buckets);
libsais_free_aligned(ctx->fastbits);
libsais_free_aligned(ctx->bucket2);
libsais_free_aligned(ctx);
}
} | libsais_unbwt_free_ctx_main | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
void libsais_unbwt_init_single(const u8 *T, sa_uint_t *P, sa_sint_t n,
const sa_sint_t *freq, const sa_uint_t *I,
sa_uint_t *bucket2, u16 *fastbits) {
fast_uint_t shift;
fast_uint_t index;
fast_uint_t lastc;
sa_uint_t bucket1[258];
unsigned long v1... | static void libsais_unbwt_init_single(const u8 *RESTRICT T,
sa_uint_t *RESTRICT P, sa_sint_t n,
const sa_sint_t *freq,
const sa_uint_t *RESTRICT I,
sa_uint_t *RESTRICT ... | libsais_unbwt_init_single | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
sa_sint_t libsais_unbwt_main(const u8 *T, u8 *U, sa_uint_t *P, sa_sint_t n,
const sa_sint_t *freq, sa_sint_t r,
const sa_uint_t *I, sa_sint_t threads) {
sa_uint_t *v8;
sa_sint_t v9;
sa_sint_t index;
char shift;
sa_uint_t *bucket2;
u16 *fastbits;
sa... | static sa_sint_t libsais_unbwt_main(const u8 *T, u8 *U, sa_uint_t *P,
sa_sint_t n, const sa_sint_t *freq,
sa_sint_t r, const sa_uint_t *I,
sa_sint_t threads) {
fast_uint_t shift = 0;
while ((n >> shift) > (1 ... | libsais_unbwt_main | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
sa_sint_t libsais_unbwt_main_ctx(const LIBSAIS_UNBWT_CONTEXT *ctx, const u8 *T,
u8 *U, sa_uint_t *P, sa_sint_t n,
const sa_sint_t *freq, sa_sint_t r,
const sa_uint_t *I) {
if (ctx && ctx->bucket2 && ctx->fastbits &&
... | static sa_sint_t libsais_unbwt_main_ctx(const LIBSAIS_UNBWT_CONTEXT *ctx,
const u8 *T, u8 *U, sa_uint_t *P,
sa_sint_t n, const sa_sint_t *freq,
sa_sint_t r, const sa_uint_t *I) {
return ctx != NULL ... | libsais_unbwt_main_ctx | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
void libsais_unbwt_transpose_bucket2(sa_uint_t *bucket2) {
sa_uint_t tmp00;
sa_uint_t tmp01;
sa_uint_t tmp02;
sa_uint_t tmp03;
sa_uint_t tmp04;
sa_uint_t tmp05;
sa_uint_t tmp06;
sa_uint_t tmp07;
sa_uint_t tmp08;
sa_uint_t tmp09;
sa_uint_t tmp10;
sa_uint_t tmp11;
sa_uint_t tmp12;
sa_uint_t tm... | static void libsais_unbwt_transpose_bucket2(sa_uint_t *RESTRICT bucket2) {
fast_uint_t x, y, c, d;
for (x = 0; x != ALPHABET_SIZE; x += 16) {
for (c = x; c != x + 16; ++c) {
for (d = c + 1; d != x + 16; ++d) {
sa_uint_t tmp = bucket2[(d << 8) + c];
bucket2[(d << 8) + c] = bucket2[(c << 8) ... | libsais_unbwt_transpose_bucket2 | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
s32 lzp_compress(const u8 *in, u8 *out, s32 n, s32 hash, s32 m_len, s32 *lut) {
char hasha;
hasha = hash;
if (n - m_len <= 31)
return -1;
memset(lut, 0, 4LL * (1 << hash));
return lzp_encode_block(in, &in[n], out, &out[n], lut, (1 << hasha) - 1,
m_len);
} | s32 lzp_compress(const u8 *restrict in, u8 *restrict out, s32 n, s32 hash,
s32 m_len, s32 *restrict lut) {
if (n - m_len < 32)
return -1;
memset(lut, 0, sizeof(s32) * (1 << hash));
return lzp_encode_block(in, in + n, out, out + n, lut, (s32)(1 << hash) - 1,
m_len);... | lzp_compress | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
s32 lzp_decode_block(const u8 *in, const u8 *in_end, s32 *lut, u8 *out,
s32 hash, s32 m_len) {
u8 *v7;
u8 *v8;
const u8 *v9;
u8 *v10;
u8 *v11;
u8 *v12;
u8 *v13;
u8 *v14;
char hasha;
const u8 *ina;
s32 i;
u32 ctx;
s32 len;
u32 mask;
s32 val;
const u8 *ref;
u8 *outs;... | static s32 lzp_decode_block(const u8 *restrict in, const u8 *in_end,
s32 *restrict lut, u8 *restrict out, s32 hash,
s32 m_len) {
if (in_end - in < 4)
return -1;
memset(lut, 0, sizeof(s32) * (1 << hash));
u32 mask = (s32)(1 << hash) - 1;
const u8 *out... | lzp_decode_block | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
s32 lzp_decompress(const u8 *in, u8 *out, s32 n, s32 hash, s32 m_len,
s32 *lut) {
return lzp_decode_block(in, &in[n], lut, out, hash, m_len);
} | s32 lzp_decompress(const u8 *restrict in, u8 *restrict out, s32 n, s32 hash,
s32 m_len, s32 *restrict lut) {
return lzp_decode_block(in, in + n, lut, out, hash, m_len);
} | lzp_decompress | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
s32 lzp_encode_block(const u8 *in, const u8 *in_end, u8 *out, u8 *out_end,
s32 *lut, s32 mask, s32 m_len) {
const u8 *v7;
u8 *v8;
u8 *v9;
u8 *v10;
u8 *v11;
const u8 *v12;
u8 *v13;
u8 *v14;
const u8 *v15;
u8 *v16;
const u8 *v17;
u8 *v18;
u8 *v19;
u8 *outa;
u8 *outb;
c... | static s32 lzp_encode_block(const u8 *restrict in, const u8 *in_end,
u8 *restrict out, u8 *out_end, s32 *restrict lut,
s32 mask, s32 m_len) {
const u8 *ins = in, *outs = out;
const u8 *out_eob = out_end - 8;
const u8 *heur = in;
u32 ctx;
for (s32 i = 0... | lzp_encode_block | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
s32 mrlec(u8 *in, s32 inlen, u8 *out) {
u8 *v3;
int v4;
s32 v5;
u8 *v6;
int v7;
s32 v8;
s32 v9;
s32 v10;
s32 v11;
s32 op;
s32 opa;
s32 c;
s32 ca;
s32 pc;
s32 pca;
s32 run;
s32 runa;
s32 i;
s32 j;
u8 *ip_0;
u8 *ip_0a;
u8 *in_end;
s32 t[258];
unsigned long v27;
v27 = __r... | s32 mrlec(u8 *in, s32 inlen, u8 *out) {
u8 *ip = in, *in_end = in + inlen;
s32 op = 0;
s32 c, pc = -1;
s32 t[256] = {0};
s32 run = 0;
while ((c = (ip < in_end ? *ip++ : -1)) != -1) {
if (c == pc)
t[c] += (++run % 255) != 0;
else
--t[c], run = 0;
pc = c;
}
for (s32 i = 0; i < 32; ... | mrlec | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
void mrled(u8 *in, u8 *out, s32 outlen) {
s32 v3;
s32 v4;
s32 v5;
s32 v6;
s32 v7;
s32 op;
s32 ip_0;
s32 run;
s32 runa;
s32 i;
s32 j;
s32 pc;
s32 c;
u8 ca;
s32 t[258];
unsigned long v18;
v18 = __readfsqword(0x28u);
op = 0;
ip_0 = 0;
memset(t, 0, 0x400u);
for (i = 0; i <= 31; ++... | void mrled(u8 *restrict in, u8 *restrict out, s32 outlen) {
s32 op = 0, ip = 0;
s32 c, pc = -1;
s32 t[256] = {0};
s32 run = 0;
for (s32 i = 0; i < 32; ++i) {
c = in[ip++];
for (s32 j = 0; j < 8; ++j)
t[i * 8 + j] = (c >> j) & 1;
}
while (op < outlen) {
c = in[ip++];
if (t[c]) {
... | mrled | bzip3-1.1.4 | app-arch | O0/app-arch/bzip3-1.1.4/libbzip3.so | ida | O0 |
char *AddStrings(const char *str1, const char *str2) {
size_t v2;
size_t len;
char *result;
v2 = strlen(str1);
len = v2 + strlen(str2);
result = (char *)malloc(len + 1);
if (!result)
exit(-1);
strcpy(result, str1);
strcat(result, str2);
return result;
} | static char *AddStrings(const char *str1, const char *str2) {
size_t len = strlen(str1) + strlen(str2);
char *result = (char *)malloc(len + 1);
if (!result)
exit(-1);
strcpy(result, str1);
strcat(result, str2);
return result;
} | AddStrings | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/zopfli | ida | O0 |
void CompressFile(const ZopfliOptions *options, ZopfliFormat output_type,
const char *infilename, const char *outfilename) {
unsigned char *in;
size_t insize;
unsigned char *out;
size_t outsize[2];
outsize[1] = __readfsqword(0x28u);
out = 0;
outsize[0] = 0;
if (LoadFile(infilename, &i... | static void CompressFile(const ZopfliOptions *options, ZopfliFormat output_type,
const char *infilename, const char *outfilename) {
unsigned char *in;
size_t insize;
unsigned char *out = 0;
size_t outsize = 0;
if (!LoadFile(infilename, &in, &insize)) {
fprintf(stderr, "Invalid fil... | CompressFile | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/zopfli | ida | O0 |
int LoadFile(const char *filename, unsigned char **out, size_t *outsize) {
FILE *file;
*out = 0;
*outsize = 0;
file = fopen(filename, "rb");
if (!file)
return 0;
fseek(file, 0, 2);
*outsize = ftell(file);
if (*outsize >= 0x80000000) {
fwrite("Files larger than 2GB are not supported.\n", 1u, 0x2... | static int LoadFile(const char *filename, unsigned char **out,
size_t *outsize) {
FILE *file;
*out = 0;
*outsize = 0;
file = fopen(filename, "rb");
if (!file)
return 0;
fseek(file, 0, SEEK_END);
*outsize = ftell(file);
if (*outsize > 2147483647) {
fprintf(stderr, "Files lar... | LoadFile | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/zopfli | ida | O0 |
void SaveFile(const char *filename, const unsigned char *in, size_t insize) {
FILE *file;
file = fopen(filename, "wb");
if (!file) {
fwrite("Error: Cannot write to output file, terminating.\n", 1u, 0x31u,
stderr);
exit(1);
}
fwrite(in, 1u, insize, file);
fclose(file);
} | static void SaveFile(const char *filename, const unsigned char *in,
size_t insize) {
FILE *file = fopen(filename, "wb");
if (file == NULL) {
fprintf(stderr, "Error: Cannot write to output file, terminating.\n");
exit(EXIT_FAILURE);
}
assert(file);
fwrite((char *)in, 1, insize, fil... | SaveFile | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/zopfli | ida | O0 |
char StringsEqual(const char *str1, const char *str2) {
return strcmp(str1, str2) == 0;
} | static char StringsEqual(const char *str1, const char *str2) {
return strcmp(str1, str2) == 0;
} | StringsEqual | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/zopfli | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
ZopfliFormat output_type;
int output_to_stdout;
int i;
int ia;
const char *filename;
char *outfilename;
const char *arg;
ZopfliOptions options;
unsigned long v12;
v12 = __readfsqword(0x28u);
output_type = ZOPFLI_FORMAT_GZIP;
filename = ... | int main(int argc, char *argv[]) {
ZopfliOptions options;
ZopfliFormat output_type = ZOPFLI_FORMAT_GZIP;
const char *filename = 0;
int output_to_stdout = 0;
int i;
ZopfliInitOptions(&options);
for (i = 1; i < argc; i++) {
const char *arg = argv[i];
if (StringsEqual(arg, "-v"))
options.verb... | main | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/zopfli | ida | O0 |
void __cdecl __noreturn cleanup_and_fail(const int retval) {
const char *v1;
const char *v2;
int saved_verbosity;
`anonymous
namespace'::set_signals((void (*)(int))((char *)&dword_0 + 1)); pthread_mutex_lock(
&cleanup_and_fail(int)::mutex);
saved_verbosity = verbosity;
verbosity = -1;
if ... | void cleanup_and_fail(const int retval) {
static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
set_signals(SIG_IGN);
pthread_mutex_lock(&mutex);
const int saved_verbosity = verbosity;
verbosity = -1;
if (delete_output_on_interrupt) {
delete_output_on_interrupt = false;
if (saved_verbosity >= ... | cleanup_and_fail | plzip-1.10 | app-arch | O0/app-arch/plzip-1.10/plzip | ida | O0 |
int __cdecl compress(
const unsigned __int64 cfile_size,
const int data_size,
const int dictionary_size,
const int match_len_limit,
const int num_workers,
const int infd,
const int outfd,
const Pretty_print *pp,
const int debug_level)
{
int v9;... | int compress(const unsigned long long cfile_size, const int data_size,
const int dictionary_size, const int match_len_limit,
const int num_workers, const int infd, const int outfd,
const Pretty_print &pp, const int debug_level) {
const int offset = data_size / 8;
const int slo... | compress | plzip-1.10 | app-arch | O0/app-arch/plzip-1.10/plzip | ida | O0 |
int __cdecl decompress(
const unsigned __int64 cfile_size, int num_workers, const int infd,
const int outfd, const Pretty_print *pp, const int debug_level,
const int in_slots, const int out_slots, const bool ignore_trailing,
const bool loose_trailing, const bool infd_isreg,
const... | int decompress(const unsigned long long cfile_size, int num_workers,
const int infd, const int outfd, const Pretty_print &pp,
const int debug_level, const int in_slots, const int out_slots,
const bool ignore_trailing, const bool loose_trailing,
const bool infd... | decompress | plzip-1.10 | app-arch | O0/app-arch/plzip-1.10/plzip | ida | O0 |
void __cdecl decompress_error(
LZ_Decoder *const decoder, const Pretty_print *pp,
Shared_retval *shared_retval, const int worker_id) {
int v4;
const char *v5;
LZ_Errno errcode;
errcode = (unsigned int)LZ_decompress_errno(decoder);
if (errcode ==... | void decompress_error(struct LZ_Decoder *const decoder, const Pretty_print &pp,
Shared_retval &shared_retval, const int worker_id) {
const LZ_Errno errcode = LZ_decompress_errno(decoder);
const int retval = (errcode == LZ_header_error || errcode == LZ_data_error ||
errcod... | decompress_error | plzip-1.10 | app-arch | O0/app-arch/plzip-1.10/plzip | ida | O0 |
const char *__cdecl format_ds(const unsigned int dictionary_size) {
bool exact;
unsigned int num;
int i;
const char *p;
const char *np;
const char *prefix[8];
unsigned __int64 v8;
v8 = __readfsqword(0x28u);
prefix[0] = "Ki";
... | const char *format_ds(const unsigned dictionary_size) {
enum { bufsize = 16, factor = 1024 };
static char buf[bufsize];
const char *const prefix[8] = {"Ki", "Mi", "Gi", "Ti",
"Pi", "Ei", "Zi", "Yi"};
const char *p = "";
const char *np = " ";
unsigned num = dictionary_size;
... | format_ds | plzip-1.10 | app-arch | O0/app-arch/plzip-1.10/plzip | ida | O0 |
void internal_error(const char *const msg) {
if (verbosity >= 0)
fprintf(stderr, "%s: internal error: %s\n", "plzip", msg);
exit(3);
} | void internal_error(const char *const msg) {
if (verbosity >= 0)
std::fprintf(stderr, "%s: internal error: %s\n", program_name, msg);
std::exit(3);
} | internal_error | plzip-1.10 | app-arch | O0/app-arch/plzip-1.10/plzip | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
int v3;
const std_string *v4;
const std_string *v5;
const char *v6;
int v7;
const std_string *v8;
unsigned long v9;
int v10;
unsigned long matched;
int v12;
... | int main(const int argc, const char *const argv[]) {
const Lzma_options option_mapping[] = {
{65535, 16}, {1 << 20, 5}, {3 << 19, 6}, {1 << 21, 8},
{3 << 20, 12}, {1 << 22, 20}, {1 << 23, 36}, {1 << 24, 68},
{3 << 23, 132}, {1 << 25, 273}};
Lzma_options encoder_options = option_mapping[6];
... | main | plzip-1.10 | app-arch | O0/app-arch/plzip-1.10/plzip | ida | O0 |
int open_instream(const char *const name, stat *const in_statsp, const bool one_to_one, const bool reg_only)
{
int v4;
bool v5;
const char *v6;
int infd;
int i;
infd = open64(name, 0);
if (infd >= 0) {
i = fstat64(infd, ... | int open_instream(const char *const name, struct stat *const in_statsp,
const bool one_to_one, const bool reg_only) {
int infd = open(name, O_RDONLY | O_BINARY);
if (infd < 0)
show_file_error(name, "Can't open input file", errno);
else {
const int i = fstat(infd, in_statsp);
const mo... | open_instream | plzip-1.10 | app-arch | O0/app-arch/plzip-1.10/plzip | ida | O0 |
bool __cdecl Arg_parser::parse_long_option(
Arg_parser *const this,
const char *const opt,
const char *const arg,
const Arg_parser::Option *options,
int *argind)
{
std::vector<Arg_parser::Record>::reference v6;
std::string *p_argument;
bool exa... | bool Arg_parser::parse_long_option(const char *const opt, const char *const arg,
const Option options[], int &argind) {
unsigned len;
int index = -1;
bool exact = false, ambig = false;
for (len = 0; opt[len + 2] && opt[len + 2] != '='; ++len)
;
for (int i = 0; options[... | parse_long_option | plzip-1.10 | app-arch | O0/app-arch/plzip-1.10/plzip | ida | O0 |
bool __cdecl Arg_parser::parse_short_option(
Arg_parser *const this,
const char *const opt,
const char *const arg,
const Arg_parser::Option *options,
int *argind)
{
std::vector<Arg_parser::Record>::reference v6;
std::string *p_argument;
char c;... | bool Arg_parser::parse_short_option(const char *const opt,
const char *const arg,
const Option options[], int &argind) {
int cind = 1;
while (cind > 0) {
int index = -1;
const unsigned char c = opt[cind];
if (c != 0)
for (in... | parse_short_option | plzip-1.10 | app-arch | O0/app-arch/plzip-1.10/plzip | ida | O0 |
int __cdecl preadblock(const int fd, uint8_t *const buf, const int size, const __int64 pos)
{
int sz;
int n;
sz = 0;
*__errno_location() = 0;
while (sz < size) {
n = pread64(fd, &buf[sz], size - sz, sz + pos);
if (n <= 0) {
... | int preadblock(const int fd, uint8_t *const buf, const int size,
const long long pos) {
int sz = 0;
errno = 0;
while (sz < size) {
const int n = pread(fd, buf + sz, size - sz, pos + sz);
if (n > 0)
sz += n;
else if (n == 0)
break;
else if (errno != EINTR)
break;
... | preadblock | plzip-1.10 | app-arch | O0/app-arch/plzip-1.10/plzip | ida | O0 |
int __cdecl pwriteblock(const int fd, const uint8_t *const buf, const int size, const __int64 pos)
{
int sz;
int n;
sz = 0;
*__errno_location() = 0;
while (sz < size) {
n = pwrite64(fd, &buf[sz], size - sz, sz + pos);
if (n <= 0) {... | int pwriteblock(const int fd, const uint8_t *const buf, const int size,
const long long pos) {
int sz = 0;
errno = 0;
while (sz < size) {
const int n = pwrite(fd, buf + sz, size - sz, pos + sz);
if (n > 0)
sz += n;
else if (n < 0 && errno != EINTR)
break;
errno = 0;
}... | pwriteblock | plzip-1.10 | app-arch | O0/app-arch/plzip-1.10/plzip | ida | O0 |
int __cdecl readblock(const int fd, uint8_t *const buf, const int size)
{
int sz;
int n;
sz = 0;
*__errno_location() = 0;
while (sz < size) {
n = read(fd, &buf[sz], size - sz);
if (n <= 0) {
if (!n || *__errno_locat... | int readblock(const int fd, uint8_t *const buf, const int size) {
int sz = 0;
errno = 0;
while (sz < size) {
const int n = read(fd, buf + sz, size - sz);
if (n > 0)
sz += n;
else if (n == 0)
break;
else if (errno != EINTR)
break;
errno = 0;
}
return sz;
} | readblock | plzip-1.10 | app-arch | O0/app-arch/plzip-1.10/plzip | ida | O0 |
void show_file_error(const char *const filename, const char *const msg, const int errcode)
{
char *v3;
const char *v4;
if (verbosity >= 0) {
if (errcode <= 0)
v3 = (char *)&unk_1D4D9;
else
v3 = strerror(errcode);
... | void show_file_error(const char *const filename, const char *const msg,
const int errcode) {
if (verbosity >= 0)
std::fprintf(stderr, "%s: %s: %s%s%s\n", program_name, filename, msg,
(errcode > 0) ? ": " : "",
(errcode > 0) ? std::strerror(errcode) : "");
} | show_file_error | plzip-1.10 | app-arch | O0/app-arch/plzip-1.10/plzip | ida | O0 |
void __cdecl show_header(const unsigned int dictionary_size)
{
const char *v1;
v1 = format_ds(dictionary_size);
fprintf(stderr, "dict %s, ", v1);
} | void show_header(const unsigned dictionary_size) {
std::fprintf(stderr, "dict %s, ", format_ds(dictionary_size));
} | show_header | plzip-1.10 | app-arch | O0/app-arch/plzip-1.10/plzip | ida | O0 |
void show_progress(
const unsigned long packet_size,
const unsigned long cfile_size,
const Pretty_print *const p)
{
double v4;
double v5;
if (show_progress(unsigned long long, unsigned long long,
Pretty_print const *) _enabled) ... | void show_progress(const unsigned long long packet_size,
const unsigned long long cfile_size,
const Pretty_print *const p) {
static unsigned long long csize = 0;
static unsigned long long pos = 0;
static const Pretty_print *pp = 0;
static pthread_mutex_t mutex = PTHREAD_MUT... | show_progress | plzip-1.10 | app-arch | O0/app-arch/plzip-1.10/plzip | ida | O0 |
void __cdecl show_results(
const unsigned __int64 in_size,
const unsigned __int64 out_size,
const unsigned int dictionary_size,
const bool testing)
{
double v4;
double v5;
double v6;
double v7;
double v8;
double v9;
... | void show_results(const unsigned long long in_size,
const unsigned long long out_size,
const unsigned dictionary_size, const bool testing) {
if (verbosity >= 2) {
if (verbosity >= 4)
show_header(dictionary_size);
if (out_size == 0 || in_size == 0)
std::fputs("no... | show_results | plzip-1.10 | app-arch | O0/app-arch/plzip-1.10/plzip | ida | O0 |
int __cdecl writeblock(const int fd, const uint8_t *const buf, const int size)
{
int sz;
int n;
sz = 0;
*__errno_location() = 0;
while (sz < size) {
n = write(fd, &buf[sz], size - sz);
if (n <= 0) {
if (n < 0 && *__... | int writeblock(const int fd, const uint8_t *const buf, const int size) {
int sz = 0;
errno = 0;
while (sz < size) {
const int n = write(fd, buf + sz, size - sz);
if (n > 0)
sz += n;
else if (n < 0 && errno != EINTR)
break;
errno = 0;
}
return sz;
} | writeblock | plzip-1.10 | app-arch | O0/app-arch/plzip-1.10/plzip | ida | O0 |
void __cdecl xbroadcast(pthread_cond_t *const cond)
{
int errcode;
errcode = pthread_cond_broadcast(cond);
if (errcode) {
show_error("pthread_cond_broadcast", errcode, 0);
cleanup_and_fail(1);
}
} | void xbroadcast(pthread_cond_t *const cond) {
const int errcode = pthread_cond_broadcast(cond);
if (errcode) {
show_error("pthread_cond_broadcast", errcode);
cleanup_and_fail();
}
} | xbroadcast | plzip-1.10 | app-arch | O0/app-arch/plzip-1.10/plzip | ida | O0 |
void __cdecl xdestroy_cond(pthread_cond_t *const cond)
{
int errcode;
errcode = pthread_cond_destroy(cond);
if (errcode) {
show_error("pthread_cond_destroy", errcode, 0);
cleanup_and_fail(1);
}
} | void xdestroy_cond(pthread_cond_t *const cond) {
const int errcode = pthread_cond_destroy(cond);
if (errcode) {
show_error("pthread_cond_destroy", errcode);
cleanup_and_fail();
}
} | xdestroy_cond | plzip-1.10 | app-arch | O0/app-arch/plzip-1.10/plzip | ida | O0 |
void __cdecl xdestroy_mutex(pthread_mutex_t *const mutex)
{
int errcode;
errcode = pthread_mutex_destroy(mutex);
if (errcode) {
show_error("pthread_mutex_destroy", errcode, 0);
cleanup_and_fail(1);
}
} | void xdestroy_mutex(pthread_mutex_t *const mutex) {
const int errcode = pthread_mutex_destroy(mutex);
if (errcode) {
show_error("pthread_mutex_destroy", errcode);
cleanup_and_fail();
}
} | xdestroy_mutex | plzip-1.10 | app-arch | O0/app-arch/plzip-1.10/plzip | ida | O0 |
void __cdecl xinit_cond(pthread_cond_t *const cond)
{
int errcode;
errcode = pthread_cond_init(cond, 0);
if (errcode) {
show_error("pthread_cond_init", errcode, 0);
cleanup_and_fail(1);
}
} | void xinit_cond(pthread_cond_t *const cond) {
const int errcode = pthread_cond_init(cond, 0);
if (errcode) {
show_error("pthread_cond_init", errcode);
cleanup_and_fail();
}
} | xinit_cond | plzip-1.10 | app-arch | O0/app-arch/plzip-1.10/plzip | ida | O0 |
void __cdecl xinit_mutex(pthread_mutex_t *const mutex)
{
int errcode;
errcode = pthread_mutex_init(mutex, 0);
if (errcode) {
show_error("pthread_mutex_init", errcode, 0);
cleanup_and_fail(1);
}
} | void xinit_mutex(pthread_mutex_t *const mutex) {
const int errcode = pthread_mutex_init(mutex, 0);
if (errcode) {
show_error("pthread_mutex_init", errcode);
cleanup_and_fail();
}
} | xinit_mutex | plzip-1.10 | app-arch | O0/app-arch/plzip-1.10/plzip | ida | O0 |
void __cdecl xlock(pthread_mutex_t *const mutex)
{
int errcode;
errcode = pthread_mutex_lock(mutex);
if (errcode) {
show_error("pthread_mutex_lock", errcode, 0);
cleanup_and_fail(1);
}
} | void xlock(pthread_mutex_t *const mutex) {
const int errcode = pthread_mutex_lock(mutex);
if (errcode) {
show_error("pthread_mutex_lock", errcode);
cleanup_and_fail();
}
} | xlock | plzip-1.10 | app-arch | O0/app-arch/plzip-1.10/plzip | ida | O0 |
void __cdecl xsignal(pthread_cond_t *const cond)
{
int errcode;
errcode = pthread_cond_signal(cond);
if (errcode) {
show_error("pthread_cond_signal", errcode, 0);
cleanup_and_fail(1);
}
} | void xsignal(pthread_cond_t *const cond) {
const int errcode = pthread_cond_signal(cond);
if (errcode) {
show_error("pthread_cond_signal", errcode);
cleanup_and_fail();
}
} | xsignal | plzip-1.10 | app-arch | O0/app-arch/plzip-1.10/plzip | ida | O0 |
void __cdecl xunlock(pthread_mutex_t *const mutex)
{
int errcode;
errcode = pthread_mutex_unlock(mutex);
if (errcode) {
show_error("pthread_mutex_unlock", errcode, 0);
cleanup_and_fail(1);
}
} | void xunlock(pthread_mutex_t *const mutex) {
const int errcode = pthread_mutex_unlock(mutex);
if (errcode) {
show_error("pthread_mutex_unlock", errcode);
cleanup_and_fail();
}
} | xunlock | plzip-1.10 | app-arch | O0/app-arch/plzip-1.10/plzip | ida | O0 |
void __cdecl xwait(pthread_cond_t *const cond, pthread_mutex_t *const mutex)
{
int errcode;
errcode = pthread_cond_wait(cond, mutex);
if (errcode) {
show_error("pthread_cond_wait", errcode, 0);
cleanup_and_fail(1);
}
} | void xwait(pthread_cond_t *const cond, pthread_mutex_t *const mutex) {
const int errcode = pthread_cond_wait(cond, mutex);
if (errcode) {
show_error("pthread_cond_wait", errcode);
cleanup_and_fail();
}
} | xwait | plzip-1.10 | app-arch | O0/app-arch/plzip-1.10/plzip | ida | O0 |
void copy_file_encoded(FILE *input, FILE *output) {
int counter;
int number_of_bytes;
char buffer[56];
unsigned long v5;
v5 = __readfsqword(0x28u);
do {
number_of_bytes = read_raw_bytes(input, buffer, 45);
putc_unlocked((((_BYTE)number_of_bytes + 63) & 0x3F) + 33, output);
for (counter = 0; cou... | void copy_file_encoded(input, output) FILE *input;
FILE *output;
{
char buffer[LINE_BUFFER_SIZE];
int counter;
int number_of_bytes;
while (1) {
number_of_bytes = read_raw_bytes(input, buffer, LINE_BUFFER_SIZE);
putc(ENCODE_BYTE(number_of_bytes), output);
for (counter = 0; counter < number_of_bytes... | copy_file_encoded | sharutils-4.15.2-r2 | app-arch | O0/app-arch/sharutils-4.15.2-r2/unshar | ida | O0 |
bool find_archive(const char *name, FILE *file, off_t start) {
char *v3;
char *v5;
__off_t position;
rpl_fseeko(file, start, 0);
while (1) {
position = ftello(file);
if (!fgets_unlocked(rw_buffer, rw_base_size, file))
break;
if (looks_like_c_code(rw_buffer)) {
v5 = aoGetsText("%s look... | static bool find_archive(char const *name, FILE *file, off_t start) {
fseeko(file, start, SEEK_SET);
while (1) {
off_t position = ftello(file);
if (!fgets(rw_buffer, BUFSIZ, file)) {
if (!start)
error(0, 0, _("Found no shell commands in %s"), name);
return false;
}
if (looks_... | find_archive | sharutils-4.15.2-r2 | app-arch | O0/app-arch/sharutils-4.15.2-r2/unshar | ida | O0 |
void init_unshar() {
char *v0;
setlocale(6, &locale);
bindtextdomain("sharutils", "/usr/share/locale");
textdomain("sharutils");
rw_base_size = sysconf(30);
rw_buffer = (char *)malloc(rw_base_size);
if (!rw_buffer) {
v0 = aoGetsText("read/write buffer");
fserr(5, "malloc", v0);
}
} | void init_unshar(void) {
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
#ifdef __MSDOS__
setbuf(stdout, NULL);
setbuf(stderr, NULL);
#endif
rw_base_size = GET_PAGE_SIZE;
rw_buffer = malloc(rw_base_size);
if (rw_buffer == NULL)
fserr(UNSHAR_EXIT_NOMEM, "malloc", _("r... | init_unshar | sharutils-4.15.2-r2 | app-arch | O0/app-arch/sharutils-4.15.2-r2/unshar | ida | O0 |
FILE *load_file(const char **tmp_fname, FILE *infp) {
char *v2;
int fd;
const char *pz_tmp;
size_t name_size;
char *pz_fname;
FILE *outfp;
size_t size_read;
pz_tmp = get_env_tmpdir();
name_size = strlen(pz_tmp) + 13;
pz_fname = (char *)malloc(name_size);
*tmp_fname = pz_fname;
if (!pz_fname) {
... | static FILE *load_file(char const **tmp_fname, FILE *infp) {
static char const z_tmpfile[] = "unsh.XXXXXX";
char *pz_fname;
FILE *outfp;
{
size_t name_size;
char const *pz_tmp = get_env_tmpdir();
name_size = strlen(pz_tmp) + sizeof(z_tmpfile) + 1;
*tmp_fname = pz_fname = malloc(name_size);
... | load_file | sharutils-4.15.2-r2 | app-arch | O0/app-arch/sharutils-4.15.2-r2/unshar | ida | O0 |
bool looks_like_c_code(const char *buf) {
const unsigned short *v1;
const char *v2;
int v3;
int v4;
const char *bufb;
int ix;
const char *dir;
size_t ln;
while (1) {
v1 = *__ctype_b_loc();
if ((v1[to_uchar(*buf)] & 0x2000) == 0)
break;
++buf;
}
v2 = buf;
bufb = buf + 1;
v3 =... | static bool looks_like_c_code(char const *buf) {
static char const *const directives[] = {
"include", "define", "ifdef", "ifndef", "if", "pragma",
"undef", "elif", "error", "line", NULL};
while (isspace(to_uchar(*buf)))
buf++;
switch (*(buf++)) {
case '#': {
int ix = 0;
while (iss... | looks_like_c_code | sharutils-4.15.2-r2 | app-arch | O0/app-arch/sharutils-4.15.2-r2/unshar | ida | O0 |
bool looks_like_shell_code(const char *buf) {
int v1;
int v3;
int ix;
const char *cmd;
size_t ln;
while (((*__ctype_b_loc())[*buf] & 0x2000) != 0)
++buf;
v1 = *buf;
if (v1 == 35 || v1 == 58)
return 1;
if (((*__ctype_b_loc())[*buf] & 0x200) == 0)
return 0;
ix = 0;
do {
v3 = ix++;
... | static bool looks_like_shell_code(char const *buf) {
while (isspace((int)*buf))
buf++;
switch (*buf) {
case '#':
case ':':
return true;
default:
if (islower((int)*buf))
break;
return false;
}
{
static char const *const cmn_cmds[] = {"echo", "sed", "cat", "if", NULL};
int ix... | looks_like_shell_code | sharutils-4.15.2-r2 | app-arch | O0/app-arch/sharutils-4.15.2-r2/unshar | ida | O0 |
bool next_line_is_valid(const char *name, FILE *file) {
char *v2;
char *v4;
char *v5;
char *v6;
char *buf;
__off_t position;
do {
position = ftello(file);
buf = fgets_unlocked(rw_buffer, rw_base_size, file);
if (!buf) {
v2 = aoGetsText("Found no shell commands after cut line in %s");
... | static bool next_line_is_valid(char const *name, FILE *file) {
off_t position;
for (;;) {
char *buf;
position = ftello(file);
buf = fgets(rw_buffer, rw_base_size, file);
if (buf == NULL) {
error(0, 0, _("Found no shell commands after cut line in %s"), name);
return false;
}
whi... | next_line_is_valid | sharutils-4.15.2-r2 | app-arch | O0/app-arch/sharutils-4.15.2-r2/unshar | ida | O0 |
int read_raw_bytes(FILE *file, char *buffer, int buffer_size) {
int counter;
int character;
for (counter = 0; counter < buffer_size; ++counter) {
character = getc_unlocked(file);
if (character == -1)
return counter;
buffer[counter] = character;
}
return buffer_size;
} | static int read_raw_bytes(file, buffer, buffer_size)
FILE *file;
char *buffer;
int buffer_size;
{
int character;
int counter;
for (counter = 0; counter < buffer_size; counter++) {
character = getc(file);
if (character == EOF)
return counter;
buffer[counter] = character;
}
return buffer_size... | read_raw_bytes | sharutils-4.15.2-r2 | app-arch | O0/app-arch/sharutils-4.15.2-r2/unshar | ida | O0 |
bool this_is_cut_line(const char *buf) {
const char *bufa;
int ix;
const char *kw;
char *fnd;
ix = 0;
while (1) {
kw = kwds_2[ix];
fnd = strstr(buf, kw);
if (fnd)
break;
if (++ix > 3)
return 0;
}
bufa = &fnd[strlen(kw)];
return strstr(bufa, kwds_2[ix]) || strstr(bufa, here... | static bool this_is_cut_line(char const *buf) {
static char const *const kwds[] = {"cut", "CUT", "tear", "TEAR"};
static char const *const here_here[] = {"here", "HERE"};
int ix = 0;
for (;;) {
char const *kw = kwds[ix];
char const *fnd = strstr(buf, kw);
if (fnd != NULL) {
buf = fnd + strlen... | this_is_cut_line | sharutils-4.15.2-r2 | app-arch | O0/app-arch/sharutils-4.15.2-r2/unshar | ida | O0 |
int unshar_file(const char *name, FILE *file) {
const char *v2;
FILE *filea;
const char *tmp_fname;
off_t curr_pos;
const char *cmd;
FILE *shell_fp;
char *text_in;
size_t len;
unsigned long v11;
filea = file;
v11 = __readfsqword(0x28u);
tmp_fname = 0;
curr_pos = ftello(file);
if (curr_pos <... | int unshar_file(const char *name, FILE *file) {
char const *tmp_fname = NULL;
off_t curr_pos;
#ifdef __MINGW32__
_setmode(fileno(file), _O_BINARY);
#endif
curr_pos = ftello(file);
if (curr_pos < 0) {
file = load_file(&tmp_fname, file);
curr_pos = ftello(file);
if (curr_pos < 0)
fserr(UNSHA... | unshar_file | sharutils-4.15.2-r2 | app-arch | O0/app-arch/sharutils-4.15.2-r2/unshar | ida | O0 |
void write_encoded_bytes(char *group, FILE *file) {
char c2;
char c3;
char c4;
c2 = (16 * *group) & 0x30 | (group[1] >> 4) & 0xF;
c3 = (4 * group[1]) & 0x3C | (group[2] >> 6) & 3;
c4 = group[2] & 0x3F;
putc_unlocked((((*group >> 2) + 63) & 0x3F) + 33, file);
putc_unlocked(((c2 + 63) & 0x3F) + 33, file)... | static void write_encoded_bytes(group, file) char *group;
FILE *file;
{
int c1, c2, c3, c4;
c1 = group[0] >> 2;
c2 = ((group[0] << 4) & (3 << 4)) | ((group[1] >> 4) & 15);
c3 = ((group[1] << 2) & (15 << 2)) | ((group[2] >> 6) & 3);
c4 = group[2] & 63;
putc(ENCODE_BYTE(c1), file);
putc(ENCODE_BYTE(c2), fi... | write_encoded_bytes | sharutils-4.15.2-r2 | app-arch | O0/app-arch/sharutils-4.15.2-r2/unshar | ida | O0 |
void banner() {
fwrite("Parallel BZIP2 v1.1.13 [Dec 18, 2015]\n", 1u, 0x26u, stderr);
fwrite("By: Jeff Gilchrist [http://compression.ca]\n", 1u, 0x2Bu, stderr);
fwrite("Major contributions: Yavor Nikolov "
"[http://javornikolov.wordpress.com]\n",
1u, 0x47u, stderr);
fwrite("Uses libbzip2 by Ju... | void banner() {
fprintf(stderr, "Parallel BZIP2 v1.1.13 [Dec 18, 2015]\n");
fprintf(stderr, "By: Jeff Gilchrist [http://compression.ca]\n");
fprintf(stderr, "Major contributions: Yavor Nikolov "
"[http://javornikolov.wordpress.com]\n");
fprintf(stderr, "Uses libbzip2 by Julian Seward\n");
r... | banner | pbzip2-1.1.13 | app-arch | O0/app-arch/pbzip2-1.1.13/pbzip2 | ida | O0 |
ssize_t bufread(int hf, char *buf, size_t bsize) {
int rsize;
int ret;
ssize_t bufr;
bufr = 0;
rsize = bsize;
while (1) {
ret = read(hf, buf, rsize);
if (ret < 0)
return ret;
if (!ret)
return bufr;
bufr += ret;
if (bufr == bsize)
break;
rsize -= ret;
buf += ret... | ssize_t bufread(int hf, char *buf, size_t bsize) {
size_t bufr = 0;
int ret;
int rsize = bsize;
while (1) {
ret = read(hf, buf, rsize);
if (ret < 0)
return ret;
if (ret == 0)
return bufr;
bufr += ret;
if (bufr == bsize)
return bsize;
rsize -= ret;
buf += ret;
}... | bufread | pbzip2-1.1.13 | app-arch | O0/app-arch/pbzip2-1.1.13/pbzip2 | ida | O0 |
bool check_file_exists(const char *filename) {
pbzip2_ErrorContext *Instance;
int hOutfile;
hOutfile = open64(filename, 0);
if (hOutfile == -1) {
Instance = pbzip2_ErrorContext_getInstance();
pbzip2_ErrorContext_saveError(Instance);
return 0;
} else {
close(hOutfile);
return 1;
}
} | bool check_file_exists(const char *filename) {
int hOutfile = open(filename, O_RDONLY | O_BINARY);
if (hOutfile == -1) {
ErrorContext::getInstance()->saveError();
return false;
} else {
close(hOutfile);
return true;
}
} | check_file_exists | pbzip2-1.1.13 | app-arch | O0/app-arch/pbzip2-1.1.13/pbzip2 | ida | O0 |
void cleanupAndQuit(int exitCode) {
if (pthread_mutex_lock(&ErrorHandlerMutex))
fwrite("Cleanup Handler: Failed to lock ErrorHandlerMutex! May double "
"cleanup...\n",
1u, 0x49u, stderr);
cleanupUnfinishedWork();
pthread_mutex_unlock(&ErrorHandlerMutex);
exit(exitCode);
} | void cleanupAndQuit(int exitCode) {
int ret = pthread_mutex_lock(&ErrorHandlerMutex);
if (ret != 0) {
fprintf(stderr, "Cleanup Handler: Failed to lock ErrorHandlerMutex! May "
"double cleanup...\n");
}
cleanupUnfinishedWork();
pthread_mutex_unlock(&ErrorHandlerMutex);
exit(exitCode... | cleanupAndQuit | pbzip2-1.1.13 | app-arch | O0/app-arch/pbzip2-1.1.13/pbzip2 | ida | O0 |
void cleanupUnfinishedWork() {
int *v0;
stat statBuf;
unsigned long v2;
v2 = __readfsqword(0x28u);
if (!unfinishedWorkCleaned) {
if (sigInFilename && sigOutFilename && OutputStdOut != 1) {
if (QuietMode != 1)
fprintf(stderr, "Cleanup unfinished work [Outfile: %s]...\n",
sigO... | void cleanupUnfinishedWork() {
if (unfinishedWorkCleaned != 0) {
return;
}
struct stat statBuf;
int ret = 0;
#ifdef PBZIP_DEBUG
fprintf(stderr, " Infile: %s Outfile: %s\n", sigInFilename, sigOutFilename);
#endif
if ((sigInFilename == NULL) || (sigOutFilename == NULL) ||
(OutputStdOut == 1)) {... | cleanupUnfinishedWork | pbzip2-1.1.13 | app-arch | O0/app-arch/pbzip2-1.1.13/pbzip2 | ida | O0 |
void close_streams(FILE *out, FILE *in) {
if (out)
fflush(out);
if (in && in != stdin)
fclose(in);
if (out) {
if (out != stdout)
fclose(out);
}
} | void close_streams(FILE *out, FILE *in) {
if (out != NULL) {
fflush(out);
}
if (in != NULL && in != stdin) {
fclose(in);
}
if (out != NULL && out != stdout) {
fclose(out);
}
} | close_streams | pbzip2-1.1.13 | app-arch | O0/app-arch/pbzip2-1.1.13/pbzip2 | ida | O0 |
void *consumer(void *q) {
unsigned int outSize;
int ret;
outBuff *fileData;
char *CompressedData;
queue_0 *fifo;
outBuff outBlock;
unsigned long v10;
v10 = __readfsqword(0x28u);
fileData = 0;
CompressedData = 0;
outSize = 0;
ret = -1;
fifo = (queue_0 *)q;
while (1) {
if (syncGetTerminat... | void *consumer(void *q) {
queue *fifo;
outBuff *fileData = NULL;
char *CompressedData = NULL;
unsigned int outSize = 0;
int ret = -1;
fifo = (queue *)q;
for (;;) {
if (syncGetTerminateFlag() != 0) {
#ifdef PBZIP_DEBUG
fprintf(stderr, "consumer: terminating1 - terminateFlag set\n");
#endif
... | consumer | pbzip2-1.1.13 | app-arch | O0/app-arch/pbzip2-1.1.13/pbzip2 | ida | O0 |
int consumerDecompressCheckInterrupt(const outBuff *lastElement) {
char isInterrupted;
int minErrBlock;
isInterrupted = syncGetTerminateFlag() != 0;
minErrBlock = syncGetMinErrorBlock();
if (minErrBlock != -1 &&
(!lastElement || minErrBlock <= lastElement->blockNumber ||
lastElement->isLastInSeq... | int consumerDecompressCheckInterrupt(const outBuff *lastElement) {
bool isInterrupted = false;
#ifdef PBZIP_DEBUG
uintmax_t thid = (uintmax_t)pthread_self();
#endif
if (syncGetTerminateFlag() != 0) {
isInterrupted = true;
#ifdef PBZIP_DEBUG
fprintf(stderr,
"(%" PRIuMAX
") consum... | consumerDecompressCheckInterrupt | pbzip2-1.1.13 | app-arch | O0/app-arch/pbzip2-1.1.13/pbzip2 | ida | O0 |
void *consumer_decompress(void *q) {
outBuff *v5;
bool isLast;
int outSequenceNumber;
unsigned int processedIn;
int bzret;
int bzreta;
unsigned int errState;
unsigned int availIn;
unsigned int len;
outBuff *fileData;
outBuff *lastFileData;
char *DecompressedData;
outBuff *prevOutBlockInSequenc... | void *consumer_decompress(void *q) {
queue *fifo = (queue *)q;
outBuff *fileData = NULL;
outBuff *lastFileData = NULL;
char *DecompressedData = NULL;
unsigned int outSize = 0;
outBuff *prevOutBlockInSequence = NULL;
int outSequenceNumber = -1;
unsigned int processedIn = 0;
int errState = 0;
bz_str... | consumer_decompress | pbzip2-1.1.13 | app-arch | O0/app-arch/pbzip2-1.1.13/pbzip2 | ida | O0 |
int decompressErrCheck(int bzret, const outBuff *fileData,
int outSequenceNumber, const bz_stream *strm) {
if (hasTrailingGarbage(bzret, fileData, strm))
return decompressErrCheckSingle(
bzret, fileData, outSequenceNumber, strm,
"*ERROR during BZ2_bzDecompress - trailing gar... | int decompressErrCheck(int bzret, const outBuff *fileData,
int outSequenceNumber, const bz_stream &strm) {
if (hasTrailingGarbage(bzret, fileData, strm)) {
return decompressErrCheckSingle(
bzret, fileData, outSequenceNumber, strm,
"*ERROR during BZ2_bzDecompress - trailing ... | decompressErrCheck | pbzip2-1.1.13 | app-arch | O0/app-arch/pbzip2-1.1.13/pbzip2 | ida | O0 |
int decompressErrCheckSingle(int bzret, const outBuff *fileData,
int outSequenceNumber, const bz_stream *strm,
const char *errmsg, bool isTrailingGarbageErr) {
int lastGoodBlock;
int prevState;
lastGoodBlock =
getLastGoodBlockBeforeErr(fileData->blo... | int decompressErrCheckSingle(int bzret, const outBuff *fileData,
int outSequenceNumber, const bz_stream &strm,
const char *errmsg, bool isTrailingGarbageErr) {
int lastGoodBlock =
getLastGoodBlockBeforeErr(fileData->blockNumber, outSequenceNumber);
#ifd... | decompressErrCheckSingle | pbzip2-1.1.13 | app-arch | O0/app-arch/pbzip2-1.1.13/pbzip2 | ida | O0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.