#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;
double FLT_MAX;
double FLT_MIN;
int INT_MAX;
int INT_MIN;
int /*<<< orphan*/ LONG_MAX;
int /*<<< orphan*/ LONG_MIN;
int SCHAR_MAX;
int SCHAR_MIN;
int SHRT_MAX;
int SHRT_MIN;
int UCHAR_MAX;
int UINT_MAX;
int /*<<< orphan*/ ULONG_MAX;
int USHRT_MAX;
int /*<<< orphan*/ printf(char *, double, double, ...);
int main(void) {
  printf("CHAR - unsigned: %i, signed max: %i, signed min: %i\n", UCHAR_MAX,
         SCHAR_MAX, SCHAR_MIN);
  printf("INT - unsigned: %i, signed max: %i, signed min: %i\n", UINT_MAX,
         INT_MAX, INT_MIN);
  printf("SHORT - unsigned: %i, signed max: %i, signed min: %i\n", USHRT_MAX,
         SHRT_MAX, SHRT_MIN);
  printf("LONG - unsigned: %lu, signed max: %ld, signed min: %ld\n", ULONG_MAX,
         LONG_MAX, LONG_MIN);
  printf("FLOAT - Max: %g, Min: %g\n", FLT_MAX, FLT_MIN);
  printf("DOUBLE - Max: %lg, Min: %lg\n", DBL_MAX, DBL_MIN);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ed5(%rip),%rax
cvtsi2sdl (%rax),%xmm0
mov    0x2e72(%rip),%rax
cvtsi2sdl (%rax),%xmm1
mov    0x2e6f(%rip),%rax
mov    (%rax),%esi
lea    0xec6(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    0x2e80(%rip),%rax
cvtsi2sdl (%rax),%xmm0
mov    0x2e7d(%rip),%rax
cvtsi2sdl (%rax),%xmm1
mov    0x2e5a(%rip),%rax
mov    (%rax),%esi
lea    0xece(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    0x2e63(%rip),%rax
cvtsi2sdl (%rax),%xmm0
mov    0x2e00(%rip),%rax
cvtsi2sdl (%rax),%xmm1
mov    0x2dfd(%rip),%rax
mov    (%rax),%esi
lea    0xed5(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    0x2dbe(%rip),%rax
cvtsi2sdl (%rax),%xmm0
mov    0x2de3(%rip),%rax
cvtsi2sdl (%rax),%xmm1
mov    0x2e08(%rip),%rax
mov    (%rax),%esi
lea    0xede(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    0x2de1(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2e06(%rip),%rax
movsd  (%rax),%xmm1
lea    0xef2(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    0x2d85(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2d72(%rip),%rax
movsd  (%rax),%xmm1
lea    0xee8(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2ed8(%rip),%rax
cvtsi2sdl (%rax),%xmm0
mov    0x2e75(%rip),%rax
cvtsi2sdl (%rax),%xmm1
mov    0x2e72(%rip),%rax
mov    (%rax),%esi
lea    0xec9(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    0x2e83(%rip),%rax
xorps  %xmm0,%xmm0
cvtsi2sdl (%rax),%xmm0
mov    0x2e7d(%rip),%rax
xorps  %xmm1,%xmm1
cvtsi2sdl (%rax),%xmm1
mov    0x2e57(%rip),%rax
mov    (%rax),%esi
lea    0xecb(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    0x2e60(%rip),%rax
xorps  %xmm0,%xmm0
cvtsi2sdl (%rax),%xmm0
mov    0x2dfa(%rip),%rax
xorps  %xmm1,%xmm1
cvtsi2sdl (%rax),%xmm1
mov    0x2df4(%rip),%rax
mov    (%rax),%esi
lea    0xecc(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    0x2db5(%rip),%rax
xorps  %xmm0,%xmm0
cvtsi2sdl (%rax),%xmm0
mov    0x2dd7(%rip),%rax
xorps  %xmm1,%xmm1
cvtsi2sdl (%rax),%xmm1
mov    0x2df9(%rip),%rax
mov    (%rax),%esi
lea    0xecf(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    0x2dd2(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2df7(%rip),%rax
movsd  (%rax),%xmm1
lea    0xee3(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    0x2d76(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2d63(%rip),%rax
movsd  (%rax),%xmm1
lea    0xed9(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [53 x i8] c"CHAR - unsigned: %i, signed max: %i, signed min: %i\0A\00"
@UCHAR_MAX = global i32 0
@SCHAR_MAX = global i32 0
@SCHAR_MIN = global i32 0
@.str.1 = [52 x i8] c"INT - unsigned: %i, signed max: %i, signed min: %i\0A\00"
@UINT_MAX = global i32 0
@INT_MAX = global i32 0
@INT_MIN = global i32 0
@.str.2 = [54 x i8] c"SHORT - unsigned: %i, signed max: %i, signed min: %i\0A\00"
@USHRT_MAX = global i32 0
@SHRT_MAX = global i32 0
@SHRT_MIN = global i32 0
@.str.3 = [56 x i8] c"LONG - unsigned: %lu, signed max: %ld, signed min: %ld\0A\00"
@ULONG_MAX = global i32 0
@LONG_MAX = global i32 0
@LONG_MIN = global i32 0
@.str.4 = [26 x i8] c"FLOAT - Max: %g, Min: %g\0A\00"
@FLT_MAX = global double 0.000000e+00
@FLT_MIN = global double 0.000000e+00
@.str.5 = [29 x i8] c"DOUBLE - Max: %lg, Min: %lg\0A\00"
@DBL_MAX = global double 0.000000e+00
@DBL_MIN = global double 0.000000e+00
define i32 @main() {
%1 = load i32, i32* @UCHAR_MAX
%2 = sitofp i32 %1 to double
%3 = load i32, i32* @SCHAR_MAX
%4 = sitofp i32 %3 to double
%5 = load i32, i32* @SCHAR_MIN
%6 = 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)
%7 = load i32, i32* @UINT_MAX
%8 = sitofp i32 %7 to double
%9 = load i32, i32* @INT_MAX
%10 = sitofp i32 %9 to double
%11 = load i32, i32* @INT_MIN
%12 = call i32 (i8*, double, double, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.1, i64 0, i64 0), double %8, double %10, i32 %11)
%13 = load i32, i32* @USHRT_MAX
%14 = sitofp i32 %13 to double
%15 = load i32, i32* @SHRT_MAX
%16 = sitofp i32 %15 to double
%17 = load i32, i32* @SHRT_MIN
%18 = call i32 (i8*, double, double, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0), double %14, double %16, i32 %17)
%19 = load i32, i32* @ULONG_MAX
%20 = sitofp i32 %19 to double
%21 = load i32, i32* @LONG_MAX
%22 = sitofp i32 %21 to double
%23 = load i32, i32* @LONG_MIN
%24 = call i32 (i8*, double, double, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.3, i64 0, i64 0), double %20, double %22, i32 %23)
%25 = load double, double* @FLT_MAX
%26 = load double, double* @FLT_MIN
%27 = call i32 (i8*, double, double, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), double %25, double %26)
%28 = load double, double* @DBL_MAX
%29 = load double, double* @DBL_MIN
%30 = call i32 (i8*, double, double, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0), double %28, double %29)
ret i32 0
}

LLVM IR (-O2):
@.str = [53 x i8] c"CHAR - unsigned: %i, signed max: %i, signed min: %i\0A\00"
@UCHAR_MAX = global i32 0
@SCHAR_MAX = global i32 0
@SCHAR_MIN = global i32 0
@.str.1 = [52 x i8] c"INT - unsigned: %i, signed max: %i, signed min: %i\0A\00"
@UINT_MAX = global i32 0
@INT_MAX = global i32 0
@INT_MIN = global i32 0
@.str.2 = [54 x i8] c"SHORT - unsigned: %i, signed max: %i, signed min: %i\0A\00"
@USHRT_MAX = global i32 0
@SHRT_MAX = global i32 0
@SHRT_MIN = global i32 0
@.str.3 = [56 x i8] c"LONG - unsigned: %lu, signed max: %ld, signed min: %ld\0A\00"
@ULONG_MAX = global i32 0
@LONG_MAX = global i32 0
@LONG_MIN = global i32 0
@.str.4 = [26 x i8] c"FLOAT - Max: %g, Min: %g\0A\00"
@FLT_MAX = global double 0.000000e+00
@FLT_MIN = global double 0.000000e+00
@.str.5 = [29 x i8] c"DOUBLE - Max: %lg, Min: %lg\0A\00"
@DBL_MAX = global double 0.000000e+00
@DBL_MIN = global double 0.000000e+00
define i32 @main() {
%1 = load i32, i32* @UCHAR_MAX
%2 = sitofp i32 %1 to double
%3 = load i32, i32* @SCHAR_MAX
%4 = sitofp i32 %3 to double
%5 = load i32, i32* @SCHAR_MIN
%6 = 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)
%7 = load i32, i32* @UINT_MAX
%8 = sitofp i32 %7 to double
%9 = load i32, i32* @INT_MAX
%10 = sitofp i32 %9 to double
%11 = load i32, i32* @INT_MIN
%12 = tail call i32 (i8*, double, double, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.1, i64 0, i64 0), double %8, double %10, i32 %11)
%13 = load i32, i32* @USHRT_MAX
%14 = sitofp i32 %13 to double
%15 = load i32, i32* @SHRT_MAX
%16 = sitofp i32 %15 to double
%17 = load i32, i32* @SHRT_MIN
%18 = tail call i32 (i8*, double, double, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0), double %14, double %16, i32 %17)
%19 = load i32, i32* @ULONG_MAX
%20 = sitofp i32 %19 to double
%21 = load i32, i32* @LONG_MAX
%22 = sitofp i32 %21 to double
%23 = load i32, i32* @LONG_MIN
%24 = tail call i32 (i8*, double, double, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.3, i64 0, i64 0), double %20, double %22, i32 %23)
%25 = load double, double* @FLT_MAX
%26 = load double, double* @FLT_MIN
%27 = tail call i32 (i8*, double, double, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), double %25, double %26)
%28 = load double, double* @DBL_MAX
%29 = load double, double* @DBL_MIN
%30 = tail call i32 (i8*, double, double, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0), double %28, double %29)
ret i32 0
}