#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 DBL_MANT_DIG;
double DBL_MAX;
double DBL_MIN;
int FLT_MANT_DIG;
double FLT_MAX;
double FLT_MIN;
int FLT_RADIX;
int LDBL_MANT_DIG;
double LDBL_MAX;
double LDBL_MIN;
int /*<<< orphan*/ printf(char *, double, ...);
int main() {
  printf("radix: %d\n", FLT_RADIX);
  printf("float: %d radix digits\n", FLT_MANT_DIG);
  printf("\t[%g, %g]\n", FLT_MIN, FLT_MAX);
  printf("double: %d radix digits\n", DBL_MANT_DIG);
  printf("\t[%g, %g]\n", DBL_MIN, DBL_MAX);
  printf("long double: %d radix digits\n", LDBL_MANT_DIG);
  printf("\t[%Lg, %Lg]\n", LDBL_MIN, LDBL_MAX);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2ec2(%rip),%rax
cvtsi2sdl (%rax),%xmm0
lea    0xecf(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2e79(%rip),%rax
cvtsi2sdl (%rax),%xmm0
lea    0xec1(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2e80(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2e6d(%rip),%rax
movsd  (%rax),%xmm1
lea    0xeb5(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    0x2e64(%rip),%rax
cvtsi2sdl (%rax),%xmm0
lea    0xeac(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2e0b(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2df8(%rip),%rax
movsd  (%rax),%xmm1
lea    0xe78(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    0x2def(%rip),%rax
cvtsi2sdl (%rax),%xmm0
lea    0xe6a(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2dde(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2de3(%rip),%rax
movsd  (%rax),%xmm1
lea    0xe64(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    0x2ed0(%rip),%rax
cvtsi2sdl (%rax),%xmm0
lea    0xedd(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2e87(%rip),%rax
xorps  %xmm0,%xmm0
cvtsi2sdl (%rax),%xmm0
lea    0xecc(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2e8b(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2e78(%rip),%rax
movsd  (%rax),%xmm1
lea    0xec0(%rip),%rbx
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    0x2e6c(%rip),%rax
xorps  %xmm0,%xmm0
cvtsi2sdl (%rax),%xmm0
lea    0xeb1(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2e10(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2dfd(%rip),%rax
movsd  (%rax),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    0x2df8(%rip),%rax
xorps  %xmm0,%xmm0
cvtsi2sdl (%rax),%xmm0
lea    0xe70(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2de4(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2de9(%rip),%rax
movsd  (%rax),%xmm1
lea    0xe6a(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [11 x i8] c"radix: %d\0A\00"
@FLT_RADIX = global i32 0
@.str.1 = [24 x i8] c"float: %d radix digits\0A\00"
@FLT_MANT_DIG = global i32 0
@.str.2 = [11 x i8] c"\09[%g, %g]\0A\00"
@FLT_MIN = global double 0.000000e+00
@FLT_MAX = global double 0.000000e+00
@.str.3 = [25 x i8] c"double: %d radix digits\0A\00"
@DBL_MANT_DIG = global i32 0
@DBL_MIN = global double 0.000000e+00
@DBL_MAX = global double 0.000000e+00
@.str.4 = [30 x i8] c"long double: %d radix digits\0A\00"
@LDBL_MANT_DIG = global i32 0
@.str.5 = [13 x i8] c"\09[%Lg, %Lg]\0A\00"
@LDBL_MIN = global double 0.000000e+00
@LDBL_MAX = global double 0.000000e+00
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load i32, i32* @FLT_RADIX
%3 = sitofp i32 %2 to double
%4 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), double %3)
%5 = load i32, i32* @FLT_MANT_DIG
%6 = sitofp i32 %5 to double
%7 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), double %6)
%8 = load double, double* @FLT_MIN
%9 = load double, double* @FLT_MAX
%10 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), double %8, double %9)
%11 = load i32, i32* @DBL_MANT_DIG
%12 = sitofp i32 %11 to double
%13 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), double %12)
%14 = load double, double* @DBL_MIN
%15 = load double, double* @DBL_MAX
%16 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), double %14, double %15)
%17 = load i32, i32* @LDBL_MANT_DIG
%18 = sitofp i32 %17 to double
%19 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), double %18)
%20 = load double, double* @LDBL_MIN
%21 = load double, double* @LDBL_MAX
%22 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), double %20, double %21)
ret i32 0
}

LLVM IR (-O2):
@.str = [11 x i8] c"radix: %d\0A\00"
@FLT_RADIX = global i32 0
@.str.1 = [24 x i8] c"float: %d radix digits\0A\00"
@FLT_MANT_DIG = global i32 0
@.str.2 = [11 x i8] c"\09[%g, %g]\0A\00"
@FLT_MIN = global double 0.000000e+00
@FLT_MAX = global double 0.000000e+00
@.str.3 = [25 x i8] c"double: %d radix digits\0A\00"
@DBL_MANT_DIG = global i32 0
@DBL_MIN = global double 0.000000e+00
@DBL_MAX = global double 0.000000e+00
@.str.4 = [30 x i8] c"long double: %d radix digits\0A\00"
@LDBL_MANT_DIG = global i32 0
@.str.5 = [13 x i8] c"\09[%Lg, %Lg]\0A\00"
@LDBL_MIN = global double 0.000000e+00
@LDBL_MAX = global double 0.000000e+00
define i32 @main() {
%1 = load i32, i32* @FLT_RADIX
%2 = sitofp i32 %1 to double
%3 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), double %2)
%4 = load i32, i32* @FLT_MANT_DIG
%5 = sitofp i32 %4 to double
%6 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), double %5)
%7 = load double, double* @FLT_MIN
%8 = load double, double* @FLT_MAX
%9 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), double %7, double %8)
%10 = load i32, i32* @DBL_MANT_DIG
%11 = sitofp i32 %10 to double
%12 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), double %11)
%13 = load double, double* @DBL_MIN
%14 = load double, double* @DBL_MAX
%15 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), double %13, double %14)
%16 = load i32, i32* @LDBL_MANT_DIG
%17 = sitofp i32 %16 to double
%18 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), double %17)
%19 = load double, double* @LDBL_MIN
%20 = load double, double* @LDBL_MAX
%21 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), double %19, double %20)
ret i32 0
}