#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 SHRT_MAX;
int SHRT_MIN;
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ puts(char *);
int main() {
  puts("**INTEGERS**");
  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", sizeof(int));
  puts("**FLOATS**");
  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", sizeof(float));
  puts("**CHARS**");
  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", sizeof(char));
  puts("**DOUBLES**");
  printf("The value of DBL_MAX is %g\n", DBL_MAX);
  printf("The value of DBL_MIN is %g\n", DBL_MIN);
  printf("A double takes %zu bytes\n", sizeof(double));
  puts("**SHORT**");
  printf("The value of SHRT_MAX is %i\n", SHRT_MAX);
  printf("The value of SHRT_MIN is %i\n", SHRT_MIN);
  printf("A short takes %zu bytes\n", sizeof(short));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e8e(%rip),%rax
mov    (%rax),%esi
lea    0xec2(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e71(%rip),%rax
mov    (%rax),%esi
lea    0xec9(%rip),%rdi
call   1040 <printf@plt>
lea    0xed9(%rip),%rdi
mov    $0x4,%esi
call   1040 <printf@plt>
lea    0xee0(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e37(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xed4(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e38(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xed9(%rip),%rdi
call   1040 <printf@plt>
lea    0xeec(%rip),%rdi
mov    $0x4,%esi
call   1040 <printf@plt>
lea    0xef4(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e14(%rip),%rax
mov    (%rax),%esi
lea    0xee9(%rip),%rdi
call   1040 <printf@plt>
mov    0x2df7(%rip),%rax
mov    (%rax),%esi
lea    0xef1(%rip),%rdi
call   1040 <printf@plt>
lea    0xf02(%rip),%rdi
mov    $0x1,%esi
call   1040 <printf@plt>
lea    0xf09(%rip),%rdi
call   1030 <puts@plt>
mov    0x2d85(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xefe(%rip),%rdi
call   1040 <printf@plt>
mov    0x2d66(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xf03(%rip),%rdi
call   1040 <printf@plt>
lea    0xf13(%rip),%rdi
mov    $0x8,%esi
call   1040 <printf@plt>
lea    0xf1c(%rip),%rdi
call   1030 <puts@plt>
mov    0x2d42(%rip),%rax
mov    (%rax),%esi
lea    0xf11(%rip),%rdi
call   1040 <printf@plt>
mov    0x2d35(%rip),%rax
mov    (%rax),%esi
lea    0xf19(%rip),%rdi
call   1040 <printf@plt>
lea    0xf2a(%rip),%rdi
mov    $0x2,%esi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e9c(%rip),%rax
mov    (%rax),%esi
lea    0xed0(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e7f(%rip),%rax
mov    (%rax),%esi
lea    0xed7(%rip),%rdi
call   1040 <printf@plt>
lea    0xee7(%rip),%rdi
mov    $0x4,%esi
call   1040 <printf@plt>
lea    0xeee(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e45(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xee2(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e46(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xee7(%rip),%rdi
call   1040 <printf@plt>
lea    0xefa(%rip),%rdi
mov    $0x4,%esi
call   1040 <printf@plt>
lea    0xf02(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e22(%rip),%rax
mov    (%rax),%esi
lea    0xef7(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e05(%rip),%rax
mov    (%rax),%esi
lea    0xeff(%rip),%rdi
call   1040 <printf@plt>
lea    0xf10(%rip),%rdi
mov    $0x1,%esi
call   1040 <printf@plt>
lea    0xf17(%rip),%rdi
call   1030 <puts@plt>
mov    0x2d93(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xf0c(%rip),%rdi
call   1040 <printf@plt>
mov    0x2d74(%rip),%rax
cvttsd2si (%rax),%esi
lea    0xf11(%rip),%rdi
call   1040 <printf@plt>
lea    0xf21(%rip),%rdi
mov    $0x8,%esi
call   1040 <printf@plt>
lea    0xf2a(%rip),%rdi
call   1030 <puts@plt>
mov    0x2d50(%rip),%rax
mov    (%rax),%esi
lea    0xf1f(%rip),%rdi
call   1040 <printf@plt>
mov    0x2d43(%rip),%rax
mov    (%rax),%esi
lea    0xf27(%rip),%rdi
call   1040 <printf@plt>
lea    0xf38(%rip),%rdi
mov    $0x2,%esi
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

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