LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/pugixml.cpp
// Function: pugi::xpath_query::evaluate_number(pugi::xpath_node const&) const
PUGI__FN double xpath_query::evaluate_number(const xpath_node& n) const
	{
		if (!_impl) return impl::gen_nan();

		impl::xpath_context c(n, 1, 1);
		impl::xpath_stack_data sd;

	#ifdef PUGIXML_NO_EXCEPTIONS
		if (setjmp(sd.error_handler)) return impl::gen_nan();
	#endif

		return static_cast<impl::xpath_query_impl*>(_impl)->root->eval_number(c, sd.stack);
	}

// Assembly:
pushq %rbx
subq $0x2080, %rsp           # imm = 0x2080
movq (%rdi), %rax
testq %rax, %rax
je 0xf16f
movups (%rsi), %xmm0
leaq 0x10(%rsp), %rsi
movaps %xmm0, (%rsi)
movl $0x1, %ecx
movq %rcx, 0x10(%rsi)
movq %rcx, 0x18(%rsi)
leaq 0x2050(%rsp), %rcx
leaq 0x30(%rsp), %rdx
movq %rdx, (%rcx)
xorl %edi, %edi
movq %rdi, 0x8(%rcx)
leaq 0x2060(%rsp), %r8
leaq 0x1040(%rsp), %r9
movq %r9, (%r8)
movq %rdi, 0x8(%r8)
movq %rdi, (%r9)
movq %rdi, (%rdx)
movl $0x1000, %edi           # imm = 0x1000
movq %rdi, 0x8(%r9)
movq %rdi, 0x8(%rdx)
leaq 0x2070(%rsp), %rdx
movq %rcx, (%rdx)
movq %r8, 0x8(%rdx)
movq (%rax), %rdi
callq 0xf196
movsd %xmm0, 0x8(%rsp)
leaq 0x30(%rsp), %rdi
callq 0xf0ae
movsd 0x8(%rsp), %xmm0
jmp 0xf177
movsd 0x1ced9(%rip), %xmm0    # 0x2c050
addq $0x2080, %rsp           # imm = 0x2080
popq %rbx
retq
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xf0ae
movq %rbx, %rdi
callq 0x4700
nop
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::evaluate_string_impl(pugi::impl::(anonymous namespace)::xpath_query_impl*, pugi::xpath_node const&, pugi::impl::(anonymous namespace)::xpath_stack_data&)
PUGI__FN xpath_string evaluate_string_impl(xpath_query_impl* impl, const xpath_node& n, xpath_stack_data& sd)
	{
		if (!impl) return xpath_string();

	#ifdef PUGIXML_NO_EXCEPTIONS
		if (setjmp(sd.error_handler)) return xpath_string();
	#endif

		xpath_context c(n, 1, 1);

		return impl->root->eval_string(c, sd.stack);
	}

