LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/marxn[P]pupp/3rdparty/gmp/gen-psqr.c
// Function: generate_sq_res_0x100
void
generate_sq_res_0x100 (int limb_bits)
{
  int  i, res;

  nsq_res_0x100 = (0x100 + limb_bits - 1) / limb_bits;
  sq_res_0x100 = (mpz_t *) xmalloc (nsq_res_0x100 * sizeof (*sq_res_0x100));

  for (i = 0; i < nsq_res_0x100; i++)
    mpz_init_set_ui (sq_res_0x100[i], 0L);

  for (i = 0; i < 0x100; i++)
    {
      res = (i * i) % 0x100;
      mpz_setbit (sq_res_0x100[res / limb_bits],
                  (unsigned long) (res % limb_bits));
    }

  sq_res_0x100_num = 0;
  for (i = 0; i < nsq_res_0x100; i++)
    sq_res_0x100_num += mpz_popcount (sq_res_0x100[i]);
  sq_res_0x100_fraction = (double) sq_res_0x100_num / 256.0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edi, %ebx
leal 0xff(%rbx), %eax
cltd
idivl %edi
movl %eax, 0x751b(%rip)      # 0x100e4
movslq %eax, %rdi
shlq $0x4, %rdi
callq 0x1484
movq %rax, 0x750c(%rip)      # 0x100e8
cmpl $0x0, 0x7501(%rip)      # 0x100e4
jle 0x8c29
movl $0x8, %r14d
xorl %r15d, %r15d
movq 0x74f3(%rip), %r12      # 0x100e8
movq $0x1, -0x8(%r12,%r14)
movl $0x8, %edi
callq *0x74af(%rip)           # 0x100b8
movq %rax, (%r12,%r14)
movl $0x0, -0x4(%r12,%r14)
incq %r15
movslq 0x74c4(%rip), %rax      # 0x100e4
addq $0x10, %r14
cmpq %rax, %r15
jl 0x8bee
xorl %r14d, %r14d
movl %r14d, %eax
imull %r14d, %eax
movzbl %al, %eax
xorl %edx, %edx
idivl %ebx
movslq %eax, %rdi
shlq $0x4, %rdi
addq 0x74a0(%rip), %rdi      # 0x100e8
movq %rdx, %rsi
callq 0x539d
incl %r14d
cmpl $0x100, %r14d           # imm = 0x100
jne 0x8c2c
movl $0x0, 0x748a(%rip)      # 0x100f0
movslq 0x7477(%rip), %r14      # 0x100e4
testq %r14, %r14
jle 0x8c9b
movl 0x7477(%rip), %r15d     # 0x100f0
movq 0x7468(%rip), %rbx      # 0x100e8
movq %rbx, %rdi
callq 0x7812
addl %eax, %r15d
movl %r15d, 0x745e(%rip)     # 0x100f0
addq $0x10, %rbx
decq %r14
jne 0x8c80
cvtsi2sdl 0x744d(%rip), %xmm0 # 0x100f0
mulsd 0x2385(%rip), %xmm0     # 0xb030
movsd %xmm0, 0x7445(%rip)     # 0x100f8
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/marxn[P]pupp/3rdparty/gmp/gen-psqr.c
// Function: main
int
main (int argc, char *argv[])
{
  int  limb_bits, nail_bits;

  if (argc != 3)
    {
      fprintf (stderr, "Usage: gen-psqr <limbbits> <nailbits>\n");
      exit (1);
    }

  limb_bits = atoi (argv[1]);
  nail_bits = atoi (argv[2]);

  if (limb_bits <= 0
      || nail_bits < 0
      || nail_bits >= limb_bits)
    {
      fprintf (stderr, "Invalid limb/nail bits: %d %d\n",
               limb_bits, nail_bits);
      exit (1);
    }

  generate_sq_res_0x100 (limb_bits);
  generate_mod (limb_bits, nail_bits);

  print (limb_bits, nail_bits);

  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
cmpl $0x3, %edi
jne 0x9b9e
movq %rsi, %r14
movq 0x8(%rsi), %rdi
callq 0x1100
movl %eax, %ebx
movq 0x10(%r14), %rdi
callq 0x1100
movl %eax, %r14d
testl %ebx, %ebx
jle 0x9ba3
testl %r14d, %r14d
js 0x9ba3
cmpl %ebx, %r14d
jge 0x9ba3
movl %ebx, %edi
callq 0x8bad
movl %ebx, %edi
movl %r14d, %esi
callq 0x8cbc
movl %ebx, %edi
movl %r14d, %esi
callq 0x9560
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
callq 0x12c8
movl %ebx, %edi
movl %r14d, %esi
callq 0x12f0
// File: /workspace/github_cpp_makefile_star2_O1/dlcgold[P]sparsematrix-unimib/main.cpp
// Function: test_vuota(sparse_matrix<int>)
void test_vuota(const smatrixi vuota){
  std::cout << "\n\ntest stampa matrice vuota\n";
  std::cout << vuota << std::endl;
  std::cout << "\ntest evaluate matrice vuota\n";
  positive pos;
  int count = evaluate(vuota, pos);
  assert(count == 0);
  std::cout << "valori accettabili: " << count << "\n";
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x57b7(%rip), %r14      # 0x6fd0
leaq 0x2a38(%rip), %rsi      # 0x4258
movl $0x1c, %edx
movq %r14, %rdi
callq 0x10d0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x25cb
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x10b0
movsbl %al, %esi
movq %r15, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1080
leaq 0x2a0c(%rip), %rsi      # 0x4275
movl $0x1d, %edx
movq %r14, %rdi
callq 0x10d0
movq %rbx, %rdi
callq 0x257d
testl %eax, %eax
jne 0x18c5
movq 0x5747(%rip), %rbx      # 0x6fd0
leaq 0x2a2e(%rip), %rsi      # 0x42be
movl $0x14, %edx
movq %rbx, %rdi
callq 0x10d0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1120
leaq 0x2896(%rip), %rsi      # 0x4144
movl $0x1, %edx
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x10d0
leaq 0x29c7(%rip), %rdi      # 0x4293
leaq 0x2778(%rip), %rsi      # 0x404b
leaq 0x29c4(%rip), %rcx      # 0x429e
movl $0x66, %edx
callq 0x1070
// File: /workspace/github_cpp_makefile_star2_O1/dlcgold[P]sparsematrix-unimib/main.cpp
// Function: test_duplicati()
void test_duplicati(){
  std::cout << "\ntest inserimento duplicati\n";
  smatrixi testM(0);
  testM.add(1, 0, 0);
  testM.add(2, 1, 2);
  testM.add(5, 0, 0);
  testM.add(2, 1, 2);

  testM.add(4, 0, 0);
  testM.add(5, 0, 0);
  testM.print();
  assert(testM.get_size() == 2);
  std::cout << "test duplicati superato\n";
  testM.clear();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x28, %rsp
movq 0x52ff(%rip), %rdi      # 0x6fd0
leaq 0x26b9(%rip), %rsi      # 0x4391
movl $0x1c, %edx
callq 0x10d0
xorl %eax, %eax
leaq -0x30(%rbp), %rdi
movl %eax, (%rdi)
movb $0x0, 0x4(%rdi)
movabsq $0x7fffffff7fffffff, %rcx # imm = 0x7FFFFFFF7FFFFFFF
movq %rcx, 0x8(%rdi)
movq $0x0, 0x10(%rdi)
movl %eax, 0x18(%rdi)
leaq -0xc(%rbp), %rsi
movl $0x1, (%rsi)
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x29e6
leaq -0xc(%rbp), %rsi
movl $0x2, (%rsi)
leaq -0x30(%rbp), %rdi
movl $0x1, %edx
movl $0x2, %ecx
callq 0x29e6
leaq -0xc(%rbp), %rsi
movl $0x5, (%rsi)
leaq -0x30(%rbp), %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x29e6
leaq -0xc(%rbp), %rsi
movl $0x2, (%rsi)
leaq -0x30(%rbp), %rdi
movl $0x1, %edx
movl $0x2, %ecx
callq 0x29e6
leaq -0xc(%rbp), %rsi
movl $0x4, (%rsi)
leaq -0x30(%rbp), %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x29e6
leaq -0xc(%rbp), %rsi
movl $0x5, (%rsi)
leaq -0x30(%rbp), %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x29e6
leaq -0x30(%rbp), %rdi
callq 0x2c0a
cmpl $0x2, -0x18(%rbp)
jne 0x1de5
movq 0x5221(%rip), %rdi      # 0x6fd0
leaq 0x2624(%rip), %rsi      # 0x43da
movl $0x18, %edx
callq 0x10d0
leaq -0x30(%rbp), %rdi
movq 0x10(%rdi), %rsi
callq 0x30e4
leaq -0x30(%rbp), %rdi
movq $0x0, 0x10(%rdi)
callq 0x2554
addq $0x28, %rsp
popq %rbx
popq %rbp
retq
leaq 0x25c2(%rip), %rdi      # 0x43ae
leaq 0x2258(%rip), %rsi      # 0x404b
leaq 0x25ca(%rip), %rcx      # 0x43c4
movl $0x93, %edx
callq 0x1070
jmp 0x1e10
jmp 0x1e10
jmp 0x1e10
jmp 0x1e10
jmp 0x1e10
jmp 0x1e10
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
callq 0x2554
movq %rbx, %rdi
callq 0x1130
// File: /workspace/github_cpp_makefile_star2_O1/dlcgold[P]sparsematrix-unimib/main.cpp
// Function: main
int main(){
  test_fondamentali();
  smatrixi costante(0);
  test_vuota(costante);
  test_point();
  test_duplicati();
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x48, %rsp
callq 0x127c
xorl %eax, %eax
leaq -0x48(%rbp), %rsi
movl %eax, (%rsi)
movb $0x0, 0x4(%rsi)
movabsq $0x7fffffff7fffffff, %rcx # imm = 0x7FFFFFFF7FFFFFFF
movq %rcx, 0x8(%rsi)
movq $0x0, 0x10(%rsi)
movl %eax, 0x18(%rsi)
leaq -0x28(%rbp), %rdi
callq 0x249e
leaq -0x28(%rbp), %rdi
callq 0x1805
leaq -0x28(%rbp), %rdi
callq 0x2554
callq 0x18e4
callq 0x1cc1
leaq -0x48(%rbp), %rdi
callq 0x2554
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %rbp
retq
movq %rax, %rbx
leaq -0x28(%rbp), %rdi
callq 0x2554
jmp 0x1e9f
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x2554
movq %rbx, %rdi
callq 0x1130
// File: /workspace/github_cpp_makefile_star2_O1/dlcgold[P]sparsematrix-unimib/./sparsematrix.h
// Function: void printdef<float>(sparse_matrix<float>, int, int)
void printdef(sparse_matrix<T> smatrix, int n, int m){
  if(n < 0 || m < 0)
    throw NegativeIndexSparseMatrixException();
  for(int i = 0; i < n; i++){
    for(int j = 0; j < m; j++){
      std::cout << smatrix(i, j) << " ";
    }
    std::cout << std::endl;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %eax
orl %esi, %eax
js 0x2190
testl %esi, %esi
jle 0x2181
movl %edx, %ebx
movq %rdi, %r15
xorl %r12d, %r12d
movq 0x4ec5(%rip), %r13      # 0x6fd0
movl %esi, -0x2c(%rbp)
testl %ebx, %ebx
jle 0x214e
xorl %r14d, %r14d
movq %r15, %rdi
movl %r12d, %esi
movl %r14d, %edx
callq 0x2e14
xorps %xmm0, %xmm0
cvtss2sd (%rax), %xmm0
movq %r13, %rdi
callq 0x10f0
movl $0x1, %edx
movq %rax, %rdi
leaq 0x221f(%rip), %rsi      # 0x4360
callq 0x10d0
incl %r14d
cmpl %r14d, %ebx
jne 0x2115
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x10b0
movsbl %al, %esi
movq %r13, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1080
incl %r12d
movl -0x2c(%rbp), %esi
cmpl %esi, %r12d
jne 0x210e
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x8, %edi
callq 0x1060
leaq 0x4b27(%rip), %rcx      # 0x6cc8
movq %rcx, (%rax)
leaq 0x4ac5(%rip), %rsi      # 0x6c70
movq 0x4e2e(%rip), %rdx      # 0x6fe0
movq %rax, %rdi
callq 0x1110
// File: /workspace/github_cpp_makefile_star2_O1/dlcgold[P]sparsematrix-unimib/./sparsematrix.h
// Function: sparse_matrix<float>::sparse_matrix(sparse_matrix<float> const&)
sparse_matrix(const sparse_matrix &other): default_value(other.default_value),
					     dim(other.dim),
					     size_row(other.size_row),
					     size_column(other.size_column),
					     head(nullptr), size(0) {
    node *curr = other.head;

    // eseguo una copia nodo per nodo
    try {
      while(curr != nullptr) {
	add(curr->ret->v, curr->ret->x, curr->ret->y);
	curr = curr->next;
      }		
    }
    catch(...) {
      clear();
      throw NoSparseMatrixException();
    }
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movss (%rsi), %xmm0
movss %xmm0, (%rdi)
movb 0x4(%rsi), %al
movb %al, 0x4(%rdi)
movl 0x8(%rsi), %eax
movl %eax, 0x8(%rdi)
movl 0xc(%rsi), %eax
movl %eax, 0xc(%rdi)
movq $0x0, 0x10(%rdi)
movl $0x0, 0x18(%rdi)
addq $0x10, %r14
movq (%r14), %r14
testq %r14, %r14
je 0x2210
movq 0x8(%r14), %rsi
movl 0x4(%rsi), %edx
movl 0x8(%rsi), %ecx
movq %rbx, %rdi
callq 0x1eb0
jmp 0x21f4
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rdi
callq 0x1050
movq 0x10(%rbx), %rsi
movq %rbx, %rdi
callq 0x2cc6
movq $0x0, 0x10(%rbx)
movl $0x8, %edi
callq 0x1060
leaq 0x4b16(%rip), %rcx      # 0x6d58
movq %rcx, (%rax)
leaq 0x4ae4(%rip), %rsi      # 0x6d30
movq 0x4d8d(%rip), %rdx      # 0x6fe0
movq %rax, %rdi
callq 0x1110
movq %rax, %rbx
callq 0x1100
movq %rbx, %rdi
callq 0x1130
movq %rax, %rdi
callq 0x2cb7
nop
// File: /workspace/github_cpp_makefile_star2_O1/dlcgold[P]sparsematrix-unimib/./sparsematrix.h
// Function: sparse_matrix<int>::sparse_matrix<float>(sparse_matrix<float> const&)
sparse_matrix(const sparse_matrix<Q> &other):
    default_value(static_cast<T>(other.get_default_value())),
    dim(other.get_dim()), size_row(other.get_size_row()),
    size_column(other.get_size_column()), head(nullptr), size(0) {
    
    // mi muovo con gli iteratori nella matrice sparsa passata in ingresso
    // effettuo la add alla nuova matrice sparsa con cast del valore
    typename sparse_matrix<Q>::const_iterator i, ie;
    i = other.begin();
    ie = other.end();
    try {
      while(i != ie) {
	add(static_cast<T>(i->v), i->x, i->y);
	++i;
      }		
    }
    catch(...) {
      clear();
      throw NoCastSparseMatrixException();
    }
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
cvttss2si (%rsi), %eax
movl %eax, (%rdi)
movb 0x4(%rsi), %al
movb %al, 0x4(%rdi)
movl 0x8(%rsi), %eax
movl %eax, 0x8(%rdi)
movl 0xc(%rsi), %eax
movl %eax, 0xc(%rdi)
movq $0x0, 0x10(%rdi)
movl $0x0, 0x18(%rdi)
movq 0x10(%rsi), %r15
testq %r15, %r15
je 0x235b
movq %rdi, %rbx
leaq -0x1c(%rbp), %r14
movq 0x8(%r15), %rax
cvttss2si (%rax), %ecx
movl %ecx, -0x1c(%rbp)
movl 0x4(%rax), %edx
movl 0x8(%rax), %ecx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x29e6
movq (%r15), %r15
testq %r15, %r15
jne 0x2337
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rdi
callq 0x1050
movq 0x10(%rbx), %rsi
movq %rbx, %rdi
callq 0x30e4
movq $0x0, 0x10(%rbx)
movl $0x8, %edi
callq 0x1060
leaq 0x4a05(%rip), %rcx      # 0x6d98
movq %rcx, (%rax)
leaq 0x49d3(%rip), %rsi      # 0x6d70
movq 0x4c3c(%rip), %rdx      # 0x6fe0
movq %rax, %rdi
callq 0x1110
movq %rax, %rbx
callq 0x1100
movq %rbx, %rdi
callq 0x1130
movq %rax, %rdi
callq 0x2cb7
// File: /workspace/github_cpp_makefile_star2_O1/dlcgold[P]sparsematrix-unimib/./sparsematrix.h
// Function: std::ostream& operator<<<int>(std::ostream&, sparse_matrix<int> const&)
std::ostream &operator<<(std::ostream &os, 
			 const sparse_matrix<T> &smatrix) {
	
  typename sparse_matrix<T>::const_iterator i, ie;
	
  i = smatrix.begin();
  ie = smatrix.end();
  // evito overflow se provo a stampare su una matrice nulla
  if(smatrix.get_size() == 0)
    return os;
  // mi salvo il numero di riga per andare a capo
  int prevrow = i->x;
  
  while(i!=ie) {
    if(i->x != prevrow)
      std::cout << std::endl;
    os << i->v << "\t";
    prevrow = i->x;
    ++i;
  }
  return os;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, 0x18(%rsi)
sete %al
movq 0x10(%rsi), %r12
testq %r12, %r12
sete %cl
orb %al, %cl
jne 0x266b
movq %r12, %r13
addq $0x8, %r13
leaq 0x1e57(%rip), %r14      # 0x4456
movq 0x49ca(%rip), %r15      # 0x6fd0
movq (%r13), %rax
movq 0x8(%r12), %rcx
movl 0x4(%rcx), %ecx
cmpl 0x4(%rax), %ecx
je 0x263e
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x10b0
movsbl %al, %esi
movq %r15, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1080
leaq 0x8(%r12), %r13
movq 0x8(%r12), %rax
movl (%rax), %esi
movq %rbx, %rdi
callq 0x1120
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x10d0
movq (%r12), %r12
testq %r12, %r12
jne 0x2606
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/dlcgold[P]sparsematrix-unimib/./sparsematrix.h
// Function: sparse_matrix<int>::print() const
void print() const{
    node *current = head;
    while(current != nullptr){
      std::cout << current->ret->v << " in (" << current->ret->x << ", "
		<< current->ret->y <<")\n";
      current = current->next;
      
    }
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x10(%rdi), %rbx
testq %rbx, %rbx
je 0x2ca8
leaq 0x182c(%rip), %r14      # 0x4458
leaq 0x172c(%rip), %r15      # 0x435f
leaq 0x1577(%rip), %r12      # 0x41b1
movq 0x8(%rbx), %rax
movl (%rax), %esi
movq 0x4389(%rip), %rdi      # 0x6fd0
callq 0x1120
movq %rax, %r13
movl $0x5, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x10d0
movq 0x8(%rbx), %rax
movl 0x4(%rax), %esi
movq %r13, %rdi
callq 0x1120
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x10d0
movq 0x8(%rbx), %rax
movl 0x8(%rax), %esi
movq %r13, %rdi
callq 0x1120
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x10d0
movq (%rbx), %rbx
testq %rbx, %rbx
jne 0x2c3a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/dlcgold[P]sparsematrix-unimib/./sparsematrix.h
// Function: sparse_matrix<float>::recursive_clear(sparse_matrix<float>::node*)
void recursive_clear(node *n){
    if(n!=nullptr) {
      recursive_clear(n->next);
      delete n->ret;
      n->ret = nullptr;
      delete n;
      size--;
      n = nullptr;   
    }
  }

// Assembly:
testq %rsi, %rsi
je 0x2d04
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rsi
callq 0x2cc6
movq 0x8(%r14), %rdi
testq %rdi, %rdi
je 0x2cee
callq 0x10a0
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movq %r14, %rdi
callq 0x10a0
decl 0x18(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/dlcgold[P]sparsematrix-unimib/./sparsematrix.h
// Function: sparse_matrix<float>::node::node(float const&, int, int)
node(const T &v, const int x, const int y): next(nullptr){
      try{
	ret = new element(v, x, y);
      }catch(...){
	throw noNodeException{};
      }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %ebx
movl %edx, %r15d
movq %rsi, %r12
movq %rdi, %r14
movq $0x0, (%rdi)
movl $0xc, %edi
callq 0x10c0
movss (%r12), %xmm0
movss %xmm0, (%rax)
movl %r15d, 0x4(%rax)
movl %ebx, 0x8(%rax)
movq %rax, 0x8(%r14)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rdi
callq 0x1050
movl $0x8, %edi
callq 0x1060
leaq 0x3f8c(%rip), %rcx      # 0x6cf0
movq %rcx, (%rax)
leaq 0x3f1a(%rip), %rsi      # 0x6c88
movq 0x426b(%rip), %rdx      # 0x6fe0
movq %rax, %rdi
callq 0x1110
movq %rax, %rbx
callq 0x1100
movq %rbx, %rdi
callq 0x1130
movq %rax, %rdi
callq 0x2cb7
nop
// File: /workspace/github_cpp_makefile_star2_O1/dlcgold[P]sparsematrix-unimib/./sparsematrix.h
// Function: sparse_matrix<float>::operator()(int, int)
const T& operator()(int x, int y) {
    if(x < 0 || y < 0)
      throw  NegativeIndexSparseMatrixException();
    if((x < size_row) && (y < size_column)){
      node *current = head;
      T& value = default_value;

      // come per la add avanzo fino alle condizioni di arresto
      while(current->next != nullptr &&
	    ((current->next->ret->x == x && current->next->ret->y <= y)
	     || (current->next->ret->x < x))) {
	
	current = current->next;
      }
      // se mi sono fermato sul nodo corrispondente alle coordinate richieste
      // ne resituisco il valore, altrimenti resituisco il valore di default
      if(current->ret->x == x && current->ret->y == y){
	return current->ret->v;
      }else{
	return value;
      }
    }else{
      throw IndexOutOfBoundsException();
    }
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edx, %eax
orl %esi, %eax
js 0x2e5e
cmpl %esi, 0x8(%rdi)
jle 0x2e7b
cmpl %edx, 0xc(%rdi)
jle 0x2e7b
movq 0x10(%rdi), %rax
movq (%rax), %rcx
testq %rcx, %rcx
je 0x2e4b
movq 0x8(%rcx), %rcx
cmpl %esi, 0x4(%rcx)
jne 0x2e44
cmpl %edx, 0x8(%rcx)
jle 0x2e46
jmp 0x2e4b
jge 0x2e4b
movq (%rax), %rax
jmp 0x2e2c
movq 0x8(%rax), %rax
cmpl %esi, 0x4(%rax)
jne 0x2e59
cmpl %edx, 0x8(%rax)
je 0x2e5c
movq %rdi, %rax
popq %rbp
retq
movl $0x8, %edi
callq 0x1060
leaq 0x3e59(%rip), %rcx      # 0x6cc8
movq %rcx, (%rax)
leaq 0x3df7(%rip), %rsi      # 0x6c70
jmp 0x2e96
movl $0x8, %edi
callq 0x1060
leaq 0x3e8c(%rip), %rcx      # 0x6d18
movq %rcx, (%rax)
leaq 0x3e0a(%rip), %rsi      # 0x6ca0
movq 0x4143(%rip), %rdx      # 0x6fe0
movq %rax, %rdi
callq 0x1110
nop
// File: /workspace/github_cpp_makefile_star2_O1/BlinfoldKing[P]lisval/src/lib/evaluator.cpp
// Function: Evaluator::dec()
pair<Token*, function<Token*(Token*)>> Evaluator::dec() {
    Token* op = new UnaryOperator(UnaryOperatorType::DEC);
    Token* var1 = new Variable("Pattern");
    List* signature = new List();
    signature->list.push_back(op);
    signature->list.push_back(var1);
    Token* token = signature;
    auto res = make_pair(token, [this](Token* input) {
            List* list = static_cast<List*>(input);

            Token* new_signature = this->eval(list->list[1]);

            auto new_rule = make_pair(new_signature, [](Token* input) {
                        Token* res = new Boolean(true);
                        return res;
            });

            this->state.push_back(new_rule);

            Token* res = new Boolean(true);
            return res;
    });

    return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movl $0x8, %edi
callq 0x31b0
movabsq $0x100000004, %rcx      # imm = 0x100000004
movq %rcx, (%rax)
movq %rax, -0x30(%rbp)
movl $0x28, %edi
callq 0x31b0
movq %rax, %r15
leaq -0x40(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0xb650(%rip), %rsi      # 0xf2f3
leaq 0xb650(%rip), %rdx      # 0xf2fa
leaq -0x50(%rbp), %rdi
callq 0x3ba8
movl $0x3, (%r15)
leaq 0x8(%r15), %rdi
movq %r15, %rax
addq $0x18, %rax
movq %rax, 0x8(%r15)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq %rsi, %rdx
callq 0x3a18
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
je 0x3cee
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x31c0
movq %r15, -0x28(%rbp)
movl $0x20, %edi
callq 0x31b0
movq %rax, %r15
movl $0x1, (%rax)
leaq 0x8(%rax), %r12
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
movq $0x0, 0x18(%rax)
movq 0x10(%rax), %rsi
testq %rsi, %rsi
je 0x3d2f
movq -0x30(%rbp), %rax
movq %rax, (%rsi)
addq $0x8, 0x10(%r15)
jmp 0x3d3b
leaq -0x30(%rbp), %rdx
movq %r12, %rdi
callq 0x9bf4
movq 0x10(%r15), %rsi
cmpq 0x18(%r15), %rsi
je 0x3d53
movq -0x28(%rbp), %rax
movq %rax, (%rsi)
addq $0x8, 0x10(%r15)
jmp 0x3d5f
leaq -0x28(%rbp), %rdx
movq %r12, %rdi
callq 0x9bf4
movq %r15, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
movups %xmm0, 0x18(%rbx)
movq %r14, 0x8(%rbx)
leaq 0x345c(%rip), %rax      # 0x71d4
movq %rax, 0x20(%rbx)
leaq 0x3505(%rip), %rax      # 0x7288
movq %rax, 0x18(%rbx)
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
je 0x3db4
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x31c0
jmp 0x3db4
movq %rax, %rbx
movl $0x28, %esi
movq %r15, %rdi
callq 0x31c0
movq %rbx, %rdi
callq 0x32e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/BlinfoldKing[P]lisval/src/lib/evaluator.cpp
// Function: Evaluator::not_()
pair<Token*, function<Token*(Token*)>> Evaluator::not_() {
    Token* op = new UnaryOperator(UnaryOperatorType::NOT);
    Token* var1 = new Variable("Pattern");
    List* signature = new List();
    signature->list.push_back(op);
    signature->list.push_back(var1);
    Token* token = signature;
    auto res = make_pair(token, [this](Token* input) {
            List* list = static_cast<List*>(input);

            Token* pattern_token = this->eval(list->list[1]);
            if (pattern_token->type != TokenType::BOOLEAN) {
                Token* t = new Error("expect a boolean, got:" + pattern_token->debug(), input);
                return t;
            }

            Boolean* pattern = static_cast<Boolean*>(pattern_token);


            Token* res = new Boolean(!pattern->value);
            return res;
    });

    return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movl $0x8, %edi
callq 0x31b0
movq $0x4, (%rax)
movq %rax, -0x30(%rbp)
movl $0x28, %edi
callq 0x31b0
movq %rax, %r15
leaq -0x40(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0xb4e2(%rip), %rsi      # 0xf2f3
leaq 0xb4e2(%rip), %rdx      # 0xf2fa
leaq -0x50(%rbp), %rdi
callq 0x3ba8
movl $0x3, (%r15)
leaq 0x8(%r15), %rdi
movq %r15, %rax
addq $0x18, %rax
movq %rax, 0x8(%r15)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq %rsi, %rdx
callq 0x3a18
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
je 0x3e5c
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x31c0
movq %r15, -0x28(%rbp)
movl $0x20, %edi
callq 0x31b0
movq %rax, %r15
movl $0x1, (%rax)
leaq 0x8(%rax), %r12
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
movq $0x0, 0x18(%rax)
movq 0x10(%rax), %rsi
testq %rsi, %rsi
je 0x3e9d
movq -0x30(%rbp), %rax
movq %rax, (%rsi)
addq $0x8, 0x10(%r15)
jmp 0x3ea9
leaq -0x30(%rbp), %rdx
movq %r12, %rdi
callq 0x9bf4
movq 0x10(%r15), %rsi
cmpq 0x18(%r15), %rsi
je 0x3ec1
movq -0x28(%rbp), %rax
movq %rax, (%rsi)
addq $0x8, 0x10(%r15)
jmp 0x3ecd
leaq -0x28(%rbp), %rdx
movq %r12, %rdi
callq 0x9bf4
movq %r15, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
movups %xmm0, 0x18(%rbx)
movq %r14, 0x8(%rbx)
leaq 0x3404(%rip), %rax      # 0x72ea
movq %rax, 0x20(%rbx)
leaq 0x3573(%rip), %rax      # 0x7464
movq %rax, 0x18(%rbx)
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
je 0x3f22
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x31c0
jmp 0x3f22
movq %rax, %rbx
movl $0x28, %esi
movq %r15, %rdi
callq 0x31c0
movq %rbx, %rdi
callq 0x32e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/BlinfoldKing[P]lisval/src/lib/evaluator.cpp
// Function: Evaluator::clear()
pair<Token*, function<Token*(Token*)>> Evaluator::clear() {
    Token* op = new Atom("clear");
    List* signature = new List();
    signature->list.push_back(op);
    Token* token = signature;
    auto res = make_pair(token, [this](Token* input) {
            clrscr();
           return nullptr;
    });

    return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r15
movq %rdi, %r14
movl $0x28, %edi
callq 0x31b0
movq %rax, %rbx
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x9e53(%rip), %rsi      # 0xf2ed
leaq 0x9e51(%rip), %rdx      # 0xf2f2
leaq -0x40(%rbp), %rdi
callq 0x3ba8
movl $0x0, (%rbx)
leaq 0x8(%rbx), %rdi
movq %rbx, %rax
addq $0x18, %rax
movq %rax, 0x8(%rbx)
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
addq %rsi, %rdx
callq 0x3a18
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x54e4
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x31c0
movq %rbx, -0x48(%rbp)
movl $0x20, %edi
callq 0x31b0
movq %rax, %r12
movl $0x1, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
movq $0x0, 0x18(%rax)
movq 0x10(%rax), %rsi
testq %rsi, %rsi
je 0x551e
movq %rbx, (%rsi)
addq $0x8, 0x10(%r12)
jmp 0x552e
movq %r12, %rdi
addq $0x8, %rdi
leaq -0x48(%rbp), %rdx
callq 0x9bf4
movq %r12, (%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r14)
movups %xmm0, 0x18(%r14)
movq %r15, 0x8(%r14)
leaq 0x33ef(%rip), %rax      # 0x8938
movq %rax, 0x20(%r14)
leaq 0x33f8(%rip), %rax      # 0x894c
movq %rax, 0x18(%r14)
movq %r14, %rax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x5585
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x31c0
jmp 0x5585
movq %rax, %r14
movl $0x28, %esi
movq %rbx, %rdi
callq 0x31c0
movq %r14, %rdi
callq 0x32e0
// File: /workspace/github_cpp_makefile_star2_O1/BlinfoldKing[P]lisval/src/lib/evaluator.cpp
// Function: Evaluator::definitions()
pair<Token*, function<Token*(Token*)>> Evaluator::definitions() {
    Token* op = new Atom("definitions");
    List* signature = new List();
    signature->list.push_back(op);
    Token* token = signature;
    auto res = make_pair(token, [this](Token* input) {
            for (size_t i = 0; i < this->state.size(); i++) {
                cout << this->state[i].first->debug() << '\n';
            }

            return nullptr;
    });

    return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r15
movq %rdi, %r14
movl $0x28, %edi
callq 0x31b0
movq %rax, %rbx
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x9920(%rip), %rsi      # 0xf31c
leaq 0x9924(%rip), %rdx      # 0xf327
leaq -0x40(%rbp), %rdi
callq 0x3ba8
movl $0x0, (%rbx)
leaq 0x8(%rbx), %rdi
movq %rbx, %rax
addq $0x18, %rax
movq %rax, 0x8(%rbx)
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
addq %rsi, %rdx
callq 0x3a18
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x5a46
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x31c0
movq %rbx, -0x48(%rbp)
movl $0x20, %edi
callq 0x31b0
movq %rax, %r12
movl $0x1, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
movq $0x0, 0x18(%rax)
movq 0x10(%rax), %rsi
testq %rsi, %rsi
je 0x5a80
movq %rbx, (%rsi)
addq $0x8, 0x10(%r12)
jmp 0x5a90
movq %r12, %rdi
addq $0x8, %rdi
leaq -0x48(%rbp), %rdx
callq 0x9bf4
movq %r12, (%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r14)
movups %xmm0, 0x18(%r14)
movq %r15, 0x8(%r14)
leaq 0x33a1(%rip), %rax      # 0x8e4c
movq %rax, 0x20(%r14)
leaq 0x3472(%rip), %rax      # 0x8f28
movq %rax, 0x18(%r14)
movq %r14, %rax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x5ae7
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x31c0
jmp 0x5ae7
movq %rax, %r14
movl $0x28, %esi
movq %rbx, %rdi
callq 0x31c0
movq %r14, %rdi
callq 0x32e0
// File: /workspace/github_cpp_makefile_star2_O1/BlinfoldKing[P]lisval/src/lib/evaluator.cpp
// Function: Evaluator::print()
pair<Token*, function<Token*(Token*)>> Evaluator::print() {
    Token* op = new Atom("print");
    Token* input = new Variable("INPUT");
    List* signature = new List();
    signature->list.push_back(op);
    signature->list.push_back(input);
    Token* token = signature;
    auto res = make_pair(token, [this](Token* input) {
            List* input_list = static_cast<List*>(input);
            Token* res = this->eval(input_list->list[1]);
            cout << res->debug() << '\n';

            return res;
    });

    return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movl $0x28, %edi
callq 0x31b0
movq %rax, %r15
leaq -0x60(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x97fa(%rip), %rsi      # 0xf328
leaq 0x97f8(%rip), %rdx      # 0xf32d
leaq -0x70(%rbp), %rdi
callq 0x3ba8
movl $0x0, (%r15)
leaq 0x8(%r15), %rdi
movq %r15, %rax
addq $0x18, %rax
movq %rax, 0x8(%r15)
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
addq %rsi, %rdx
callq 0x3a18
movq -0x70(%rbp), %rdi
cmpq %r12, %rdi
je 0x5b79
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x31c0
movq %r15, -0x30(%rbp)
movl $0x28, %edi
callq 0x31b0
movq %rax, %r15
leaq -0x40(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x97ba(%rip), %rsi      # 0xf354
leaq 0x97b8(%rip), %rdx      # 0xf359
leaq -0x50(%rbp), %rdi
callq 0x3ba8
movl $0x3, (%r15)
leaq 0x8(%r15), %rdi
movq %r15, %rax
addq $0x18, %rax
movq %rax, 0x8(%r15)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq %rsi, %rdx
callq 0x3a18
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
je 0x5be5
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x31c0
movq %r15, -0x28(%rbp)
movl $0x20, %edi
callq 0x31b0
movq %rax, %r15
movl $0x1, (%rax)
leaq 0x8(%rax), %r12
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
movq $0x0, 0x18(%rax)
movq 0x10(%rax), %rsi
testq %rsi, %rsi
je 0x5c26
movq -0x30(%rbp), %rax
movq %rax, (%rsi)
addq $0x8, 0x10(%r15)
jmp 0x5c32
leaq -0x30(%rbp), %rdx
movq %r12, %rdi
callq 0x9bf4
movq 0x10(%r15), %rsi
cmpq 0x18(%r15), %rsi
je 0x5c4a
movq -0x28(%rbp), %rax
movq %rax, (%rsi)
addq $0x8, 0x10(%r15)
jmp 0x5c56
leaq -0x28(%rbp), %rdx
movq %r12, %rdi
callq 0x9bf4
movq %r15, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
movups %xmm0, 0x18(%rbx)
movq %r14, 0x8(%rbx)
leaq 0x32e3(%rip), %rax      # 0x8f52
movq %rax, 0x20(%rbx)
leaq 0x3378(%rip), %rax      # 0x8ff2
movq %rax, 0x18(%rbx)
movq %rbx, %rax
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
je 0x5cbf
movq -0x40(%rbp), %rsi
jmp 0x5cb2
jmp 0x5cbc
movq %rax, %rbx
movq -0x70(%rbp), %rdi
cmpq %r12, %rdi
je 0x5cbf
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x31c0
jmp 0x5cbf
movq %rax, %rbx
movl $0x28, %esi
movq %r15, %rdi
callq 0x31c0
movq %rbx, %rdi
callq 0x32e0
// File: /workspace/github_cpp_makefile_star2_O1/BlinfoldKing[P]lisval/src/lib/evaluator.cpp
// Function: Evaluator::generateVariableArgument(Token*, Token*)
vector<pair<Variable*, Token*>> Evaluator::generateVariableArgument(Token* condition, Token* input) {
    vector<pair<Variable*, Token*>> arguments;
    if (condition->type == TokenType::VARIABLE) {
        Variable* var = static_cast<Variable*>(condition);
        arguments.push_back(make_pair(var, input));
    } else if (condition->type == TokenType::LIST) {
        List* params = static_cast<List*>(condition);
        List* args = static_cast<List*>(input);

        for (size_t i = 0; i < params->list.size(); i++) {
            if (params->list[i]->type == TokenType::VARIABLE) {
                Variable* var = static_cast<Variable*>(params->list[i]);
                arguments.push_back(make_pair(var, args->list[i]));
            }
        }
    }

    return arguments;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r14
movq %rdx, %r15
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movl (%rdx), %eax
cmpl $0x3, %eax
je 0x5d76
cmpl $0x1, %eax
jne 0x5da2
movq 0x8(%r15), %rax
cmpq %rax, 0x10(%r15)
je 0x5da2
xorl %r13d, %r13d
leaq -0x38(%rbp), %r12
movq (%rax,%r13,8), %rax
cmpl $0x3, (%rax)
jne 0x5d5d
movq 0x8(%r14), %rcx
movq (%rcx,%r13,8), %rcx
movq %rax, -0x38(%rbp)
movq %rcx, -0x30(%rbp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x5d52
movups -0x38(%rbp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%rbx)
jmp 0x5d5d
movq %rbx, %rdi
movq %r12, %rdx
callq 0xa0c6
incq %r13
movq 0x8(%r15), %rax
movq 0x10(%r15), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rcx, %r13
jb 0x5d21
jmp 0x5da2
movq %r15, -0x38(%rbp)
movq %r14, -0x30(%rbp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x5d96
movups -0x38(%rbp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%rbx)
jmp 0x5da2
leaq -0x38(%rbp), %rdx
movq %rbx, %rdi
callq 0xa0c6
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5db6
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x5dcd
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x31c0
movq %r14, %rdi
callq 0x32e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/BlinfoldKing[P]lisval/src/lib/evaluator.cpp
// Function: compareSignature(Token*, Token*)
bool compareSignature(Token* input, Token* signature) {
        if (signature->type == TokenType::VARIABLE) {
            return input->type != TokenType::VARIABLE;
        }

        if (input->type != signature->type) {
            return false;
        }

        if (input->type == TokenType::LIST) {
            List* input_list = static_cast<List*>(input);
            List* signature_list = static_cast<List*>(signature);

            return compareList(input_list, signature_list);
        }

        if (input->type == TokenType::ATOM) {
            Atom* i = static_cast<Atom*>(input);
            Atom* s = static_cast<Atom*>(signature);
            return i->str == s->str;
        }

        if (input->type == TokenType::VARIABLE) {
            Variable* i = static_cast<Variable*>(input);
            Variable* s = static_cast<Variable*>(signature);
            return i->str == s->str;
        }

        if (input->type == TokenType::NUMBER) {
            Number* i = static_cast<Number*>(input);
            Number* s = static_cast<Number*>(signature);
            return i->value == s->value;
        }

        if (input->type == TokenType::BOOLEAN) {
            Boolean* i = static_cast<Boolean*>(input);
            Boolean* s = static_cast<Boolean*>(signature);
            return i->value == s->value;
        }

        return false;
}

// Assembly:
movl (%rsi), %eax
movl (%rdi), %ecx
cmpl $0x3, %eax
jne 0x7168
cmpl $0x3, %ecx
setne %al
retq
cmpl %eax, %ecx
jne 0x71ac
xorl %eax, %eax
cmpl $0x7, %ecx
ja 0x7167
movl %ecx, %ecx
leaq 0x7f34(%rip), %rdx      # 0xf0b0
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq 0x10(%rdi), %rdx
cmpq 0x10(%rsi), %rdx
jne 0x71ac
testq %rdx, %rdx
je 0x71d1
pushq %rbp
movq %rsp, %rbp
movq 0x8(%rsi), %rsi
movq 0x8(%rdi), %rdi
callq 0x31d0
testl %eax, %eax
sete %al
popq %rbp
retq
xorl %eax, %eax
retq
movss 0x4(%rsi), %xmm0
cmpeqss 0x4(%rdi), %xmm0
movd %xmm0, %eax
andl $0x1, %eax
retq
jmp 0x6f85
movb 0x4(%rdi), %al
cmpb 0x4(%rsi), %al
sete %al
retq
movb $0x1, %al
retq
// File: /workspace/github_cpp_makefile_star2_O1/BlinfoldKing[P]lisval/src/lib/parser.cpp
// Function: unaryOperatorToString[abi:cxx11](UnaryOperatorType)
string unaryOperatorToString(UnaryOperatorType type) {
	map<UnaryOperatorType, string> valid_operator;
	valid_operator[UnaryOperatorType::NOT] = "not";
	valid_operator[UnaryOperatorType::DEC] = "dec";

	return valid_operator[type];
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movl %esi, -0x10(%rbp)
leaq -0x38(%rbp), %rax
xorl %ecx, %ecx
movl %ecx, (%rax)
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
leaq -0xc(%rbp), %rsi
movl %ecx, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0xc322
movq 0x8(%rax), %rdx
leaq 0x4eae(%rip), %rcx      # 0xf520
movl $0x3, %r8d
movq %rax, %rdi
xorl %esi, %esi
callq 0x3280
leaq -0xc(%rbp), %rsi
movl $0x1, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0xc322
movq 0x8(%rax), %rdx
leaq 0x4e84(%rip), %rcx      # 0xf524
movl $0x3, %r8d
movq %rax, %rdi
xorl %esi, %esi
callq 0x3280
leaq -0x40(%rbp), %rdi
leaq -0x10(%rbp), %rsi
callq 0xc38a
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x3a18
leaq -0x40(%rbp), %rdi
callq 0xc962
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %rbp
retq
jmp 0xa6ed
jmp 0xa6ed
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0xc962
movq %rbx, %rdi
callq 0x32e0
// File: /workspace/github_cpp_makefile_star2_O1/BlinfoldKing[P]lisval/src/lib/parser.cpp
// Function: stringToUnaryOperator(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
UnaryOperatorType stringToUnaryOperator(string s) {
	map<string, UnaryOperatorType> valid_operator;
	valid_operator["not"] = UnaryOperatorType::NOT;
	valid_operator["dec"] = UnaryOperatorType::DEC;

	return valid_operator[s];
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rdi, %rbx
leaq -0x58(%rbp), %rax
movl $0x0, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
leaq -0x20(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x4de6(%rip), %rsi      # 0xf520
leaq 0x4de2(%rip), %rdx      # 0xf523
leaq -0x30(%rbp), %rdi
callq 0x3ba8
leaq -0x60(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0xc3f2
movl $0x0, (%rax)
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0xa772
movq -0x20(%rbp), %rsi
incq %rsi
callq 0x31c0
leaq -0x30(%rbp), %rdi
movq %r14, (%rdi)
leaq 0x4da4(%rip), %rsi      # 0xf524
leaq 0x4da0(%rip), %rdx      # 0xf527
callq 0x3ba8
leaq -0x60(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0xc3f2
movl $0x1, (%rax)
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0xa7b4
movq -0x20(%rbp), %rsi
incq %rsi
callq 0x31c0
leaq -0x60(%rbp), %rdi
movq %rbx, %rsi
callq 0xc472
movl (%rax), %ebx
leaq -0x60(%rbp), %rdi
callq 0xc9f2
movl %ebx, %eax
addq $0x50, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0xa7f6
jmp 0xa7dc
jmp 0xa7f6
movq %rax, %rbx
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0xa7f9
movq -0x20(%rbp), %rsi
incq %rsi
callq 0x31c0
jmp 0xa7f9
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0xc9f2
movq %rbx, %rdi
callq 0x32e0
// File: /workspace/github_cpp_makefile_star2_O1/BlinfoldKing[P]lisval/src/lib/parser.cpp
// Function: isUnaryOperator(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool isUnaryOperator(string s) {
	map<string, bool> valid_operator;
	valid_operator["not"] = true;
	valid_operator["dec"] = true;

	auto it = valid_operator.find(s);
	if (it == valid_operator.end()) {
		return false;
	}

	return valid_operator[s];
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
leaq -0x60(%rbp), %r14
movl $0x0, (%r14)
xorl %eax, %eax
movq %rax, 0x8(%r14)
movq %r14, 0x10(%r14)
movq %r14, 0x18(%r14)
movq %rax, 0x20(%r14)
leaq -0x28(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x4cda(%rip), %rsi      # 0xf520
leaq 0x4cd6(%rip), %rdx      # 0xf523
leaq -0x38(%rbp), %rdi
callq 0x3ba8
leaq -0x68(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0xc4f2
movb $0x1, (%rax)
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0xa87b
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x31c0
leaq -0x38(%rbp), %rdi
movq %r15, (%rdi)
leaq 0x4c9b(%rip), %rsi      # 0xf524
leaq 0x4c97(%rip), %rdx      # 0xf527
callq 0x3ba8
leaq -0x68(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0xc4f2
movb $0x1, (%rax)
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0xa8ba
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x31c0
leaq -0x68(%rbp), %rdi
movq %rbx, %rsi
callq 0xd76c
cmpq %r14, %rax
je 0xa8db
leaq -0x68(%rbp), %rdi
movq %rbx, %rsi
callq 0xc572
movb (%rax), %bl
jmp 0xa8dd
xorl %ebx, %ebx
leaq -0x68(%rbp), %rdi
callq 0xca82
movl %ebx, %eax
addq $0x58, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa8f7
jmp 0xa913
movq %rax, %rbx
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0xa916
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x31c0
jmp 0xa916
jmp 0xa913
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
callq 0xca82
movq %rbx, %rdi
callq 0x32e0
// File: /workspace/github_cpp_makefile_star2_O1/BlinfoldKing[P]lisval/src/lib/parser.cpp
// Function: binaryOperatorToString[abi:cxx11](BinaryOperatorType)
string binaryOperatorToString(BinaryOperatorType type) {
	map<BinaryOperatorType, string> valid_operator;
	valid_operator[BinaryOperatorType::PLUS] = "+";
	valid_operator[BinaryOperatorType::MINUS] = "-";
	valid_operator[BinaryOperatorType::DIV] = "/";
	valid_operator[BinaryOperatorType::TIMES] = "*";
	valid_operator[BinaryOperatorType::AND] = "and";
	valid_operator[BinaryOperatorType::OR] = "or";
	valid_operator[BinaryOperatorType::DEF] = "def";
	valid_operator[BinaryOperatorType::EQ] = "=";

	return valid_operator[type];
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movl %esi, -0x10(%rbp)
leaq -0x38(%rbp), %rax
movl $0x0, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
leaq -0xc(%rbp), %rsi
movl $0x1, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0xc5f2
movq 0x8(%rax), %rdx
leaq 0x4bb8(%rip), %rcx      # 0xf528
movl $0x1, %r8d
movq %rax, %rdi
xorl %esi, %esi
callq 0x3280
leaq -0xc(%rbp), %rsi
movl $0x0, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0xc5f2
movq 0x8(%rax), %rdx
leaq 0x4b8c(%rip), %rcx      # 0xf52a
movl $0x1, %r8d
movq %rax, %rdi
xorl %esi, %esi
callq 0x3280
leaq -0xc(%rbp), %rsi
movl $0x3, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0xc5f2
movq 0x8(%rax), %rdx
leaq 0x4b60(%rip), %rcx      # 0xf52c
movl $0x1, %r8d
movq %rax, %rdi
xorl %esi, %esi
callq 0x3280
leaq -0xc(%rbp), %rsi
movl $0x2, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0xc5f2
movq 0x8(%rax), %rdx
leaq 0x4b34(%rip), %rcx      # 0xf52e
movl $0x1, %r8d
movq %rax, %rdi
xorl %esi, %esi
callq 0x3280
leaq -0xc(%rbp), %rsi
movl $0x5, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0xc5f2
movq 0x8(%rax), %rdx
leaq 0x4b08(%rip), %rcx      # 0xf530
movl $0x3, %r8d
movq %rax, %rdi
xorl %esi, %esi
callq 0x3280
leaq -0xc(%rbp), %rsi
movl $0x6, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0xc5f2
movq 0x8(%rax), %rdx
leaq 0x4ade(%rip), %rcx      # 0xf534
movl $0x2, %r8d
movq %rax, %rdi
xorl %esi, %esi
callq 0x3280
leaq -0xc(%rbp), %rsi
movl $0x4, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0xc5f2
movq 0x8(%rax), %rdx
leaq 0x4ab3(%rip), %rcx      # 0xf537
movl $0x3, %r8d
movq %rax, %rdi
xorl %esi, %esi
callq 0x3280
leaq -0xc(%rbp), %rsi
movl $0x7, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0xc5f2
movq 0x8(%rax), %rdx
leaq 0x4a89(%rip), %rcx      # 0xf53b
movl $0x1, %r8d
movq %rax, %rdi
xorl %esi, %esi
callq 0x3280
leaq -0x40(%rbp), %rdi
leaq -0x10(%rbp), %rsi
callq 0xc65a
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x3a18
leaq -0x40(%rbp), %rdi
callq 0xcb12
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %rbp
retq
jmp 0xab0b
jmp 0xab0b
jmp 0xab0b
jmp 0xab0b
jmp 0xab0b
jmp 0xab0b
jmp 0xab0b
jmp 0xab0b
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0xcb12
movq %rbx, %rdi
callq 0x32e0
// File: /workspace/github_cpp_makefile_star2_O1/BlinfoldKing[P]lisval/src/lib/parser.cpp
// Function: debugState(std::vector<State, std::allocator<State>>)
void debugState(vector<State> state) {
    for (size_t i = 0; i < state.size(); i++) {
        string res = "";
        switch (state[i]) {
            case State::LIST_START:
                res = "B";
                break;
            case State::CHAR:
                res = "C";
                break;
            case State::LIST_TOKEN:
                res = "L";
                break;
            case State::SPACE:
                res = "S";
                break;
            case State::COMMENT:
                res = "#";
                break;
        }

        std::cout << res;
    }

    std::cout << '\n';
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq 0x8(%rdi), %rax
cmpq (%rdi), %rax
je 0xb750
movq %rdi, %rbx
leaq -0x38(%rbp), %r13
xorl %r12d, %r12d
leaq 0x3f40(%rip), %r14      # 0xf5e0
leaq -0x48(%rbp), %r15
movq %r13, -0x48(%rbp)
movq %r15, %rdi
movq %r14, %rsi
movq %r14, %rdx
callq 0x3ba8
movq (%rbx), %rax
movl (%rax,%r12,4), %eax
cmpq $0x4, %rax
ja 0xb710
leaq 0x3dba(%rip), %rcx      # 0xf484
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
leaq 0x3e80(%rip), %rcx      # 0xf558
jmpq *%rax
leaq 0x3e79(%rip), %rcx      # 0xf55a
jmp 0xb6fc
leaq 0x3e74(%rip), %rcx      # 0xf55e
jmp 0xb6fc
leaq 0x3c08(%rip), %rcx      # 0xf2fb
jmp 0xb6fc
leaq 0x3e60(%rip), %rcx      # 0xf55c
movq -0x40(%rbp), %rdx
movl $0x1, %r8d
movq %r15, %rdi
xorl %esi, %esi
callq 0x3280
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq 0x98b1(%rip), %rdi      # 0x14fd0
callq 0x3200
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0xb739
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x31c0
incq %r12
movq 0x8(%rbx), %rax
subq (%rbx), %rax
sarq $0x2, %rax
cmpq %rax, %r12
jb 0xb6a4
leaq -0x48(%rbp), %rsi
movb $0xa, (%rsi)
movq 0x9872(%rip), %rdi      # 0x14fd0
movl $0x1, %edx
callq 0x3200
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0xb78f
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x31c0
movq %rbx, %rdi
callq 0x32e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/grmauri[P]pmm/pmm.cpp
// Function: ordenarObjetos()
void ordenarObjetos()
{
    int flag, aux;
    for(int j = 0; j < numObj; j++)
        vetIndObjOrd[j] = j;
    flag = 1;
    while(flag)
    {
        flag = 0;
        for(int j = 0; j < numObj - 1; j++)
        {
            if((double)vetValObj[vetIndObjOrd[j]]/vetPesObj[vetIndObjOrd[j]] <
               (double)vetValObj[vetIndObjOrd[j+1]]/vetPesObj[vetIndObjOrd[j+1]])
            {
                flag = 1;
                aux = vetIndObjOrd[j];
                vetIndObjOrd[j] = vetIndObjOrd[j+1];
                vetIndObjOrd[j+1] = aux;
            }
        }
    }
}

// Assembly:
movslq 0x5e10(%rip), %rax      # 0x9144
leaq 0x6e85(%rip), %rcx      # 0xa1c0
testq %rax, %rax
jle 0x3353
xorl %edx, %edx
movq %rcx, %rsi
movl %edx, (%rsi)
incq %rdx
addq $0x4, %rsi
cmpq %rdx, %rax
jne 0x3345
cmpl $0x2, %eax
jl 0x33d5
leal -0x1(%rax), %edx
movl %edx, %edx
leaq 0x5dec(%rip), %rsi      # 0x9150
leaq 0x65b5(%rip), %rdi      # 0x9920
xorl %r8d, %r8d
xorl %r9d, %r9d
movslq (%rcx,%r8,4), %r10
xorps %xmm0, %xmm0
cvtsi2sdl (%rsi,%r10,4), %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl (%rdi,%r10,4), %xmm1
movslq 0x4(%rcx,%r8,4), %r11
xorps %xmm2, %xmm2
cvtsi2sdl (%rsi,%r11,4), %xmm2
xorps %xmm3, %xmm3
cvtsi2sdl (%rdi,%r11,4), %xmm3
divsd %xmm1, %xmm0
divsd %xmm3, %xmm2
ucomisd %xmm0, %xmm2
jbe 0x33c3
leaq (,%r8,4), %r9
movl %r11d, (%r9,%rcx)
movl %r10d, 0x4(%rcx,%r8,4)
movl $0x1, %r9d
incq %r8
cmpq %r8, %rdx
jne 0x3371
testl %r9d, %r9d
je 0x33d5
cmpl $0x2, %eax
jge 0x336b
retq