#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 DBL_MAX;
double DBL_MIN;
int EXIT_SUCCESS;
double FLT_MAX;
double FLT_MIN;
int INT_MAX;
int INT_MIN;
double LDBL_MAX;
double LDBL_MIN;
double LONG_MAX;
double LONG_MIN;
int SCHAR_MAX;
int SCHAR_MIN;
int SHRT_MAX;
int SHRT_MIN;
int UCHAR_MAX;
int UINT_MAX;
double ULONG_MAX;
int USHRT_MAX;
int /*<<< orphan*/ printf(char *, double, double);
int /*<<< orphan*/ puts(char *);
int main(void) {
  puts("Using macros from standard headers:");
  printf("  Range of \"char\": %d to %d\n", SCHAR_MIN, SCHAR_MAX);
  printf("  Range of \"unsigned char\": %d to %u\n", 0, UCHAR_MAX);
  printf("  Range of \"short\": %d to %d\n", SHRT_MIN, SHRT_MAX);
  printf("  Range of \"unsigned short\": %d to %u\n", 0, USHRT_MAX);
  printf("  Range of \"int\": %d to %d\n", INT_MIN, INT_MAX);
  printf("  Range of \"unsigned int\": %d to %u\n", 0, UINT_MAX);
  printf("  Range of \"long\": %ld to %ld\n", LONG_MIN, LONG_MAX);
  printf("  Range of \"unsigned long\": %d to %lu\n", 0, ULONG_MAX);
  printf("  Range of \"float\": %e to %e\n", FLT_MIN, FLT_MAX);
  printf("  Range of \"double\": %e to %e\n", DBL_MIN, DBL_MAX);
  printf("  Range of \"long double\": %Le to %Le\n", LDBL_MIN, LDBL_MAX);
  return EXIT_SUCCESS;
}


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    0x2e5e(%rip),%rax
cvtsi2sdl (%rax),%xmm0
mov    0x2e4b(%rip),%rax
cvtsi2sdl (%rax),%xmm1
lea    0xecc(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e8c(%rip),%rax
cvtsi2sdl (%rax),%xmm1
lea    0xed2(%rip),%rdi
xorps  %xmm0,%xmm0
call   1040 <printf@plt>
mov    0x2e02(%rip),%rax
cvtsi2sdl (%rax),%xmm0
mov    0x2def(%rip),%rax
cvtsi2sdl (%rax),%xmm1
lea    0xed3(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e38(%rip),%rax
cvtsi2sdl (%rax),%xmm1
lea    0xeda(%rip),%rdi
xorps  %xmm0,%xmm0
call   1040 <printf@plt>
mov    0x2dfe(%rip),%rax
cvtsi2sdl (%rax),%xmm0
mov    0x2e0b(%rip),%rax
cvtsi2sdl (%rax),%xmm1
lea    0xedc(%rip),%rdi
call   1040 <printf@plt>
mov    0x2dec(%rip),%rax
cvtsi2sdl (%rax),%xmm1
lea    0xee1(%rip),%rdi
xorps  %xmm0,%xmm0
call   1040 <printf@plt>
mov    0x2dca(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2d87(%rip),%rax
movsd  (%rax),%xmm1
lea    0xee1(%rip),%rdi
call   1040 <printf@plt>
mov    0x2d30(%rip),%rax
movsd  (%rax),%xmm1
lea    0xee9(%rip),%rdi
xorps  %xmm0,%xmm0
call   1040 <printf@plt>
mov    0x2dae(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2d73(%rip),%rax
movsd  (%rax),%xmm1
lea    0xeeb(%rip),%rdi
call   1040 <printf@plt>
mov    0x2d0c(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2cf9(%rip),%rax
movsd  (%rax),%xmm1
lea    0xee7(%rip),%rdi
call   1040 <printf@plt>
mov    0x2cfa(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2d0f(%rip),%rax
movsd  (%rax),%xmm1
lea    0xee4(%rip),%rdi
call   1040 <printf@plt>
mov    0x2cd0(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e6c(%rip),%rax
cvtsi2sdl (%rax),%xmm0
mov    0x2e59(%rip),%rax
cvtsi2sdl (%rax),%xmm1
lea    0xeda(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e9a(%rip),%rax
xorps  %xmm1,%xmm1
cvtsi2sdl (%rax),%xmm1
lea    0xedd(%rip),%rdi
xorpd  %xmm0,%xmm0
call   1040 <printf@plt>
mov    0x2e0c(%rip),%rax
xorps  %xmm0,%xmm0
cvtsi2sdl (%rax),%xmm0
mov    0x2df6(%rip),%rax
xorps  %xmm1,%xmm1
cvtsi2sdl (%rax),%xmm1
lea    0xed7(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e3c(%rip),%rax
xorps  %xmm1,%xmm1
cvtsi2sdl (%rax),%xmm1
lea    0xedb(%rip),%rdi
xorpd  %xmm0,%xmm0
call   1040 <printf@plt>
mov    0x2dfe(%rip),%rax
xorps  %xmm0,%xmm0
cvtsi2sdl (%rax),%xmm0
mov    0x2e08(%rip),%rax
xorps  %xmm1,%xmm1
cvtsi2sdl (%rax),%xmm1
lea    0xed6(%rip),%rdi
call   1040 <printf@plt>
mov    0x2de6(%rip),%rax
xorps  %xmm1,%xmm1
cvtsi2sdl (%rax),%xmm1
lea    0xed8(%rip),%rdi
xorpd  %xmm0,%xmm0
call   1040 <printf@plt>
mov    0x2dc0(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2d7d(%rip),%rax
movsd  (%rax),%xmm1
lea    0xed7(%rip),%rdi
call   1040 <printf@plt>
mov    0x2d26(%rip),%rax
movsd  (%rax),%xmm1
lea    0xedf(%rip),%rdi
xorps  %xmm0,%xmm0
call   1040 <printf@plt>
mov    0x2da4(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2d69(%rip),%rax
movsd  (%rax),%xmm1
lea    0xee1(%rip),%rdi
call   1040 <printf@plt>
mov    0x2d02(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2cef(%rip),%rax
movsd  (%rax),%xmm1
lea    0xedd(%rip),%rdi
call   1040 <printf@plt>
mov    0x2cf0(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2d05(%rip),%rax
movsd  (%rax),%xmm1
lea    0xeda(%rip),%rdi
call   1040 <printf@plt>
mov    0x2cc6(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [36 x i8] c"Using macros from standard headers:\00"
@.str.1 = [29 x i8] c" Range of \22char\22: %d to %d\0A\00"
@SCHAR_MIN = global i32 0
@SCHAR_MAX = global i32 0
@.str.2 = [38 x i8] c" Range of \22unsigned char\22: %d to %u\0A\00"
@UCHAR_MAX = global i32 0
@.str.3 = [30 x i8] c" Range of \22short\22: %d to %d\0A\00"
@SHRT_MIN = global i32 0
@SHRT_MAX = global i32 0
@.str.4 = [39 x i8] c" Range of \22unsigned short\22: %d to %u\0A\00"
@USHRT_MAX = global i32 0
@.str.5 = [28 x i8] c" Range of \22int\22: %d to %d\0A\00"
@INT_MIN = global i32 0
@INT_MAX = global i32 0
@.str.6 = [37 x i8] c" Range of \22unsigned int\22: %d to %u\0A\00"
@UINT_MAX = global i32 0
@.str.7 = [31 x i8] c" Range of \22long\22: %ld to %ld\0A\00"
@LONG_MIN = global double 0.000000e+00
@LONG_MAX = global double 0.000000e+00
@.str.8 = [39 x i8] c" Range of \22unsigned long\22: %d to %lu\0A\00"
@ULONG_MAX = global double 0.000000e+00
@.str.9 = [30 x i8] c" Range of \22float\22: %e to %e\0A\00"
@FLT_MIN = global double 0.000000e+00
@FLT_MAX = global double 0.000000e+00
@.str.10 = [31 x i8] c" Range of \22double\22: %e to %e\0A\00"
@DBL_MIN = global double 0.000000e+00
@DBL_MAX = global double 0.000000e+00
@.str.11 = [38 x i8] c" Range of \22long double\22: %Le to %Le\0A\00"
@LDBL_MIN = global double 0.000000e+00
@LDBL_MAX = global double 0.000000e+00
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @puts(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @SCHAR_MIN
%4 = sitofp i32 %3 to double
%5 = load i32, i32* @SCHAR_MAX
%6 = sitofp i32 %5 to double
%7 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), double %4, double %6)
%8 = load i32, i32* @UCHAR_MAX
%9 = sitofp i32 %8 to double
%10 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0), double 0.000000e+00, double %9)
%11 = load i32, i32* @SHRT_MIN
%12 = sitofp i32 %11 to double
%13 = load i32, i32* @SHRT_MAX
%14 = sitofp i32 %13 to double
%15 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), double %12, double %14)
%16 = load i32, i32* @USHRT_MAX
%17 = sitofp i32 %16 to double
%18 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0), double 0.000000e+00, double %17)
%19 = load i32, i32* @INT_MIN
%20 = sitofp i32 %19 to double
%21 = load i32, i32* @INT_MAX
%22 = sitofp i32 %21 to double
%23 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), double %20, double %22)
%24 = load i32, i32* @UINT_MAX
%25 = sitofp i32 %24 to double
%26 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), double 0.000000e+00, double %25)
%27 = load double, double* @LONG_MIN
%28 = load double, double* @LONG_MAX
%29 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), double %27, double %28)
%30 = load double, double* @ULONG_MAX
%31 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0), double 0.000000e+00, double %30)
%32 = load double, double* @FLT_MIN
%33 = load double, double* @FLT_MAX
%34 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0), double %32, double %33)
%35 = load double, double* @DBL_MIN
%36 = load double, double* @DBL_MAX
%37 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0), double %35, double %36)
%38 = load double, double* @LDBL_MIN
%39 = load double, double* @LDBL_MAX
%40 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.11, i64 0, i64 0), double %38, double %39)
%41 = load i32, i32* @EXIT_SUCCESS
ret i32 %41
}

