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

/* Variables and functions */
double FLT_MAX;
double FLT_MIN;
int INT_MAX;
int INT_MIN;
int /*<<< orphan*/ printf(char *, int);
int main(void) {
  printf("The size of char is %i\n", sizeof(char));
  printf("The size of int is %i\n", sizeof(int));
  printf("The size of short is %i\n", sizeof(short));
  printf("The size of long is %i\n", sizeof(long));
  printf("The size of unsigned int is %i\n", sizeof(unsigned int));
  printf("The size of unsigned char is %i\n", sizeof(unsigned char));
  printf("The size of long int is %i\n", sizeof(long int));
  printf("The size of long long is %i\n", sizeof(long long));
  printf("The size of float is %i\n", sizeof(float));
  printf("The size of double is %i\n", sizeof(double));
  printf("The size of long double is %i\n", sizeof(long double));
  printf("The value of INT_MAX is %i\n", INT_MAX);
  printf("The value of INT_MIN is %i\n", INT_MIN);
  printf("An int takes %i bytes\n", sizeof(int));
  printf("The value of FLT_MAX is %f\n", FLT_MAX);
  printf("The value of FLT_MIN is %.50f\n", FLT_MIN);
  printf("A float takes %i bytes\n", sizeof(float));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xee1(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xee7(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xeef(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xef6(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf05(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xf15(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf20(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf2c(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf34(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf3d(%rip),%rdi
mov    $0x10,%esi
call   1030 <printf@plt>
mov    0x2dff(%rip),%rax
mov    (%rax),%esi
lea    0xf42(%rip),%rdi
call   1030 <printf@plt>
mov    0x2de2(%rip),%rax
mov    (%rax),%esi
lea    0xf49(%rip),%rdi
call   1030 <printf@plt>
lea    0xf59(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
mov    0x2db4(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xf54(%rip),%rdi
call   1030 <printf@plt>
mov    0x2db5(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xf59(%rip),%rdi
call   1030 <printf@plt>
lea    0xf6c(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xeef(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xef5(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xefd(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf04(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf13(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xf23(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf2e(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf3a(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf42(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf4b(%rip),%rdi
mov    $0x10,%esi
call   1030 <printf@plt>
mov    0x2e0d(%rip),%rax
mov    (%rax),%esi
lea    0xf50(%rip),%rdi
call   1030 <printf@plt>
mov    0x2df0(%rip),%rax
mov    (%rax),%esi
lea    0xf57(%rip),%rdi
call   1030 <printf@plt>
lea    0xf67(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
mov    0x2dc2(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xf62(%rip),%rdi
call   1030 <printf@plt>
mov    0x2dc3(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xf67(%rip),%rdi
call   1030 <printf@plt>
lea    0xf7a(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [24 x i8] c"The size of char is %i\0A\00"
@.str.1 = [23 x i8] c"The size of int is %i\0A\00"
@.str.2 = [25 x i8] c"The size of short is %i\0A\00"
@.str.3 = [24 x i8] c"The size of long is %i\0A\00"
@.str.4 = [32 x i8] c"The size of unsigned int is %i\0A\00"
@.str.5 = [33 x i8] c"The size of unsigned char is %i\0A\00"
@.str.6 = [28 x i8] c"The size of long int is %i\0A\00"
@.str.7 = [29 x i8] c"The size of long long is %i\0A\00"
@.str.8 = [25 x i8] c"The size of float is %i\0A\00"
@.str.9 = [26 x i8] c"The size of double is %i\0A\00"
@.str.10 = [31 x i8] c"The size of long double is %i\0A\00"
@.str.11 = [28 x i8] c"The value of INT_MAX is %i\0A\00"
@INT_MAX = global i32 0
@.str.12 = [28 x i8] c"The value of INT_MIN is %i\0A\00"
@INT_MIN = global i32 0
@.str.13 = [23 x i8] c"An int takes %i bytes\0A\00"
@.str.14 = [28 x i8] c"The value of FLT_MAX is %f\0A\00"
@FLT_MAX = global double 0.000000e+00
@.str.15 = [31 x i8] c"The value of FLT_MIN is %.50f\0A\00"
@FLT_MIN = global double 0.000000e+00
@.str.16 = [24 x i8] c"A float takes %i bytes\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 1)
%3 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i32 4)
%4 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32 2)
%5 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), i32 8)
%6 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 4)
%7 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i32 1)
%8 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0), i32 8)
%9 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0), i32 8)
%10 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0), i32 4)
%11 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0), i32 8)
%12 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0), i32 16)
%13 = load i32, i32* @INT_MAX
%14 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.11, i64 0, i64 0), i32 %13)
%15 = load i32, i32* @INT_MIN
%16 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.12, i64 0, i64 0), i32 %15)
%17 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.13, i64 0, i64 0), i32 4)
%18 = load double, double* @FLT_MAX
%19 = fptosi double %18 to i32
%20 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.14, i64 0, i64 0), i32 %19)
%21 = load double, double* @FLT_MIN
%22 = fptosi double %21 to i32
%23 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.15, i64 0, i64 0), i32 %22)
%24 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.16, i64 0, i64 0), i32 4)
ret i32 0
}

LLVM IR (-O2):
@.str = [24 x i8] c"The size of char is %i\0A\00"
@.str.1 = [23 x i8] c"The size of int is %i\0A\00"
@.str.2 = [25 x i8] c"The size of short is %i\0A\00"
@.str.3 = [24 x i8] c"The size of long is %i\0A\00"
@.str.4 = [32 x i8] c"The size of unsigned int is %i\0A\00"
@.str.5 = [33 x i8] c"The size of unsigned char is %i\0A\00"
@.str.6 = [28 x i8] c"The size of long int is %i\0A\00"
@.str.7 = [29 x i8] c"The size of long long is %i\0A\00"
@.str.8 = [25 x i8] c"The size of float is %i\0A\00"
@.str.9 = [26 x i8] c"The size of double is %i\0A\00"
@.str.10 = [31 x i8] c"The size of long double is %i\0A\00"
@.str.11 = [28 x i8] c"The value of INT_MAX is %i\0A\00"
@INT_MAX = global i32 0
@.str.12 = [28 x i8] c"The value of INT_MIN is %i\0A\00"
@INT_MIN = global i32 0
@.str.13 = [23 x i8] c"An int takes %i bytes\0A\00"
@.str.14 = [28 x i8] c"The value of FLT_MAX is %f\0A\00"
@FLT_MAX = global double 0.000000e+00
@.str.15 = [31 x i8] c"The value of FLT_MIN is %.50f\0A\00"
@FLT_MIN = global double 0.000000e+00
@.str.16 = [24 x i8] c"A float takes %i bytes\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 1)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i32 4)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32 2)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), i32 8)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 4)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i32 1)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0), i32 8)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0), i32 8)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0), i32 4)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0), i32 8)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0), i32 16)
%12 = load i32, i32* @INT_MAX
%13 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.11, i64 0, i64 0), i32 %12)
%14 = load i32, i32* @INT_MIN
%15 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.12, i64 0, i64 0), i32 %14)
%16 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.13, i64 0, i64 0), i32 4)
%17 = load double, double* @FLT_MAX
%18 = fptosi double %17 to i32
%19 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.14, i64 0, i64 0), i32 %18)
%20 = load double, double* @FLT_MIN
%21 = fptosi double %20 to i32
%22 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.15, i64 0, i64 0), i32 %21)
%23 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.16, i64 0, i64 0), i32 4)
ret i32 0
}