// File: /workspace/github_cpp_makefile_star2_O1/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 0xeace(%rip), %rsi      # 0x154fb
movl $0x9, %edx
movq %r13, %rdi
callq 0x3350
movq %r13, %rdi
movl %r15d, %esi
callq 0x34a0
movq %rax, %r13
leaq 0xeab6(%rip), %rsi      # 0x15505
movl $0x1, %edx
movq %rax, %rdi
callq 0x3350
movq %r13, %rdi
movl %ebp, %esi
callq 0x34a0
movq %rax, %r13
leaq 0xea95(%rip), %rsi      # 0x15505
movl $0x1, %edx
movq %rax, %rdi
callq 0x3350
movq %r13, %rdi
movl %r12d, %esi
callq 0x34a0
leaq 0xea78(%rip), %rsi      # 0x15507
movl $0x5, %edx
movq %rax, %rdi
callq 0x3350
leaq 0x278(%rsp), %rsi
leaq 0x30(%rsp), %rdi
callq 0x3430
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 0x6ad5
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 0xe9fb(%rip), %rsi      # 0x1550d
leaq 0xe9fd(%rip), %rdx      # 0x15516
leaq 0x10(%rsp), %rdi
callq 0xf8e6
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xb898
movq %rsp, %rsi
movq %rax, %rdi
callq 0xc1be
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x6b4c
callq 0x32f0
movl (%rsp), %eax
cmpl $0x5, %eax
je 0x6b8f
cmpl $0x4, %eax
je 0x6b7b
cmpl $0x3, %eax
jne 0x6ba9
movq 0x8(%rsp), %r15
testq %r15, %r15
je 0x6ba9
movq (%r15), %rdi
leaq 0x10(%r15), %rax
cmpq %rax, %rdi
je 0x6ba1
callq 0x32f0
jmp 0x6ba1
movq 0x8(%rsp), %r15
testq %r15, %r15
je 0x6ba9
movq %r15, %rdi
callq 0xc764
jmp 0x6ba1
movq 0x8(%rsp), %r15
testq %r15, %r15
je 0x6ba9
movq %r15, %rdi
callq 0xceb0
movq %r15, %rdi
callq 0x32f0
movslq %ebp, %rax
movl $0x6, (%rsp)
movq %rax, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
movq %r12, (%rdi)
leaq 0xe950(%rip), %rsi      # 0x15517
leaq 0xe94d(%rip), %rdx      # 0x1551b
callq 0xf8e6
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xb898
movq %rsp, %rsi
movq %rax, %rdi
callq 0xc1be
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x6bfc
callq 0x32f0
movl (%rsp), %eax
cmpl $0x5, %eax
je 0x6c3f
cmpl $0x4, %eax
je 0x6c2b
cmpl $0x3, %eax
jne 0x6c59
movq 0x8(%rsp), %r15
testq %r15, %r15
je 0x6c59
movq (%r15), %rdi
leaq 0x10(%r15), %rax
cmpq %rax, %rdi
je 0x6c51
callq 0x32f0
jmp 0x6c51
movq 0x8(%rsp), %r15
testq %r15, %r15
je 0x6c59
movq %r15, %rdi
callq 0xc764
jmp 0x6c51
movq 0x8(%rsp), %r15
testq %r15, %r15
je 0x6c59
movq %r15, %rdi
callq 0xceb0
movq %r15, %rdi
callq 0x32f0
leaq 0xea72(%rip), %rsi      # 0x156d2
movq %r14, %rdi
callq 0x30c0
testl %eax, %eax
je 0x6d43
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 0xeda4
movq %r15, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
movq %r12, (%rdi)
leaq 0xe86b(%rip), %rsi      # 0x1551c
leaq 0xe867(%rip), %rdx      # 0x1551f
callq 0xf8e6
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xb898
movq %rsp, %rsi
movq %rax, %rdi
callq 0xc1be
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x6ce6
callq 0x32f0
movl (%rsp), %eax
cmpl $0x5, %eax
je 0x6d29
cmpl $0x4, %eax
je 0x6d15
cmpl $0x3, %eax
jne 0x6d43
movq 0x8(%rsp), %r14
testq %r14, %r14
je 0x6d43
movq (%r14), %rdi
leaq 0x10(%r14), %rax
cmpq %rax, %rdi
je 0x6d3b
callq 0x32f0
jmp 0x6d3b
movq 0x8(%rsp), %r14
testq %r14, %r14
je 0x6d43
movq %r14, %rdi
callq 0xc764
jmp 0x6d3b
movq 0x8(%rsp), %r14
testq %r14, %r14
je 0x6d43
movq %r14, %rdi
callq 0xceb0
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 0xeda4
movq %r14, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
movq %r12, (%rdi)
leaq 0xe79c(%rip), %rsi      # 0x15520
leaq 0xe79d(%rip), %rdx      # 0x15528
callq 0xf8e6
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xb898
movq %rsp, %rsi
movq %rax, %rdi
callq 0xc1be
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x6db9
callq 0x32f0
movl (%rsp), %eax
cmpl $0x5, %eax
je 0x6dfc
cmpl $0x4, %eax
je 0x6de8
cmpl $0x3, %eax
jne 0x6e16
movq 0x8(%rsp), %rbx
testq %rbx, %rbx
je 0x6e16
movq (%rbx), %rdi
leaq 0x10(%rbx), %rax
cmpq %rax, %rdi
je 0x6e0e
callq 0x32f0
jmp 0x6e0e
movq 0x8(%rsp), %rbx
testq %rbx, %rbx
je 0x6e16
movq %rbx, %rdi
callq 0xc764
jmp 0x6e0e
movq 0x8(%rsp), %rbx
testq %rbx, %rbx
je 0x6e16
movq %rbx, %rdi
callq 0xceb0
movq %rbx, %rdi
callq 0x32f0
leaq 0xe530(%rip), %rsi      # 0x1534d
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 0xc96a
movq %rsp, %rdi
movq %r14, 0x8(%rdi)
leaq 0x10(%rsp), %rsi
movq %rbx, (%rsi)
movq $0x0, 0x8(%rsi)
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xe286
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 0x6f0d
cmpl $0x4, %eax
je 0x6ef9
cmpl $0x3, %eax
jne 0x6f27
movq 0x8(%rsp), %rbx
testq %rbx, %rbx
je 0x6f27
movq (%rbx), %rdi
leaq 0x10(%rbx), %rax
cmpq %rax, %rdi
je 0x6f1f
callq 0x32f0
jmp 0x6f1f
movq 0x8(%rsp), %rbx
testq %rbx, %rbx
je 0x6f27
movq %rbx, %rdi
callq 0xc764
jmp 0x6f1f
movq 0x8(%rsp), %rbx
testq %rbx, %rbx
je 0x6f27
movq %rbx, %rdi
callq 0xceb0
movq %rbx, %rdi
callq 0x32f0
leaq 0xe5fb(%rip), %rsi      # 0x15529
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 0xceb0
movq 0x1602c(%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 0x15fca(%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 0x7033
movq %rax, %rbx
movq %r15, %rdi
jmp 0x6ff2
jmp 0x7045
jmp 0x6fec
jmp 0x7045
jmp 0x7033
movq %rax, %rbx
movq %r14, %rdi
callq 0x32f0
jmp 0x7048
jmp 0x7045
jmp 0x7033
jmp 0x7033
movq %rax, %rbx
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x705c
callq 0x32f0
jmp 0x705c
jmp 0x7040
jmp 0x701f
jmp 0x701f
jmp 0x701f
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x7036
callq 0x32f0
jmp 0x7036
movq %rax, %rbx
movq %rsp, %rdi
callq 0xba3a
jmp 0x7048
movq %rax, %rbx
jmp 0x705c
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xceb0
leaq 0x60(%rsp), %rdi
callq 0x33f0
movq 0x15f15(%rip), %rsi     # 0x1cf78
leaq 0x260(%rsp), %rdi
callq 0x3260
leaq 0x2e0(%rsp), %rdi
callq 0x30e0
movq %rbx, %rdi
callq 0x34b0