#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[] = {12, 20, 14};
  char name[] = "Hckrtst";
  char full_name[] = {'h', 'c', 'k', 'r', 't', '\0'};
  printf("Size of int is %d\n", sizeof(int));
  printf("Num of ints in areas is %d\n", sizeof(areas) / sizeof(int));
  printf("Size of areas %ld\n", sizeof(areas));
  printf("Size of name %ld\n", sizeof(name));
  printf("Size of full_name %ld\n", sizeof(full_name));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%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    0xecb(%rip),%rax
mov    %rax,-0x24(%rbp)
mov    0xec9(%rip),%eax
mov    %eax,-0x2a(%rbp)
mov    0xec3(%rip),%ax
mov    %ax,-0x26(%rbp)
lea    0xeba(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xebc(%rip),%rdi
mov    $0x3,%esi
call   1030 <printf@plt>
lea    0xec7(%rip),%rdi
mov    $0xc,%esi
call   1030 <printf@plt>
lea    0xec9(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xeca(%rip),%rdi
mov    $0x6,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xeea(%rip),%rdi
mov    $0x3,%esi
call   1030 <printf@plt>
lea    0xef5(%rip),%rdi
mov    $0xc,%esi
call   1030 <printf@plt>
lea    0xef7(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xef8(%rip),%rdi
mov    $0x6,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@__const.main.areas = [3 x i32] [i32 12, i32 20, i32 14]
@__const.main.name = [8 x i8] c"Hckrtst\00"
@__const.main.full_name = [6 x i8] c"hckrt\00"
@.str = [19 x i8] c"Size of int is %d\0A\00"
@.str.1 = [28 x i8] c"Num of ints in areas is %d\0A\00"
@.str.2 = [19 x i8] c"Size of areas %ld\0A\00"
@.str.3 = [18 x i8] c"Size of name %ld\0A\00"
@.str.4 = [23 x i8] c"Size of full_name %ld\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [3 x i32]
%7 = alloca [8 x i8]
%8 = alloca [6 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = bitcast [3 x i32]* %6 to i8*
%10 = bitcast [8 x i8]* %7 to i8*
%11 = bitcast [6 x i8]* %8 to i8*
%12 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 4)
%13 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 3)
%14 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 12)
%15 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 8)
%16 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i32 6)
ret i32 0
}

LLVM IR (-O2):
@.str = [19 x i8] c"Size of int is %d\0A\00"
@.str.1 = [28 x i8] c"Num of ints in areas is %d\0A\00"
@.str.2 = [19 x i8] c"Size of areas %ld\0A\00"
@.str.3 = [18 x i8] c"Size of name %ld\0A\00"
@.str.4 = [23 x i8] c"Size of full_name %ld\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 4)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 3)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 12)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 8)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i32 6)
ret i32 0
}