// File: /workspace/github_cpp_makefile_star2_O3/tanakh[P]icfpc2015/main.cpp
// Function: output_solution(int, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void output_solution(int problem_id, int seed, int score, const string &moves, const string &tag)
{
  stringstream ss;
  ss << "out-full/" << problem_id << "-" << seed << "-" << score << ".json";
  ofstream ofs(ss.str().c_str());

  object o;
  o["problemId"] = value((int64_t)problem_id);
  o["seed"] = value((int64_t)seed);
  if (tag != "")
    o["tag"] = value(tag);
  o["solution"] = value(moves);

  ofs << "[" << endl;
  ofs << value(o) << endl;
  ofs << "]" << endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3e8, %rsp            # imm = 0x3E8
movq %r8, %r14
movq %rcx, %rbx
movl %edx, %r12d
movl %esi, %ebp
movl %edi, %r15d
leaq 0x260(%rsp), %rdi
callq 0x3220
leaq 0x270(%rsp), %r13
leaq 0xeb04(%rip), %rsi      # 0x154db
movl $0x9, %edx
movq %r13, %rdi
callq 0x3350
movq %r13, %rdi
movl %r15d, %esi
callq 0x3490
movq %rax, %r13
leaq 0xeaec(%rip), %rsi      # 0x154e5
movl $0x1, %edx
movq %rax, %rdi
callq 0x3350
movq %r13, %rdi
movl %ebp, %esi
callq 0x3490
movq %rax, %r13
leaq 0xeacb(%rip), %rsi      # 0x154e5
movl $0x1, %edx
movq %rax, %rdi
callq 0x3350
movq %r13, %rdi
movl %r12d, %esi
callq 0x3490
leaq 0xeaae(%rip), %rsi      # 0x154e7
movl $0x5, %edx
movq %rax, %rdi
callq 0x3350
leaq 0x278(%rsp), %rsi
leaq 0x30(%rsp), %rdi
callq 0x3420
movq 0x30(%rsp), %rsi
leaq 0x60(%rsp), %rdi
movl $0x10, %edx
callq 0x3340
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6a7f
callq 0x32f0
leaq 0x38(%rsp), %rax
movl $0x0, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
movslq %r15d, %rax
movl $0x6, (%rsp)
movq %rax, 0x8(%rsp)
leaq 0x20(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xea31(%rip), %rsi      # 0x154ed
leaq 0xea33(%rip), %rdx      # 0x154f6
leaq 0x10(%rsp), %rdi
callq 0xfa08
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xb84a
movq %rsp, %rsi
movq %rax, %rdi
callq 0xc1c2
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x6af6
callq 0x32f0
movl (%rsp), %eax
cmpl $0x5, %eax
je 0x6b39
cmpl $0x4, %eax
je 0x6b25
cmpl $0x3, %eax
jne 0x6b58
movq 0x8(%rsp), %r15
testq %r15, %r15
je 0x6b4d
movq (%r15), %rdi
leaq 0x10(%r15), %rax
cmpq %rax, %rdi
je 0x6b50
callq 0x32f0
jmp 0x6b50
movq 0x8(%rsp), %r15
testq %r15, %r15
je 0x6b4d
movq %r15, %rdi
callq 0xc80e
jmp 0x6b50
movq 0x8(%rsp), %r15
testq %r15, %r15
je 0x6b4d
movq %r15, %rdi
callq 0xcfec
jmp 0x6b50
xorl %r15d, %r15d
movq %r15, %rdi
callq 0x32f0
movslq %ebp, %rax
movl $0x6, (%rsp)
movq %rax, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
movq %r12, (%rdi)
leaq 0xe981(%rip), %rsi      # 0x154f7
leaq 0xe97e(%rip), %rdx      # 0x154fb
callq 0xfa08
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xb84a
movq %rsp, %rsi
movq %rax, %rdi
callq 0xc1c2
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x6bab
callq 0x32f0
movl (%rsp), %eax
cmpl $0x5, %eax
je 0x6bee
cmpl $0x4, %eax
je 0x6bda
cmpl $0x3, %eax
jne 0x6c0d
movq 0x8(%rsp), %r15
testq %r15, %r15
je 0x6c02
movq (%r15), %rdi
leaq 0x10(%r15), %rax
cmpq %rax, %rdi
je 0x6c05
callq 0x32f0
jmp 0x6c05
movq 0x8(%rsp), %r15
testq %r15, %r15
je 0x6c02
movq %r15, %rdi
callq 0xc80e
jmp 0x6c05
movq 0x8(%rsp), %r15
testq %r15, %r15
je 0x6c02
movq %r15, %rdi
callq 0xcfec
jmp 0x6c05
xorl %r15d, %r15d
movq %r15, %rdi
callq 0x32f0
leaq 0xea9e(%rip), %rsi      # 0x156b2
movq %r14, %rdi
callq 0x30c0
testl %eax, %eax
je 0x6cfc
movl $0x3, (%rsp)
movl $0x20, %edi
callq 0x3310
movq %rax, %r15
addq $0x10, %rax
movq %rax, (%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xeed8
movq %r15, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
movq %r12, (%rdi)
leaq 0xe897(%rip), %rsi      # 0x154fc
leaq 0xe893(%rip), %rdx      # 0x154ff
callq 0xfa08
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xb84a
movq %rsp, %rsi
movq %rax, %rdi
callq 0xc1c2
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x6c9a
callq 0x32f0
movl (%rsp), %eax
cmpl $0x5, %eax
je 0x6cdd
cmpl $0x4, %eax
je 0x6cc9
cmpl $0x3, %eax
jne 0x6cfc
movq 0x8(%rsp), %r14
testq %r14, %r14
je 0x6cf1
movq (%r14), %rdi
leaq 0x10(%r14), %rax
cmpq %rax, %rdi
je 0x6cf4
callq 0x32f0
jmp 0x6cf4
movq 0x8(%rsp), %r14
testq %r14, %r14
je 0x6cf1
movq %r14, %rdi
callq 0xc80e
jmp 0x6cf4
movq 0x8(%rsp), %r14
testq %r14, %r14
je 0x6cf1
movq %r14, %rdi
callq 0xcfec
jmp 0x6cf4
xorl %r14d, %r14d
movq %r14, %rdi
callq 0x32f0
movl $0x3, (%rsp)
movl $0x20, %edi
callq 0x3310
movq %rax, %r14
addq $0x10, %rax
movq %rax, (%r14)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0xeed8
movq %r14, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
movq %r12, (%rdi)
leaq 0xe7c3(%rip), %rsi      # 0x15500
leaq 0xe7c4(%rip), %rdx      # 0x15508
callq 0xfa08
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xb84a
movq %rsp, %rsi
movq %rax, %rdi
callq 0xc1c2
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x6d72
callq 0x32f0
movl (%rsp), %eax
cmpl $0x5, %eax
je 0x6db5
cmpl $0x4, %eax
je 0x6da1
cmpl $0x3, %eax
jne 0x6dd3
movq 0x8(%rsp), %rbx
testq %rbx, %rbx
je 0x6dc9
movq (%rbx), %rdi
leaq 0x10(%rbx), %rax
cmpq %rax, %rdi
je 0x6dcb
callq 0x32f0
jmp 0x6dcb
movq 0x8(%rsp), %rbx
testq %rbx, %rbx
je 0x6dc9
movq %rbx, %rdi
callq 0xc80e
jmp 0x6dcb
movq 0x8(%rsp), %rbx
testq %rbx, %rbx
je 0x6dc9
movq %rbx, %rdi
callq 0xcfec
jmp 0x6dcb
xorl %ebx, %ebx
movq %rbx, %rdi
callq 0x32f0
leaq 0xe553(%rip), %rsi      # 0x1532d
leaq 0x60(%rsp), %rbx
movl $0x1, %edx
movq %rbx, %rdi
callq 0x3350
movq 0x60(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x3300
movsbl %al, %esi
leaq 0x60(%rsp), %rbx
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3200
movl $0x5, (%rsp)
movl $0x30, %edi
callq 0x3310
movq %rax, %r14
leaq 0x30(%rsp), %rsi
movq %rax, %rdi
callq 0xca1c
movq %rsp, %rdi
movq %r14, 0x8(%rdi)
leaq 0x10(%rsp), %rsi
movq %rbx, (%rsi)
movq $0x0, 0x8(%rsi)
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xe3c2
movq 0x60(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x3300
movsbl %al, %esi
leaq 0x60(%rsp), %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3200
movl (%rsp), %eax
cmpl $0x5, %eax
je 0x6eca
cmpl $0x4, %eax
je 0x6eb6
cmpl $0x3, %eax
jne 0x6ee8
movq 0x8(%rsp), %rbx
testq %rbx, %rbx
je 0x6ede
movq (%rbx), %rdi
leaq 0x10(%rbx), %rax
cmpq %rax, %rdi
je 0x6ee0
callq 0x32f0
jmp 0x6ee0
movq 0x8(%rsp), %rbx
testq %rbx, %rbx
je 0x6ede
movq %rbx, %rdi
callq 0xc80e
jmp 0x6ee0
movq 0x8(%rsp), %rbx
testq %rbx, %rbx
je 0x6ede
movq %rbx, %rdi
callq 0xcfec
jmp 0x6ee0
xorl %ebx, %ebx
movq %rbx, %rdi
callq 0x32f0
leaq 0xe61a(%rip), %rsi      # 0x15509
leaq 0x60(%rsp), %rbx
movl $0x1, %edx
movq %rbx, %rdi
callq 0x3350
movq 0x60(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x3300
movsbl %al, %esi
leaq 0x60(%rsp), %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3200
leaq 0x30(%rsp), %rdi
callq 0xcfec
movq 0x1606b(%rip), %rax     # 0x1cfa8
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x68(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x60(%rsp,%rcx)
callq 0x32b0
leaq 0x158(%rsp), %rdi
callq 0x30e0
movq 0x16009(%rip), %rsi     # 0x1cf78
leaq 0x260(%rsp), %rdi
callq 0x3260
leaq 0x2e0(%rsp), %rdi
callq 0x30e0
addq $0x3e8, %rsp            # imm = 0x3E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6ff4
movq %rax, %rbx
movq %r15, %rdi
jmp 0x6fb3
jmp 0x7006
jmp 0x6fad
jmp 0x7006
jmp 0x6ff4
movq %rax, %rbx
movq %r14, %rdi
callq 0x32f0
jmp 0x7009
jmp 0x7006
jmp 0x6ff4
jmp 0x6ff4
movq %rax, %rbx
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x701d
callq 0x32f0
jmp 0x701d
jmp 0x7001
jmp 0x6fe0
jmp 0x6fe0
jmp 0x6fe0
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x6ff7
callq 0x32f0
jmp 0x6ff7
movq %rax, %rbx
movq %rsp, %rdi
callq 0xb9ec
jmp 0x7009
movq %rax, %rbx
jmp 0x701d
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xcfec
leaq 0x60(%rsp), %rdi
callq 0x33e0
movq 0x15f54(%rip), %rsi     # 0x1cf78
leaq 0x260(%rsp), %rdi
callq 0x3260
leaq 0x2e0(%rsp), %rdi
callq 0x30e0
movq %rbx, %rdi
callq 0x34a0