// File: /workspace/github_c_makefile_star2_O1/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 0x2dd8(%rip), %rsi      # 0x9467
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 0x66ff
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 0x6896
leaq (%rsp,%rax), %rdi
addq $0x3a0, %rdi            # imm = 0x3A0
leaq 0x68(%rsp), %r15
leaq 0x38(%rsp), %r13
leaq 0xa8(%rsp), %rbx
xorl %r12d, %r12d
leaq 0x8(%rsp), %rbp
leaq 0x58(%rsp), %r14
movl $0xa, %esi
callq 0x3260
movsbl %al, %edx
leaq 0x3a0(%rsp), %rdi
movq %r13, %rsi
callq 0x3510
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x6896
cmpq $0x0, 0x40(%rsp)
je 0x67c5
xorl %eax, %eax
movq 0x38(%rsp), %rcx
cmpb $0x3a, (%rcx,%rax)
jne 0x67bb
movb $0x20, (%rcx,%rax)
incq %rax
cmpq %rax, 0x40(%rsp)
ja 0x67ac
movq %rbx, %rdi
movq %r13, %rsi
movl $0x8, %edx
callq 0x34b0
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq %r12, 0x10(%rsp)
movb %r12b, 0x18(%rsp)
movq %r15, 0x58(%rsp)
movq %r12, 0x60(%rsp)
movb %r12b, 0x68(%rsp)
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x3330
movq %rax, %rdi
movq %r14, %rsi
callq 0x3330
leaq 0x78(%rsp), %rdi
movq %rbp, %rsi
callq 0x6f20
movq %rax, %rdi
movq %r14, %rsi
callq 0x3180
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0x683d
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6859
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3290
movq %rbx, %rdi
movq 0x674d(%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 0x6773
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
movq %rax, (%rdi)
leaq 0x2bcd(%rip), %rsi      # 0x9477
leaq 0x2bcd(%rip), %rdx      # 0x947e
callq 0x4040
leaq 0x78(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x6f9c
leaq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rcx
movq %rcx, (%rdi)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
callq 0x3fb0
leaq 0xa8(%rsp), %rdi
callq 0x3b50
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 0x692b
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6947
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
movq %rax, (%rdi)
leaq 0x2b24(%rip), %rsi      # 0x947f
leaq 0x2b21(%rip), %rdx      # 0x9483
callq 0x4040
leaq 0x78(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x6f9c
leaq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rcx
movq %rcx, (%rdi)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
callq 0x3fb0
leaq 0xa8(%rsp), %rdi
callq 0x7018
mulsd 0x2a03(%rip), %xmm0     # 0x93b0
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 0x69e3
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x69ff
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
movq %rax, (%rdi)
leaq 0x2a6b(%rip), %rsi      # 0x9484
leaq 0x2a6a(%rip), %rdx      # 0x948a
callq 0x4040
leaq 0x78(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x6f9c
leaq 0x2ad4(%rip), %rsi      # 0x9512
movq %rax, %rdi
callq 0x30d0
movl %eax, %ebx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x6a6d
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3290
testl %ebx, %ebx
je 0x6bed
leaq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
movq %rax, (%rdi)
leaq 0x29f5(%rip), %rsi      # 0x9484
leaq 0x29f4(%rip), %rdx      # 0x948a
callq 0x4040
leaq 0x78(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x6f9c
leaq 0x29d7(%rip), %rsi      # 0x948b
movq %rax, %rdi
callq 0x30d0
movl %eax, %ebx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x6ae3
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3290
testl %ebx, %ebx
je 0x6c03
leaq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
movq %rax, (%rdi)
leaq 0x297f(%rip), %rsi      # 0x9484
leaq 0x297e(%rip), %rdx      # 0x948a
callq 0x4040
leaq 0x78(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x6f9c
leaq 0x2964(%rip), %rsi      # 0x948e
movq %rax, %rdi
callq 0x30d0
movl %eax, %ebx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x6b59
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3290
testl %ebx, %ebx
je 0x6c19
leaq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
movq %rax, (%rdi)
leaq 0x2909(%rip), %rsi      # 0x9484
leaq 0x2908(%rip), %rdx      # 0x948a
callq 0x4040
leaq 0x78(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x6f9c
leaq 0x28f9(%rip), %rsi      # 0x9499
movq %rax, %rdi
callq 0x30d0
movl %eax, %ebx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x6bcf
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3290
testl %ebx, %ebx
je 0x6cd2
movq 0x28(%rsp), %rax
movl $0x13, 0x734(%rax,%r14,4)
jmp 0x6ce3
movq 0x28(%rsp), %rax
movl $0x0, 0x734(%rax,%r14,4)
jmp 0x6ce3
movq 0x28(%rsp), %rax
movl $0xc, 0x734(%rax,%r14,4)
jmp 0x6ce3
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
movq %rax, (%rdi)
leaq 0x2864(%rip), %rsi      # 0x9491
leaq 0x2864(%rip), %rdx      # 0x9498
callq 0x4040
leaq 0x78(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x6f9c
leaq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rcx
movq %rcx, (%rdi)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
callq 0x3fb0
leaq 0xa8(%rsp), %rdi
callq 0x3b50
movl %eax, %ebx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x6c9e
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6cba
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3290
cmpl $0xb, %ebx
jne 0x6cd2
movq 0x28(%rsp), %rax
movl $0xd, 0x734(%rax,%r14,4)
jmp 0x6ce3
movq 0x28(%rsp), %rax
movl $0xf, 0x734(%rax,%r14,4)
leaq 0x78(%rsp), %rdi
callq 0x71ce
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x6d09
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x3a0(%rsp), %rdi
callq 0x30a0
movq 0x629b(%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 0x6d9f
jmp 0x6e24
jmp 0x6d6a
jmp 0x6e24
jmp 0x6dfc
jmp 0x6d6a
jmp 0x6e24
jmp 0x6d6a
jmp 0x6e24
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x6e5f
movq 0xb8(%rsp), %rsi
jmp 0x6e13
jmp 0x6e24
jmp 0x6d9f
jmp 0x6e24
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x6dff
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x6dff
jmp 0x6e24
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6e92
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x6e92
jmp 0x6e1d
jmp 0x6dfc
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6e5f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x6e5f
movq %rax, %rbx
jmp 0x6e92
jmp 0x6e24
movq %rax, %rbx
jmp 0x6e5f
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0x6e43
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x58(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0xa8(%rsp), %rcx
leaq 0x18(%rsp), %rdx
callq 0x3591
leaq 0x78(%rsp), %rdi
callq 0x71ce
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x6e85
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x3a0(%rsp), %rdi
callq 0x30a0
movq 0x611f(%rip), %rsi      # 0xcfb8
leaq 0x228(%rsp), %rdi
callq 0x3170
leaq 0x298(%rsp), %rdi
callq 0x3100
movq %rbx, %rdi
callq 0x34e0
nop