// File: /workspace/github_cpp_makefile_star2_O3/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 0x74bd(%rip), %rsi      # 0xb0d0
movl $0xb, %edx
movq %r15, %rdi
callq 0x3230
leaq 0x74b5(%rip), %rsi      # 0xb0dc
movl $0x1, %edx
movq %r15, %rdi
callq 0x3230
movl 0x8(%r14), %esi
movq %r15, %rdi
callq 0x3140
leaq 0x7497(%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 0x3c94
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 0x3dc5
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 0x3e0d
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 0x3da4
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 0x3e9d
movl (%r14), %eax
testl %eax, %eax
je 0x3d92
cmpl $0x22, %eax
jne 0x3d95
jmp 0x3ea9
movl %r13d, (%r14)
movq -0x30(%rbp), %rax
movsd %xmm0, (%rax,%r15,8)
incq %r15
jmp 0x3d34
movq -0x200(%rbp), %rax
movq -0x18(%rax), %rdi
leaq -0x200(%rbp), %rax
addq %rax, %rdi
xorl %esi, %esi
callq 0x32f0
jmp 0x3cd9
movq 0xb204(%rip), %r14      # 0xefd0
leaq 0x7315(%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 0xb1d2(%rip), %rdi      # 0xefd0
callq 0x3040
movq %rax, %rdi
callq 0x3150
jmp 0x3e38
leaq -0x590(%rbp), %rdi
callq 0x3070
movq 0xb198(%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 0x3e4a
callq 0x31f0
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x3e5c
callq 0x31f0
leaq -0x590(%rbp), %rdi
callq 0x30a0
movq 0xb149(%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 0x7297(%rip), %rdi      # 0xb13b
callq 0x3130
leaq 0x728b(%rip), %rdi      # 0xb13b
callq 0x3280
jmp 0x3ee1
jmp 0x3ed5
movq %rax, %rbx
leaq -0x1f0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3f41
callq 0x31f0
jmp 0x3f41
jmp 0x3eda
movq %rax, %rbx
jmp 0x3f11
movq %rax, %rbx
jmp 0x3f41
jmp 0x3ee1
movq %rax, %rbx
jmp 0x3ef2
movq %rax, %rbx
cmpl $0x0, (%r14)
jne 0x3ef2
movl %r13d, (%r14)
movq 0xb0bf(%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 0x3f23
callq 0x31f0
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x3f35
callq 0x31f0
leaq -0x590(%rbp), %rdi
callq 0x30a0
movq 0xb070(%rip), %rsi      # 0xefb8
leaq -0x388(%rbp), %rdi
callq 0x3180
leaq -0x308(%rbp), %rdi
callq 0x30c0
movq %rbx, %rdi
callq 0x3320