// File: /workspace/github_cpp_makefile_star2_O3/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 0x10f58
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 0x10f72
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x123e2
movq 0x28(%rsp), %rax
testq %rax, %rax
je 0x10f1a
xorl %r15d, %r15d
movq 0x20(%rsp), %rcx
movsbl (%rcx,%r15), %ecx
addl $-0x30, %ecx
movl %ecx, 0x40(%rsp)
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0x10f01
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rsp)
jmp 0x10f11
movq %r12, %rdi
movq %r13, %rdx
callq 0x4924
movq 0x28(%rsp), %rax
addq $0x2, %r15
cmpq %r15, %rax
ja 0x10ed7
addq $-0x4, 0x8(%rsp)
movq %r13, %rdi
movq %r12, %rsi
movl %ebp, %ecx
callq 0x11043
movq %rbx, %rdi
movq %r13, %rsi
callq 0xcc94
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x10e86
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
jmp 0x10e86
movq 0x9079(%rip), %rdi      # 0x19fd8
leaq 0x253e(%rip), %rsi      # 0x134a4
movl $0x13, %edx
callq 0x21a0
jmp 0x10f7c
leaq 0x60(%rsp), %rdi
callq 0x2050
leaq 0x60(%rsp), %rdi
callq 0x2070
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x10fa2
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2180
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x10fb8
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 0x10ff4
movq %rax, %r14
jmp 0x11001
movq %rax, %r14
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x10ff7
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
jmp 0x10ff7
jmp 0x10ff4
jmp 0x10ff4
movq %rax, %r14
leaq 0x60(%rsp), %rdi
callq 0x2070
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x1101d
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2180
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x11033
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq %rbx, %rdi
callq 0x312c
movq %r14, %rdi
callq 0x2240