#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*/ dofile(char *);
int /*<<< orphan*/ doit(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);
  dofile("./tests/test1");
  dofile("./tests/test2");
  dofile("./tests/test3");
  dofile("./tests/test4");
  dofile("./tests/test5");
  create_objects();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x3d0,%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>
lea    0x11ab(%rip),%rdi
call   1030 <dofile@plt>
lea    0x11ad(%rip),%rdi
call   1030 <dofile@plt>
lea    0x11af(%rip),%rdi
call   1030 <dofile@plt>
lea    0x11b1(%rip),%rdi
call   1030 <dofile@plt>
lea    0x11b3(%rip),%rdi
call   1030 <dofile@plt>
mov    $0x0,%al
call   1060 <create_objects@plt>
xor    %eax,%eax
add    $0x3d0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x3c0,%rsp
lea    0xead(%rip),%rsi
lea    0x90(%rsp),%r14
mov    $0x99,%edx
mov    %r14,%rdi
call   1040 <memcpy@plt>
movups 0xf70(%rip),%xmm0
movups %xmm0,0x7f(%rsp)
movaps 0xf55(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xf39(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xf1d(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xf01(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xf65(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xf49(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xf2d(%rip),%xmm0
movaps %xmm0,(%rsp)
movl   $0xa5d20,0x2f(%rsp)
lea    0xf5a(%rip),%rsi
lea    0x130(%rsp),%r15
mov    $0xf7,%edx
mov    %r15,%rdi
call   1040 <memcpy@plt>
lea    0x103e(%rip),%rsi
lea    0x230(%rsp),%rbx
mov    $0x18f,%edx
mov    %rbx,%rdi
call   1040 <memcpy@plt>
mov    %r14,%rdi
call   1050 <doit@plt>
lea    0x40(%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>
lea    0x1187(%rip),%rdi
call   1030 <dofile@plt>
lea    0x1189(%rip),%rdi
call   1030 <dofile@plt>
lea    0x118b(%rip),%rdi
call   1030 <dofile@plt>
lea    0x118d(%rip),%rdi
call   1030 <dofile@plt>
lea    0x118f(%rip),%rdi
call   1030 <dofile@plt>
xor    %eax,%eax
call   1060 <create_objects@plt>
xor    %eax,%eax
add    $0x3c0,%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 ]\0A\00"
@__const.main.text4 = [247 x i8] c"{\0A \22Image\22: {\0A \22Width\22: 800,\0A \22Height\22: 600,\0A \22Title\22: \22View from 15th Floor\22,\0A \22Thumbnail\22: {\0A \22Url\22: \22http:/*www.example.com/image/481989943\22,\0A \22Height\22: 125,\0A \22Width\22: \22100\22\0A },\0A \22IDs\22: [116, 943, 234, 38793]\0A }\0A }\00"
@__const.main.text5 = [399 x i8] c"[\0A {\0A \22precision\22: \22zip\22,\0A \22Latitude\22: 37.7668,\0A \22Longitude\22: -122.3959,\0A \22Address\22: \22\22,\0A \22City\22: \22SAN FRANCISCO\22,\0A \22State\22: \22CA\22,\0A \22Zip\22: \2294107\22,\0A \22Country\22: \22US\22\0A },\0A {\0A \22precision\22: \22zip\22,\0A \22Latitude\22: 37.371991,\0A \22Longitude\22: -122.026020,\0A \22Address\22: \22\22,\0A \22City\22: \22SUNNYVALE\22,\0A \22State\22: \22CA\22,\0A \22Zip\22: \2294085\22,\0A \22Country\22: \22US\22\0A }\0A ]\00"
@.str = [14 x i8] c"./tests/test1\00"
@.str.1 = [14 x i8] c"./tests/test2\00"
@.str.2 = [14 x i8] c"./tests/test3\00"
@.str.3 = [14 x i8] c"./tests/test4\00"
@.str.4 = [14 x i8] c"./tests/test5\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]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%11 = bitcast [153 x i8]* %6 to i8*
%12 = bitcast [79 x i8]* %7 to i8*
%13 = bitcast [51 x i8]* %8 to i8*
%14 = bitcast [247 x i8]* %9 to i8*
%15 = bitcast [399 x i8]* %10 to i8*
%16 = getelementptr inbounds [153 x i8], [153 x i8]* %6, i64 0, i64 0
%17 = call i32 @doit(i8* %16)
%18 = getelementptr inbounds [79 x i8], [79 x i8]* %7, i64 0, i64 0
%19 = call i32 @doit(i8* %18)
%20 = getelementptr inbounds [51 x i8], [51 x i8]* %8, i64 0, i64 0
%21 = call i32 @doit(i8* %20)
%22 = getelementptr inbounds [247 x i8], [247 x i8]* %9, i64 0, i64 0
%23 = call i32 @doit(i8* %22)
%24 = getelementptr inbounds [399 x i8], [399 x i8]* %10, i64 0, i64 0
%25 = call i32 @doit(i8* %24)
%26 = call i32 @dofile(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%27 = call i32 @dofile(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%28 = call i32 @dofile(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%29 = call i32 @dofile(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%30 = call i32 @dofile(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%31 = call i32 (...) @create_objects()
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 ]\0A\00"
@__const.main.text4 = [247 x i8] c"{\0A \22Image\22: {\0A \22Width\22: 800,\0A \22Height\22: 600,\0A \22Title\22: \22View from 15th Floor\22,\0A \22Thumbnail\22: {\0A \22Url\22: \22http:/*www.example.com/image/481989943\22,\0A \22Height\22: 125,\0A \22Width\22: \22100\22\0A },\0A \22IDs\22: [116, 943, 234, 38793]\0A }\0A }\00"
@__const.main.text5 = [399 x i8] c"[\0A {\0A \22precision\22: \22zip\22,\0A \22Latitude\22: 37.7668,\0A \22Longitude\22: -122.3959,\0A \22Address\22: \22\22,\0A \22City\22: \22SAN FRANCISCO\22,\0A \22State\22: \22CA\22,\0A \22Zip\22: \2294107\22,\0A \22Country\22: \22US\22\0A },\0A {\0A \22precision\22: \22zip\22,\0A \22Latitude\22: 37.371991,\0A \22Longitude\22: -122.026020,\0A \22Address\22: \22\22,\0A \22City\22: \22SUNNYVALE\22,\0A \22State\22: \22CA\22,\0A \22Zip\22: \2294085\22,\0A \22Country\22: \22US\22\0A }\0A ]\00"
@.str = [14 x i8] c"./tests/test1\00"
@.str.1 = [14 x i8] c"./tests/test2\00"
@.str.2 = [14 x i8] c"./tests/test3\00"
@.str.3 = [14 x i8] c"./tests/test4\00"
@.str.4 = [14 x i8] c"./tests/test5\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 = getelementptr inbounds [153 x i8], [153 x i8]* %3, i64 0, i64 0
%9 = getelementptr inbounds [79 x i8], [79 x i8]* %4, i64 0, i64 0
%10 = getelementptr inbounds [51 x i8], [51 x i8]* %5, i64 0, i64 0
%11 = getelementptr inbounds [247 x i8], [247 x i8]* %6, i64 0, i64 0
%12 = getelementptr inbounds [399 x i8], [399 x i8]* %7, i64 0, i64 0
%13 = call i32 @doit(i8* %8)
%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 @dofile(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%19 = call i32 @dofile(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%20 = call i32 @dofile(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%21 = call i32 @dofile(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%22 = call i32 @dofile(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%23 = call i32 (...) @create_objects()
ret i32 0
}