#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;
double FLT_MAX;
double FLT_MIN;
int INT_MAX;
int INT_MIN;
int LONG_MAX;
int LONG_MIN;
int SHRT_MAX;
int SHRT_MIN;
int /*<<< orphan*/ printf(char *, int);
int main() {
  printf("The maximum value of short is :%i\n", SHRT_MAX);
  printf("The minimum value of short is :%i\n", SHRT_MIN);
  printf("A short takes %i bytes\n", sizeof(short));
  printf("The maximum value of char is :%i\n", CHAR_MAX);
  printf("The minimum value of char is :%i\n", CHAR_MIN);
  printf("A char takes %i bytes\n", sizeof(char));
  printf("The maximum value of int is :%i\n", INT_MAX);
  printf("The minimum value of int is :%i\n", INT_MIN);
  printf("A int takes %i bytes\n", sizeof(int));
  printf("The maximum value of long is :%ld\n", LONG_MAX);
  printf("The minimum value of long is :%ld\n", LONG_MIN);
  printf("A long takes %i bytes\n", sizeof(long));
  printf("The maximum value of float is :%f\n", FLT_MAX);
  printf("The minimum value of int is :%.50f\n", FLT_MIN);
  printf("A float takes %i bytes\n", sizeof(float));
  printf("The maximum value of double is :%f\n", DBL_MAX);
  printf("The minimum value of double is :%.50f\n", DBL_MIN);
  printf("A double takes %i bytes\n", sizeof(double));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e72(%rip),%rax
mov    (%rax),%esi
lea    0xed1(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e65(%rip),%rax
mov    (%rax),%esi
lea    0xedf(%rip),%rdi
call   1030 <printf@plt>
lea    0xef6(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
mov    0x2e87(%rip),%rax
mov    (%rax),%esi
lea    0xef4(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e6a(%rip),%rax
mov    (%rax),%esi
lea    0xf01(%rip),%rdi
call   1030 <printf@plt>
lea    0xf17(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
mov    0x2e34(%rip),%rax
mov    (%rax),%esi
lea    0xf14(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e0f(%rip),%rax
mov    (%rax),%esi
lea    0xf20(%rip),%rdi
call   1030 <printf@plt>
lea    0xf35(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
mov    0x2dd1(%rip),%rax
mov    (%rax),%esi
lea    0xf31(%rip),%rdi
call   1030 <printf@plt>
mov    0x2ddc(%rip),%rax
mov    (%rax),%esi
lea    0xf3f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf56(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
mov    0x2da6(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xf51(%rip),%rdi
call   1030 <printf@plt>
mov    0x2daf(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xf5d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf75(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
mov    0x2d3f(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xf71(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d20(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xf7e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf99(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2e80(%rip),%rax
mov    (%rax),%esi
lea    0xedf(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e73(%rip),%rax
mov    (%rax),%esi
lea    0xeed(%rip),%rdi
call   1030 <printf@plt>
lea    0xf04(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
mov    0x2e95(%rip),%rax
mov    (%rax),%esi
lea    0xf02(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e78(%rip),%rax
mov    (%rax),%esi
lea    0xf0f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf25(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
mov    0x2e42(%rip),%rax
mov    (%rax),%esi
lea    0xf22(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e1d(%rip),%rax
mov    (%rax),%esi
lea    0xf2e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf43(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
mov    0x2ddf(%rip),%rax
mov    (%rax),%esi
lea    0xf3f(%rip),%rdi
call   1030 <printf@plt>
mov    0x2dea(%rip),%rax
mov    (%rax),%esi
lea    0xf4d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf64(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
mov    0x2db4(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xf5f(%rip),%rdi
call   1030 <printf@plt>
mov    0x2dbd(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xf6b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf83(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
mov    0x2d4d(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xf7f(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d2e(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xf8c(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa7(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

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