// File: /workspace/github_c_makefile_star2_O3/silverneko[P]miku/./src/testsuite.cpp
// Function: setExitStatus(submission&, int)
void setExitStatus(submission &sub, int td)
{
   ostringstream sout;
   sout << "./testzone/META" << td;
   ifstream fin(sout.str());
   string line;
   map<string,string> META;
   while(!fin.eof() && getline(fin, line)){
      for(int i = 0; i < line.size(); ++i)
         if(line[i] == ':')
            line[i] = ' ';
      istringstream in(line);
      string a, b;
      in >> a >> b;
      META[a] = b;
   }

   //mem_used
   sub.mem[td] = cast(META["max-rss"]).to<int>();
   //time_used
   sub.time[td] = 1000 * cast(META["time"]).to<double>();
   //verdict
   if(META["status"] == ""){
      sub.verdict[td] = OK;
   }else if(META["status"] == "TO"){
      sub.verdict[td] = TLE;
   }else if(META["status"] == "SG"){
      switch(cast(META["exitsig"]).to<int>()){
         case 11:
            sub.verdict[td] = MLE;
            break;
         default :
            sub.verdict[td] = RE;
      }
   }else if(META["status"] == "RE"){
      sub.verdict[td] = RE;
   }else{
      // "XX"
      sub.verdict[td] = ER;
   }
   return ;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x5a8, %rsp            # imm = 0x5A8
movl %esi, %ebp
movq %rdi, 0x28(%rsp)
leaq 0x228(%rsp), %rbx
movq %rbx, %rdi
callq 0x3350
leaq 0x2ef4(%rip), %rsi      # 0x9477
movl $0xf, %edx
movq %rbx, %rdi
callq 0x32f0
leaq 0x228(%rsp), %rdi
movl %ebp, %esi
callq 0x34d0
movl %ebp, 0x34(%rsp)
leaq 0x230(%rsp), %rsi
leaq 0xa8(%rsp), %rdi
callq 0x3430
leaq 0x3a0(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
movl $0x8, %edx
callq 0x3450
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x65f3
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x48(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb $0x0, (%rcx)
leaq 0x80(%rsp), %rcx
movl $0x0, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
movq 0x3a0(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x3c0(%rsp,%rax)
jne 0x678f
leaq (%rsp,%rax), %rdi
addq $0x3a0, %rdi            # imm = 0x3A0
leaq 0x68(%rsp), %r14
leaq 0x38(%rsp), %r12
leaq 0xa8(%rsp), %r13
xorl %r15d, %r15d
leaq 0x8(%rsp), %rbx
leaq 0x58(%rsp), %rbp
movl $0xa, %esi
callq 0x3260
movsbl %al, %edx
leaq 0x3a0(%rsp), %rdi
movq %r12, %rsi
callq 0x3510
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x678f
movq 0x40(%rsp), %rax
testq %rax, %rax
je 0x66be
xorl %ecx, %ecx
movq 0x38(%rsp), %rdx
cmpb $0x3a, (%rdx,%rcx)
jne 0x66b6
movb $0x20, (%rdx,%rcx)
movq 0x40(%rsp), %rax
incq %rcx
cmpq %rcx, %rax
ja 0x66a2
movq %r13, %rdi
movq %r12, %rsi
movl $0x8, %edx
callq 0x34b0
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq %r15, 0x10(%rsp)
movb %r15b, 0x18(%rsp)
movq %r14, 0x58(%rsp)
movq %r15, 0x60(%rsp)
movb %r15b, 0x68(%rsp)
movq %r13, %rdi
movq %rbx, %rsi
callq 0x3330
movq %rax, %rdi
movq %rbp, %rsi
callq 0x3330
leaq 0x78(%rsp), %rdi
movq %rbx, %rsi
callq 0x6e3e
movq %rax, %rdi
movq %rbp, %rsi
callq 0x3180
movq 0x58(%rsp), %rdi
cmpq %r14, %rdi
je 0x6736
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6752
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3290
movq %r13, %rdi
movq 0x6854(%rip), %rsi      # 0xcfb0
callq 0x33a0
leaq 0x120(%rsp), %rdi
callq 0x3100
movq 0x3a0(%rsp), %rax
movq -0x18(%rax), %rax
leaq (%rsp,%rax), %rdi
addq $0x3a0, %rdi            # imm = 0x3A0
testb $0x2, 0x20(%rdi)
je 0x6667
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
movq %rax, (%rdi)
leaq 0x2ce4(%rip), %rsi      # 0x9487
leaq 0x2ce4(%rip), %rdx      # 0x948e
callq 0x3f86
leaq 0x78(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x6eba
leaq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rcx
movq %rcx, (%rdi)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
callq 0x3ef0
leaq 0xa8(%rsp), %rdi
callq 0x3b10
movslq 0x34(%rsp), %r14
movq 0x28(%rsp), %rcx
movl %eax, 0xa54(%rcx,%r14,4)
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x6824
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6840
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
movq %rax, (%rdi)
leaq 0x2c3b(%rip), %rsi      # 0x948f
leaq 0x2c38(%rip), %rdx      # 0x9493
callq 0x3f86
leaq 0x78(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x6eba
leaq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rcx
movq %rcx, (%rdi)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
callq 0x3ef0
leaq 0xa8(%rsp), %rdi
callq 0x6f36
mulsd 0x2b1a(%rip), %xmm0     # 0x93c0
cvttsd2si %xmm0, %eax
movq 0x28(%rsp), %rcx
movl %eax, 0xd74(%rcx,%r14,4)
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x68dc
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x68f8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
movq %rax, (%rdi)
leaq 0x2b82(%rip), %rsi      # 0x9494
leaq 0x2b81(%rip), %rdx      # 0x949a
callq 0x3f86
leaq 0x78(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x6eba
leaq 0x2beb(%rip), %rsi      # 0x9522
movq %rax, %rdi
callq 0x30d0
movl %eax, %ebx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x6966
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3290
testl %ebx, %ebx
je 0x6ae6
leaq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
movq %rax, (%rdi)
leaq 0x2b0c(%rip), %rsi      # 0x9494
leaq 0x2b0b(%rip), %rdx      # 0x949a
callq 0x3f86
leaq 0x78(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x6eba
leaq 0x2aee(%rip), %rsi      # 0x949b
movq %rax, %rdi
callq 0x30d0
movl %eax, %ebx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x69dc
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3290
testl %ebx, %ebx
je 0x6afc
leaq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
movq %rax, (%rdi)
leaq 0x2a96(%rip), %rsi      # 0x9494
leaq 0x2a95(%rip), %rdx      # 0x949a
callq 0x3f86
leaq 0x78(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x6eba
leaq 0x2a7b(%rip), %rsi      # 0x949e
movq %rax, %rdi
callq 0x30d0
movl %eax, %ebx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x6a52
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3290
testl %ebx, %ebx
je 0x6b12
leaq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
movq %rax, (%rdi)
leaq 0x2a20(%rip), %rsi      # 0x9494
leaq 0x2a1f(%rip), %rdx      # 0x949a
callq 0x3f86
leaq 0x78(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x6eba
leaq 0x2a10(%rip), %rsi      # 0x94a9
movq %rax, %rdi
callq 0x30d0
movl %eax, %ebx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x6ac8
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3290
testl %ebx, %ebx
je 0x6bcb
movq 0x28(%rsp), %rax
movl $0x13, 0x734(%rax,%r14,4)
jmp 0x6bdc
movq 0x28(%rsp), %rax
movl $0x0, 0x734(%rax,%r14,4)
jmp 0x6bdc
movq 0x28(%rsp), %rax
movl $0xc, 0x734(%rax,%r14,4)
jmp 0x6bdc
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
movq %rax, (%rdi)
leaq 0x297b(%rip), %rsi      # 0x94a1
leaq 0x297b(%rip), %rdx      # 0x94a8
callq 0x3f86
leaq 0x78(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x6eba
leaq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rcx
movq %rcx, (%rdi)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
callq 0x3ef0
leaq 0xa8(%rsp), %rdi
callq 0x3b10
movl %eax, %ebx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x6b97
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6bb3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3290
cmpl $0xb, %ebx
jne 0x6bcb
movq 0x28(%rsp), %rax
movl $0xd, 0x734(%rax,%r14,4)
jmp 0x6bdc
movq 0x28(%rsp), %rax
movl $0xf, 0x734(%rax,%r14,4)
leaq 0x78(%rsp), %rdi
callq 0x70ec
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x6c02
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x3a0(%rsp), %rdi
callq 0x30a0
movq 0x63a2(%rip), %rsi      # 0xcfb8
leaq 0x228(%rsp), %rdi
callq 0x3170
leaq 0x298(%rsp), %rdi
callq 0x3100
addq $0x5a8, %rsp            # imm = 0x5A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6c98
jmp 0x6d20
jmp 0x6c63
jmp 0x6d20
jmp 0x6cf5
jmp 0x6c63
jmp 0x6d20
jmp 0x6c63
jmp 0x6d20
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x6d7c
movq 0xb8(%rsp), %rsi
jmp 0x6d0c
jmp 0x6d20
jmp 0x6c98
jmp 0x6d20
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x6cf8
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x6cf8
jmp 0x6d20
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6daf
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x6daf
jmp 0x6d16
jmp 0x6cf5
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6d7c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x6d7c
movq %rax, %rbx
jmp 0x6daf
jmp 0x6d20
movq %rax, %rbx
jmp 0x6d7c
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r14, %rdi
je 0x6d3f
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6d5b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x624e(%rip), %rsi      # 0xcfb0
leaq 0xa8(%rsp), %rdi
callq 0x33a0
leaq 0x120(%rsp), %rdi
callq 0x3100
leaq 0x78(%rsp), %rdi
callq 0x70ec
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x6da2
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x3a0(%rsp), %rdi
callq 0x30a0
movq 0x6202(%rip), %rsi      # 0xcfb8
leaq 0x228(%rsp), %rdi
callq 0x3170
leaq 0x298(%rsp), %rdi
callq 0x3100
movq %rbx, %rdi
callq 0x34e0