LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/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
subl $0x1, %ebx
jb 0x1b58
movq (%r12), %rsi
movq 0x8(%r12), %rdx
subq %rsi, %rdx
sarq $0x3, %rdx
movq %r13, %rdi
callq *%r15
jmp 0x1b3b
callq 0x1040
subq %r14, %rax
cvtsi2sd %rax, %xmm0
divsd 0x14eb(%rip), %xmm0     # 0x3058
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
pushq $0x1
popq %rbp
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl %ebp, %ecx
callq 0x1b1f
movsd 0x14bd(%rip), %xmm1     # 0x3060
ucomisd %xmm0, %xmm1
jbe 0x1bae
imull $0xa, %ebp, %ebp
jmp 0x1b8b
movl %ebp, %eax
cvtsi2sd %rax, %xmm1
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
callq 0x1080
cvttsd2si %xmm0, %r12
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl %r12d, %ecx
callq 0x1b1f
movl %r12d, %eax
cvtsi2sd %rax, %xmm1
divsd %xmm1, %xmm0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x1f82
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 0x1437(%rip), %xmm2     # 0x3070
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x143b(%rip), %xmm3     # 0x3080
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 0x141b(%rip), %rdi      # 0x309f
movb $0x1, %al
callq 0x1030
movq 0x333e(%rip), %rax      # 0x4fd0
movq (%rax), %rdi
callq 0x1120
movq 0x8(%rsp), %rdi
movq 0x10(%rbx), %rdx
leaq 0x20(%rsp), %rsi
callq 0x1b77
movsd %xmm0, (%rsp)
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x1fd3
testb %al, %al
je 0x1cfa
movq (%rbx), %rsi
leaq 0x144c(%rip), %rdi      # 0x3119
movsd (%rsp), %xmm0
movb $0x1, %al
callq 0x1030
leaq 0x8(%rsp), %rdi
callq 0x138c
leaq 0x20(%rsp), %rdi
callq 0x1ffc
movsd (%rsp), %xmm0
addq $0x38, %rsp
popq %rbx
popq %r14
retq
leaq 0x13b7(%rip), %rdi      # 0x30b8
leaq 0x13c2(%rip), %rsi      # 0x30ca
leaq 0x13c6(%rip), %rcx      # 0x30d5
pushq $0x6d
popq %rdx
callq 0x10c0
movq %rax, %rbx
jmp 0x1d29
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x138c
leaq 0x20(%rsp), %rdi
callq 0x1ffc
movq %rbx, %rdi
callq 0x1170
// File: /workspace/github_cpp_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
subq $0x60, %rsp
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
andq $0x0, 0x20(%rsp)
cmpl $0x2, %edi
jne 0x1da4
movq %rsi, %rbx
movq 0x8(%rsi), %rsi
leaq 0x48(%rsp), %rdi
callq 0x1a69
leaq 0x10(%rsp), %r14
leaq 0x48(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x2494
movq %r15, %rdi
callq 0x1ffc
movq 0x8(%r14), %rsi
subq (%r14), %rsi
sarq $0x3, %rsi
movq 0x8(%rbx), %rdx
leaq 0x138e(%rip), %rdi      # 0x3129
xorl %eax, %eax
callq 0x1030
jmp 0x1de4
leaq 0x48(%rsp), %rdi
callq 0x19ac
leaq 0x10(%rsp), %rbx
leaq 0x48(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2494
movq %r14, %rdi
callq 0x1ffc
movq 0x8(%rbx), %rsi
subq (%rbx), %rsi
sarq $0x3, %rsi
leaq 0x1368(%rip), %rdi      # 0x3145
xorl %eax, %eax
callq 0x1030
leaq 0x2f75(%rip), %rdi      # 0x4d60
leaq 0x10(%rsp), %rsi
callq 0x1bed
movsd %xmm0, 0x8(%rsp)
leaq 0x2fa6(%rip), %rdi      # 0x4da8
leaq 0x10(%rsp), %rsi
callq 0x1bed
movsd %xmm0, 0x40(%rsp)
leaq 0x2f5f(%rip), %rdi      # 0x4d78
leaq 0x10(%rsp), %rsi
callq 0x1bed
movsd %xmm0, 0x38(%rsp)
leaq 0x2f60(%rip), %rdi      # 0x4d90
leaq 0x10(%rsp), %rsi
callq 0x1bed
movsd %xmm0, 0x30(%rsp)
movsd 0x8(%rsp), %xmm0
divsd 0x40(%rsp), %xmm0
leaq 0x1317(%rip), %rdi      # 0x316a
movb $0x1, %al
callq 0x1030
movsd 0x8(%rsp), %xmm0
divsd 0x38(%rsp), %xmm0
leaq 0x1322(%rip), %rdi      # 0x318f
movb $0x1, %al
callq 0x1030
movsd 0x8(%rsp), %xmm0
divsd 0x30(%rsp), %xmm0
leaq 0x1329(%rip), %rdi      # 0x31b0
movb $0x1, %al
callq 0x1030
leaq 0x10(%rsp), %rdi
callq 0x1ffc
xorl %eax, %eax
addq $0x60, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x1eae
jmp 0x1eae
jmp 0x1eae
jmp 0x1eae
jmp 0x1eae
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x1ffc
movq %rbx, %rdi
callq 0x1170
nop
// File: /workspace/github_cpp_makefile_star2_O2/iZhangHui[P]CppPrimer/CH08_TheIOLibrary/examples/add_itemV2.cc
// Function: main
int main()
{
	Sales_data data1, data2;
	if (read(cin, data1) && read(cin, data2)) {  // read the transactions
		if (data1.isbn() == data2.isbn()) {      // check isbns
			Sales_data sum = add(data1, data2);  // add the transactions
			print(cout, sum);                    // print the results
			cout << endl;                        // followed by a newline 
		}
	} else
		cerr << "Input failed!" << endl;        

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xb8, %rsp
leaq -0x98(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorl %ecx, %ecx
movb %cl, (%rax)
andl $0x0, 0x10(%rax)
andq $0x0, 0x18(%rax)
leaq -0x68(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb %cl, (%rax)
andl $0x0, 0x10(%rax)
andq $0x0, 0x18(%rax)
movq 0x2d10(%rip), %rdi      # 0x3fd8
leaq -0xa8(%rbp), %rsi
callq 0x147e
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x1300
movq 0x2cef(%rip), %rdi      # 0x3fd8
leaq -0x78(%rbp), %rsi
callq 0x147e
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
je 0x1340
movq 0x2ce9(%rip), %rdi      # 0x3ff0
leaq 0xcf6(%rip), %rsi       # 0x2004
callq 0x10a0
movq %rax, %rdi
callq 0x1050
leaq -0x78(%rbp), %rdi
callq 0x1040
leaq -0xa8(%rbp), %rdi
callq 0x1040
xorl %eax, %eax
addq $0xb8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq -0x48(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x10c0
leaq -0xc8(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x10c0
leaq -0x48(%rbp), %rbx
leaq -0xc8(%rbp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1400
movl %eax, %r15d
movq %r14, %rdi
callq 0x1040
movq %rbx, %rdi
callq 0x1040
testb %r15b, %r15b
je 0x131b
leaq -0x48(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
leaq -0x78(%rbp), %rdx
callq 0x1510
movq 0x2c1f(%rip), %rdi      # 0x3fc8
leaq -0x48(%rbp), %rsi
callq 0x1542
movq 0x2c0f(%rip), %rdi      # 0x3fc8
callq 0x1050
leaq -0x48(%rbp), %rdi
callq 0x1040
jmp 0x131b
jmp 0x13e0
jmp 0x13d0
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x1040
jmp 0x13e3
jmp 0x13e0
movq %rax, %rbx
leaq -0x78(%rbp), %rdi
callq 0x1040
leaq -0xa8(%rbp), %rdi
callq 0x1040
movq %rbx, %rdi
callq 0x1100
// File: /workspace/github_cpp_makefile_star2_O2/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 $0x98, %rsp
movq %r9, -0x30(%rbp)
movq %r8, -0x38(%rbp)
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %rbx
movq %rdi, %r14
callq 0x7518
andq $0x0, 0x88(%r14)
leaq -0xb0(%rbp), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x40(%rax)
movups %xmm0, 0x50(%rax)
movups %xmm0, 0x60(%rax)
movups %xmm0, (%rax)
andq $0x0, 0x70(%rax)
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
leaq -0x90(%rbp), %rax
movq %rax, -0x10(%rax)
xorl %ecx, %ecx
movb %cl, (%rax)
leaq -0x70(%rbp), %rax
movq %rax, -0x10(%rax)
movb %cl, (%rax)
leaq -0x50(%rbp), %rax
movq %rax, -0x10(%rax)
movb %cl, (%rax)
leaq -0xc0(%rbp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x7560
movq %r15, %rdi
callq 0x75b0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2140
leaq 0x20(%r14), %rdi
movq %r13, %rsi
callq 0x2140
leaq 0x40(%r14), %rdi
movq %r12, %rsi
callq 0x2140
leaq 0x60(%r14), %rdi
movq -0x38(%rbp), %rsi
callq 0x2140
movq -0x30(%rbp), %rax
movq %rax, 0x80(%r14)
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %r14, %rdi
callq 0x75b0
movq %rbx, %rdi
callq 0x2370
nop
// File: /workspace/github_cpp_makefile_star2_O2/szmer[P]brill/./src/rules_scoretab.cpp
// Function: RulesScoreTab::inc_good(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_good(int rule_type, string cue1, string alter_tag, string target) {

	long long rule_id = rule_type * RULE_RANGE
			+ tag_index[ cue1 ] * tag_index.size()*tag_index.size()
			+ tag_index[ alter_tag ] * tag_index.size()
			+ tag_index[ target ];

	if(tab.find(rule_id) == tab.end())  // if there's no entry for this rule, create one
		tab[ rule_id ] = RuleScore(cue1, "", alter_tag, target, rule_id);

	tab[rule_id].good ++;
	eligible_rules.insert(rule_id);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movq %r8, -0x50(%rbp)
movq %rcx, %r13
movq %rdi, %rbx
imull $0x767ed6b, %esi, %eax  # imm = 0x767ED6B
movslq %eax, %r15
leaq 0x68(%rdi), %r14
movq %r14, %rdi
movq %rdx, -0x48(%rbp)
movq %rdx, %rsi
callq 0x7306
movslq (%rax), %rax
movq 0x90(%rbx), %r12
imulq %r12, %r12
imulq %rax, %r12
movq %r14, %rdi
movq %r13, -0x40(%rbp)
movq %r13, %rsi
callq 0x7306
movslq (%rax), %r13
imulq 0x90(%rbx), %r13
addq %r15, %r13
movq -0x50(%rbp), %r15
addq %r12, %r13
movq %r14, %rdi
movq %r15, %rsi
callq 0x7306
movslq (%rax), %rax
addq %r13, %rax
leaq -0x38(%rbp), %rsi
movq %rax, (%rsi)
leaq 0x38(%rbx), %r14
movq %r14, %rdi
callq 0x9bc8
leaq 0x40(%rbx), %rcx
cmpq %rcx, %rax
jne 0x46a7
movq -0x40(%rbp), %r12
leaq -0xd0(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x2290
leaq 0x6b46(%rip), %rsi      # 0xb146
leaq -0xb0(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x6f56
leaq -0x90(%rbp), %rdi
movq %r12, %rsi
callq 0x2290
leaq -0x70(%rbp), %rdi
movq %r15, %rsi
callq 0x2290
movq -0x38(%rbp), %r9
leaq -0x160(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
leaq -0xb0(%rbp), %rdx
leaq -0x90(%rbp), %rcx
leaq -0x70(%rbp), %r8
callq 0x436a
leaq -0x38(%rbp), %rsi
movq %r14, %rdi
callq 0x75e2
leaq -0x160(%rbp), %r15
movq %rax, %rdi
movq %r15, %rsi
callq 0x7634
movq %r15, %rdi
callq 0x75b0
leaq -0x70(%rbp), %rdi
callq 0x23e8
leaq -0x90(%rbp), %rdi
callq 0x23e8
leaq -0xb0(%rbp), %rdi
callq 0x23e8
leaq -0xd0(%rbp), %rdi
callq 0x23e8
leaq -0x38(%rbp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x75e2
incl 0x88(%rax)
addq $0x8, %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x9f60
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x160(%rbp), %rdi
callq 0x75b0
jmp 0x46f1
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x23e8
jmp 0x46ff
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x23e8
jmp 0x4710
movq %rax, %rbx
leaq -0xb0(%rbp), %rdi
callq 0x23e8
jmp 0x4721
movq %rax, %rbx
leaq -0xd0(%rbp), %rdi
callq 0x23e8
movq %rbx, %rdi
callq 0x2370
nop
// File: /workspace/github_cpp_makefile_star2_O2/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), %r13
leaq 0x38(%rdi), %rbx
leaq 0x10(%rdi), %rax
movq %rax, -0x38(%rbp)
movq %r13, %rdi
movq %r12, %rsi
callq 0xa0f2
movq 0x20(%rax), %rax
movq %rax, -0x30(%rbp)
cmpq -0x48(%rbp), %rax
jge 0x4ac7
cmpq -0x40(%rbp), %rax
jl 0x4ac7
movq %rbx, %rdi
movq %r12, %rsi
callq 0x75e2
incl 0x8c(%rax)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x75e2
movl 0x88(%rax), %r14d
movq %rbx, %rdi
movq %r12, %rsi
callq 0x75e2
cmpl 0x8c(%rax), %r14d
jg 0x4aad
movq %r13, %rdi
movq %r12, %rsi
callq 0xa12e
cmpq $0x0, 0x30(%r15)
je 0x4ad6
movq -0x30(%rbp), %r14
movq -0x38(%rbp), %rdi
callq 0x2160
cmpq 0x20(%rax), %r14
jne 0x4a4c
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x8
popq %rdi
callq 0x2120
leaq 0x67ff(%rip), %rcx      # 0xb2e4
movq %rcx, (%rax)
movq 0xb4d9(%rip), %rsi      # 0xffc8
movq %rax, %rdi
xorl %edx, %edx
callq 0x2350
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x75e2
movq %rax, %r12
movq 0x20(%rbx), %r15
addq $0x10, %rbx
movq %rbx, -0x30(%rbp)
cmpq -0x30(%rbp), %r15
je 0x67cf
leaq 0x20(%r15), %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x75e2
movl 0x88(%rax), %ebx
movq %r14, %rdi
movq %r13, %rsi
callq 0x75e2
subl 0x8c(%rax), %ebx
movl 0x88(%r12), %eax
subl 0x8c(%r12), %eax
cmpl %eax, %ebx
jle 0x67c2
movq %r14, %rdi
movq %r13, %rsi
callq 0x75e2
movq %rax, %r12
movq %r15, %rdi
callq 0x2240
movq %rax, %r15
jmp 0x6774
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/szmer[P]brill/Brill-train.cpp
// Function: print_usage()
void print_usage() {
  cout << "Usage: Brill-train CORPUS_FILE TAGSET_FILE [-o OUTPUT_FILE] [-m DESIRED_MARGIN]" << endl << "      [-r MAX_RULES]" << endl << endl;
  cout << "   CORPUS_FILE  should be in format: word\\tcorrect-tag\\n for each word-tag pair," << endl << "                with each sentence starting with one empty line." << endl;
  cout << "   TAGSET_FILE  should contain all the possible tags: tag\\n for each tag." << endl;
  cout << "   -o (OUTPUT_FILE)  will be overwritten." << endl << endl;
  cout << "   Ways to tell when to stop learning." << endl;
  cout << "   -m  is desired margin, as a fractional number, of improvement of the last" << endl << "       transformation comparing to the one step earlier." << endl;
  cout << "   -r  specifies how many rules should the trainer produce (default: 1000)." << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq 0x97ea(%rip), %rbx      # 0xffd8
leaq 0x4b03(%rip), %rsi      # 0xb2f8
movq %rbx, %rdi
callq 0x21f0
movq %rax, %rdi
callq 0x2110
leaq 0x4b3c(%rip), %rsi      # 0xb348
movq %rax, %rdi
callq 0x21f0
movq %rax, %rdi
callq 0x2110
movq %rax, %rdi
callq 0x2110
leaq 0x4b32(%rip), %rsi      # 0xb35d
movq %rbx, %rdi
callq 0x21f0
movq %rax, %rdi
callq 0x2110
leaq 0x4b6c(%rip), %rsi      # 0xb3ae
movq %rax, %rdi
callq 0x21f0
movq %rax, %rdi
callq 0x2110
leaq 0x4b96(%rip), %rsi      # 0xb3ef
movq %rbx, %rdi
callq 0x21f0
movq %rax, %rdi
callq 0x2110
leaq 0x4bc9(%rip), %rsi      # 0xb439
movq %rbx, %rdi
callq 0x21f0
movq %rax, %rdi
callq 0x2110
movq %rax, %rdi
callq 0x2110
leaq 0x4bd4(%rip), %rsi      # 0xb463
movq %rbx, %rdi
callq 0x21f0
movq %rax, %rdi
callq 0x2110
leaq 0x4be4(%rip), %rsi      # 0xb48a
movq %rbx, %rdi
callq 0x21f0
movq %rax, %rdi
callq 0x2110
leaq 0x4c1a(%rip), %rsi      # 0xb4d7
movq %rax, %rdi
callq 0x21f0
movq %rax, %rdi
callq 0x2110
leaq 0x4c3c(%rip), %rsi      # 0xb510
movq %rbx, %rdi
callq 0x21f0
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2110
// File: /workspace/github_cpp_makefile_star2_O2/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
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x483e(%rip), %rsi      # 0xb146
movq %r15, %rdi
callq 0x765c
testb %al, %al
je 0x6923
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%r15), %rsi
pushq $0x20
popq %r15
movq %rbx, %rdi
movl %r15d, %edx
callq 0x2040
movq 0x30(%r14), %r13
movq %r14, -0x30(%rbp)
addq $0x20, %r14
pushq $0x9
popq %r12
cmpq %r14, %r13
je 0x6985
leaq 0x20(%r13), %rsi
movq %rbx, %rdi
callq 0x21e0
movq %rax, %rdi
movl %r15d, %esi
callq 0x2250
leaq 0x40(%r13), %rsi
movq %rax, %rdi
callq 0x21e0
movq %rax, %rdi
movl %r12d, %esi
callq 0x2250
movq %r13, %rdi
callq 0x2180
movq %rax, %r13
jmp 0x6945
movq -0x30(%rbp), %rdi
addq $0x18, %rdi
callq 0x85f6
leaq 0x4bc3(%rip), %rsi      # 0xb55c
movq %rbx, %rdi
callq 0x21f0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2170
// File: /workspace/github_cpp_makefile_star2_O2/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 0x2d24(%rip), %rbx      # 0x3fe0
leaq -0x68(%rbp), %rdi
movq %rbx, %rsi
callq 0x13fe
leaq -0x38(%rbp), %rdi
movq %rbx, %rsi
callq 0x13fe
leaq -0x68(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x132f
testb %al, %al
jne 0x12f2
leaq -0x38(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x132f
leaq -0x38(%rbp), %rdi
callq 0x1070
leaq -0x68(%rbp), %rdi
callq 0x1070
xorl %eax, %eax
addq $0x68, %rsp
popq %rbx
popq %rbp
retq
movq %rax, %rbx
jmp 0x131e
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x1070
leaq -0x68(%rbp), %rdi
callq 0x1070
movq %rbx, %rdi
callq 0x1130
// File: /workspace/github_cpp_makefile_star2_O2/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 $0x38, %rsp
movq %rdx, -0x38(%rbp)
movq %rsi, %rdx
movq %rdi, %rbx
movq (%rdi), %r14
movq 0x8(%rsi), %rax
movq %rsp, %r12
leaq 0xf(,%rax,4), %rax
andq $-0x10, %rax
subq %rax, %r12
movq %r12, %rsp
movq %r12, %rsi
callq 0x376e
movq %rbx, -0x40(%rbp)
leaq 0x8(%rbx), %r13
xorl %ebx, %ebx
movl %ebx, %ebx
movq %r12, %rdi
callq 0x2110
cmpq %rbx, %rax
jbe 0x2c10
movl (%r12,%rbx,4), %eax
movl %eax, -0x2c(%rbp)
movq %r13, %rdi
leaq -0x2c(%rbp), %rsi
callq 0x4276
movl (%rax), %r15d
movq %r14, %rdi
movl %r15d, %esi
callq 0x417e
testq %rax, %rax
jne 0x2c09
movq %r14, %rdi
movl %r15d, %esi
callq 0x41ac
incl %ebx
movq %rax, %r14
jmp 0x2bc9
movq -0x40(%rbp), %rax
cmpq (%rax), %r14
je 0x2c51
cmpb $0x0, 0x34(%r14)
jne 0x2c2d
movq %r14, %rdi
callq 0x4244
movb $0x1, 0x34(%r14)
leaq -0x60(%rbp), %rbx
movq %rbx, %rdi
movq -0x38(%rbp), %rsi
callq 0x21e0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x426c
leaq -0x60(%rbp), %rdi
callq 0x20b0
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x20b0
movq %rbx, %rdi
callq 0x2280
// File: /workspace/github_cpp_makefile_star2_O2/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 (%rdx), %rbx
movq 0x8(%rdx), %r14
xorl %r15d, %r15d
cmpq %r15, %r14
je 0x2f57
movsbl (%rbx,%r15), %edi
callq 0x21f0
movb %al, (%rbx,%r15)
incq %r15
jmp 0x2f3f
movq 0x8(%r12), %rax
movq %rsp, %r15
leaq 0xf(,%rax,4), %rax
andq $-0x10, %rax
subq %rax, %r15
movq %r15, %rsp
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x376e
movq (%r13), %r12
movq %r13, -0x38(%rbp)
addq $0x8, %r13
xorl %eax, %eax
leaq -0x2c(%rbp), %rbx
movl %eax, %r14d
movq %r15, %rdi
callq 0x2110
cmpq %r14, %rax
jbe 0x2fcb
movl (%r15,%r14,4), %eax
movl %eax, -0x2c(%rbp)
movq %r13, %rdi
movq %rbx, %rsi
callq 0x4276
movl (%rax), %esi
movq %r12, %rdi
callq 0x417e
movq %rax, %r12
leal 0x1(%r14), %eax
testq %r12, %r12
jne 0x2f91
jmp 0x2fe1
testq %r12, %r12
je 0x2fe1
cmpb $0x1, 0x34(%r12)
jne 0x2fe1
movq 0x38(%r12), %rsi
movb $0x1, %al
jmp 0x2fee
movq -0x38(%rbp), %rsi
addq $0xe0, %rsi
xorl %eax, %eax
movq -0x40(%rbp), %rbx
movb %al, (%rbx)
movq %rbx, %rdi
addq $0x8, %rdi
callq 0x5824
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_O2/ruankotovich[P]TextCorrection-Trie/src/trie.hpp
// Function: trie::Trie_t::searchSimilarKeyword(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
std::priority_queue<TrieResponse_t, std::vector<TrieResponse_t>, TrieResponseComparator_t> searchSimilarKeyword(std::string& keyword)
    {
      std::priority_queue<TrieResponse_t, std::vector<TrieResponse_t>, TrieResponseComparator_t> ocurrencesQueue;

      std::transform(keyword.begin(), keyword.end(), keyword.begin(), ::tolower);

      std::set<ActiveNode_t> lastActiveNodes = this->m_activeNodeSet;

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

      for (unsigned int i = 0; i < wcslen(chart); i++) {
        lastActiveNodes = buildNewSet(lastActiveNodes, m_characterMap[chart[i]]);
      }

      for (auto node : lastActiveNodes) {

        if (node.node->isEndOfWord()) {
          for (auto& _target : *node.node->getValues()) {
            ocurrencesQueue.emplace(_target, node.editDistance);
          }
        }
      }

      return ocurrencesQueue;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, %r12
movq %rsi, -0x38(%rbp)
movq %rdi, %rbx
xorps %xmm0, %xmm0
andq $0x0, 0x10(%rdi)
movups %xmm0, (%rdi)
movq (%rdx), %r14
movq 0x8(%rdx), %r15
xorl %r13d, %r13d
cmpq %r13, %r15
je 0x305d
movsbl (%r14,%r13), %edi
callq 0x21f0
movb %al, (%r14,%r13)
incq %r13
jmp 0x3045
movq -0x38(%rbp), %r14
leaq 0x78(%r14), %rsi
leaq -0x78(%rbp), %rdi
callq 0x5bce
movq %rsp, -0x40(%rbp)
movq 0x8(%r12), %rax
movq %rsp, %r15
leaq 0xf(,%rax,4), %rax
andq $-0x10, %rax
subq %rax, %r15
movq %r15, %rsp
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x376e
leaq 0x8(%r14), %rax
movq %rax, -0x48(%rbp)
xorl %r12d, %r12d
leaq -0xb0(%rbp), %r13
leaq -0x78(%rbp), %r14
movl %r12d, %r12d
movq %r15, %rdi
callq 0x2110
cmpq %r12, %rax
jbe 0x30fd
movl (%r15,%r12,4), %eax
movl %eax, -0x2c(%rbp)
movq -0x48(%rbp), %rdi
leaq -0x2c(%rbp), %rsi
callq 0x4276
movl (%rax), %ecx
movq %r13, %rdi
movq -0x38(%rbp), %rsi
movq %r14, %rdx
callq 0x5910
movq %r14, %rdi
movq %r13, %rsi
callq 0x62d2
movq %r13, %rdi
callq 0x4022
incl %r12d
jmp 0x30b0
leaq -0x70(%rbp), %rax
movq 0x10(%rax), %r15
leaq -0xa8(%rbp), %r14
leaq -0x70(%rbp), %rax
cmpq %rax, %r15
je 0x315f
movups 0x20(%r15), %xmm0
movaps %xmm0, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
cmpb $0x1, 0x34(%rax)
jne 0x3152
movq 0x38(%rax), %rax
movq (%rax), %r12
movq 0x8(%rax), %r13
cmpq %r13, %r12
je 0x3152
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x5bb8
addq $0x20, %r12
jmp 0x3139
movq %r15, %rdi
callq 0x21a0
movq %rax, %r15
jmp 0x310c
movq -0x40(%rbp), %rsp
leaq -0x78(%rbp), %rdi
callq 0x4022
movq %rbx, %rax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x3191
jmp 0x3185
movq %rax, %r14
leaq -0x78(%rbp), %rdi
callq 0x4022
movq %rbx, %rdi
callq 0x678a
movq %r14, %rdi
callq 0x2280
nop
// File: /workspace/github_cpp_makefile_star2_O2/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)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x20(%rsp), %rdi
pushq $0x8
popq %rdx
callq 0x2250
addq $0xa8, %rbx
leaq 0x20(%rsp), %r14
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x2050
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x3286
movq (%rsp), %r12
movq 0x8(%rsp), %r13
xorl %ebp, %ebp
cmpq %rbp, %r13
je 0x3279
movsbl (%r12,%rbp), %edi
callq 0x21f0
movb %al, (%r12,%rbp)
incq %rbp
jmp 0x3261
movq %rbx, %rdi
movq %r15, %rsi
callq 0x357c
jmp 0x323d
leaq 0x20(%rsp), %rdi
callq 0x2060
movq %rsp, %rdi
callq 0x20b0
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x32bc
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x2060
movq %rsp, %rdi
callq 0x20b0
movq %rbx, %rdi
callq 0x2280
// File: /workspace/github_cpp_makefile_star2_O2/ruankotovich[P]TextCorrection-Trie/src/trie.hpp
// Function: trie::Trie_t::encodeCharacters(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void encodeCharacters(const std::string& filename)
    {
      // std::cout << "[LOG] Encoding characters." << std::endl;
      unsigned int lineCode = 1;
      std::string currentLine;
      std::ifstream fileInputStream(filename);

      while (std::getline(fileInputStream, currentLine)) {

        m_reverseCharacterMap.emplace(lineCode, currentLine.back());

        wchar_t anomalousCharacters[currentLine.size()];
        push_string_to_wchar(anomalousCharacters, currentLine);

        for (unsigned int i = 0; i < wcslen(anomalousCharacters); i++) {
          m_characterMap.emplace(anomalousCharacters[i], lineCode);
        }

        lineCode++;
      }

      m_reverseCharacterMap[0] = '#'; // lambda character
      std::cout << "Charmap has been mapped.\n";
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
movq %rdi, %r13
movl $0x1, -0x2c(%rbp)
leaq -0x50(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x270(%rbp), %rdi
pushq $0x8
popq %rdx
callq 0x2250
leaq 0x40(%r13), %rax
movq %rax, -0x38(%rbp)
leaq 0x8(%r13), %r15
leaq -0x2c(%rbp), %r12
leaq -0x270(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x2050
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x33db
movq -0x60(%rbp), %rax
movq -0x58(%rbp), %rcx
leaq (%rax,%rcx), %rdx
decq %rdx
movq -0x38(%rbp), %rdi
movq %r12, %rsi
callq 0x37b0
movq %rsp, -0x40(%rbp)
movq -0x58(%rbp), %rax
movq %rsp, %rbx
leaq 0xf(,%rax,4), %rax
andq $-0x10, %rax
subq %rax, %rbx
movq %rbx, %rsp
movq %r13, %r14
movq %r13, %rdi
movq %rbx, %rsi
leaq -0x60(%rbp), %rdx
callq 0x376e
xorl %r13d, %r13d
movl %r13d, %r13d
movq %rbx, %rdi
callq 0x2110
cmpq %r13, %rax
jbe 0x33cc
leaq (%rbx,%r13,4), %rsi
movq %r15, %rdi
movq %r12, %rdx
callq 0x3b3c
incl %r13d
jmp 0x33a8
incl -0x2c(%rbp)
movq -0x40(%rbp), %rsp
movq %r14, %r13
jmp 0x3339
leaq -0x64(%rbp), %rsi
andl $0x0, (%rsi)
movq -0x38(%rbp), %rdi
callq 0x3e98
movb $0x23, (%rax)
movq 0x8bdb(%rip), %rdi      # 0xbfd0
leaq 0x3d27(%rip), %rsi      # 0x7123
callq 0x2150
leaq -0x270(%rbp), %rdi
callq 0x2060
leaq -0x60(%rbp), %rdi
callq 0x20b0
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3430
jmp 0x3430
movq %rax, %rbx
jmp 0x343f
jmp 0x3430
movq %rax, %rbx
leaq -0x270(%rbp), %rdi
callq 0x2060
leaq -0x60(%rbp), %rdi
callq 0x20b0
movq %rbx, %rdi
callq 0x2280
// File: /workspace/github_cpp_makefile_star2_O2/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 0x38db(%rip), %rsi      # 0x705a
pushq $0x6
popq %rdi
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
andl $0x0, (%r14,%rax,4)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/ruankotovich[P]TextCorrection-Trie/src/trie.hpp
// Function: trie::TrieNode_t::getChild(unsigned int)
TrieNode_t* getChild(unsigned int value)
    {
      auto child = this->m_childrenMap.find(value);
      if (child != this->m_childrenMap.end()) {
        return child->second.get();
      }
      return nullptr;
    }

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0xc(%rsp), %rax
movl %esi, (%rax)
movq %rax, %rsi
callq 0x4342
addq $0x8, %rbx
cmpq %rbx, %rax
je 0x41a4
movq 0x28(%rax), %rax
jmp 0x41a6
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x4(%rsp), %rax
movl %esi, (%rax)
movq %rax, %rsi
callq 0x4342
leaq 0x8(%rbx), %rcx
cmpq %rcx, %rax
je 0x41d2
movq 0x28(%rax), %rbx
jmp 0x4225
pushq $0x40
popq %rdi
callq 0x2160
andl $0x0, 0x8(%rax)
leaq 0x4(%rsp), %rsi
andq $0x0, 0x10(%rax)
movl (%rsi), %ecx
leaq 0x8(%rax), %rdx
movq %rdx, 0x18(%rax)
movq %rdx, 0x20(%rax)
andq $0x0, 0x28(%rax)
movl %ecx, 0x30(%rax)
movb $0x0, 0x34(%rax)
andq $0x0, 0x38(%rax)
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rbx, %rdi
callq 0x4394
movq 0x28(%rax), %rbx
leaq 0x8(%rsp), %rdi
callq 0x3472
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x3472
movq %rbx, %rdi
callq 0x2280
nop
// File: /workspace/github_cpp_makefile_star2_O2/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
andq $0x0, 0x10(%rdi)
movups %xmm0, (%rdi)
movq 0x18(%rsi), %r12
addq $0x8, %r14
movq %rsp, %r15
cmpq %r14, %r12
je 0x47a8
movq 0x28(%r12), %rax
movq %rax, (%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x5168
movq %r12, %rdi
callq 0x20f0
movq %rax, %r12
jmp 0x4782
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x56fe
movq %r14, %rdi
callq 0x2280
// File: /workspace/github_cpp_makefile_star2_O2/ddunbar[P]PDSample/RNG.cpp
// Function: RNG::RNG(unsigned long*, int)
RNG::RNG(unsigned long init_key[], int key_length)
{
    int i, j, k;
	seed(19650218UL);
    i=1; j=0;
    k = (N>key_length ? N : key_length);
    for (; k; k--) {
        mt[i] = (mt[i] ^ ((mt[i-1] ^ (mt[i-1] >> 30)) * 1664525UL))
          + init_key[j] + j; /* non linear */
        mt[i] &= 0xffffffffUL; /* for WORDSIZE > 32 machines */
        i++; j++;
        if (i>=N) { mt[0] = mt[N-1]; i=1; }
        if (j>=key_length) j=0;
    }
    for (k=N-1; k; k--) {
        mt[i] = (mt[i] ^ ((mt[i-1] ^ (mt[i-1] >> 30)) * 1566083941UL))
          - i; /* non linear */
        mt[i] &= 0xffffffffUL; /* for WORDSIZE > 32 machines */
        i++;
        if (i>=N) { mt[0] = mt[N-1]; i=1; }
    }

    mt[0] = 0x80000000UL; /* MSB is 1; assuring non-zero initial array */ 
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movl $0x12bd6aa, %esi        # imm = 0x12BD6AA
callq 0x2442
cmpl $0x271, %ebp            # imm = 0x271
movl $0x270, %ecx            # imm = 0x270
cmovgel %ebp, %ecx
xorl %edx, %edx
pushq $0x1
popq %rsi
movl %esi, %eax
xorl %edi, %edi
subl $0x1, %ecx
jb 0x24f8
movslq %eax, %r8
movq -0x8(%rbx,%r8,8), %r9
movq %r9, %r10
shrq $0x1e, %r10
xorl %r9d, %r10d
imull $0x19660d, %r10d, %r9d  # imm = 0x19660D
xorl (%rbx,%r8,8), %r9d
movslq %edi, %r10
movl (%r14,%r10,8), %r11d
addl %r10d, %r11d
addl %r9d, %r11d
movq %r11, (%rbx,%r8,8)
cmpl $0x26f, %eax            # imm = 0x26F
jge 0x24e3
incl %eax
jmp 0x24ef
movq 0x1378(%rbx), %rax
movq %rax, (%rbx)
movl %esi, %eax
incl %edi
cmpl %ebp, %edi
cmovgel %edx, %edi
jmp 0x24a5
movl $0xfffffd91, %ecx       # imm = 0xFFFFFD91
pushq $0x1
popq %rdx
testl %ecx, %ecx
je 0x2541
movslq %eax, %rsi
movq -0x8(%rbx,%rsi,8), %rdi
movq %rdi, %r8
shrq $0x1e, %r8
xorl %edi, %r8d
imull $0x5d588b65, %r8d, %edi # imm = 0x5D588B65
xorl (%rbx,%rsi,8), %edi
subl %esi, %edi
movq %rdi, (%rbx,%rsi,8)
cmpl $0x26f, %eax            # imm = 0x26F
jge 0x2531
incl %eax
jmp 0x253d
movq 0x1378(%rbx), %rax
movq %rax, (%rbx)
movl %edx, %eax
incl %ecx
jmp 0x2500
movl $0x80000000, %eax       # imm = 0x80000000
movq %rax, (%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/ddunbar[P]PDSample/RNG.cpp
// Function: RNG::getInt32()
unsigned long RNG::getInt32()
{
    unsigned long y;
    static unsigned long mag01[2]={0x0UL, MATRIX_A};
    /* mag01[x] = x * MATRIX_A  for x=0,1 */

    if (mti >= N) { /* generate N words at one time */
        int kk;

        for (kk=0;kk<N-M;kk++) {
            y = (mt[kk]&UPPER_MASK)|(mt[kk+1]&LOWER_MASK);
            mt[kk] = mt[kk+M] ^ (y >> 1) ^ mag01[y & 0x1UL];
        }
        for (;kk<N-1;kk++) {
            y = (mt[kk]&UPPER_MASK)|(mt[kk+1]&LOWER_MASK);
            mt[kk] = mt[kk+(M-N)] ^ (y >> 1) ^ mag01[y & 0x1UL];
        }
        y = (mt[N-1]&UPPER_MASK)|(mt[0]&LOWER_MASK);
        mt[N-1] = mt[M-1] ^ (y >> 1) ^ mag01[y & 0x1UL];

        mti = 0;
    }
  
    y = mt[mti++];

    /* Tempering */
    y ^= (y >> 11);
    y ^= (y << 7) & 0x9d2c5680UL;
    y ^= (y << 15) & 0xefc60000UL;
    y ^= (y >> 18);

    return y;
}

// Assembly:
movslq 0x1380(%rdi), %rax
cmpq $0x270, %rax            # imm = 0x270
jl 0x25aa
xorl %ecx, %ecx
movl $0x80000000, %edx       # imm = 0x80000000
leaq 0x6ac5(%rip), %rax      # 0x9030
cmpq $0xe3, %rcx
je 0x25b5
movl (%rdi,%rcx,8), %esi
andl %edx, %esi
movl 0x8(%rdi,%rcx,8), %r8d
movl %r8d, %r9d
andl $0x7ffffffe, %r9d       # imm = 0x7FFFFFFE
orl %esi, %r9d
shrl %r9d
andl $0x1, %r8d
movq (%rax,%r8,8), %rsi
xorq 0xc68(%rdi,%rcx,8), %rsi
xorq %r9, %rsi
movq %rsi, (%rdi,%rcx,8)
incq %rcx
jmp 0x256b
movq (%rdi,%rax,8), %rcx
incl %eax
jmp 0x2636
movl $0xe4, %ecx
movl $0x80000000, %edx       # imm = 0x80000000
cmpq $0x270, %rcx            # imm = 0x270
je 0x25ff
movl -0x8(%rdi,%rcx,8), %esi
andl %edx, %esi
movl (%rdi,%rcx,8), %r8d
movl %r8d, %r9d
andl $0x7ffffffe, %r9d       # imm = 0x7FFFFFFE
orl %esi, %r9d
andl $0x1, %r8d
movq (%rax,%r8,8), %rsi
xorq -0x720(%rdi,%rcx,8), %rsi
shrl %r9d
xorq %r9, %rsi
movq %rsi, -0x8(%rdi,%rcx,8)
incq %rcx
jmp 0x25bf
movl $0x80000000, %edx       # imm = 0x80000000
andl 0x1378(%rdi), %edx
movq (%rdi), %rcx
movl %ecx, %esi
andl $0x7ffffffe, %esi       # imm = 0x7FFFFFFE
orl %edx, %esi
movl %ecx, %edx
andl $0x1, %edx
movq (%rax,%rdx,8), %rax
xorq 0xc60(%rdi), %rax
shrl %esi
xorq %rsi, %rax
movq %rax, 0x1378(%rdi)
pushq $0x1
popq %rax
movl %eax, 0x1380(%rdi)
movq %rcx, %rax
shrq $0xb, %rax
xorq %rcx, %rax
movl %eax, %ecx
shll $0x7, %ecx
andl $0x9d2c5680, %ecx       # imm = 0x9D2C5680
xorq %rax, %rcx
movl %ecx, %edx
shll $0xf, %edx
andl $0xefc60000, %edx       # imm = 0xEFC60000
xorq %rcx, %rdx
movq %rdx, %rax
shrq $0x12, %rax
xorq %rdx, %rax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/ddunbar[P]PDSample/PDSample.cpp
// Function: usage(char*)
void usage(char *app)
{
	printf(	"Usage: %s [-m] [-t] [-r <relax count=0>] [-M <multiplier=10>] [-N <minMaxThrows=1000>] <method> <radius> <output>\n", app);
	printf(	"	-m		maximize point set after sampling\n");
	printf(	"	-t		use tiled domain\n");
	printf(	"	-r		apply the specified number of relaxations after sampling (requires qvoronoi)\n");
	printf(	"	-M		set multiplier for DartThrowing and BestCandidate samplers\n");
	printf(	"	-N		set minimum number of maximum throws for DartThrowing sampler\n");
	printf(	"	available methods = {\n"
			"		DartThrowing, (uses multiplier and minMaxThrows)\n"
			"		BestCandidate, (uses multiplier)\n"
			"		Boundary, \n"
			"		Pure, \n"
			"		LinearPure, \n"
			"		Penrose, \n"
			"		Uniform" "}\n");

	exit(1);
}

// Assembly:
pushq %rax
movq %rdi, %rsi
leaq 0x6881(%rip), %rdi      # 0x9078
xorl %eax, %eax
callq 0x2040
leaq 0x69c0(%rip), %rdi      # 0x91c5
callq 0x2280
leaq 0x69db(%rip), %rdi      # 0x91ec
callq 0x2280
leaq 0x69e5(%rip), %rdi      # 0x9202
callq 0x2280
leaq 0x6a2b(%rip), %rdi      # 0x9254
callq 0x2280
leaq 0x6a5f(%rip), %rdi      # 0x9294
callq 0x2280
leaq 0x6a96(%rip), %rdi      # 0x92d7
callq 0x2280
pushq $0x1
popq %rdi
callq 0x21f0
// File: /workspace/github_cpp_makefile_star2_O2/ddunbar[P]PDSample/PDSampling.cpp
// Function: PDSampler::PDSampler(float, bool, bool)
PDSampler::PDSampler(float _radius, bool _isTiled, bool usesGrid) :
	m_rng((unsigned long) (timeInSeconds()*1000)),
	radius(_radius),
	isTiled(_isTiled)
{
	if (usesGrid) {
			// grid size is chosen so that 4*radius search only 
			// requires searching adjacent cells, this also
			// determines max points per cell
		m_gridSize = (int) ceil(2./(4.*_radius));
		if (m_gridSize<2) m_gridSize = 2;

		m_gridCellSize = 2.0f/m_gridSize;
		m_grid = new int[m_gridSize*m_gridSize][kMaxPointsPerCell];

		for (int y=0; y<m_gridSize; y++) {
			for (int x=0; x<m_gridSize; x++) {
				for (int k=0; k<kMaxPointsPerCell; k++) {
					m_grid[y*m_gridSize + x][k] = -1;
				}
			}
		}
	} else {
		m_gridSize = 0;
		m_gridCellSize = 0;
		m_grid = 0;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movl %esi, %r14d
movss %xmm0, 0x4(%rsp)
movq %rdi, %rbx
leaq 0xcd58(%rip), %rax      # 0xfb48
movq %rax, (%rdi)
leaq 0x8(%rdi), %r15
callq 0x27b8
mulsd 0x65e4(%rip), %xmm0     # 0x93e8
cvttsd2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0x65d8(%rip), %xmm0     # 0x93f0
cvttsd2si %xmm0, %rsi
andq %rcx, %rsi
orq %rax, %rsi
movq %r15, %rdi
callq 0x243c
movss 0x4(%rsp), %xmm1
xorpd %xmm0, %xmm0
andq $0x0, 0x13a0(%rbx)
movupd %xmm0, 0x1390(%rbx)
andq $0x0, 0x13c8(%rbx)
movupd %xmm0, 0x13b8(%rbx)
movss %xmm1, 0x13d0(%rbx)
movb %r14b, 0x13d4(%rbx)
testl %ebp, %ebp
je 0x2f13
leaq 0x1390(%rbx), %r14
leaq 0x13b8(%rbx), %r15
cvtss2sd %xmm1, %xmm1
mulsd 0x6572(%rip), %xmm1     # 0x93f8
movsd 0x6572(%rip), %xmm0     # 0x9400
divsd %xmm1, %xmm0
callq 0x2060
cvttsd2si %xmm0, %eax
cmpl $0x3, %eax
pushq $0x2
popq %rbp
cmovgel %eax, %ebp
cvtsi2ss %ebp, %xmm0
movl %ebp, 0x13b0(%rbx)
movss 0x65b2(%rip), %xmm1     # 0x9468
divss %xmm0, %xmm1
movss %xmm1, 0x13b4(%rbx)
movl %ebp, %eax
imull %eax, %eax
imulq $0x24, %rax, %rdi
callq 0x2030
movq %rax, 0x13a8(%rbx)
movl %ebp, %ecx
imulq $0x24, %rcx, %rdx
xorl %esi, %esi
cmpq %rcx, %rsi
je 0x2f1b
movq %rax, %rdi
xorl %r8d, %r8d
cmpq %rcx, %r8
je 0x2f0b
xorl %r9d, %r9d
cmpq $0x9, %r9
je 0x2f02
orl $-0x1, (%rdi,%r9,4)
incq %r9
jmp 0x2ef2
incq %r8
addq $0x24, %rdi
jmp 0x2eea
incq %rsi
addq %rdx, %rax
jmp 0x2edf
movupd %xmm0, 0x13a8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %r15, %rdi
callq 0x5f54
movq %r14, %rdi
callq 0x5f20
movq %rbx, %rdi
callq 0x2300
nop
// File: /workspace/github_cpp_makefile_star2_O2/ddunbar[P]PDSample/PDSampling.cpp
// Function: PDSampler::getTiled(Vec2)
Vec2 PDSampler::getTiled(Vec2 v)
{
	float x = v.x, y = v.y;

	if (isTiled) {
		if (x<-1) x += 2;
		else if (x>1) x -= 2;

		if (y<-1) y += 2;
		else if (y>1) y -= 2;
	}

	return Vec2(x,y);
}

// Assembly:
movaps %xmm0, %xmm1
shufps $0x55, %xmm0, %xmm1     # xmm1 = xmm1[1,1],xmm0[1,1]
cmpb $0x1, 0x13d4(%rdi)
jne 0x3012
movss 0x649e(%rip), %xmm2     # 0x946c
ucomiss %xmm0, %xmm2
jbe 0x2fdd
movss 0x648d(%rip), %xmm3     # 0x9468
jmp 0x2fee
ucomiss 0x648c(%rip), %xmm0     # 0x9470
jbe 0x2ff2
movss 0x6486(%rip), %xmm3     # 0x9474
addss %xmm3, %xmm0
ucomiss %xmm1, %xmm2
jbe 0x3001
addss 0x6469(%rip), %xmm1     # 0x9468
jmp 0x3012
ucomiss 0x6468(%rip), %xmm1     # 0x9470
jbe 0x3012
addss 0x6462(%rip), %xmm1     # 0x9474
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
retq
// File: /workspace/github_cpp_makefile_star2_O2/ddunbar[P]PDSample/PDSampling.cpp
// Function: PDSampler::getGridXY(Vec2&, int*, int*)
void PDSampler::getGridXY(Vec2 &v, int *gx_out, int *gy_out)
{
	int gx = *gx_out = (int) floor(.5*(v.x + 1)*m_gridSize);
	int gy = *gy_out = (int) floor(.5*(v.y + 1)*m_gridSize);
	if (gx<0 || gx>=m_gridSize || gy<0 || gy>=m_gridSize) {
		printf("Internal error, point outside grid was generated, ignoring.\n");
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movss (%rsi), %xmm0
addss 0x643a(%rip), %xmm0     # 0x9470
cvtss2sd %xmm0, %xmm1
mulsd 0x600e(%rip), %xmm1     # 0x9050
cvtsi2sdl 0x13b0(%rdi), %xmm0
mulsd %xmm1, %xmm0
callq 0x22e0
cvttsd2si %xmm0, %ebp
movl %ebp, (%r15)
movss 0x640e(%rip), %xmm0     # 0x9470
addss 0x4(%r12), %xmm0
cvtss2sd %xmm0, %xmm1
mulsd 0x5fdb(%rip), %xmm1     # 0x9050
cvtsi2sdl 0x13b0(%rbx), %xmm0
mulsd %xmm1, %xmm0
callq 0x22e0
cvttsd2si %xmm0, %eax
movl %eax, (%r14)
testl %ebp, %ebp
js 0x30ac
movl 0x13b0(%rbx), %ecx
cmpl %ebp, %ecx
jle 0x30ac
testl %eax, %eax
js 0x30ac
cmpl %eax, %ecx
jle 0x30ac
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8391(%rip), %rdi      # 0xb444
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2280