LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/AlgoLab[P]bwt-lcp-parallel/./io.hpp
// Function: mmap_writer_t<unsigned char, 6u, 4194304ul>::seek(unsigned int, unsigned long)
void seek(const suint_t i, const luint_t new_pos) {
    if (bases[i] == nullptr || new_pos < pos[i] || new_pos >= pos[i]+L) {
      if (bases[i] != nullptr) {
        munmap(bases[i], L);
      }
      pos[i] = new_pos - (new_pos % L);
      bases[i] = static_cast<t*>(
          mmap(nullptr, sizeof(t)*L, PROT_READ | PROT_WRITE, MAP_SHARED, fno,
               static_cast<__off_t>(pos[i]))
      );
      assert(bases[i] != MAP_FAILED);
    }
    off[i] = new_pos - pos[i];
  }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rdi, %r14
movl %esi, %r15d
movq 0x68(%rdi,%r15,8), %rdi
testq %rdi, %rdi
je 0x5e48
movq 0x8(%r14,%r15,8), %rax
cmpq %rbx, %rax
setbe %cl
addq $0x400000, %rax         # imm = 0x400000
cmpq %rbx, %rax
seta %al
testb %al, %cl
jne 0x5e7b
testq %rdi, %rdi
je 0x5e48
movl $0x400000, %esi         # imm = 0x400000
callq 0x2110
movq %rbx, %r9
andq $-0x400000, %r9         # imm = 0xFFC00000
movq %r9, 0x8(%r14,%r15,8)
movl (%r14), %r8d
movl $0x400000, %esi         # imm = 0x400000
xorl %edi, %edi
movl $0x3, %edx
movl $0x1, %ecx
callq 0x23e0
movq %rax, 0x68(%r14,%r15,8)
cmpq $-0x1, %rax
je 0x5e8b
subq 0x8(%r14,%r15,8), %rbx
movq %rbx, 0x38(%r14,%r15,8)
popq %rbx
popq %r14
popq %r15
retq
leaq 0x3698(%rip), %rdi      # 0x952a
leaq 0x3422(%rip), %rsi      # 0x92bb
leaq 0x36a1(%rip), %rcx      # 0x9541
movl $0x93, %edx
callq 0x2130
// File: /workspace/github_cpp_makefile_star2_O1/AlgoLab[P]bwt-lcp-parallel/./io.hpp
// Function: mmap_reader_t<unsigned char, 4194304ul>::read()
T read() {
    assert(base != nullptr);
    assert(off < L);
    const T res = base[off];
    ++off;
    if (off>=L) seek(pos+off);
    return res;
  }

// Assembly:
pushq %rbx
movq 0x18(%rdi), %rax
testq %rax, %rax
je 0x5ee7
movq 0x10(%rdi), %rcx
cmpq $0x400000, %rcx         # imm = 0x400000
jae 0x5f06
movb (%rax,%rcx), %bl
leaq 0x1(%rcx), %rax
movq %rax, 0x10(%rdi)
cmpq $0x3fffff, %rcx         # imm = 0x3FFFFF
jne 0x5ee3
movl $0x400000, %esi         # imm = 0x400000
addq 0x8(%rdi), %rsi
callq 0x5d6a
movl %ebx, %eax
popq %rbx
retq
leaq 0x349d(%rip), %rdi      # 0x938b
leaq 0x33c6(%rip), %rsi      # 0x92bb
leaq 0x36b6(%rip), %rcx      # 0x95b2
movl $0x11d, %edx            # imm = 0x11D
callq 0x2130
leaq 0x34e2(%rip), %rdi      # 0x93ef
leaq 0x33a7(%rip), %rsi      # 0x92bb
leaq 0x3697(%rip), %rcx      # 0x95b2
movl $0x11e, %edx            # imm = 0x11E
callq 0x2130
nop
// File: /workspace/github_cpp_makefile_star2_O1/AlgoLab[P]bwt-lcp-parallel/./io.hpp
// Function: mmap_writer_t<unsigned char, 6u, 4194304ul>::write(unsigned int, unsigned char)
void write(const suint_t i, const T el) {
    assert(i<N);
    assert(bases[i] != nullptr);
    assert(off[i] < L);
    if (bases[i][off[i]] != el) bases[i][off[i]] = el;
    ++off[i];
    if (off[i]>=L) seek(i, pos[i]+off[i]);
  }

// Assembly:
pushq %rax
cmpl $0x6, %esi
jae 0x5f9f
movl %esi, %eax
movq 0x68(%rdi,%rax,8), %rcx
testq %rcx, %rcx
je 0x5fbe
movq 0x38(%rdi,%rax,8), %r8
cmpq $0x400000, %r8          # imm = 0x400000
jae 0x5fdd
cmpb %dl, (%rcx,%r8)
je 0x5f7c
movb %dl, (%rcx,%r8)
movq 0x38(%rdi,%rax,8), %rdx
incq %rdx
movq %rdx, 0x38(%rdi,%rax,8)
cmpq $0x400000, %rdx         # imm = 0x400000
jb 0x5f9d
addq 0x8(%rdi,%rax,8), %rdx
popq %rax
jmp 0x5e06
popq %rax
retq
leaq 0x3654(%rip), %rdi      # 0x95fa
leaq 0x330e(%rip), %rsi      # 0x92bb
leaq 0x364a(%rip), %rcx      # 0x95fe
movl $0x9f, %edx
callq 0x2130
leaq 0x36a5(%rip), %rdi      # 0x966a
leaq 0x32ef(%rip), %rsi      # 0x92bb
leaq 0x362b(%rip), %rcx      # 0x95fe
movl $0xa0, %edx
callq 0x2130
leaq 0x369a(%rip), %rdi      # 0x967e
leaq 0x32d0(%rip), %rsi      # 0x92bb
leaq 0x360c(%rip), %rcx      # 0x95fe
movl $0xa1, %edx
callq 0x2130
// File: /workspace/github_cpp_makefile_star2_O1/AlgoLab[P]bwt-lcp-parallel/./io.hpp
// Function: mmap_writer_t<unsigned char, 6u, 4194304ul>::~mmap_writer_t()
~mmap_writer_t() {
    for (suint_t i= 0; i < N; ++i) {
      if (bases[i] != nullptr) munmap(bases[i], L);
      bases[i] = nullptr;
    }
    if (fno >= 0) close(fno);
  }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0xd, %r14d
