#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*/ areas;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[]) {
  int areas[] = {10, 12, 13, 14, 20};
  char name[] = "Carl";
  char fullName[] = {'C', 'a', 'r', 'l', ' ', 'A', 'n', 'd', 'r', 'e',
                     'w', ' ', 'B', 'y', 'c', 'r', 'a', 'f', 't', '\0'};
  printf("The size of an int is: %ld\n", sizeof(int));
  printf("The size of areas (int[]) is: %ld\n", sizeof(areas));
  printf("The number of ints in areas (int[]): %ld\n",
         sizeof(areas) / sizeof(int));
  printf("The first area %d and the second is %d.\n", areas[0], areas[1]);
  printf("The size of char is: %ld\n", sizeof(char));
  printf("The size of name is: %ld\n", sizeof(name));
  printf("The number of chars is: %ld\n", sizeof(name) / sizeof(char));
  printf("The size of full name is: %ld\n", sizeof(fullName));
  printf("The number of chars in full name is: %ld\n",
         sizeof(fullName) / sizeof(char));
  printf("Name=\"%s\" and fullName=\"%s\"\n", name, fullName);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0xeda(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xed7(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xed5(%rip),%eax
mov    %eax,-0x20(%rbp)
mov    0xed0(%rip),%eax
mov    %eax,-0x35(%rbp)
mov    0xecb(%rip),%al
mov    %al,-0x31(%rbp)
mov    0x1019(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0x1016(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    0x1014(%rip),%eax
mov    %eax,-0x40(%rbp)
lea    0xea3(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeac(%rip),%rdi
mov    $0x14,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xebc(%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    0xee8(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeef(%rip),%rdi
mov    $0x5,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef6(%rip),%rdi
mov    $0x5,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf00(%rip),%rdi
mov    $0x14,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0c(%rip),%rdi
mov    $0x14,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x35(%rbp),%rsi
lea    -0x50(%rbp),%rdx
lea    0xf1b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
movb   $0x0,0xc(%rsp)
movl   $0x6c726143,0x8(%rsp)
6c
movaps 0x1028(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movl   $0x746661,0x20(%rsp)
lea    0xec9(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xed2(%rip),%rdi
mov    $0x14,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee2(%rip),%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef9(%rip),%rdi
mov    $0xa,%esi
mov    $0xc,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf0a(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf11(%rip),%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf18(%rip),%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf22(%rip),%rdi
mov    $0x14,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf2e(%rip),%rdi
mov    $0x14,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf45(%rip),%rdi
lea    0x8(%rsp),%rsi
lea    0x10(%rsp),%rdx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
ret

LLVM IR (-O0):
@__const.main.areas = [5 x i32] [i32 10, i32 12, i32 13, i32 14, i32 20]
@__const.main.name = [5 x i8] c"Carl\00"
@__const.main.fullName = [20 x i8] c"Carl Andrew Bycraft\00"
@.str = [28 x i8] c"The size of an int is: %ld\0A\00"
@.str.1 = [35 x i8] c"The size of areas (int[]) is: %ld\0A\00"
@.str.2 = [42 x i8] c"The number of ints in areas (int[]): %ld\0A\00"
@.str.3 = [41 x i8] c"The first area %d and the second is %d.\0A\00"
@.str.4 = [26 x i8] c"The size of char is: %ld\0A\00"
@.str.5 = [26 x i8] c"The size of name is: %ld\0A\00"
@.str.6 = [29 x i8] c"The number of chars is: %ld\0A\00"
@.str.7 = [31 x i8] c"The size of full name is: %ld\0A\00"
@.str.8 = [42 x i8] c"The number of chars in full name is: %ld\0A\00"
@.str.9 = [29 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 i8**
%5 = alloca [5 x i32]
%6 = alloca [5 x i8]
%7 = alloca [20 x i8]
store i32 %0, i32* %3
store i8** %1, i8*** %4
%8 = bitcast [5 x i32]* %5 to i8*
%9 = bitcast [5 x i8]* %6 to i8*
%10 = bitcast [20 x i8]* %7 to i8*
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i64 4)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0), i64 20)
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i64 5)
%14 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 0
%15 = load i32, i32* %14
%16 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 1
%17 = load i32, i32* %16
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0), i32 %15, i32 %17)
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i64 1)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), i64 5)
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0), i64 5)
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i64 20)
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.8, i64 0, i64 0), i64 20)
%24 = getelementptr inbounds [5 x i8], [5 x i8]* %6, i64 0, i64 0
%25 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0), i8* %24, i8* %25)
ret i32 0
}

LLVM IR (-O2):
@__const.main.name = [5 x i8] c"Carl\00"
@__const.main.fullName = [20 x i8] c"Carl Andrew Bycraft\00"
@.str = [28 x i8] c"The size of an int is: %ld\0A\00"
@.str.1 = [35 x i8] c"The size of areas (int[]) is: %ld\0A\00"
@.str.2 = [42 x i8] c"The number of ints in areas (int[]): %ld\0A\00"
@.str.3 = [41 x i8] c"The first area %d and the second is %d.\0A\00"
@.str.4 = [26 x i8] c"The size of char is: %ld\0A\00"
@.str.5 = [26 x i8] c"The size of name is: %ld\0A\00"
@.str.6 = [29 x i8] c"The number of chars is: %ld\0A\00"
@.str.7 = [31 x i8] c"The size of full name is: %ld\0A\00"
@.str.8 = [42 x i8] c"The number of chars in full name is: %ld\0A\00"
@.str.9 = [29 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 [5 x i8]
%4 = alloca [20 x i8]
%5 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%6 = getelementptr inbounds [20 x i8], [20 x i8]* %4, i64 0, i64 0
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i64 4)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0), i64 20)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i64 5)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0), i32 10, i32 12)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i64 1)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), i64 5)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0), i64 5)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i64 20)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.8, i64 0, i64 0), i64 20)
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0), i8* %5, i8* %6)
ret i32 0
}