// File: /workspace/github_cpp_makefile_star2_O3/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 0x31e8(%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 0x2f82
cmpl $0x1, %r15d
jg 0x2e32
movq 0x31d0(%rip), %rbx      # 0x5fc0
leaq 0x12bf(%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 0x2f82
movq 0x8(%r14), %rsi
leaq -0x68(%rbp), %rbx
leaq -0x270(%rbp), %rdx
movq %rbx, %rdi
callq 0x20b0
leaq -0x270(%rbp), %rdi
movq %rbx, %rsi
movl $0x8, %edx
callq 0x2260
movq -0x270(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x5, -0x250(%rbp,%rax)
je 0x2ecf
movq 0x3177(%rip), %rdi      # 0x5ff0
leaq 0x124d(%rip), %rsi      # 0x40cd
movl $0xf, %edx
callq 0x21c0
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq 0x3157(%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 0x2f64
leaq -0x38(%rbp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
leaq -0x270(%rbp), %rbx
leaq -0x48(%rbp), %r14
leaq 0x32a0(%rip), %r15      # 0x6198
leaq (%rax,%rbp), %rdi
addq $-0x270, %rdi           # imm = 0xFD90
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 0x2f51
cmpq $0x0, -0x40(%rbp)
je 0x2f39
movq -0x48(%rbp), %rax
cmpb $0x23, (%rax)
je 0x2f44
movq %r15, %rdi
movq %r14, %rsi
callq 0x31e0
movq -0x270(%rbp), %rax
movq -0x18(%rax), %rax
jmp 0x2ef8
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x2f5f
callq 0x2180
movl $0x1, %ebx
leaq -0x270(%rbp), %rdi
callq 0x2060
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2f82
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 0x2fbb
movq %rax, %rbx
jmp 0x2faf
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x2faf
callq 0x2180
leaq -0x270(%rbp), %rdi
callq 0x2060
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2fcd
callq 0x2180
movq %rbx, %rdi
callq 0x22a0