// File: /workspace/github_cpp_makefile_star2_O3/mateuz[P]MTS-LS1/source/Benchmarks.cpp
// Function: Benchmarks::readW(int)
double* Benchmarks::readW(int num)
{
  w = new double[num];

  stringstream ss;
  ss<< "cdatafiles/" << "F" << ID << "-w.txt";
  ifstream file (ss.str());
  int c=0;
  string value;
  if (file.is_open())
    {
      while (getline(file,value))
        {
          // cout<<stod(value)<<endl;
          w[c++] = stod(value);
        }
    }

  return w;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3c8, %rsp            # imm = 0x3C8
movq %rdi, %rbx
movl %esi, %eax
shlq $0x3, %rax
testl %esi, %esi
movq $-0x1, %rdi
cmovnsq %rax, %rdi
callq 0x3030
movq %rbx, -0x30(%rbp)
movq %rax, 0xf8(%rbx)
leaq -0x1e0(%rbp), %rdi
callq 0x3160
leaq -0x1d0(%rbp), %r14
leaq 0x5dbe(%rip), %rsi      # 0xb0d0
movl $0xb, %edx
movq %r14, %rdi
callq 0x3230
leaq 0x5db6(%rip), %rsi      # 0xb0dc
movl $0x1, %edx
movq %r14, %rdi
callq 0x3230
movq -0x30(%rbp), %rax
movl 0x8(%rax), %esi
movq %r14, %rdi
callq 0x3140
leaq 0x5dc6(%rip), %rsi      # 0xb10f
movl $0x6, %edx
movq %rax, %rdi
callq 0x3230
leaq -0x1c8(%rbp), %rsi
leaq -0x50(%rbp), %rdi
callq 0x32b0
leaq -0x3e8(%rbp), %r14
leaq -0x50(%rbp), %rsi
movq %r14, %rdi
movl $0x8, %edx
callq 0x32c0
leaq -0x40(%rbp), %rbx
movq -0x10(%rbx), %rdi
cmpq %rbx, %rdi
je 0x5390
callq 0x31f0
movq %rbx, -0x50(%rbp)
movq $0x0, -0x48(%rbp)
movb $0x0, -0x40(%rbp)
leaq -0x370(%rbp), %rdi
callq 0x3090
testb %al, %al
je 0x5446
xorl %r15d, %r15d
movq -0x3e8(%rbp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %edx
movq %r14, %rdi
leaq -0x50(%rbp), %rsi
callq 0x3340
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
movq -0x50(%rbp), %r12
jne 0x5453
callq 0x3050
movq %rax, %r13
movl (%rax), %ebx
movl $0x0, (%rax)
movq %r12, %rdi
leaq -0x58(%rbp), %rsi
callq 0x3190
cmpq %r12, -0x58(%rbp)
je 0x54af
movl (%r13), %eax
testl %eax, %eax
je 0x5428
cmpl $0x22, %eax
jne 0x542c
jmp 0x54bb
movl %ebx, (%r13)
movq -0x30(%rbp), %rax
movq 0xf8(%rax), %rax
movsd %xmm0, (%rax,%r15)
addq $0x8, %r15
jmp 0x53b7
movq -0x30(%rbp), %rax
movq 0xf8(%rax), %rbx
jmp 0x546f
movq -0x30(%rbp), %rax
movq 0xf8(%rax), %rbx
leaq -0x40(%rbp), %rax
cmpq %rax, %r12
je 0x546f
movq %r12, %rdi
callq 0x31f0
leaq -0x3e8(%rbp), %rdi
callq 0x30a0
movq 0x9b36(%rip), %rsi      # 0xefb8
leaq -0x1e0(%rbp), %rdi
callq 0x3180
leaq -0x160(%rbp), %rdi
callq 0x30c0
movq %rbx, %rax
addq $0x3c8, %rsp            # imm = 0x3C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5c85(%rip), %rdi      # 0xb13b
callq 0x3130
leaq 0x5c79(%rip), %rdi      # 0xb13b
callq 0x3280
movq %rax, %r14
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5516
callq 0x31f0
jmp 0x5516
jmp 0x54e0
movq %rax, %r14
jmp 0x5516
movq %rax, %r14
cmpl $0x0, (%r13)
jne 0x54f8
movl %ebx, (%r13)
jmp 0x54f8
movq %rax, %r14
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x550a
callq 0x31f0
leaq -0x3e8(%rbp), %rdi
callq 0x30a0
movq 0x9a9b(%rip), %rsi      # 0xefb8
leaq -0x1e0(%rbp), %rdi
callq 0x3180
leaq -0x160(%rbp), %rdi
callq 0x30c0
movq %r14, %rdi
callq 0x3320
nop