#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ create_objects();
int /*<<< orphan*/ doit(char *);
int /*<<< orphan*/ test();
int /*<<< orphan*/ test_child_get(char *, char *, char *);
int /*<<< orphan*/ test_serialize();
int main(int argc, char *argv[]) {
  char text1[] =
      "{\n\"name\": \"Jack (\\\"Bee\\\") Nimble，测试，你好\", \n\"format\": "
      "{\"type\":       \"rect\", \n\"width\":      1920, \n\"height\":     "
      "1080, \n\"interlace\":  false,\"frame rate\": 24\n}\n}";
  doit(text1);
  test();
  create_objects();
  test_child_get("test_child_get.json", ".subobj.array2", "hehehehheheh");
  test_serialize();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0xc0(%rbp),%rdi
lea    0xe79(%rip),%rsi
mov    $0xab,%edx
call   1040 <memcpy@plt>
lea    -0xc0(%rbp),%rdi
call   1050 <doit@plt>
mov    $0x0,%al
call   1080 <test@plt>
mov    $0x0,%al
call   1070 <create_objects@plt>
lea    0xef9(%rip),%rdi
lea    0xf06(%rip),%rsi
lea    0xf0e(%rip),%rdx
call   1060 <test_child_get@plt>
mov    $0x0,%al
call   1030 <test_serialize@plt>
xor    %eax,%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0xb0,%rsp
lea    0xe91(%rip),%rsi
mov    %rsp,%rbx
mov    $0xab,%edx
mov    %rbx,%rdi
call   1040 <memcpy@plt>
mov    %rbx,%rdi
call   1050 <doit@plt>
xor    %eax,%eax
call   1080 <test@plt>
xor    %eax,%eax
call   1070 <create_objects@plt>
lea    0xf0f(%rip),%rdi
lea    0xf1c(%rip),%rsi
lea    0xf24(%rip),%rdx
call   1060 <test_child_get@plt>
xor    %eax,%eax
call   1030 <test_serialize@plt>
xor    %eax,%eax
add    $0xb0,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.text1 = [171 x i8] c"{\0A\22name\22: \22Jack (\\\22Bee\\\22) Nimble\EF\BC\8C\E6\B5\8B\E8\AF\95\EF\BC\8C\E4\BD\A0\E5\A5\BD\22, \0A\22format\22: {\22type\22: \22rect\22, \0A\22width\22: 1920, \0A\22height\22: 1080, \0A\22interlace\22: false,\22frame rate\22: 24\0A}\0A}\00"
@.str = [20 x i8] c"test_child_get.json\00"
@.str.1 = [15 x i8] c".subobj.array2\00"
@.str.2 = [13 x i8] c"hehehehheheh\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [171 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = bitcast [171 x i8]* %6 to i8*
%8 = getelementptr inbounds [171 x i8], [171 x i8]* %6, i64 0, i64 0
%9 = call i32 @doit(i8* %8)
%10 = call i32 (...) @test()
%11 = call i32 (...) @create_objects()
%12 = call i32 @test_child_get(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%13 = call i32 (...) @test_serialize()
ret i32 0
}

LLVM IR (-O2):
@__const.main.text1 = [171 x i8] c"{\0A\22name\22: \22Jack (\\\22Bee\\\22) Nimble\EF\BC\8C\E6\B5\8B\E8\AF\95\EF\BC\8C\E4\BD\A0\E5\A5\BD\22, \0A\22format\22: {\22type\22: \22rect\22, \0A\22width\22: 1920, \0A\22height\22: 1080, \0A\22interlace\22: false,\22frame rate\22: 24\0A}\0A}\00"
@.str = [20 x i8] c"test_child_get.json\00"
@.str.1 = [15 x i8] c".subobj.array2\00"
@.str.2 = [13 x i8] c"hehehehheheh\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [171 x i8]
%4 = getelementptr inbounds [171 x i8], [171 x i8]* %3, i64 0, i64 0
%5 = call i32 @doit(i8* %4)
%6 = call i32 (...) @test()
%7 = call i32 (...) @create_objects()
%8 = call i32 @test_child_get(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 (...) @test_serialize()
ret i32 0
}