// File: /workspace/github_cpp_makefile_star2_O2/MPSLab-ASU[P]DiRAC/./src/parse.cc
// Function: parse_arguments(int, char const**)
void parse_arguments(int argc, const char** argv)
{
  // make a new ArgumentParser
  // Argument format: short_name, long_name, total_arg_vals, is_optional
  ArgumentParser parser;

  // Argument that sets the path of the test directory
  parser.addArgument("-p", "--path", 1, false);
  parser.addArgument("-c", "--cmp-golden", 1, true);

  // parse the command-line arguments - throws error if invalid format
  if(argc < 3)
  {
    std::cout << parser.usage() << std::endl;
    exit (EXIT_FAILURE);
  }

  parser.parse(argc, argv);

  // Arguments are successfully parsed through command-line.
  // Use them to set necessary variables.
  dir_test = parser.retrieve<std::string>("path");

  if(parser.count("cmp-golden") == 1)
    compare_golden = true;
  else
    compare_golden = false;

  setup_file_paths();
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rsi, %rbx
leaq 0x80(%rsp), %rax
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movups %xmm0, -0x8(%rax)
movw $0x1, 0x8(%rax)
andq $0x0, 0x10(%rax)
leaq 0xa8(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movl %edi, %ebp
xorl %ecx, %ecx
movb %cl, (%rax)
leaq 0xc8(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb %cl, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x30(%rax)
leaq 0x1833c5(%rip), %rsi    # 0x5921c7
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x40a3b4
leaq 0x1833b2(%rip), %rsi    # 0x5921ca
leaq 0x30(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0x40a3b4
leaq 0x50(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x30(%rsp), %rdx
pushq $0x1
popq %rcx
xorl %r8d, %r8d
callq 0x40f312
leaq 0x30(%rsp), %rdi
callq 0x490a30
leaq 0x10(%rsp), %rdi
callq 0x490a30
leaq 0x183375(%rip), %rsi    # 0x5921d1
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x40a3b4
leaq 0x183362(%rip), %rsi    # 0x5921d4
leaq 0x30(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0x40a3b4
leaq 0x50(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x30(%rsp), %rdx
pushq $0x1
popq %rcx
movl %ecx, %r8d
callq 0x40f312
leaq 0x30(%rsp), %rdi
callq 0x490a30
leaq 0x10(%rsp), %rdi
callq 0x490a30
cmpl $0x2, %ebp
jle 0x40ef5e
movl %ebp, %esi
leaq 0x50(%rsp), %rdi
movq %rbx, %rdx
callq 0x40f798
leaq 0x1a4f6a(%rip), %rsi    # 0x5b3e38
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x40a3b4
leaq 0x50(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x40f7f0
movq $0x608740, %rdi         # imm = 0x608740
movq %rax, %rsi
callq 0x490660
leaq 0x10(%rsp), %rdi
callq 0x490a30
leaq 0x1832ca(%rip), %rsi    # 0x5921d6
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x40a3b4
leaq 0x50(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x40f8b8
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x490a30
cmpq $0x1, %rbx
movq $0x608980, %rax         # imm = 0x608980
sete (%rax)
callq 0x40efdf
leaq 0x50(%rsp), %rdi
callq 0x40f9de
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %rbp
retq
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x40f3ca
movq $0x609900, %rdi         # imm = 0x609900
leaq 0x10(%rsp), %rsi
callq 0x493460
movq %rax, %rdi
callq 0x480030
leaq 0x10(%rsp), %rdi
callq 0x490a30
pushq $0x1
popq %rdi
callq 0x4da4e0
jmp 0x40efc0
jmp 0x40efbb
jmp 0x40efc0
jmp 0x40efbb
jmp 0x40efbb
jmp 0x40efa8
jmp 0x40efc0
jmp 0x40efbb
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x490a30
jmp 0x40efc3
jmp 0x40efc0
jmp 0x40efbb
movq %rax, %rbx
jmp 0x40efcd
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x490a30
leaq 0x50(%rsp), %rdi
callq 0x40f9de
movq %rbx, %rdi
callq 0x4bea70