#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 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);
  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    0xea9(%rip),%rsi
mov    $0x99,%edx
call   1030 <memcpy@plt>
lea    -0x100(%rbp),%rdi
lea    0xf31(%rip),%rsi
mov    $0x4f,%edx
call   1030 <memcpy@plt>
lea    -0x140(%rbp),%rdi
lea    0xf69(%rip),%rsi
mov    $0x33,%edx
call   1030 <memcpy@plt>
lea    -0x240(%rbp),%rdi
lea    0xf91(%rip),%rsi
mov    $0xf7,%edx
call   1030 <memcpy@plt>
lea    -0x3d0(%rbp),%rdi
lea    0x1079(%rip),%rsi
mov    $0x18f,%edx
call   1030 <memcpy@plt>
lea    -0xb0(%rbp),%rdi
call   1040 <doit@plt>
mov    $0x0,%al
call   1050 <create_objects@plt>
xor    %eax,%eax
add    $0x3d0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0xa0,%rsp
lea    0xec1(%rip),%rsi
mov    %rsp,%rbx
mov    $0x99,%edx
mov    %rbx,%rdi
call   1030 <memcpy@plt>
mov    %rbx,%rdi
call   1040 <doit@plt>
xor    %eax,%eax
call   1050 <create_objects@plt>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbx
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"
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 = 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"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [153 x i8]
%4 = getelementptr inbounds [153 x i8], [153 x i8]* %3, i64 0, i64 0
%5 = call i32 @doit(i8* %4)
%6 = call i32 (...) @create_objects()
ret i32 0
}