// File: /workspace/github_cpp_makefile_star2_O1/mateuz[P]MTS-LS1/source/Benchmarks.cpp
// Function: Benchmarks::readOvector()
double* Benchmarks::readOvector()
{
  // read O vector from file in csv format
  double* d = new double[dimension];
  stringstream ss;
  ss<< "cdatafiles/" << "F" << ID << "-xopt.txt";
  ifstream file (ss.str());
  string value;
  string line;
  int c=0;
  
  if (file.is_open())
    {
      stringstream iss;
      while ( getline(file, line) )
        {
          iss<<line;
          while (getline(iss, value, ','))
            {
              d[c++] = stod(value);
            }
          iss.clear();
          // if (c==dimension)
          //   {
          //     break;
          //   }
          // printf("%d\n",c);
        }
      file.close();
    }
  else
    {
      cout<<"Cannot open datafiles"<<endl;
    }
  return d;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x568, %rsp            # imm = 0x568
movq %rdi, %r14
movslq 0xb8(%rdi), %rax
leaq (,%rax,8), %rcx
testq %rax, %rax
movq $-0x1, %rdi
cmovnsq %rcx, %rdi
callq 0x3030
movq %rax, -0x30(%rbp)
leaq -0x388(%rbp), %rdi
callq 0x3160
leaq -0x378(%rbp), %r15
leaq 0x74b9(%rip), %rsi      # 0xb0d0
movl $0xb, %edx
movq %r15, %rdi
callq 0x3230
leaq 0x74b1(%rip), %rsi      # 0xb0dc
movl $0x1, %edx
movq %r15, %rdi
callq 0x3230
movl 0x8(%r14), %esi
movq %r15, %rdi
callq 0x3140
leaq 0x7493(%rip), %rsi      # 0xb0de
movl $0x9, %edx
movq %rax, %rdi
callq 0x3230
leaq -0x370(%rbp), %rsi
leaq -0x200(%rbp), %rdi
callq 0x32b0
leaq -0x590(%rbp), %rdi
leaq -0x200(%rbp), %rsi
movl $0x8, %edx
callq 0x32c0
leaq -0x1f0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3c98
callq 0x31f0
leaq -0x68(%rbp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x40(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x518(%rbp), %rdi
callq 0x3090
testb %al, %al
je 0x3dc9
leaq -0x200(%rbp), %rdi
callq 0x3160
xorl %r15d, %r15d
leaq -0x78(%rbp), %r12
movq -0x590(%rbp), %rax
movq -0x18(%rax), %rdi
leaq -0x590(%rbp), %rax
addq %rax, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %edx
leaq -0x590(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x3340
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x3e11
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
leaq -0x1f0(%rbp), %rdi
callq 0x3230
movslq %r15d, %r15
leaq -0x200(%rbp), %rdi
movq %r12, %rsi
movl $0x2c, %edx
callq 0x3340
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x3da8
movq -0x78(%rbp), %rbx
callq 0x3050
movq %rax, %r14
movl (%rax), %r13d
movl $0x0, (%rax)
movq %rbx, %rdi
leaq -0x58(%rbp), %rsi
callq 0x3190
cmpq %rbx, -0x58(%rbp)
je 0x3ea1
movl (%r14), %eax
testl %eax, %eax
je 0x3d96
cmpl $0x22, %eax
jne 0x3d99
jmp 0x3ead
movl %r13d, (%r14)
movq -0x30(%rbp), %rax
movsd %xmm0, (%rax,%r15,8)
incq %r15
jmp 0x3d38
movq -0x200(%rbp), %rax
movq -0x18(%rax), %rdi
leaq -0x200(%rbp), %rax
addq %rax, %rdi
xorl %esi, %esi
callq 0x32f0
jmp 0x3cdd
movq 0xb200(%rip), %r14      # 0xefd0
leaq 0x7311(%rip), %rsi      # 0xb0e8
movl $0x15, %edx
movq %r14, %rdi
callq 0x3230
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %esi
movq 0xb1ce(%rip), %rdi      # 0xefd0
callq 0x3040
movq %rax, %rdi
callq 0x3150
jmp 0x3e3c
leaq -0x590(%rbp), %rdi
callq 0x3070
movq 0xb194(%rip), %rsi      # 0xefb8
leaq -0x200(%rbp), %rdi
callq 0x3180
leaq -0x180(%rbp), %rdi
callq 0x30c0
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x3e4e
callq 0x31f0
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x3e60
callq 0x31f0
leaq -0x590(%rbp), %rdi
callq 0x30a0
movq 0xb145(%rip), %rsi      # 0xefb8
leaq -0x388(%rbp), %rdi
callq 0x3180
leaq -0x308(%rbp), %rdi
callq 0x30c0
movq -0x30(%rbp), %rax
addq $0x568, %rsp            # imm = 0x568
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x7293(%rip), %rdi      # 0xb13b
callq 0x3130
leaq 0x7287(%rip), %rdi      # 0xb13b
callq 0x3280
jmp 0x3ee5
jmp 0x3ed9
movq %rax, %rbx
leaq -0x1f0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3f45
callq 0x31f0
jmp 0x3f45
jmp 0x3ede
movq %rax, %rbx
jmp 0x3f15
movq %rax, %rbx
jmp 0x3f45
jmp 0x3ee5
movq %rax, %rbx
jmp 0x3ef6
movq %rax, %rbx
cmpl $0x0, (%r14)
jne 0x3ef6
movl %r13d, (%r14)
movq 0xb0bb(%rip), %rsi      # 0xefb8
leaq -0x200(%rbp), %rdi
callq 0x3180
leaq -0x180(%rbp), %rdi
callq 0x30c0
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x3f27
callq 0x31f0
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x3f39
callq 0x31f0
leaq -0x590(%rbp), %rdi
callq 0x30a0
movq 0xb06c(%rip), %rsi      # 0xefb8
leaq -0x388(%rbp), %rdi
callq 0x3180
leaq -0x308(%rbp), %rdi
callq 0x30c0
movq %rbx, %rdi
callq 0x3320