#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[]) {
  int areas[] = {10, 12, 13, 14, 20};
  char name[] = "Zed";
  char full_name[] = {'Z', 'e', 'd', ' ', 'A', '.',
                      ' ', 'S', 'h', 'a', 'w', '\0'};
  areas[0] = 100;
  areas[1] = 101;
  areas[2] = 102;
  areas[3] = 103;
  areas[4] = 104;
  name[0] = 'n';
  name[1] = 'a';
  name[2] = 't';
  full_name[0] = 'n';
  full_name[1] = 'a';
  full_name[2] = 't';
  full_name[3] = 'e';
  full_name[4] = 'p';
  full_name[5] = 'a';
  full_name[6] = 'l';
  full_name[7] = 'm';
  full_name[8] = '.';
  full_name[9] = '.';
  full_name[10] = '.';
  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[0], areas[1]);
  printf("The size of a char: %ld\n", sizeof(char));
  printf("The size of 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("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,-0x30(%rbp)
mov    0xed0(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xece(%rip),%eax
mov    %eax,-0x20(%rbp)
mov    0xec9(%rip),%eax
mov    %eax,-0x34(%rbp)
mov    0xec3(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xec1(%rip),%eax
mov    %eax,-0x38(%rbp)
movl   $0x64,-0x30(%rbp)
movl   $0x65,-0x2c(%rbp)
movl   $0x66,-0x28(%rbp)
movl   $0x67,-0x24(%rbp)
movl   $0x68,-0x20(%rbp)
movb   $0x6e,-0x34(%rbp)
movb   $0x61,-0x33(%rbp)
movb   $0x74,-0x32(%rbp)
movb   $0x6e,-0x40(%rbp)
movb   $0x61,-0x3f(%rbp)
movb   $0x74,-0x3e(%rbp)
movb   $0x65,-0x3d(%rbp)
movb   $0x70,-0x3c(%rbp)
movb   $0x61,-0x3b(%rbp)
movb   $0x6c,-0x3a(%rbp)
movb   $0x6d,-0x39(%rbp)
movb   $0x2e,-0x38(%rbp)
movb   $0x2e,-0x37(%rbp)
movb   $0x2e,-0x36(%rbp)
lea    0xe60(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe66(%rip),%rdi
mov    $0x14,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe73(%rip),%rdi
mov    $0x5,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%esi
mov    -0x2c(%rbp),%edx
lea    0xe7c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe91(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe97(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea4(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeab(%rip),%rdi
mov    $0xc,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe7e(%rip),%rdi
mov    $0xc,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x34(%rbp),%rsi
lea    -0x40(%rbp),%rdx
lea    0xea2(%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
movl   $0x74616e,0xc(%rsp)
movl   $0x776168,0x18(%rsp)
movabs $0x6d6c61706574616e,%rax
61 6c 6d
mov    %rax,0x10(%rsp)
movw   $0x2e2e,0x18(%rsp)
movb   $0x2e,0x1a(%rsp)
lea    0xec5(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xecb(%rip),%rdi
mov    $0x14,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xed8(%rip),%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee7(%rip),%rdi
mov    $0x64,%esi
mov    $0x65,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef2(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef8(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf05(%rip),%rbx
mov    $0x4,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf09(%rip),%rdi
mov    $0xc,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0xc,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf0c(%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.areas = [5 x i32] [i32 10, i32 12, i32 13, i32 14, i32 20]
@__const.main.name = [4 x i8] c"Zed\00"
@__const.main.full_name = [12 x i8] c"Zed A. Shaw\00"
@.str = [25 x i8] c"The size of an int: %ld\0A\00"
@.str.1 = [32 x i8] c"The size of areas (int[]): %ld\0A\00"
@.str.2 = [34 x i8] c"The number of ints in areas: %ld\0A\00"
@.str.3 = [35 x i8] c"The first area is %d, the 2nd %d.\0A\00"
@.str.4 = [25 x i8] c"The size of a char: %ld\0A\00"
@.str.5 = [32 x i8] c"The size of name (char[]): %ld\0A\00"
@.str.6 = [26 x i8] c"The number of chars: %ld\0A\00"
@.str.7 = [37 x i8] c"The size of full_name (char[]): %ld\0A\00"
@.str.8 = [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 [5 x i32]
%7 = alloca [4 x i8]
%8 = alloca [12 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = bitcast [5 x i32]* %6 to i8*
%10 = bitcast [4 x i8]* %7 to i8*
%11 = bitcast [12 x i8]* %8 to i8*
%12 = getelementptr inbounds [5 x i32], [5 x i32]* %6, i64 0, i64 0
store i32 100, i32* %12
%13 = getelementptr inbounds [5 x i32], [5 x i32]* %6, i64 0, i64 1
store i32 101, i32* %13
%14 = getelementptr inbounds [5 x i32], [5 x i32]* %6, i64 0, i64 2
store i32 102, i32* %14
%15 = getelementptr inbounds [5 x i32], [5 x i32]* %6, i64 0, i64 3
store i32 103, i32* %15
%16 = getelementptr inbounds [5 x i32], [5 x i32]* %6, i64 0, i64 4
store i32 104, i32* %16
%17 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
store i8 110, i8* %17
%18 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 1
store i8 97, i8* %18
%19 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 2
store i8 116, i8* %19
%20 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 0
store i8 110, i8* %20
%21 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 1
store i8 97, i8* %21
%22 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 2
store i8 116, i8* %22
%23 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 3
store i8 101, i8* %23
%24 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 4
store i8 112, i8* %24
%25 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 5
store i8 97, i8* %25
%26 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 6
store i8 108, i8* %26
%27 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 7
store i8 109, i8* %27
%28 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 8
store i8 46, i8* %28
%29 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 9
store i8 46, i8* %29
%30 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 10
store i8 46, i8* %30
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 4)
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i64 20)
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), i64 5)
%34 = getelementptr inbounds [5 x i32], [5 x i32]* %6, i64 0, i64 0
%35 = load i32, i32* %34
%36 = getelementptr inbounds [5 x i32], [5 x i32]* %6, i64 0, i64 1
%37 = load i32, i32* %36
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i32 %35, i32 %37)
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i64 1)
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i64 4)
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i64 4)
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0), i64 12)
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i64 12)
%44 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%45 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 0
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.8, i64 0, i64 0), i8* %44, i8* %45)
ret i32 0
}

