#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 SCHAR_MAX;
int SHRT_MAX;
int SHRT_MIN;
scalar_t__ UCHAR_MAX;
scalar_t__ UINT_MAX;
int /*<<< orphan*/ ULONG_MAX;
scalar_t__ USHRT_MAX;
int /*<<< orphan*/ printf(char *, double, double, ...);
int main() {
  printf("char  - %d to %d | signed: %d to %d | unsigned: %u\n\n", CHAR_MIN,
         CHAR_MAX, SCHAR_MAX, (unsigned)UCHAR_MAX);
  printf("short - signed: %d to %d | unsigned: %u\n\n", SHRT_MIN, SHRT_MAX,
         (unsigned)USHRT_MAX);
  printf("int   - signed: %d to %d | unsigned: %u\n\n", INT_MIN, INT_MAX,
         (unsigned)UINT_MAX);
  printf("long  - signed: %d to %d | unsigned: %lu\n\n", LONG_MIN, LONG_MAX,
         ULONG_MAX);
  printf("float - signed: %f to %f\n\n", FLT_MIN, FLT_MAX);
  printf("double - signed: %f to %f\n\n", DBL_MIN, DBL_MAX);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2eb2(%rip),%rax
cvtsi2sdl (%rax),%xmm0
mov    0x2eaf(%rip),%rax
cvtsi2sdl (%rax),%xmm1
mov    0x2e54(%rip),%rax
mov    (%rax),%esi
mov    0x2eab(%rip),%rax
mov    (%rax),%rax
mov    %eax,%edx
lea    0xeaf(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    0x2e21(%rip),%rax
cvtsi2sdl (%rax),%xmm0
mov    0x2e0e(%rip),%rax
cvtsi2sdl (%rax),%xmm1
mov    0x2e53(%rip),%rax
mov    (%rax),%rax
mov    %eax,%esi
lea    0xeb4(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    0x2e19(%rip),%rax
cvtsi2sdl (%rax),%xmm0
mov    0x2e26(%rip),%rax
cvtsi2sdl (%rax),%xmm1
mov    0x2e13(%rip),%rax
mov    (%rax),%rax
mov    %eax,%esi
lea    0xeae(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    0x2df1(%rip),%rax
cvtsi2sdl (%rax),%xmm0
mov    0x2dbe(%rip),%rax
cvtsi2sdl (%rax),%xmm1
mov    0x2d83(%rip),%rax
mov    (%rax),%esi
lea    0xeab(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    0x2de4(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2da9(%rip),%rax
movsd  (%rax),%xmm1
lea    0xeb2(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    0x2d60(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2d4d(%rip),%rax
movsd  (%rax),%xmm1
lea    0xea9(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2ec0(%rip),%rax
cvtsi2sdl (%rax),%xmm0
mov    0x2ebd(%rip),%rax
cvtsi2sdl (%rax),%xmm1
mov    0x2e62(%rip),%rax
mov    (%rax),%esi
mov    0x2eb9(%rip),%rax
mov    (%rax),%edx
lea    0xec0(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    0x2e32(%rip),%rax
xorps  %xmm0,%xmm0
cvtsi2sdl (%rax),%xmm0
mov    0x2e1c(%rip),%rax
xorps  %xmm1,%xmm1
cvtsi2sdl (%rax),%xmm1
mov    0x2e5e(%rip),%rax
mov    (%rax),%esi
lea    0xec2(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    0x2e27(%rip),%rax
xorps  %xmm0,%xmm0
cvtsi2sdl (%rax),%xmm0
mov    0x2e31(%rip),%rax
xorps  %xmm1,%xmm1
cvtsi2sdl (%rax),%xmm1
mov    0x2e1b(%rip),%rax
mov    (%rax),%esi
lea    0xeb9(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    0x2dfc(%rip),%rax
xorps  %xmm0,%xmm0
cvtsi2sdl (%rax),%xmm0
mov    0x2dc6(%rip),%rax
xorps  %xmm1,%xmm1
cvtsi2sdl (%rax),%xmm1
mov    0x2d88(%rip),%rax
mov    (%rax),%esi
lea    0xeb0(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    0x2de9(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2dae(%rip),%rax
movsd  (%rax),%xmm1
lea    0xeb7(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    0x2d65(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2d52(%rip),%rax
movsd  (%rax),%xmm1
lea    0xeae(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [53 x i8] c"char - %d to %d | signed: %d to %d | unsigned: %u\0A\0A\00"
@CHAR_MIN = global i32 0
@CHAR_MAX = global i32 0
@SCHAR_MAX = global i32 0
@UCHAR_MAX = global i64 0
@.str.1 = [42 x i8] c"short - signed: %d to %d | unsigned: %u\0A\0A\00"
@SHRT_MIN = global i32 0
@SHRT_MAX = global i32 0
@USHRT_MAX = global i64 0
@.str.2 = [42 x i8] c"int - signed: %d to %d | unsigned: %u\0A\0A\00"
@INT_MIN = global i32 0
@INT_MAX = global i32 0
@UINT_MAX = global i64 0
@.str.3 = [43 x i8] c"long - signed: %d to %d | unsigned: %lu\0A\0A\00"
@LONG_MIN = global i32 0
@LONG_MAX = global i32 0
@ULONG_MAX = global i32 0
@.str.4 = [27 x i8] c"float - signed: %f to %f\0A\0A\00"
@FLT_MIN = global double 0.000000e+00
@FLT_MAX = global double 0.000000e+00
@.str.5 = [28 x i8] c"double - signed: %f to %f\0A\0A\00"
@DBL_MIN = global double 0.000000e+00
@DBL_MAX = global double 0.000000e+00
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load i32, i32* @CHAR_MIN
%3 = sitofp i32 %2 to double
%4 = load i32, i32* @CHAR_MAX
%5 = sitofp i32 %4 to double
%6 = load i32, i32* @SCHAR_MAX
%7 = load i64, i64* @UCHAR_MAX
%8 = trunc i64 %7 to i32
%9 = call i32 (i8*, double, double, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0), double %3, double %5, i32 %6, i32 %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 = load i64, i64* @USHRT_MAX
%15 = trunc i64 %14 to i32
%16 = call i32 (i8*, double, double, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0), double %11, double %13, i32 %15)
%17 = load i32, i32* @INT_MIN
%18 = sitofp i32 %17 to double
%19 = load i32, i32* @INT_MAX
%20 = sitofp i32 %19 to double
%21 = load i64, i64* @UINT_MAX
%22 = trunc i64 %21 to i32
%23 = call i32 (i8*, double, double, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), double %18, double %20, i32 %22)
%24 = load i32, i32* @LONG_MIN
%25 = sitofp i32 %24 to double
%26 = load i32, i32* @LONG_MAX
%27 = sitofp i32 %26 to double
%28 = load i32, i32* @ULONG_MAX
%29 = call i32 (i8*, double, double, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0), double %25, double %27, i32 %28)
%30 = load double, double* @FLT_MIN
%31 = load double, double* @FLT_MAX
%32 = call i32 (i8*, double, double, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), double %30, double %31)
%33 = load double, double* @DBL_MIN
%34 = load double, double* @DBL_MAX
%35 = call i32 (i8*, double, double, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), double %33, double %34)
ret i32 0
}

LLVM IR (-O2):
@.str = [53 x i8] c"char - %d to %d | signed: %d to %d | unsigned: %u\0A\0A\00"
@CHAR_MIN = global i32 0
@CHAR_MAX = global i32 0
@SCHAR_MAX = global i32 0
@UCHAR_MAX = global i64 0
@.str.1 = [42 x i8] c"short - signed: %d to %d | unsigned: %u\0A\0A\00"
@SHRT_MIN = global i32 0
@SHRT_MAX = global i32 0
@USHRT_MAX = global i64 0
@.str.2 = [42 x i8] c"int - signed: %d to %d | unsigned: %u\0A\0A\00"
@INT_MIN = global i32 0
@INT_MAX = global i32 0
@UINT_MAX = global i64 0
@.str.3 = [43 x i8] c"long - signed: %d to %d | unsigned: %lu\0A\0A\00"
@LONG_MIN = global i32 0
@LONG_MAX = global i32 0
@ULONG_MAX = global i32 0
@.str.4 = [27 x i8] c"float - signed: %f to %f\0A\0A\00"
@FLT_MIN = global double 0.000000e+00
@FLT_MAX = global double 0.000000e+00
@.str.5 = [28 x i8] c"double - signed: %f to %f\0A\0A\00"
@DBL_MIN = global double 0.000000e+00
@DBL_MAX = global double 0.000000e+00
define i32 @main() {
%1 = load i32, i32* @CHAR_MIN
%2 = sitofp i32 %1 to double
%3 = load i32, i32* @CHAR_MAX
%4 = sitofp i32 %3 to double
%5 = load i32, i32* @SCHAR_MAX
%6 = load i64, i64* @UCHAR_MAX
%7 = trunc i64 %6 to i32
%8 = tail call i32 (i8*, double, double, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0), double %2, double %4, i32 %5, i32 %7)
%9 = load i32, i32* @SHRT_MIN
%10 = sitofp i32 %9 to double
%11 = load i32, i32* @SHRT_MAX
%12 = sitofp i32 %11 to double
%13 = load i64, i64* @USHRT_MAX
%14 = trunc i64 %13 to i32
%15 = tail call i32 (i8*, double, double, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0), double %10, double %12, i32 %14)
%16 = load i32, i32* @INT_MIN
%17 = sitofp i32 %16 to double
%18 = load i32, i32* @INT_MAX
%19 = sitofp i32 %18 to double
%20 = load i64, i64* @UINT_MAX
%21 = trunc i64 %20 to i32
%22 = tail call i32 (i8*, double, double, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), double %17, double %19, i32 %21)
%23 = load i32, i32* @LONG_MIN
%24 = sitofp i32 %23 to double
%25 = load i32, i32* @LONG_MAX
%26 = sitofp i32 %25 to double
%27 = load i32, i32* @ULONG_MAX
%28 = tail call i32 (i8*, double, double, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0), double %24, double %26, i32 %27)
%29 = load double, double* @FLT_MIN
%30 = load double, double* @FLT_MAX
%31 = tail call i32 (i8*, double, double, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), double %29, double %30)
%32 = load double, double* @DBL_MIN
%33 = load double, double* @DBL_MAX
%34 = tail call i32 (i8*, double, double, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), double %32, double %33)
ret i32 0
}