// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/filereader_and_conversions.cpp
// Function: readarray(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
std::vector<std::string> readarray(std::string filename,const std::string delims=",;: \t"){
  ///@param filename The name of the file to open.
  ///@param delims A string of delimeters to split by.
  std::vector<std::string> tokens;

  const int SIZE = MAX_ELEMS_PER_LINE;
  char *buffer = new char[SIZE];
  std::ifstream pFile (filename.c_str(),std::ios::in);
  
  if(!pFile){
    fileError(filename);
    exit(0);
  }
  
  std::string tmp_string;
  //we are reading an array, so just keep reading until no more lines
  while(!pFile.eof()){
    pFile.getline(buffer,SIZE);
    tmp_string = std::string(buffer);
    get_lexemes(tmp_string,tokens,delims);
    
  }
  pFile.close();
  delete [] buffer;
  ///now we have a token array of string coerce the types now
  //typecast_stringarray(tokens);
  return tokens;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2b8, %rsp            # imm = 0x2B8
movq %rdx, %r15
movq %rsi, %r12
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rdi, 0x8(%rsp)
movq $0x0, 0x10(%rdi)
movl $0x4c4b40, %edi         # imm = 0x4C4B40
callq 0x2030
movq %rax, %r14
movq (%r12), %rsi
leaq 0xb0(%rsp), %rdi
movl $0x8, %edx
callq 0x2440
movq 0xb0(%rsp), %rax
movq -0x18(%rax), %rcx
testb $0x5, 0xd0(%rsp,%rcx)
jne 0x6f27
leaq 0x20(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
movq -0x18(%rax), %rax
testb $0x2, 0xd0(%rsp,%rax)
jne 0x6ed2
leaq (%rsp,%rax), %rdi
addq $0xb0, %rdi
leaq 0x80(%rsp), %rbx
leaq 0x70(%rsp), %r13
leaq 0x50(%rsp), %r12
leaq 0x30(%rsp), %rbp
movl $0xa, %esi
callq 0x2200
movsbl %al, %ecx
movl $0x4c4b40, %edx         # imm = 0x4C4B40
leaq 0xb0(%rsp), %rdi
movq %r14, %rsi
callq 0x2460
movq %rbx, 0x70(%rsp)
movq %r14, %rdi
callq 0x20d0
leaq (%rax,%r14), %rdx
movq %r13, %rdi
movq %r14, %rsi
callq 0x61b8
leaq 0x10(%rsp), %rdi
movq %r13, %rsi
callq 0x22a0
movq 0x70(%rsp), %rdi
cmpq %rbx, %rdi
je 0x6e2e
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0x60(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x5fae
leaq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
movq %rbp, %rdi
callq 0x5fae
movq %r12, %rdi
movq 0x8(%rsp), %rsi
movq %rbp, %rdx
callq 0x698a
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x6e95
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x6eb1
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0xb0(%rsp), %rax
movq -0x18(%rax), %rax
leaq (%rsp,%rax), %rdi
addq $0xb0, %rdi
testb $0x2, 0x20(%rdi)
je 0x6dc9
leaq 0xb0(%rsp), %rdi
callq 0x2050
movq %r14, %rdi
callq 0x22e0
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6f03
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0xb0(%rsp), %rdi
callq 0x2070
movq 0x8(%rsp), %rax
addq $0x2b8, %rsp            # imm = 0x2B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa0(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
leaq 0x90(%rsp), %rdi
callq 0x5fae
leaq 0x90(%rsp), %rbx
movq %rbx, %rdi
callq 0x6250
movq %rbx, %rdi
callq 0x20e0
xorl %edi, %edi
callq 0x2290
movq %rax, %r14
jmp 0x6fdc
jmp 0x6fbd
jmp 0x6f74
movq %rax, %r14
jmp 0x6fe9
jmp 0x6fbd
movq %rax, %r14
jmp 0x6f9f
movq %rax, %r14
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x6f9f
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x6fc0
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2230
jmp 0x6fc0
movq %rax, %r14
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6fdc
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0xb0(%rsp), %rdi
callq 0x2070
movq 0x8(%rsp), %rdi
callq 0x900c
movq %r14, %rdi
callq 0x2400