#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*/ puts(char *);
int main(int argc, const 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}";
  char text2[] = "[\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", "
                 "\"Thursday\", \"Friday\", \"Saturday\"]";
  char text3[] = "[\n    [0, -1, 0],\n    [1, 0, 0],\n    [0, 0, 1]\n	]\n";
  char text4[] =
      "{\n		\"Image\": {\n			\"Width\":  "
      "800,\n			\"Height\": 600,\n			"
      "\"Title\":  \"View from 15th Floor\",\n			\"Thumbnail\": "
      "{\n				\"Url\":    "
      "\"http:/*www.example.com/image/481989943\",\n			"
      "	\"Height\": 125,\n				\"Width\":  "
      "\"100\"\n			},\n			\"IDs\": [116, "
      "943, 234, 38793]\n		}\n	}";
  char text5[] =
      "[\n	 {\n	 \"precision\": \"zip\",\n	 \"Latitude\":  "
      "37.7668,\n	 \"Longitude\": -122.3959,\n	 \"Address\":   "
      "\"\",\n	 \"City\":      \"SAN FRANCISCO\",\n	 \"State\":     "
      "\"CA\",\n	 \"Zip\":       \"94107\",\n	 \"Country\":   "
      "\"US\"\n	 },\n	 {\n	 \"precision\": \"zip\",\n	 \"Latitude\": "
      " 37.371991,\n	 \"Longitude\": -122.026020,\n	 \"Address\":   "
      "\"\",\n	 \"City\":      \"SUNNYVALE\",\n	 \"State\":     "
      "\"CA\",\n	 \"Zip\":       \"94085\",\n	 \"Country\":   "
      "\"US\"\n	 }\n	 ]";
  doit(text1);
  doit(text2);
  doit(text3);
  doit(text4);
  doit(text5);
  create_objects();
  char text6[] = "{ \"big int\":  4000000000, \"minus10\": -10000000000  }";
  puts("long long int test:");
  doit(text6);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x410,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0xb0(%rbp),%rdi