LLVM IR (-O2):
@.str = [36 x i8] c"Using macros from standard headers:\00"
@.str.1 = [29 x i8] c" Range of \22char\22: %d to %d\0A\00"
@SCHAR_MIN = global i32 0
@SCHAR_MAX = global i32 0
@.str.2 = [38 x i8] c" Range of \22unsigned char\22: %d to %u\0A\00"
@UCHAR_MAX = global i32 0
@.str.3 = [30 x i8] c" Range of \22short\22: %d to %d\0A\00"
@SHRT_MIN = global i32 0
@SHRT_MAX = global i32 0
@.str.4 = [39 x i8] c" Range of \22unsigned short\22: %d to %u\0A\00"
@USHRT_MAX = global i32 0
@.str.5 = [28 x i8] c" Range of \22int\22: %d to %d\0A\00"
@INT_MIN = global i32 0
@INT_MAX = global i32 0
@.str.6 = [37 x i8] c" Range of \22unsigned int\22: %d to %u\0A\00"
@UINT_MAX = global i32 0
@.str.7 = [31 x i8] c" Range of \22long\22: %ld to %ld\0A\00"
@LONG_MIN = global double 0.000000e+00
@LONG_MAX = global double 0.000000e+00
@.str.8 = [39 x i8] c" Range of \22unsigned long\22: %d to %lu\0A\00"
@ULONG_MAX = global double 0.000000e+00
@.str.9 = [30 x i8] c" Range of \22float\22: %e to %e\0A\00"
@FLT_MIN = global double 0.000000e+00
@FLT_MAX = global double 0.000000e+00
@.str.10 = [31 x i8] c" Range of \22double\22: %e to %e\0A\00"
@DBL_MIN = global double 0.000000e+00
@DBL_MAX = global double 0.000000e+00
@.str.11 = [38 x i8] c" Range of \22long double\22: %Le to %Le\0A\00"
@LDBL_MIN = global double 0.000000e+00
@LDBL_MAX = global double 0.000000e+00
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%2 = load i32, i32* @SCHAR_MIN
%3 = sitofp i32 %2 to double
%4 = load i32, i32* @SCHAR_MAX
%5 = sitofp i32 %4 to double
%6 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), double %3, double %5)
%7 = load i32, i32* @UCHAR_MAX
%8 = sitofp i32 %7 to double
%9 = tail call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0), double 0.000000e+00, double %8)
%10 = load i32, i32* @SHRT_MIN
%11 = sitofp i32 %10 to double
%12 = load i32, i32* @SHRT_MAX
%13 = sitofp i32 %12 to double
%14 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), double %11, double %13)
%15 = load i32, i32* @USHRT_MAX
%16 = sitofp i32 %15 to double
%17 = tail call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0), double 0.000000e+00, double %16)
%18 = load i32, i32* @INT_MIN
%19 = sitofp i32 %18 to double
%20 = load i32, i32* @INT_MAX
%21 = sitofp i32 %20 to double
%22 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), double %19, double %21)
%23 = load i32, i32* @UINT_MAX
%24 = sitofp i32 %23 to double
%25 = tail call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), double 0.000000e+00, double %24)
%26 = load double, double* @LONG_MIN
%27 = load double, double* @LONG_MAX
%28 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), double %26, double %27)
%29 = load double, double* @ULONG_MAX
%30 = tail call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0), double 0.000000e+00, double %29)
%31 = load double, double* @FLT_MIN
%32 = load double, double* @FLT_MAX
%33 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0), double %31, double %32)
%34 = load double, double* @DBL_MIN
%35 = load double, double* @DBL_MAX
%36 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0), double %34, double %35)
%37 = load double, double* @LDBL_MIN
%38 = load double, double* @LDBL_MAX
%39 = tail call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.11, i64 0, i64 0), double %37, double %38)
%40 = load i32, i32* @EXIT_SUCCESS
ret i32 %40
}