// File: /workspace/github_cpp_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
leaq 0x2c5f(%rip), %rax      # 0x5020
leaq 0x30(%rsp), %rdi
leaq 0x38(%rsp), %rsi
andl $0x0, (%rsi)
movq %rax, (%rdi)
andq $0x0, 0x8(%rsi)
callq 0x37d5
testl %eax, %eax
je 0x2465
movl %eax, %edi
callq 0x263d
movq 0x5bff(%rip), %rdi      # 0x7ff0
movq %rax, %rsi
callq 0x2170
leaq 0x2cbc(%rip), %rsi      # 0x50bc
movq %rax, %rdi
callq 0x2170
movl 0x30(%rsp), %esi
leaq 0x2c0d(%rip), %rcx      # 0x5020
subl %ecx, %esi
movq %rax, %rdi
callq 0x2250
movq %rax, %r14
leaq 0x2c97(%rip), %r15      # 0x50be
movq %r14, %rdi
movq %r15, %rsi
callq 0x2170
movq 0x30(%rsp), %rsi
movq %rax, %rdi
callq 0x2170
movq %rax, %rdi
callq 0x20a0
pushq $0x1
popq %rbx
leaq 0x38(%rsp), %rdi
callq 0x27e8
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x40(%rsp), %rbx
movq 0x30(%rsp), %rbp
incq %rbp
leaq 0x2c48(%rip), %r12      # 0x50c1
pushq $0x5
popq %r13
leaq 0x2c42(%rip), %r15      # 0x50c6
movq 0x5b65(%rip), %r14      # 0x7ff0
movsbl -0x1(%rbp), %esi
testl %esi, %esi
je 0x24ad
movq %r12, %rdi
movq %r13, %rdx
callq 0x21b0
testq %rax, %rax
je 0x2427
movq %rbp, 0x30(%rsp)
incq %rbp
jmp 0x248b
movl 0x38(%rsp), %eax
cmpl $0x4, %eax
je 0x24c0
cmpl $0x6, %eax
je 0x24c0
cmpl $0x5, %eax
jne 0x24c5
movq 0x40(%rsp), %rbx
leaq 0x2c0e(%rip), %rsi      # 0x50da
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x26de
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x2678
leaq 0x2be7(%rip), %rsi      # 0x50d6
movq %rax, %rdi
callq 0x271a
leaq 0x10(%rsp), %rdi
callq 0x2090
leaq 0x2bd7(%rip), %rsi      # 0x50df
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x26de
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x2678
movq %rax, %rdi
callq 0x2772
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x2090
leaq 0x2b96(%rip), %rsi      # 0x50d6
leaq 0x10(%rsp), %rdi
callq 0x278e
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x4870
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x27e8
movl $0x1, (%r15)
andq $0x0, 0x8(%r15)
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x4870
leaq 0x10(%rsp), %rdi
callq 0x27e8
leaq 0x2b55(%rip), %rsi      # 0x50e3
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x26de
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x49cc
movq %rbx, %rdi
movq %rax, %rsi
callq 0x4a0a
leaq 0x10(%rsp), %rdi
callq 0x2090
leaq 0x10(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x2868
movq 0x59fb(%rip), %rdi      # 0x7fd0
leaq 0x10(%rsp), %rsi
callq 0x2160
movq %rax, %rdi
callq 0x20a0
leaq 0x10(%rsp), %rdi
callq 0x2090
xorl %ebx, %ebx
jmp 0x244a
jmp 0x2628
jmp 0x2628
jmp 0x25fe
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x27e8
jmp 0x262b
jmp 0x2628
jmp 0x2619
jmp 0x2628
jmp 0x2628
jmp 0x2619
jmp 0x2619
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2090
jmp 0x262b
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x27e8
movq %rbx, %rdi
callq 0x2260