movq (%rbx,%r14,8), %rdi
testq %rdi, %rdi
je 0x605e
movl $0x400000, %esi         # imm = 0x400000
callq 0x2110
movq $0x0, (%rbx,%r14,8)
incq %r14
cmpq $0x13, %r14
jne 0x604b
movl (%rbx), %edi
testl %edi, %edi
js 0x607a
callq 0x2430
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rdi
callq 0x6ab4
// File: /workspace/github_cpp_makefile_star2_O1/AlgoLab[P]bwt-lcp-parallel/./io.hpp
// Function: seq_reader_t<unsigned int>::seq_reader_t(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char const*)
seq_reader_t(const fname_t& fname, const char* mode = "rb") {
    f = fopen(fname.c_str(), mode);
    assert(f != nullptr);
    int fno = fileno(f);
    posix_fadvise(fno, 0, 0, POSIX_FADV_SEQUENTIAL);
    posix_fadvise(fno, 0, 0, POSIX_FADV_WILLNEED);
    read();
  }

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rsi), %rdi
movq %rdx, %rsi
callq 0x22a0
movq %rax, (%rbx)
testq %rax, %rax
je 0x7428
movq %rax, %rdi
callq 0x2270
movl %eax, %ebp
movl %eax, %edi
xorl %esi, %esi
xorl %edx, %edx
movl $0x2, %ecx
callq 0x21b0
movl %ebp, %edi
xorl %esi, %esi
xorl %edx, %edx
movl $0x3, %ecx
callq 0x21b0
movq (%rbx), %rcx
addq $0x8, %rbx
movl $0x4, %esi
movl $0x1, %edx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x22e0
leaq 0x1e7f(%rip), %rdi      # 0x92ae
leaq 0x1e85(%rip), %rsi      # 0x92bb
leaq 0x1e87(%rip), %rcx      # 0x92c4
movl $0x20, %edx
callq 0x2130
nop
// File: /workspace/github_cpp_makefile_star2_O1/AlgoLab[P]bwt-lcp-parallel/./io.hpp
// Function: void create_empty_file<unsigned char>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long)
void create_empty_file(const fname_t& fname, const luint_t n) {
  int fno = creat(fname.c_str(), 0666);
#ifdef FALLOC_FL_ZERO_RANGE
  fallocate(fno, FALLOC_FL_ZERO_RANGE, 0, static_cast<__off_t>(n*sizeof(T)));
#else
  fallocate(fno, 0, 0, static_cast<__off_t>(n*sizeof(T)));
#endif
  close(fno);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq (%rdi), %rdi
movl $0x1b6, %esi            # imm = 0x1B6
callq 0x2170
movl %eax, %ebp
movl %eax, %edi
movl $0x10, %esi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x21e0
movl %ebp, %edi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2430
nop
// File: /workspace/github_cpp_makefile_star2_O1/AlgoLab[P]bwt-lcp-parallel/bwt_lcp.cpp
// Function: base_env_t::base_env_t(unsigned char, unsigned int, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, mmap_swriter_t<unsigned char, 4194304ul>&)
base_env_t(
      const strlen_t _k,
      const strnum_t _m,
      const fnames_t& _IX_names,
      lcp_writer_t& _LCP
  )
    : k(_k),
      m(_m),
      IX_names(_IX_names),
      LCP(_LCP),
      p(0),
      midpoints{new luint_t[concurrency_level]},
      E(static_cast<luint_t>(_m)*(_k+1), false)
  {
    const luint_t tot = static_cast<luint_t>(m)*(k+1);
    const luint_t step =
      atleast1(tot/concurrency_level + ((tot%concurrency_level)>(concurrency_level/2) ? 1 : 0));
    for (luint_t i = 0, pos = step; i<concurrency_level-1; ++i, pos += step) {
      midpoints[i] = pos;
    }
    midpoints[concurrency_level-1] = tot;

    E[tot-1] = true;
  }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %edx, %r14d
movl %esi, %ebp
movq %rdi, %rbx
movb %bpl, (%rdi)
movl %edx, 0x4(%rdi)
movq %rcx, 0x8(%rdi)
movq %r8, 0x10(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x21(%rdi)
movl 0x8097(%rip), %edi      # 0xe240
shlq $0x3, %rdi
callq 0x2030
movq %rax, 0x38(%rbx)
leaq 0x40(%rbx), %rdi
movl %r14d, %eax
movzbl %bpl, %esi
incq %rsi
imulq %rax, %rsi
leaq 0xf(%rsp), %rdx
movb $0x0, (%rdx)
leaq 0xe(%rsp), %rcx
callq 0x6ac0
xorps %xmm0, %xmm0
movups %xmm0, 0x78(%rbx)
movups %xmm0, 0x68(%rbx)
movq $0x0, 0x88(%rbx)
movl 0x4(%rbx), %eax
movzbl (%rbx), %esi
incq %rsi
imulq %rax, %rsi
movl 0x803d(%rip), %ecx      # 0xe240
movq %rsi, %rax
xorl %edx, %edx
divq %rcx
movl %ecx, %edi
shrl %edi
xorl %r8d, %r8d
cmpq %rdi, %rdx
seta %r8b
leaq (%rax,%r8), %rdx
cmpq $0x1, %rdx
adcq %r8, %rax
decl %ecx
je 0x6240
movq 0x38(%rbx), %rdx
xorl %edi, %edi
movq %rax, %r8
movq %r8, (%rdx,%rdi,8)
incq %rdi
addq %rax, %r8
cmpq %rdi, %rcx
jne 0x6231
movq 0x38(%rbx), %rax
movq %rsi, (%rax,%rcx,8)
leaq -0x1(%rsi), %rcx
addq $0x3e, %rsi
testq %rcx, %rcx
cmovnsq %rcx, %rsi
sarq $0x6, %rsi
shlq $0x3, %rsi
addq 0x40(%rbx), %rsi
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
leaq 0x3f(%rax), %rdx
andq %rcx, %rdx
xorl %edi, %edi
cmpq %rax, %rdx
setbe %dil
movl $0x1, %eax
shlq %cl, %rax
orq %rax, -0x8(%rsi,%rdi,8)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x6295
movq %rax, %r14
addq $0x18, %rbx
movq %rbx, %rdi
callq 0x5ffc
movq %r14, %rdi
callq 0x23d0
// File: /workspace/github_cpp_makefile_star2_O1/AlgoLab[P]bwt-lcp-parallel/./io.hpp
// Function: optifasta_reader_t<unsigned char, 2u>::advance()
void advance() {
    if (nel == 0 && !iseof) {
      if (reader.has_next()) {
        io_el = reader.read();
        nel = NEL;
      } else {
        iseof = true;
      }
    }
    if (!iseof) {
      result = (io_el & MASK) >> ((NEL - 1) * SHIFT);
      io_el <<= SHIFT;
      --nel;
      if (result == EOFEL) {
        nel = 0;
        iseof = true;
      }
    }
  }

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, 0x10(%rdi)
jne 0x7394
cmpb $0x0, 0x16(%rbx)
jne 0x7394
movq (%rbx), %rdi
callq 0x2230
testl %eax, %eax
je 0x737a
movb $0x1, 0x16(%rbx)
jmp 0x7394
movb 0x8(%rbx), %bpl
movq (%rbx), %rdi
callq 0x2420
movb %al, 0x8(%rbx)
movb %bpl, 0x14(%rbx)
movl $0x2, 0x10(%rbx)
cmpb $0x0, 0x16(%rbx)
jne 0x73be
movb 0x14(%rbx), %al
movl %eax, %ecx
shrb $0x4, %cl
movb %cl, 0x15(%rbx)
shlb $0x4, %al
movb %al, 0x14(%rbx)
decl 0x10(%rbx)
cmpb $0xf, %cl
jne 0x73be
movl $0x0, 0x10(%rbx)
movb $0x1, 0x16(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/walker-xian[P]teisye/heapperf/heapperf.cpp
// Function: operator new(unsigned long)
inline uint64_t benchmark_start() noexcept
{
#if defined(__GNUC__) && (defined(__x86__) || defined(__x86_64__))
	uint32_t cycles_high, cycles_low;
	asm volatile (
        "xor %%eax, %%eax\n\t"
		"CPUID\n\t"/*serialize*/
		"RDTSC\n\t"/*read the clock*/
		"mov %%edx, %0\n\t"
		"mov %%eax, %1\n\t": "=r" (cycles_high), "=r" (cycles_low):: 
#if defined(__x86_64__)
		"%rax", "%rbx", "%rcx", "%rdx"
#else
		"%ax", "%bx", "%cx", "%dx"
#endif
		);
	return (static_cast<uint64_t>(cycles_high) << 32) | cycles_low;
#elif defined(_WIN32)
	int cpuInfo[4];
	__cpuid(cpuInfo, 0);
	return __rdtsc();
#else
	return high_resolution_clock::now().time_since_epoch().count();
#endif
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
xorl %eax, %eax
cpuid
rdtsc
movl %edx, %r14d
movl %eax, %ebp
callq *%fs:-0x1b8
movq %rax, %rsi
negl %r14d
shlq $0x20, %r14
movl %ebp, %edi
rdtscp
movl %edx, %r9d
movl %eax, %r8d
xorl %eax, %eax
cpuid
shlq $0x20, %r9
movl %r8d, %eax
subq %rdi, %r14
addq %rax, %r14
movq %fs:-0x1a8, %rax
addq (%rax), %r14
addq %r9, %r14
movq %r14, (%rax)
incl 0x10(%rax)
movq %rsi, %rax
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rdi
callq 0x5842
// File: /workspace/github_cpp_makefile_star2_O1/walker-xian[P]teisye/heapperf/heapperf.cpp
// Function: main
int main(int argc, char **argv)
{
    try
    {
        application app;

        app.parse_args(argc, argv);
        app.run();
    }
    catch (const std::exception& e)
    {
        cerr << e.what() << endl;
    }

    return 0;
}

// Assembly:
pushq %rbx
subq $0x90, %rsp
movq %rsi, %rdx
movl %edi, %eax
leaq 0x1af84(%rip), %rsi     # 0x1f9f0
leaq 0x8(%rsp), %r8
movl $0xf, %ecx
movq %r8, %rdi
rep  movsq (%rsi), %es:(%rdi)
movaps 0x1158d(%rip), %xmm0    # 0x16010
movups %xmm0, 0x78(%r8)
movq %r8, %rdi
movl %eax, %esi
callq 0x4af6
leaq 0x8(%rsp), %rdi
callq 0x4ff4
xorl %eax, %eax
addq $0x90, %rsp
popq %rbx
retq
movq %rax, %rbx
cmpl $0x1, %edx
jne 0x4ae6
movq %rbx, %rdi
callq 0x4110
movq (%rax), %rcx
movq %rax, %rdi
callq *0x10(%rcx)
movq 0x1b521(%rip), %rdi     # 0x1ffe8
movq %rax, %rsi
callq 0x4300
movq %rax, %rdi
callq 0x4160
callq 0x4450
jmp 0x4a9c
movq %rax, %rbx
callq 0x4450
movq %rbx, %rdi
callq 0x44d0
movq %rax, %rdi
callq 0x5842
// File: /workspace/github_cpp_makefile_star2_O1/walker-xian[P]teisye/src/teisye.cpp
// Function: tsvalidate
bool tsvalidate(const void* ptr)
{
    using namespace teisye;
    if (!ptr) return false;
    auto unit = reinterpret_cast<memory_unit*>(reinterpret_cast<size_t>(ptr) - sizeof(memory_unit::header));
    return _heap.validate(unit);
}

// Assembly:
testq %rdi, %rdi
je 0x14401
cmpw $0x6871, -0x8(%rdi)     # imm = 0x6871
jne 0x14401
movb -0x6(%rdi), %cl
movl -0x4(%rdi), %edi
cmpq $0x9, %rdi
jae 0x14404
xorl %esi, %esi
jmp 0x14449
xorl %eax, %eax
retq
leaq 0x7(%rdi), %rsi
cmpl $0x78, %edi
ja 0x14412
shrl $0x4, %esi
jmp 0x14449
movq %rsi, %rax
shrq $0x5, %rax
addq $-0x4, %rax
cmpq $0x3, %rax
ja 0x14429
orb $0x8, %al
movl %eax, %esi
jmp 0x14449
leaq 0x27(%rdi), %rax
movabsq $0x555555555555556, %rdx # imm = 0x555555555555556
mulq %rdx
addq $-0x6, %rdx
cmpq $0x3, %rdx
ja 0x14450
orb $0xc, %dl
movl %edx, %esi
cmpb %sil, %cl
sete %al
retq
movq %rsi, %rax
shrq $0x6, %rax
addq $-0x7, %rax
cmpq $0x8, %rax
ja 0x14465
orb $0x10, %al
jmp 0x14425
movq %rsi, %rax
shrq $0x7, %rax
addq $-0x8, %rax
cmpq $0x7, %rax
ja 0x1447a
addb $0x19, %al
jmp 0x14425
movq %rsi, %rax
shrq $0x8, %rax
addq $-0x8, %rax
cmpq $0x7, %rax
ja 0x1448f
addb $0x21, %al
jmp 0x14425
shrq $0x9, %rsi
addq $-0x8, %rsi
cmpq $0x7, %rsi
ja 0x144a3
addb $0x29, %sil
jmp 0x14449
cmpl $0xffff9, %edi          # imm = 0xFFFF9
movb $0x31, %sil
sbbb $-0x1, %sil
jmp 0x14449
// File: /workspace/github_cpp_makefile_star2_O1/walker-xian[P]teisye/src/teisye.cpp
// Function: tssize
size_t tssize(const void* ptr)
{
    using namespace teisye;
    if (!ptr) return static_cast<size_t>(-1);
    auto unit = reinterpret_cast<memory_unit*>(reinterpret_cast<size_t>(ptr) - sizeof(memory_unit::header));
    if (!_heap.validate(unit)) return static_cast<size_t>(-1);
    return unit->_header._size;
}

// Assembly:
movq $-0x1, %rcx
testq %rdi, %rdi
je 0x1452a
cmpw $0x6871, -0x8(%rdi)     # imm = 0x6871
jne 0x1452a
movb -0x6(%rdi), %sil
movl -0x4(%rdi), %r9d
cmpq $0x9, %r9
jae 0x144d9
xorl %r8d, %r8d
jmp 0x14522
leaq 0x7(%r9), %r8
cmpl $0x78, %r9d
ja 0x144e9
shrl $0x4, %r8d
jmp 0x14522
movq %r8, %rax
shrq $0x5, %rax
addq $-0x4, %rax
cmpq $0x3, %rax
ja 0x14501
orb $0x8, %al
movl %eax, %r8d
jmp 0x14522
leaq 0x27(%r9), %rax
movabsq $0x555555555555556, %rdx # imm = 0x555555555555556
mulq %rdx
addq $-0x6, %rdx
cmpq $0x3, %rdx
ja 0x1452e
orb $0xc, %dl
movl %edx, %r8d
cmpb %r8b, %sil
jne 0x1452a
movl -0x4(%rdi), %ecx
movq %rcx, %rax
retq
movq %r8, %rax
shrq $0x6, %rax
addq $-0x7, %rax
cmpq $0x8, %rax
ja 0x14543
orb $0x10, %al
jmp 0x144fc
movq %r8, %rax
shrq $0x7, %rax
addq $-0x8, %rax
cmpq $0x7, %rax
ja 0x14558
addb $0x19, %al
jmp 0x144fc
movq %r8, %rax
shrq $0x8, %rax
addq $-0x8, %rax
cmpq $0x7, %rax
ja 0x1456d
addb $0x21, %al
jmp 0x144fc
shrq $0x9, %r8
addq $-0x8, %r8
cmpq $0x7, %r8
ja 0x14581
addb $0x29, %r8b
jmp 0x14522
cmpl $0xffff9, %r9d          # imm = 0xFFFF9
movb $0x31, %r8b
sbbb $-0x1, %r8b
jmp 0x14522
// File: /workspace/github_cpp_makefile_star2_O1/walker-xian[P]teisye/src/teisye.cpp
// Function: teisye::heap_large::large_slab::alloc(unsigned long)
inline unit_t*  alloc(size_t size) noexcept
        {
            unit_t *chunk{};
            size_t aligned_size = align(size + sizeof(*chunk));

            if (aligned_size > _free_size || _busy.test_and_set()) return nullptr;

            for (auto cur = _first; cur < _last; cur = cur->_right)
            {
                // the unit is not free
                if (cur->_owner) continue;

                // merge free units
                for (auto right = cur->_right; right < _last && !right->_owner; right = right->_right)
                {
                    cur->_right = right->_right;
                }
                assert(cur->_right > _first && cur->_right <= _last);

                auto free_size = pointer_diff(cur->_right, cur);
                if (aligned_size > free_size) continue;

                // if the remaining size is equal or greater than 128 bytes, split it
                if (free_size - aligned_size >= 128)
                {
                    auto split = reinterpret_cast<unit_t*>(reinterpret_cast<size_t>(cur) + aligned_size);
                    split->_owner = nullptr;
                    split->_right = cur->_right;
                    cur->_right = split;
                }

                chunk = cur;
                chunk->_owner = this;

                assert(pointer_diff(chunk->_right, chunk) >= size + sizeof(*chunk));
                
                _free_size.fetch_sub(pointer_diff(chunk->_right, chunk));
                break;
            }

            _busy.clear();
            
            return chunk;
        }

// Assembly:
pushq %rax
leaq 0x27(%rsi), %rcx
andq $-0x10, %rcx
movq 0x18(%rdi), %rax
cmpq %rax, %rcx
ja 0x1522f
movb $0x1, %al
xchgb %al, 0x20(%rdi)
testb %al, %al
je 0x15233
xorl %eax, %eax
popq %rcx
retq
movq (%rdi), %rdx
movq 0x8(%rdi), %r8
cmpq %r8, %rdx
jae 0x152d1
addq $0x18, %rsi
xorl %eax, %eax
cmpq $0x0, 0x8(%rdx)
jne 0x152bf
movq (%rdx), %r9
cmpq %r8, %r9
jae 0x1526a
cmpq $0x0, 0x8(%r9)
jne 0x1526a
movq (%r9), %r10
movq %r10, (%rdx)
movq (%r9), %r9
jmp 0x15253
movq (%rdx), %r9
cmpq (%rdi), %r9
jbe 0x152dd
cmpq 0x8(%rdi), %r9
ja 0x152dd
movq %r9, %r8
subq %rdx, %r8
movq %r8, %r10
subq %rcx, %r10
jb 0x152ba
cmpq $0x80, %r10
jb 0x152a3
leaq (%rcx,%rdx), %rax
movq $0x0, 0x8(%rcx,%rdx)
movq %r9, (%rcx,%rdx)
movq %rax, (%rdx)
movq %rdi, 0x8(%rdx)
movq (%rdx), %rax
subq %rdx, %rax
cmpq %rsi, %rax
jb 0x152fc
lock
subq %rax, 0x18(%rdi)
movq %rdx, %rax
cmpq %rcx, %r8
jae 0x152d3
movq (%rdx), %rdx
movq 0x8(%rdi), %r8
cmpq %r8, %rdx
jb 0x15249
jmp 0x152d3
xorl %eax, %eax
xorl %ecx, %ecx
xchgb %cl, 0x20(%rdi)
jmp 0x15231
leaq 0x2700(%rip), %rdi      # 0x179e4
leaq 0x2544(%rip), %rsi      # 0x1782f
leaq 0x271f(%rip), %rcx      # 0x17a11
movl $0x1f5, %edx            # imm = 0x1F5
callq 0x4210
leaq 0x2744(%rip), %rdi      # 0x17a47
leaq 0x2525(%rip), %rsi      # 0x1782f
leaq 0x2700(%rip), %rcx      # 0x17a11
movl $0x206, %edx            # imm = 0x206
callq 0x4210
nop
// File: /workspace/github_cpp_makefile_star2_O1/iZhangHui[P]CppPrimer/CH12_DynamicMemory/exercises/ex12_13.cc
// Function: main
int main(int argc, char const *argv[])
{
	{
		auto sp = std::make_shared<int>();
		auto p = sp.get();
		delete p;
	}

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl $0x18, %edi
callq 0x1030
movq %rax, %rbx
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, 0x8(%rbx)
leaq 0x2b8c(%rip), %rax      # 0x3d20
movq %rax, (%rbx)
leaq 0x10(%rbx), %rdi
movl $0x0, 0x10(%rbx)
movl $0x4, %esi
callq 0x1040
movq %rbx, %rdi
callq 0x11be
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/iZhangHui[P]CppPrimer/CH12_DynamicMemory/exercises/ex12_16.cc
// Function: main
int main(int argc, char const *argv[])
{
	unique_ptr<string> p1 (new string("Henry"));

	/* error: call to deleted constructor of 'unique_ptr<string>' */
	// unique_ptr<string> p2(p1); // copy

	/**
	 * error: overload resolution selected deleted operator '='
	 * note: candidate function has been explicitly deleted
     * unique_ptr& operator=(const unique_ptr&) = delete;
     */
	// unique_ptr<string> p3;
	// p3 = p1; //assign

	cout << *p1 << endl;
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl $0x20, %edi
callq 0x1090
movq %rax, %r14
addq $0x10, %rax
movq %rax, (%r14)
leaq 0xdb2(%rip), %rsi       # 0x2004
leaq 0xdb0(%rip), %rdx       # 0x2009
movq %r14, %rdi
callq 0x12f6
movq %r14, -0x18(%rbp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x2d65(%rip), %rdi      # 0x3fd8
callq 0x10b0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x1080
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1040
movq -0x18(%rbp), %rsi
testq %rsi, %rsi
je 0x12b4
leaq -0x18(%rbp), %rdi
callq 0x1390
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
movl $0x20, %esi
movq %r14, %rdi
callq 0x10a0
jmp 0x12ee
movq %rax, %rbx
movq -0x18(%rbp), %rsi
testq %rsi, %rsi
je 0x12e6
leaq -0x18(%rbp), %rdi
callq 0x1390
movq $0x0, -0x18(%rbp)
movq %rbx, %rdi
callq 0x10d0
// File: /workspace/github_cpp_makefile_star2_O1/olahol[P]cpp-csp/examples/primes.cpp
// Function: main
int main() {
  csp::Scheduler scheduler;

  auto ch = new csp::Channel<int>;

  scheduler.spawn(generate, ch);

  for (int i = 0; i < PRIMES; i++) {
    int prime = ch->get();
    std::cout << prime << std::endl;
    auto ch1 = new csp::Channel<int>;
    scheduler.spawn(filter, ch, ch1, prime);
    ch = ch1;
  }

  scheduler.join();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movl $0xb0, %edi
callq 0x2110
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
movq %rax, %rdi
xorl %esi, %esi
callq 0x27c4
movl $0x0, 0x50(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x58(%rbx)
movups %xmm0, 0x68(%rbx)
movq $0x0, 0x78(%rbx)
movq %rbx, %rdi
subq $-0x80, %rdi
callq 0x2130
leaq 0x146(%rip), %rsi       # 0x24da
movq %rsp, %rdi
movq %rbx, %rdx
callq 0x251c
movl $0x64, %r14d
leaq 0x147(%rip), %r15       # 0x24f3
movq %rsp, %r12
movq %rbx, %rdi
callq 0x2584
movl %eax, %ebp
movq 0x2c18(%rip), %rdi      # 0x4fd8
movl %eax, %esi
callq 0x21b0
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2100
movsbl %al, %esi
movq %r13, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20b0
movl $0xb0, %edi
callq 0x2110
movq %rax, %r13
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
movq %rax, %rdi
xorl %esi, %esi
callq 0x27c4
movl $0x0, 0x50(%r13)
xorps %xmm0, %xmm0
movups %xmm0, 0x58(%r13)
movups %xmm0, 0x68(%r13)
movq $0x0, 0x78(%r13)
movq %r13, %rdi
subq $-0x80, %rdi
callq 0x2130
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movq %r13, %rcx
movl %ebp, %r8d
callq 0x2606
movq %r13, %rbx
decl %r14d
jne 0x23af
movq (%rsp), %rbx
movq 0x8(%rsp), %r14
cmpq %r14, %rbx
je 0x2489
movq (%rbx), %rdi
cmpq $0x0, (%rdi)
je 0x2483
callq 0x21a0
addq $0x8, %rbx
jmp 0x2470
movq %rsp, %rdi
callq 0x2680
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movl $0xb0, %esi
movq %rbx, %rdi
jmp 0x24be
jmp 0x24c7
jmp 0x24c7
movq %rax, %r14
movl $0xb0, %esi
movq %r13, %rdi
callq 0x2120
jmp 0x24ca
jmp 0x24c7
movq %rax, %r14
movq %rsp, %rdi
callq 0x2680
movq %r14, %rdi
callq 0x21c0
// File: /workspace/github_cpp_makefile_star2_O1/olahol[P]cpp-csp/examples/primes.cpp
// Function: generate(csp::Channel<int>*)
void generate(csp::Channel<int>* chan) {
  int i = 2;
  for (;;) {
    chan->put(i);
    i++;
  }
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x2, %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x26d6
incl %ebp
jmp 0x24e5
// File: /workspace/github_cpp_makefile_star2_O1/olahol[P]cpp-csp/examples/primes.cpp
// Function: filter(csp::Channel<int>*, csp::Channel<int>*, int)
void filter(csp::Channel<int>* in, csp::Channel<int>* out, int prime) {
  for (;;) {
    int i = in->get();
    if (i % prime != 0) {
      out->put(i);
    }
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movq %r15, %rdi
callq 0x2584
movl %eax, %esi
cltd
idivl %ebx
testl %edx, %edx
je 0x2500
movq %r14, %rdi
callq 0x26d6
jmp 0x2500
nop
// File: /workspace/github_cpp_makefile_star2_O1/NichtJens[P]lmf2txt/./conio.h
// Function: fopen_s(_IO_FILE**, char const*, char const*)
int fopen_s(FILE **f, const char *name, const char *mode) {
    int ret = 0;
    assert(f);
    *f = fopen(name, mode);
    if (! *f)
        ret = errno;
    return ret;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x12d3e
movq %rdi, %rbx
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x1150
movq %rax, %rcx
movq %rax, (%rbx)
xorl %eax, %eax
testq %rcx, %rcx
jne 0x12d3c
callq 0x1040
movl (%rax), %eax
popq %rbx
retq
leaq 0x17d1(%rip), %rdi      # 0x14516
leaq 0x170c(%rip), %rsi      # 0x14458
leaq 0x170f(%rip), %rcx      # 0x14462
movl $0xb, %edx
callq 0x10c0
// File: /workspace/github_cpp_makefile_star2_O1/aalto-speech[P]ftk/src/defs.hh
// Function: trim(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, char)
static void trim(std::string &str, char to_trim)
{
    std::string::size_type pos = str.find_last_not_of(to_trim);
    if(pos != std::string::npos) {
        str.erase(pos + 1);
        pos = str.find_first_not_of(to_trim);
        if(pos != std::string::npos) str.erase(0, pos);
    }
    else str.erase(str.begin(), str.end());
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
movq $-0x1, %rdx
callq 0x4280
cmpq $-0x1, %rax
je 0x69e1
leaq 0x1(%rax), %rdx
movq 0x8(%rbx), %rcx
cmpq %rax, %rcx
jbe 0x69f4
movq %rdx, 0x8(%rbx)
movq (%rbx), %rax
movb $0x0, (%rax,%rdx)
movsbl %r14b, %esi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x4350
cmpq $-0x1, %rax
je 0x69ef
movq %rbx, %rdi
xorl %esi, %esi
movq %rax, %rdx
popq %rbx
popq %r14
popq %rbp
jmp 0x40c0
movq (%rbx), %rax
movq $0x0, 0x8(%rbx)
movb $0x0, (%rax)
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x20887(%rip), %rdi     # 0x27282
leaq 0x2086c(%rip), %rsi     # 0x2726e
xorl %eax, %eax
callq 0x4550
nop
// File: /workspace/github_cpp_makefile_star2_O1/kerolloz[P]os/shell.cc
// Function: main
int main() {
  hello();
  string user_input;
  while (1) {
    printf("\n[shell@user]$ ");

    getline(cin, user_input);
    if (cin.eof() || user_input == "exit") {
      // if pressed CTRL + D "EOF" or entered "exit"
      break;
    }
    pid_t process_id = fork();
    if (process_id < 0) {
      printf("Failed to fork");
      exit(-1);
    }
    if (isChildProcess(process_id)) {
      command cmd(user_input);
      // (execute) replaces the child process image with the command to execute
      cmd.execute();
      // the following lines will execute, IFF command failed to execute
      printf("ERROR executing: %s\n", user_input.c_str());
      exit(0); // stop the child process, if failed
    }
    wait(NULL); // wait for the child to finish execution
  }
  bye();
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
leaq 0xcf0(%rip), %rdi       # 0x3081
callq 0x2180
leaq -0x38(%rbp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
leaq 0xc52(%rip), %rbx       # 0x3004
movq 0x2c27(%rip), %r14      # 0x4fe0
leaq -0x48(%rbp), %r15
leaq 0xc50(%rip), %r12       # 0x3014
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2030
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2110
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x21e0
movq (%r14), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x20(%r14,%rax)
jne 0x2422
movq %r15, %rdi
movq %r12, %rsi
callq 0x2070
testl %eax, %eax
je 0x2422
callq 0x2050
testl %eax, %eax
js 0x2454
je 0x246c
xorl %edi, %edi
callq 0x2150
jmp 0x23c4
leaq 0xcf6(%rip), %rdi       # 0x311f
callq 0x2180
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x2443
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2130
xorl %eax, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xbbe(%rip), %rdi       # 0x3019
xorl %eax, %eax
callq 0x2030
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x2140
leaq -0x58(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
addq %rsi, %rdx
leaq -0x68(%rbp), %rdi
callq 0x2c4a
leaq -0xa0(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x2522
movq -0x68(%rbp), %rdi
cmpq %r14, %rdi
je 0x24ad
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2130
leaq -0xa0(%rbp), %rdi
callq 0x2612
movq -0x48(%rbp), %rsi
leaq 0xb64(%rip), %rdi       # 0x3028
xorl %eax, %eax
callq 0x2030
xorl %edi, %edi
callq 0x2140
movq %rax, %rbx
leaq -0xa0(%rbp), %rdi
callq 0x2624
jmp 0x2504
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r14, %rdi
je 0x2504
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2130
jmp 0x2504
jmp 0x2501
jmp 0x2501
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x2519
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2130
movq %rbx, %rdi
callq 0x21c0
nop
// File: /workspace/github_cpp_makefile_star2_O1/kerolloz[P]os/shell.cc
// Function: command::command(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
command(string s) : command_string(s) {
    vector<string> args;
    split(args);
    for (const string &arg : args) {
      char *str = const_cast<char *>(arg.c_str());
      argschar.push_back(str);
    }
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, -0x30(%rbp)
movq %rax, (%rdi)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
movq %rax, %rsi
callq 0x2c4a
leaq 0x20(%rbx), %r14
xorl %eax, %eax
movq %rax, 0x30(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbx)
leaq -0x50(%rbp), %rsi
movq %rax, 0x10(%rsi)
movaps %xmm0, (%rsi)
movq %rbx, %rdi
callq 0x2666
movq -0x50(%rbp), %r13
movq -0x48(%rbp), %r12
cmpq %r12, %r13
je 0x25b8
leaq -0x38(%rbp), %r15
movq (%r13), %rax
movq %rax, -0x38(%rbp)
movq 0x28(%rbx), %rsi
cmpq 0x30(%rbx), %rsi
je 0x25a4
movq %rax, (%rsi)
addq $0x8, 0x28(%rbx)
jmp 0x25af
movq %r14, %rdi
movq %r15, %rdx
callq 0x2b0a
addq $0x20, %r13
cmpq %r12, %r13
jne 0x2588
leaq -0x50(%rbp), %rdi
callq 0x275e
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x25d2
movq %rax, %r15
leaq -0x50(%rbp), %rdi
callq 0x275e
movq (%r14), %rdi
testq %rdi, %rdi
je 0x25f2
movq 0x30(%rbx), %rsi
subq %rdi, %rsi
callq 0x2130
movq (%rbx), %rdi
cmpq -0x30(%rbp), %rdi
je 0x260a
movq -0x30(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x2130
movq %r15, %rdi
callq 0x21c0
// File: /workspace/github_cpp_makefile_star2_O1/kerolloz[P]os/shell.cc
// Function: command::split(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&)
void split(vector<string> &commands) {
    // just like python split
    // intput(string): "ls -la --color"
    // output(array of strings): ["ls", "-la", "--color"]
    string tmp_str = "";
    for (char c : command_string) {
      if (isspace(c)) {
        if (tmp_str.size())
          commands.push_back(tmp_str);
        tmp_str = "";
      } else
        tmp_str += c;
    }
    if (tmp_str.size())
      commands.push_back(tmp_str);
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, -0x50(%rbp)
movq %rdi, %r14
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x9af(%rip), %rdx       # 0x303c
leaq -0x48(%rbp), %rdi
movq %rdx, %rsi
callq 0x2814
movq 0x8(%r14), %r13
testq %r13, %r13
je 0x26fc
movq (%r14), %r15
xorl %ebx, %ebx
leaq -0x48(%rbp), %r14
movsbl (%r15,%rbx), %r12d
movl %r12d, %edi
callq 0x2040
testl %eax, %eax
je 0x26e9
cmpq $0x0, -0x40(%rbp)
je 0x26cf
movq -0x50(%rbp), %rdi
movq %r14, %rsi
callq 0x27c8
movq -0x40(%rbp), %rdx
movq %r14, %rdi
xorl %esi, %esi
leaq 0x95d(%rip), %rcx       # 0x303c
xorl %r8d, %r8d
callq 0x2190
jmp 0x26f4
movq %r14, %rdi
movl %r12d, %esi
callq 0x20f0
incq %rbx
cmpq %rbx, %r13
jne 0x26ab
cmpq $0x0, -0x40(%rbp)
je 0x2710
leaq -0x48(%rbp), %rsi
movq -0x50(%rbp), %rdi
callq 0x27c8
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2729
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2130
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x273a
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2756
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2130
movq %rbx, %rdi
callq 0x21c0
// File: /workspace/github_cpp_makefile_star2_O1/WinChua[P]MLDemo/DecisionTree.cpp
// Function: TreeNode::TreeNode(File&)
TreeNode::TreeNode(File & file):data(file), feature_sets(file.featureset), lchild(nullptr), rchild(nullptr)
{
    for(int i=0; i < data.records.size(); ++i)
    {
        record_index.push_back(i);
    }
    set_label();
    divide_node();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsi, (%rdi)
leaq 0x8(%rdi), %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
xorl %eax, %eax
movq %rax, 0x18(%rdi)
leaq 0x30(%rdi), %r13
movq %r13, 0x20(%rdi)
movq %rax, 0x28(%rdi)
movb $0x0, 0x30(%rdi)
leaq 0x48(%rdi), %r15
addq $0x38, %rsi
movq %r15, %rdi
callq 0x365e
xorps %xmm0, %xmm0
movups %xmm0, 0x80(%rbx)
movl $0x0, 0x4(%rsp)
movq (%rbx), %rax
movq 0x28(%rax), %rcx
cmpq 0x20(%rax), %rcx
je 0x2553
xorl %eax, %eax
leaq 0x4(%rsp), %r12
movabsq $0x6db6db6db6db6db7, %rbp # imm = 0x6DB6DB6DB6DB6DB7
movq 0x10(%rbx), %rsi
cmpq 0x18(%rbx), %rsi
je 0x2524
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x10(%rbx)
jmp 0x252f
movq %r14, %rdi
movq %r12, %rdx
callq 0x3c28
movslq 0x4(%rsp), %rax
incq %rax
movl %eax, 0x4(%rsp)
movq (%rbx), %rcx
movq 0x28(%rcx), %rdx
subq 0x20(%rcx), %rdx
sarq $0x3, %rdx
imulq %rbp, %rdx
cmpq %rax, %rdx
ja 0x250e
movq %rbx, %rdi
callq 0x25b6
movq %rbx, %rdi
callq 0x2610
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2579
movq %rax, %r12
jmp 0x2584
movq %rax, %r12
movq %r15, %rdi
callq 0x38e2
movq 0x20(%rbx), %rdi
cmpq %r13, %rdi
je 0x2599
movq (%r13), %rsi
incq %rsi
callq 0x21a0
movq (%r14), %rdi
testq %rdi, %rdi
je 0x25ad
movq 0x18(%rbx), %rsi
subq %rdi, %rsi
callq 0x21a0
movq %r12, %rdi
callq 0x2290
nop
// File: /workspace/github_cpp_makefile_star2_O1/WinChua[P]MLDemo/DecisionTree.cpp
// Function: TreeNode::test(Record&)
int TreeNode::test(Record &record)
{
    TreeNode * node = this;
    std::string feature = node->attr;
    while(feature != "no divided")
    {
        if(record.data.find(feature) == record.data.end())
        {
            node = node->rchild;
        }
        else node = node->lchild;
        feature = node->attr;
    }
    return node->label;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq 0x20(%rdi), %rsi
movq 0x28(%rdi), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x3b98
leaq 0x8(%r14), %r12
addq $0x10, %r14
leaq 0x32c2(%rip), %r13      # 0x6044
movq %r15, %rdi
movq %r13, %rsi
callq 0x2080
testl %eax, %eax
je 0x2dba
movq %r12, %rdi
movq %r15, %rsi
callq 0x3f3a
xorl %ecx, %ecx
cmpq %r14, %rax
sete %cl
movq 0x80(%rbx,%rcx,8), %rbx
leaq 0x20(%rbx), %rsi
movq %r15, %rdi
callq 0x20e0
jmp 0x2d82
movl 0x78(%rbx), %ebx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2dd4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21a0
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2de7
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2e01
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21a0
movq %rbx, %rdi
callq 0x2290
nop
// File: /workspace/github_cpp_makefile_star2_O1/WinChua[P]MLDemo/DecisionTree.cpp
// Function: TreeNode::gain_of_attr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::vector<int, std::allocator<int>>&, std::vector<int, std::allocator<int>>&)
double TreeNode::gain_of_attr(std::string attr, std::vector<int> &l_index, std::vector<int> &r_index)
{
    double en = entropy();
    float index_size = record_index.size();
    for(auto ri : record_index)
    {
        if(data.records[ri].data.find(attr) == data.records[ri].data.end())
        {
            r_index.push_back(ri);
        }
        else l_index.push_back(ri);
    }
    double r_entropy = _entropy(r_index);
    double l_entropy = _entropy(l_index);
    double div = r_index.size()/index_size* r_entropy + l_index.size() / index_size* l_entropy;
    double gain = en - div;
    return gain;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %r14
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r15
leaq 0x8(%rdi), %rsi
callq 0x3544
movsd %xmm0, 0x18(%rsp)
movq 0x8(%r15), %rax
movq 0x10(%r15), %rbp
movq %rax, 0x10(%rsp)
cmpq %rbp, %rax
je 0x33dc
movq 0x10(%rsp), %r13
movslq (%r13), %rax
movl %eax, 0xc(%rsp)
movq (%r15), %rcx
movq 0x20(%rcx), %rcx
imulq $0x38, %rax, %rax
leaq (%rcx,%rax), %rdi
addq $0x8, %rdi
movq %r12, %rsi
callq 0x3f3a
movq (%r15), %rdx
movslq 0xc(%rsp), %rcx
movq 0x20(%rdx), %rdx
imulq $0x38, %rcx, %rsi
addq %rsi, %rdx
addq $0x10, %rdx
cmpq %rdx, %rax
je 0x33a7
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x33bd
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x33cf
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
je 0x33c2
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%r14)
jmp 0x33cf
movq %rbx, %rdi
jmp 0x33c5
movq %r14, %rdi
leaq 0xc(%rsp), %rdx
callq 0x3c28
addq $0x4, %r13
cmpq %rbp, %r13
jne 0x3352
subq 0x10(%rsp), %rbp
sarq $0x2, %rbp
js 0x33f1
xorps %xmm0, %xmm0
cvtsi2ss %rbp, %xmm0
jmp 0x3409
movq %rbp, %rax
shrq %rax
andl $0x1, %ebp
orq %rax, %rbp
xorps %xmm0, %xmm0
cvtsi2ss %rbp, %xmm0
addss %xmm0, %xmm0
movss %xmm0, 0x10(%rsp)
movq %r15, %rdi
movq %r14, %rsi
callq 0x3544
movsd %xmm0, 0x20(%rsp)
movq %r15, %rdi
movq %rbx, %rsi
callq 0x3544
movq 0x8(%r14), %rax
subq (%r14), %rax
sarq $0x2, %rax
js 0x343f
cvtsi2ss %rax, %xmm1
jmp 0x3454
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
cvtsi2ss %rax, %xmm1
addss %xmm1, %xmm1
movsd 0x18(%rsp), %xmm3
movss 0x10(%rsp), %xmm4
divss %xmm4, %xmm1
cvtss2sd %xmm1, %xmm1
movq 0x8(%rbx), %rax
subq (%rbx), %rax
sarq $0x2, %rax
js 0x347c
cvtsi2ss %rax, %xmm2
jmp 0x3491
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
cvtsi2ss %rax, %xmm2
addss %xmm2, %xmm2
divss %xmm4, %xmm2
cvtss2sd %xmm2, %xmm2
mulsd %xmm2, %xmm0
mulsd 0x20(%rsp), %xmm1
addsd %xmm0, %xmm1
subsd %xmm1, %xmm3
movapd %xmm3, %xmm0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/WinChua[P]MLDemo/DecisionTree.cpp
// Function: get_entropy(double, double)
double get_entropy(double pos, double neg)
{
    if(pos == 0 || neg == 0) return 0.0;
    pos = pos/(pos+neg);
    neg = 1 - pos;
    return -pos*std::log2(pos)-neg*std::log2(neg);
}

// Assembly:
xorpd %xmm2, %xmm2
ucomisd %xmm2, %xmm0
jne 0x34ca
jnp 0x3534
ucomisd %xmm2, %xmm1
jne 0x34d2
jnp 0x3534
subq $0x28, %rsp
addsd %xmm0, %xmm1
divsd %xmm1, %xmm0
movsd 0x2b52(%rip), %xmm1     # 0x6038
subsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movapd 0x2b29(%rip), %xmm1     # 0x6020
xorpd %xmm0, %xmm1
movapd %xmm1, 0x10(%rsp)
callq 0x22a0
movsd %xmm0, 0x8(%rsp)
movsd (%rsp), %xmm0
callq 0x22a0
mulsd (%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
mulsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
movapd %xmm1, %xmm0
addq $0x28, %rsp
retq
xorpd %xmm0, %xmm0
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/WinChua[P]MLDemo/data.cpp
// Function: File::show_features() const
void File::show_features() const
{
    for(auto it=featureset.begin(); it != featureset.end(); ++it)
    {
        std::cout << *it << " ";
    }
    std::cout << std::endl;
    return;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x50(%rdi), %r14
addq $0x40, %rbx
cmpq %rbx, %r14
je 0x4272
movq 0x4d9d(%rip), %r15      # 0x8fd8
leaq 0x1ee9(%rip), %r12      # 0x612b
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
movq %r15, %rdi
callq 0x21d0
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x21d0
movq %r14, %rdi
callq 0x21e0
movq %rax, %r14
cmpq %rbx, %rax
jne 0x4242
movq 0x4d5f(%rip), %rbx      # 0x8fd8
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2180
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2120
nop
// File: /workspace/github_cpp_makefile_star2_O1/WinChua[P]MLDemo/data.cpp
// Function: File::File(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
File::File(std::string f): filename(f), positive_case(0), negative_case(0)
{
    std::ifstream fin(filename.c_str());
    std::string line;
    while(std::getline(fin, line))
    {
        records.emplace(records.end(), line, featureset);
        if((records.end()-1)->label == 1)
            positive_case += 1;
        else
            negative_case += 1;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x238, %rsp            # imm = 0x238
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, 0x8(%rsp)
movq %rax, (%rdi)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
movq %rax, %rsi
callq 0x3b98
leaq 0x20(%rbx), %r14
xorl %eax, %eax
movq %rax, 0x30(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbx)
leaq 0x38(%rbx), %r15
leaq 0x40(%rbx), %rcx
movl $0x0, 0x40(%rbx)
movq %rax, 0x48(%rbx)
movq %rcx, 0x50(%rbx)
movq %rcx, 0x58(%rbx)
movups %xmm0, 0x60(%rbx)
movq (%rbx), %rsi
leaq 0x30(%rsp), %r12
movq %r12, %rdi
movl $0x8, %edx
callq 0x22c0
leaq 0x20(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq $0x0, -0x8(%rbp)
movb $0x0, (%rbp)
leaq 0x10(%rsp), %r13
movq 0x30(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2180
movsbl %al, %edx
movq %r12, %rdi
movq %r13, %rsi
callq 0x22d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x4489
movq 0x28(%rbx), %rsi
movq %r14, %rdi
movq %r13, %rdx
movq %r15, %rcx
callq 0x455a
movq 0x28(%rbx), %rax
cmpl $0x1, -0x38(%rax)
jne 0x4484
incl 0x68(%rbx)
jmp 0x4431
incl 0x6c(%rbx)
jmp 0x4431
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x44a0
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0x30(%rsp), %rdi
callq 0x2060
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r12
jmp 0x44e7
jmp 0x44c3
movq %rax, %r12
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x44dd
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0x30(%rsp), %rdi
callq 0x2060
movq %r15, %rdi
callq 0x38e2
movq %r14, %rdi
callq 0x4518
movq (%rbx), %rdi
movq 0x8(%rsp), %rax
cmpq %rax, %rdi
je 0x450f
movq (%rax), %rsi
incq %rsi
callq 0x21a0
movq %r12, %rdi
callq 0x2290
nop
// File: /workspace/github_cpp_makefile_star2_O1/flastest[P]HeterogeneousParallelDijkstra/dijkstra_nanosleep.cc
// Function: relax_vertex(unsigned long, unsigned long, float, std::priority_queue<std::pair<unsigned long, float>, std::vector<std::pair<unsigned long, float>, std::allocator<std::pair<unsigned long, float>>>, Offer_Comparator>&, std::map<unsigned long, std::shared_ptr<std::mutex>, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, std::shared_ptr<std::mutex>>>>, std::map<unsigned long, float, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, float>>>&, std::map<unsigned long, std::shared_ptr<std::mutex>, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, std::shared_ptr<std::mutex>>>>&, std::map<unsigned long, unsigned long, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, unsigned long>>>&, int)
void relax_vertex(vertex_descriptor v,
			vertex_descriptor origin, 
		   float vd,
		   offer_pqueue_t& offer_pq, 
		   mutex_map_t distance_mutexes,
		   distance_map_t& distances,
		   mutex_map_t& predecessor_mutexes,
		   predecessor_map_t& predecessors,
		   int thread_id )
{
	std::lock_guard<std::mutex> guard(*distance_mutexes[v]);
	if (vd < distances[v]) 
	{

		{
//			if (DEBUG_THREAD) print_thread_debug(thread_id, "ADDING AN OFFER TO " + std::to_string(v) + "!!! distnace is " + std::to_string(vd) , debug_file_stream);
			std::lock_guard<std::mutex> guard2(pq_mutex);
			offer_pq.push(offer_t(v,vd));
//			if (DEBUG_THREAD) print_thread_debug(thread_id, "updating "+ std::to_string(v) +"'s predecessor", debug_file_stream);
			std::lock_guard<std::mutex> guard(*predecessor_mutexes[v]);
			//now update this node's predecessor 
			predecessors[v] = origin;
		}
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %r9, %r15
movq %r8, %r13
movq %rdx, %r12
movss %xmm0, 0x4(%rsp)
movq %rsi, %r14
leaq 0x8(%rsp), %rsi
movq %rdi, (%rsi)
movq %rcx, %rdi
callq 0xcc3a
movq (%rax), %rbx
movq %rbx, %rdi
callq 0x3390
testl %eax, %eax
jne 0xc358
leaq 0x8(%rsp), %rsi
movq %r13, %rdi
callq 0xcca0
movss (%rax), %xmm0
ucomiss 0x4(%rsp), %xmm0
jbe 0xc342
leaq 0xafe1(%rip), %rdi      # 0x172b8
callq 0x3390
testl %eax, %eax
jne 0xc35f
movq 0x8(%rsp), %rax
leaq 0x10(%rsp), %rsi
movq %rax, (%rsi)
movss 0x4(%rsp), %xmm0
movss %xmm0, 0x8(%rsi)
movq %r12, %rdi
callq 0xcd06
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0xcc3a
movq (%rax), %r15
movq %r15, %rdi
callq 0x3390
testl %eax, %eax
jne 0xc366
movq 0x50(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xcda6
movq %r14, (%rax)
movq %r15, %rdi
callq 0x3210
leaq 0xaf7b(%rip), %rdi      # 0x172b8
callq 0x3210
movq %rbx, %rdi
callq 0x3210
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movl %eax, %edi
callq 0x31c0
movl %eax, %edi
callq 0x31c0
movl %eax, %edi
callq 0x31c0
movq %rax, %r14
movq %r15, %rdi
callq 0x3210
jmp 0xc381
jmp 0xc37e
jmp 0xc38f
movq %rax, %r14
leaq 0xaf30(%rip), %rdi      # 0x172b8
callq 0x3210
jmp 0xc392
movq %rax, %r14
movq %rbx, %rdi
callq 0x3210
movq %r14, %rdi
callq 0x3480
// File: /workspace/github_cpp_makefile_star2_O1/yanlinlin82[P]icpp/icpp.cpp
// Function: dump_enum()
void dump_enum()
{
	for (auto it = enum_values.begin(); it != enum_values.end(); ++it) {
		log("[DEBUG] enum '%s': [ ", it->first.c_str());
		size_t i = 0;
		for (auto e : it->second) {
			log("%s%s = %d", (++i == 1 ? "" : ", "), e.first.c_str(), e.second);
		}
		log(" ]\n");
	}
	for (auto it = enum_types.begin(); it != enum_types.end(); ++it) {
		log("[DEBUG] '%s' => [ '%s', %d ]\n", it->first.c_str(),
				it->second.first.c_str(), it->second.second);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq 0x2058c(%rip), %r14     # 0x24580
testq %r14, %r14
je 0x40ab
leaq -0x48(%rbp), %rbx
leaq 0x18247(%rip), %r13     # 0x1c24f
leaq 0x18236(%rip), %r12     # 0x1c245
movq 0x8(%r14), %rsi
leaq 0x18215(%rip), %rdi     # 0x1c22f
xorl %eax, %eax
callq 0x15504
movq %r14, -0x30(%rbp)
movq 0x38(%r14), %r14
testq %r14, %r14
je 0x408d
xorl %r15d, %r15d
movq %rbx, -0x58(%rbp)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
leaq -0x58(%rbp), %rdi
callq 0x16d2e
movl 0x28(%r14), %ecx
movl %ecx, -0x38(%rbp)
subq $0x1, %r15
movq %r13, %rsi
leaq 0x19423(%rip), %rax     # 0x1d481
cmovbq %rax, %rsi
movq -0x58(%rbp), %rdx
movq %r12, %rdi
xorl %eax, %eax
callq 0x15504
movq -0x58(%rbp), %rdi
cmpq %rbx, %rdi
je 0x4085
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x31d0
movq (%r14), %r14
testq %r14, %r14
jne 0x4031
leaq 0x1936f(%rip), %rdi     # 0x1d403
xorl %eax, %eax
callq 0x15504
movq -0x30(%rbp), %r14
movq (%r14), %r14
testq %r14, %r14
jne 0x400f
movq 0x20506(%rip), %r14     # 0x245b8
testq %r14, %r14
je 0x40dc
leaq 0x18194(%rip), %rbx     # 0x1c252
movq 0x8(%r14), %rsi
movq 0x28(%r14), %rdx
movl 0x48(%r14), %ecx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x15504
movq (%r14), %r14
testq %r14, %r14
jne 0x40be
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq