// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x850, %rsp            # imm = 0x850
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
leaq -0x188(%rbp), %rdi
movq %rdi, -0x760(%rbp)
callq 0x4480
movq -0x760(%rbp), %rdi
leaq 0x719c(%rip), %rsi      # 0xf4bf
callq 0x4320
movq %rax, -0x758(%rbp)
jmp 0x8331
movq -0x758(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x45e0
jmp 0x8342
leaq -0x3c0(%rbp), %rdi
leaq -0x188(%rbp), %rsi
callq 0x4350
jmp 0x8357
leaq -0x3a0(%rbp), %rdi
leaq -0x3c0(%rbp), %rsi
movl $0x8, %edx
callq 0x4550
jmp 0x8371
leaq -0x3c0(%rbp), %rdi
callq 0x4240
leaq -0x3e0(%rbp), %rdi
callq 0x44a0
leaq -0x410(%rbp), %rdi
callq 0x8ee0
movq -0x3a0(%rbp), %rax
movq -0x18(%rax), %rax
leaq -0x3a0(%rbp,%rax), %rdi
callq 0x4640
movb %al, -0x761(%rbp)
jmp 0x83b5
movb -0x761(%rbp), %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, -0x762(%rbp)
jne 0x8412
jmp 0x83ca
leaq -0x3a0(%rbp), %rdi
leaq -0x3e0(%rbp), %rsi
callq 0x4090
movq %rax, -0x770(%rbp)
jmp 0x83e6
movq -0x770(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x4440
movb %al, -0x771(%rbp)
jmp 0x8404
movb -0x771(%rbp), %al
movb %al, -0x762(%rbp)
jmp 0x8412
movb -0x762(%rbp), %al
testb $0x1, %al
jne 0x8421
jmp 0x8611
movl $0x0, -0x414(%rbp)
movslq -0x414(%rbp), %rax
movq %rax, -0x780(%rbp)
leaq -0x3e0(%rbp), %rdi
callq 0x4270
movq %rax, %rcx
movq -0x780(%rbp), %rax
cmpq %rcx, %rax
jae 0x8512
movslq -0x414(%rbp), %rsi
leaq -0x3e0(%rbp), %rdi
callq 0x46a0
movq %rax, -0x788(%rbp)
jmp 0x8474
movq -0x788(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x3a, %eax
jne 0x84fc
movslq -0x414(%rbp), %rsi
leaq -0x3e0(%rbp), %rdi
callq 0x46a0
movq %rax, -0x790(%rbp)
jmp 0x849f
movq -0x790(%rbp), %rax
movb $0x20, (%rax)
jmp 0x84fc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
jmp 0x8d73
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
leaq -0x3c0(%rbp), %rdi
callq 0x4240
jmp 0x8d73
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
jmp 0x8d4f
jmp 0x84fe
movl -0x414(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x414(%rbp)
jmp 0x842b
leaq -0x598(%rbp), %rdi
leaq -0x3e0(%rbp), %rsi
movl $0x8, %edx
callq 0x45b0
jmp 0x852c
leaq -0x5b8(%rbp), %rdi
movq %rdi, -0x7a0(%rbp)
callq 0x44a0
leaq -0x5d8(%rbp), %rdi
callq 0x44a0
movq -0x7a0(%rbp), %rsi
leaq -0x598(%rbp), %rdi
callq 0x4450
movq %rax, -0x798(%rbp)
jmp 0x8567
movq -0x798(%rbp), %rdi
leaq -0x5d8(%rbp), %rsi
callq 0x4450
jmp 0x857c
leaq -0x410(%rbp), %rdi
leaq -0x5b8(%rbp), %rsi
callq 0x8f00
movq %rax, -0x7a8(%rbp)
jmp 0x8598
movq -0x7a8(%rbp), %rdi
leaq -0x5d8(%rbp), %rsi
callq 0x4050
jmp 0x85ad
leaq -0x5d8(%rbp), %rdi
callq 0x4240
leaq -0x5b8(%rbp), %rdi
callq 0x4240
leaq -0x598(%rbp), %rdi
callq 0x41d0
jmp 0x8395
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
leaq -0x5d8(%rbp), %rdi
callq 0x4240
leaq -0x5b8(%rbp), %rdi
callq 0x4240
leaq -0x598(%rbp), %rdi
callq 0x41d0
jmp 0x8d4f
leaq -0x619(%rbp), %rdi
movq %rdi, -0x7b0(%rbp)
callq 0x4600
movq -0x7b0(%rbp), %rdx
leaq 0x6e9d(%rip), %rsi      # 0xf4cf
leaq -0x618(%rbp), %rdi
callq 0x4d90
jmp 0x8640
leaq -0x410(%rbp), %rdi
leaq -0x618(%rbp), %rsi
callq 0x8fe0
movq %rax, -0x7b8(%rbp)
jmp 0x865c
movq -0x7b8(%rbp), %rsi
leaq -0x5f8(%rbp), %rdi
callq 0x4e40
jmp 0x8671
leaq -0x5f8(%rbp), %rdi
callq 0x4e70
movl %eax, -0x7bc(%rbp)
jmp 0x8685
movl -0x7bc(%rbp), %edx
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movl %edx, 0xa54(%rax,%rcx,4)
leaq -0x5f8(%rbp), %rdi
callq 0x4f00
leaq -0x618(%rbp), %rdi
callq 0x4240
leaq -0x619(%rbp), %rdi
callq 0x43a0
leaq -0x661(%rbp), %rdi
movq %rdi, -0x7c8(%rbp)
callq 0x4600
movq -0x7c8(%rbp), %rdx
leaq 0x6df8(%rip), %rsi      # 0xf4d7
leaq -0x660(%rbp), %rdi
callq 0x4d90
jmp 0x86ed
leaq -0x410(%rbp), %rdi
leaq -0x660(%rbp), %rsi
callq 0x8fe0
movq %rax, -0x7d0(%rbp)
jmp 0x8709
movq -0x7d0(%rbp), %rsi
leaq -0x640(%rbp), %rdi
callq 0x4e40
jmp 0x871e
leaq -0x640(%rbp), %rdi
callq 0x90c0
movsd %xmm0, -0x7d8(%rbp)
jmp 0x8734
movsd -0x7d8(%rbp), %xmm0
movsd 0x6cc4(%rip), %xmm1     # 0xf408
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %edx
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movl %edx, 0xd74(%rax,%rcx,4)
leaq -0x640(%rbp), %rdi
callq 0x4f00
leaq -0x660(%rbp), %rdi
callq 0x4240
leaq -0x661(%rbp), %rdi
callq 0x43a0
leaq -0x689(%rbp), %rdi
movq %rdi, -0x7e0(%rbp)
callq 0x4600
movq -0x7e0(%rbp), %rdx
leaq 0x6d3c(%rip), %rsi      # 0xf4dc
leaq -0x688(%rbp), %rdi
callq 0x4d90
jmp 0x87ae
leaq -0x410(%rbp), %rdi
leaq -0x688(%rbp), %rsi
callq 0x8fe0
movq %rax, -0x7e8(%rbp)
jmp 0x87ca
movq -0x7e8(%rbp), %rdi
leaq 0x6d92(%rip), %rsi      # 0xf56a
callq 0x8e90
movb %al, -0x7e9(%rbp)
jmp 0x87e5
leaq -0x688(%rbp), %rdi
callq 0x4240
leaq -0x689(%rbp), %rdi
callq 0x43a0
movb -0x7e9(%rbp), %al
testb $0x1, %al
jne 0x880c
jmp 0x892d
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movl $0x0, 0x734(%rax,%rcx,4)
jmp 0x8d16
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
jmp 0x8876
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
jmp 0x886a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
leaq -0x5f8(%rbp), %rdi
callq 0x4f00
leaq -0x618(%rbp), %rdi
callq 0x4240
leaq -0x619(%rbp), %rdi
callq 0x43a0
jmp 0x8d4f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
jmp 0x88d9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
jmp 0x88cd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
leaq -0x640(%rbp), %rdi
callq 0x4f00
leaq -0x660(%rbp), %rdi
callq 0x4240
leaq -0x661(%rbp), %rdi
callq 0x43a0
jmp 0x8d4f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
jmp 0x891c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
leaq -0x688(%rbp), %rdi
callq 0x4240
leaq -0x689(%rbp), %rdi
callq 0x43a0
jmp 0x8d4f
leaq -0x6b1(%rbp), %rdi
movq %rdi, -0x7f8(%rbp)
callq 0x4600
movq -0x7f8(%rbp), %rdx
leaq 0x6b8e(%rip), %rsi      # 0xf4dc
leaq -0x6b0(%rbp), %rdi
callq 0x4d90
jmp 0x895c
leaq -0x410(%rbp), %rdi
leaq -0x6b0(%rbp), %rsi
callq 0x8fe0
movq %rax, -0x800(%rbp)
jmp 0x8978
movq -0x800(%rbp), %rdi
leaq 0x6b5d(%rip), %rsi      # 0xf4e3
callq 0x8e90
movb %al, -0x801(%rbp)
jmp 0x8993
leaq -0x6b0(%rbp), %rdi
callq 0x4240
leaq -0x6b1(%rbp), %rdi
callq 0x43a0
movb -0x801(%rbp), %al
testb $0x1, %al
jne 0x89b7
jmp 0x8a12
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movl $0xc, 0x734(%rax,%rcx,4)
jmp 0x8d14
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
jmp 0x8a01
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
leaq -0x6b0(%rbp), %rdi
callq 0x4240
leaq -0x6b1(%rbp), %rdi
callq 0x43a0
jmp 0x8d4f
leaq -0x6d9(%rbp), %rdi
movq %rdi, -0x810(%rbp)
callq 0x4600
movq -0x810(%rbp), %rdx
leaq 0x6aa9(%rip), %rsi      # 0xf4dc
leaq -0x6d8(%rbp), %rdi
callq 0x4d90
jmp 0x8a41
leaq -0x410(%rbp), %rdi
leaq -0x6d8(%rbp), %rsi
callq 0x8fe0
movq %rax, -0x818(%rbp)
jmp 0x8a5d
movq -0x818(%rbp), %rdi
leaq 0x6a7b(%rip), %rsi      # 0xf4e6
callq 0x8e90
movb %al, -0x819(%rbp)
jmp 0x8a78
leaq -0x6d8(%rbp), %rdi
callq 0x4240
leaq -0x6d9(%rbp), %rdi
callq 0x43a0
movb -0x819(%rbp), %al
testb $0x1, %al
jne 0x8a9f
jmp 0x8c1e
leaq -0x721(%rbp), %rdi
movq %rdi, -0x828(%rbp)
callq 0x4600
movq -0x828(%rbp), %rdx
leaq 0x6a29(%rip), %rsi      # 0xf4e9
leaq -0x720(%rbp), %rdi
callq 0x4d90
jmp 0x8ace
leaq -0x410(%rbp), %rdi
leaq -0x720(%rbp), %rsi
callq 0x8fe0
movq %rax, -0x830(%rbp)
jmp 0x8aea
movq -0x830(%rbp), %rsi
leaq -0x700(%rbp), %rdi
callq 0x4e40
jmp 0x8aff
leaq -0x700(%rbp), %rdi
callq 0x4e70
movl %eax, -0x834(%rbp)
jmp 0x8b13
leaq -0x700(%rbp), %rdi
callq 0x4f00
leaq -0x720(%rbp), %rdi
callq 0x4240
leaq -0x721(%rbp), %rdi
callq 0x43a0
movl -0x834(%rbp), %eax
subl $0xb, %eax
je 0x8bf1
jmp 0x8c06
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
jmp 0x8b7d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
leaq -0x6d8(%rbp), %rdi
callq 0x4240
leaq -0x6d9(%rbp), %rdi
callq 0x43a0
jmp 0x8d4f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
jmp 0x8be0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
jmp 0x8bd4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
leaq -0x700(%rbp), %rdi
callq 0x4f00
leaq -0x720(%rbp), %rdi
callq 0x4240
leaq -0x721(%rbp), %rdi
callq 0x43a0
jmp 0x8d4f
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movl $0xd, 0x734(%rax,%rcx,4)
jmp 0x8c19
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movl $0xf, 0x734(%rax,%rcx,4)
jmp 0x8d12
leaq -0x749(%rbp), %rdi
movq %rdi, -0x840(%rbp)
callq 0x4600
movq -0x840(%rbp), %rdx
leaq 0x689d(%rip), %rsi      # 0xf4dc
leaq -0x748(%rbp), %rdi
callq 0x4d90
jmp 0x8c4d
leaq -0x410(%rbp), %rdi
leaq -0x748(%rbp), %rsi
callq 0x8fe0
movq %rax, -0x848(%rbp)
jmp 0x8c69
movq -0x848(%rbp), %rdi
leaq 0x687a(%rip), %rsi      # 0xf4f1
callq 0x8e90
movb %al, -0x849(%rbp)
jmp 0x8c84
leaq -0x748(%rbp), %rdi
callq 0x4240
leaq -0x749(%rbp), %rdi
callq 0x43a0
movb -0x849(%rbp), %al
testb $0x1, %al
jne 0x8ca8
jmp 0x8cfd
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movl $0xf, 0x734(%rax,%rcx,4)
jmp 0x8d10
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
jmp 0x8cef
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
leaq -0x748(%rbp), %rdi
callq 0x4240
leaq -0x749(%rbp), %rdi
callq 0x43a0
jmp 0x8d4f
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movl $0x13, 0x734(%rax,%rcx,4)
jmp 0x8d12
jmp 0x8d14
jmp 0x8d16
leaq -0x410(%rbp), %rdi
callq 0x9160
leaq -0x3e0(%rbp), %rdi
callq 0x4240
leaq -0x3a0(%rbp), %rdi
callq 0x40f0
leaq -0x188(%rbp), %rdi
callq 0x40d0
addq $0x850, %rsp            # imm = 0x850
popq %rbp
retq
leaq -0x410(%rbp), %rdi
callq 0x9160
leaq -0x3e0(%rbp), %rdi
callq 0x4240
leaq -0x3a0(%rbp), %rdi
callq 0x40f0
leaq -0x188(%rbp), %rdi
callq 0x40d0
movq -0x190(%rbp), %rdi
callq 0x45f0
nopl (%rax,%rax)