LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/manschga[P]M5GB/M5GB.cpp
// Function: Add_to_M(Lab_poly const&)
void Add_to_M(const Lab_poly& F)
{
  term_int LT = F.Get_LT();
  M_conv[LT] = make_pair(table[LT].first,F.Get_sign());
  M.erase(LT);
  M[LT] = F.Get_poly();
  Generations_M.erase(LT);
  Generations_M[LT] = G_.size();
  Flags_M.erase(LT);
  Flags_M[LT] = Create_Flag(F.Get_poly());
  LT_M.erase(LT);
  LT_M[LT] = F.Get_sign();
  return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
callq 0xcb20
cltq
leaq 0x8(%rsp), %r14
movq %rax, (%r14)
leaq 0x103d2(%rip), %rcx     # 0x1a170
leaq (%rax,%rax,2), %rsi
shlq $0x4, %rsi
addq (%rcx), %rsi
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x4214
movups 0x20(%rbx), %xmm0
movups %xmm0, 0x18(%r15)
leaq 0x1045a(%rip), %rdi     # 0x1a220
movq %r14, %rsi
callq 0xde02
movq %rax, %r14
leaq 0x20(%rbx), %r13
leaq 0x28(%rsp), %r15
movq (%rax), %rdi
movq 0x10(%rax), %rsi
movaps -0x18(%r15), %xmm0
movups %xmm0, (%rax)
movq -0x8(%r15), %rax
movq %rax, 0x10(%r14)
xorps %xmm0, %xmm0
movaps %xmm0, -0x18(%r15)
movq $0x0, -0x8(%r15)
testq %rdi, %rdi
je 0x9e30
subq %rdi, %rsi
callq 0x2180
movq 0x10(%rsp), %rdi
movups (%r15), %xmm0
movups %xmm0, 0x18(%r14)
testq %rdi, %rdi
je 0x9e39
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
jmp 0x9e39
movups (%r15), %xmm0
movups %xmm0, 0x18(%r14)
leaq 0x104c0(%rip), %r15     # 0x1a300
leaq 0x8(%rsp), %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0xe17c
movq %r15, %rdi
movq %r14, %rsi
callq 0xe26a
movq %rax, %r15
movq %rax, %rdi
movq %rbx, %rsi
callq 0x6674
movl 0x18(%rbx), %eax
movl %eax, 0x18(%r15)
leaq 0x10569(%rip), %r15     # 0x1a3e0
movq %r15, %rdi
movq %r14, %rsi
callq 0xe59e
movl 0x10458(%rip), %ebp     # 0x1a2e0
movq %r15, %rdi
movq %r14, %rsi
callq 0xe68e
movl %ebp, (%rax)
leaq 0x104d4(%rip), %r15     # 0x1a370
movq %r15, %rdi
movq %r14, %rsi
callq 0xe926
movq %rbx, %rdi
callq 0xa259
movl %eax, %ebx
movq %rdx, %r12
movq %r15, %rdi
movq %r14, %rsi
callq 0xea16
movl %ebx, (%rax)
movq %r12, 0x8(%rax)
leaq 0x103c4(%rip), %rbx     # 0x1a290
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe926
movq %rbx, %rdi
movq %r14, %rsi
callq 0xea16
movups (%r13), %xmm0
movups %xmm0, (%rax)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x9f13
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq %rbx, %rdi
callq 0x2240
// File: /workspace/github_cpp_makefile_star2_O3/manschga[P]M5GB/M5GB.cpp
// Function: Add_to_G(Lab_poly const&)
void Add_to_G(const Lab_poly& F)
{
  term_int LT = F.Get_LT();
  G_conv[LT] = make_pair(table[LT].first,F.Get_sign());
  G_[LT] = F.Get_poly();
  Generations_G[LT] = G_.size();
  LT_G[LT] = F.Get_sign();
  return;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
callq 0xcb20
cltq
leaq 0x8(%rsp), %r14
movq %rax, (%r14)
leaq 0x10231(%rip), %rcx     # 0x1a170
leaq (%rax,%rax,2), %rsi
shlq $0x4, %rsi
addq (%rcx), %rsi
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x4214
movups 0x20(%rbx), %xmm0
movups %xmm0, 0x18(%r15)
leaq 0x10281(%rip), %rdi     # 0x1a1e8
movq %r14, %rsi
callq 0xde02
movq %rax, %r14
leaq 0x20(%rbx), %r12
leaq 0x28(%rsp), %r15
movq (%rax), %rdi
movq 0x10(%rax), %rsi
movaps -0x18(%r15), %xmm0
movups %xmm0, (%rax)
movq -0x8(%r15), %rax
movq %rax, 0x10(%r14)
xorps %xmm0, %xmm0
movaps %xmm0, -0x18(%r15)
movq $0x0, -0x8(%r15)
testq %rdi, %rdi
je 0x9fd1
subq %rdi, %rsi
callq 0x2180
movq 0x10(%rsp), %rdi
movups (%r15), %xmm0
movups %xmm0, 0x18(%r14)
testq %rdi, %rdi
je 0x9fda
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
jmp 0x9fda
movups (%r15), %xmm0
movups %xmm0, 0x18(%r14)
leaq 0x102e7(%rip), %rdi     # 0x1a2c8
leaq 0x8(%rsp), %r14
movq %r14, %rsi
callq 0xe26a
movq %rax, %r15
movq %rax, %rdi
movq %rbx, %rsi
callq 0x6674
movl 0x18(%rbx), %eax
movl %eax, 0x18(%r15)
movl 0x102d7(%rip), %ebx     # 0x1a2e0
leaq 0x10398(%rip), %rdi     # 0x1a3a8
movq %r14, %rsi
callq 0xe68e
movl %ebx, (%rax)
leaq 0x10237(%rip), %rdi     # 0x1a258
movq %r14, %rsi
callq 0xea16
movups (%r12), %xmm0
movups %xmm0, (%rax)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xa057
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq %rbx, %rdi
callq 0x2240
// File: /workspace/github_cpp_makefile_star2_O3/manschga[P]M5GB/M5GB.cpp
// Function: Poly(std::unordered_map<long, polynomial, std::hash<long>, std::equal_to<long>, std::allocator<std::pair<long const, polynomial>>> const&, int, int)
vector<polynomial> Poly(const Basis& G, int n, int p)
{
  vector<polynomial> G_poly = {};
  G_poly.reserve(G_.size());// = {};
  for (auto it : G_) 
    {
      G_poly.emplace_back(it.second);
    }
  return G_poly;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq 0x10260(%rip), %rsi     # 0x1a2e0
callq 0xce44
movq 0x1024c(%rip), %r15     # 0x1a2d8
testq %r15, %r15
je 0xa0dd
leaq 0x10(%rsp), %r14
movq 0x8(%r15), %rax
movq %rax, 0x8(%rsp)
leaq 0x10(%r15), %rsi
movq %r14, %rdi
callq 0x68a4
movl 0x28(%r15), %eax
movl %eax, 0x28(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0xcf16
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xa0d5
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq (%r15), %r15
testq %r15, %r15
jne 0xa096
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0xa0ec
movq %rax, %r14
jmp 0xa10b
movq %rax, %r14
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xa10b
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq %rbx, %rdi
callq 0x312c
movq %r14, %rdi
callq 0x2240
// File: /workspace/github_cpp_makefile_star2_O3/manschga[P]M5GB/M5GB.cpp
// Function: Interreduce(std::vector<polynomial, std::allocator<polynomial>>&)
void Interreduce(vector<polynomial>& system)
{
  int size = 0;
  int size_before = 1;
  while(size != size_before)
    {
      cout << "reduction step: " << system.size() << endl;
      size_before = system.size();
      int reductions = reduce(system); //get the (unique) reduced gröbner basis
      cout << "after reduce: " << system.size() << endl;
      size = system.size();//maybe the size drops
      number_of_reductions += reductions;
    }
  cout << "end of reduction!" << endl;
  //sort(system); //test if this speeds up
  reverse(system.begin(),system.end());
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0xfea8(%rip), %r14      # 0x19fd8
leaq 0x931d(%rip), %r12      # 0x13454
movl $0x10, %edx
movq %r14, %rdi
leaq 0x92fd(%rip), %rsi      # 0x13443
callq 0x21a0
movq 0x8(%rbx), %rsi
subq (%rbx), %rsi
sarq $0x5, %rsi
movq %r14, %rdi
callq 0x20e0
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2160
movsbl %al, %esi
movq %r13, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20f0
movq 0x8(%rbx), %r15
subq (%rbx), %r15
shrq $0x5, %r15
movq %rbx, %rdi
callq 0x112c9
movl %eax, %ebp
movl $0xe, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x21a0
movq 0x8(%rbx), %rsi
subq (%rbx), %rsi
sarq $0x5, %rsi
movq %r14, %rdi
callq 0x20e0
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2160
movsbl %al, %esi
movq %r13, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20f0
movq 0x8(%rbx), %rax
subq (%rbx), %rax
shrq $0x5, %rax
addl %ebp, 0xffc5(%rip)      # 0x1a1c0
cmpl %r15d, %eax
jne 0xa137
leaq 0x9258(%rip), %rsi      # 0x13463
movl $0x11, %edx
movq %r14, %rdi
callq 0x21a0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2160
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20f0
movq (%rbx), %rdi
movq 0x8(%rbx), %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xfe59
// File: /workspace/github_cpp_makefile_star2_O3/manschga[P]M5GB/M5GB.cpp
// Function: Check_TGFT(long, signature const&)
bool Check_TGFT(const term_int t_, const signature& T)
{
  #ifdef PRECISE_DEBUG
  cout << "TGFT called!" << endl;
  #endif
  for (auto& it : G_conv) 
    {
      //*
      if (t_ == it.first)
	{
	  signature test = it.second.second;//if divisor divides term, then term = divisor*remainderv);//check: needed whole multiple?
	  if (Smaller_sign(test,T)) //check if S(vG) < T
	    {
	      return true;
	    }
	}
    }
  for (auto& it : G_conv)
    {
      if (t_ > it.first)
	{
	  if (isDivisible(table[t_].first,it.second.first))
	    {
	      signature test = it.second.second.Multiply(get_remainder(table[t_].first, it.second.first));//if divisor divides term, then term = divisor*remainderv);//check: needed whole multiple?
	      if (Smaller_sign(test,T)) //check if S(vG) < T
		{
		  return true;
		}
	    }
	}
    }
  return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq 0xfeb3(%rip), %r12      # 0x1a1f8
testq %r12, %r12
je 0xa487
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x10(%rsp), %r15
cmpq %r14, 0x8(%r12)
jne 0xa37e
movups 0x28(%r12), %xmm0
movaps %xmm0, 0x10(%rsp)
movq %r15, %rdi
movq %rbx, %rsi
callq 0x12797
testb %al, %al
jne 0xa48b
movq (%r12), %r12
testq %r12, %r12
jne 0xa359
movq 0xfe6a(%rip), %r15      # 0x1a1f8
testq %r15, %r15
je 0xa487
leaq (%r14,%r14,2), %rax
shlq $0x4, %rax
movq %rax, 0x8(%rsp)
leaq 0x28(%rsp), %r13
cmpq %r14, 0x8(%r15)
jge 0xa47b
leaq 0xfdb6(%rip), %rax      # 0x1a170
movq (%rax), %rdi
addq 0x8(%rsp), %rdi
leaq 0x10(%r15), %rbp
movq %rbp, %rsi
callq 0x3bf9
testb %al, %al
je 0xa47b
leaq 0xfd93(%rip), %rax      # 0x1a170
movq (%rax), %rsi
addq 0x8(%rsp), %rsi
leaq 0x40(%rsp), %r12
movq %r12, %rdi
callq 0x4214
movq %r13, %rdi
movq %rbp, %rsi
callq 0x4214
leaq 0x10(%rsp), %rbp
movq %rbp, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x10d0f
leaq 0x28(%r15), %rdi
movq %rbp, %rsi
callq 0x6832
movl %eax, 0x58(%rsp)
movq %rdx, 0x60(%rsp)
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xa43c
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0xa453
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xa46a
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
leaq 0x58(%rsp), %rdi
movq %rbx, %rsi
callq 0x12797
testb %al, %al
jne 0xa48b
movq (%r15), %r15
testq %r15, %r15
jne 0xa3a9
xorl %eax, %eax
jmp 0xa48d
movb $0x1, %al
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0xa4c0
movq %rax, %rbx
jmp 0xa4d7
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xa4c0
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0xa4d7
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xa4ee
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq %rbx, %rdi
callq 0x2240
// File: /workspace/github_cpp_makefile_star2_O3/manschga[P]M5GB/M5GB.cpp
// Function: Basic_poly(std::vector<polynomial, std::allocator<polynomial>> const&, int)
vector<Lab_poly> Basic_poly(const vector<polynomial>& system_, int n)
{
  vector<Lab_poly> F = {};
  F.reserve(m);//(m);
  for (int i = 0; i < m; i++)
    {
      #ifdef LTPOT
      Lab_poly F_i(system_[i],signature(system_[i].Get_LT(),i));
      #endif
      #ifdef DPOT
      Lab_poly F_i(system_[i],signature(0,i));
      #endif
      //Lab_poly F_i(system_[i],signature(0,i)); -> is worse by a test!
      F.emplace_back(F_i);
    }
  return F;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movslq 0xe664(%rip), %rsi      # 0x1a1b8
movq %rdi, 0x8(%rsp)
callq 0xcce8
cmpl $0x0, 0xe653(%rip)      # 0x1a1b8
jle 0xbc0d
xorl %r12d, %r12d
leaq 0x20(%rsp), %r15
leaq 0x40(%rsp), %r13
xorl %ebp, %ebp
movq (%r14), %rbx
leaq (%rbx,%r12), %rsi
movq %r15, %rdi
callq 0x68a4
movl 0x18(%rbx,%r12), %eax
movl %eax, 0x38(%rsp)
movq (%r14), %rax
movq (%rax,%r12), %rax
movl (%rax), %esi
leaq 0x10(%rsp), %rdi
movl %ebp, %edx
callq 0x1275c
movl 0x10(%rsp), %edx
movq 0x18(%rsp), %rcx
movq %r13, %rdi
movq %r15, %rsi
callq 0x50f8
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0xbbd2
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq 0x8(%rsp), %rdi
movq %r13, %rsi
callq 0xcde0
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xbbf6
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
incq %rbp
movslq 0xe5b8(%rip), %rax      # 0x1a1b8
addq $0x20, %r12
cmpq %rax, %rbp
jl 0xbb7a
movq 0x8(%rsp), %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xbc23
movq %rax, %r14
jmp 0xbc56
movq %rax, %r14
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xbc56
movq 0x50(%rsp), %rsi
jmp 0xbc4e
movq %rax, %r14
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0xbc56
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq 0x8(%rsp), %rdi
callq 0xcc40
movq %r14, %rdi
callq 0x2240
// File: /workspace/github_cpp_makefile_star2_O3/manschga[P]M5GB/M5GB.cpp
// Function: Init_G(std::vector<Lab_poly, std::allocator<Lab_poly>> const&)
Basis Init_G(const vector<Lab_poly>& F)
{
  Basis G_ = {};
  for (auto it = F.begin(); it != F.end(); ++it)
    {
      G_[it->Get_LT()] = it->Get_poly(); //check: what if same LT in G_?
    }
  return G_;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq $0x0, 0x20(%rdi)
leaq 0x30(%rdi), %rax
movq %rax, (%rdi)
movq $0x1, 0x8(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movl $0x3f800000, 0x20(%rdi) # imm = 0x3F800000
movups %xmm0, 0x28(%rdi)
movq (%rsi), %r15
cmpq 0x8(%rsi), %r15
je 0xbed4
movq %rsi, %r14
leaq 0x8(%rsp), %r12
movq %r15, %rdi
callq 0xcb20
cltq
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1024a
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
callq 0x6674
movl 0x18(%r15), %eax
movl %eax, 0x18(%r13)
addq $0x38, %r15
cmpq 0x8(%r14), %r15
jne 0xbe9a
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0xd18e
movq %r14, %rdi
callq 0x2240
// File: /workspace/github_cpp_makefile_star2_O3/manschga[P]M5GB/M5GB.cpp
// Function: Init_Syzygies(std::vector<Lab_poly, std::allocator<Lab_poly>> const&)
Syzygies Init_Syzygies(const vector<Lab_poly> &F)
{
  int k = F.size();
  Syzygies H(k);
  for (int i = 0; i < k; ++i)
    {
      H[i].reserve(i);
    }
  
  for (int i = 0; i < F.size(); ++i)
    {
      for (int j = i+1; j < F.size(); ++j)
	{
	  H[j].emplace_back(F[j].Multiply(F[i].Get_LT(),false).Get_sign().Get_term()); //should i do without LT? check after!
	}
    }
  return H;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r14
movq 0x8(%rsi), %rbx
subq (%rsi), %rbx
sarq $0x3, %rbx
movabsq $0x6db6db6db6db6db7, %rax # imm = 0x6DB6DB6DB6DB6DB7
imulq %rax, %rbx
movslq %ebx, %r15
leaq 0x40(%rsp), %rdx
movq %rdi, 0x8(%rsp)
movq %r15, %rsi
callq 0xcf68
testl %r15d, %r15d
jle 0xc3b4
andl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
xorl %r12d, %r12d
xorl %r15d, %r15d
movq 0x8(%rsp), %rax
movq (%rax), %rdi
addq %r12, %rdi
movq %r15, %rsi
callq 0xcfe6
incq %r15
addq $0x18, %r12
cmpq %r15, %rbx
jne 0xc395
movq (%r14), %r13
movq 0x8(%r14), %rax
cmpq %r13, %rax
je 0xc4e9
movl $0x1, %r12d
movl $0x38, %ebx
movl $0x18, %r15d
xorl %edx, %edx
leaq 0x1(%rdx), %rdi
movq %rax, %rcx
subq %r13, %rcx
sarq $0x3, %rcx
movabsq $0x6db6db6db6db6db7, %rsi # imm = 0x6DB6DB6DB6DB6DB7
imulq %rsi, %rcx
movq %rdi, 0x10(%rsp)
cmpq %rdi, %rcx
movq %r12, 0x28(%rsp)
movq %rbx, 0x20(%rsp)
movq %r15, 0x18(%rsp)
jbe 0xc4c1
imulq $0x38, %rdx, %rax
movq %rax, 0x30(%rsp)
movq 0x8(%rsp), %rax
movq (%rax), %rbp
movq 0x30(%rsp), %rax
leaq (%rax,%r13), %rdi
callq 0xcb20
addq %rbx, %r13
leaq 0x40(%rsp), %rdi
movq %r13, %rsi
movl %eax, %edx
xorl %ecx, %ecx
callq 0x6442
movq 0x68(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x8(%rbp,%r15), %rsi
cmpq 0x10(%rbp,%r15), %rsi
je 0xc467
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbp,%r15)
jmp 0xc477
addq %r15, %rbp
movq %rbp, %rdi
leaq 0x38(%rsp), %rdx
callq 0x461e
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xc48e
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
incq %r12
movq (%r14), %r13
movq 0x8(%r14), %rax
movq %rax, %rcx
subq %r13, %rcx
sarq $0x3, %rcx
movabsq $0x6db6db6db6db6db7, %rdx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rdx, %rcx
addq $0x38, %rbx
addq $0x18, %r15
cmpq %r12, %rcx
ja 0xc419
movq 0x28(%rsp), %r12
incq %r12
movq 0x20(%rsp), %rbx
addq $0x38, %rbx
movq 0x18(%rsp), %r15
addq $0x18, %r15
movq 0x10(%rsp), %rdx
cmpq %rdx, %rcx
ja 0xc3d7
movq 0x8(%rsp), %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xc51b
movq %rax, %r14
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xc51e
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
jmp 0xc51e
movq %rax, %r14
movq 0x8(%rsp), %rdi
callq 0x3054
movq %r14, %rdi
callq 0x2240
// File: /workspace/github_cpp_makefile_star2_O3/manschga[P]M5GB/M5GB.cpp
// Function: Create_basis(std::vector<Lab_poly, std::allocator<Lab_poly>> const&)
Basis Create_basis(const vector<Lab_poly>& F)
{
  Basis basis;
  for (auto it = F.begin(); it != F.end(); ++it)
    {
      basis[it->Get_LT()] = it->Get_poly();
    }
  return basis;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x30(%rdi), %rax
movq %rax, (%rdi)
movq $0x1, 0x8(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movl $0x3f800000, 0x20(%rdi) # imm = 0x3F800000
movups %xmm0, 0x28(%rdi)
movq (%rsi), %r15
cmpq 0x8(%rsi), %r15
je 0xc633
movq %rsi, %r14
leaq 0x8(%rsp), %r12
movq %r15, %rdi
callq 0xcb20
cltq
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1024a
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
callq 0x6674
movl 0x18(%r15), %eax
movl %eax, 0x18(%r13)
addq $0x38, %r15
cmpq 0x8(%r14), %r15
jne 0xc5f9
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0xd18e
movq %r14, %rdi
callq 0x2240
// File: /workspace/github_cpp_makefile_star2_O3/manschga[P]M5GB/poly.cpp
// Function: operator<<(std::ostream&, monomial const&)
ostream& operator<<(ostream& s, const monomial& rhs)
{
  //if (rhs._coeff > 1)
  cout << rhs._coeff << "*";
  cout << rhs._term;
  /*
  for (int i = 0; i < rhs._term.size()-1; ++i)
    {
      if (rhs._term[i] > 1)
	cout << char(97+i) << rhs._term[i];
      if (rhs._term[i] == 1)
	cout << char(97+i);
    }
  if (rhs._term[rhs._term.size()-1] > 1)
    cout << char(97+rhs._term.size()-1) << rhs._term[rhs._term.size()-1];
    if (rhs._term[rhs._term.size()-1] == 1)
      cout << char(97+rhs._term.size()-1);
  */
  return s;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl 0x8(%rsi), %esi
movq 0x9771(%rip), %r15      # 0x19fd8
movq %r15, %rdi
callq 0x2230
leaq 0x2c0c(%rip), %rsi      # 0x13482
movl $0x1, %edx
movq %rax, %rdi
callq 0x21a0
movq (%rbx), %rsi
movq %r15, %rdi
callq 0x2150
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/manschga[P]M5GB/poly.cpp
// Function: operator<<(std::ostream&, polynomial const&)
ostream& operator<<(ostream& s, const polynomial& rhs)
{
  for (int i = 0; i < rhs.size()-1; ++i)
    {
      cout << rhs._monomials[i] << "+";
    }
  cout << rhs._monomials[rhs.size()-1] <<",";
  return s;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, (%rsp)
movabsq $-0x100000000, %r13     # imm = 0xFFFFFFFF00000000
movq (%rsi), %rsi
movq 0x8(%r14), %rax
subq %rsi, %rax
movq %rax, %rcx
shrq $0x4, %rcx
cmpl $0x2, %ecx
jl 0x10a13
xorl %ebp, %ebp
movq 0x960c(%rip), %r15      # 0x19fd8
leaq 0x26a2(%rip), %r12      # 0x13075
xorl %ebx, %ebx
addq %rbp, %rsi
movq %r15, %rdi
callq 0x10852
movl $0x1, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x21a0
incq %rbx
movq (%r14), %rsi
movq 0x8(%r14), %rax
subq %rsi, %rax
shlq $0x1c, %rax
addq %r13, %rax
sarq $0x20, %rax
addq $0x10, %rbp
cmpq %rax, %rbx
jl 0x109d5
jmp 0x10a1e
shlq $0x1c, %rax
addq %r13, %rax
sarq $0x20, %rax
shlq $0x4, %rax
addq %rsi, %rax
movq 0x95ac(%rip), %r14      # 0x19fd8
movq %r14, %rdi
movq %rax, %rsi
callq 0x10852
leaq 0x2639(%rip), %rsi      # 0x13077
movl $0x1, %edx
movq %r14, %rdi
callq 0x21a0
movq (%rsp), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/manschga[P]M5GB/poly.cpp
// Function: get_remainder(std::vector<int, std::allocator<int>>, std::vector<int, std::allocator<int>>)
term_vec get_remainder(term_vec term, term_vec divisor)//if divisor divides term, then term = divisor*remainder, is only on term level!
{
  //cout << "in remainder " << endl;
  //  int rem_coeff = mon.Get_coeff()*Inverse(divisor.Get_coeff(),divisor.Get_p());
  /*
  cout << "term_size: " << term.size() << endl;
  cout << "divisor size: " << divisor.size() << endl;
  cout << "in remainder " << endl;
  */
  term_vec rem_vec = {};
  if (term.size() != divisor.size())
    {
      cout << "Error in Remainder computation!" << endl;
    }
  for (int i = 0; i < term.size(); ++i)
    {
      //cout << "before emplace " << endl;
      rem_vec.emplace_back(term[i]-divisor[i]);
      //cout << "after emplace " << endl;
    }
  return rem_vec;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq (%rsi), %rax
movq 0x8(%rsi), %rcx
movq %rcx, %rdx
subq %rax, %rdx
movq 0x8(%r14), %rsi
subq (%r14), %rsi
cmpq %rsi, %rdx
je 0x10d96
movq 0x9285(%rip), %r12      # 0x19fd8
leaq 0x272a(%rip), %rsi      # 0x13484
movl $0x1f, %edx
movq %r12, %rdi
callq 0x21a0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2160
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20f0
movq (%r15), %rax
movq 0x8(%r15), %rcx
cmpq %rax, %rcx
je 0x10dec
xorl %r13d, %r13d
leaq 0xc(%rsp), %r12
movl (%rax,%r13,4), %edx
movq (%r14), %rsi
subl (%rsi,%r13,4), %edx
movl %edx, 0xc(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x10dc8
movl %edx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x10dda
movq %rbx, %rdi
movq %r12, %rdx
callq 0x4924
movq (%r15), %rax
movq 0x8(%r15), %rcx
incq %r13
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x2, %rdx
cmpq %r13, %rdx
ja 0x10da3
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x10e14
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x2180
movq %r14, %rdi
callq 0x2240
// File: /workspace/github_cpp_makefile_star2_O3/manschga[P]M5GB/poly.cpp
// Function: poly_from_vec(std::vector<int, std::allocator<int>> const&, int, int)
polynomial poly_from_vec(const vector<int>& vec, int n, int p)
{
  //  monomial constant(0,vec[vec.size()-1],p);
  vector<monomial> monomials = {};
  for (int i = 0; i < vec.size(); ++i)
    {
      if ((vec[i])%p > 0)
	{
	  monomials.emplace_back(monomial(vec.size()-i-1,(vec[i]),p));//new term with coefficient
	}
    }
  return polynomial(monomials);//.update();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, 0x30(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq (%rsi), %rsi
movq 0x8(%r14), %rdi
movq %rdi, %r8
subq %rsi, %r8
je 0x110ee
movl %ecx, %ebp
sarq $0x2, %r8
movq $-0x1, %r13
xorl %ebx, %ebx
movq %rsp, %r15
leaq 0x20(%rsp), %r12
movl (%rsi,%rbx,4), %ecx
movl %ecx, %eax
cltd
idivl %ebp
testl %edx, %edx
jle 0x110d9
addq %r13, %r8
movq %r8, 0x20(%rsp)
movl %ecx, 0x28(%rsp)
movl %ebp, 0x2c(%rsp)
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0x110c7
movups 0x20(%rsp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%rsp)
jmp 0x110d2
movq %r15, %rdi
movq %r12, %rdx
callq 0x7138
movq (%r14), %rsi
movq 0x8(%r14), %rdi
incq %rbx
movq %rdi, %r8
subq %rsi, %r8
sarq $0x2, %r8
decq %r13
cmpq %rbx, %r8
ja 0x1108f
movq %rsp, %rsi
movq 0x30(%rsp), %rbx
movq %rbx, %rdi
callq 0x10944
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x11114
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x11128
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x11141
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq %rbx, %rdi
callq 0x2240
// File: /workspace/github_cpp_makefile_star2_O3/manschga[P]M5GB/poly.cpp
// Function: vec_from_poly(polynomial const&, int)
vector<vector<int>> vec_from_poly(const polynomial& poly, int n)
{
  vector<vector<int>> poly_vec = {};
  //assume poly is correctly ordered, else call poly.update() -> no more const
  //first extra, get size
  if (poly.size() == 0)
    {
      cout << "empty polynomial!" << endl;
      return {};
    }
  //  vector<int> vec(max_size,0);
  for (int i = 0; i < poly.Get_monomials().size(); ++i)
    {
      if (poly.Get_monomials()[i].Get_coeff() > 0)
	{
	  vector<int> term_i = table[poly.Get_monomials()[i].Get_term()].first;
	  poly_vec.emplace_back(term_i);
	}
    }
  return poly_vec;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq (%rsi), %rax
movq 0x8(%rsi), %rcx
movq %rcx, %rdx
subq %rax, %rdx
shrq $0x4, %rdx
testl %edx, %edx
je 0x11219
cmpq %rax, %rcx
je 0x11264
movq %rsi, %r14
movq %rbx, 0x18(%rsp)
movl $0x8, %r13d
xorl %ebp, %ebp
leaq 0x8fcd(%rip), %rbx      # 0x1a170
leaq 0x20(%rsp), %r15
movq %rsp, %r12
cmpl $0x0, (%rax,%r13)
jle 0x111f3
movq -0x8(%rax,%r13), %rax
leaq (%rax,%rax,2), %rsi
shlq $0x4, %rsi
addq (%rbx), %rsi
movq %r15, %rdi
callq 0x4214
movq %r12, %rdi
movq %r15, %rsi
callq 0x122a0
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x111ec
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq (%r14), %rax
movq 0x8(%r14), %rcx
incq %rbp
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x4, %rdx
addq $0x10, %r13
cmpq %rbp, %rdx
ja 0x111ab
movaps (%rsp), %xmm0
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rbx
jmp 0x11266
movq 0x8db8(%rip), %r14      # 0x19fd8
leaq 0x2291(%rip), %rsi      # 0x134b8
movl $0x11, %edx
movq %r14, %rdi
callq 0x21a0
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x2160
movsbl %al, %esi
movq 0x8d86(%rip), %rdi      # 0x19fd8
callq 0x2030
movq %rax, %rdi
callq 0x20f0
movq %rbx, %rax
jmp 0x11270
xorl %eax, %eax
movups %xmm0, (%rbx)
movq %rax, 0x10(%rbx)
movq %rsp, %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rsp, %rdi
callq 0x30d8
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1129a
movq %rax, %rbx
jmp 0x112b9
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x112b9
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq %rsp, %rdi
callq 0x30d8
movq %rbx, %rdi
callq 0x2240
// File: /workspace/github_cpp_makefile_star2_O3/manschga[P]M5GB/poly.cpp
// Function: reduce(std::vector<polynomial, std::allocator<polynomial>>&)
int reduce(vector<polynomial>& G)
{
  int reductions = 0;
  int size = 0;
  int size_before = 1;
  while(size != size_before)
    {
      size_before = G.size();
      
      bool changed = true;
      while (changed)
	{
	  changed = false;
	  int size = G.size();
	  int i = 0;
	  while (i < G.size())
	    {
	      int j = 0;
	      while (j < G.size())
		{
		  if (j != i)
		    {
		      reduce(G[i],G[j],changed,reductions);//reduce G[i] by all other in G
		      int LT_G = G[i].Get_LT();
		      int LC_G = G[i].Get_LC();
		      if (LT_G == 0 && LC_G == 0) //is zero-polynomial
			{
			  G.erase (G.begin()+i);
			  size--;
			  j = G.size();
			  i = G.size();
			}
		    }
		  ++j;
		}
	      ++i;
	    }
	}
      //lc 1
      /* //works for p = 2
	 for (int i = 0; i < G.size(); ++i)
	 {
	 G[i] = G[i]*Inverse(G[i].Get_LC(),G[i].Get_p());
	 }
      */
      size = G.size();//maybe the size drops
    }
  return reductions;
  //sort(G);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0xc(%rsp), %r14
movl $0x0, (%r14)
movq (%rdi), %rsi
movq 0x8(%rdi), %rcx
leaq 0xb(%rsp), %r15
movq %rcx, %rax
subq %rsi, %rax
shrq $0x5, %rax
movq %rax, 0x10(%rsp)
movb $0x0, 0xb(%rsp)
cmpq %rsi, %rcx
je 0x113b0
xorl %r13d, %r13d
cmpq %rsi, %rcx
je 0x1138c
xorl %eax, %eax
xorl %ebp, %ebp
cmpl %r13d, %ebp
jne 0x11325
movl %ebp, %r13d
jmp 0x11378
movslq %r13d, %r12
shlq $0x5, %r12
leaq (%rsi,%r12), %rdi
shlq $0x5, %rax
addq %rsi, %rax
movq %rax, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x113d7
movq (%rbx), %rsi
movq (%rsi,%r12), %rax
movl 0x8(%rax), %ecx
orl (%rax), %ecx
je 0x11359
movq 0x8(%rbx), %rcx
jmp 0x11378
addq %r12, %rsi
movq %rbx, %rdi
callq 0x126ca
movq (%rbx), %rsi
movq 0x8(%rbx), %rcx
movq %rcx, %r13
subq %rsi, %r13
shrq $0x5, %r13
movl %r13d, %ebp
incl %ebp
movslq %ebp, %rax
movq %rcx, %rdx
subq %rsi, %rdx
sarq $0x5, %rdx
cmpq %rax, %rdx
ja 0x1131b
incl %r13d
movslq %r13d, %rax
movq %rcx, %rdx
subq %rsi, %rdx
sarq $0x5, %rdx
cmpq %rax, %rdx
ja 0x11312
testb $0x1, 0xb(%rsp)
jne 0x11301
movq %rcx, %rax
subq %rsi, %rax
shrq $0x5, %rax
cmpl 0x10(%rsp), %eax
jne 0x112f2
movl 0xc(%rsp), %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/manschga[P]M5GB/poly.cpp
// Function: Tail(polynomial const&)
polynomial Tail(const polynomial& f) //returns all except leading monomial
{
  
  //cout << "Tail computation begin!" << endl;
  vector<monomial> tails = f.Get_monomials();
  //int n = tails[0].Get_term().size();
  if (tails.size() == 0)
    {
      cout << "Error in Tail! Empty polynomial!" << endl;
    }
  int p = tails[0].Get_p();
  //cout << "size of tails before removing: " << tails.size() << endl;
  tails.erase(tails.begin()); //remove LM
  //cout << "size of tails after removing: " << tails.size() << endl;
  if (tails.size() > 0)
    return polynomial(tails);
  else
    {// cout << "possible seg fault in Tail!" << endl;
      return polynomial({monomial(0, 0, p)});//construct zero polynomial
    }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rdi, %rbx
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x68a4
movq (%r14), %rdi
movq 0x8(%r14), %rdx
cmpq %rdi, %rdx
jne 0x117b3
movq 0x886e(%rip), %r14      # 0x19fd8
leaq 0x1d59(%rip), %rsi      # 0x134ca
movl $0x20, %edx
movq %r14, %rdi
callq 0x21a0
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x2160
movsbl %al, %esi
movq 0x883c(%rip), %rdi      # 0x19fd8
callq 0x2030
movq %rax, %rdi
callq 0x20f0
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rdx
movl 0xc(%rdi), %ebp
leaq 0x10(%rdi), %rsi
cmpq %rdx, %rsi
je 0x117d1
subq %rsi, %rdx
callq 0x2210
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rdx
addq $-0x10, %rdx
movq %rdx, 0x18(%rsp)
cmpq %rdi, %rdx
je 0x117ee
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x10944
jmp 0x1183c
leaq 0x40(%rsp), %rsi
movq $0x0, (%rsi)
movl $0x0, 0x8(%rsi)
movl %ebp, 0xc(%rsi)
leaq 0x28(%rsp), %rdi
leaq 0xf(%rsp), %rcx
movl $0x1, %edx
callq 0x7392
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x10944
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x1183c
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x11853
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq %rbx, %rax
addq $0x50, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x11882
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
jmp 0x11882
jmp 0x1187f
jmp 0x1187f
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x11899
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq %rbx, %rdi
callq 0x2240
// File: /workspace/github_cpp_makefile_star2_O3/manschga[P]M5GB/poly.cpp
// Function: is_Smaller(polynomial const&, polynomial const&)
bool is_Smaller(const polynomial &one , const polynomial &two)
{
  if (one.Get_LT() < two.Get_LT())
    {
      return true;
    }
  if (two.Get_LT() < one.Get_LT())
    {
      return false;
    }
  //else
  return is_Smaller(Tail(one),Tail(two));
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq (%rdi), %rax
movl (%rax), %eax
movq (%rsi), %rcx
movl (%rcx), %ecx
movb $0x1, %bl
cmpl %ecx, %eax
jl 0x11994
jle 0x1193b
xorl %ebx, %ebx
jmp 0x11994
movq %rdi, %rsi
leaq 0x28(%rsp), %rdi
callq 0x1173f
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x1173f
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x1191b
movl %eax, %ebx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1197d
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x11994
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x119bd
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
jmp 0x119bd
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x119d4
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq %rbx, %rdi
callq 0x2240
// File: /workspace/github_cpp_makefile_star2_O3/Finsenty54[P]fast_collision/my_first_try.cpp
// Function: main
int main()
{
    seed32_1=uint32(time(NULL));
    seed32_2=0x12345678;
    //MD5已经定义值
    uint32 IV[4] = { MD5IV[0], MD5IV[1], MD5IV[2], MD5IV[3] };
    //两个消息，每个有两个512bit块
	//16 * 32 = 512
	uint32 msg1block0[16]={0};
	uint32 msg1block1[16]={0};
	uint32 msg2block0[16]={0};
	uint32 msg2block1[16]={0};

	//计时器？？
	boost::timer::auto_cpu_timer runtime;
	find_collision(IV, msg1block0, msg1block1, msg2block0, msg2block1,true);

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x168, %rsp            # imm = 0x168
xorl %edi, %edi
callq 0x1090
leaq 0x9cea(%rip), %rcx      # 0xb0a8
movl %eax, (%rcx)
leaq 0x9ce5(%rip), %rax      # 0xb0ac
movl $0x12345678, (%rax)     # imm = 0x12345678
movaps 0x7c3c(%rip), %xmm0     # 0x9010
leaq -0x40(%rbp), %rbx
movaps %xmm0, (%rbx)
xorps %xmm0, %xmm0
leaq -0x190(%rbp), %r14
movaps %xmm0, 0x30(%r14)
movaps %xmm0, 0x20(%r14)
movaps %xmm0, 0x10(%r14)
movaps %xmm0, (%r14)
leaq -0x150(%rbp), %r15
movaps %xmm0, 0x30(%r15)
movaps %xmm0, 0x20(%r15)
movaps %xmm0, 0x10(%r15)
movaps %xmm0, (%r15)
leaq -0x110(%rbp), %r12
movaps %xmm0, 0x30(%r12)
movaps %xmm0, 0x20(%r12)
movaps %xmm0, 0x10(%r12)
movaps %xmm0, (%r12)
leaq -0xd0(%rbp), %r13
movaps %xmm0, 0x30(%r13)
movaps %xmm0, 0x20(%r13)
movaps %xmm0, 0x10(%r13)
movaps %xmm0, (%r13)
leaq -0x88(%rbp), %rdi
movl $0x6, %esi
callq 0x1040
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
movq %r13, %r8
movl $0x1, %r9d
callq 0x14ad
leaq -0x88(%rbp), %rdi
callq 0x10e0
xorl %eax, %eax
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x10e0
movq %rbx, %rdi
callq 0x1100
// File: /workspace/github_cpp_makefile_star2_O3/Finsenty54[P]fast_collision/block1.cpp
// Function: find_block1(unsigned int*, unsigned int const*)
void find_block1(uint32 block[], const uint32 IV[])
{
	if ( ((IV[1]^IV[2])&(1<<31))==0 && ((IV[1]^IV[3])&(1<<31))==0
		&& (IV[3]&(1<<25))==0 && (IV[2]&(1<<25))==0 && (IV[1]&(1<<25))==0 && ((IV[2]^IV[1])&1)==0 
	   )
	{
		uint32 IV2[4] = { IV[0]+(1<<31), IV[1]+(1<<31)+(1<<25), IV[2]+(1<<31)+(1<<25), IV[3]+(1<<31)+(1<<25) };
		if ((IV[1]&(1<<6))!=0 && (IV[1]&1)!=0) {
			std::cout << "S11" << std::flush;
			find_block1_stevens_11(block, IV2);
		} else if ((IV[1]&(1<<6))!=0 && (IV[1]&1)==0) {
			std::cout << "S10" << std::flush;
			find_block1_stevens_10(block, IV2);
		} else if ((IV[1]&(1<<6))==0 && (IV[1]&1)!=0) {
			std::cout << "S01" << std::flush;
			find_block1_stevens_01(block, IV2);
		} else {
			std::cout << "S00" << std::flush;
			find_block1_stevens_00(block, IV2);
		}
		block[4] += 1<<31;
		block[11] += 1<<15;
		block[14] += 1<<31;
	} else {
		std::cout << "W" << std::flush;
		find_block1_wang(block, IV);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movl 0x4(%rsi), %eax
movl 0x8(%rsi), %ecx
movl %ecx, %esi
xorl %eax, %esi
js 0x2c5e
movl 0xc(%r14), %edx
movl %edx, %edi
xorl %eax, %edi
js 0x2c5e
movl %ecx, %edi
orl %eax, %edi
orl %edx, %edi
andl $0x2000000, %edi        # imm = 0x2000000
andl $0x1, %esi
orl %edi, %esi
testl %esi, %esi
jne 0x2c5e
movl $0x80000000, %esi       # imm = 0x80000000
xorl (%r14), %esi
movl %esi, -0x30(%rbp)
movl $0x82000000, %esi       # imm = 0x82000000
leal (%rax,%rsi), %edi
movl %edi, -0x2c(%rbp)
addl %esi, %ecx
movl %ecx, -0x28(%rbp)
addl %esi, %edx
movl %edx, -0x24(%rbp)
andl $0x41, %eax
movq 0x83b4(%rip), %r14      # 0xafd8
cmpl $0x3f, %eax
jg 0x2c96
testl %eax, %eax
jne 0x2cc5
leaq 0x648c(%rip), %rsi      # 0x90c4
movl $0x3, %edx
movq %r14, %rdi
callq 0x10d0
movq %r14, %rdi
callq 0x1070
leaq -0x30(%rbp), %rsi
movq %rbx, %rdi
callq 0x3484
jmp 0x2d17
movq 0x8373(%rip), %r15      # 0xafd8
leaq 0x645c(%rip), %rsi      # 0x90c8
movl $0x1, %edx
movq %r15, %rdi
callq 0x10d0
movq %r15, %rdi
callq 0x1070
movq %rbx, %rdi
movq %r14, %rsi
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x7c30
cmpl $0x40, %eax
jne 0x2cef
leaq 0x641a(%rip), %rsi      # 0x90bc
movl $0x3, %edx
movq %r14, %rdi
callq 0x10d0
movq %r14, %rdi
callq 0x1070
leaq -0x30(%rbp), %rsi
movq %rbx, %rdi
callq 0x5800
jmp 0x2d17
leaq 0x63f4(%rip), %rsi      # 0x90c0
movl $0x3, %edx
movq %r14, %rdi
callq 0x10d0
movq %r14, %rdi
callq 0x1070
leaq -0x30(%rbp), %rsi
movq %rbx, %rdi
callq 0x4648
jmp 0x2d17
leaq 0x63c2(%rip), %rsi      # 0x90b8
movl $0x3, %edx
movq %r14, %rdi
callq 0x10d0
movq %r14, %rdi
callq 0x1070
leaq -0x30(%rbp), %rsi
movq %rbx, %rdi
callq 0x69fc
xorb $-0x80, 0x13(%rbx)
addl $0x8000, 0x2c(%rbx)     # imm = 0x8000
xorb $-0x80, 0x3b(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O3/j84guo[P]cake/cake.cpp
// Function: readFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&)
bool readFile(const string& path, vector<string>& lines)
{
    ifstream file(path);
    if (!file)
        return false;

    string line;
    while (getline(file, line))
        lines.push_back(trimmed(line));
    return !file.bad();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
movq %rsi, %rbx
movq %rdi, %rsi
leaq -0x290(%rbp), %r14
movq %r14, %rdi
movl $0x8, %edx
callq 0x2230
movq (%r14), %rax
movq -0x18(%rax), %rax
testb $0x5, -0x270(%rbp,%rax)
je 0x25e7
xorl %ebx, %ebx
jmp 0x26e5
leaq -0x38(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
leaq -0x58(%rbp), %r14
leaq -0x48(%rbp), %r15
leaq -0x68(%rbp), %r12
leaq -0x88(%rbp), %r13
leaq (%rax,%rbp), %rdi
addq $-0x290, %rdi           # imm = 0xFD70
movl $0xa, %esi
callq 0x2160
movsbl %al, %edx
leaq -0x290(%rbp), %rdi
movq %r15, %rsi
callq 0x22a0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x26b6
movq %r14, -0x68(%rbp)
movq %r12, %rdi
leaq 0x29b5(%rip), %rsi      # 0x5005
leaq 0x29af(%rip), %rdx      # 0x5006
callq 0x3494
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x251f
movq %rbx, %rdi
movq %r13, %rsi
callq 0x3532
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x2691
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x2180
movq -0x68(%rbp), %rdi
cmpq %r14, %rdi
je 0x26a6
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2180
movq -0x290(%rbp), %rax
movq -0x18(%rax), %rax
jmp 0x260d
movq -0x290(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x1, -0x270(%rbp,%rax)
sete %bl
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x26e5
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2180
leaq -0x290(%rbp), %rdi
callq 0x2060
movl %ebx, %eax
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x2729
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x2180
jmp 0x2729
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r14, %rdi
je 0x2745
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2180
jmp 0x2745
jmp 0x2742
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x275e
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2180
leaq -0x290(%rbp), %rdi
callq 0x2060
movq %rbx, %rdi
callq 0x2280
// File: /workspace/github_cpp_makefile_star2_O3/j84guo[P]cake/cake.cpp
// Function: parseTask(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&)
bool parseTask(const string& t, vector<string>& tasks)
{
    if (t.find_first_not_of(' ') == string::npos)
        return true;
    if (t.at(0) != '\t')
        return false;

    tasks.push_back(t.substr(1));
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %r15
movl $0x20, %esi
xorl %edx, %edx
callq 0x2150
movb $0x1, %bl
cmpq $-0x1, %rax
je 0x29f4
cmpq $0x0, 0x8(%r15)
je 0x2a03
movq (%r15), %rax
cmpb $0x9, (%rax)
jne 0x29f2
leaq -0x40(%rbp), %r12
movl $0x1, %edx
movq %r12, %rdi
movq %r15, %rsi
movq $-0x1, %rcx
callq 0x21a0
movq %r14, %rdi
movq %r12, %rsi
callq 0x3532
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x29f4
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2180
jmp 0x29f4
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x26ef(%rip), %rdi      # 0x50f9
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x2210
movq %rax, %rbx
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a31
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2180
movq %rbx, %rdi
callq 0x2280
// File: /workspace/github_cpp_makefile_star2_O3/j84guo[P]cake/cake.cpp
// Function: topologicalSort(std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, Target, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, Target>>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::unordered_set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&)
void topologicalSort
(
    TargetMap& nodes,
    const string& id,
    StringSet& visited,
    vector<string>& order
)
{
    if (visited.find(id) != visited.end())
        return;

    visited.emplace(id);
    for (const string& adj : nodes.at(id).adjacent)
        topologicalSort(nodes, adj, visited, order);
    order.push_back(id);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %r12
movq %rdx, %rdi
callq 0x3e90
testq %rax, %rax
je 0x2c97
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
movq %r14, %rsi
callq 0x3f9c
movq %r12, %rdi
movq %r14, -0x30(%rbp)
movq %r14, %rsi
callq 0x3e4c
testq %rax, %rax
je 0x2cf4
movq 0x48(%rax), %r13
movq 0x50(%rax), %r14
cmpq %r14, %r13
je 0x2cda
movq %r12, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x2c61
addq $0x20, %r13
jmp 0x2cbe
movq %rbx, %rdi
movq -0x30(%rbp), %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x316a
leaq 0x2442(%rip), %rdi      # 0x513d
callq 0x21f0
// File: /workspace/github_cpp_makefile_star2_O3/j84guo[P]cake/cake.cpp
// Function: doTask(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool doTask(string task)
{
    cout << "@" << task << endl;
    char * const argv[] = {
        (char *) "/bin/bash",
        (char *) "-c",
        (char *) task.c_str(),
        NULL
    };

    int status;
    pid_t child = fork();

    if (child == -1) {
        perror("fork");
        return false;
    } else if (!child) {
        execvp("bash", argv);
        perror("execvp");
        exit(1);
    }

    if (wait(&status) == -1) {
        perror("wait");
        return false;
    }
    return WIFEXITED(status) && WEXITSTATUS(status) == 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq 0x5234(%rip), %r14      # 0x7fd0
leaq 0x22b6(%rip), %rsi      # 0x5059
movl $0x1, %edx
movq %r14, %rdi
callq 0x21b0
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r14, %rdi
callq 0x21b0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2160
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20e0
leaq 0x226b(%rip), %rax      # 0x505b
movq %rax, -0x40(%rbp)
leaq 0x226a(%rip), %rax      # 0x5065
movq %rax, -0x38(%rbp)
movq (%rbx), %rax
movq %rax, -0x30(%rbp)
movq $0x0, -0x28(%rbp)
callq 0x2070
cmpl $-0x1, %eax
je 0x2e3f
testl %eax, %eax
je 0x2e58
leaq -0x14(%rbp), %rdi
callq 0x21d0
cmpl $-0x1, %eax
je 0x2e48
movzwl -0x14(%rbp), %eax
testl $0xff7f, %eax           # imm = 0xFF7F
sete %al
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x2222(%rip), %rdi      # 0x5068
jmp 0x2e4f
leaq 0x2225(%rip), %rdi      # 0x5074
callq 0x2130
xorl %eax, %eax
jmp 0x2e36
leaq -0x40(%rbp), %rdi
callq 0x22c0
// File: /workspace/github_cpp_makefile_star2_O3/j84guo[P]cake/cake.cpp
// Function: processTarget(Target&)
bool processTarget(Target& tgt)
{
    for (const string& task : tgt.tasks) {
        if (!doTask(task)) {
            taskError(task);
            return false;
        }
    }
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq 0x38(%rdi), %r14
movq 0x40(%rdi), %rbx
movb $0x1, %al
cmpq %rbx, %r14
je 0x2edb
leaq -0x38(%rbp), %r13
leaq -0x48(%rbp), %r15
movq %r13, -0x48(%rbp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x33f6
movq %r15, %rdi
callq 0x2d87
movl %eax, %r12d
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x2ebf
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2180
testb %r12b, %r12b
je 0x2ed1
addq $0x20, %r14
cmpq %rbx, %r14
jne 0x2e89
movb $0x1, %al
jmp 0x2edb
movq %r14, %rdi
callq 0x2836
xorl %eax, %eax
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 0x2f02
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2180
movq %rbx, %rdi
callq 0x2280