LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/ledbit[P]varint/lesqlite.cpp
// Function: lesqlite_encode(std::vector<unsigned long, std::allocator<unsigned long>> const&)
vector<uint8_t> lesqlite_encode(const vector<uint64_t> &in) {
  vector<uint8_t> out;
  for (auto x : in) {
    if (x < cut1) {
      // 1 byte.
      out.push_back(x);
    } else if (x <= cut1 + 255 + 256 * (cut2 - 1 - cut1)) {
      // 2 bytes.
      x -= cut1;
      out.push_back(cut1 + (x >> 8));
      out.push_back(x & 0xff);
    } else {
      // 3-9 bytes.
      unsigned bits = 64 - count_leading_zeros_64(x);
      unsigned bytes = (bits + 7) / 8;
      out.push_back(cut2 + (bytes - 2));
      for (unsigned n = 0; n < bytes; n++) {
        out.push_back(x & 0xff);
        x >>= 8;
      }
    }
  }
  return out;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq (%rsi), %r15
movq 0x8(%rsi), %r12
cmpq %r12, %r15
je 0x15bd
leaq 0x3(%rsp), %rbp
movq (%r15), %r13
cmpq $0xb8, %r13
ja 0x1535
movb %r13b, 0x7(%rsp)
movq %rbx, %rdi
leaq 0x7(%rsp), %rsi
callq 0x13c6
jmp 0x15b0
cmpq $0x40b8, %r13           # imm = 0x40B8
ja 0x1572
addq $-0xb9, %r13
movl %r13d, %eax
shrl $0x8, %eax
addb $-0x47, %al
movb %al, 0x6(%rsp)
movq %rbx, %rdi
leaq 0x6(%rsp), %rsi
callq 0x13c6
movb %r13b, 0x5(%rsp)
movq %rbx, %rdi
leaq 0x5(%rsp), %rsi
callq 0x13c6
jmp 0x15b0
bsrq %r13, %r14
xorl $-0x40, %r14d
addl $0x48, %r14d
shrl $0x3, %r14d
leal -0x9(%r14), %eax
movb %al, 0x4(%rsp)
movq %rbx, %rdi
leaq 0x4(%rsp), %rsi
callq 0x13c6
movb %r13b, 0x3(%rsp)
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x13c6
shrq $0x8, %r13
decl %r14d
jne 0x1597
addq $0x8, %r15
cmpq %r12, %r15
jne 0x1515
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x15d7
jmp 0x15d7
jmp 0x15d7
jmp 0x15d7
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x15ee
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x10f0
movq %r14, %rdi
callq 0x1160
// File: /workspace/github_cpp_makefile_star2_O1/ledbit[P]varint/lesqlite.cpp
// Function: lesqlite_decode(unsigned char const*, unsigned long*, unsigned long)
void lesqlite_decode(const uint8_t *in, uint64_t *out, size_t count) {
  while (count-- > 0) {
    uint8_t b0 = *in++;
    if (LIKELY(b0 < cut1)) {
      *out++ = b0;
    } else if (b0 < cut2) {
      uint8_t b1 = *in++;
      *out++ = cut1 + b1 + ((b0 - cut1) << 8);
    } else {
      size_t sh = b0 - cut2;
      *out++ = unaligned_load_u64(in) & ((uint64_t(1) << 8 * sh << 16) - 1);
      in += 2 + sh;
    }
  }
}

// Assembly:
testq %rdx, %rdx
je 0x1669
xorl %eax, %eax
leaq 0x1(%rdi), %r8
movzbl (%rdi), %ecx
cmpl $0xb8, %ecx
ja 0x161d
movq %rcx, (%rsi,%rax,8)
incq %rax
movq %r8, %rdi
cmpq %rax, %rdx
jne 0x15fd
jmp 0x1669
cmpb $-0x8, %cl
ja 0x1640
movzbl 0x1(%rdi), %r8d
addq $0x2, %rdi
shll $0x8, %ecx
addl %r8d, %ecx
addl $0xffff47b9, %ecx       # imm = 0xFFFF47B9
movq %rcx, (%rsi,%rax,8)
movq %rdi, %r8
jmp 0x1610
leal -0xf9(%rcx), %edi
leal -0x7c8(,%rcx,8), %ecx
movl $0x10000, %r9d          # imm = 0x10000
shlq %cl, %r9
decq %r9
andq (%r8), %r9
movq %r9, (%rsi,%rax,8)
addq %rdi, %r8
addq $0x2, %r8
jmp 0x1610
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/ledbit[P]varint/lesqlite2.cpp
// Function: lesqlite2_encode(std::vector<unsigned long, std::allocator<unsigned long>> const&)
vector<uint8_t> lesqlite2_encode(const vector<uint64_t> &in) {
  vector<uint8_t> out;
  for (auto x : in) {
    if (x < cut1) {
      // 1 byte.
      out.push_back(x);
    } else if (x < limit1) {
      // 2 bytes encode 14 bits.
      x -= offset1;
      out.push_back(cut1 + (x >> 8));
      out.push_back(x & 0xff);
    } else if (x < limit2) {
      // 3 bytes encode 19 bits.
      x -= offset2;
      out.push_back(cut2 + (x >> 16));
      // Next 2 bytes in little-endian.
      out.push_back(x & 0xff);
      x >>= 8;
      out.push_back(x & 0xff);
    } else {
      // 4-9 bytes, no offset.
      unsigned bits = 64 - count_leading_zeros_64(x);
      unsigned bytes = (bits + 7) / 8;
      out.push_back(cut3 + (bytes - 3));
      for (unsigned n = 0; n < bytes; n++) {
        out.push_back(x & 0xff);
        x >>= 8;
      }
    }
  }
  return out;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r12
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq (%rsi), %rbp
movq 0x8(%rsi), %r15
cmpq %r15, %rbp
je 0x1791
movq %rsp, %r13
movq (%rbp), %rbx
cmpq $0xb1, %rbx
ja 0x16be
movb %bl, 0x7(%rsp)
movq %r12, %rdi
leaq 0x7(%rsp), %rsi
callq 0x13c6
jmp 0x1784
cmpq $0x40b1, %rbx           # imm = 0x40B1
ja 0x16fc
addq $-0xb2, %rbx
movl %ebx, %eax
shrl $0x8, %eax
addb $-0x4e, %al
movb %al, 0x6(%rsp)
movq %r12, %rdi
leaq 0x6(%rsp), %rsi
callq 0x13c6
movb %bl, 0x5(%rsp)
movq %r12, %rdi
leaq 0x5(%rsp), %rsi
callq 0x13c6
jmp 0x1784
cmpq $0x840b1, %rbx          # imm = 0x840B1
ja 0x1748
addq $-0x40b2, %rbx          # imm = 0xBF4E
movl %ebx, %eax
shrl $0x10, %eax
addb $-0xe, %al
movb %al, 0x4(%rsp)
movq %r12, %rdi
leaq 0x4(%rsp), %rsi
callq 0x13c6
movb %bl, 0x3(%rsp)
movq %r12, %rdi
leaq 0x3(%rsp), %rsi
callq 0x13c6
movb %bh, 0x2(%rsp)
movq %r12, %rdi
leaq 0x2(%rsp), %rsi
callq 0x13c6
jmp 0x1784
bsrq %rbx, %r14
xorl $-0x40, %r14d
addl $0x48, %r14d
shrl $0x3, %r14d
leal -0x9(%r14), %eax
movb %al, 0x1(%rsp)
movq %r12, %rdi
leaq 0x1(%rsp), %rsi
callq 0x13c6
movb %bl, (%rsp)
movq %r12, %rdi
movq %r13, %rsi
callq 0x13c6
shrq $0x8, %rbx
decl %r14d
jne 0x176d
addq $0x8, %rbp
cmpq %r15, %rbp
jne 0x169b
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x17b1
jmp 0x17b1
jmp 0x17b1
jmp 0x17b1
jmp 0x17b1
jmp 0x17b1
jmp 0x17b1
movq %rax, %r14
movq (%r12), %rdi
testq %rdi, %rdi
je 0x17ca
movq 0x10(%r12), %rsi
subq %rdi, %rsi
callq 0x10f0
movq %r14, %rdi
callq 0x1160
// File: /workspace/github_cpp_makefile_star2_O1/ledbit[P]varint/lesqlite2.cpp
// Function: lesqlite2_decode(unsigned char const*, unsigned long*, unsigned long)
void lesqlite2_decode(const uint8_t *in, uint64_t *out, size_t count) {
  while (count-- > 0) {
    uint8_t b0 = *in++;
    if (LIKELY(b0 < cut1)) {
      *out++ = b0;
    } else if (b0 < cut2) {
      b0 -= cut1;
      uint8_t b1 = *in++;
      *out++ = offset1 + b1 + (b0 << 8);
    } else if (b0 < cut3) {
      b0 -= cut2;
      *out++ = offset2 + unaligned_load_u16(in) + (b0 << 16);
      in += 2;
    } else {
      b0 -= cut3;
      *out++ = unaligned_load_u64(in) & ((uint64_t(1) << 8 * b0 << 24) - 1);
      in += 3 + b0;
    }
  }
}

// Assembly:
testq %rdx, %rdx
je 0x1879
xorl %eax, %eax
leaq 0x1(%rdi), %r8
movzbl (%rdi), %ecx
cmpq $0xb1, %rcx
ja 0x17fe
movq %rcx, (%rsi,%rax,8)
incq %rax
movq %r8, %rdi
cmpq %rax, %rdx
jne 0x17dd
jmp 0x1879
cmpb $-0xf, %cl
ja 0x1825
addb $0x4e, %cl
movzbl 0x1(%rdi), %r8d
addq $0x2, %rdi
movzbl %cl, %ecx
shll $0x8, %ecx
addq %r8, %rcx
addq $0xb2, %rcx
movq %rcx, (%rsi,%rax,8)
jmp 0x184a
cmpb $-0x7, %cl
ja 0x184f
addb $0xe, %cl
movzwl 0x1(%rdi), %r8d
movzbl %cl, %ecx
shll $0x10, %ecx
addq %r8, %rcx
addq $0x40b2, %rcx           # imm = 0x40B2
movq %rcx, (%rsi,%rax,8)
addq $0x3, %rdi
movq %rdi, %r8
jmp 0x17f1
addb $0x6, %cl
movzbl %cl, %edi
movl %edi, %ecx
shll $0x3, %ecx
movl $0x1000000, %r9d        # imm = 0x1000000
shlq %cl, %r9
decq %r9
andq (%r8), %r9
movq %r9, (%rsi,%rax,8)
addq %rdi, %r8
addq $0x3, %r8
jmp 0x17f1
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/ledbit[P]varint/prefix_varint.cpp
// Function: prefix_encode(std::vector<unsigned long, std::allocator<unsigned long>> const&)
vector<uint8_t> prefix_encode(const vector<uint64_t> &in) {
  vector<uint8_t> out;
  for (auto x : in) {
    unsigned bits = 64 - count_leading_zeros_64(x | 1);
    unsigned bytes = 1 + (bits - 1) / 7;
    if (bits > 56) {
      out.push_back(0);
      bytes = 8;
    } else {
      x = (2 * x + 1) << (bytes - 1);
    }
    for (unsigned n = 0; n < bytes; n++) {
      out.push_back(x & 0xff);
      x >>= 8;
    }
  }
  return out;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq (%rsi), %r12
movq 0x8(%rsi), %r13
cmpq %r13, %r12
je 0x1919
leaq 0x6(%rsp), %r15
movq (%r12), %rbp
movq %rbp, %rax
shrq $0x38, %rax
je 0x18d0
movb $0x0, 0x7(%rsp)
movq %rbx, %rdi
leaq 0x7(%rsp), %rsi
callq 0x13c6
movl $0x8, %r14d
jmp 0x18f7
leaq 0x1(,%rbp,2), %rax
orq $0x1, %rbp
bsrq %rbp, %rcx
movl %ecx, %ecx
imulq $0x24924925, %rcx, %rcx # imm = 0x24924925
shrq $0x20, %rcx
leal 0x1(%rcx), %r14d
shlq %cl, %rax
movq %rax, %rbp
movb %bpl, 0x6(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x13c6
shrq $0x8, %rbp
decl %r14d
jne 0x18f7
addq $0x8, %r12
cmpq %r13, %r12
jne 0x18a9
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x192d
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x1944
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x10f0
movq %r14, %rdi
callq 0x1160
// File: /workspace/github_cpp_makefile_star2_O1/ledbit[P]varint/prefix_varint.cpp
// Function: prefix_decode(unsigned char const*, unsigned long*, unsigned long)
void prefix_decode(const uint8_t *in, uint64_t *out, size_t count) {
  while (count-- > 0) {
    if (LIKELY(*in & 1)) {
      *out++ = *in++ >> 1;
    } else {
      size_t length = prefix_length(in);
      *out++ = prefix_get(in, length);
      in += length;
    }
  }
}

// Assembly:
testq %rdx, %rdx
je 0x19af
xorl %r8d, %r8d
movzbl (%rdi), %eax
testb $0x1, %al
je 0x196e
incq %rdi
shrl %eax
movq %rax, (%rsi,%r8,8)
incq %r8
cmpq %r8, %rdx
jne 0x1954
jmp 0x19af
orl $0x100, %eax            # imm = 0x100
bsfl %eax, %eax
leal 0x1(%rax), %r9d
cmpl $0x7, %eax
ja 0x19a2
leal (,%r9,8), %ecx
movl $0x40, %eax
subq %rcx, %rax
movq (%rdi), %r10
negq %rcx
shlq %cl, %r10
addl %r9d, %eax
movl %eax, %ecx
shrq %cl, %r10
jmp 0x19a6
movq 0x1(%rdi), %r10
movq %r10, (%rsi,%r8,8)
addq %r9, %rdi
jmp 0x1964
retq
// File: /workspace/github_cpp_makefile_star2_O1/ledbit[P]varint/varint.cpp
// Function: gen_log_uniform()
vector<uint64_t> gen_log_uniform() {

  // How many uint64_t numbers in the vector we're compressing.
  const size_t N = 100000;

  // Maximum significant bits in the log-uniform random numbers.
  const unsigned random_bits = 64;

  default_random_engine gen;
  uniform_real_distribution<double> dist(0.0, random_bits * log(2));
  vector<uint64_t> vec;

  vec.reserve(N);
  while (vec.size() < N)
    vec.push_back(exp(dist(gen)));
  return vec;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq $0x1, 0x8(%rsp)
xorpd %xmm0, %xmm0
movupd %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movl $0x186a0, %esi          # imm = 0x186A0
callq 0x2020
movq 0x8(%rbx), %rax
subq (%rbx), %rax
cmpq $0xc34ff, %rax          # imm = 0xC34FF
ja 0x1a67
leaq 0x8(%rsp), %r14
movq %rsp, %r15
movq %r14, %rdi
callq 0x215b
mulsd 0x1642(%rip), %xmm0     # 0x3048
addsd 0x164a(%rip), %xmm0     # 0x3058
callq 0x1170
cvttsd2si %xmm0, %rcx
movq %rcx, %rdx
sarq $0x3f, %rdx
subsd 0x1629(%rip), %xmm0     # 0x3050
cvttsd2si %xmm0, %rax
andq %rdx, %rax
orq %rcx, %rax
movq %rax, (%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x1a4d
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x1a58
movq %rbx, %rdi
movq %r15, %rdx
callq 0x22a4
movq 0x8(%rbx), %rax
subq (%rbx), %rax
cmpq $0xc3500, %rax          # imm = 0xC3500
jb 0x19f6
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x1a76
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x1a8d
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x10f0
movq %r14, %rdi
callq 0x1160
// File: /workspace/github_cpp_makefile_star2_O1/ledbit[P]varint/varint.cpp
// Function: read_test_vector(char const*)
vector<uint64_t> read_test_vector(const char *filename) {
  FILE *f = fopen(filename, "r");
  if (!f) {
    perror(filename);
    exit(1);
  }

  vector<uint64_t> vec;
  while (!feof(f)) {
    uint64_t val;
    int rc = fscanf(f, "%" SCNu64 "\n", &val);
    if (rc == 1) {
      vec.push_back(val);
    } else if (rc == EOF) {
      if (ferror(f)) {
        perror(filename);
        exit(1);
      } else {
        break;
      }
    }
  }
  return vec;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x15f9(%rip), %rsi      # 0x30a8
movq %r14, %rdi
callq 0x1120
testq %rax, %rax
je 0x1b57
movq %rax, %r15
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq %rax, %rdi
callq 0x1140
testl %eax, %eax
jne 0x1b46
leaq 0x15c6(%rip), %r12      # 0x30aa
leaq 0x8(%rsp), %r13
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x1180
cmpl $0x1, %eax
je 0x1b05
cmpl $-0x1, %eax
jne 0x1b2c
jmp 0x1b3a
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x1b21
movq 0x8(%rsp), %rax
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x1b2c
movq %rbx, %rdi
movq %r13, %rdx
callq 0x23c4
movq %r15, %rdi
callq 0x1140
testl %eax, %eax
je 0x1ae9
jmp 0x1b46
movq %r15, %rdi
callq 0x1190
testl %eax, %eax
jne 0x1b5f
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %r14, %rdi
callq 0x11be
movq %r14, %rdi
callq 0x11b0
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x1b7e
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x10f0
movq %r14, %rdi
callq 0x1160
// File: /workspace/github_cpp_makefile_star2_O1/ledbit[P]varint/varint.cpp
// Function: time_decode(unsigned char const*, std::vector<unsigned long, std::allocator<unsigned long>>&, void (*)(unsigned char const*, unsigned long*, unsigned long), unsigned int)
double time_decode(const uint8_t *in, vector<uint64_t> &out, decoder_func func,
                   unsigned repetitions) {
  using namespace chrono;
  auto before = high_resolution_clock::now();
  for (unsigned n = 0; n < repetitions; n++)
    func(in, out.data(), out.size());
  auto after = high_resolution_clock::now();
  auto ns = duration_cast<nanoseconds>(after - before).count();
  return double(ns) / 1e9;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl %ecx, %ebx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
callq 0x1040
movq %rax, %r14
testl %ebx, %ebx
je 0x1bc0
movq (%r12), %rsi
movq 0x8(%r12), %rdx
subq %rsi, %rdx
sarq $0x3, %rdx
movq %r13, %rdi
callq *%r15
decl %ebx
jne 0x1ba6
callq 0x1040
subq %r14, %rax
cvtsi2sd %rax, %xmm0
divsd 0x148b(%rip), %xmm0     # 0x3060
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/ledbit[P]varint/varint.cpp
// Function: measure(unsigned char const*, std::vector<unsigned long, std::allocator<unsigned long>>&, void (*)(unsigned char const*, unsigned long*, unsigned long))
double measure(const uint8_t *in, vector<uint64_t> &out, decoder_func func) {
  unsigned repetitions = 1;
  double runtime = time_decode(in, out, func, repetitions);
  while (runtime < 1) {
    repetitions *= 10;
    runtime = time_decode(in, out, func, repetitions);
  }

  repetitions = round(repetitions / runtime);
  runtime = time_decode(in, out, func, repetitions);
  return runtime / repetitions;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl $0x1, %r12d
movl $0x1, %ecx
callq 0x1b86
movsd 0x1460(%rip), %xmm1     # 0x3068
ucomisd %xmm0, %xmm1
jbe 0x1c3f
addl %r12d, %r12d
leal (%r12,%r12,4), %r12d
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl %r12d, %ecx
callq 0x1b86
movsd 0x143a(%rip), %xmm1     # 0x3068
ucomisd %xmm0, %xmm1
ja 0x1c0e
movl %r12d, %eax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
callq 0x1060
cvttsd2si %xmm0, %r12
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl %r12d, %ecx
callq 0x1b86
movl %r12d, %eax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
divsd %xmm1, %xmm0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/ledbit[P]varint/varint.cpp
// Function: do_codec(codec_descriptor const&, std::vector<unsigned long, std::allocator<unsigned long>> const&)
double do_codec(const codec_descriptor &codec,
                const vector<uint64_t> &numbers) {
  vector<uint64_t> buffer(numbers.size());
  auto encoded = codec.encoder(numbers);

  printf("%s: %.3f bytes/integer.\n", codec.name,
         double(encoded.size()) / numbers.size());
  fflush(stdout);

  double dtime = measure(encoded.data(), buffer, codec.decoder);
  assert(buffer == numbers);

  printf("%s: %.3e secs.\n", codec.name, dtime);

  return dtime;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rsi), %rsi
subq (%r14), %rsi
sarq $0x3, %rsi
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x20b6
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq *0x8(%rbx)
movq 0x10(%rsp), %rax
subq 0x8(%rsp), %rax
movq (%rbx), %rsi
movq %rax, %xmm1
movq 0x13b7(%rip), %xmm2     # 0x3080
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x13bb(%rip), %xmm3     # 0x3090
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq 0x8(%r14), %rax
subq (%r14), %rax
sarq $0x3, %rax
movq %rax, %xmm1
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
leaq 0x139b(%rip), %rdi      # 0x30af
movb $0x1, %al
callq 0x1030
movq 0x32ae(%rip), %rax      # 0x4fd0
movq (%rax), %rdi
callq 0x1110
movq 0x8(%rsp), %rdi
movq 0x10(%rbx), %rdx
leaq 0x20(%rsp), %rsi
callq 0x1bdf
movsd %xmm0, (%rsp)
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rax
movq %rax, %rdx
subq %rdi, %rdx
movq (%r14), %rsi
movq 0x8(%r14), %rcx
subq %rsi, %rcx
cmpq %rcx, %rdx
jne 0x1dc0
cmpq %rdi, %rax
je 0x1d6f
callq 0x1100
testl %eax, %eax
jne 0x1dc0
movq (%rbx), %rsi
leaq 0x13b0(%rip), %rdi      # 0x3129
movsd (%rsp), %xmm0
movb $0x1, %al
callq 0x1030
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1d9c
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x10f0
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x1db3
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x10f0
movsd (%rsp), %xmm0
addq $0x38, %rsp
popq %rbx
popq %r14
retq
leaq 0x1301(%rip), %rdi      # 0x30c8
leaq 0x130c(%rip), %rsi      # 0x30da
leaq 0x1310(%rip), %rcx      # 0x30e5
movl $0x6d, %edx
callq 0x10a0
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1dfe
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x10f0
jmp 0x1dfe
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x1e15
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x1160
// File: /workspace/github_cpp_makefile_star2_O1/ledbit[P]varint/varint.cpp
// Function: main
int main(int argc, const char *argv[]) {
  vector<uint64_t> numbers;

  if (argc == 2) {
    numbers = read_test_vector(argv[1]);
    printf("Read %zu integers from %s.\n", numbers.size(), argv[1]);
  } else {
    numbers = gen_log_uniform();
    printf("Generated %zu log-uniform integers.\n", numbers.size());
  }

  double leb128 = do_codec(leb128_codec, numbers);
  double prefix = do_codec(prefix_codec, numbers);
  double sqlite = do_codec(lesqlite_codec, numbers);
  double sqlite2 = do_codec(lesqlite2_codec, numbers);

  printf("T(LEB128) / T(PrefixVarint) = %.3f.\n", leb128 / prefix);
  printf("T(LEB128) / T(leSQLite) = %.3f.\n", leb128 / sqlite);
  printf("T(LEB128) / T(leSQLite2) = %.3f.\n", leb128 / sqlite2);
}

// Assembly:
pushq %rbx
subq $0x60, %rsp
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
cmpl $0x2, %edi
jne 0x1ebe
movq %rsi, %rbx
movq 0x8(%rsi), %rsi
leaq 0x20(%rsp), %rdi
callq 0x1a95
movq (%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x20(%rsp), %rax
movq %rax, (%rsp)
movups 0x28(%rsp), %xmm0
movups %xmm0, 0x8(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
testq %rdi, %rdi
je 0x1e86
subq %rdi, %rsi
callq 0x10f0
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x1e9d
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x10f0
movq 0x8(%rsp), %rsi
subq (%rsp), %rsi
sarq $0x3, %rsi
movq 0x8(%rbx), %rdx
leaq 0x1284(%rip), %rdi      # 0x3139
xorl %eax, %eax
callq 0x1030
jmp 0x1f34
leaq 0x20(%rsp), %rdi
callq 0x19b0
movq (%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x20(%rsp), %rax
movq %rax, (%rsp)
movups 0x28(%rsp), %xmm0
movups %xmm0, 0x8(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
testq %rdi, %rdi
je 0x1f02
subq %rdi, %rsi
callq 0x10f0
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x1f19
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x10f0
movq 0x8(%rsp), %rsi
subq (%rsp), %rsi
sarq $0x3, %rsi
leaq 0x1228(%rip), %rdi      # 0x3155
xorl %eax, %eax
callq 0x1030
leaq 0x2e25(%rip), %rdi      # 0x4d60
movq %rsp, %rsi
callq 0x1c7d
movsd %xmm0, 0x40(%rsp)
leaq 0x2e58(%rip), %rdi      # 0x4da8
movq %rsp, %rsi
callq 0x1c7d
movsd %xmm0, 0x58(%rsp)
leaq 0x2e13(%rip), %rdi      # 0x4d78
movq %rsp, %rsi
callq 0x1c7d
movsd %xmm0, 0x50(%rsp)
leaq 0x2e16(%rip), %rdi      # 0x4d90
movq %rsp, %rsi
callq 0x1c7d
movsd %xmm0, 0x48(%rsp)
movsd 0x40(%rsp), %xmm0
divsd 0x58(%rsp), %xmm0
leaq 0x11df(%rip), %rdi      # 0x317a
movb $0x1, %al
callq 0x1030
movsd 0x40(%rsp), %xmm0
divsd 0x50(%rsp), %xmm0
leaq 0x11ea(%rip), %rdi      # 0x319f
movb $0x1, %al
callq 0x1030
movsd 0x40(%rsp), %xmm0
divsd 0x48(%rsp), %xmm0
leaq 0x11f1(%rip), %rdi      # 0x31c0
movb $0x1, %al
callq 0x1030
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x1fec
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x10f0
xorl %eax, %eax
addq $0x60, %rsp
popq %rbx
retq
jmp 0x1ffe
jmp 0x1ffe
jmp 0x1ffe
jmp 0x1ffe
jmp 0x1ffe
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x2017
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x1160
nop
// File: /workspace/github_cpp_makefile_star2_O1/szmer[P]brill/./src/rules_scoretab.cpp
// Function: RuleScore::RuleScore(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, long long)
RuleScore::RuleScore(string cue1, string cue2, string alter_tag, string target, long long id) {
	good = bad = 0;

	rule = Rule();
	rule.cue1 = cue1;
	rule.cue2 = cue2;
	rule.alter_tag = alter_tag;
	rule.target = target;
	rule.id = id;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %r9, -0x30(%rbp)
movq %r8, -0x40(%rbp)
movq %rcx, -0x48(%rbp)
movq %rdx, -0x58(%rbp)
movq %rsi, -0x68(%rbp)
movq %rdi, %r14
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
xorl %r13d, %r13d
movq %r13, 0x8(%rdi)
movb %r13b, 0x10(%rdi)
leaq 0x20(%rdi), %r12
leaq 0x30(%rdi), %rax
movq %rax, 0x20(%rdi)
movq %r13, 0x28(%rdi)
movb %r13b, 0x30(%rdi)
leaq 0x40(%rdi), %rax
movq %rax, -0x60(%rbp)
leaq 0x50(%rdi), %rax
movq %rax, 0x40(%rdi)
movq %r13, 0x48(%rdi)
movb %r13b, 0x50(%rdi)
leaq 0x60(%rdi), %rbx
leaq 0x70(%rdi), %rax
movq %rax, 0x60(%rdi)
movq %r13, 0x68(%rdi)
movb %r13b, 0x70(%rdi)
movq %r13, 0x88(%rdi)
leaq -0xf0(%rbp), %rdi
movl $0x88, %edx
xorl %esi, %esi
callq 0x2160
leaq -0xe0(%rbp), %rax
movq %rax, -0x10(%rax)
movq %r13, -0x8(%rax)
movb %r13b, (%rax)
leaq -0xc0(%rbp), %rax
movq %rax, -0x10(%rax)
movq %r13, -0x8(%rax)
movb %r13b, (%rax)
leaq -0xa0(%rbp), %rax
movq %rax, -0x10(%rax)
movq %r13, -0x8(%rax)
movb %r13b, (%rax)
leaq -0x80(%rbp), %r15
movq %r15, -0x10(%r15)
movq %r13, -0x8(%r15)
movb %r13b, (%r15)
movq -0x60(%rbp), %r13
movq %r14, %rdi
leaq -0xf0(%rbp), %rsi
callq 0x22a0
movq %r12, -0x50(%rbp)
movq %r12, %rdi
leaq -0xd0(%rbp), %rsi
callq 0x22a0
movq %r13, %rdi
leaq -0xb0(%rbp), %rsi
callq 0x22a0
movq %rbx, -0x38(%rbp)
movq %rbx, %rdi
leaq -0x90(%rbp), %rsi
callq 0x22a0
movq 0x10(%r15), %rax
movq %rax, 0x80(%r14)
movq -0x10(%r15), %rdi
cmpq %r15, %rdi
je 0x512e
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2240
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x5150
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2240
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x5172
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x2240
movq -0xf0(%rbp), %rdi
leaq -0xe0(%rbp), %rax
cmpq %rax, %rdi
je 0x5194
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x2240
movq %r14, %rdi
movq -0x68(%rbp), %rsi
callq 0x2150
movq -0x50(%rbp), %rdi
movq -0x58(%rbp), %rsi
callq 0x2150
movq %r13, %rdi
movq -0x48(%rbp), %rsi
callq 0x2150
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x2150
movq -0x30(%rbp), %rax
movq %rax, 0x80(%r14)
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %r14, %rdi
callq 0xad18
movq %rbx, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O1/szmer[P]brill/./src/rules_scoretab.cpp
// Function: RulesScoreTab::inc_bad(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void RulesScoreTab::inc_bad(int rule_type, string cue1, string good_target) {
	// Compute the high and low bound for rules concerning this situation.
	long long rule_ind_lowbnd = rule_type * RULE_RANGE
			+ tag_index[ cue1 ] * tag_index.size()*tag_index.size()
			+ tag_index[ good_target ] * tag_index.size(); // here as the alter_tag
	long long rule_ind_hibnd = rule_type * RULE_RANGE
			+ tag_index[ cue1 ] * tag_index.size()*tag_index.size()
			+ tag_index[ good_target ] * tag_index.size()
			+ tag_index.size();

	inc_bad_general(rule_ind_lowbnd, rule_ind_hibnd);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r13
movq %rcx, -0x38(%rbp)
movq %rdx, -0x30(%rbp)
movq %rdi, %rbx
imull $0x767ed6b, %esi, %eax  # imm = 0x767ED6B
movslq %eax, %r14
leaq 0x68(%rdi), %r12
movq %r12, %rdi
movq %rdx, %rsi
callq 0xab48
movslq (%rax), %rax
movq 0x90(%rbx), %r15
imulq %r15, %r15
imulq %rax, %r15
movq %r12, %rdi
movq %r13, %rsi
callq 0xab48
movslq (%rax), %r13
imulq 0x90(%rbx), %r13
addq %r14, %r13
addq %r15, %r13
movq %r12, %rdi
movq -0x30(%rbp), %rsi
callq 0xab48
movslq (%rax), %rax
movq 0x90(%rbx), %r15
imulq %r15, %r15
imulq %rax, %r15
movq %r12, %rdi
movq -0x38(%rbp), %rsi
callq 0xab48
movslq (%rax), %rax
movq 0x90(%rbx), %rcx
imulq %rcx, %rax
addq %rcx, %r14
addq %rax, %r14
addq %r15, %r14
movq %rbx, %rdi
movq %r13, %rsi
movq %r14, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5b1a
// File: /workspace/github_cpp_makefile_star2_O1/szmer[P]brill/./src/rules_scoretab.cpp
// Function: RulesScoreTab::inc_bad_general(long long, long long)
void RulesScoreTab::inc_bad_general(long long rule_ind_lowbnd, long long rule_ind_hibnd) {
	long long exam_ind = rule_ind_lowbnd - 1;

	// Basically ascend to the highest index in the set, until we reach indices which are out of the
	// scope (.upper_bound() returns first larger value that is present in a set)
	while((exam_ind =
			* eligible_rules.upper_bound(exam_ind))
			< rule_ind_hibnd && exam_ind >= rule_ind_lowbnd
	) {

		tab[exam_ind].bad ++;

		if(tab[exam_ind].good - tab[exam_ind].bad <= 0)
			eligible_rules.erase(exam_ind);

		if(eligible_rules.size() == 0)
			throw "No good rules found";

		// We must avoid dereferencing .end() iterator in the loop condition:
		if(exam_ind == * eligible_rules.rbegin())
			return;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, -0x48(%rbp)
movq %rdi, %r15
movq %rsi, -0x40(%rbp)
leaq -0x1(%rsi), %rax
leaq -0x30(%rbp), %r12
movq %rax, (%r12)
leaq 0x8(%rdi), %rax
movq %rax, -0x38(%rbp)
leaq 0x10(%rdi), %rbx
leaq 0x38(%rdi), %r13
movq 0x18(%r15), %rax
movq %rbx, %rcx
testq %rax, %rax
je 0x5b7d
movq -0x30(%rbp), %rdx
movq %rbx, %rcx
xorl %esi, %esi
cmpq 0x20(%rax), %rdx
setge %sil
cmovlq %rax, %rcx
movq 0x10(%rax,%rsi,8), %rax
testq %rax, %rax
jne 0x5b65
movq 0x20(%rcx), %rax
movq %rax, -0x30(%rbp)
cmpq -0x48(%rbp), %rax
jge 0x5bff
cmpq -0x40(%rbp), %rax
jl 0x5bff
movq %r13, %rdi
movq %r12, %rsi
callq 0xad8e
incl 0x8c(%rax)
movq %r13, %rdi
movq %r12, %rsi
callq 0xad8e
movl 0x88(%rax), %r14d
movq %r13, %rdi
movq %r12, %rsi
callq 0xad8e
cmpl 0x8c(%rax), %r14d
jg 0x5be2
movq -0x38(%rbp), %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0xd730
movq %r14, %rdi
movq %rax, %rsi
callq 0xd7b2
cmpq $0x0, 0x30(%r15)
je 0x5c0e
movq -0x30(%rbp), %r14
movq %rbx, %rdi
callq 0x2180
cmpq 0x20(%rax), %r14
jne 0x5b52
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x8, %edi
callq 0x2130
leaq 0x86c5(%rip), %rcx      # 0xe2e4
movq %rcx, (%rax)
movq 0xd397(%rip), %rsi      # 0x12fc0
movq %rax, %rdi
xorl %edx, %edx
callq 0x2380
nop
// File: /workspace/github_cpp_makefile_star2_O1/szmer[P]brill/./src/rules_scoretab.cpp
// Function: RulesScoreTab::inc_bad_ext(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void RulesScoreTab::inc_bad_ext(int rule_type, string cue1, string cue2, string good_target) {
	// Compute the high and low bound for rules concerning this situation.
	long long rule_ind_lowbnd = rule_type * EXT_RULE_RANGE
			+ tag_index[ cue1 ] * tag_index.size()*tag_index.size()*tag_index.size()
			+ tag_index[ cue2 ] * tag_index.size()*tag_index.size()
			+ tag_index[ good_target ] * tag_index.size(); // here as the alter_tag
	long long rule_ind_hibnd = rule_type * EXT_RULE_RANGE
			+ tag_index[ cue1 ] * tag_index.size()*tag_index.size()*tag_index.size()
			+ tag_index[ cue2 ] * tag_index.size()*tag_index.size()
			+ tag_index[ good_target ] * tag_index.size()
			+ tag_index.size();

	inc_bad_general(rule_ind_lowbnd, rule_ind_hibnd);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, -0x30(%rbp)
movq %rcx, %r14
movq %rcx, -0x40(%rbp)
movq %rdx, -0x38(%rbp)
movq %rdi, %rbx
movslq %esi, %rax
movabsq $0xe6f93c791, %r13      # imm = 0xE6F93C791
imulq %rax, %r13
movq %r13, -0x48(%rbp)
leaq 0x68(%rdi), %r15
movq %r15, %rdi
movq %rdx, %rsi
callq 0xab48
movslq (%rax), %rax
movq 0x90(%rbx), %r12
imulq %r12, %rax
imulq %r12, %r12
imulq %rax, %r12
movq %r15, %rdi
movq %r14, %rsi
callq 0xab48
movslq (%rax), %rax
movq 0x90(%rbx), %r14
imulq %r14, %r14
imulq %rax, %r14
addq %r13, %r14
movq %r15, %rdi
movq -0x30(%rbp), %rsi
callq 0xab48
movslq (%rax), %r13
imulq 0x90(%rbx), %r13
addq %r14, %r13
addq %r12, %r13
movq %r15, %rdi
movq -0x38(%rbp), %rsi
callq 0xab48
movslq (%rax), %rax
movq 0x90(%rbx), %r12
imulq %r12, %rax
imulq %r12, %r12
imulq %rax, %r12
movq %r15, %rdi
movq -0x40(%rbp), %rsi
callq 0xab48
movslq (%rax), %rax
movq 0x90(%rbx), %r14
imulq %r14, %r14
imulq %rax, %r14
addq -0x48(%rbp), %r14
movq %r15, %rdi
movq -0x30(%rbp), %rsi
callq 0xab48
movslq (%rax), %rax
movq 0x90(%rbx), %rcx
imulq %rcx, %rax
addq %rcx, %r14
addq %r12, %r14
addq %rax, %r14
movq %rbx, %rdi
movq %r13, %rsi
movq %r14, %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5b1a
nop
// File: /workspace/github_cpp_makefile_star2_O1/szmer[P]brill/./src/rules_scoretab.cpp
// Function: RulesScoreTab::get_winner()
Rule * RulesScoreTab::get_winner() {
	RuleScore * winner_score;
	winner_score = & tab[ *(eligible_rules.begin()) ];
	// Look for a winner (one with better score than all already known):
	for(set<long long>::iterator rls_pnt = eligible_rules.begin(); rls_pnt != eligible_rules.end(); rls_pnt++)
		if((tab[ *rls_pnt ].good - tab[ *rls_pnt ].bad) > (winner_score->good - winner_score->bad))
			winner_score = & tab[ *rls_pnt ];

	Rule * winner;
	winner = & winner_score->rule;

	return winner;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x38(%rdi), %r14
movq 0x20(%rdi), %rsi
addq $0x20, %rsi
movq %r14, %rdi
callq 0xad8e
movq %rax, %r15
movq 0x20(%rbx), %r12
addq $0x10, %rbx
movq %rbx, -0x30(%rbp)
cmpq %rbx, %r12
je 0x9a39
leaq 0x20(%r12), %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0xad8e
movl 0x88(%rax), %ebx
movq %r14, %rdi
movq %r13, %rsi
callq 0xad8e
subl 0x8c(%rax), %ebx
movl 0x88(%r15), %eax
subl 0x8c(%r15), %eax
cmpl %eax, %ebx
jle 0x9a28
movq %r14, %rdi
movq %r13, %rsi
callq 0xad8e
movq %rax, %r15
movq %r12, %rdi
callq 0x2290
movq %rax, %r12
cmpq -0x30(%rbp), %rax
jne 0x99e1
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/szmer[P]brill/Brill-train.cpp
// Function: prepare_output_file(std::basic_ofstream<char, std::char_traits<char>>*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, Corpus*)
void prepare_output_file(ofstream * out, string name, Corpus * corp) {
  if(name == "")
    return;

  out->open(name.c_str(), ofstream::trunc);

  for(map<string,string>::iterator i = corp->unigram_table.begin();
                                   i != corp->unigram_table.end(); i++)
    (*out) << i->first << ' ' << i->second << '\t';

  corp->unigram_table.clear();

  (*out) << "\n";
  out->flush();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x441d(%rip), %rsi      # 0xe146
movq %r15, %rdi
callq 0x20b0
testl %eax, %eax
je 0x9de7
movq (%r15), %rsi
movq %rbx, %rdi
movl $0x20, %edx
callq 0x2050
leaq 0x18(%r14), %rax
movq %rax, -0x38(%rbp)
movq 0x30(%r14), %r12
addq $0x20, %r14
cmpq %r14, %r12
je 0x9dc2
leaq -0x29(%rbp), %r13
leaq -0x2a(%rbp), %r15
movq 0x20(%r12), %rsi
movq 0x28(%r12), %rdx
movq %rbx, %rdi
callq 0x2280
movb $0x20, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x2280
movq 0x40(%r12), %rsi
movq 0x48(%r12), %rdx
movq %rax, %rdi
callq 0x2280
movb $0x9, -0x2a(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x2280
movq %r12, %rdi
callq 0x21a0
movq %rax, %r12
cmpq %r14, %rax
jne 0x9d66
movq -0x38(%rbp), %rdi
callq 0xbd24
leaq 0x478a(%rip), %rsi      # 0xe55c
movl $0x1, %edx
movq %rbx, %rdi
callq 0x2280
movq %rbx, %rdi
callq 0x2190
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/iZhangHui[P]CppPrimer/CH16_TemplatesAndGenericProgramming/examples/compareDef.cc
// Function: main
int main()
{
	bool i = compare(0, 42); // uses less; i is -1

	// result depends on the isbns in item1 and item2
	Sales_data item1(cin), item2(cin);
	bool j = compare(item1, item2, compareIsbn);

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x68, %rsp
movq 0x2d14(%rip), %rbx      # 0x3fe0
leaq -0x68(%rbp), %rdi
movq %rbx, %rsi
callq 0x154a
leaq -0x38(%rbp), %rdi
movq %rbx, %rsi
callq 0x154a
leaq -0x68(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x137f
testb %al, %al
jne 0x1302
leaq -0x38(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x137f
leaq -0x28(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x131b
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x10c0
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1334
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x10c0
xorl %eax, %eax
addq $0x68, %rsp
popq %rbx
popq %rbp
retq
movq %rax, %rbx
jmp 0x135e
movq %rax, %rbx
leaq -0x28(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x135e
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x10c0
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1377
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x10c0
movq %rbx, %rdi
callq 0x1130
// File: /workspace/github_cpp_makefile_star2_O1/ruankotovich[P]TextCorrection-Trie/src/trie.hpp
// Function: trie::Trie_t::putIndividualWord(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void putIndividualWord(std::string& str, const std::string& content)
    {
      TrieNode_t*currentRoot, *lastRoot;
      currentRoot = this->m_lambdaNode.get();

      wchar_t chart[str.size()];
      push_string_to_wchar(chart, str);

      for (unsigned int i = 0; i < wcslen(chart); i++) {

        unsigned int code = this->m_characterMap[chart[i]];

        lastRoot = currentRoot;
        currentRoot = currentRoot->getChild(code);
        if (!currentRoot) {
          currentRoot = lastRoot->insertNReturnChild(code);
        }
      }

      if (currentRoot != this->m_lambdaNode.get()) {

        if (!currentRoot->isEndOfWord()) {
          currentRoot->buildContent();
          currentRoot->setEndOfWord(true);
        }

        currentRoot->addValue(content);
      }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, -0x38(%rbp)
movq %rsi, %rdx
movq %rdi, %r12
movq (%rdi), %r13
movq 0x8(%rsi), %rax
movq %rsp, %rbx
leaq 0xf(,%rax,4), %r14
andq $-0x10, %r14
movq %rbx, %r15
subq %r14, %r15
movq %r15, %rsp
negq %r14
movq %r15, %rsi
callq 0x4020
cmpl $0x0, (%rbx,%r14)
movq %r12, -0x40(%rbp)
je 0x3126
leaq 0x8(%r12), %rax
movq %rax, -0x48(%rbp)
movl $0x1, %ebx
xorl %r14d, %r14d
movl (%r15,%r14,4), %eax
movl %eax, -0x2c(%rbp)
movq -0x48(%rbp), %rdi
leaq -0x2c(%rbp), %rsi
callq 0x4a1a
movl (%rax), %r14d
movq %r13, %rdi
movl %r14d, %esi
callq 0x48e2
movq %rax, %r12
testq %rax, %rax
jne 0x310f
movq %r13, %rdi
movl %r14d, %esi
callq 0x492a
movq %rax, %r12
movl %ebx, %r14d
movq %r15, %rdi
callq 0x2120
incl %ebx
movq %r12, %r13
cmpq %r14, %rax
ja 0x30d7
jmp 0x3129
movq %r13, %r12
movq -0x40(%rbp), %rax
cmpq (%rax), %r12
je 0x31ac
cmpb $0x0, 0x34(%r12)
jne 0x3168
leaq 0x38(%r12), %rbx
movl $0x18, %edi
callq 0x2160
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x4c32
movb $0x1, 0x34(%r12)
leaq -0x58(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0x38(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0x68(%rbp), %rbx
movq %rbx, %rdi
callq 0x6dbe
movq 0x38(%r12), %rdi
movq %rbx, %rsi
callq 0x4c56
movq -0x68(%rbp), %rdi
cmpq %r14, %rdi
je 0x31ac
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2180
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r14, %rdi
je 0x31d3
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2180
movq %rbx, %rdi
callq 0x2270
nop
// File: /workspace/github_cpp_makefile_star2_O1/ruankotovich[P]TextCorrection-Trie/src/trie.hpp
// Function: trie::Trie_t::searchKeyword(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
std::pair<bool, std::vector<std::string>> searchKeyword(std::string& keyword)
    {
      std::transform(keyword.begin(), keyword.end(), keyword.begin(), ::tolower);
      wchar_t chart[keyword.size()];
      push_string_to_wchar(chart, keyword);

      TrieNode_t* currentNode = this->m_lambdaNode.get();

      for (unsigned int i = 0; i < wcslen(chart); i++) {
        currentNode = currentNode->getChild(m_characterMap[chart[i]]);

        if (currentNode == nullptr) {
          break;
        }
      }

      if (currentNode != nullptr) {
        if (currentNode->isEndOfWord()) {
          return { true, *currentNode->getValues() };
        }
      }

      return { false, this->m_emptyResponse };
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, -0x40(%rbp)
movq 0x8(%rdx), %rbx
testq %rbx, %rbx
je 0x361b
movq (%r12), %r14
xorl %r15d, %r15d
movsbl (%r14,%r15), %edi
callq 0x21e0
movb %al, (%r14,%r15)
incq %r15
cmpq %r15, %rbx
jne 0x3605
movq 0x8(%r12), %rax
movq %rsp, %rbx
leaq 0xf(,%rax,4), %r14
andq $-0x10, %r14
movq %rbx, %r15
subq %r14, %r15
movq %r15, %rsp
negq %r14
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x4020
movq (%r13), %r12
cmpl $0x0, (%rbx,%r14)
movq %r13, -0x38(%rbp)
je 0x36a1
addq $0x8, %r13
movl $0x1, %r14d
xorl %ebx, %ebx
movl (%r15,%rbx,4), %eax
movl %eax, -0x2c(%rbp)
movq %r13, %rdi
leaq -0x2c(%rbp), %rsi
callq 0x4a1a
movl (%rax), %esi
movq %r12, %rdi
callq 0x48e2
testq %rax, %rax
je 0x369e
movq %rax, %r12
movl %r14d, %ebx
movq %r15, %rdi
callq 0x2120
incl %r14d
cmpq %rbx, %rax
ja 0x3664
jmp 0x36a1
xorl %r12d, %r12d
testq %r12, %r12
je 0x36b7
cmpb $0x1, 0x34(%r12)
jne 0x36b7
movq 0x38(%r12), %rsi
movb $0x1, %al
jmp 0x36c4
movq -0x38(%rbp), %rsi
addq $0xe0, %rsi
xorl %eax, %eax
movq -0x40(%rbp), %rbx
movb %al, (%rbx)
movq %rbx, %rdi
addq $0x8, %rdi
callq 0x5d1e
movq %rbx, %rax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/ruankotovich[P]TextCorrection-Trie/src/trie.hpp
// Function: trie::Trie_t::addStopWords(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void addStopWords(const std::string& filename)
    {
      std::string currentLine;
      std::ifstream fileInputStream(filename);

      while (std::getline(fileInputStream, currentLine)) {
        std::transform(currentLine.begin(), currentLine.end(), currentLine.begin(), ::tolower);
        m_stopWords.insert(currentLine);
      }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x228, %rsp            # imm = 0x228
movq %rdi, %rbx
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x20(%rsp), %r14
movq %r14, %rdi
movl $0x8, %edx
callq 0x2240
addq $0xa8, %rbx
movq %rsp, %r15
movq 0x20(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2290
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x3a6e
movq 0x8(%rsp), %r13
testq %r13, %r13
je 0x3a61
movq (%rsp), %rbp
xorl %r12d, %r12d
movsbl (%rbp,%r12), %edi
callq 0x21e0
movb %al, (%rbp,%r12)
incq %r12
cmpq %r12, %r13
jne 0x3a49
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3e78
jmp 0x3a06
leaq 0x20(%rsp), %rdi
callq 0x2060
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x3a93
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2180
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x3ab7
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x2060
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x3ad2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2180
movq %rbx, %rdi
callq 0x2270
// File: /workspace/github_cpp_makefile_star2_O1/ruankotovich[P]TextCorrection-Trie/src/trie.hpp
// Function: trie::Trie_t::push_string_to_wchar(wchar_t*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void push_string_to_wchar(wchar_t* w, std::string& a)
    {
      setlocale(LC_ALL, "");
      const char* nw = a.c_str();
      mbsrtowcs(w, &nw, a.length(), NULL);
      w[a.length()] = 0;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
leaq 0x4045(%rip), %rsi      # 0x8076
movl $0x6, %edi
callq 0x2140
movq (%rbx), %rax
movq %rsp, %rsi
movq %rax, (%rsi)
movq 0x8(%rbx), %rdx
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x2170
movq 0x8(%rbx), %rax
movl $0x0, (%r14,%rax,4)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/ruankotovich[P]TextCorrection-Trie/src/trie.hpp
// Function: trie::TrieNode_t::insertNReturnChild(unsigned int)
TrieNode_t* insertNReturnChild(unsigned int value)
    {
      auto finder = this->m_childrenMap.find(value);

      if(finder != this->m_childrenMap.end()){
        return finder->second.get();
      }else{
        return this->m_childrenMap.emplace(value, std::unique_ptr<TrieNode_t>(new TrieNode_t(value))).first->second.get();
      }

    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movl %esi, 0xc(%rsp)
movq 0x10(%rdi), %rdx
leaq 0x8(%rdi), %rax
movq %rax, %rcx
testq %rdx, %rdx
je 0x4965
movq %rax, %rcx
xorl %esi, %esi
cmpl %ebp, 0x20(%rdx)
setb %sil
cmovaeq %rdx, %rcx
movq 0x10(%rdx,%rsi,8), %rdx
testq %rdx, %rdx
jne 0x494e
movq %rax, %rdx
cmpq %rax, %rcx
je 0x4977
cmpl %ebp, 0x20(%rcx)
cmovaq %rax, %rcx
movq %rcx, %rdx
cmpq %rax, %rdx
je 0x4982
movq 0x28(%rdx), %rbx
jmp 0x49f2
movl $0x40, %edi
callq 0x2160
leaq 0x8(%rax), %rcx
movl $0x0, 0x8(%rax)
xorl %edx, %edx
movq %rdx, 0x10(%rax)
movq %rcx, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq %rdx, 0x28(%rax)
movl %ebp, 0x30(%rax)
movb $0x0, 0x34(%rax)
movq %rdx, 0x38(%rax)
movq %rsp, %rdx
movq %rax, (%rdx)
leaq 0xc(%rsp), %rsi
movq %rbx, %rdi
callq 0x4ac2
movq 0x28(%rax), %rbx
movq (%rsp), %r14
testq %r14, %r14
je 0x49f2
leaq 0x38(%r14), %rdi
callq 0x3d7e
movq %r14, %rdi
callq 0x3db2
movl $0x40, %esi
movq %r14, %rdi
callq 0x2180
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
movq (%rsp), %rsi
testq %rsi, %rsi
je 0x4a12
movq %rsp, %rdi
callq 0x3d54
movq %rbx, %rdi
callq 0x2270
// File: /workspace/github_cpp_makefile_star2_O1/ruankotovich[P]TextCorrection-Trie/src/trie.hpp
// Function: trie::TrieNode_t::getChildren()
std::vector<TrieNode_t*> getChildren()
    {
      std::vector<TrieNode_t*> nodes;
      for (auto &cur : this->m_childrenMap) {
        nodes.push_back(cur.second.get());
      }
      return nodes;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq 0x18(%rsi), %r15
addq $0x8, %r14
cmpq %r14, %r15
je 0x4f3b
movq %rsp, %r12
movq 0x28(%r15), %rax
movq %rax, (%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x4f20
movq %rax, (%rsi)
addq $0x8, 0x8(%rbx)
jmp 0x4f2b
movq %rbx, %rdi
movq %r12, %rdx
callq 0x5742
movq %r15, %rdi
callq 0x20e0
movq %rax, %r15
cmpq %r14, %rax
jne 0x4f04
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x4f61
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x2180
movq %r14, %rdi
callq 0x2270
nop
// File: /workspace/github_cpp_makefile_star2_O1/Silica[P]PSL/PSLc.cpp
// Function: execute(_IO_FILE*, PSL::variable&)
void execute(FILE *exe, variable &arg)
{
	int i = sizeof(dword) * 2;
	fseek(exe, -i, SEEK_END);
	dword l;
	int end = ftell(exe);
	fread(&l, 1, sizeof(dword), exe);
	fseek(exe, l, SEEK_SET);
	PSLVM p;
	if (p.loadCompiledCode(exe, end - l))
		return;
	p.run(arg);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq $-0x10, %rsi
movl $0x2, %edx
callq 0xc1f0
movq %r14, %rdi
callq 0xc030
movq %rax, %r15
leaq 0x10(%rsp), %r12
movl $0x1, %esi
movl $0x8, %edx
movq %r12, %rdi
movq %r14, %rcx
callq 0xc230
movq (%r12), %r12
movq %r14, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0xc1f0
leaq 0x18(%rsp), %r13
movq %r13, %rdi
movl $0x1, %esi
callq 0xcdbc
leaq 0x1bfe9(%rip), %rsi     # 0x286f2
movl $0x6, %edi
callq 0xc180
movslq %r15d, %rdx
subq %r12, %rdx
movq %r13, %rdi
movq %r14, %rsi
callq 0xcb4c
testl %eax, %eax
jne 0xc744
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rsi
movq %rbx, %rdx
callq 0xcbf4
movq 0x8(%rsp), %rdi
callq 0xfe30
leaq 0x18(%rsp), %rdi
callq 0x1300c
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rdi
callq 0xe0af
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x1300c
movq %rbx, %rdi
callq 0xc290