#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 */
int CHAR_MAX;
int CHAR_MIN;
double DBL_MAX;
double DBL_MIN;
int FLT_DIG;
double FLT_MAX;
double FLT_MIN;
int INT_MAX;
int INT_MIN;
int /*<<< orphan*/ printf(char *, int);
int main() {
  printf("Storage size for int : %d \n", sizeof(int));
  printf("Minimum int positive value: %d\n", INT_MIN);
  printf("Maximum int positive value: %d\n", INT_MAX);
  printf("Storage size for unsinged int : %d \n", sizeof(unsigned int));
  printf("Storage size for short : %d \n", sizeof(short));
  printf("Storage size for unsigned short : %d \n", sizeof(unsigned short));
  printf("Storage size for short int : %d \n", sizeof(short int));
  printf("Storage size for long : %d \n", sizeof(long));
  printf("Storage size for unsigned long : %d \n", sizeof(unsigned long));
  printf("Storage size for long int : %d \n", sizeof(long int));
  printf("Storage size for char : %d \n", sizeof(char));
  printf("Minimum int positive value: %d\n", CHAR_MIN);
  printf("Maximum int positive value: %d\n", CHAR_MAX);
  printf("Storage size for signed char : %d \n", sizeof(signed char));
  printf("Storage size for float : %d \n", sizeof(float));
  printf("Minimum float positive value: %E\n", FLT_MIN);
  printf("Maximum float positive value: %E\n", FLT_MAX);
  printf("Precision value: %d\n", FLT_DIG);
  printf("Storage size for double : %d \n", sizeof(double));
  printf("Minimum float positive value: %E\n", DBL_MIN);
  printf("Maximum float positive value: %E\n", DBL_MAX);
  printf("Storage size for long double : %d \n", sizeof(long double));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
mov    0x2e89(%rip),%rax
mov    (%rax),%esi
lea    0xedc(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e7c(%rip),%rax
mov    (%rax),%esi
lea    0xee7(%rip),%rdi
call   1030 <printf@plt>
lea    0xefb(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf0f(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xf1c(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xf32(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xf43(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf4f(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf64(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf74(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
mov    0x2def(%rip),%rax
mov    (%rax),%esi
lea    0xe2a(%rip),%rdi
call   1030 <printf@plt>
mov    0x2de2(%rip),%rax
mov    (%rax),%esi
lea    0xe35(%rip),%rdi
call   1030 <printf@plt>
lea    0xf56(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xf69(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
mov    0x2d9b(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xf6b(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d6c(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xf76(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d95(%rip),%rax
mov    (%rax),%esi
lea    0xf83(%rip),%rdi
call   1030 <printf@plt>
lea    0xf8c(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
mov    0x2d1f(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xf17(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d00(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xf22(%rip),%rdi
call   1030 <printf@plt>
lea    0xf6c(%rip),%rdi
mov    $0x10,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xee5(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
mov    0x2e94(%rip),%rax
mov    (%rax),%esi
lea    0xee7(%rip),%r14
mov    %r14,%rdi
call   1030 <printf@plt>
mov    0x2e84(%rip),%rax
mov    (%rax),%esi
lea    0xeef(%rip),%rbx
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xf00(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf14(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xf21(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xf37(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xf48(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf54(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf69(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf79(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
mov    0x2df4(%rip),%rax
mov    (%rax),%esi
mov    %r14,%rdi
call   1030 <printf@plt>
mov    0x2deb(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xf63(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xf76(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
mov    0x2da8(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xf78(%rip),%r14
mov    %r14,%rdi
call   1030 <printf@plt>
mov    0x2d76(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xf80(%rip),%rbx
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    0x2d9c(%rip),%rax
mov    (%rax),%esi
lea    0xf8a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf93(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
mov    0x2d26(%rip),%rax
cvttsd2si (%rax),%esi
mov    %r14,%rdi
call   1030 <printf@plt>
mov    0x2d0b(%rip),%rax
cvttsd2si (%rax),%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xf7b(%rip),%rdi
mov    $0x10,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [28 x i8] c"Storage size for int : %d \0A\00"
@.str.1 = [32 x i8] c"Minimum int positive value: %d\0A\00"
@INT_MIN = global i32 0
@.str.2 = [32 x i8] c"Maximum int positive value: %d\0A\00"
@INT_MAX = global i32 0
@.str.3 = [37 x i8] c"Storage size for unsinged int : %d \0A\00"
@.str.4 = [30 x i8] c"Storage size for short : %d \0A\00"
@.str.5 = [39 x i8] c"Storage size for unsigned short : %d \0A\00"
@.str.6 = [34 x i8] c"Storage size for short int : %d \0A\00"
@.str.7 = [29 x i8] c"Storage size for long : %d \0A\00"
@.str.8 = [38 x i8] c"Storage size for unsigned long : %d \0A\00"
@.str.9 = [33 x i8] c"Storage size for long int : %d \0A\00"
@.str.10 = [29 x i8] c"Storage size for char : %d \0A\00"
@CHAR_MIN = global i32 0
@CHAR_MAX = global i32 0
@.str.11 = [36 x i8] c"Storage size for signed char : %d \0A\00"
@.str.12 = [30 x i8] c"Storage size for float : %d \0A\00"
@.str.13 = [34 x i8] c"Minimum float positive value: %E\0A\00"
@FLT_MIN = global double 0.000000e+00
@.str.14 = [34 x i8] c"Maximum float positive value: %E\0A\00"
@FLT_MAX = global double 0.000000e+00
@.str.15 = [21 x i8] c"Precision value: %d\0A\00"
@FLT_DIG = global i32 0
@.str.16 = [31 x i8] c"Storage size for double : %d \0A\00"
@DBL_MIN = global double 0.000000e+00
@DBL_MAX = global double 0.000000e+00
@.str.17 = [36 x i8] c"Storage size for long double : %d \0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i32 4)
%3 = load i32, i32* @INT_MIN
%4 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @INT_MAX
%6 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 4)
%8 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i32 2)
%9 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0), i32 2)
%10 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i32 2)
%11 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0), i32 8)
%12 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0), i32 8)
%13 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0), i32 8)
%14 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.10, i64 0, i64 0), i32 1)
%15 = load i32, i32* @CHAR_MIN
%16 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i32 %15)
%17 = load i32, i32* @CHAR_MAX
%18 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i32 %17)
%19 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.11, i64 0, i64 0), i32 1)
%20 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.12, i64 0, i64 0), i32 4)
%21 = load double, double* @FLT_MIN
%22 = fptosi double %21 to i32
%23 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.13, i64 0, i64 0), i32 %22)
%24 = load double, double* @FLT_MAX
%25 = fptosi double %24 to i32
%26 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.14, i64 0, i64 0), i32 %25)
%27 = load i32, i32* @FLT_DIG
%28 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0), i32 %27)
%29 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.16, i64 0, i64 0), i32 8)
%30 = load double, double* @DBL_MIN
%31 = fptosi double %30 to i32
%32 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.13, i64 0, i64 0), i32 %31)
%33 = load double, double* @DBL_MAX
%34 = fptosi double %33 to i32
%35 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.14, i64 0, i64 0), i32 %34)
%36 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.17, i64 0, i64 0), i32 16)
ret i32 0
}

LLVM IR (-O2):
@.str = [28 x i8] c"Storage size for int : %d \0A\00"
@.str.1 = [32 x i8] c"Minimum int positive value: %d\0A\00"
@INT_MIN = global i32 0
@.str.2 = [32 x i8] c"Maximum int positive value: %d\0A\00"
@INT_MAX = global i32 0
@.str.3 = [37 x i8] c"Storage size for unsinged int : %d \0A\00"
@.str.4 = [30 x i8] c"Storage size for short : %d \0A\00"
@.str.5 = [39 x i8] c"Storage size for unsigned short : %d \0A\00"
@.str.6 = [34 x i8] c"Storage size for short int : %d \0A\00"
@.str.7 = [29 x i8] c"Storage size for long : %d \0A\00"
@.str.8 = [38 x i8] c"Storage size for unsigned long : %d \0A\00"
@.str.9 = [33 x i8] c"Storage size for long int : %d \0A\00"
@.str.10 = [29 x i8] c"Storage size for char : %d \0A\00"
@CHAR_MIN = global i32 0
@CHAR_MAX = global i32 0
@.str.11 = [36 x i8] c"Storage size for signed char : %d \0A\00"
@.str.12 = [30 x i8] c"Storage size for float : %d \0A\00"
@.str.13 = [34 x i8] c"Minimum float positive value: %E\0A\00"
@FLT_MIN = global double 0.000000e+00
@.str.14 = [34 x i8] c"Maximum float positive value: %E\0A\00"
@FLT_MAX = global double 0.000000e+00
@.str.15 = [21 x i8] c"Precision value: %d\0A\00"
@FLT_DIG = global i32 0
@.str.16 = [31 x i8] c"Storage size for double : %d \0A\00"
@DBL_MIN = global double 0.000000e+00
@DBL_MAX = global double 0.000000e+00
@.str.17 = [36 x i8] c"Storage size for long double : %d \0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i32 4)
%2 = load i32, i32* @INT_MIN
%3 = tail call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i32 %2)
%4 = load i32, i32* @INT_MAX
%5 = tail call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i32 %4)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 4)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i32 2)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0), i32 2)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i32 2)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0), i32 8)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0), i32 8)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0), i32 8)
%13 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.10, i64 0, i64 0), i32 1)
%14 = load i32, i32* @CHAR_MIN
%15 = tail call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i32 %14)
%16 = load i32, i32* @CHAR_MAX
%17 = tail call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i32 %16)
%18 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.11, i64 0, i64 0), i32 1)
%19 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.12, i64 0, i64 0), i32 4)
%20 = load double, double* @FLT_MIN
%21 = fptosi double %20 to i32
%22 = tail call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.13, i64 0, i64 0), i32 %21)
%23 = load double, double* @FLT_MAX
%24 = fptosi double %23 to i32
%25 = tail call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.14, i64 0, i64 0), i32 %24)
%26 = load i32, i32* @FLT_DIG
%27 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0), i32 %26)
%28 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.16, i64 0, i64 0), i32 8)
%29 = load double, double* @DBL_MIN
%30 = fptosi double %29 to i32
%31 = tail call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.13, i64 0, i64 0), i32 %30)
%32 = load double, double* @DBL_MAX
%33 = fptosi double %32 to i32
%34 = tail call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.14, i64 0, i64 0), i32 %33)
%35 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.17, i64 0, i64 0), i32 16)
ret i32 0
}