#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*/ fullName;
typedef int /*<<< orphan*/ area;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[]) {
  int area[] = {10, 12, 13, 14, 20};
  char name[] = "Zed";
  char fullName[] = {'Z', 'e', 'd', ' ', 'A', '.',
                     ' ', 'S', 'h', 'a', 'w', '\0'};
  printf("The size of an int: %ld\n", sizeof(int));
  printf("size of area (int[]): %ld\n", sizeof(area));
  printf("number of ints in area: %ld\n", sizeof(area) / sizeof(int));
  printf("The first area is %d, the second %d\n", area[0], area[1]);
  printf("size of char %ld\n", sizeof(char));
  printf("size of name %ld\n", sizeof(name));
  printf("The number of chars %ld\n", sizeof(name) / sizeof(char));
  printf("size of fullName %ld\n", sizeof(fullName));
  printf("The number of chars in fullName: %ld\n",
         sizeof(fullName) / sizeof(char));
  printf("name = \"%s\" and fullName = \"%s\"\n", name, fullName);
  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)
lea    0xebb(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec1(%rip),%rdi
mov    $0x14,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec9(%rip),%rdi
mov    $0x5,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%esi
mov    -0x2c(%rbp),%edx
lea    0xecd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee4(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee3(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee2(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
mov    $0xc,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeeb(%rip),%rdi
mov    $0xc,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x34(%rbp),%rsi
lea    -0x40(%rbp),%rdx
lea    0xef6(%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
movl   $0x64655a,0x4(%rsp)
movabs $0x53202e412064655a,%rax
2e 20 53
mov    %rax,0x8(%rsp)
movl   $0x776168,0x10(%rsp)
lea    0xed2(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xed8(%rip),%rdi
mov    $0x14,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee0(%rip),%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeea(%rip),%rdi
mov    $0xa,%esi
mov    $0xc,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef7(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef6(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef5(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xefb(%rip),%rdi
mov    $0xc,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xefe(%rip),%rdi
mov    $0xc,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf11(%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.area = [5 x i32] [i32 10, i32 12, i32 13, i32 14, i32 20]
@__const.main.name = [4 x i8] c"Zed\00"
@__const.main.fullName = [12 x i8] c"Zed A. Shaw\00"
@.str = [25 x i8] c"The size of an int: %ld\0A\00"
@.str.1 = [27 x i8] c"size of area (int[]): %ld\0A\00"
@.str.2 = [29 x i8] c"number of ints in area: %ld\0A\00"
@.str.3 = [37 x i8] c"The first area is %d, the second %d\0A\00"
@.str.4 = [18 x i8] c"size of char %ld\0A\00"
@.str.5 = [18 x i8] c"size of name %ld\0A\00"
@.str.6 = [25 x i8] c"The number of chars %ld\0A\00"
@.str.7 = [22 x i8] c"size of fullName %ld\0A\00"
@.str.8 = [38 x i8] c"The number of chars in fullName: %ld\0A\00"
@.str.9 = [33 x i8] c"name = \22%s\22 and fullName = \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 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 4)
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i64 20)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i64 5)
%15 = getelementptr inbounds [5 x i32], [5 x i32]* %6, i64 0, i64 0
%16 = load i32, i32* %15
%17 = getelementptr inbounds [5 x i32], [5 x i32]* %6, i64 0, i64 1
%18 = load i32, i32* %17
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 %16, i32 %18)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i64 1)
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i64 4)
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0), i64 4)
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i64 12)
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0), i64 12)
%25 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%26 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 0
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0), i8* %25, i8* %26)
ret i32 0
}

LLVM IR (-O2):
@__const.main.fullName = [12 x i8] c"Zed A. Shaw\00"
@.str = [25 x i8] c"The size of an int: %ld\0A\00"
@.str.1 = [27 x i8] c"size of area (int[]): %ld\0A\00"
@.str.2 = [29 x i8] c"number of ints in area: %ld\0A\00"
@.str.3 = [37 x i8] c"The first area is %d, the second %d\0A\00"
@.str.4 = [18 x i8] c"size of char %ld\0A\00"
@.str.5 = [18 x i8] c"size of name %ld\0A\00"
@.str.6 = [25 x i8] c"The number of chars %ld\0A\00"
@.str.7 = [22 x i8] c"size of fullName %ld\0A\00"
@.str.8 = [38 x i8] c"The number of chars in fullName: %ld\0A\00"
@.str.9 = [33 x i8] c"name = \22%s\22 and fullName = \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 6579546, i32* %3
%6 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 0
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 4)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i64 20)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i64 5)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 10, i32 12)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i64 1)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i64 4)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0), i64 4)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i64 12)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0), i64 12)
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0), i32* %3, i8* %6)
ret i32 0
}