LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/sgalkina[P]data_structures/src/hash_map.h
// Function: gtl::hash_map<int, memcheck, gtl::default_hash<int>>::reallocate()
void hash_map<K, V, H>::reallocate() {
  vector<Entry> new_vector;
  size_t capacity = vector_.capacity() == 0 ? 5 : vector_.capacity()*2;
  new_vector.reserve(capacity);
  for (size_t i = 0; i < new_vector.capacity(); ++i) {
    new_vector.push_back({K(), V(), true, false});
  }
  size_ = 0;
  for (size_t i = 0; i < vector_.capacity(); ++i) {
    if (!vector_[i].is_empty) {
      add_to_vector(vector_[i].key, vector_[i].value, new_vector);
    }
  }
  vector_ = std::move(new_vector);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x8(%rdi), %rax
leaq (%rax,%rax), %rcx
testq %rax, %rax
movl $0x5, %eax
cmovneq %rcx, %rax
movq %rax, 0x38(%rsp)
shlq $0x2, %rax
leaq (%rax,%rax,2), %rdi
movups %xmm0, 0x40(%rsp)
callq 0x1030
leaq 0x38(%rsp), %rdi
movq %rax, 0x8(%rdi)
callq 0x6676
cmpq $0x0, 0x10(%rsp)
je 0x643f
leaq 0x30(%rsp), %r14
xorl %r13d, %r13d
leaq 0x10(%rsp), %r15
leaq 0x2c(%rsp), %r12
movl $0x0, 0x2c(%rsp)
movq %r14, %rdi
callq 0x81a0
movw $0x1, 0x34(%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0x66c0
movq %r14, %rdi
callq 0x81ae
incq %r13
cmpq 0x10(%rsp), %r13
jb 0x640b
movq $0x0, 0x20(%rbx)
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x64b3
movl $0x4, %r12d
xorl %r13d, %r13d
leaq 0xc(%rsp), %r14
leaq 0x10(%rsp), %r15
cmpq %r13, 0x18(%rbx)
jbe 0x6520
movq 0x10(%rbx), %rbp
cmpb $0x0, 0x4(%rbp,%r12)
jne 0x64a3
leaq (%r12,%rbp), %rsi
movq %r14, %rdi
callq 0x822c
leaq (%r12,%rbp), %rsi
addq $-0x4, %rsi
movq %rbx, %rdi
movq %r14, %rdx
movq %r15, %rcx
callq 0x6570
movq %r14, %rdi
callq 0x81ae
incq %r13
movq 0x8(%rbx), %rax
addq $0xc, %r12
cmpq %rax, %r13
jb 0x6463
xorps %xmm0, %xmm0
leaq 0x50(%rsp), %rdi
movaps %xmm0, (%rdi)
leaq 0x10(%rsp), %r14
movq (%r14), %rcx
movq 0x8(%r14), %rdx
movq %rcx, (%rdi)
movq $0x0, (%r14)
movq %rdx, 0x8(%rdi)
movq 0x10(%r14), %rsi
movups %xmm0, 0x8(%r14)
movq %rsi, 0x10(%rdi)
movq %rcx, 0x8(%rbx)
movq %rax, (%rdi)
movq 0x10(%rbx), %rax
movq %rdx, 0x10(%rbx)
movq %rax, 0x8(%rdi)
movq 0x18(%rbx), %rax
movq %rsi, 0x18(%rbx)
movq %rax, 0x10(%rdi)
callq 0x6676
movq %r14, %rdi
callq 0x6676
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2cec(%rip), %rdi      # 0x9213
leaq 0x2d05(%rip), %rsi      # 0x9233
leaq 0x33d8(%rip), %rcx      # 0x990d
movl $0xa0, %edx
callq 0x1080
jmp 0x654d
jmp 0x654d
movq %rax, %rbx
leaq 0xc(%rsp), %rdi
jmp 0x6558
movq %rax, %rbx
jmp 0x655d
movq %rax, %rbx
movq %r14, %rdi
callq 0x81ae
leaq 0x10(%rsp), %rdi
callq 0x6676
movq %rbx, %rdi
callq 0x1190
nop
// File: /workspace/github_cpp_makefile_star2_O1/sgalkina[P]data_structures/src/hash_map.h
// Function: gtl::hash_map<int, memcheck, gtl::default_hash<int>>::add_to_vector(int const&, memcheck, gtl::vector<gtl::hash_map<int, memcheck, gtl::default_hash<int>>::Entry>&)
bool hash_map<K, V, H>::add_to_vector(K const &key, V value, vector<Entry> & vect) {
  if (vector_.capacity() == 0) return 0;
  size_t ind = insertion_point(vect, key);
  bool result = vect[ind].is_empty;
  vect[ind] = {key, value, false, false};
  return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
cmpq $0x0, 0x8(%rdi)
je 0x6621
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %rbx
movq %rcx, %rsi
movq %rbx, %rdx
callq 0x6838
cmpq %rax, 0x10(%r14)
jbe 0x6634
movq %rax, %r12
movq 0x8(%r14), %rax
leaq (%r12,%r12,2), %r13
movb 0x8(%rax,%r13,4), %bpl
movl (%rbx), %eax
leaq 0x10(%rsp), %rbx
movl %eax, -0x4(%rbx)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x822c
movw $0x0, 0x4(%rbx)
cmpq %r12, 0x10(%r14)
jbe 0x6634
movq 0x8(%r14), %r14
movl 0xc(%rsp), %eax
movl %eax, (%r14,%r13,4)
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x820c
leaq (%r14,%r13,4), %r14
leaq 0x4(%r14), %rdi
leaq 0x8(%rsp), %rsi
callq 0x8238
leaq 0x8(%rsp), %rdi
callq 0x81ae
movzwl 0x14(%rsp), %eax
movw %ax, 0x8(%r14)
movq %rbx, %rdi
callq 0x81ae
jmp 0x6623
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2bd8(%rip), %rdi      # 0x9213
leaq 0x2bf1(%rip), %rsi      # 0x9233
leaq 0x32c4(%rip), %rcx      # 0x990d
movl $0xa0, %edx
callq 0x1080
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x81ae
jmp 0x6665
movq %rax, %r14
movq %rbx, %rdi
callq 0x81ae
movq %r14, %rdi
callq 0x1190
nop
// File: /workspace/github_cpp_makefile_star2_O1/sgalkina[P]data_structures/src/tree_map.h
// Function: gtl::tree_map<int, int>::add(int, int)
bool tree_map<K, V>::add(K key, V value) {
  bool result = false;
  root_ = add(root_, key, value, result);
  root_->is_red = false;
  if (result) ++size_;
  return result;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %edx, %ecx
movl %esi, %edx
movq %rdi, %rbx
xorl %ebp, %ebp
leaq 0xf(%rsp), %r14
movb %bpl, (%r14)
movq (%rdi), %rsi
movq %r14, %r8
callq 0x6bfe
movq %rax, (%rbx)
movb %bpl, 0x8(%rax)
movb (%r14), %al
cmpb $0x1, %al
jne 0x6a8c
incq 0x8(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/sgalkina[P]data_structures/src/tree_map.h
// Function: gtl::tree_map<int, int>::remove(int const&)
bool tree_map<K, V>::remove(K const & key) {
  bool result = true;
  root_ = remove(root_, key, result);
  if (root_) root_->is_red = false;
  if (result) --size_;
  return result;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rdx
movq %rdi, %rbx
leaq 0xf(%rsp), %rcx
movb $0x1, (%rcx)
movq (%rdi), %rsi
callq 0x6dce
movq %rax, (%rbx)
testq %rax, %rax
je 0x6abd
movb $0x0, 0x8(%rax)
movb 0xf(%rsp), %al
cmpb $0x1, %al
jne 0x6ac9
decq 0x8(%rbx)
addq $0x10, %rsp
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/sgalkina[P]data_structures/src/tree_map.h
// Function: gtl::tree_map<int, int>::get(gtl::tree_map<int, int>::Node*, int const&) const
auto tree_map<K, V>::get(Node * node, K const & key) const -> Node * {
  if (!node) return nullptr;
  if (node->key == key) return node;
  if (key < node->key) return get(node->left, key);
  return get(node->right, key);
}

// Assembly:
movq %rsi, %rax
testq %rax, %rax
je 0x6bfb
movl (%rax), %ecx
movl (%rdx), %esi
cmpl %esi, %ecx
je 0x6bfd
setle %cl
movzbl %cl, %ecx
movq 0x10(%rax,%rcx,8), %rax
jmp 0x6be1
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/sgalkina[P]data_structures/src/tree_map.h
// Function: gtl::tree_map<int, int>::add(gtl::tree_map<int, int>::Node*, int, int, bool&)
typename tree_map<K, V>::Node * tree_map<K, V>::add(Node * node, K key, V value, bool & result) {
  if (!node) {
    result = true;
    return new Node(key, value);
  }

  if (key == node->key) node->value = value;
  else if (key < node->key) node->left = add(node->left, key, value, result);
  else node->right = add(node->right, key, value, result);

  return fix_up(node);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebp
movl %edx, %r15d
testq %rsi, %rsi
je 0x6c1f
movq %rsi, %rbx
movq %rdi, %r14
cmpl %r15d, (%rsi)
jne 0x6c49
movl %ebp, 0x4(%rbx)
jmp 0x6c77
movb $0x1, %bl
movb %bl, (%r8)
movl $0x20, %edi
callq 0x1110
movl %r15d, (%rax)
movl %ebp, 0x4(%rax)
movb %bl, 0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jle 0x6c62
movq 0x10(%rbx), %rsi
movq %r14, %rdi
movl %r15d, %edx
movl %ebp, %ecx
callq 0x6bfe
movq %rax, 0x10(%rbx)
jmp 0x6c77
movq 0x18(%rbx), %rsi
movq %r14, %rdi
movl %r15d, %edx
movl %ebp, %ecx
callq 0x6bfe
movq %rax, 0x18(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x6c8c
// File: /workspace/github_cpp_makefile_star2_O1/sgalkina[P]data_structures/src/tree_map.h
// Function: gtl::tree_map<int, int>::fix_up(gtl::tree_map<int, int>::Node*)
auto tree_map<K, V>::fix_up(Node * node) -> Node * {
  if (is_red(node->right) && !is_red(node->left)) node = node->rotate_left();
  if (is_red(node->left) && is_red(node->left->left)) node = node->rotate_right();
  if (is_red(node->left) && is_red(node->right)) node->flip_colors();
  return node;
}

// Assembly:
pushq %rax
movq %rsi, %rax
movq 0x18(%rsi), %rcx
testq %rcx, %rcx
je 0x6cb6
cmpb $0x1, 0x8(%rcx)
jne 0x6cb6
movq 0x10(%rax), %rcx
testq %rcx, %rcx
je 0x6cae
cmpb $0x0, 0x8(%rcx)
jne 0x6cb6
movq %rax, %rdi
callq 0x6d12
movq 0x10(%rax), %rcx
testq %rcx, %rcx
je 0x6cdc
cmpb $0x1, 0x8(%rcx)
jne 0x6cdc
movq 0x10(%rcx), %rcx
testq %rcx, %rcx
je 0x6cdc
cmpb $0x1, 0x8(%rcx)
jne 0x6cdc
movq %rax, %rdi
callq 0x6d54
movq 0x10(%rax), %rcx
testq %rcx, %rcx
je 0x6d10
cmpb $0x1, 0x8(%rcx)
jne 0x6d10
movq 0x18(%rax), %rdx
testq %rdx, %rdx
je 0x6d10
cmpb $0x1, 0x8(%rdx)
jne 0x6d10
xorb $0x1, 0x8(%rax)
testq %rcx, %rcx
je 0x6d07
xorb $0x1, 0x8(%rcx)
testq %rdx, %rdx
je 0x6d10
xorb $0x1, 0x8(%rdx)
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O1/sgalkina[P]data_structures/src/tree_map.h
// Function: gtl::tree_map<int, int>::Node::rotate_left()
auto tree_map<K, V>::Node::rotate_left() -> Node * {
  Node * x = right;
  assert(x->is_red);
  x->is_red = is_red;
  is_red = true;
  right = x->left;
  x->left = this;
  return x;
}

// Assembly:
movq 0x18(%rdi), %rax
cmpb $0x0, 0x8(%rax)
je 0x6d33
movb 0x8(%rdi), %cl
movb %cl, 0x8(%rax)
movb $0x1, 0x8(%rdi)
movq 0x10(%rax), %rcx
movq %rcx, 0x18(%rdi)
movq %rdi, 0x10(%rax)
retq
pushq %rax
leaq 0x2dfd(%rip), %rdi      # 0x9b38
leaq 0x2e00(%rip), %rsi      # 0x9b42
leaq 0x2e08(%rip), %rcx      # 0x9b51
movl $0x66, %edx
callq 0x1080
nop
// File: /workspace/github_cpp_makefile_star2_O1/sgalkina[P]data_structures/src/tree_map.h
// Function: gtl::tree_map<int, int>::Node::rotate_right()
auto tree_map<K, V>::Node::rotate_right() -> Node * {
  Node * x = left;
  assert(x->is_red);
  x->is_red = is_red;
  is_red = true;
  left = x->right;
  x->right = this;
  return x;
}

// Assembly:
movq 0x10(%rdi), %rax
cmpb $0x0, 0x8(%rax)
je 0x6d75
movb 0x8(%rdi), %cl
movb %cl, 0x8(%rax)
movb $0x1, 0x8(%rdi)
movq 0x18(%rax), %rcx
movq %rcx, 0x10(%rdi)
movq %rdi, 0x18(%rax)
retq
pushq %rax
leaq 0x2dbb(%rip), %rdi      # 0x9b38
leaq 0x2dbe(%rip), %rsi      # 0x9b42
leaq 0x2e0c(%rip), %rcx      # 0x9b97
movl $0x71, %edx
callq 0x1080
nop
// File: /workspace/github_cpp_makefile_star2_O1/sgalkina[P]data_structures/src/tree_map.h
// Function: gtl::tree_map<int, int>::remove(gtl::tree_map<int, int>::Node*, int const&, bool&)
auto tree_map<K, V>::remove(Node * node, K const & key, bool & result) -> Node * {
  if (!node) {
    result = false;
    return nullptr;
  }
  if (key < node->key) {
    if (!is_red(node->left) && (!node->left || !is_red(node->left->left))) node = move_red_left(node);
    node->left = remove(node->left, key, result);
  } else {
    if (is_red(node->left)) node = node->rotate_right();
    if (key == node->key && !node->right) {
      Node * temp = node->left;
      node->left = nullptr;
      delete node;
      return temp;
    }
    if (!is_red(node->right) && (!node->right || !is_red(node->right->left))) node = move_red_right(node);
    if (key == node->key) {
      Node * min_right = min(node->right);
      node->value = min_right->value;
      node->key = min_right->key;
      node->right = delete_min(node->right);
    } else {
      node->right = remove(node->right, key, result);
    }
  }
  return fix_up(node);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
testq %rsi, %rsi
je 0x6e39
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r14
movl (%rdx), %ecx
movq 0x10(%rsi), %rax
cmpl (%rsi), %ecx
jge 0x6e4f
testq %rax, %rax
je 0x6e10
cmpb $0x0, 0x8(%rax)
jne 0x6e1e
testq %rax, %rax
je 0x6e10
movq 0x10(%rax), %rax
testq %rax, %rax
je 0x6e10
cmpb $0x0, 0x8(%rax)
jne 0x6e1e
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6f1a
movq %rax, %rbx
movq 0x10(%rbx), %rsi
movq %r14, %rdi
movq %r12, %rdx
movq %r15, %rcx
callq 0x6dce
movq %rax, 0x10(%rbx)
jmp 0x6ee3
movb $0x0, (%r15)
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
testq %rax, %rax
je 0x6e65
cmpb $0x1, 0x8(%rax)
jne 0x6e65
movq %rbx, %rdi
callq 0x6d54
movq %rax, %rbx
movl (%r12), %eax
cmpl (%rbx), %eax
jne 0x6e78
cmpq $0x0, 0x18(%rbx)
je 0x6ef9
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x6e9b
cmpb $0x0, 0x8(%rax)
jne 0x6ea9
testq %rax, %rax
je 0x6e9b
movq 0x10(%rax), %rax
testq %rax, %rax
je 0x6e9b
cmpb $0x0, 0x8(%rax)
jne 0x6ea9
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6fca
movq %rax, %rbx
movl (%r12), %eax
movq 0x18(%rbx), %rsi
cmpl (%rbx), %eax
jne 0x6ed1
movq %r14, %rdi
callq 0x7028
movq (%rax), %rax
movq %rax, (%rbx)
movq 0x18(%rbx), %rsi
movq %r14, %rdi
callq 0x703e
jmp 0x6edf
movq %r14, %rdi
movq %r12, %rdx
movq %r15, %rcx
callq 0x6dce
movq %rax, 0x18(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x6c8c
movq 0x10(%rbx), %r14
movq $0x0, 0x10(%rbx)
movq %rbx, %rdi
callq 0x6f82
movq %rbx, %rdi
callq 0x10e0
jmp 0x6e40
// File: /workspace/github_cpp_makefile_star2_O1/sgalkina[P]data_structures/src/tree_map.h
// Function: gtl::tree_map<int, int>::move_red_left(gtl::tree_map<int, int>::Node*)
auto tree_map<K, V>::move_red_left(Node * node) -> Node * {
  node->flip_colors();
  if (node->right && is_red(node->right->left)) {
    node->right = node->right->rotate_right();
    node = node->rotate_left();
    node->flip_colors();
  }
  return node;
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
xorb $0x1, 0x8(%rsi)
movq 0x10(%rsi), %rax
testq %rax, %rax
je 0x6f2f
xorb $0x1, 0x8(%rax)
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x6f7d
xorb $0x1, 0x8(%rdi)
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x6f7d
cmpb $0x1, 0x8(%rax)
jne 0x6f7d
callq 0x6d54
movq %rax, 0x18(%rbx)
movq %rbx, %rdi
callq 0x6d12
movq %rax, %rbx
xorb $0x1, 0x8(%rax)
movq 0x10(%rax), %rax
testq %rax, %rax
je 0x6f70
xorb $0x1, 0x8(%rax)
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x6f7d
xorb $0x1, 0x8(%rax)
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/sgalkina[P]data_structures/src/tree_map.h
// Function: gtl::tree_map<int, int>::move_red_right(gtl::tree_map<int, int>::Node*)
auto tree_map<K, V>::move_red_right(Node * node) -> Node * {
  node->flip_colors();
  if (node->left && is_red(node->left->left)) {
    node = node->rotate_right();
    node->flip_colors();
  }
  return node;
}

// Assembly:
movq %rsi, %rax
xorb $0x1, 0x8(%rsi)
movq 0x10(%rsi), %rcx
testq %rcx, %rcx
je 0x6fde
xorb $0x1, 0x8(%rcx)
movq 0x18(%rax), %rdx
testq %rdx, %rdx
je 0x6feb
xorb $0x1, 0x8(%rdx)
pushq %rax
testq %rcx, %rcx
je 0x7026
movq 0x10(%rcx), %rcx
testq %rcx, %rcx
je 0x7026
cmpb $0x1, 0x8(%rcx)
jne 0x7026
movq %rax, %rdi
callq 0x6d54
xorb $0x1, 0x8(%rax)
movq 0x10(%rax), %rcx
testq %rcx, %rcx
je 0x7019
xorb $0x1, 0x8(%rcx)
movq 0x18(%rax), %rcx
testq %rcx, %rcx
je 0x7026
xorb $0x1, 0x8(%rcx)
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O1/sgalkina[P]data_structures/src/tree_map.h
// Function: gtl::tree_map<int, int>::delete_min(gtl::tree_map<int, int>::Node*)
auto tree_map<K, V>::delete_min(Node * node) -> Node * {
  if (!node) return nullptr;
  if (!node->left) {
    Node * temp = node->right;
    node->right = nullptr;
    delete node;
    return temp;
  }
  if (!is_red(node->left) && (!node->left || !is_red(node->left->left))) node = move_red_left(node);
  node->left = delete_min(node->left);
  return fix_up(node);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x709b
movq %rsi, %rbx
movq 0x10(%rsi), %rax
testq %rax, %rax
je 0x70a0
movq %rdi, %r14
cmpb $0x0, 0x8(%rax)
jne 0x7079
movq 0x10(%rax), %rax
testq %rax, %rax
je 0x706b
cmpb $0x0, 0x8(%rax)
jne 0x7079
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6f1a
movq %rax, %rbx
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x703e
movq %rax, 0x10(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x6c8c
xorl %r14d, %r14d
jmp 0x70bc
movq 0x18(%rbx), %r14
movq $0x0, 0x18(%rbx)
movq %rbx, %rdi
callq 0x6f82
movq %rbx, %rdi
callq 0x10e0
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/sgalkina[P]data_structures/src/test_map.h
// Function: long gtl::benchmark_operation<gtl::vector_map<int, int>, gtl::search<gtl::vector_map<int, int>>>(gtl::vector_map<int, int>&)
clock_t benchmark_operation(T & map) {
  U op;
  size_t n_runs = 100;
  clock_t min_time = LONG_MAX;
  for (size_t i = 0; i < n_runs; ++i) {
    clock_t start_time = std::clock();
    op(map);
    clock_t end_time = std::clock();
    clock_t t = (end_time - start_time) % CLOCKS_PER_SEC;
    if (t < min_time) min_time = t;
  }
  return min_time;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movabsq $0x7fffffffffffffff, %rbx # imm = 0x7FFFFFFFFFFFFFFF
xorl %r15d, %r15d
movabsq $0x431bde82d7b634db, %r12 # imm = 0x431BDE82D7B634DB
callq 0x1090
movq %rax, %r14
movq 0x6f70(%rip), %rax      # 0xe0f0
leaq (%rax,%rax), %rcx
shlq $0x4, %rax
cmpq %rcx, %rax
je 0x71af
xorl %r13d, %r13d
callq 0x1050
incq %r13
movq 0x6f51(%rip), %rax      # 0xe0f0
leaq (%rax,%rax), %rcx
shlq $0x4, %rax
subq %rcx, %rax
cmpq %rax, %r13
jb 0x7190
callq 0x1090
movq %rax, %rcx
subq %r14, %rcx
movq %rcx, %rax
imulq %r12
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x12, %rdx
addq %rax, %rdx
imulq $0xf4240, %rdx, %rax    # imm = 0xF4240
subq %rax, %rcx
cmpq %rbx, %rcx
cmovlq %rcx, %rbx
incq %r15
cmpq $0x64, %r15
jne 0x7171
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/sgalkina[P]data_structures/src/test_map.h
// Function: gtl::mixed<gtl::hash_map<int, int, std::hash<int>>>::operator()(gtl::hash_map<int, int, std::hash<int>>&)
void operator() (T & map) {
    for (size_t i = 0; i < 10*n_operations; ++i) {
      map.lookup(rand() % max_number);
    }
    for (size_t i = 0; i < 3*n_operations; ++i) {
      int el = rand() % max_number;
      map.add(el, 0);
    }
    for (size_t i = 0; i < n_operations; ++i) {
      int el = rand() % max_number;
      map.remove(el);
    }
  }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq 0x657c(%rip), %rax      # 0xe0f0
addq %rax, %rax
leaq (%rax,%rax,4), %rax
testq %rax, %rax
je 0x7bba
xorl %r15d, %r15d
movq %rsp, %r14
callq 0x1050
cltq
xorl %edx, %edx
divq 0x6552(%rip)            # 0xe0e8
movl %edx, (%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7cac
incq %r15
movq 0x6542(%rip), %rax      # 0xe0f0
addq %rax, %rax
leaq (%rax,%rax,4), %rax
cmpq %rax, %r15
jb 0x7b86
cmpq $0x0, 0x652e(%rip)      # 0xe0f0
je 0x7c0b
xorl %r12d, %r12d
movq %rsp, %r14
leaq 0x4(%rsp), %r15
callq 0x1050
cltq
xorl %edx, %edx
divq 0x6509(%rip)            # 0xe0e8
movl %edx, (%rsp)
movl $0x0, 0x4(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x77ca
incq %r12
movq 0x64ee(%rip), %rax      # 0xe0f0
leaq (%rax,%rax,2), %rax
cmpq %rax, %r12
jb 0x7bcf
cmpq $0x0, 0x64dd(%rip)      # 0xe0f0
je 0x7c45
xorl %r15d, %r15d
movq %rsp, %r14
callq 0x1050
cltq
xorl %edx, %edx
divq 0x64bd(%rip)            # 0xe0e8
movl %edx, (%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7c52
incq %r15
cmpq 0x64ad(%rip), %r15      # 0xe0f0
jb 0x7c1b
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/sgalkina[P]data_structures/src/memcheck.cpp
// Function: memcheck::~memcheck()
memcheck::~memcheck()
  {
    assert(value_ != memcheck::DESTRUCTOR_VALUE && "Double free");
    assert(value_ == memcheck::CONSTRUCTOR_VALUE && "Not initialized memory");
    value_ = memcheck::DESTRUCTOR_VALUE;
    --counter;
  }

// Assembly:
pushq %rax
movl (%rdi), %eax
cmpl $0xcafebabe, %eax       # imm = 0xCAFEBABE
jne 0x81c7
movl $0xdeadbeef, (%rdi)     # imm = 0xDEADBEEF
decq 0x5f4b(%rip)            # 0xe110
popq %rax
retq
cmpl $0xdeadbeef, %eax       # imm = 0xDEADBEEF
jne 0x81ed
leaq 0x2014(%rip), %rdi      # 0xa1e9
leaq 0x2043(%rip), %rsi      # 0xa21f
leaq 0x204d(%rip), %rcx      # 0xa230
movl $0x11, %edx
callq 0x1080
leaq 0x2052(%rip), %rdi      # 0xa246
leaq 0x2024(%rip), %rsi      # 0xa21f
leaq 0x202e(%rip), %rcx      # 0xa230
movl $0x12, %edx
callq 0x1080
// File: /workspace/github_cpp_makefile_star2_O1/zyLiu6707[P]Arknights-Pull-Simulation/./utils.h
// Function: get_random_seed()
uint_fast64_t get_random_seed() {
  std::random_device rd;  // uses RDRND or /dev/urandom
                          // if you want use a specific token, do not use
                          // "/dev/random" on Linux, which is much slower
  std::mt19937_64 mt64(rd());
  auto random_seed = mt64();
  return random_seed;
}

// Assembly:
pushq %rbx
subq $0x1d50, %rsp           # imm = 0x1D50
leaq 0x9c8(%rsp), %rbx
movq %rbx, %rdi
callq 0x50d0
movq %rbx, %rdi
callq 0x21f0
movl %eax, %esi
movq %rsi, (%rsp)
movl $0x1, %eax
movabsq $0x5851f42d4c957f2d, %rcx # imm = 0x5851F42D4C957F2D
movq %rsi, %rdx
shrq $0x3e, %rdx
xorq %rsi, %rdx
imulq %rcx, %rdx
addq %rax, %rdx
movq %rdx, (%rsp,%rax,8)
incq %rax
movq %rdx, %rsi
cmpq $0x138, %rax            # imm = 0x138
jne 0x248b
movq %rsp, %rdi
movq $0x138, 0x9c0(%rdi) # imm = 0x138
callq 0x514a
movq %rax, %rbx
leaq 0x9c8(%rsp), %rdi
callq 0x2170
movq %rbx, %rax
addq $0x1d50, %rsp           # imm = 0x1D50
popq %rbx
retq
jmp 0x24f6
jmp 0x24de
movq %rax, %rbx
leaq 0x9c8(%rsp), %rdi
callq 0x2170
movq %rbx, %rdi
callq 0x2260
movq %rax, %rdi
callq 0x52f3
// File: /workspace/github_cpp_makefile_star2_O1/zyLiu6707[P]Arknights-Pull-Simulation/./error_flag.h
// Function: ErrorFlag::check_err() const
bool check_err() const {
    return err_redundant_identical_ctrl_arg ||

           err_redundant_total_pull_time_ctrl_arg ||
           err_invalid_value_for_total_pull_time_ctrl_arg ||
           err_invalid_value_for_total_pull_time_long_name_ctrl_arg ||
           err_missing_value_for_total_pull_time_ctrl_arg ||
           err_missing_value_for_total_pull_time_long_name_ctrl_arg ||

           err_redundant_pity_ctrl_arg ||
           err_invalid_value_for_pity_ctrl_arg ||
           err_invalid_value_for_pity_long_name_ctrl_arg ||
           err_missing_value_for_pity_ctrl_arg ||
           err_missing_value_for_pity_long_name_ctrl_arg ||

           err_redundant_num_rate_up_ctrl_arg ||
           err_invalid_value_for_num_rate_up_ctrl_arg ||
           err_invalid_value_for_num_rate_up_long_name_ctrl_arg ||
           err_missing_value_for_num_rate_up_ctrl_arg ||
           err_missing_value_for_num_rate_up_long_name_ctrl_arg ||

           err_redundant_current_pull_ctrl_arg ||
           err_invalid_value_for_current_pull_ctrl_arg ||
           err_invalid_value_for_current_pull_long_name_ctrl_arg ||
           err_missing_value_for_current_pull_ctrl_arg ||
           err_missing_value_for_current_pull_long_name_ctrl_arg ||

           err_conflict_ctrl_arg_flag ||
           err_unexpected_value_for_ctrl_arg_limited ||
           err_unexpected_value_for_ctrl_arg_standard ||
           err_unexpected_arguments_at_the_beginning ||
           err_help_ctrl_arg_with_other_args ||
           err_invalid_ctrl_args;
  }

// Assembly:
movb $0x1, %al
cmpb $0x0, (%rdi)
jne 0x5276
cmpb $0x0, 0x1(%rdi)
jne 0x5276
cmpb $0x0, 0x2(%rdi)
jne 0x5276
cmpb $0x0, 0x3(%rdi)
jne 0x5276
cmpb $0x0, 0x4(%rdi)
jne 0x5276
cmpb $0x0, 0x5(%rdi)
jne 0x5276
cmpb $0x0, 0x6(%rdi)
jne 0x5276
cmpb $0x0, 0x7(%rdi)
jne 0x5276
cmpb $0x0, 0x8(%rdi)
jne 0x5276
cmpb $0x0, 0x9(%rdi)
jne 0x5276
cmpb $0x0, 0xa(%rdi)
jne 0x5276
cmpb $0x0, 0xb(%rdi)
jne 0x5276
cmpb $0x0, 0xc(%rdi)
jne 0x5276
cmpb $0x0, 0xd(%rdi)
jne 0x5276
cmpb $0x0, 0xe(%rdi)
jne 0x5276
cmpb $0x0, 0xf(%rdi)
jne 0x5276
cmpb $0x0, 0x10(%rdi)
jne 0x5276
cmpb $0x0, 0x11(%rdi)
jne 0x5276
cmpb $0x0, 0x12(%rdi)
jne 0x5276
cmpb $0x0, 0x13(%rdi)
jne 0x5276
cmpb $0x0, 0x14(%rdi)
jne 0x5276
cmpb $0x0, 0x15(%rdi)
jne 0x5276
cmpb $0x0, 0x16(%rdi)
jne 0x5276
cmpb $0x0, 0x17(%rdi)
jne 0x5276
cmpb $0x0, 0x18(%rdi)
jne 0x5276
cmpb $0x0, 0x19(%rdi)
jne 0x5276
movb 0x1a(%rdi), %al
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/devernay[P]vlpovutils/vlpov_motionfield2.cpp
// Function: tiff_save(VLPovImage<double> const&, char const*, char const*)
static void tiff_save(const VLPovImage<double> &img, const char *fname, const char *desc)
{
    // convert to float
    float *data = new float[img.width()*img.height()];
    std::copy(img.data(), img.data()+img.width()*img.height(), data);
    //for (int i=0; i<img.width()*img.height(); ++i) {
    //    data[i] = img.data()[i];
    //}
    struct tiff_hdr th;
    tiff_head(&th, img.width(), img.height(), /*colors=*/1, /*bytes_per_sample=*/sizeof(*data), /*isfloat=*/true, desc);
    FILE *f = fopen(fname, "wb");
    if(f == NULL) {
        fprintf(stderr, "Error: cannot open file '%s' for writing\n", fname);
        return;
    }
    fwrite (&th, sizeof th, 1, f);
    fwrite(data, img.width()*img.height()*sizeof(*data), 1, f);
    fclose(f);
    delete [] data;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3d8, %rsp            # imm = 0x3D8
movq %rdx, %r12
movq %rsi, (%rsp)
movq %rdi, %r14
movl (%rdi), %ebp
movl 0x4(%rdi), %r13d
movl %r13d, %eax
imull %ebp, %eax
movslq %eax, %r15
leaq (,%r15,4), %rax
testl %r15d, %r15d
movq $-0x1, %rdi
cmovnsq %rax, %rdi
callq 0x2040
movq %rax, %rbx
testl %r15d, %r15d
jle 0x47ab
movq 0x8(%r14), %rax
incq %r15
xorl %ecx, %ecx
xorps %xmm0, %xmm0
cvtsd2ss (%rax,%rcx,2), %xmm0
movss %xmm0, (%rbx,%rcx)
decq %r15
addq $0x4, %rcx
cmpq $0x1, %r15
jg 0x4791
leaq 0x8(%rsp), %rdi
movl %ebp, %esi
movl %r13d, %edx
movl $0x4, %ecx
movl $0x1, %r8d
movq %r12, %r9
callq 0x48fc
leaq 0x6bf3(%rip), %rsi      # 0xb3c2
movq (%rsp), %r15
movq %r15, %rdi
callq 0x21d0
testq %rax, %rax
je 0x483b
movq %rax, %r12
leaq 0x8(%rsp), %rdi
movl $0x3d0, %esi            # imm = 0x3D0
movl $0x1, %edx
movq %rax, %rcx
callq 0x22e0
movslq (%r14), %rax
movslq 0x4(%r14), %rsi
imulq %rax, %rsi
shlq $0x2, %rsi
movl $0x1, %edx
movq %rbx, %rdi
movq %r12, %rcx
callq 0x22e0
movq %r12, %rdi
callq 0x2160
movq %rbx, %rdi
callq 0x21f0
addq $0x3d8, %rsp            # imm = 0x3D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xa776(%rip), %rax      # 0xefb8
movq (%rax), %rdi
leaq 0x6b79(%rip), %rsi      # 0xb3c5
movq %r15, %rdx
xorl %eax, %eax
callq 0x2210
jmp 0x4829
// File: /workspace/github_cpp_makefile_star2_O1/devernay[P]vlpovutils/vlpov_motionfield2.cpp
// Function: tiff_save(VLPovImage<unsigned char> const&, char const*, char const*)
static void tiff_save(const VLPovImage<unsigned char> &img, const char *fname, const char *desc)
{
    struct tiff_hdr th;
    tiff_head(&th, img.width(), img.height(), /*colors=*/1, /*bytes_per_sample=*/sizeof(img(0,0)), /*isfloat=*/false, desc);
    FILE *f = fopen(fname, "wb");
    if(f == NULL) {
        fprintf(stderr, "Error: cannot open file '%s' for writing\n", fname);
        return;
    }
    fwrite (&th, sizeof th, 1, f);
    fwrite(img.data(), img.width()*img.height()*sizeof(img(0,0)), 1, f);
    fclose(f);                          
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x3d0, %rsp            # imm = 0x3D0
movq %rdx, %r9
movq %rsi, %r14
movq %rdi, %rbx
movl (%rdi), %esi
movl 0x4(%rdi), %edx
movq %rsp, %rdi
movl $0x1, %ecx
xorl %r8d, %r8d
callq 0x48fc
leaq 0x6b39(%rip), %rsi      # 0xb3c2
movq %r14, %rdi
callq 0x21d0
testq %rax, %rax
je 0x48df
movq %rax, %r15
movq %rsp, %rdi
movl $0x3d0, %esi            # imm = 0x3D0
movl $0x1, %edx
movq %rax, %rcx
callq 0x22e0
movq 0x8(%rbx), %rdi
movslq (%rbx), %rax
movslq 0x4(%rbx), %rsi
imulq %rax, %rsi
movl $0x1, %edx
movq %r15, %rcx
callq 0x22e0
movq %r15, %rdi
callq 0x2160
addq $0x3d0, %rsp            # imm = 0x3D0
popq %rbx
popq %r14
popq %r15
retq
movq 0xa6d2(%rip), %rax      # 0xefb8
movq (%rax), %rdi
leaq 0x6ad5(%rip), %rsi      # 0xb3c5
movq %r14, %rdx
xorl %eax, %eax
callq 0x2210
jmp 0x48d2
// File: /workspace/github_cpp_makefile_star2_O1/devernay[P]vlpovutils/./vlpov.hpp
// Function: VLPovImage<double>::resize(int, int)
void resize(int w, int h) {
        delete [] _data;
        if (w > 0 && h > 0) {
            _data = new T[w*h];
            _width = w; _height = h;
        } else {
            _width = _height = 0;
            _data = 0;
        }
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x5326
callq 0x21f0
testl %r14d, %r14d
setle %al
testl %ebp, %ebp
setle %cl
orb %al, %cl
jne 0x5350
movl %ebp, %edi
imull %r14d, %edi
shlq $0x3, %rdi
callq 0x2040
movq %rax, 0x8(%rbx)
movl %r14d, (%rbx)
movl %ebp, 0x4(%rbx)
jmp 0x5356
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/devernay[P]vlpovutils/occlusionmap.cpp
// Function: vlpov_occlusionmap_stereo(VLPovImage<double> const&, VLPovImage<double> const&, double, VLPovImage<unsigned char>&)
void vlpov_occlusionmap_stereo(const VLPovImage<double> &m1x, const VLPovImage<double> &m2x,
                               double t,
                               VLPovImage<unsigned char> &occ1)
{
    int width1 = m1x.width();
    int height1 = m1x.height();
    int width2 = m2x.width();
    int height2 = m2x.height();
    
    occ1.resize(width1, height1);
    
    for(int y1 = 0; y1 < height1; ++y1) {
        for(int x1 = 0; x1 < width1; ++x1) {
            double x2 = x1 + m1x(x1,y1);
            double y2 = y1;
            
            // check for visibility
            if (x2 < -0.5 || x2 > width2-0.5 ||
                y2 < -0.5 || y2 > height2-0.5) {
                occ1(x1,y1) = 0;
                continue;
            }
            
            double x1b = x2 + m2x.linear_at(x2,y2);
            // check for occlusion
            if (std::abs(x1 - x1b) > t) {
                occ1(x1,y1) = 0;
                continue;
            }
            
            // point is visible
            occ1(x1,y1) = 255;
        }
    }
    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %rbx
movsd %xmm0, 0x20(%rsp)
movq %rdi, %r15
movl (%rdi), %r12d
movl 0x4(%rdi), %r13d
movl (%rsi), %r14d
movq %rsi, 0x18(%rsp)
movl 0x4(%rsi), %ebp
movq %rdx, %rdi
movl %r12d, %esi
movl %r13d, %edx
callq 0x6688
movl %r13d, 0xc(%rsp)
testl %r13d, %r13d
jle 0x6678
xorps %xmm0, %xmm0
cvtsi2sd %r14d, %xmm0
movsd 0x5239(%rip), %xmm2     # 0xb7a0
addsd %xmm2, %xmm0
movsd %xmm0, 0x30(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %ebp, %xmm0
addsd %xmm2, %xmm0
movsd %xmm0, 0x28(%rsp)
xorl %r13d, %r13d
xorpd %xmm1, %xmm1
movsd 0x4a77(%rip), %xmm4     # 0xb008
testl %r12d, %r12d
jle 0x6666
xorpd %xmm3, %xmm3
movslq %r13d, %rbp
xorl %r14d, %r14d
movsd %xmm1, 0x10(%rsp)
movq 0x8(%r15), %rax
movslq (%r15), %rcx
imulq %rbp, %rcx
addq %r14, %rcx
movsd (%rax,%rcx,8), %xmm0
addsd %xmm3, %xmm0
ucomisd %xmm0, %xmm2
ja 0x6626
ucomisd 0x30(%rsp), %xmm0
ja 0x6626
ucomisd 0x28(%rsp), %xmm1
ja 0x6626
movq 0x18(%rsp), %rdi
movsd %xmm3, 0x40(%rsp)
movsd %xmm0, 0x38(%rsp)
callq 0x66d4
movsd 0x40(%rsp), %xmm3
addsd 0x38(%rsp), %xmm0
movapd %xmm3, %xmm1
subsd %xmm0, %xmm1
andpd 0x51a7(%rip), %xmm1     # 0xb7b0
movl (%rbx), %eax
imull %r13d, %eax
addl %r14d, %eax
ucomisd 0x20(%rsp), %xmm1
cltq
jbe 0x6638
movq 0x8(%rbx), %rcx
movb $0x0, (%rcx,%rax)
jmp 0x6640
movslq (%rbx), %rax
imulq %rbp, %rax
addq 0x8(%rbx), %rax
movb $0x0, (%r14,%rax)
jmp 0x6656
movq 0x8(%rbx), %rcx
movb $-0x1, (%rcx,%rax)
movsd 0x5158(%rip), %xmm2     # 0xb7a0
movsd 0x10(%rsp), %xmm1
movsd 0x49b2(%rip), %xmm4     # 0xb008
addsd %xmm4, %xmm3
incq %r14
cmpl %r14d, %r12d
jne 0x65aa
addsd %xmm4, %xmm1
incl %r13d
cmpl 0xc(%rsp), %r13d
jne 0x6591
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/devernay[P]vlpovutils/./vlpov.hpp
// Function: VLPovImage<double>::linear_at(double, double) const
const T linear_at(double fx, double fy) const {
        const double nfx = fx<0?0:(fx>_width-1?_width-1:fx);
        const double nfy = fy<0?0:(fy>_height-1?_height-1:fy);
        const unsigned int x = (unsigned int)nfx;
        const unsigned int y = (unsigned int)nfy;
        const double dx = nfx - x;
        const double dy = nfy - y;
        const unsigned int nx = dx>0?x+1:x;
        const unsigned int ny = dy>0?y+1:y;
        const T Icc = (*this)(x,y);
        const T Inc = (*this)(nx,y);
        const T Icn = (*this)(x,ny);
        const T Inn = (*this)(nx,ny);
        return Icc + dx*(Inc-Icc + dy*(Icc+Inn-Icn-Inc)) + dy*(Icn-Icc);
    }

// Assembly:
xorpd %xmm2, %xmm2
ucomisd %xmm0, %xmm2
xorpd %xmm3, %xmm3
ja 0x66f1
movl (%rdi), %eax
decl %eax
xorps %xmm3, %xmm3
cvtsi2sd %eax, %xmm3
minsd %xmm0, %xmm3
ucomisd %xmm1, %xmm2
ja 0x6707
movl 0x4(%rdi), %eax
decl %eax
xorps %xmm2, %xmm2
cvtsi2sd %eax, %xmm2
minsd %xmm1, %xmm2
cvttsd2si %xmm3, %rax
cvttsd2si %xmm2, %rcx
movl %eax, %edx
xorps %xmm0, %xmm0
cvtsi2sd %rdx, %xmm0
movl %ecx, %edx
xorps %xmm1, %xmm1
cvtsi2sd %rdx, %xmm1
subsd %xmm0, %xmm3
subsd %xmm1, %xmm2
xorpd %xmm0, %xmm0
xorl %edx, %edx
ucomisd %xmm0, %xmm3
seta %dl
addl %eax, %edx
xorl %esi, %esi
ucomisd %xmm0, %xmm2
seta %sil
addl %ecx, %esi
movq 0x8(%rdi), %r8
movl (%rdi), %edi
imull %edi, %ecx
leal (%rcx,%rax), %r9d
movslq %r9d, %r9
movsd (%r8,%r9,8), %xmm1
addl %edx, %ecx
movslq %ecx, %rcx
movsd (%r8,%rcx,8), %xmm4
imull %edi, %esi
addl %esi, %eax
cltq
movsd (%r8,%rax,8), %xmm0
addl %edx, %esi
movslq %esi, %rax
movsd (%r8,%rax,8), %xmm5
addsd %xmm1, %xmm5
subsd %xmm0, %xmm5
subsd %xmm4, %xmm5
subsd %xmm1, %xmm4
mulsd %xmm2, %xmm5
addsd %xmm4, %xmm5
mulsd %xmm3, %xmm5
addsd %xmm1, %xmm5
subsd %xmm1, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm5, %xmm0
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/devernay[P]vlpovutils/povread.cpp
// Function: vlpov_povread(char const*, VLPovCamera&)
int vlpov_povread(const char* file, VLPovCamera &cam)
{
    size_t file_len = strlen(file);
    char *info_file = new char[file_len+5];
    const char *info_suffix = ".txt";
    std::copy(file, file+file_len, info_file);
    std::copy(info_suffix, info_suffix+5, info_file+file_len);
    int retval = vlpov_get_cam(info_file, cam);
    delete [] info_file;
    return retval;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r12
callq 0x2080
movq %rax, %r15
leaq 0x5(%rax), %rdi
callq 0x2040
movq %rax, %r14
testq %r15, %r15
je 0x67e5
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x2110
movb $0x0, 0x4(%r14,%r15)
movl $0x7478742e, (%r14,%r15) # imm = 0x7478742E
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6816
movl %eax, %ebx
movq %r14, %rdi
callq 0x21f0
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/devernay[P]vlpovutils/./vlpov.hpp
// Function: VLPovImage<double>::load(char const*)
int load(const char *filename) {
        if (_width <= 0 || _height <= 0) {
            return -1;
        }
        unsigned int siz = _width*_height;
        std::FILE *const nfile = std::fopen(filename,"rb");
        if (!nfile) {
            return -1;
        }
        std::fseek(nfile,0,SEEK_END);
        const long fsiz = (unsigned int)std::ftell(nfile)/sizeof(T);
        if (fsiz < siz) {
            std::fclose(nfile);
            return -1;
        }
        std::fseek(nfile,0,SEEK_SET);
        size_t nr = std::fread(_data,sizeof(T),siz,nfile);
        std::fclose(nfile);
        if (nr != siz) {
            return -1;
        }
        if (!endianness()) {
            invert_endianness();
        }
        return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl (%rdi), %r12d
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testl %r12d, %r12d
jle 0x71b4
movq %rdi, %rbx
movl 0x4(%rdi), %r14d
testl %r14d, %r14d
jle 0x71b4
leaq 0x49ed(%rip), %rax      # 0xbad9
movq %rsi, %rdi
movq %rax, %rsi
callq 0x21d0
testq %rax, %rax
je 0x71b4
movq %rax, %r15
imull %r12d, %r14d
movq %rax, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x2180
movq %r15, %rdi
callq 0x2030
shrl $0x3, %eax
cmpl %r14d, %eax
jae 0x7133
movq %r15, %rdi
callq 0x2160
jmp 0x71b4
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2180
movq 0x8(%rbx), %rdi
movl $0x8, %esi
movq %r14, %rdx
movq %r15, %rcx
callq 0x2220
movq %rax, %r12
movq %r15, %rdi
callq 0x2160
cmpq %r14, %r12
jne 0x71b4
movl 0x4(%rbx), %eax
imull (%rbx), %eax
testl %eax, %eax
je 0x71b2
movq 0x8(%rbx), %rdx
movl %eax, %eax
leaq (%rdx,%rax,8), %rcx
leaq (%rdx,%rax,8), %rax
decq %rax
movq %rcx, %rdx
addq $-0x8, %rcx
movq $-0x8, %rsi
movq %rax, %rdi
movb (%rdx,%rsi), %r8b
movb (%rdi), %r9b
movb %r9b, (%rdx,%rsi)
movb %r8b, (%rdi)
incq %rsi
decq %rdi
cmpl $-0x4, %esi
jne 0x718f
addq $-0x8, %rax
cmpq 0x8(%rbx), %rcx
ja 0x717e
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/devernay[P]vlpovutils/./small.hpp
// Function: boost::numeric::ublas::diagonal(double, double, double)
inline matrix33
diagonal(double d0, double d1, double d2) {
    matrix33 D;
    D(0,0) =  d0; D(0,1) = 0.0; D(0,2) = 0.0;
    D(1,0) = 0.0; D(1,1) =  d1; D(1,2) = 0.0;
    D(2,0) = 0.0; D(2,1) = 0.0; D(2,2) =  d2;

    return D;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movsd %xmm2, 0x18(%rsp)
movsd %xmm1, 0x10(%rsp)
movsd %xmm0, 0x8(%rsp)
movq %rdi, %rbx
movl $0x3, %eax
movq %rax, (%rdi)
movq %rax, 0x8(%rdi)
leaq 0x10(%rdi), %r14
movq $0x9, 0x10(%rdi)
xorl %r15d, %r15d
movl $0x3, %esi
movl $0x3, %ecx
xorl %edi, %edi
xorl %edx, %edx
callq 0x5830
movq %r14, %rdi
movq %rax, %rsi
callq 0x76fc
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rax)
movq (%rbx), %rsi
movq 0x8(%rbx), %rcx
movl $0x1, %edx
xorl %edi, %edi
callq 0x5830
movq %r14, %rdi
movq %rax, %rsi
callq 0x76fc
movq %r15, (%rax)
movq (%rbx), %rsi
movq 0x8(%rbx), %rcx
movl $0x2, %edx
xorl %edi, %edi
callq 0x5830
movq %r14, %rdi
movq %rax, %rsi
callq 0x76fc
movq %r15, (%rax)
movq (%rbx), %rsi
movq 0x8(%rbx), %rcx
movl $0x1, %edi
xorl %edx, %edx
callq 0x5830
movq %r14, %rdi
movq %rax, %rsi
callq 0x76fc
movq %r15, (%rax)
movq (%rbx), %rsi
movq 0x8(%rbx), %rcx
movl $0x1, %edi
movl $0x1, %edx
callq 0x5830
movq %r14, %rdi
movq %rax, %rsi
callq 0x76fc
movsd 0x10(%rsp), %xmm0
movsd %xmm0, (%rax)
movq (%rbx), %rsi
movq 0x8(%rbx), %rcx
movl $0x1, %edi
movl $0x2, %edx
callq 0x5830
movq %r14, %rdi
movq %rax, %rsi
callq 0x76fc
movq %r15, (%rax)
movq (%rbx), %rsi
movq 0x8(%rbx), %rcx
movl $0x2, %edi
xorl %edx, %edx
callq 0x5830
movq %r14, %rdi
movq %rax, %rsi
callq 0x76fc
movq %r15, (%rax)
movq (%rbx), %rsi
movq 0x8(%rbx), %rcx
movl $0x2, %edi
movl $0x1, %edx
callq 0x5830
movq %r14, %rdi
movq %rax, %rsi
callq 0x76fc
movq %r15, (%rax)
movq (%rbx), %rsi
movq 0x8(%rbx), %rcx
movl $0x2, %edi
movl $0x2, %edx
callq 0x5830
movq %r14, %rdi
movq %rax, %rsi
callq 0x76fc
movsd 0x18(%rsp), %xmm0
movsd %xmm0, (%rax)
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/sehe[P]spirit-v2-json/test.cpp
// Function: main
int main(int argc, char** argv) {
    
    if (argc < 2)
        return -1;
    
    std::ifstream inputfile(argv[1]);
    std::string to_parse;
    int count;

    inputfile.seekg(0, std::ios::end);   
    to_parse.reserve(inputfile.tellg());
    inputfile.seekg(0, std::ios::beg);

    to_parse.assign((std::istreambuf_iterator<char>(inputfile)),
                     std::istreambuf_iterator<char>());
    
    steady_clock::time_point start_time = steady_clock::now();
    for (unsigned i = 0; i < ntimes; ++i) {
        JSON::Value parsed = JSON::parse(to_parse);
    }
    steady_clock::time_point end_time = steady_clock::now();
    microseconds us = duration_cast<microseconds>(end_time - start_time);
    std::cout << "[+] Finished successfully with an average of: " << (us.count() / ntimes) << " us\n";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x270, %rsp            # imm = 0x270
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x2, %edi
jl 0x4a5c
movq 0x8(%rsi), %rsi
leaq 0x68(%rsp), %rbx
movq %rbx, %rdi
movl $0x8, %edx
callq 0x4440
leaq 0x20(%rsp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
movq %rbx, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x42f0
leaq 0x68(%rsp), %rdi
callq 0x4400
leaq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0x4360
leaq 0x68(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x42f0
movq 0x68(%rsp), %rax
movq -0x18(%rax), %rax
movq 0x150(%rsp,%rax), %rcx
leaq 0x10(%rsp), %rdi
movq (%rdi), %rsi
movq 0x8(%rdi), %rdx
addq %rsi, %rdx
movq $0x0, 0x30(%rsp)
movl $0xffffffff, 0x38(%rsp) # imm = 0xFFFFFFFF
vmovups 0x30(%rsp), %xmm0
vmovups %xmm0, (%rsp)
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x4aa2
movl $0xa, %ebp
callq 0x42d0
movq %rax, %rbx
leaq 0x30(%rsp), %r14
leaq 0x10(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x56bb
movq %r14, %rdi
callq 0x4e6a
decl %ebp
jne 0x49c9
callq 0x42d0
movq %rax, %r14
movq 0x415e1(%rip), %rdi     # 0x45fd0
leaq 0x1f65e(%rip), %rsi     # 0x24054
movl $0x2e, %edx
callq 0x4290
subq %rbx, %r14
movabsq $0x346dc5d63886594b, %rcx # imm = 0x346DC5D63886594B
movq %r14, %rax
imulq %rcx
movq %rdx, %rsi
shrq $0x3f, %rsi
sarq $0xb, %rdx
addq %rdx, %rsi
movq 0x415a8(%rip), %rdi     # 0x45fd0
callq 0x4220
leaq 0x1f64f(%rip), %rsi     # 0x24083
movl $0x4, %edx
movq %rax, %rdi
callq 0x4290
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x4a50
callq 0x4210
leaq 0x68(%rsp), %rdi
callq 0x4060
xorl %eax, %eax
addq $0x270, %rsp            # imm = 0x270
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4a72
jmp 0x4a72
jmp 0x4a72
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x4a84
callq 0x4210
leaq 0x68(%rsp), %rdi
callq 0x4060
movq %rbx, %rdi
callq 0x4410
// File: /workspace/github_cpp_makefile_star2_O1/sehe[P]spirit-v2-json/json.cpp
// Function: JSON::Object::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
Value& Object::operator[](std::string const& key)
    {
        auto match = std::find_if(begin(values), end(values), [&key](Entry const& e) { return key == e.first; });
        if (match != end(values))
            return match->second;

        values.push_back({ key, Undefined{} });
        return values.back().second;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %r13
movq (%rdi), %r15
movq 0x8(%rdi), %r14
movq %rsi, 0x8(%rsp)
movq %rsi, 0x10(%rsp)
movq %r14, %rbp
subq %r15, %rbp
sarq $0x4, %rbp
movabsq $-0x3333333333333333, %rcx # imm = 0xCCCCCCCCCCCCCCCD
imulq %rcx, %rbp
sarq $0x2, %rbp
testq %rbp, %rbp
jle 0x5162
movq %r13, (%rsp)
leaq (%rbp,%rbp,4), %rbx
shlq $0x6, %rbx
addq %r15, %rbx
incq %rbp
leaq 0x10(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x582c
testb %al, %al
jne 0x51c7
leaq 0x50(%r15), %r12
movq %r13, %rdi
movq %r12, %rsi
callq 0x582c
testb %al, %al
jne 0x51ca
leaq 0xa0(%r15), %r12
movq %r13, %rdi
movq %r12, %rsi
callq 0x582c
testb %al, %al
jne 0x51ca
leaq 0xf0(%r15), %r12
movq %r13, %rdi
movq %r12, %rsi
callq 0x582c
testb %al, %al
jne 0x51ca
addq $0x140, %r15            # imm = 0x140
decq %rbp
cmpq $0x1, %rbp
jg 0x50e3
movq %rbx, %r15
movq (%rsp), %r13
movabsq $-0x3333333333333333, %rcx # imm = 0xCCCCCCCCCCCCCCCD
movq %r14, %rax
subq %r15, %rax
sarq $0x4, %rax
imulq %rcx, %rax
cmpq $0x1, %rax
je 0x51af
cmpq $0x2, %rax
je 0x519a
movq %r14, %r12
cmpq $0x3, %rax
jne 0x51ce
leaq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x582c
testb %al, %al
jne 0x51c2
addq $0x50, %r15
leaq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x582c
testb %al, %al
jne 0x51c2
addq $0x50, %r15
leaq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x582c
testb %al, %al
cmoveq %r14, %r15
movq %r15, %r12
jmp 0x51ce
movq %r15, %r12
movq (%rsp), %r13
cmpq %r14, %r12
jne 0x522e
leaq 0x20(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq 0x8(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x8cec
movl $0x0, 0x20(%r14)
movq %r13, %rdi
movq %r14, %rsi
callq 0x8fd2
leaq 0x30(%rsp), %r14
movq %r14, %rdi
callq 0x4e6a
movq -0x20(%r14), %rdi
cmpq %rbx, %rdi
je 0x5226
callq 0x4210
movq 0x8(%r13), %r12
addq $-0x50, %r12
addq $0x20, %r12
movq %r12, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x66d6
movq %rbx, %rdi
callq 0x4410
nop
// File: /workspace/github_cpp_makefile_star2_O1/sehe[P]spirit-v2-json/json.cpp
// Function: JSON::to_string(boost::variant<JSON::Literal<JSON::tag_undefined>, JSON::Literal<JSON::tag_null>, JSON::Bool, boost::recursive_wrapper<JSON::Object>, boost::recursive_wrapper<JSON::Array>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, long, long double> const&)
std::string to_string(Value const& json) {
        std::string text;
        auto out = std::back_inserter(text);

        static const generator<decltype(out)> g;
        karma::generate(out, g, json);

        return text;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x60, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %r15
movq %r15, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq %rdi, 0x8(%rsp)
movb 0x410b1(%rip), %al      # 0x465a8
testb %al, %al
je 0x5564
vxorps %xmm0, %xmm0, %xmm0
vmovaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movl $0x1, %eax
movq %rax, 0x28(%rsp)
movq %rax, 0x30(%rsp)
movb $0x1, 0x38(%rsp)
leaq 0x8(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x40d7d(%rip), %rdi     # 0x462b0
cmpq $0x0, 0x28(%rdi)
je 0x5557
addq $0x28, %rdi
leaq 0x48(%rsp), %rdx
movq %r14, (%rdx)
leaq 0x1ef1b(%rip), %rcx     # 0x24468
leaq 0x10(%rsp), %rsi
callq 0xdc52
movq %rbx, %rax
addq $0x60, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x4103d(%rip), %rdi     # 0x465a8
callq 0x4430
testl %eax, %eax
je 0x54fb
leaq 0x40d35(%rip), %rdi     # 0x462b0
callq 0x66f8
leaq 0x2015(%rip), %rdi      # 0x759c
leaq 0x40d22(%rip), %rsi     # 0x462b0
leaq 0x40cab(%rip), %rdx     # 0x46240
callq 0x4200
leaq 0x41007(%rip), %rdi     # 0x465a8
callq 0x4140
jmp 0x54fb
movq %rax, %r14
leaq 0x40ff3(%rip), %rdi     # 0x465a8
callq 0x4130
jmp 0x55bf
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x55cc
callq 0x4210
movq %r14, %rdi
callq 0x4410
// File: /workspace/github_cpp_makefile_star2_O1/sehe[P]spirit-v2-json/json.cpp
// Function: JSON::operator<<(std::ostream&, boost::variant<JSON::Literal<JSON::tag_undefined>, JSON::Literal<JSON::tag_null>, JSON::Bool, boost::recursive_wrapper<JSON::Object>, boost::recursive_wrapper<JSON::Array>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, long, long double> const&)
std::ostream& operator<<(std::ostream& os, Value const& v)
    {
        boost::spirit::ostream_iterator out(os);

        static const generator<decltype(out)> g;
        karma::generate(out, g, v);

        return os;
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rdi, (%rsp)
movq $0x0, 0x8(%rsp)
movb 0x412b4(%rip), %al      # 0x468a8
testb %al, %al
je 0x565d
vxorps %xmm0, %xmm0, %xmm0
vmovaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movl $0x1, %eax
movq %rax, 0x28(%rsp)
movq %rax, 0x30(%rsp)
movb $0x1, 0x38(%rsp)
movq %rsp, %rax
movq %rax, 0x40(%rsp)
movq 0x40f82(%rip), %rdi     # 0x465b0
cmpq $0x0, 0x28(%rdi)
je 0x5652
addq $0x28, %rdi
leaq 0x50(%rsp), %rdx
movq %r14, (%rdx)
leaq 0x1ee20(%rip), %rcx     # 0x24468
leaq 0x10(%rsp), %rsi
callq 0x12056
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r14
retq
leaq 0x41244(%rip), %rdi     # 0x468a8
callq 0x4430
testl %eax, %eax
je 0x55f8
leaq 0x40f3c(%rip), %rdi     # 0x465b0
callq 0x7712
leaq 0x2f36(%rip), %rdi      # 0x85b6
leaq 0x40f29(%rip), %rsi     # 0x465b0
leaq 0x40bb2(%rip), %rdx     # 0x46240
callq 0x4200
leaq 0x4120e(%rip), %rdi     # 0x468a8
callq 0x4140
jmp 0x55f8
movq %rax, %rbx
leaq 0x411fa(%rip), %rdi     # 0x468a8
callq 0x4130
movq %rbx, %rdi
callq 0x4410