// File: /workspace/github_cpp_makefile_star2_O1/manschga[P]M5GB/poly.cpp
// Function: Create_poly_system(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int, int)
vector<polynomial> Create_poly_system(const string& input_file, int n, int p)
{
  vector<polynomial> system = {};
  vector<int> input_vec;
  string line;
  ifstream myfile (input_file);
  if (myfile.is_open())
  {
    while (getline (myfile,line))
    {
      input_vec = {};
      int i = 0;
      while (i < line.size())
	{
	  input_vec.emplace_back(line[i]-48); //from char to int
	  i = i+2;
	}
      input_vec.pop_back();
      system.emplace_back(poly_from_vec(input_vec,n,p));
      //cout << "test function:" << poly_from_vec(input_vec,n,p);
    }
    myfile.close();
  }
  else cout << "Unable to open file";
  return system;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
movl %ecx, %ebp
movq %rdi, %rbx
xorl %eax, %eax
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rax, 0x10(%rsp)
movaps %xmm0, (%rsp)
leaq 0x30(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb $0x0, (%rcx)
leaq 0x60(%rsp), %r14
movq %r14, %rdi
movl $0x8, %edx
callq 0x2200
leaq 0xd8(%rsp), %rdi
callq 0x2060
testb %al, %al
je 0x1098c
movq %rsp, %r12
leaq 0x40(%rsp), %r13
movq 0x60(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2160
movsbl %al, %edx
movq %r14, %rdi
leaq 0x20(%rsp), %rsi
callq 0x2260
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x109a6
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x11d9a
cmpq $0x0, 0x28(%rsp)
je 0x1094e
xorl %r15d, %r15d
movq 0x20(%rsp), %rax
movsbl (%rax,%r15), %eax
addl $-0x30, %eax
movl %eax, 0x40(%rsp)
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0x10938
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rsp)
jmp 0x10943
movq %r12, %rdi
movq %r13, %rdx
callq 0x46f2
addq $0x2, %r15
cmpq %r15, 0x28(%rsp)
ja 0x1090e
addq $-0x4, 0x8(%rsp)
movq %r13, %rdi
movq %r12, %rsi
movl %ebp, %ecx
callq 0x10a77
movq %rbx, %rdi
movq %r13, %rsi
callq 0xc808
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x108bf
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
jmp 0x108bf
movq 0x9645(%rip), %rdi      # 0x19fd8
leaq 0x2aad(%rip), %rsi      # 0x13447
movl $0x13, %edx
callq 0x21a0
jmp 0x109b0
leaq 0x60(%rsp), %rdi
callq 0x2050
leaq 0x60(%rsp), %rdi
callq 0x2070
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x109d6
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2180
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x109ec
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq %rbx, %rax
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x10a28
movq %rax, %r14
jmp 0x10a35
movq %rax, %r14
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x10a2b
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
jmp 0x10a2b
jmp 0x10a28
jmp 0x10a28
movq %rax, %r14
leaq 0x60(%rsp), %rdi
callq 0x2070
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x10a51
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2180
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x10a67
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq %rbx, %rdi
callq 0x3106
movq %r14, %rdi
callq 0x2240