// Assembly:
testq %rsi, %rsi
je 0xf80a
subq $0x28, %rsp
movups (%rdx), %xmm0
movq %rsp, %rdx
movaps %xmm0, (%rdx)
movl $0x1, %eax
movq %rax, 0x10(%rdx)
movq %rax, 0x18(%rdx)
movq (%rsi), %rsi
addq $0x2040, %rcx           # imm = 0x2040
callq 0x152ce
addq $0x28, %rsp
retq
leaq 0x20cc6(%rip), %rax     # 0x304d7
movq %rax, (%rdi)
movb $0x0, 0x8(%rdi)
movq $0x0, 0x10(%rdi)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/pugixml.cpp
// Function: pugi::xpath_query::evaluate_string(char*, unsigned long, pugi::xpath_node const&) const
PUGI__FN size_t xpath_query::evaluate_string(char_t* buffer, size_t capacity, const xpath_node& n) const
	{
		impl::xpath_stack_data sd;

		impl::xpath_string r = impl::evaluate_string_impl(static_cast<impl::xpath_query_impl*>(_impl), n, sd);

		size_t full_size = r.length() + 1;

		if (capacity > 0)
		{
			size_t size = (full_size < capacity) ? full_size : capacity;
			assert(size > 0);

			memcpy(buffer, r.c_str(), (size - 1) * sizeof(char_t));
			buffer[size - 1] = 0;
		}

		return full_size;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x2070, %rsp           # imm = 0x2070
movq %rdx, %rbx
movq %rsi, %r14
leaq 0x2040(%rsp), %rdx
leaq 0x20(%rsp), %rax
movq %rax, (%rdx)
xorl %esi, %esi
movq %rsi, 0x8(%rdx)
leaq 0x2050(%rsp), %r8
leaq 0x1030(%rsp), %r9
movq %r9, (%r8)
movq %rsi, 0x8(%r8)
movq %rsi, (%r9)
movq %rsi, (%rax)
movl $0x1000, %esi           # imm = 0x1000
movq %rsi, 0x8(%r9)
movq %rsi, 0x8(%rax)
movq %rdx, 0x10(%r8)
movq %r8, 0x18(%r8)
movq (%rdi), %rsi
leaq 0x8(%rsp), %rdi
movq %rcx, %rdx
movq %rax, %rcx
callq 0xf7d7
cmpb $0x1, 0x10(%rsp)
jne 0xf89d
movq 0x18(%rsp), %r15
jmp 0xf8aa
movq 0x8(%rsp), %rdi
callq 0x679d
movq %rax, %r15
incq %r15
testq %rbx, %rbx
je 0xf8d5
testq %r15, %r15
je 0xf8ef
cmpq %rbx, %r15
cmovbq %r15, %rbx
movq 0x8(%rsp), %rsi
leaq -0x1(%rbx), %rdx
movq %r14, %rdi
callq 0x4320
movb $0x0, -0x1(%r14,%rbx)
leaq 0x20(%rsp), %rdi
callq 0xf0ae
movq %r15, %rax
addq $0x2070, %rsp           # imm = 0x2070
popq %rbx
popq %r14
popq %r15
retq
leaq 0x1d7d9(%rip), %rdi     # 0x2d0cf
leaq 0x1cef8(%rip), %rsi     # 0x2c7f5
leaq 0x1d7d4(%rip), %rcx     # 0x2d0d8
movl $0x309d, %edx           # imm = 0x309D
callq 0x4270
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0xf0ae
movq %rbx, %rdi
callq 0x4700
nop
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/pugixml.cpp
// Function: pugi::xpath_query::evaluate_node_set(pugi::xpath_node const&) const
PUGI__FN xpath_node_set xpath_query::evaluate_node_set(const xpath_node& n) const
	{
		impl::xpath_ast_node* root = impl::evaluate_node_set_prepare(static_cast<impl::xpath_query_impl*>(_impl));
		if (!root) return xpath_node_set();

		impl::xpath_context c(n, 1, 1);
		impl::xpath_stack_data sd;

	#ifdef PUGIXML_NO_EXCEPTIONS
		if (setjmp(sd.error_handler)) return xpath_node_set();
	#endif

		impl::xpath_node_set_raw r = root->eval_node_set(c, sd.stack, impl::nodeset_eval_all);

		return xpath_node_set(r.begin(), r.end(), r.type());
	}

// Assembly:
pushq %r14
pushq %rbx
subq $0x2098, %rsp           # imm = 0x2098
movq %rdx, %r14
movq %rdi, %rbx
movq (%rsi), %rdi
callq 0xfa31
testq %rax, %rax
je 0xf9f5
movups (%r14), %xmm0
leaq 0x20(%rsp), %rdx
movaps %xmm0, (%rdx)
movl $0x1, %ecx
movq %rcx, 0x10(%rdx)
movq %rcx, 0x18(%rdx)
leaq 0x2068(%rsp), %rsi
leaq 0x48(%rsp), %rcx
movq %rcx, (%rsi)
xorl %edi, %edi
movq %rdi, 0x8(%rsi)
leaq 0x2078(%rsp), %r8
leaq 0x1058(%rsp), %r9
movq %r9, (%r8)
movq %rdi, 0x8(%r8)
movq %rdi, (%r9)
movq %rdi, (%rcx)
movl $0x1000, %edi           # imm = 0x1000
movq %rdi, 0x8(%r9)
movq %rdi, 0x8(%rcx)
leaq 0x2088(%rsp), %rcx
movq %rsi, (%rcx)
movq %r8, 0x8(%rcx)
movq %rsp, %rdi
movq %rax, %rsi
xorl %r8d, %r8d
callq 0xfa90
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movl (%rsp), %ecx
movl $0x0, (%rbx)
leaq 0x8(%rbx), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
movq %rax, 0x18(%rbx)
movq %rax, 0x20(%rbx)
movq %rbx, %rdi
callq 0xd0ac
leaq 0x48(%rsp), %rdi
callq 0xf0ae
jmp 0xfa0e
movl $0x0, (%rbx)
leaq 0x8(%rbx), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
movq %rax, 0x18(%rbx)
movq %rax, 0x20(%rbx)
movq %rbx, %rax
addq $0x2098, %rsp           # imm = 0x2098
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0xf0ae
movq %rbx, %rdi
callq 0x4700
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/pugixml.cpp
// Function: pugi::xpath_query::evaluate_node(pugi::xpath_node const&) const
PUGI__FN xpath_node xpath_query::evaluate_node(const xpath_node& n) const
	{
		impl::xpath_ast_node* root = impl::evaluate_node_set_prepare(static_cast<impl::xpath_query_impl*>(_impl));
		if (!root) return xpath_node();

		impl::xpath_context c(n, 1, 1);
		impl::xpath_stack_data sd;

	#ifdef PUGIXML_NO_EXCEPTIONS
		if (setjmp(sd.error_handler)) return xpath_node();
	#endif

		impl::xpath_node_set_raw r = root->eval_node_set(c, sd.stack, impl::nodeset_eval_first);

		return r.first();
	}

// Assembly:
pushq %r14
pushq %rbx
subq $0x2098, %rsp           # imm = 0x2098
movq %rsi, %rbx
movq (%rdi), %rdi
callq 0xfa31
testq %rax, %rax
je 0xffb2
movups (%rbx), %xmm0
leaq 0x20(%rsp), %rdx
movaps %xmm0, (%rdx)
movl $0x1, %ecx
movq %rcx, 0x10(%rdx)
movq %rcx, 0x18(%rdx)
leaq 0x2068(%rsp), %rsi
leaq 0x48(%rsp), %rcx
movq %rcx, (%rsi)
xorl %edi, %edi
movq %rdi, 0x8(%rsi)
leaq 0x2078(%rsp), %r8
leaq 0x1058(%rsp), %r9
movq %r9, (%r8)
movq %rdi, 0x8(%r8)
movq %rdi, (%r9)
movq %rdi, (%rcx)
movl $0x1000, %edi           # imm = 0x1000
movq %rdi, 0x8(%r9)
movq %rdi, 0x8(%rcx)
leaq 0x2088(%rsp), %rcx
movq %rsi, (%rcx)
movq %r8, 0x8(%rcx)
movq %rsp, %rdi
movq %rax, %rsi
movl $0x2, %r8d
callq 0xfa90
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movl (%rsp), %edx
callq 0xd49d
movq %rax, %rbx
movq %rdx, %r14
leaq 0x48(%rsp), %rdi
callq 0xf0ae
jmp 0xffb7
xorl %ebx, %ebx
xorl %r14d, %r14d
movq %rbx, %rax
movq %r14, %rdx
addq $0x2098, %rsp           # imm = 0x2098
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0xf0ae
movq %rbx, %rdi
callq 0x4700
nop
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xpath_parser::parse_expression_rec(pugi::impl::(anonymous namespace)::xpath_ast_node*, int)
xpath_ast_node* parse_expression_rec(xpath_ast_node* lhs, int limit)
		{
			binary_op_t op = binary_op_t::parse(_lexer);

			while (op.asttype != ast_unknown && op.precedence >= limit)
			{
				_lexer.next();

				xpath_ast_node* rhs = parse_path_or_unary_expression();

				binary_op_t nextop = binary_op_t::parse(_lexer);

				while (nextop.asttype != ast_unknown && nextop.precedence > op.precedence)
				{
					rhs = parse_expression_rec(rhs, nextop.precedence);

					nextop = binary_op_t::parse(_lexer);
				}

				if (op.asttype == ast_op_union && (lhs->rettype() != xpath_type_node_set || rhs->rettype() != xpath_type_node_set))
					throw_error("Union operator has to be applied to node sets");

				lhs = new (alloc_node()) xpath_ast_node(op.asttype, op.rettype, lhs, rhs);

				op = binary_op_t::parse(_lexer);
			}

			return lhs;
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x8(%rdi), %r14
movq %r14, %rdi
callq 0x13d84
movq %rax, %r12
testl %r12d, %r12d
setne %al
movl %ebp, 0xc(%rsp)
cmpl %ebp, %edx
setge %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x12ea9
movl %edx, %r13d
movq %r15, 0x10(%rsp)
movq %r14, %rdi
callq 0x12a56
movq %rbx, %rdi
callq 0x12eca
movq %rax, %rbp
movq %r14, %rdi
callq 0x13d84
testl %eax, %eax
setne %al
cmpl %r13d, %edx
setg %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x12e3f
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x12dac
movq %rax, %rbp
movq %r14, %rdi
callq 0x13d84
testl %eax, %eax
je 0x12e3f
cmpl %r13d, %edx
jg 0x12e20
cmpl $0xf, %r12d
movq 0x10(%rsp), %r13
jne 0x12e57
cmpb $0x1, 0x1(%r13)
jne 0x12ebb
cmpb $0x1, 0x1(%rbp)
jne 0x12ebb
movq (%rbx), %rdi
callq 0x13f30
movq %rax, %r15
movq %r12, %rax
shrq $0x20, %rax
movb %r12b, (%r15)
movb %al, 0x1(%r15)
movw $0x0, 0x2(%r15)
movq %r13, 0x8(%r15)
movq %rbp, 0x10(%r15)
movq $0x0, 0x18(%r15)
movq %r14, %rdi
callq 0x13d84
movq %rax, %r12
testl %r12d, %r12d
je 0x12ea9
movl %edx, %r13d
movq %r15, 0x10(%rsp)
cmpl 0xc(%rsp), %edx
jge 0x12df3
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1b4e5(%rip), %rsi     # 0x2e3a7
movq %rbx, %rdi
callq 0x12d62
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xpath_allocator::allocate_nothrow(unsigned long)
void* allocate_nothrow(size_t size)
		{
			// round size up to block alignment boundary
			size = (size + xpath_memory_block_alignment - 1) & ~(xpath_memory_block_alignment - 1);

			if (_root_size + size <= _root->capacity)
			{
				void* buf = &_root->data[0] + _root_size;
				_root_size += size;
				return buf;
			}
			else
			{
				// make sure we have at least 1/4th of the page free after allocation to satisfy subsequent allocation requests
				size_t block_capacity_base = sizeof(_root->data);
				size_t block_capacity_req = size + block_capacity_base / 4;
				size_t block_capacity = (block_capacity_base > block_capacity_req) ? block_capacity_base : block_capacity_req;

				size_t block_size = block_capacity + offsetof(xpath_memory_block, data);

				xpath_memory_block* block = static_cast<xpath_memory_block*>(xml_memory::allocate(block_size));
				if (!block) return 0;

				block->next = _root;
				block->capacity = block_capacity;

				_root = block;
				_root_size = size;

				return block->data;
			}
		}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
addq $0x7, %r14
andq $-0x8, %r14
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
leaq (%rcx,%r14), %rdx
cmpq 0x8(%rax), %rdx
jbe 0x14011
leaq 0x400(%r14), %rax
cmpq $0x1001, %rax           # imm = 0x1001
movl $0x1000, %r15d          # imm = 0x1000
cmovaeq %rax, %r15
leaq 0x10(%r15), %rdi
callq *0x2b3f3(%rip)          # 0x3f3e8
testq %rax, %rax
je 0x1401e
movq (%rbx), %rcx
movq %rcx, (%rax)
movq %r15, 0x8(%rax)
movq %rax, (%rbx)
movq %r14, 0x8(%rbx)
addq $0x10, %rax
jmp 0x14020
addq %rcx, %rax
addq $0x10, %rax
movq %rdx, 0x8(%rbx)
jmp 0x14020
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xpath_parser::parse_location_path()
xpath_ast_node* parse_location_path()
		{
			if (_lexer.current() == lex_slash)
			{
				_lexer.next();

				xpath_ast_node* n = new (alloc_node()) xpath_ast_node(ast_step_root, xpath_type_node_set);

				// relative location path can start from axis_attribute, dot, double_dot, multiply and string lexemes; any other lexeme means standalone root path
				lexeme_t l = _lexer.current();

				if (l == lex_string || l == lex_axis_attribute || l == lex_dot || l == lex_double_dot || l == lex_multiply)
					return parse_relative_location_path(n);
				else
					return n;
			}
			else if (_lexer.current() == lex_double_slash)
			{
				_lexer.next();

				xpath_ast_node* n = new (alloc_node()) xpath_ast_node(ast_step_root, xpath_type_node_set);
				n = new (alloc_node()) xpath_ast_node(ast_step, n, axis_descendant_or_self, nodetest_type_node, 0);

				return parse_relative_location_path(n);
			}

			// else clause moved outside of if because of bogus warning 'control may reach end of non-void function being inlined' in gcc 4.0.1
			return parse_relative_location_path(0);
		}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
addq $0x8, %rdi
movl 0x28(%rbx), %eax
cmpl $0x11, %eax
je 0x140ad
cmpl $0x10, %eax
jne 0x140f6
callq 0x12a56
movq (%rbx), %rdi
callq 0x13f30
movl $0x139, (%rax)          # imm = 0x139
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
movq $0x0, 0x18(%rax)
movl 0x28(%rbx), %ecx
cmpl $0x18, %ecx
ja 0x140a7
movl $0x1d00200, %edx        # imm = 0x1D00200
btl %ecx, %edx
jb 0x140ee
popq %rbx
popq %r14
popq %r15
retq
callq 0x12a56
movq (%rbx), %rdi
callq 0x13f30
movq %rax, %r14
movl $0x139, (%rax)          # imm = 0x139
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
xorl %r15d, %r15d
movq %r15, 0x18(%rax)
movq (%rbx), %rdi
callq 0x13f30
movl $0x2050138, (%rax)      # imm = 0x2050138
movq %r14, 0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq %r15, 0x20(%rax)
movq %rbx, %rdi
movq %rax, %rsi
jmp 0x140fb
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
popq %r14
popq %r15
jmp 0x141fe
nop
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xpath_parser::parse_relative_location_path(pugi::impl::(anonymous namespace)::xpath_ast_node*)
xpath_ast_node* parse_relative_location_path(xpath_ast_node* set)
		{
			xpath_ast_node* n = parse_step(set);

			while (_lexer.current() == lex_slash || _lexer.current() == lex_double_slash)
			{
				lexeme_t l = _lexer.current();
				_lexer.next();

				if (l == lex_double_slash)
					n = new (alloc_node()) xpath_ast_node(ast_step, n, axis_descendant_or_self, nodetest_type_node, 0);

				n = parse_step(n);
			}

			return n;
		}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x143b4
movq %rax, %r15
leaq 0x8(%rbx), %r14
movl 0x28(%rbx), %eax
cmpl $0x11, %eax
je 0x14229
cmpl $0x10, %eax
jne 0x14265
movq %r14, %rdi
callq 0x12a56
jmp 0x14255
movq %r14, %rdi
callq 0x12a56
movq (%rbx), %rdi
callq 0x13f30
movl $0x2050138, (%rax)      # imm = 0x2050138
movq %r15, 0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq $0x0, 0x20(%rax)
movq %rax, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x143b4
movq %rax, %r15
jmp 0x14212
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xpath_parser::alloc_string(pugi::impl::(anonymous namespace)::xpath_lexer_string const&)
const char_t* alloc_string(const xpath_lexer_string& value)
		{
			if (value.begin)
			{
				size_t length = static_cast<size_t>(value.end - value.begin);

				char_t* c = static_cast<char_t*>(_alloc->allocate_nothrow((length + 1) * sizeof(char_t)));
				if (!c) throw_error_oom();
				assert(c); // workaround for clang static analysis

				memcpy(c, value.begin, length * sizeof(char_t));
				c[length] = 0;

				return c;
			}
			else return 0;
		}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq (%rsi), %rax
testq %rax, %rax
je 0x142ab
movq %rsi, %r14
movq 0x8(%rsi), %rbx
subq %rax, %rbx
leaq 0x1(%rbx), %rsi
callq 0x13fb0
testq %rax, %rax
je 0x142b7
movq %rax, %r15
movq (%r14), %rsi
movq %rax, %rdi
movq %rbx, %rdx
callq 0x4320
movb $0x0, (%r15,%rbx)
jmp 0x142ae
xorl %r15d, %r15d
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
callq 0x14026
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xpath_allocator::allocate(unsigned long)
void* allocate(size_t size)
		{
			void* result = allocate_nothrow(size);

			if (!result)
			{
			#ifdef PUGIXML_NO_EXCEPTIONS
				assert(error_handler);
				longjmp(*error_handler, 1);
			#else
				throw std::bad_alloc();
			#endif
			}

			return result;
		}

// Assembly:
pushq %rax
callq 0x13fb0
testq %rax, %rax
je 0x16691
popq %rcx
retq
movl $0x8, %edi
callq 0x41d0
movq 0x28906(%rip), %rcx     # 0x3efa8
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0x28910(%rip), %rsi     # 0x3efc0
movq 0x288d9(%rip), %rdx     # 0x3ef90
movq %rax, %rdi
callq 0x46c0
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xpath_string::data(pugi::impl::(anonymous namespace)::xpath_allocator*)
char_t* data(xpath_allocator* alloc)
		{
			// make private heap copy
			if (!_uses_heap)
			{
				size_t length_ = strlength(_buffer);

				_buffer = duplicate_string(_buffer, length_, alloc);
				_uses_heap = true;
				_length_heap = length_;
			}

			return const_cast<char_t*>(_buffer);
		}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq (%rdi), %r14
cmpb $0x0, 0x8(%rdi)
jne 0x16889
movq %rsi, %r15
movq %rdi, %rbx
movq %r14, %rdi
callq 0x679d
movq %rax, %r12
movq (%rbx), %r13
leaq 0x1(%rax), %rsi
movq %r15, %rdi
callq 0x16684
movq %rax, %r14
movq %rax, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x4320
movb $0x0, (%r14,%r12)
movq %r14, (%rbx)
movb $0x1, 0x8(%rbx)
movq %r12, 0x10(%rbx)
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/graph.cpp
// Function: Graph::Graph(char const*)
Graph::Graph(const char * filename)
{
    // add .dot extension
    this->graph_filename = filename + std::string(GRAPHVIZ_DOT_FILE_EXT);

    // create the .dot output file.
    this->graph_filestream.open(this->graph_filename.c_str());

    // initial syntax to set the graph
    this->graph_filestream << "digraph {\n";
    this->graph_filestream << "\trankdir=LR\n\n";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
leaq 0x20(%rdi), %r14
movq %r14, %rdi
callq 0x46b0
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x16387(%rip), %rsi     # 0x30476
leaq 0x16384(%rip), %rdx     # 0x3047a
leaq 0x8(%rsp), %rdi
callq 0x18bc0
movq %r15, %rdi
callq 0x41b0
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
movq %rax, %r8
callq 0x43f0
leaq 0x38(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1a143
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x1a14a
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %r15
movq %rdx, 0x8(%r15)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4460
movq (%r15), %rdi
cmpq %rbp, %rdi
je 0x1a186
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x43a0
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x1a19d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x43a0
movq (%rbx), %rsi
movq %r14, %rdi
movl $0x10, %edx
callq 0x4080
leaq 0x162c7(%rip), %rsi     # 0x3047b
movl $0xa, %edx
movq %r14, %rdi
callq 0x4400
leaq 0x162be(%rip), %rsi     # 0x30486
movl $0xd, %edx
movq %r14, %rdi
callq 0x4400
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x1a20a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x43a0
jmp 0x1a20a
jmp 0x1a207
movq %rax, %r15
jmp 0x1a212
movq %rax, %r15
movq %r14, %rdi
callq 0x45a0
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x1a226
movq (%r12), %rsi
incq %rsi
callq 0x43a0
movq %r15, %rdi
callq 0x4700
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/graph.cpp
// Function: Graph::align_nodes(Node**, int)
void Graph::align_nodes(
    Node ** nodes,
    int nodes_size) {

    this->graph_filestream << std::string("\t{rank = same; ");

    for (int i = 0; i < nodes_size; i++) {

        this->graph_filestream << nodes[i]->get_uid();

        if (i + 1 < nodes_size) {
            this->graph_filestream << ", ";
        }
    }    

    this->graph_filestream << " };\n"; 
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x148c8(%rip), %rsi     # 0x304d8
leaq 0x148d0(%rip), %rdx     # 0x304e7
leaq 0x8(%rsp), %rdi
callq 0x18bc0
addq $0x20, %rbx
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x4400
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x1bc4e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x43a0
testl %ebp, %ebp
jle 0x1bcd6
movl %ebp, %r12d
movq %r12, %rbp
negq %rbp
movl $0x1, %r15d
movq -0x8(%r14,%r15,8), %rax
movq %r13, 0x8(%rsp)
movq 0x28(%rax), %rsi
movq 0x30(%rax), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x1bdb4
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x4400
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x1bcad
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x43a0
cmpq %r12, %r15
jae 0x1bcc6
movl $0x2, %edx
movq %rbx, %rdi
leaq 0x14827(%rip), %rsi     # 0x304e8
callq 0x4400
leaq (%r15,%rbp), %rax
incq %rax
incq %r15
cmpq $0x1, %rax
jne 0x1bc65
leaq 0x1480e(%rip), %rsi     # 0x304eb
movl $0x4, %edx
movq %rbx, %rdi
callq 0x4400
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1bd00
movq %rax, %rbx
jmp 0x1bd1a
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x1bd1a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x43a0
movq %rbx, %rdi
callq 0x4700
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/path-state.cpp
// Function: Path_State::Path_State(RID_Router*, int)
Path_State::Path_State(RID_Router * router, int req_size) {

    this->router = router;
    // path info
    this->path_length = 0;
    this->path_status = (int) OUTCOME_UNDEF;
    this->path_prob = 0.0;
    // event & event prob
    this->event = (int) 0x07;
    this->event_prob = 0.0;

    this->in_fptree_prob = std::vector<__float080>(req_size + 1, 0.0);

    this->eop = false;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
leaq 0x50(%rdi), %r15
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rdi)
movq $0x0, 0x60(%rdi)
movq %rsi, (%rdi)
movabsq $0x600000000, %rax      # imm = 0x600000000
movq %rax, 0xc(%rdi)
fldz
fld %st(0)
fstpt 0x20(%rdi)
movl $0x7, 0x30(%rdi)
fld %st(0)
fstpt 0x40(%rdi)
incl %edx
movslq %edx, %rsi
fstpt 0x30(%rsp)
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rdx
leaq 0xf(%rsp), %rcx
callq 0x1d906
movq 0x50(%rbx), %rdi
movq 0x60(%rbx), %rsi
movaps 0x10(%rsp), %xmm0
movaps %xmm0, 0x50(%rbx)
movq 0x20(%rsp), %rax
movq %rax, 0x60(%rbx)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
testq %rdi, %rdi
je 0x1eedf
subq %rdi, %rsi
callq 0x43a0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x1eedf
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x43a0
movb $0x0, 0x8(%rbx)
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%r15), %rdi
testq %rdi, %rdi
je 0x1ef04
movq 0x60(%rbx), %rsi
subq %rdi, %rsi
callq 0x43a0
movq %r14, %rdi
callq 0x4700
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/argvparser.cpp
// Function: CommandLineProcessing::ArgvParser::reset()
void ArgvParser::reset()
{
    max_key = 1;
    option2key.clear();
    option2attribute.clear();
    option2descr.clear();
    option2value.clear();
    errorcode2descr.clear();
    argument_container.clear();
    intro_description.clear();
    error_option.clear();
    help_option = 0;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x1, (%rdi)
addq $0x8, %rdi
callq 0x21ff2
leaq 0x38(%rbx), %rdi
callq 0x22020
leaq 0x68(%rbx), %rdi
callq 0x2204e
leaq 0x98(%rbx), %rdi
callq 0x2204e
leaq 0xc8(%rbx), %rdi
callq 0x2207c
leaq 0xf8(%rbx), %rdi
movq 0xf8(%rbx), %rsi
callq 0x220aa
xorl %eax, %eax
movq %rax, 0x118(%rbx)
movq 0x110(%rbx), %rcx
movb %al, (%rcx)
movq %rax, 0x140(%rbx)
movq 0x138(%rbx), %rcx
movb %al, (%rcx)
movl $0x0, 0x130(%rbx)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/argvparser.cpp
// Function: CommandLineProcessing::ArgvParser::optionKey(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
int ArgvParser::optionKey( const string& _name ) const
{
    String2KeyMap::const_iterator it = option2key.find(_name);

    // if not found
    if (it == option2key.end())
        return(-1);

    return(it->second);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
addq $0x8, %rdi
callq 0x220fc
addq $0x10, %rbx
cmpq %rbx, %rax
je 0x1f38d
movl 0x40(%rax), %eax
jmp 0x1f392
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/argvparser.cpp
// Function: CommandLineProcessing::ArgvParser::foundOption(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
bool ArgvParser::foundOption( const string & _name ) const
{
    int key = optionKey(_name);

    // not defined -> cannot by found
    if (key == -1)
        return(false);

    // return whether the key of the given option name is in the hash of the
    // parsed options.
    return(option2value.find(key) != option2value.end());
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
addq $0x8, %rdi
callq 0x220fc
leaq 0x10(%rbx), %rcx
cmpq %rcx, %rax
je 0x1f416
movl 0x40(%rax), %eax
cmpl $-0x1, %eax
je 0x1f416
movq 0xa8(%rbx), %rdx
addq $0xa0, %rbx
movq %rbx, %rsi
testq %rdx, %rdx
je 0x1f40e
movq %rbx, %rcx
xorl %esi, %esi
cmpl %eax, 0x20(%rdx)
setb %sil
cmovaeq %rdx, %rcx
movq 0x10(%rdx,%rsi,8), %rdx
testq %rdx, %rdx
jne 0x1f3e5
movq %rbx, %rsi
cmpq %rbx, %rcx
je 0x1f40e
cmpl 0x20(%rcx), %eax
cmovbq %rbx, %rcx
movq %rcx, %rsi
cmpq %rbx, %rsi
setne %al
jmp 0x1f418
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/argvparser.cpp
// Function: CommandLineProcessing::ArgvParser::optionValue(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
string ArgvParser::optionValue(const string& _option) const
{
    int key = optionKey(_option);

    // not defined -> cannot by found
    if (key == -1)
    {
        cerr << "ArgvParser::optionValue(): Requested value of an option the parser did not find or does not know." << endl;
        return("");
    }

    return(option2value.find(key)->second);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsi), %rdi
movq %rdx, %rsi
callq 0x220fc
leaq 0x10(%r14), %rcx
cmpq %rcx, %rax
je 0x1f496
movl 0x40(%rax), %eax
cmpl $-0x1, %eax
je 0x1f496
movq 0xa8(%r14), %rcx
addq $0xa0, %r14
testq %rcx, %rcx
je 0x1f47a
movq %r14, %rdx
xorl %esi, %esi
cmpl %eax, 0x20(%rcx)
setb %sil
cmovaeq %rcx, %rdx
movq 0x10(%rcx,%rsi,8), %rcx
testq %rcx, %rcx
jne 0x1f457
cmpq %r14, %rdx
je 0x1f47a
cmpl 0x20(%rdx), %eax
cmovaeq %rdx, %r14
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq 0x28(%r14), %rsi
movq 0x30(%r14), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x1bdb4
jmp 0x1f4f1
movq 0x1fb53(%rip), %r14     # 0x3eff0
leaq 0x114b8(%rip), %rsi     # 0x3095c
movl $0x61, %edx
movq %r14, %rdi
callq 0x4400
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4370
movsbl %al, %esi
movq %r14, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x42a0
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x10ff1(%rip), %rdx     # 0x304d7
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x18bc0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/argvparser.cpp
// Function: CommandLineProcessing::isValidOptionString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool CommandLineProcessing::isValidOptionString(const string& _string)
{
    // minimal short option length is 2
    if (_string.length() < 2)
        return(false);

    // is it an option (check for '-' as first character)
    if (_string.compare(0, 1, "-"))
        return(false);

    // not an option if just '--'
    if (_string.length() == 2 && _string == "--")
        return(false);

    // it might still be a negative number
    // (but not if there is no digit afterwards)
    if (isDigit(_string[1]))
        return(false);

    // let's consider this an option
    return(true);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
cmpq $0x2, 0x8(%rdi)
jae 0x1fe8c
xorl %r14d, %r14d
jmp 0x1fed1
movq %rdi, %rbx
leaq 0x10bca(%rip), %rcx     # 0x30a60
xorl %r14d, %r14d
movl $0x1, %edx
xorl %esi, %esi
callq 0x44c0
testl %eax, %eax
jne 0x1fed1
cmpq $0x2, 0x8(%rbx)
jne 0x1fec3
leaq 0x10ba8(%rip), %rsi     # 0x30a5f
movq %rbx, %rdi
callq 0x4130
testl %eax, %eax
je 0x1fe87
movq (%rbx), %rax
movb 0x1(%rax), %al
addb $-0x3a, %al
cmpb $-0xa, %al
setb %r14b
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/argvparser.cpp
// Function: CommandLineProcessing::splitOptionAndValue(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
bool CommandLineProcessing::splitOptionAndValue(const string& _string,
        string& _option, string& _value)
{
    // string token container
    std::vector<string> tokens;

    // split string by '=' delimiter
    splitString(tokens, _string, "=");

    // check for option value assignment 'option=value'
    if (tokens.size() < 2)
    {
        _option = _string; // the option is the whole string
        return(false);
    }

    // separate option and value
    _option = tokens[0];

    // concat all remaining tokens to the value string
    for (unsigned int i=1; i<tokens.size(); ++i)
    {
        _value.append(tokens[i]);
    }

    return(true);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
xorps %xmm0, %xmm0
movq %rsp, %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x1057a(%rip), %rdx     # 0x304ab
movq %r15, %rsi
callq 0x21add
movq (%rsp), %rsi
movq 0x8(%rsp), %r12
subq %rsi, %r12
cmpq $0x20, %r12
jbe 0x1ff9f
movq %r14, %rdi
callq 0x4230
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
subq %rax, %rcx
cmpq $0x21, %rcx
jb 0x1ffaa
movl $0x1, %ecx
movl $0x2, %ebp
shlq $0x5, %rcx
movq (%rax,%rcx), %rsi
movq 0x8(%rax,%rcx), %rdx
movq %rbx, %rdi
callq 0x4150
movl %ebp, %ecx
movq (%rsp), %rax
movq 0x8(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
incl %ebp
cmpq %rcx, %rdx
ja 0x1ff6f
jmp 0x1ffaa
movq %r14, %rdi
movq %r15, %rsi
callq 0x4230
cmpq $0x21, %r12
setae %bl
movq %rsp, %rdi
callq 0x217ce
movl %ebx, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1ffca
movq %rax, %rbx
movq %rsp, %rdi
callq 0x217ce
movq %rbx, %rdi
callq 0x4700
nop
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/argvparser.cpp
// Function: CommandLineProcessing::ArgvParser::getAllOptionAlternatives[abi:cxx11](unsigned int) const
list<string> ArgvParser::getAllOptionAlternatives( unsigned int _key ) const
{
    // keys go here
    list<string> keys;
    // for all container elements
    for( map<string, unsigned int>::const_iterator it = option2key.begin();
            it != option2key.end();
            ++it )
    {
        if (it->second == _key)
            keys.push_back(it->first);
    }
    return(keys);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rdi, 0x8(%rdi)
movq %rdi, (%rdi)
movq $0x0, 0x10(%rdi)
movq 0x20(%rsi), %r15
addq $0x10, %r14
cmpq %r14, %r15
je 0x2003a
movl %edx, %ebp
cmpl %ebp, 0x40(%r15)
jne 0x2002a
leaq 0x20(%r15), %rsi
movq %rbx, %rdi
callq 0x22d4e
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4090
incq 0x10(%rbx)
movq %r15, %rdi
callq 0x4420
movq %rax, %r15
cmpq %r14, %rax
jne 0x20009
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x21fac
movq %r14, %rdi
callq 0x4700
nop
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/argvparser.cpp
// Function: CommandLineProcessing::ArgvParser::argument[abi:cxx11](unsigned int) const
string ArgvParser::argument(unsigned int _id) const
{
    if (_id >= arguments())
    {
        cerr << "ArgvParser::argument(): Request for non-existing argument." << endl;
        return ("");
    }
    else
        return(argument_container[_id]);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0xf8(%rsi), %rax
movq 0x100(%rsi), %rcx
subq %rax, %rcx
shrq $0x5, %rcx
cmpl %edx, %ecx
jbe 0x200b3
movl %edx, %ecx
shlq $0x5, %rcx
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax,%rcx), %rsi
movq 0x8(%rax,%rcx), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x1bdb4
jmp 0x2010e
movq 0x1ef36(%rip), %r14     # 0x3eff0
leaq 0x108fd(%rip), %rsi     # 0x309be
movl $0x3a, %edx
movq %r14, %rdi
callq 0x4400
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4370
movsbl %al, %esi
movq %r14, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x42a0
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x103d4(%rip), %rdx     # 0x304d7
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x18bc0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/argvparser.cpp
// Function: CommandLineProcessing::ArgvParser::defineOption(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int)
bool ArgvParser::defineOption( const string & _name,
                               const string& _descr,
                               OptionAttributes _attrs)
{
    // do nothing if there already is an option of this name
    if (isDefinedOption(_name))
    {
        cerr << "ArgvParser::defineOption(): The option label equals an already defined option." << endl;
        return(false);
    }

    // no digits as short options allowed
    if (_name.length() == 1 && isDigit(_name[0]))
    {
        cerr << "ArgvParser::defineOption(): Digits as short option labels are not allowd." << endl;
        return(false);
    }

    option2key[_name] = max_key;     // give the option a unique key

    // store the option attributes
    option2attribute[max_key] = _attrs;

    // store the option description if there is one
    if (_descr.length())
        option2descr[max_key] = _descr;

    // inc the key counter
    ++max_key;

    return(true);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x8(%rdi), %r12
movq %r12, %rdi
callq 0x220fc
leaq 0x10(%rbx), %rcx
cmpq %rcx, %rax
je 0x212ed
movq 0x1dd42(%rip), %rbx     # 0x3eff0
leaq 0xf8a0(%rip), %rsi      # 0x30b55
movl $0x4e, %edx
movq %rbx, %rdi
callq 0x4400
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4370
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x42a0
xorl %eax, %eax
jmp 0x21355
cmpq $0x1, 0x8(%r15)
jne 0x21314
movq (%r15), %rax
movb (%rax), %al
addb $-0x30, %al
cmpb $0x9, %al
ja 0x21314
movq 0x1dcea(%rip), %rbx     # 0x3eff0
leaq 0xf897(%rip), %rsi      # 0x30ba4
movl $0x49, %edx
jmp 0x212ba
movl (%rbx), %r13d
movq %r12, %rdi
movq %r15, %rsi
callq 0x21996
movl %r13d, (%rax)
leaq 0x38(%rbx), %rdi
movq %rbx, %rsi
callq 0x21a12
movl %ebp, (%rax)
cmpq $0x0, 0x8(%r14)
je 0x21351
leaq 0x68(%rbx), %rdi
movq %rbx, %rsi
callq 0x218a8
movq %rax, %rdi
movq %r14, %rsi
callq 0x4230
incl (%rbx)
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/argvparser.cpp
// Function: CommandLineProcessing::ArgvParser::defineOptionAlternative(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool ArgvParser::defineOptionAlternative( const string & _original,
        const string & _alternative )
{
    // do nothing if there already is no option of this name
    if (!isDefinedOption(_original))
    {
        cerr << "ArgvParser::defineOptionAlternative(): Original option label is not a defined option." << endl;
        return(false);
    }

    // AND no digits as short options allowed
    if (_alternative.length() == 1 && isDigit(_alternative[0]))
    {
        cerr << "ArgvParser::defineOptionAlternative(): Digits as short option labels are not allowd." << endl;
        return(false);
    }

    // AND do nothing if there already is an option with the alternativ name
    if (isDefinedOption(_alternative))
    {
        cerr << "ArgvParser::defineOptionAlternative(): The alternative option label equals an already defined option." << endl;
        return(false);
    }

    option2key[_alternative] = optionKey(_original);

    return(true);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r15
leaq 0x8(%rdi), %r14
movq %r14, %rdi
callq 0x220fc
addq $0x10, %r15
cmpq %r15, %rax
je 0x213e0
cmpq $0x1, 0x8(%rbx)
jne 0x213bb
movq (%rbx), %rax
movb (%rax), %al
addb $-0x30, %al
cmpb $0x9, %al
ja 0x213bb
movq 0x1dc43(%rip), %rbx     # 0x3eff0
leaq 0xf890(%rip), %rsi      # 0x30c44
movl $0x54, %edx
jmp 0x213f3
movq %r14, %rdi
movq %rbx, %rsi
callq 0x220fc
cmpq %r15, %rax
je 0x2142d
movq 0x1dc1e(%rip), %rbx     # 0x3eff0
leaq 0xf8c0(%rip), %rsi      # 0x30c99
movl $0x65, %edx
jmp 0x213f3
movq 0x1dc09(%rip), %rbx     # 0x3eff0
leaq 0xf800(%rip), %rsi      # 0x30bee
movl $0x55, %edx
movq %rbx, %rdi
callq 0x4400
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4370
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x42a0
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
movq %r12, %rsi
callq 0x220fc
cmpq %r15, %rax
je 0x21442
movl 0x40(%rax), %ebp
jmp 0x21447
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq %r14, %rdi
movq %rbx, %rsi
callq 0x21996
movl %ebp, (%rax)
movb $0x1, %al
jmp 0x21424
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/argvparser.cpp
// Function: CommandLineProcessing::ArgvParser::setHelpOption(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool ArgvParser::setHelpOption(const string& _shortname,
                               const string& _longname,
                               const string& _descr)
{
    // do nothing if any name is already in use
    if (isDefinedOption(_shortname) || isDefinedOption(_longname))
    {
        cerr << "ArgvParser::setHelpOption(): Short or long help option label equals an already defined option." << endl;
        return(false);
    }

    // define the help option's short name and the alternative
    // longname
    defineOption(_shortname, _descr, NoOptionAttribute);
    defineOptionAlternative(_shortname, _longname);

    help_option = max_key-1; // store the key in a special member

    return(true);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r12
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x8(%rdi), %r13
movq %r13, %rdi
callq 0x220fc
movq %rax, %rbp
leaq 0x10(%rbx), %rax
cmpq %rax, %rbp
jne 0x21497
movq %r13, %rdi
movq %r14, %rsi
callq 0x220fc
cmpq %rbp, %rax
je 0x214ea
movq 0x1db52(%rip), %rbx     # 0x3eff0
leaq 0xf85a(%rip), %rsi      # 0x30cff
movl $0x5e, %edx
movq %rbx, %rdi
callq 0x4400
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4370
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x42a0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x2127c
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2136e
movl (%rbx), %eax
decl %eax
movl %eax, 0x130(%rbx)
movb $0x1, %al
jmp 0x214db
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/argvparser.cpp
// Function: CommandLineProcessing::trimmedString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
string CommandLineProcessing::trimmedString( const std::string & _str )
{
    // no string no work
    if(_str.length() == 0)
        return _str;

    string::size_type start_pos = _str.find_first_not_of(" \a\b\f\n\r\t\v");
    string::size_type end_pos = _str.find_last_not_of(" \a\b\f\n\r\t\v");

    // check whether there was any non-whitespace
    if (start_pos == string::npos)
        return("");

    return string(_str, start_pos, end_pos - start_pos + 1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
cmpq $0x0, 0x8(%rsi)
je 0x215b9
leaq 0xf7f0(%rip), %r12      # 0x30d5e
movl $0x8, %ecx
movq %r14, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x4690
movq %rax, %r15
movl $0x8, %ecx
movq %r14, %rdi
movq %r12, %rsi
movq $-0x1, %rdx
callq 0x4640
cmpq $-0x1, %r15
je 0x215d0
subq %r15, %rax
incq %rax
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rax, %rcx
callq 0x4100
jmp 0x215e9
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq (%r14), %rdx
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x1bdb4
jmp 0x215e9
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0xeef9(%rip), %rdx      # 0x304d7
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x18bc0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/include/argvparser.h
// Function: void CommandLineProcessing::splitString<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char const*)
void splitString(Container& _container, const std::string& _in,
                 const char* const _delimiters = " \t\n")
{
    const std::string::size_type len = _in.length();
    std::string::size_type i = 0;

    while ( i < len )
    {
        // eat leading whitespace
        i = _in.find_first_not_of (_delimiters, i);
        if (i == std::string::npos)
            return;   // nothing left but white space

        // find the end of the token
        std::string::size_type j = _in.find_first_of (_delimiters, i);

        // push token
        if (j == std::string::npos)
        {
            _container.push_back (_in.substr(i));
            return;
        }
        else
            _container.push_back (_in.substr(i, j-i));

        // set up for next loop
        i = j + 1;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq 0x8(%rsi), %rbx
testq %rbx, %rbx
je 0x21bdb
movq %rdx, %r15
movq %rsi, %r14
xorl %r13d, %r13d
movq %rsp, %r12
movq %r15, %rdi
callq 0x41b0
movq %r14, %rdi
movq %r15, %rsi
movq %r13, %rdx
movq %rax, %rcx
callq 0x4690
cmpq $-0x1, %rax
je 0x21bdb
movq %rax, %rbp
movq %r15, %rdi
callq 0x41b0
movq %r14, %rdi
movq %r15, %rsi
movq %rbp, %rdx
movq %rax, %rcx
callq 0x45c0
cmpq $-0x1, %rax
je 0x21b9b
movq %rax, %r13
movq %rax, %rcx
subq %rbp, %rcx
movq %r12, %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0x43c0
movq 0x20(%rsp), %rdi
movq %r12, %rsi
callq 0x22da0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x21b8d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x43a0
incq %r13
cmpq %rbx, %r13
jb 0x21b09
jmp 0x21bdb
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rsi
movq %rbp, %rdx
movq $-0x1, %rcx
callq 0x43c0
movq 0x20(%rsp), %rdi
movq %r15, %rsi
callq 0x22da0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x21bdb
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x43a0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x21bec
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x21c0a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x43a0
movq %rbx, %rdi
callq 0x4700
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/rid-analytics.cpp
// Function: RID_Analytics::~RID_Analytics()
RID_Analytics::~RID_Analytics() {

    // erase the routers in the topology. use the router map for that (see the 
    // advantage of using modern C++ features you dummy?)
    for(RID_RouterMap::iterator rit = this->routers.begin(); 
        rit != this->routers.end(); 
        ++rit) {

        delete (*rit).second;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0x50(%rdi), %r14
movq 0x68(%rdi), %r15
leaq 0x58(%rdi), %r13
cmpq %r13, %r15
je 0x252b5
movq 0x40(%r15), %r12
testq %r12, %r12
je 0x25298
movq %r12, %rdi
callq 0x1c1ce
movl $0xa8, %esi
movq %r12, %rdi
callq 0x43a0
movq %r15, %rdi
callq 0x42b0
movq %rax, %r15
cmpq %r13, %rax
jne 0x25287
leaq 0x98(%rbx), %rdi
callq 0x27f0a
movq %r14, %rdi
callq 0x283f6
leaq 0x20(%rbx), %rdi
callq 0x2846e
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x252f0
movq 0x18(%rbx), %rsi
subq %rdi, %rsi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x43a0
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/rid-analytics.cpp
// Function: on_path_to_origin(RID_Router*, int, int)
bool on_path_to_origin(RID_Router * router, int i, int os_id) {

    // check if bit is on 
    unsigned int byte_ix = (unsigned int) (os_id / 8);
    std::vector<uint8_t> * bitmask = router->get_tree_bitmask(i);

    // std::cout << "RID_Analytics : on_path_to_origin() : is [" 
    //     << router->get_id() << "][" << i << "] on the path to " << os_id << "?"
    //     << "\n\t [byte] : " << byte_ix
    //     << "\n\t [bit] : " << std::bitset<(sizeof(uint8_t) * 8)>(1 << (os_id % 8))
    //     << "\n\t [ bitmask[byte] ] : " << std::bitset<(sizeof(uint8_t) * 8)>((*bitmask)[byte_ix])
    //     << "\n\t [result] : " << (((1 << (os_id % 8)) & (*bitmask)[byte_ix]) > 0 ? "YES" : "NO") << std::endl;

    if (byte_ix < (*bitmask).size())
        return (((1 << (os_id % 8)) & (*bitmask)[byte_ix]) > 0);

    return false;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
leal 0x7(%rbx), %r14d
testl %edx, %edx
cmovnsl %edx, %r14d
sarl $0x3, %r14d
movzbl %sil, %eax
movq 0x30(%rdi), %rcx
leaq (%rax,%rax,4), %rax
shll $0x5, %eax
leaq (%rcx,%rax), %rdi
addq $0x60, %rdi
leaq 0x4(%rsp), %rsi
movl $0x0, (%rsi)
callq 0x28182
movq (%rax), %rcx
movq 0x8(%rax), %rax
subq %rcx, %rax
cmpq %r14, %rax
jbe 0x2596f
movzbl (%rcx,%r14), %eax
andl $0x7, %ebx
btl %ebx, %eax
setb %al
jmp 0x25971
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop