#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*/ three;
typedef int /*<<< orphan*/ six;
typedef int /*<<< orphan*/ four;
typedef int /*<<< orphan*/ five;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main(void) {
  int three[3] = {5, 10, 30};
  char four[4] = {'a', 'b', 'c', '\0'};
  float five[5] = {1.1, 2.2, 3.3, 4.4, 5.5};
  double six[6] = {1.111111, 2.2222222222, 3.33333333333,
                   4.444444, 5.5555555,    6.6666666};
  printf("The size of an int is: %d\n", sizeof(int));
  printf("The size of int array three is: %d\n", sizeof(three));
  printf("The size of a char is: %d\n", sizeof(char));
  printf("The size of char array four is: %d\n", sizeof(four));
  printf("The size of a float is: %d\n", sizeof(float));
  printf("The size of float array five is: %d\n", sizeof(five));
  printf("The size of a double is: %d\n", sizeof(double));
  printf("The size of double array siz is: %d\n", sizeof(six));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xefa(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    0xef8(%rip),%eax
mov    %eax,-0x8(%rbp)
mov    0xf0b(%rip),%eax
mov    %eax,-0x14(%rbp)
mov    0xeed(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xeea(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xee8(%rip),%eax
mov    %eax,-0x20(%rbp)
lea    -0x60(%rbp),%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1040 <memset@plt>
movsd  0xea5(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xe90(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xe7b(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xe66(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xe51(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xe3c(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
lea    0xe88(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xe92(%rip),%rdi
mov    $0xc,%esi
call   1030 <printf@plt>
lea    0xea5(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xeaf(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xec2(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xecd(%rip),%rdi
mov    $0x14,%esi
call   1030 <printf@plt>
lea    0xee1(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xeed(%rip),%rdi
mov    $0x30,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xef2(%rip),%rdi
mov    $0xc,%esi
call   1030 <printf@plt>
lea    0xf05(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xf0f(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf22(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf2d(%rip),%rdi
mov    $0x14,%esi
call   1030 <printf@plt>
lea    0xf41(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf4d(%rip),%rdi
mov    $0x30,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@__const.main.three = [3 x i32] [i32 5, i32 10, i32 30]
@__const.main.four = [4 x i8] c"abc\00"
@__const.main.five = [5 x float] [float 0x3FF19999A0000000, float 0x40019999A0000000, float 0x400A666660000000, float 0x40119999A0000000, float 5.500000e+00]
@.str = [27 x i8] c"The size of an int is: %d\0A\00"
@.str.1 = [36 x i8] c"The size of int array three is: %d\0A\00"
@.str.2 = [27 x i8] c"The size of a char is: %d\0A\00"
@.str.3 = [36 x i8] c"The size of char array four is: %d\0A\00"
@.str.4 = [28 x i8] c"The size of a float is: %d\0A\00"
@.str.5 = [37 x i8] c"The size of float array five is: %d\0A\00"
@.str.6 = [29 x i8] c"The size of a double is: %d\0A\00"
@.str.7 = [37 x i8] c"The size of double array siz is: %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [3 x i32]
%3 = alloca [4 x i8]
%4 = alloca [5 x float]
%5 = alloca [6 x double]
store i32 0, i32* %1
%6 = bitcast [3 x i32]* %2 to i8*
%7 = bitcast [4 x i8]* %3 to i8*
%8 = bitcast [5 x float]* %4 to i8*
%9 = bitcast [6 x double]* %5 to i8*
%10 = bitcast i8* %9 to [6 x double]*
%11 = getelementptr inbounds [6 x double], [6 x double]* %10, i32 0, i32 0
store double 0x3FF1C71C53F39D1B, double* %11
%12 = getelementptr inbounds [6 x double], [6 x double]* %10, i32 0, i32 1
store double 0x4001C71C71C658FA, double* %12
%13 = getelementptr inbounds [6 x double], [6 x double]* %10, i32 0, i32 2
store double 0x400AAAAAAAAA8D59, double* %13
%14 = getelementptr inbounds [6 x double], [6 x double]* %10, i32 0, i32 3
store double 0x4011C71C53F39D1B, double* %14
%15 = getelementptr inbounds [6 x double], [6 x double]* %10, i32 0, i32 4
store double 0x401638E38A7E73A3, double* %15
%16 = getelementptr inbounds [6 x double], [6 x double]* %10, i32 0, i32 5
store double 0x401AAAAAA6315791, double* %16
%17 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i32 4)
%18 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0), i32 12)
%19 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 1)
%20 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0), i32 4)
%21 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0), i32 4)
%22 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0), i32 20)
%23 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0), i32 8)
%24 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0), i32 48)
ret i32 0
}

LLVM IR (-O2):
@.str = [27 x i8] c"The size of an int is: %d\0A\00"
@.str.1 = [36 x i8] c"The size of int array three is: %d\0A\00"
@.str.2 = [27 x i8] c"The size of a char is: %d\0A\00"
@.str.3 = [36 x i8] c"The size of char array four is: %d\0A\00"
@.str.4 = [28 x i8] c"The size of a float is: %d\0A\00"
@.str.5 = [37 x i8] c"The size of float array five is: %d\0A\00"
@.str.6 = [29 x i8] c"The size of a double is: %d\0A\00"
@.str.7 = [37 x i8] c"The size of double array siz is: %d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i32 4)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0), i32 12)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 1)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0), i32 4)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0), i32 4)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0), i32 20)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0), i32 8)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0), i32 48)
ret i32 0
}