LLVM IR (-O2):
@__const.main.full_name = [12 x i8] c"Zed A. Shaw\00"
@.str = [25 x i8] c"The size of an int: %ld\0A\00"
@.str.1 = [32 x i8] c"The size of areas (int[]): %ld\0A\00"
@.str.2 = [34 x i8] c"The number of ints in areas: %ld\0A\00"
@.str.3 = [35 x i8] c"The first area is %d, the 2nd %d.\0A\00"
@.str.4 = [25 x i8] c"The size of a char: %ld\0A\00"
@.str.5 = [32 x i8] c"The size of name (char[]): %ld\0A\00"
@.str.6 = [26 x i8] c"The number of chars: %ld\0A\00"
@.str.7 = [37 x i8] c"The size of full_name (char[]): %ld\0A\00"
@.str.8 = [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 i32
%4 = alloca [12 x i8]
%5 = bitcast i32* %3 to i8*
store i32 7627118, i32* %3
%6 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 0
store i8 110, i8* %6
%7 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 1
store i8 97, i8* %7
%8 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 2
store i8 116, i8* %8
%9 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 3
store i8 101, i8* %9
%10 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 4
store i8 112, i8* %10
%11 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 5
store i8 97, i8* %11
%12 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 6
store i8 108, i8* %12
%13 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 7
store i8 109, i8* %13
%14 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 8
store i8 46, i8* %14
%15 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 9
store i8 46, i8* %15
%16 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 10
store i8 46, i8* %16
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 4)
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i64 20)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), i64 5)
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i32 100, i32 101)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i64 1)
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i64 4)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i64 4)
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0), i64 12)
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i64 12)
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.8, i64 0, i64 0), i32* %3, i8* %6)
ret i32 0
}