#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);
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'};
  printf("Size of an int: %ld\n", sizeof(int));
  printf("Size areas: %ld\n", sizeof(areas));
  printf("first area is %i\n", areas[0]);
  printf("the size of a char: %ld\n", sizeof(char));
  printf("the size of name: %ld\n", sizeof(name));
  printf("Number of characters: %ld\n", sizeof(full_name) / sizeof(char));
  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
call   1030 <printf@plt>
lea    0xebf(%rip),%rdi
mov    $0x14,%esi
call   1030 <printf@plt>
mov    -0x30(%rbp),%esi
lea    0xebc(%rip),%rdi
call   1030 <printf@plt>
lea    0xec2(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xeca(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xed0(%rip),%rdi
mov    $0xc,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xeec(%rip),%rdi
mov    $0x14,%esi
call   1030 <printf@plt>
lea    0xeec(%rip),%rdi
mov    $0xa,%esi
call   1030 <printf@plt>
lea    0xeed(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xef5(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xefb(%rip),%rdi
mov    $0xc,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
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 = [21 x i8] c"Size of an int: %ld\0A\00"
@.str.1 = [17 x i8] c"Size areas: %ld\0A\00"
@.str.2 = [18 x i8] c"first area is %i\0A\00"
@.str.3 = [25 x i8] c"the size of a char: %ld\0A\00"
@.str.4 = [23 x i8] c"the size of name: %ld\0A\00"
@.str.5 = [27 x i8] c"Number of characters: %ld\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 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 4)
%13 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 20)
%14 = getelementptr inbounds [5 x i32], [5 x i32]* %6, i64 0, i64 0
%15 = load i32, i32* %14
%16 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 %15)
%17 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i32 1)
%18 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i32 4)
%19 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i32 12)
ret i32 0
}

LLVM IR (-O2):
@.str = [21 x i8] c"Size of an int: %ld\0A\00"
@.str.1 = [17 x i8] c"Size areas: %ld\0A\00"
@.str.2 = [18 x i8] c"first area is %i\0A\00"
@.str.3 = [25 x i8] c"the size of a char: %ld\0A\00"
@.str.4 = [23 x i8] c"the size of name: %ld\0A\00"
@.str.5 = [27 x i8] c"Number of characters: %ld\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 4)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 20)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 10)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i32 1)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i32 4)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i32 12)
ret i32 0
}