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

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

// 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 $0x2, %rax
testl %esi, %esi
movq $-0x1, %rdi
cmovnsq %rax, %rdi
callq 0x3030
movq %rbx, -0x30(%rbp)
movq %rax, 0xf0(%rbx)
leaq -0x1e0(%rbp), %rdi
callq 0x3160
leaq -0x1d0(%rbp), %r14
leaq 0x6040(%rip), %rsi      # 0xb0d0
movl $0xb, %edx
movq %r14, %rdi
callq 0x3230
leaq 0x6038(%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 0x6041(%rip), %rsi      # 0xb108
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 0x510e
callq 0x31f0
movq %rbx, -0x50(%rbp)
movq $0x0, -0x48(%rbp)
movb $0x0, -0x40(%rbp)
leaq -0x370(%rbp), %rdi
callq 0x3090
testb %al, %al
je 0x51c6
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 0x51d3
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 0x522f
movl (%r13), %eax
testl %eax, %eax
je 0x51a6
cmpl $0x22, %eax
jne 0x51aa
jmp 0x523b
movl %ebx, (%r13)
cvttsd2si %xmm0, %eax
movq -0x30(%rbp), %rcx
movq 0xf0(%rcx), %rcx
movl %eax, (%rcx,%r15)
addq $0x4, %r15
jmp 0x5135
movq -0x30(%rbp), %rax
movq 0xf0(%rax), %rbx
jmp 0x51ef
movq -0x30(%rbp), %rax
movq 0xf0(%rax), %rbx
leaq -0x40(%rbp), %rax
cmpq %rax, %r12
je 0x51ef
movq %r12, %rdi
callq 0x31f0
leaq -0x3e8(%rbp), %rdi
callq 0x30a0
movq 0x9db6(%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 0x5f05(%rip), %rdi      # 0xb13b
callq 0x3130
leaq 0x5ef9(%rip), %rdi      # 0xb13b
callq 0x3280
movq %rax, %r14
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5296
callq 0x31f0
jmp 0x5296
jmp 0x5260
movq %rax, %r14
jmp 0x5296
movq %rax, %r14
cmpl $0x0, (%r13)
jne 0x5278
movl %ebx, (%r13)
jmp 0x5278
movq %rax, %r14
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x528a
callq 0x31f0
leaq -0x3e8(%rbp), %rdi
callq 0x30a0
movq 0x9d1b(%rip), %rsi      # 0xefb8
leaq -0x1e0(%rbp), %rdi
callq 0x3180
leaq -0x160(%rbp), %rdi
callq 0x30c0
movq %r14, %rdi
callq 0x3320
nop