#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*/ 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', '\0'};
  int areas[] = {10, 12, 13, 14, 20};
  char name[] = "Zed";
  areas[0] = 100;
  name[1] = 'E';
  name[2] = 'D';
  areas[1] = name[1];
  printf("Elements of areas are {%d, %d, %d, %d}.\n", areas[0], areas[1],
         areas[2], areas[3]);
  printf("The size of an int: %ld.\n", sizeof(int));
  printf("The size of an long: %ld.\n", sizeof(long));
  printf("The size of an float: %ld.\n", sizeof(float));
  printf("The size of an double: %ld.\n", sizeof(double));
  printf("The size of an long double: %ld.\n", sizeof(long double));
  printf("The size of areas: %ld.\n", sizeof(areas));
  printf("The first area is %d, the 2nd %d.\n", areas[0], areas[1]);
  printf("The size of a char: %ld.\n", sizeof(char));
  printf("The size of name: %ld.\n", sizeof(name));
  printf("Last char in name is: %c.\n", name[3]);
  printf("The number of chars: %ld.\n", sizeof(name) / sizeof(char));
  printf("The size of the full name: %ld.\n", sizeof(full_name));
  printf("The number of characters in the full name: %ld.\n",
         sizeof(full_name) / sizeof(char));
  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,-0x1c(%rbp)
mov    0xed1(%rip),%eax
mov    %eax,-0x14(%rbp)
mov    0x109f(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0x109c(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0x109a(%rip),%eax
mov    %eax,-0x20(%rbp)
mov    0xead(%rip),%eax
mov    %eax,-0x34(%rbp)
movl   $0x64,-0x30(%rbp)
movb   $0x45,-0x33(%rbp)
movb   $0x44,-0x32(%rbp)
movsbl -0x33(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x30(%rbp),%esi
mov    -0x2c(%rbp),%edx
mov    -0x28(%rbp),%ecx
mov    -0x24(%rbp),%r8d
lea    0xe84(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe9f(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea6(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeae(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb7(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec1(%rip),%rdi
mov    $0x10,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed0(%rip),%rdi
mov    $0x14,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%esi
mov    -0x2c(%rbp),%edx
lea    0xed0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeec(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x31(%rbp),%esi
lea    0xeed(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefa(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf02(%rip),%rdi
mov    $0xc,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf10(%rip),%rdi
mov    $0xc,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x34(%rbp),%rsi
lea    -0x1c(%rbp),%rdx
lea    0xf26(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
movabs $0x53202e412064655a,%rax
2e 20 53
mov    %rax,0x8(%rsp)
movl   $0x776168,0x10(%rsp)
movl   $0x44455a,0x4(%rsp)
lea    0xed2(%rip),%rdi
mov    $0x64,%esi
mov    $0x45,%edx
mov    $0xd,%ecx
mov    $0xe,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xed8(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee7(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef0(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xefa(%rip),%rdi
mov    $0x10,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf09(%rip),%rdi
mov    $0x14,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf0f(%rip),%rdi
mov    $0x64,%esi
mov    $0x45,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf1a(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf21(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf26(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf31(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf39(%rip),%rdi
mov    $0xc,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf47(%rip),%rdi
mov    $0xc,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf65(%rip),%rdi
lea    0x4(%rsp),%rsi
lea    0x8(%rsp),%rdx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

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

LLVM IR (-O2):
@__const.main.full_name = [12 x i8] c"Zed A. Shaw\00"
@.str = [41 x i8] c"Elements of areas are {%d, %d, %d, %d}.\0A\00"
@.str.1 = [26 x i8] c"The size of an int: %ld.\0A\00"
@.str.2 = [27 x i8] c"The size of an long: %ld.\0A\00"
@.str.3 = [28 x i8] c"The size of an float: %ld.\0A\00"
@.str.4 = [29 x i8] c"The size of an double: %ld.\0A\00"
@.str.5 = [34 x i8] c"The size of an long double: %ld.\0A\00"
@.str.6 = [25 x i8] c"The size of areas: %ld.\0A\00"
@.str.7 = [35 x i8] c"The first area is %d, the 2nd %d.\0A\00"
@.str.8 = [26 x i8] c"The size of a char: %ld.\0A\00"
@.str.9 = [24 x i8] c"The size of name: %ld.\0A\00"
@.str.10 = [27 x i8] c"Last char in name is: %c.\0A\00"
@.str.11 = [27 x i8] c"The number of chars: %ld.\0A\00"
@.str.12 = [33 x i8] c"The size of the full name: %ld.\0A\00"
@.str.13 = [49 x i8] c"The number of characters in the full name: %ld.\0A\00"
@.str.14 = [26 x i8] c"name=%s and full_name=%s\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [12 x i8]
%4 = alloca i32
%5 = getelementptr inbounds [12 x i8], [12 x i8]* %3, i64 0, i64 0
%6 = bitcast i32* %4 to i8*
store i32 4474202, i32* %4
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i32 100, i32 69, i32 13, i32 14)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i64 4)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i64 8)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), i64 4)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), i64 8)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0), i64 16)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0), i64 20)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.7, i64 0, i64 0), i32 100, i32 69)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0), i64 1)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0), i64 4)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.10, i64 0, i64 0), i32 0)
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0), i64 4)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.12, i64 0, i64 0), i64 12)
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.13, i64 0, i64 0), i64 12)
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.14, i64 0, i64 0), i32* %4, i8* %5)
ret i32 0
}