lea    0xe99(%rip),%rsi
mov    $0x99,%edx
call   1040 <memcpy@plt>
lea    -0x100(%rbp),%rdi
lea    0xf21(%rip),%rsi
mov    $0x4f,%edx
call   1040 <memcpy@plt>
lea    -0x140(%rbp),%rdi
lea    0xf59(%rip),%rsi
mov    $0x33,%edx
call   1040 <memcpy@plt>
lea    -0x240(%rbp),%rdi
lea    0xf81(%rip),%rsi
mov    $0xf7,%edx
call   1040 <memcpy@plt>
lea    -0x3d0(%rbp),%rdi
lea    0x1069(%rip),%rsi
mov    $0x18f,%edx
call   1040 <memcpy@plt>
lea    -0xb0(%rbp),%rdi
call   1050 <doit@plt>
lea    -0x100(%rbp),%rdi
call   1050 <doit@plt>
lea    -0x140(%rbp),%rdi
call   1050 <doit@plt>
lea    -0x240(%rbp),%rdi
call   1050 <doit@plt>
lea    -0x3d0(%rbp),%rdi
call   1050 <doit@plt>
mov    $0x0,%al
call   1060 <create_objects@plt>
lea    -0x410(%rbp),%rdi
lea    0x119e(%rip),%rsi
mov    $0x35,%edx
call   1040 <memcpy@plt>
lea    0x11c2(%rip),%rdi
call   1030 <puts@plt>
lea    -0x410(%rbp),%rdi
call   1050 <doit@plt>
xor    %eax,%eax
add    $0x410,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x400,%rsp
lea    0xead(%rip),%rsi
lea    0xd0(%rsp),%r14
mov    $0x99,%edx
mov    %r14,%rdi
call   1040 <memcpy@plt>
movups 0xf70(%rip),%xmm0
movups %xmm0,0xbf(%rsp)
movaps 0xf52(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
movaps 0xf33(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps 0xf14(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xef5(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xf56(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xf3a(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xf1e(%rip),%xmm0
movaps %xmm0,(%rsp)
movl   $0xa5d09,0x2f(%rsp)
lea    0xf4b(%rip),%rsi
lea    0x170(%rsp),%r15
mov    $0xf7,%edx
mov    %r15,%rdi
call   1040 <memcpy@plt>
lea    0x102f(%rip),%rsi
lea    0x270(%rsp),%rbx
mov    $0x18f,%edx
mov    %rbx,%rdi
call   1040 <memcpy@plt>
mov    %r14,%rdi
call   1050 <doit@plt>
lea    0x80(%rsp),%rdi
call   1050 <doit@plt>
mov    %rsp,%rdi
call   1050 <doit@plt>
mov    %r15,%rdi
call   1050 <doit@plt>
mov    %rbx,%rdi
call   1050 <doit@plt>
xor    %eax,%eax
call   1060 <create_objects@plt>
movaps 0x118f(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0x1173(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0x1157(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movabs $0x7d202030303030,%rax
mov    %rax,0x6d(%rsp)
lea    0x1171(%rip),%rdi
call   1030 <puts@plt>
lea    0x40(%rsp),%rdi
call   1050 <doit@plt>
xor    %eax,%eax
add    $0x400,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.text1 = [153 x i8] c"{\0A\22name\22: \22Jack (\\\22Bee\\\22) Nimble\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"
@__const.main.text2 = [79 x i8] c"[\22Sunday\22, \22Monday\22, \22Tuesday\22, \22Wednesday\22, \22Thursday\22, \22Friday\22, \22Saturday\22]\00"
@__const.main.text3 = [51 x i8] c"[\0A [0, -1, 0],\0A [1, 0, 0],\0A [0, 0, 1]\0A\09]\0A\00"
@__const.main.text4 = [247 x i8] c"{\0A\09\09\22Image\22: {\0A\09\09\09\22Width\22: 800,\0A\09\09\09\22Height\22: 600,\0A\09\09\09\22Title\22: \22View from 15th Floor\22,\0A\09\09\09\22Thumbnail\22: {\0A\09\09\09\09\22Url\22: \22http:/*www.example.com/image/481989943\22,\0A\09\09\09\09\22Height\22: 125,\0A\09\09\09\09\22Width\22: \22100\22\0A\09\09\09},\0A\09\09\09\22IDs\22: [116, 943, 234, 38793]\0A\09\09}\0A\09}\00"
@__const.main.text5 = [399 x i8] c"[\0A\09 {\0A\09 \22precision\22: \22zip\22,\0A\09 \22Latitude\22: 37.7668,\0A\09 \22Longitude\22: -122.3959,\0A\09 \22Address\22: \22\22,\0A\09 \22City\22: \22SAN FRANCISCO\22,\0A\09 \22State\22: \22CA\22,\0A\09 \22Zip\22: \2294107\22,\0A\09 \22Country\22: \22US\22\0A\09 },\0A\09 {\0A\09 \22precision\22: \22zip\22,\0A\09 \22Latitude\22: 37.371991,\0A\09 \22Longitude\22: -122.026020,\0A\09 \22Address\22: \22\22,\0A\09 \22City\22: \22SUNNYVALE\22,\0A\09 \22State\22: \22CA\22,\0A\09 \22Zip\22: \2294085\22,\0A\09 \22Country\22: \22US\22\0A\09 }\0A\09 ]\00"
@__const.main.text6 = [53 x i8] c"{ \22big int\22: 4000000000, \22minus10\22: -10000000000 }\00"
@.str = [20 x i8] c"long long int test:\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [153 x i8]
%7 = alloca [79 x i8]
%8 = alloca [51 x i8]
%9 = alloca [247 x i8]
%10 = alloca [399 x i8]
%11 = alloca [53 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%12 = bitcast [153 x i8]* %6 to i8*
%13 = bitcast [79 x i8]* %7 to i8*
%14 = bitcast [51 x i8]* %8 to i8*
%15 = bitcast [247 x i8]* %9 to i8*
%16 = bitcast [399 x i8]* %10 to i8*
%17 = getelementptr inbounds [153 x i8], [153 x i8]* %6, i64 0, i64 0
%18 = call i32 @doit(i8* %17)
%19 = getelementptr inbounds [79 x i8], [79 x i8]* %7, i64 0, i64 0
%20 = call i32 @doit(i8* %19)
%21 = getelementptr inbounds [51 x i8], [51 x i8]* %8, i64 0, i64 0
%22 = call i32 @doit(i8* %21)
%23 = getelementptr inbounds [247 x i8], [247 x i8]* %9, i64 0, i64 0
%24 = call i32 @doit(i8* %23)
%25 = getelementptr inbounds [399 x i8], [399 x i8]* %10, i64 0, i64 0
%26 = call i32 @doit(i8* %25)
%27 = call i32 (...) @create_objects()
%28 = bitcast [53 x i8]* %11 to i8*
%29 = call i32 @puts(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%30 = getelementptr inbounds [53 x i8], [53 x i8]* %11, i64 0, i64 0
%31 = call i32 @doit(i8* %30)
ret i32 0
}

LLVM IR (-O2):
@__const.main.text1 = [153 x i8] c"{\0A\22name\22: \22Jack (\\\22Bee\\\22) Nimble\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"
@__const.main.text2 = [79 x i8] c"[\22Sunday\22, \22Monday\22, \22Tuesday\22, \22Wednesday\22, \22Thursday\22, \22Friday\22, \22Saturday\22]\00"
@__const.main.text3 = [51 x i8] c"[\0A [0, -1, 0],\0A [1, 0, 0],\0A [0, 0, 1]\0A\09]\0A\00"
@__const.main.text4 = [247 x i8] c"{\0A\09\09\22Image\22: {\0A\09\09\09\22Width\22: 800,\0A\09\09\09\22Height\22: 600,\0A\09\09\09\22Title\22: \22View from 15th Floor\22,\0A\09\09\09\22Thumbnail\22: {\0A\09\09\09\09\22Url\22: \22http:/*www.example.com/image/481989943\22,\0A\09\09\09\09\22Height\22: 125,\0A\09\09\09\09\22Width\22: \22100\22\0A\09\09\09},\0A\09\09\09\22IDs\22: [116, 943, 234, 38793]\0A\09\09}\0A\09}\00"
@__const.main.text5 = [399 x i8] c"[\0A\09 {\0A\09 \22precision\22: \22zip\22,\0A\09 \22Latitude\22: 37.7668,\0A\09 \22Longitude\22: -122.3959,\0A\09 \22Address\22: \22\22,\0A\09 \22City\22: \22SAN FRANCISCO\22,\0A\09 \22State\22: \22CA\22,\0A\09 \22Zip\22: \2294107\22,\0A\09 \22Country\22: \22US\22\0A\09 },\0A\09 {\0A\09 \22precision\22: \22zip\22,\0A\09 \22Latitude\22: 37.371991,\0A\09 \22Longitude\22: -122.026020,\0A\09 \22Address\22: \22\22,\0A\09 \22City\22: \22SUNNYVALE\22,\0A\09 \22State\22: \22CA\22,\0A\09 \22Zip\22: \2294085\22,\0A\09 \22Country\22: \22US\22\0A\09 }\0A\09 ]\00"
@__const.main.text6 = [53 x i8] c"{ \22big int\22: 4000000000, \22minus10\22: -10000000000 }\00"
@.str = [20 x i8] c"long long int test:\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [153 x i8]
%4 = alloca [79 x i8]
%5 = alloca [51 x i8]
%6 = alloca [247 x i8]
%7 = alloca [399 x i8]
%8 = alloca [53 x i8]
%9 = getelementptr inbounds [153 x i8], [153 x i8]* %3, i64 0, i64 0
%10 = getelementptr inbounds [79 x i8], [79 x i8]* %4, i64 0, i64 0
%11 = getelementptr inbounds [51 x i8], [51 x i8]* %5, i64 0, i64 0
%12 = getelementptr inbounds [247 x i8], [247 x i8]* %6, i64 0, i64 0
%13 = getelementptr inbounds [399 x i8], [399 x i8]* %7, i64 0, i64 0
%14 = call i32 @doit(i8* %9)
%15 = call i32 @doit(i8* %10)
%16 = call i32 @doit(i8* %11)
%17 = call i32 @doit(i8* %12)
%18 = call i32 @doit(i8* %13)
%19 = call i32 (...) @create_objects()
%20 = getelementptr inbounds [53 x i8], [53 x i8]* %8, i64 0, i64 0
%21 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%22 = call i32 @doit(i8* %20)
ret i32 0
}