// File: /workspace/github_cpp_makefile_star2_O1/mattn[P]minijson/main.cxx
// Function: main
int
main(int /*argc*/, char* /*argv*/[]) {
#ifdef __MINIJSON_LIBERAL
  const char* foo = R"(
{'empty':{"":[]}, "foo":
3.2, "bar": "baz", "baz": true,"hoge":{"a":"あい\nうお\2え"}, "moge": null, "zz": 0xff
, "rrr":[[2,"3"], "4"], "fuba": 1e9,}
)";
#else
  const char* foo = R"(
{"empty":{"":[]}, "foo":
3.2, "bar": "baz", "baz": true,"hoge":{"a":"あい\nうお\2え"}, "moge": null, "zz": 0xff
, "rrr":[[2,"3"], "4"], "fuba": 1e9}
)";
#endif
  const char* p = foo;
  value v;
  error e = parse(p, v);
  if (e != no_error) {
    std::cerr << errstr(e) << "(" << (int) (p - foo) << "):" << p << std::endl;
    return 1;
  }
  while (*p && strchr("\r\n \t", *p)) { p++; }
  if (*p) {
    std::cerr << "invalid token: " << p << std::endl;
    return 1;
  }

#if defined(_MSC_VER) && _MSC_VER <= 6000
  object& o = object();
  v.get(o);
#else
  object& o = v.get<object>();
#endif
  o["momo"] = "3.0";
#if defined(_MSC_VER) && _MSC_VER <= 6000
  array& a = array();
  o["rrr"].get(a);
#else
  array& a = o["rrr"].get<array>();
#endif
  a.push_back("3.0");
  a.push_back(null);
  o.erase(o.find("foo"));
  std::cout << v.str() << std::endl;
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
leaq 0x2c91(%rip), %rax      # 0x5050
leaq 0x28(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x30(%rsp), %rsi
movl $0x0, (%rsi)
movq $0x0, 0x8(%rsi)
callq 0x3ba6
cmpl $0x4, %eax
ja 0x249f
movl %eax, %eax
leaq 0x2c13(%rip), %rcx      # 0x5004
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x28(%rsp), %r14
movsbl (%r14), %esi
testl %esi, %esi
sete %bpl
je 0x245a
leaq 0x2cdf(%rip), %rdi      # 0x50f1
movl $0x5, %edx
callq 0x21b0
testq %rax, %rax
je 0x2451
incq %r14
leaq 0x2cc6(%rip), %rbx      # 0x50f1
movq %r14, 0x28(%rsp)
movsbl (%r14), %esi
testl %esi, %esi
sete %bpl
je 0x245a
movl $0x5, %edx
movq %rbx, %rdi
callq 0x21b0
incq %r14
testq %rax, %rax
jne 0x242b
testb %bpl, %bpl
je 0x2588
movl 0x30(%rsp), %eax
cmpl $0x4, %eax
je 0x2471
cmpl $0x6, %eax
je 0x2471
cmpl $0x5, %eax
jne 0x25d0
movq 0x38(%rsp), %rbx
jmp 0x25d5
leaq 0x2cba(%rip), %rbx      # 0x513c
jmp 0x24a6
leaq 0x2c96(%rip), %rbx      # 0x5121
jmp 0x24a6
leaq 0x2c9b(%rip), %rbx      # 0x512f
jmp 0x24a6
leaq 0x2c7a(%rip), %rbx      # 0x5117
jmp 0x24a6
leaq 0x2cae(%rip), %rbx      # 0x5154
movq %rbx, %rdi
callq 0x20a0
movq 0x5b3b(%rip), %rdi      # 0x7ff0
movq %rbx, %rsi
movq %rax, %rdx
callq 0x21c0
movq 0x5b29(%rip), %rdi      # 0x7ff0
leaq 0x2c1e(%rip), %rsi      # 0x50ec
movl $0x1, %edx
callq 0x21c0
movl 0x28(%rsp), %esi
leaq 0x2b6d(%rip), %rax      # 0x5050
subl %eax, %esi
movq 0x5b04(%rip), %rdi      # 0x7ff0
callq 0x2240
movq %rax, %rbx
leaq 0x2bf3(%rip), %rsi      # 0x50ee
movl $0x2, %edx
movq %rax, %rdi
callq 0x21c0
movq 0x28(%rsp), %r14
testq %r14, %r14
je 0x252a
movq %r14, %rdi
callq 0x20a0
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x21c0
jmp 0x2543
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq %rbx, %rdi
addq %rax, %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x2230
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movl $0x1, %ebx
movq %rax, %rdi
callq 0x20e0
leaq 0x30(%rsp), %rdi
callq 0x298e
movl %ebx, %eax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x5a61(%rip), %rbx      # 0x7ff0
leaq 0x2b60(%rip), %rsi      # 0x50f6
movl $0xf, %edx
movq %rbx, %rdi
callq 0x21c0
movq 0x28(%rsp), %r14
testq %r14, %r14
je 0x278f
movq %r14, %rdi
callq 0x20a0
movq 0x5a30(%rip), %rdi      # 0x7ff0
movq %r14, %rsi
movq %rax, %rdx
callq 0x21c0
jmp 0x27ad
leaq 0x38(%rsp), %rbx
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x2b24(%rip), %rsi      # 0x510a
leaq 0x2b21(%rip), %rdx      # 0x510e
leaq 0x8(%rsp), %rdi
callq 0x3b16
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x2818
leaq 0x2afb(%rip), %rsi      # 0x5106
movq %rax, %rdi
callq 0x28d2
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x262a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2190
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x2ad6(%rip), %rsi      # 0x510f
leaq 0x2ad2(%rip), %rdx      # 0x5112
callq 0x3b16
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x2818
movq %rax, %r14
movl (%rax), %eax
addq $0x8, %r14
cmpl $0x4, %eax
je 0x266a
cmpl $0x6, %eax
je 0x266a
cmpl $0x5, %eax
jne 0x266d
movq (%r14), %r14
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2684
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2190
leaq 0x2a7b(%rip), %rsi      # 0x5106
leaq 0x8(%rsp), %rdi
callq 0x292e
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x4d24
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x298e
movl $0x1, (%r15)
movq $0x0, 0x8(%r15)
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x4d24
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x298e
movq %r12, (%r14)
leaq 0x2a31(%rip), %rsi      # 0x5113
leaq 0x2a2d(%rip), %rdx      # 0x5116
leaq 0x8(%rsp), %rdi
callq 0x3b16
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x4eb4
movq %rbx, %rdi
movq %rax, %rsi
callq 0x4efa
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2722
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2190
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x2a1c
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x588e(%rip), %rdi      # 0x7fd0
callq 0x21c0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20e0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2788
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2190
xorl %ebx, %ebx
jmp 0x256f
movq 0x585a(%rip), %rax      # 0x7ff0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
leaq (%rax,%rcx), %rdi
movl 0x20(%rax,%rcx), %esi
orl $0x1, %esi
callq 0x2230
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2170
jmp 0x2557
jmp 0x2803
jmp 0x27e7
jmp 0x2803
jmp 0x27ce
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x298e
jmp 0x2806
jmp 0x2803
jmp 0x27e7
jmp 0x2803
jmp 0x2803
jmp 0x27e7
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2806
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2190
jmp 0x2806
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x298e
movq %rbx, %rdi
callq 0x2250