#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_DIG;
int DBL_MANT_DIG;
double DBL_MAX;
double DBL_MIN;
int EXIT_SUCCESS;
int FLT_DIG;
int FLT_MANT_DIG;
double FLT_MAX;
double FLT_MIN;
int LDBL_DIG;
int LDBL_MANT_DIG;
int LDBL_MAX;
int LDBL_MIN;
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  printf("Property   \tfloat \t\tdouble\t\t\tlong double\n");
  printf("mantissa:  \t%d    \t\t%d    \t\t\t%d\n", FLT_MANT_DIG, DBL_MANT_DIG,
         LDBL_MANT_DIG);
  printf("dec.digits:\t%d    \t\t%d    \t\t\t%d\n", FLT_DIG, DBL_DIG, LDBL_DIG);
  printf("max value: \t%9.5e \t%18.14e \t%22.17Le\n", FLT_MAX, DBL_MAX,
         LDBL_MAX);
  printf("min value: \t%9.5e \t%18.14e \t%22.17Le\n", FLT_MIN, DBL_MIN,
         LDBL_MIN);
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e74(%rip),%rax
mov    (%rax),%esi
mov    0x2ea3(%rip),%rax
mov    (%rax),%edx
mov    0x2e4a(%rip),%rax
mov    (%rax),%ecx
lea    0xedb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e9b(%rip),%rax
mov    (%rax),%esi
mov    0x2e6a(%rip),%rax
mov    (%rax),%edx
mov    0x2e41(%rip),%rax
mov    (%rax),%ecx
lea    0xed3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e42(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2df7(%rip),%rax
movsd  (%rax),%xmm1
mov    0x2e1c(%rip),%rax
mov    (%rax),%esi
lea    0xec7(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    0x2e25(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2dc2(%rip),%rax
movsd  (%rax),%xmm1
mov    0x2dd7(%rip),%rax
mov    (%rax),%esi
lea    0xec0(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    0x2db8(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf66(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e74(%rip),%rax
mov    (%rax),%esi
mov    0x2ea3(%rip),%rax
mov    (%rax),%edx
mov    0x2e4a(%rip),%rax
mov    (%rax),%ecx
lea    0xeb1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e9b(%rip),%rax
mov    (%rax),%esi
mov    0x2e6a(%rip),%rax
mov    (%rax),%edx
mov    0x2e41(%rip),%rax
mov    (%rax),%ecx
lea    0xea9(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e42(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2df7(%rip),%rax
movsd  (%rax),%xmm1
mov    0x2e1c(%rip),%rax
mov    (%rax),%esi
lea    0xe9d(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    0x2e25(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2dc2(%rip),%rax
movsd  (%rax),%xmm1
mov    0x2dd7(%rip),%rax
mov    (%rax),%esi
lea    0xe96(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    0x2db8(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [42 x i8] c"Property \09float \09\09double\09\09\09long double\0A\00"
@.str.1 = [33 x i8] c"mantissa: \09%d \09\09%d \09\09\09%d\0A\00"
@FLT_MANT_DIG = global i32 0
@DBL_MANT_DIG = global i32 0
@LDBL_MANT_DIG = global i32 0
@.str.2 = [33 x i8] c"dec.digits:\09%d \09\09%d \09\09\09%d\0A\00"
@FLT_DIG = global i32 0
@DBL_DIG = global i32 0
@LDBL_DIG = global i32 0
@.str.3 = [38 x i8] c"max value: \09%9.5e \09%18.14e \09%22.17Le\0A\00"
@FLT_MAX = global double 0.000000e+00
@DBL_MAX = global double 0.000000e+00
@LDBL_MAX = global i32 0
@.str.4 = [38 x i8] c"min value: \09%9.5e \09%18.14e \09%22.17Le\0A\00"
@FLT_MIN = global double 0.000000e+00
@DBL_MIN = global double 0.000000e+00
@LDBL_MIN = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @FLT_MANT_DIG
%4 = load i32, i32* @DBL_MANT_DIG
%5 = load i32, i32* @LDBL_MANT_DIG
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 %3, i32 %4, i32 %5)
%7 = load i32, i32* @FLT_DIG
%8 = load i32, i32* @DBL_DIG
%9 = load i32, i32* @LDBL_DIG
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32 %7, i32 %8, i32 %9)
%11 = load double, double* @FLT_MAX
%12 = load double, double* @DBL_MAX
%13 = load i32, i32* @LDBL_MAX
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0), double %11, double %12, i32 %13)
%15 = load double, double* @FLT_MIN
%16 = load double, double* @DBL_MIN
%17 = load i32, i32* @LDBL_MIN
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0), double %15, double %16, i32 %17)
%19 = load i32, i32* @EXIT_SUCCESS
ret i32 %19
}

LLVM IR (-O2):
@.str.1 = [33 x i8] c"mantissa: \09%d \09\09%d \09\09\09%d\0A\00"
@FLT_MANT_DIG = global i32 0
@DBL_MANT_DIG = global i32 0
@LDBL_MANT_DIG = global i32 0
@.str.2 = [33 x i8] c"dec.digits:\09%d \09\09%d \09\09\09%d\0A\00"
@FLT_DIG = global i32 0
@DBL_DIG = global i32 0
@LDBL_DIG = global i32 0
@.str.3 = [38 x i8] c"max value: \09%9.5e \09%18.14e \09%22.17Le\0A\00"
@FLT_MAX = global double 0.000000e+00
@DBL_MAX = global double 0.000000e+00
@LDBL_MAX = global i32 0
@.str.4 = [38 x i8] c"min value: \09%9.5e \09%18.14e \09%22.17Le\0A\00"
@FLT_MIN = global double 0.000000e+00
@DBL_MIN = global double 0.000000e+00
@LDBL_MIN = global i32 0
@EXIT_SUCCESS = global i32 0
@str = [41 x i8] c"Property \09float \09\09double\09\09\09long double\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str, i64 0, i64 0))
%2 = load i32, i32* @FLT_MANT_DIG
%3 = load i32, i32* @DBL_MANT_DIG
%4 = load i32, i32* @LDBL_MANT_DIG
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 %2, i32 %3, i32 %4)
%6 = load i32, i32* @FLT_DIG
%7 = load i32, i32* @DBL_DIG
%8 = load i32, i32* @LDBL_DIG
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32 %6, i32 %7, i32 %8)
%10 = load double, double* @FLT_MAX
%11 = load double, double* @DBL_MAX
%12 = load i32, i32* @LDBL_MAX
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0), double %10, double %11, i32 %12)
%14 = load double, double* @FLT_MIN
%15 = load double, double* @DBL_MIN
%16 = load i32, i32* @LDBL_MIN
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0), double %14, double %15, i32 %16)
%18 = load i32, i32* @EXIT_SUCCESS
ret i32 %18
}