#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 value of INT_MAX is %i\n", INT_MAX);
  printf("The value of INT_MIN is %i\n", INT_MIN);
  printf("An int takes %zu bytes\n\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 %zu bytes\n\n", sizeof(float));
  printf("The value of CHAR_MAX is %i\n", CHAR_MAX);
  printf("The value of CHAR_MIN is %i\n", CHAR_MIN);
  printf("A char takes %zu bytes\n\n", sizeof(char));
  printf("The value of DBL_MAX is %f\n", DBL_MAX);
  printf("The value of DBL_MIN is %.200f\n", DBL_MIN);
  printf("A double takes %zu bytes\n\n", sizeof(double));
  printf("The value of SHRT_MAX is %d\n", SHRT_MAX);
  printf("The value of SHRT_MIN is %d\n", SHRT_MIN);
  printf("A short takes %zu bytes\n\n", sizeof(short));
  printf("The value of LONG_MAX is %ld\n", LONG_MAX);
  printf("The value of LONG_MIN is %ld\n", LONG_MIN);
  printf("A long takes %zu bytes\n", sizeof(long));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2eaa(%rip),%rax
mov    (%rax),%esi
lea    0xed1(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e85(%rip),%rax
mov    (%rax),%esi
lea    0xed8(%rip),%rdi
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
mov    0x2e57(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e60(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xeea(%rip),%rdi
call   1030 <printf@plt>
lea    0xefd(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
mov    0x2e48(%rip),%rax
mov    (%rax),%esi
lea    0xefd(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e2b(%rip),%rax
mov    (%rax),%esi
lea    0xf05(%rip),%rdi
call   1030 <printf@plt>
lea    0xf16(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
mov    0x2db5(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xf13(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d96(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xf18(%rip),%rdi
call   1030 <printf@plt>
lea    0xf2c(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
mov    0x2d7e(%rip),%rax
mov    (%rax),%esi
lea    0xf2d(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d71(%rip),%rax
mov    (%rax),%esi
lea    0xf35(%rip),%rdi
call   1030 <printf@plt>
lea    0xf46(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
mov    0x2d53(%rip),%rax
mov    (%rax),%esi
lea    0xf46(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d5e(%rip),%rax
mov    (%rax),%esi
lea    0xf4f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf61(%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    0x2eb8(%rip),%rax
mov    (%rax),%esi
lea    0xedf(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e93(%rip),%rax
mov    (%rax),%esi
lea    0xee6(%rip),%rdi
call   1030 <printf@plt>
lea    0xef6(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
mov    0x2e65(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xef3(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e6e(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xef8(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0b(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
mov    0x2e56(%rip),%rax
mov    (%rax),%esi
lea    0xf0b(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e39(%rip),%rax
mov    (%rax),%esi
lea    0xf13(%rip),%rdi
call   1030 <printf@plt>
lea    0xf24(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
mov    0x2dc3(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xf21(%rip),%rdi
call   1030 <printf@plt>
mov    0x2da4(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xf26(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3a(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
mov    0x2d8c(%rip),%rax
mov    (%rax),%esi
lea    0xf3b(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d7f(%rip),%rax
mov    (%rax),%esi
lea    0xf43(%rip),%rdi
call   1030 <printf@plt>
lea    0xf54(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
mov    0x2d61(%rip),%rax
mov    (%rax),%esi
lea    0xf54(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d6c(%rip),%rax
mov    (%rax),%esi
lea    0xf5d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf6f(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

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