// File: /workspace/github_cpp_makefile_star2_O1/kaityo256[P]cps/cps.cpp
// Function: loadfile(int, char**)
int loadfile(int argc, char **argv) {
  int rank, procs;
  MPI_Comm_rank(MPI_COMM_WORLD, &rank);
  MPI_Comm_size(MPI_COMM_WORLD, &procs);
  if (rank != 0) {
    return 1;
  }
  if (argc < 2) {
    std::cout << "Usage: cps commandlist" << std::endl;
    return 0;
  }
  std::string filename = argv[1];
  std::ifstream ifs(filename);
  if (ifs.fail()) {
    std::cerr << "Could not open " << filename << std::endl;
    return 0;
  }
  std::string line;
  while (getline(ifs, line)) {
    if (line.length() > 0 && line[0] == '#') {
      continue;
    }
    command_list.push_back(line);
  }
  return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x250, %rsp            # imm = 0x250
movq %rsi, %r14
movl %edi, %r15d
movq 0x31e0(%rip), %rbx      # 0x5fa0
leaq -0x28(%rbp), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x2200
leaq -0x24(%rbp), %rsi
movq %rbx, %rdi
callq 0x21d0
movl $0x1, %ebx
cmpl $0x0, (%r12)
jne 0x2f7e
cmpl $0x1, %r15d
jg 0x2e3a
movq 0x31c8(%rip), %rbx      # 0x5fc0
leaq 0x12b7(%rip), %rsi      # 0x40b6
movl $0x16, %edx
movq %rbx, %rdi
callq 0x21c0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2190
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20f0
xorl %ebx, %ebx
jmp 0x2f7e
movq 0x8(%r14), %rsi
leaq -0x68(%rbp), %r14
leaq -0x270(%rbp), %rdx
movq %r14, %rdi
callq 0x20b0
leaq -0x270(%rbp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
movl $0x8, %edx
callq 0x2260
movq -0x270(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x5, -0x250(%rbp,%rax)
je 0x2eda
movq 0x316c(%rip), %rdi      # 0x5ff0
leaq 0x1242(%rip), %rsi      # 0x40cd
movl $0xf, %edx
callq 0x21c0
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq 0x314c(%rip), %rdi      # 0x5ff0
callq 0x21c0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2190
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
xorl %ebx, %ebx
movq %rax, %rdi
callq 0x20f0
jmp 0x2f60
leaq -0x38(%rbp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
leaq -0x48(%rbp), %r14
leaq 0x329c(%rip), %r15      # 0x6198
movq -0x270(%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2190
movsbl %al, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x22c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2f4d
cmpq $0x0, -0x40(%rbp)
je 0x2f40
movq -0x48(%rbp), %rax
cmpb $0x23, (%rax)
je 0x2efc
movq %r15, %rdi
movq %r14, %rsi
callq 0x31d2
jmp 0x2efc
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x2f5b
callq 0x2180
movl $0x1, %ebx
leaq -0x270(%rbp), %rdi
callq 0x2060
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2f7e
callq 0x2180
movl %ebx, %eax
addq $0x250, %rsp            # imm = 0x250
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x2fb7
movq %rax, %rbx
jmp 0x2fab
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x2fab
callq 0x2180
leaq -0x270(%rbp), %rdi
callq 0x2060
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2fc9
callq 0x2180
movq %rbx, %rdi
callq 0x22a0