#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 /*<<< orphan*/ printf(char *, double, double, double, double);
int main(void) {
  printf("Single precision, data type \'float\'\n"
         "\tmin value: %f\n"
         "\texponential notation: %e\n"
         "\tmax value: %f\n"
         "\texponential notation: %e\n",
         FLT_MIN, FLT_MIN, FLT_MAX, FLT_MAX);
  printf("Double precision, data type \'double\'\n"
         "\tmin value: %f\n"
         "\texponential notation: %e\n"
         "\tmax value: %f\n"
         "\texponential notation: %e\n",
         DBL_MIN, DBL_MIN, DBL_MAX, DBL_MAX);
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2ec2(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2eb7(%rip),%rax
movsd  (%rax),%xmm1
mov    0x2ea4(%rip),%rax
movsd  (%rax),%xmm2
mov    0x2e99(%rip),%rax
movsd  (%rax),%xmm3
lea    0xeae(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e6a(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2e5f(%rip),%rax
movsd  (%rax),%xmm1
mov    0x2e4c(%rip),%rax
movsd  (%rax),%xmm2
mov    0x2e41(%rip),%rax
movsd  (%rax),%xmm3
lea    0xeed(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e3a(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2ed0(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2ebd(%rip),%rax
movsd  (%rax),%xmm2
lea    0xed2(%rip),%rdi
movaps %xmm0,%xmm1
movaps %xmm2,%xmm3
call   1030 <printf@plt>
mov    0x2e88(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2e75(%rip),%rax
movsd  (%rax),%xmm2
lea    0xf21(%rip),%rdi
movaps %xmm0,%xmm1
movaps %xmm2,%xmm3
call   1030 <printf@plt>
mov    0x2e68(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [119 x i8] c"Single precision, data type 'float'\0A\09min value: %f\0A\09exponential notation: %e\0A\09max value: %f\0A\09exponential notation: %e\0A\00"
@FLT_MIN = global double 0.000000e+00
@FLT_MAX = global double 0.000000e+00
@.str.1 = [120 x i8] c"Double precision, data type 'double'\0A\09min value: %f\0A\09exponential notation: %e\0A\09max value: %f\0A\09exponential notation: %e\0A\00"
@DBL_MIN = global double 0.000000e+00
@DBL_MAX = global double 0.000000e+00
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load double, double* @FLT_MIN
%3 = load double, double* @FLT_MIN
%4 = load double, double* @FLT_MAX
%5 = load double, double* @FLT_MAX
%6 = call i32 @printf(i8* getelementptr inbounds ([119 x i8], [119 x i8]* @.str, i64 0, i64 0), double %2, double %3, double %4, double %5)
%7 = load double, double* @DBL_MIN
%8 = load double, double* @DBL_MIN
%9 = load double, double* @DBL_MAX
%10 = load double, double* @DBL_MAX
%11 = call i32 @printf(i8* getelementptr inbounds ([120 x i8], [120 x i8]* @.str.1, i64 0, i64 0), double %7, double %8, double %9, double %10)
%12 = load i32, i32* @EXIT_SUCCESS
ret i32 %12
}

LLVM IR (-O2):
@.str = [119 x i8] c"Single precision, data type 'float'\0A\09min value: %f\0A\09exponential notation: %e\0A\09max value: %f\0A\09exponential notation: %e\0A\00"
@FLT_MIN = global double 0.000000e+00
@FLT_MAX = global double 0.000000e+00
@.str.1 = [120 x i8] c"Double precision, data type 'double'\0A\09min value: %f\0A\09exponential notation: %e\0A\09max value: %f\0A\09exponential notation: %e\0A\00"
@DBL_MIN = global double 0.000000e+00
@DBL_MAX = global double 0.000000e+00
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = load double, double* @FLT_MIN
%2 = load double, double* @FLT_MAX
%3 = tail call i32 @printf(i8* getelementptr inbounds ([119 x i8], [119 x i8]* @.str, i64 0, i64 0), double %1, double %1, double %2, double %2)
%4 = load double, double* @DBL_MIN
%5 = load double, double* @DBL_MAX
%6 = tail call i32 @printf(i8* getelementptr inbounds ([120 x i8], [120 x i8]* @.str.1, i64 0, i64 0), double %4, double %4, double %5, double %5)
%7 = load i32, i32* @EXIT_SUCCESS
ret i32 %7
}