#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(void) {
  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    $0x3c0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0xa0(%rbp),%rdi
lea    0xea0(%rip),%rsi
mov    $0x99,%edx
call   1040 <memcpy@plt>
lea    -0xf0(%rbp),%rdi
lea    0xf28(%rip),%rsi
mov    $0x4f,%edx
call   1040 <memcpy@plt>
lea    -0x130(%rbp),%rdi
lea    0xf60(%rip),%rsi
mov    $0x33,%edx
call   1040 <memcpy@plt>
lea    -0x230(%rbp),%rdi
lea    0xf88(%rip),%rsi
mov    $0xf7,%edx
call   1040 <memcpy@plt>
lea    -0x3c0(%rbp),%rdi
lea    0x1070(%rip),%rsi
mov    $0x18f,%edx
call   1040 <memcpy@plt>
lea    -0xa0(%rbp),%rdi
call   1050 <doit@plt>
lea    -0xf0(%rbp),%rdi
call   1050 <doit@plt>
lea    -0x130(%rbp),%rdi
call   1050 <doit@plt>
lea    -0x230(%rbp),%rdi
call   1050 <doit@plt>
lea    -0x3c0(%rbp),%rdi
call   1050 <doit@plt>
lea    0x11b2(%rip),%rdi
call   1030 <dofile@plt>
lea    0x11b4(%rip),%rdi
call   1030 <dofile@plt>
lea    0x11b6(%rip),%rdi
call   1030 <dofile@plt>
lea    0x11b8(%rip),%rdi
call   1030 <dofile@plt>
lea    0x11ba(%rip),%rdi
call   1030 <dofile@plt>
mov    $0x0,%al
call   1060 <create_objects@plt>
xor    %eax,%eax
add    $0x3c0,%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   $0xa5d09,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\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"
@.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() {
%1 = alloca i32
%2 = alloca [153 x i8]
%3 = alloca [79 x i8]
%4 = alloca [51 x i8]
%5 = alloca [247 x i8]
%6 = alloca [399 x i8]
store i32 0, i32* %1
%7 = bitcast [153 x i8]* %2 to i8*
%8 = bitcast [79 x i8]* %3 to i8*
%9 = bitcast [51 x i8]* %4 to i8*
%10 = bitcast [247 x i8]* %5 to i8*
%11 = bitcast [399 x i8]* %6 to i8*
%12 = getelementptr inbounds [153 x i8], [153 x i8]* %2, i64 0, i64 0
%13 = call i32 @doit(i8* %12)
%14 = getelementptr inbounds [79 x i8], [79 x i8]* %3, i64 0, i64 0
%15 = call i32 @doit(i8* %14)
%16 = getelementptr inbounds [51 x i8], [51 x i8]* %4, i64 0, i64 0
%17 = call i32 @doit(i8* %16)
%18 = getelementptr inbounds [247 x i8], [247 x i8]* %5, i64 0, i64 0
%19 = call i32 @doit(i8* %18)
%20 = getelementptr inbounds [399 x i8], [399 x i8]* %6, i64 0, i64 0
%21 = call i32 @doit(i8* %20)
%22 = call i32 @dofile(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%23 = call i32 @dofile(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%24 = call i32 @dofile(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%25 = call i32 @dofile(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%26 = call i32 @dofile(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%27 = 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\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"
@.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() {
%1 = alloca [153 x i8]
%2 = alloca [79 x i8]
%3 = alloca [51 x i8]
%4 = alloca [247 x i8]
%5 = alloca [399 x i8]
%6 = getelementptr inbounds [153 x i8], [153 x i8]* %1, i64 0, i64 0
%7 = getelementptr inbounds [79 x i8], [79 x i8]* %2, i64 0, i64 0
%8 = getelementptr inbounds [51 x i8], [51 x i8]* %3, i64 0, i64 0
%9 = getelementptr inbounds [247 x i8], [247 x i8]* %4, i64 0, i64 0
%10 = getelementptr inbounds [399 x i8], [399 x i8]* %5, i64 0, i64 0
%11 = call i32 @doit(i8* %6)
%12 = call i32 @doit(i8* %7)
%13 = call i32 @doit(i8* %8)
%14 = call i32 @doit(i8* %9)
%15 = call i32 @doit(i8* %10)
%16 = call i32 @dofile(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%17 = call i32 @dofile(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%18 = call i32 @dofile(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%19 = call i32 @dofile(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%20 = call i32 @dofile(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%21 = call i32 (...) @create_objects()
ret i32 0
}