LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/DimitriDaSilva[P]42_ft_containers/tester/others/test_pair.cpp
// Function: test_pair_relational_operators()
void
test_pair_relational_operators()
{
	ft::pair<int, char> foo(10, 'z');
	ft::pair<int, char> bar(90, 'a');

	if (foo == bar) std::cout << "foo and bar are equal" << std::endl;
	if (foo != bar) std::cout << "foo and bar are not equal" << std::endl;
	if (foo < bar) std::cout << "foo is less than bar" << std::endl;
	if (foo > bar) std::cout << "foo is greater than bar" << std::endl;
	if (foo <= bar) std::cout << "foo is less than or equal to bar" << std::endl;
	if (foo >= bar) std::cout << "foo is greater than or equal to bar" << std::endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq 0xf8a6(%rip), %rbx      # 0x33fd0
leaq 0x1d47(%rip), %rsi      # 0x26478
movl $0x19, %edx
movq %rbx, %rdi
callq 0x2230
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq 0x1d26(%rip), %rsi      # 0x26492
movl $0x14, %edx
movq %rbx, %rdi
callq 0x2230
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq 0x1d18(%rip), %rsi      # 0x264bf
movl $0x20, %edx
movq %rbx, %rdi
callq 0x2230
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2150
// File: /workspace/github_cpp_makefile_star2_O3/DimitriDaSilva[P]42_ft_containers/tester/others/test_pair.cpp
// Function: test_pair_make_pair()
void
test_pair_make_pair()
{
	ft::pair<int, int> foo;
	ft::pair<int, int> bar;

	foo = ft::make_pair(10, 20);
	bar = ft::make_pair(10.5, 'A');

	std::cout << "foo: " << foo.first << ", " << foo.second << std::endl;
	std::cout << "bar: " << bar.first << ", " << bar.second << std::endl;

	{
		ft::pair<int, int> cpy1 = foo;
		(void)cpy1;
		ft::pair<int, int> cpy2 = bar;
		(void)cpy2;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0xf7de(%rip), %rbx      # 0x33fd0
leaq 0x2b0a(%rip), %rsi      # 0x27303
movl $0x5, %edx
movq %rbx, %rdi
callq 0x2230
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2330
movq %rax, %r15
leaq 0x2aec(%rip), %r14      # 0x27309
movl $0x2, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x2230
movq %r15, %rdi
movl $0x14, %esi
callq 0x2330
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq 0x2aa1(%rip), %rsi      # 0x2730c
movl $0x5, %edx
movq %rbx, %rdi
callq 0x2230
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2330
movq %rax, %rbx
movl $0x2, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x2230
movq %rbx, %rdi
movl $0x41, %esi
callq 0x2330
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2150
// File: /workspace/github_cpp_makefile_star2_O3/DimitriDaSilva[P]42_ft_containers/tester/others/test_pair.cpp
// Function: test_pair()
void
test_pair()
{
	test_wrapper(test_pair_constructors, "constructors");
	test_wrapper(test_pair_assignement_overload, "assignement overload");
	test_wrapper(test_pair_relational_operators, "relational operators");
	test_wrapper(test_pair_make_pair, "make_pair");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x80, %rsp
leaq -0x80(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x1f82(%rip), %rsi      # 0x26878
leaq 0x1f87(%rip), %rdx      # 0x26884
leaq -0x90(%rbp), %rbx
movq %rbx, %rdi
callq 0x2f88
leaq -0x82f(%rip), %rdi      # 0x240e4
movq %rbx, %rsi
callq 0x25dae
movq -0x90(%rbp), %rdi
cmpq %r14, %rdi
je 0x2492c
callq 0x21b0
leaq -0x60(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x29d7(%rip), %rsi      # 0x27312
leaq 0x29e4(%rip), %rdx      # 0x27326
leaq -0x70(%rbp), %rbx
movq %rbx, %rdi
callq 0x2f88
leaq -0x4d5(%rip), %rdi      # 0x24480
movq %rbx, %rsi
callq 0x25dae
movq -0x70(%rbp), %rdi
cmpq %r14, %rdi
je 0x2496b
callq 0x21b0
leaq -0x40(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x29ad(%rip), %rsi      # 0x27327
leaq 0x29ba(%rip), %rdx      # 0x2733b
leaq -0x50(%rbp), %rbx
movq %rbx, %rdi
callq 0x2f88
leaq -0x277(%rip), %rdi      # 0x2471d
movq %rbx, %rsi
callq 0x25dae
movq -0x50(%rbp), %rdi
cmpq %r14, %rdi
je 0x249aa
callq 0x21b0
leaq -0x20(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x2aca(%rip), %rsi      # 0x27483
leaq 0x2acc(%rip), %rdx      # 0x2748c
leaq -0x30(%rbp), %rbx
movq %rbx, %rdi
callq 0x2f88
leaq -0x1f2(%rip), %rdi      # 0x247e1
movq %rbx, %rsi
callq 0x25dae
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0x249e9
callq 0x21b0
addq $0x80, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
movq -0x30(%rbp), %rdi
jmp 0x24a1a
movq %rax, %rbx
movq -0x50(%rbp), %rdi
jmp 0x24a1a
movq %rax, %rbx
movq -0x70(%rbp), %rdi
jmp 0x24a1a
movq %rax, %rbx
movq -0x90(%rbp), %rdi
cmpq %r14, %rdi
je 0x24a24
callq 0x21b0
movq %rbx, %rdi
callq 0x2340
// File: /workspace/github_cpp_makefile_star2_O3/DimitriDaSilva[P]42_ft_containers/tester/others/test_equal.cpp
// Function: test_equal()
void
test_equal()
{
	int myints[] = {20, 40, 60, 80, 100};
	ft::vector<int> myvector(myints, myints + 5);

	// using default comparison:
	if (ft::equal(myvector.begin(), myvector.end(), myints))
		std::cout << "The contents of both sequences are equal." << std::endl;
	else
		std::cout << "The contents of both sequences differ." << std::endl;

	myvector[3] = 81;

	// using predicate comparison:
	if (std::equal (myvector.begin(), myvector.end(), myints, mypredicate))
		std::cout << "The contents of both sequences are equal." << std::endl;
	else
		std::cout << "The contents of both sequences differ." << std::endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movaps 0x28f7(%rip), %xmm0     # 0x27340
leaq -0x3c(%rbp), %rdx
movaps %xmm0, -0x14(%rdx)
movl $0x64, -0x4(%rdx)
leaq -0x30(%rbp), %r14
leaq -0x50(%rbp), %rbx
leaq -0x11(%rbp), %rcx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x24b8c
movq (%r14), %rdi
movq 0x8(%r14), %rdx
subq %rdi, %rdx
je 0x24a96
leaq -0x50(%rbp), %rsi
callq 0x2210
testl %eax, %eax
je 0x24a96
movl $0x26, %edx
leaq 0x28ea(%rip), %rsi      # 0x2737e
jmp 0x24aa2
movl $0x29, %edx
leaq 0x28b2(%rip), %rsi      # 0x27354
movq 0xf527(%rip), %r14      # 0x33fd0
movq %r14, %rdi
callq 0x2230
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq 0xf501(%rip), %rdi      # 0x33fd0
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq -0x30(%rbp), %rax
movl $0x51, 0xc(%rax)
movq -0x28(%rbp), %rdi
movl $0x29, %edx
leaq 0x285d(%rip), %rcx      # 0x27354
cmpq %rdi, %rax
je 0x24b18
leaq 0x287b(%rip), %rsi      # 0x2737e
movl (%rax), %r8d
cmpl (%rbx), %r8d
jne 0x24b1d
addq $0x4, %rax
addq $0x4, %rbx
cmpq %rdi, %rax
jne 0x24b03
movq %rcx, %rsi
jmp 0x24b22
movl $0x26, %edx
movq 0xf4a7(%rip), %rbx      # 0x33fd0
movq %rbx, %rdi
callq 0x2230
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq 0xf481(%rip), %rdi      # 0x33fd0
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x24b6a
callq 0x21b0
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x24b84
callq 0x21b0
movq %rbx, %rdi
callq 0x2340
// File: /workspace/github_cpp_makefile_star2_O3/DimitriDaSilva[P]42_ft_containers/tester/others/test_distance.cpp
// Function: test_distance()
void
test_distance()
{
	ft::vector<int> vec(5, 42);

	std::cout << vec.end() - vec.begin() << std::endl;
	std::cout <<
		ft::distance<ft::vector<int>::iterator>(vec.begin(), vec.end())
		<< std::endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl $0x14, %edi
callq 0x2200
movq %rax, %rbx
xorl %eax, %eax
movl $0x2a, (%rbx,%rax)
addq $0x4, %rax
cmpq $0x14, %rax
jne 0x24c5a
movq 0xf35e(%rip), %rdi      # 0x33fd0
movl $0x5, %esi
callq 0x21c0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq 0xf323(%rip), %rdi      # 0x33fd0
movl $0x5, %esi
callq 0x21c0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x21b0
jmp 0x24cef
movq %rax, %r14
movq %rbx, %rdi
callq 0x21b0
movq %r14, %rdi
callq 0x2340
nop
// File: /workspace/github_cpp_makefile_star2_O3/DimitriDaSilva[P]42_ft_containers/tester/others/test_lexicographical_compare.cpp
// Function: test_lexicographical_compare()
void
test_lexicographical_compare()
{
    char foo[] = "Apple";
    char bar[] = "apartment";

    std::cout << std::boolalpha;

    std::cout << "Comparing foo and bar lexicographically (foo < bar):" << std::endl;

    std::cout << "Using default comparison (operator<): ";
    std::cout << std::lexicographical_compare(foo, foo + 5, bar, bar + 9);
    std::cout << std::endl;

    std::cout << "Using mycomp as comparison object: ";
    std::cout << std::lexicographical_compare(foo, foo + 5, bar, bar + 9, mycomp);
    std::cout << std::endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0xf294(%rip), %rbx      # 0x33fd0
movq (%rbx), %rax
movq -0x18(%rax), %rax
orl $0x1, 0x18(%rbx,%rax)
leaq 0x2666(%rip), %rsi      # 0x273b5
movl $0x34, %edx
movq %rbx, %rdi
callq 0x2230
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq 0x2660(%rip), %rsi      # 0x273ea
movl $0x26, %edx
movq %rbx, %rdi
callq 0x2230
movq %rbx, %rdi
movl $0x1, %esi
callq 0x2320
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq 0x263f(%rip), %rsi      # 0x27411
movl $0x23, %edx
movq %rbx, %rdi
callq 0x2230
xorl %r12d, %r12d
leaq 0x25c2(%rip), %r13      # 0x273ab
leaq 0x25b5(%rip), %rbx      # 0x273a5
movsbl (%r12,%rbx), %edi
movsbl (%r12,%r13), %r14d
callq 0x2280
movl %eax, %r15d
movl %r14d, %edi
callq 0x2280
movb $0x1, %cl
cmpl %eax, %r15d
jl 0x24e20
jg 0x24e1e
incq %r12
cmpq $0x5, %r12
jne 0x24df0
jmp 0x24e20
xorl %ecx, %ecx
movzbl %cl, %esi
movq 0xf1a6(%rip), %rbx      # 0x33fd0
movq %rbx, %rdi
callq 0x2320
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2150
nop
// File: /workspace/github_cpp_makefile_star2_O3/DimitriDaSilva[P]42_ft_containers/tester/others/test_is_integral.cpp
// Function: void test_single_is_integral<bool>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void
test_single_is_integral(std::string const& type_tested)
{
	int value = ft::is_integral<T>::value;
	typedef typename ft::is_integral<T>::value_type value_type;
	typedef typename ft::is_integral<T>::type type;

	if (value
			&& typeid(value_type) == typeid(bool)
			&& typeid(type) == typeid(ft::true_type)
			&& ft::is_integral<T>() == value)
	{
		std::cout << type_tested << " is integral" << std::endl;
	}
	else
	{
		std::cout << type_tested << " is not integral" << std::endl;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq (%rdi), %rsi
movq 0x8(%rdi), %rdx
movq 0xea62(%rip), %rdi      # 0x33fd0
callq 0x2230
movq %rax, %rbx
leaq 0x1f9c(%rip), %rsi      # 0x27519
movl $0xc, %edx
movq %rax, %rdi
callq 0x2230
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2150
// File: /workspace/github_cpp_makefile_star2_O3/DimitriDaSilva[P]42_ft_containers/tester/utils/test_wrappers.cpp
// Function: section_wrapper(void (*)(), std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void
section_wrapper(void f(), std::string section_name)
{
	std::cout << "====== test_" << section_name << " ======" << std::endl;

	try
	{
		f();
	}
	catch (std::exception& e)
	{
		std::cout << e.what() << std::endl;
	}

	std::cout << std::endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
movq 0xe401(%rip), %rbx      # 0x33fd0
leaq 0x1961(%rip), %rsi      # 0x27537
movl $0xc, %edx
movq %rbx, %rdi
callq 0x2230
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %rbx, %rdi
callq 0x2230
movq %rax, %r15
leaq 0x1948(%rip), %rsi      # 0x27544
movl $0x7, %edx
movq %rax, %rdi
callq 0x2230
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
callq *%r14
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2150
movq %rax, %r14
cmpl $0x1, %edx
jne 0x25ca3
movq %r14, %rdi
callq 0x20c0
movq (%rax), %rcx
movq %rax, %rdi
callq *0x10(%rcx)
movq 0xe34c(%rip), %rdi      # 0x33fd0
movq %rax, %rsi
callq 0x21f0
movq %rax, %rdi
callq 0x20d0
callq 0x2310
jmp 0x25c33
movq %rax, %r14
callq 0x2310
movq %r14, %rdi
callq 0x2340
movq %rax, %rdi
callq 0x35f4
// File: /workspace/github_cpp_makefile_star2_O3/DimitriDaSilva[P]42_ft_containers/tester/utils/test_wrappers.cpp
// Function: subsection_wrapper(void (*)(), std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void
subsection_wrapper(void f(), std::string subsection_name)
{
	std::cout << "*** test_" << subsection_name << " ***" << std::endl;

	try
	{
		f();
	}
	catch (std::exception& e)
	{
		std::cout << e.what() << std::endl;
	}

	std::cout << std::endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
movq 0xe306(%rip), %rbx      # 0x33fd0
leaq 0x187b(%rip), %rsi      # 0x2754c
movl $0x9, %edx
movq %rbx, %rdi
callq 0x2230
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %rbx, %rdi
callq 0x2230
movq %rax, %r15
leaq 0x857(%rip), %rsi       # 0x2654e
movl $0x4, %edx
movq %rax, %rdi
callq 0x2230
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
callq *%r14
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2150
movq %rax, %r14
cmpl $0x1, %edx
jne 0x25d9e
movq %r14, %rdi
callq 0x20c0
movq (%rax), %rcx
movq %rax, %rdi
callq *0x10(%rcx)
movq 0xe251(%rip), %rdi      # 0x33fd0
movq %rax, %rsi
callq 0x21f0
movq %rax, %rdi
callq 0x20d0
callq 0x2310
jmp 0x25d2e
movq %rax, %r14
callq 0x2310
movq %r14, %rdi
callq 0x2340
movq %rax, %rdi
callq 0x35f4
// File: /workspace/github_cpp_makefile_star2_O3/DimitriDaSilva[P]42_ft_containers/tester/utils/test_wrappers.cpp
// Function: test_wrapper(void (*)(), std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void
test_wrapper(void f(), std::string test_name)
{
	std::cout << "# test_" << test_name << ": " << std::endl;

	try
	{
		f();
	}
	catch (std::exception& e)
	{
		std::cout << e.what() << std::endl;
	}

	std::cout << std::endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
movq 0xe20b(%rip), %rbx      # 0x33fd0
leaq 0x178a(%rip), %rsi      # 0x27556
movl $0x7, %edx
movq %rbx, %rdi
callq 0x2230
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %rbx, %rdi
callq 0x2230
movq %rax, %r15
leaq 0x161c(%rip), %rsi      # 0x2740e
movl $0x2, %edx
movq %rax, %rdi
callq 0x2230
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
callq *%r14
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2150
movq %rax, %r14
cmpl $0x1, %edx
jne 0x25e99
movq %r14, %rdi
callq 0x20c0
movq (%rax), %rcx
movq %rax, %rdi
callq *0x10(%rcx)
movq 0xe156(%rip), %rdi      # 0x33fd0
movq %rax, %rsi
callq 0x21f0
movq %rax, %rdi
callq 0x20d0
callq 0x2310
jmp 0x25e29
movq %rax, %r14
callq 0x2310
movq %r14, %rdi
callq 0x2340
movq %rax, %rdi
callq 0x35f4
// File: /workspace/github_cpp_makefile_star2_O3/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 0x15c5
leaq 0x3(%rsp), %rbp
movq (%r15), %r13
cmpq $0xb8, %r13
ja 0x153d
movb %r13b, 0x7(%rsp)
movq %rbx, %rdi
leaq 0x7(%rsp), %rsi
callq 0x13c6
jmp 0x15b8
cmpq $0x40b8, %r13           # imm = 0x40B8
ja 0x157a
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 0x15b8
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 0x159f
addq $0x8, %r15
cmpq %r12, %r15
jne 0x151d
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x15df
jmp 0x15df
jmp 0x15df
jmp 0x15df
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x15f6
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x10f0
movq %r14, %rdi
callq 0x1160
// File: /workspace/github_cpp_makefile_star2_O3/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 0x1671
xorl %eax, %eax
leaq 0x1(%rdi), %r8
movzbl (%rdi), %ecx
cmpl $0xb8, %ecx
ja 0x1625
movq %rcx, (%rsi,%rax,8)
incq %rax
movq %r8, %rdi
cmpq %rax, %rdx
jne 0x1605
jmp 0x1671
cmpb $-0x8, %cl
ja 0x1648
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 0x1618
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 0x1618
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x1799
movq %rsp, %r13
movq (%rbp), %rbx
cmpq $0xb1, %rbx
ja 0x16c6
movb %bl, 0x7(%rsp)
movq %r12, %rdi
leaq 0x7(%rsp), %rsi
callq 0x13c6
jmp 0x178c
cmpq $0x40b1, %rbx           # imm = 0x40B1
ja 0x1704
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 0x178c
cmpq $0x840b1, %rbx          # imm = 0x840B1
ja 0x1750
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 0x178c
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 0x1775
addq $0x8, %rbp
cmpq %r15, %rbp
jne 0x16a3
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x17b9
jmp 0x17b9
jmp 0x17b9
jmp 0x17b9
jmp 0x17b9
jmp 0x17b9
jmp 0x17b9
movq %rax, %r14
movq (%r12), %rdi
testq %rdi, %rdi
je 0x17d2
movq 0x10(%r12), %rsi
subq %rdi, %rsi
callq 0x10f0
movq %r14, %rdi
callq 0x1160
// File: /workspace/github_cpp_makefile_star2_O3/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 0x1881
xorl %eax, %eax
leaq 0x1(%rdi), %r8
movzbl (%rdi), %ecx
cmpq $0xb1, %rcx
ja 0x1806
movq %rcx, (%rsi,%rax,8)
incq %rax
movq %r8, %rdi
cmpq %rax, %rdx
jne 0x17e5
jmp 0x1881
cmpb $-0xf, %cl
ja 0x182d
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 0x1852
cmpb $-0x7, %cl
ja 0x1857
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 0x17f9
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 0x17f9
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x1923
leaq 0x6(%rsp), %r15
movq (%r12), %rbp
movq %rbp, %rax
shrq $0x38, %rax
je 0x18d8
movb $0x0, 0x7(%rsp)
movq %rbx, %rdi
leaq 0x7(%rsp), %rsi
callq 0x13c6
movl $0x8, %r14d
jmp 0x1901
movq %rbp, %rax
orq $0x1, %rax
bsrq %rax, %rax
movzbl %al, %eax
leal (%rax,%rax,8), %ecx
leal (%rax,%rcx,4), %ecx
shrl $0x8, %ecx
leal 0x1(%rcx), %eax
movzbl %al, %r14d
leaq 0x1(,%rbp,2), %rbp
shlq %cl, %rbp
movb %bpl, 0x6(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x13c6
shrq $0x8, %rbp
decl %r14d
jne 0x1901
addq $0x8, %r12
cmpq %r13, %r12
jne 0x18b1
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1937
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x194e
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x10f0
movq %r14, %rdi
callq 0x1160
// File: /workspace/github_cpp_makefile_star2_O3/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 0x19b9
xorl %r8d, %r8d
movzbl (%rdi), %eax
testb $0x1, %al
je 0x1978
incq %rdi
shrl %eax
movq %rax, (%rsi,%r8,8)
incq %r8
cmpq %r8, %rdx
jne 0x195e
jmp 0x19b9
orl $0x100, %eax            # imm = 0x100
bsfl %eax, %eax
leal 0x1(%rax), %r9d
cmpl $0x7, %eax
ja 0x19ac
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 0x19b0
movq 0x1(%rdi), %r10
movq %r10, (%rsi,%r8,8)
addq %r9, %rdi
jmp 0x196e
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x1fb4
movq 0x8(%rbx), %rax
subq (%rbx), %rax
cmpq $0xc34ff, %rax          # imm = 0xC34FF
ja 0x1a74
leaq 0x8(%rsp), %r14
movq %rsp, %r15
movq %r14, %rdi
callq 0x20f9
mulsd 0x1636(%rip), %xmm0     # 0x3048
addsd 0x163e(%rip), %xmm0     # 0x3058
callq 0x1170
cvttsd2si %xmm0, %rcx
movq %rcx, %rdx
sarq $0x3f, %rdx
subsd 0x161d(%rip), %xmm0     # 0x3050
cvttsd2si %xmm0, %rax
andq %rdx, %rax
orq %rcx, %rax
movq %rax, (%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x1a59
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x1a68
movq %rbx, %rdi
movq %r15, %rdx
callq 0x2242
movq 0x8(%rbx), %rsi
subq (%rbx), %rsi
cmpq $0xc3500, %rsi          # imm = 0xC3500
jb 0x1a02
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x1a83
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x1a9a
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x10f0
movq %r14, %rdi
callq 0x1160
// File: /workspace/github_cpp_makefile_star2_O3/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 0x15ec(%rip), %rsi      # 0x30a8
movq %r14, %rdi
callq 0x1120
testq %rax, %rax
je 0x1b64
movq %rax, %r15
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq %rax, %rdi
callq 0x1140
testl %eax, %eax
jne 0x1b53
leaq 0x15b9(%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 0x1b12
cmpl $-0x1, %eax
jne 0x1b39
jmp 0x1b47
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x1b2e
movq 0x8(%rsp), %rax
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x1b39
movq %rbx, %rdi
movq %r13, %rdx
callq 0x2362
movq %r15, %rdi
callq 0x1140
testl %eax, %eax
je 0x1af6
jmp 0x1b53
movq %r15, %rdi
callq 0x1190
testl %eax, %eax
jne 0x1b6c
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 0x1b8b
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x10f0
movq %r14, %rdi
callq 0x1160
// File: /workspace/github_cpp_makefile_star2_O3/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 0x1bcd
movq (%r12), %rsi
movq 0x8(%r12), %rdx
subq %rsi, %rdx
sarq $0x3, %rdx
movq %r13, %rdi
callq *%r15
decl %ebx
jne 0x1bb3
callq 0x1040
subq %r14, %rax
cvtsi2sd %rax, %xmm0
divsd 0x147e(%rip), %xmm0     # 0x3060
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x1b93
movsd 0x1453(%rip), %xmm1     # 0x3068
ucomisd %xmm0, %xmm1
jbe 0x1c4c
addl %r12d, %r12d
leal (%r12,%r12,4), %r12d
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl %r12d, %ecx
callq 0x1b93
movsd 0x142d(%rip), %xmm1     # 0x3068
ucomisd %xmm0, %xmm1
ja 0x1c1b
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 0x1b93
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_O3/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 0x2050
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 0x13aa(%rip), %xmm2     # 0x3080
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x13ae(%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 0x138e(%rip), %rdi      # 0x30af
movb $0x1, %al
callq 0x1030
movq 0x32a1(%rip), %rax      # 0x4fd0
movq (%rax), %rdi
callq 0x1110
movq 0x8(%rsp), %rdi
movq 0x10(%rbx), %rdx
leaq 0x20(%rsp), %rsi
callq 0x1bec
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 0x1dcd
cmpq %rdi, %rax
je 0x1d7c
callq 0x1100
testl %eax, %eax
jne 0x1dcd
movq (%rbx), %rsi
leaq 0x13a3(%rip), %rdi      # 0x3129
movsd (%rsp), %xmm0
movb $0x1, %al
callq 0x1030
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1da9
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x10f0
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x1dc0
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x10f0
movsd (%rsp), %xmm0
addq $0x38, %rsp
popq %rbx
popq %r14
retq
leaq 0x12f4(%rip), %rdi      # 0x30c8
leaq 0x12ff(%rip), %rsi      # 0x30da
leaq 0x1303(%rip), %rcx      # 0x30e5
movl $0x6d, %edx
callq 0x10a0
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1e0b
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x10f0
jmp 0x1e0b
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x1e22
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x1160
// File: /workspace/github_cpp_makefile_star2_O3/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 $0x50, %rsp
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
cmpl $0x2, %edi
jne 0x1e8d
movq %rsi, %rbx
movq 0x8(%rsi), %rsi
leaq 0x20(%rsp), %rdi
callq 0x1aa2
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rsi
movq %rax, (%rsp)
movq %rsi, 0x8(%rsp)
movq 0x30(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movq 0x8(%rbx), %rdx
subq %rax, %rsi
sarq $0x3, %rsi
leaq 0x12b5(%rip), %rdi      # 0x3139
xorl %eax, %eax
callq 0x1030
jmp 0x1ec9
leaq 0x20(%rsp), %rdi
callq 0x19bc
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rsi
movq %rax, (%rsp)
movq %rsi, 0x8(%rsp)
movq 0x30(%rsp), %rcx
movq %rcx, 0x10(%rsp)
subq %rax, %rsi
sarq $0x3, %rsi
leaq 0x1293(%rip), %rdi      # 0x3155
xorl %eax, %eax
callq 0x1030
leaq 0x2e90(%rip), %rdi      # 0x4d60
movq %rsp, %rsi
callq 0x1c8a
movsd %xmm0, 0x18(%rsp)
leaq 0x2ec3(%rip), %rdi      # 0x4da8
movq %rsp, %rsi
callq 0x1c8a
movsd %xmm0, 0x48(%rsp)
leaq 0x2e7e(%rip), %rdi      # 0x4d78
movq %rsp, %rsi
callq 0x1c8a
movsd %xmm0, 0x40(%rsp)
leaq 0x2e81(%rip), %rdi      # 0x4d90
movq %rsp, %rsi
callq 0x1c8a
movsd %xmm0, 0x38(%rsp)
movsd 0x18(%rsp), %xmm0
divsd 0x48(%rsp), %xmm0
leaq 0x124a(%rip), %rdi      # 0x317a
movb $0x1, %al
callq 0x1030
movsd 0x18(%rsp), %xmm0
divsd 0x40(%rsp), %xmm0
leaq 0x1255(%rip), %rdi      # 0x319f
movb $0x1, %al
callq 0x1030
movsd 0x18(%rsp), %xmm0
divsd 0x38(%rsp), %xmm0
leaq 0x125c(%rip), %rdi      # 0x31c0
movb $0x1, %al
callq 0x1030
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x1f81
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x10f0
xorl %eax, %eax
addq $0x50, %rsp
popq %rbx
retq
jmp 0x1f93
jmp 0x1f93
jmp 0x1f93
jmp 0x1f93
jmp 0x1f93
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x1fac
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x1160
// File: /workspace/github_cpp_makefile_star2_O3/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 %eax, %eax
movq %rax, 0x8(%rdi)
movb %al, 0x10(%rdi)
leaq 0x20(%rdi), %r15
leaq 0x30(%rdi), %rcx
movq %rcx, 0x20(%rdi)
movq %rax, 0x28(%rdi)
movb %al, 0x30(%rdi)
leaq 0x40(%rdi), %rcx
movq %rcx, -0x60(%rbp)
leaq 0x50(%rdi), %rcx
movq %rcx, 0x40(%rdi)
movq %rax, 0x48(%rdi)
movb %al, 0x50(%rdi)
leaq 0x70(%rdi), %rcx
movq %rcx, 0x60(%rdi)
movq %rax, 0x68(%rdi)
movb %al, 0x70(%rdi)
movq %rax, 0x88(%rdi)
leaq -0xe0(%rbp), %r12
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r12)
movups %xmm0, 0x20(%r12)
movups %xmm0, 0x30(%r12)
movups %xmm0, 0x40(%r12)
movups %xmm0, 0x50(%r12)
movups %xmm0, 0x60(%r12)
movq %rax, 0x70(%r12)
movups %xmm0, (%r12)
movq %r12, -0x10(%r12)
movq %rax, -0x8(%r12)
leaq -0xc0(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movb %al, (%rcx)
leaq -0xa0(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movb %al, (%rcx)
leaq -0x80(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movb %al, (%rbx)
leaq 0x60(%rdi), %r13
leaq -0xf0(%rbp), %rsi
callq 0x2290
movq %r15, -0x50(%rbp)
movq %r15, %rdi
leaq -0xd0(%rbp), %rsi
movq -0x60(%rbp), %r15
callq 0x2290
movq %r15, %rdi
leaq -0xb0(%rbp), %rsi
callq 0x2290
movq %r13, -0x38(%rbp)
movq %r13, %rdi
leaq -0x90(%rbp), %rsi
callq 0x2290
movq 0x10(%rbx), %rax
movq %rax, 0x80(%r14)
leaq -0xf0(%rbp), %rax
movq 0x60(%rax), %rdi
cmpq %rbx, %rdi
je 0x520d
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x522f
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x5251
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x2230
movq -0xf0(%rbp), %rdi
cmpq %r12, %rdi
je 0x526c
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x2230
movq %r14, %rdi
movq -0x68(%rbp), %rsi
callq 0x2150
movq -0x50(%rbp), %rdi
movq -0x58(%rbp), %rsi
callq 0x2150
movq %r15, %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 0xae5e
movq %rbx, %rdi
callq 0x23a0
// File: /workspace/github_cpp_makefile_star2_O3/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), %r14
leaq 0x8(%rdi), %rax
movq %rax, -0x38(%rbp)
leaq 0x10(%rdi), %r13
leaq 0x38(%rdi), %rbx
leaq -0x30(%rbp), %r12
movq 0x18(%r15), %rax
movq %r13, %rcx
testq %rax, %rax
je 0x5c34
movq %r13, %rcx
xorl %edx, %edx
cmpq 0x20(%rax), %r14
setge %dl
cmovlq %rax, %rcx
movq 0x10(%rax,%rdx,8), %rax
testq %rax, %rax
jne 0x5c1d
movq 0x20(%rcx), %rax
movq %rax, -0x30(%rbp)
cmpq -0x48(%rbp), %rax
jge 0x5cb6
cmpq -0x40(%rbp), %rax
jl 0x5cb6
movq %rbx, %rdi
movq %r12, %rsi
callq 0xaed4
incl 0x8c(%rax)
movq %rbx, %rdi
movq %r12, %rsi
callq 0xaed4
movl 0x88(%rax), %r14d
movq %rbx, %rdi
movq %r12, %rsi
callq 0xaed4
cmpl 0x8c(%rax), %r14d
jg 0x5c99
movq -0x38(%rbp), %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0xd884
movq %r14, %rdi
movq %rax, %rsi
callq 0xd90c
cmpq $0x0, 0x30(%r15)
je 0x5cc5
movq -0x30(%rbp), %r14
movq %r13, %rdi
callq 0x2170
cmpq 0x20(%rax), %r14
jne 0x5c0e
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x8, %edi
callq 0x2130
leaq 0x860e(%rip), %rcx      # 0xe2e4
movq %rcx, (%rax)
movq 0xd2e0(%rip), %rsi      # 0x12fc0
movq %rax, %rdi
xorl %edx, %edx
callq 0x2370
// File: /workspace/github_cpp_makefile_star2_O3/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 0xaed4
movq %rax, %r15
movq 0x20(%rbx), %r12
addq $0x10, %rbx
movq %rbx, -0x30(%rbp)
cmpq %rbx, %r12
je 0x9b79
leaq 0x20(%r12), %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0xaed4
movl 0x88(%rax), %ebx
movq %r14, %rdi
movq %r13, %rsi
callq 0xaed4
subl 0x8c(%rax), %ebx
movl 0x88(%r15), %eax
subl 0x8c(%r15), %eax
cmpl %eax, %ebx
jle 0x9b68
movq %r14, %rdi
movq %r13, %rsi
callq 0xaed4
movq %rax, %r15
movq %r12, %rdi
callq 0x2280
movq %rax, %r12
cmpq -0x30(%rbp), %rax
jne 0x9b21
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_O3/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 0x42dd(%rip), %rsi      # 0xe146
movq %r15, %rdi
callq 0x20b0
testl %eax, %eax
je 0x9f27
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 0x9f02
leaq -0x29(%rbp), %r13
leaq -0x2a(%rbp), %r15
movq 0x20(%r12), %rsi
movq 0x28(%r12), %rdx
movq %rbx, %rdi
callq 0x2270
movb $0x20, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x2270
movq 0x40(%r12), %rsi
movq 0x48(%r12), %rdx
movq %rax, %rdi
callq 0x2270
movb $0x9, -0x2a(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x2270
movq %r12, %rdi
callq 0x2190
movq %rax, %r12
cmpq %r14, %rax
jne 0x9ea6
movq -0x38(%rbp), %rdi
callq 0xbe90
leaq 0x464a(%rip), %rsi      # 0xe55c
movl $0x1, %edx
movq %rbx, %rdi
callq 0x2270
movq %rbx, %rdi
callq 0x2180
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq