#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 */
typedef int /*<<< orphan*/ pointer;
typedef int /*<<< orphan*/ name;
typedef int /*<<< orphan*/ full_name;
typedef int /*<<< orphan*/ areas;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[]) {
  char full_name[] = {'Z', 'e', 'd', ' ', 'A', '.', ' ', 'S', 'h', 'a', 'w'};
  int areas[] = {10, 12, 13, 14, 20};
  char name[] = "Zed";
  char *pointer;
  areas[6] = 22;
  areas[7] = 23;
  areas[8] = name[0];
  areas[9] = 24;
  printf("%d, %d, %d, %c", areas[6], areas[7], areas[9], areas[8]);
  printf("The size of an int: %ld\n", sizeof(int));
  printf("The size of areas (int[]): %ld\n", sizeof(areas));
  printf("The number of ints in areas: %ld\n", sizeof(areas) / sizeof(int));
  printf("The first area is %d, the 2nd %d. \n", areas[10], areas[1]);
  printf("The size of a char: %ld\n", sizeof(char));
  printf("The size of a name (char[]): %ld\n", sizeof(name));
  printf("The number of chars: %ld\n", sizeof(name) / sizeof(char));
  printf("The size of full name (char[]): %ld\n", sizeof(full_name));
  printf("The number of chars: %ld\n", sizeof(full_name) / sizeof(char));
  printf("The size of a double: %ld\n", sizeof(double));
  printf("The size of a short: %ld\n", sizeof(short));
  printf("The size of a long: %ld\n", sizeof(long));
  printf("The size of a void: %ld\n", sizeof(void));
  printf("The size of a pointer: %ld\n", sizeof(pointer));
  printf("name=\"%s\" and full_name=\"%s\"\n", name, full_name);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0xed3(%rip),%rax
mov    %rax,-0x1b(%rbp)
mov    0xed0(%rip),%ax
mov    %ax,-0x13(%rbp)
mov    0xec8(%rip),%al
mov    %al,-0x11(%rbp)
mov    0xec4(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xec1(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xebf(%rip),%eax
mov    %eax,-0x20(%rbp)
mov    0xeba(%rip),%eax
mov    %eax,-0x34(%rbp)
movl   $0x16,-0x18(%rbp)
movl   $0x17,-0x14(%rbp)
movsbl -0x34(%rbp),%eax
mov    %eax,-0x10(%rbp)
movl   $0x18,-0xc(%rbp)
mov    -0x18(%rbp),%esi
mov    -0x14(%rbp),%edx
mov    -0xc(%rbp),%ecx
mov    -0x10(%rbp),%r8d
lea    0xe8b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe8c(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe92(%rip),%rdi
mov    $0x14,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe9f(%rip),%rdi
mov    $0x5,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
mov    -0x2c(%rbp),%edx
lea    0xea8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xebe(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec4(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed3(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeda(%rip),%rdi
mov    $0xb,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xead(%rip),%rdi
mov    $0xb,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee1(%rip),%rdi
mov    $0x2,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeee(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef4(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x34(%rbp),%rsi
lea    -0x1b(%rbp),%rdx
lea    0xef5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
movabs $0x53202e412064655a,%rax
2e 20 53
mov    %rax,0x10(%rsp)
movl   $0x77616853,0x17(%rsp)
77
movl   $0x64655a,0xc(%rsp)
lea    0xed0(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xed1(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xed7(%rip),%rdi
mov    $0x14,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee4(%rip),%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef3(%rip),%rdi
mov    $0xc,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf04(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf0a(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf19(%rip),%rbx
mov    $0x4,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf1d(%rip),%rdi
mov    $0xb,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0xb,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf20(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf28(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf2f(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf35(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf3b(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf44(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x10(%rsp),%rdx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.full_name = [11 x i8] c"Zed A. Shaw"
@__const.main.areas = [5 x i32] [i32 10, i32 12, i32 13, i32 14, i32 20]
@__const.main.name = [4 x i8] c"Zed\00"
@.str = [15 x i8] c"%d, %d, %d, %c\00"
@.str.1 = [25 x i8] c"The size of an int: %ld\0A\00"
@.str.2 = [32 x i8] c"The size of areas (int[]): %ld\0A\00"
@.str.3 = [34 x i8] c"The number of ints in areas: %ld\0A\00"
@.str.4 = [36 x i8] c"The first area is %d, the 2nd %d. \0A\00"
@.str.5 = [25 x i8] c"The size of a char: %ld\0A\00"
@.str.6 = [34 x i8] c"The size of a name (char[]): %ld\0A\00"
@.str.7 = [26 x i8] c"The number of chars: %ld\0A\00"
@.str.8 = [37 x i8] c"The size of full name (char[]): %ld\0A\00"
@.str.9 = [27 x i8] c"The size of a double: %ld\0A\00"
@.str.10 = [26 x i8] c"The size of a short: %ld\0A\00"
@.str.11 = [25 x i8] c"The size of a long: %ld\0A\00"
@.str.12 = [25 x i8] c"The size of a void: %ld\0A\00"
@.str.13 = [28 x i8] c"The size of a pointer: %ld\0A\00"
@.str.14 = [30 x i8] c"name=\22%s\22 and full_name=\22%s\22\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [11 x i8]
%7 = alloca [5 x i32]
%8 = alloca [4 x i8]
%9 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = bitcast [11 x i8]* %6 to i8*
%11 = bitcast [5 x i32]* %7 to i8*
%12 = bitcast [4 x i8]* %8 to i8*
%13 = getelementptr inbounds [5 x i32], [5 x i32]* %7, i64 0, i64 6
store i32 22, i32* %13
%14 = getelementptr inbounds [5 x i32], [5 x i32]* %7, i64 0, i64 7
store i32 23, i32* %14
%15 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 0
%16 = load i8, i8* %15
%17 = sext i8 %16 to i32
%18 = getelementptr inbounds [5 x i32], [5 x i32]* %7, i64 0, i64 8
store i32 %17, i32* %18
%19 = getelementptr inbounds [5 x i32], [5 x i32]* %7, i64 0, i64 9
store i32 24, i32* %19
%20 = getelementptr inbounds [5 x i32], [5 x i32]* %7, i64 0, i64 6
%21 = load i32, i32* %20
%22 = getelementptr inbounds [5 x i32], [5 x i32]* %7, i64 0, i64 7
%23 = load i32, i32* %22
%24 = getelementptr inbounds [5 x i32], [5 x i32]* %7, i64 0, i64 9
%25 = load i32, i32* %24
%26 = getelementptr inbounds [5 x i32], [5 x i32]* %7, i64 0, i64 8
%27 = load i32, i32* %26
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 %21, i32 %23, i32 %25, i32 %27)
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i64 4)
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i64 20)
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i64 5)
%32 = getelementptr inbounds [5 x i32], [5 x i32]* %7, i64 0, i64 10
%33 = load i32, i32* %32
%34 = getelementptr inbounds [5 x i32], [5 x i32]* %7, i64 0, i64 1
%35 = load i32, i32* %34
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0), i32 %33, i32 %35)
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i64 1)
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i64 4)
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), i64 4)
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.8, i64 0, i64 0), i64 11)
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), i64 11)
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0), i64 8)
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0), i64 2)
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0), i64 8)
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0), i64 1)
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0), i64 8)
%47 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 0
%48 = getelementptr inbounds [11 x i8], [11 x i8]* %6, i64 0, i64 0
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0), i8* %47, i8* %48)
ret i32 0
}

LLVM IR (-O2):
@__const.main.full_name = [11 x i8] c"Zed A. Shaw"
@.str = [15 x i8] c"%d, %d, %d, %c\00"
@.str.1 = [25 x i8] c"The size of an int: %ld\0A\00"
@.str.2 = [32 x i8] c"The size of areas (int[]): %ld\0A\00"
@.str.3 = [34 x i8] c"The number of ints in areas: %ld\0A\00"
@.str.4 = [36 x i8] c"The first area is %d, the 2nd %d. \0A\00"
@.str.5 = [25 x i8] c"The size of a char: %ld\0A\00"
@.str.6 = [34 x i8] c"The size of a name (char[]): %ld\0A\00"
@.str.7 = [26 x i8] c"The number of chars: %ld\0A\00"
@.str.8 = [37 x i8] c"The size of full name (char[]): %ld\0A\00"
@.str.9 = [27 x i8] c"The size of a double: %ld\0A\00"
@.str.10 = [26 x i8] c"The size of a short: %ld\0A\00"
@.str.11 = [25 x i8] c"The size of a long: %ld\0A\00"
@.str.12 = [25 x i8] c"The size of a void: %ld\0A\00"
@.str.13 = [28 x i8] c"The size of a pointer: %ld\0A\00"
@.str.14 = [30 x i8] c"name=\22%s\22 and full_name=\22%s\22\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [11 x i8]
%4 = alloca i32
%5 = getelementptr inbounds [11 x i8], [11 x i8]* %3, i64 0, i64 0
%6 = bitcast i32* %4 to i8*
store i32 6579546, i32* %4
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 poison, i32 poison, i32 poison, i32 poison)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i64 4)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i64 20)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i64 5)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0), i32 poison, i32 12)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i64 1)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i64 4)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), i64 4)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.8, i64 0, i64 0), i64 11)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), i64 11)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0), i64 8)
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0), i64 2)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0), i64 8)
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0), i64 1)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0), i64 8)
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0), i32* %4, i8* %5)
ret i32 0
}